├── .gitignore ├── .npmignore ├── README.md ├── build ├── webpack.base.config.js ├── webpack.dist.config.js └── webpack.example.config.js ├── dist └── vue-sidebar.js ├── example ├── .DS_Store ├── app.vue ├── index.html ├── main.js └── sprites.svg ├── package.json └── src ├── v-sidebar-item.vue ├── v-sidebar-items.vue ├── v-sidebar.vue └── vue-sidebar.js /.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-* 2 | node_modules 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | example 3 | src 4 | node_modules 5 | .* 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-sidebar 2 | A sidebar component for VueJS inspired by Google's Material Design Navigation Draw spec. 3 | 4 | # Setup 5 | ``` 6 | import svg from 'vue-sidebar' 7 | ... 8 | Vue.use(VueSidebar, { 9 | sprites : './sprites.svg', 10 | prefix : 'icon-', 11 | class : 'icon' 12 | }) 13 | ``` 14 | 15 | # Usage 16 | 17 | See example/app.vue 18 | -------------------------------------------------------------------------------- /build/webpack.base.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack') 2 | 3 | module.exports = { 4 | module: { 5 | loaders: [ 6 | { 7 | test: /\.vue$/, 8 | loader: 'vue' 9 | }, 10 | { 11 | test: /\.js$/, 12 | loader: 'babel', 13 | exclude: /node_modules/, 14 | query: {compact: false} 15 | }, 16 | { 17 | // edit this for additional asset file types 18 | test: /\.(png|jpg|gif)$/, 19 | loader: 'file?name=[name].[ext]?[hash]' 20 | } 21 | ] 22 | }, 23 | // example: if you wish to apply custom babel options 24 | // instead of using vue-loader's default: 25 | babel: { 26 | presets: ['es2015', 'stage-0'], 27 | plugins: ['transform-runtime'] 28 | }, 29 | } 30 | -------------------------------------------------------------------------------- /build/webpack.dist.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack') 2 | var config = require('./webpack.base.config') 3 | 4 | config.entry = './src/vue-sidebar' 5 | config.output = { 6 | path : './dist', 7 | filename : 'vue-sidebar.js', 8 | libraryTarget: "umd" 9 | } 10 | 11 | config.plugins = (config.plugins || []).concat([ 12 | // this allows uglify to strip all warnings 13 | // from Vue.js source code. 14 | new webpack.DefinePlugin({ 15 | 'process.env': { 16 | NODE_ENV: '"production"' 17 | } 18 | }), 19 | // This minifies not only JavaScript, but also 20 | // the templates (with html-minifier) and CSS (with cssnano)! 21 | new webpack.optimize.UglifyJsPlugin({ 22 | compress: { 23 | warnings: false 24 | } 25 | }), 26 | new webpack.optimize.OccurenceOrderPlugin() 27 | ]) 28 | 29 | module.exports = config 30 | -------------------------------------------------------------------------------- /build/webpack.example.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack') 2 | var config = require('./webpack.base.config') 3 | 4 | config.entry = './example/main.js' 5 | config.output = { 6 | path : './example', 7 | publicPath : '/', 8 | filename : 'build.js' 9 | } 10 | 11 | module.exports.devtool = '#source-map' 12 | module.exports = config 13 | -------------------------------------------------------------------------------- /dist/vue-sidebar.js: -------------------------------------------------------------------------------- 1 | !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(15),s=n(r),o=i(14),a=n(o),l=i(13),h=n(l),c=i(19),u=n(c);e["default"]={install:function(t,e){t.use(u["default"],{sprites:e.sprites,prefix:e.prefix,"class":e["class"]}),t.component("v-sidebar",s["default"]),t.component("v-sidebar-items",a["default"]),t.component("v-sidebar-item",h["default"])}}},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",s(t,e),e}function l(t,e){var i,n,r;if(e.singleton){var s=m++;i=v||(v=a(e)),n=h.bind(null,i,s,!1),r=h.bind(null,i,s,!0)}else i=a(e),n=c.bind(null,i),r=function(){o(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}function h(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=_(e,r);else{var s=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(s,o[e]):t.appendChild(s)}}function c(t,e){var i=e.css,n=e.media,r=e.sourceMap;if(n&&t.setAttribute("media",n),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var u={},f=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=f(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,m=0,g=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=p()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var i=r(t);return n(i,e),function(t){for(var s=[],o=0;o1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function m(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function g(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function _(t){return null!==t&&"object"==typeof t}function b(t){return Oi.call(t)===Ni}function y(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function w(t,e){var i,n,r,s,o,a=function l(){var a=Date.now()-s;e>a&&a>=0?i=setTimeout(l,e-a):(i=null,o=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,s=Date.now(),i||(i=setTimeout(a,e)),o}}function x(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function C(t){var e=function i(){return i.cancelled?void 0:t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function $(t,e){return t==e||(_(t)&&_(e)?JSON.stringify(t)===JSON.stringify(e):!1)}function k(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function A(){var t,e=Ii.slice(Ki,Qi).trim();if(e){t={};var i=e.match(rn);t.name=i[0],i.length>1&&(t.args=i.slice(1).map(O))}t&&(Ui.filters=Ui.filters||[]).push(t),Ki=Qi+1}function O(t){if(sn.test(t))return{value:l(t),dynamic:!1};var e=c(t),i=e===t;return{value:i?t:e,dynamic:i}}function N(t){var e=nn.get(t);if(e)return e;for(Ii=t,Zi=Xi=!1,Yi=tn=en=0,Ki=0,Ui={},Qi=0,Gi=Ii.length;Gi>Qi;Qi++)if(qi=Ji,Ji=Ii.charCodeAt(Qi),Zi)39===Ji&&92!==qi&&(Zi=!Zi);else if(Xi)34===Ji&&92!==qi&&(Xi=!Xi);else if(124===Ji&&124!==Ii.charCodeAt(Qi+1)&&124!==Ii.charCodeAt(Qi-1))null==Ui.expression?(Ki=Qi+1,Ui.expression=Ii.slice(0,Qi).trim()):A();else switch(Ji){case 34:Xi=!0;break;case 39:Zi=!0;break;case 40:en++;break;case 41:en--;break;case 91:tn++;break;case 93:tn--;break;case 123:Yi++;break;case 125:Yi--}return null==Ui.expression?Ui.expression=Ii.slice(0,Qi).trim():0!==Ki&&A(),nn.put(t,Ui),Ui}function T(t){return t.replace(an,"\\$&")}function j(){var t=T(vn.delimiters[0]),e=T(vn.delimiters[1]),i=T(vn.unsafeDelimiters[0]),n=T(vn.unsafeDelimiters[1]);hn=new RegExp(i+"(.+?)"+n+"|"+t+"(.+?)"+e,"g"),cn=new RegExp("^"+i+".*"+n+"$"),ln=new k(1e3)}function S(t){ln||j();var e=ln.get(t);if(e)return e;if(t=t.replace(/\n/g,""),!hn.test(t))return null;for(var i,n,r,s,o,a,l=[],h=hn.lastIndex=0;i=hn.exec(t);)n=i.index,n>h&&l.push({value:t.slice(h,n)}),r=cn.test(i[0]),s=r?i[1]:i[2],o=s.charCodeAt(0),a=42===o,s=a?s.slice(1):s,l.push({tag:!0,value:s.trim(),html:r,oneTime:a}),h=n+i[0].length;return h1?t.map(function(t){return F(t,e)}).join("+"):F(t[0],e,!0)}function F(t,e,i){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':P(t.value,i):'"'+t.value+'"'}function P(t,e){if(un.test(t)){var i=N(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function R(t,e,i,n){L(t,1,function(){e.appendChild(t)},i,n)}function D(t,e,i,n){L(t,1,function(){I(t,e)},i,n)}function M(t,e,i){L(t,-1,function(){J(t)},e,i)}function L(t,e,i,n,r){var s=t.__v_trans;if(!s||!s.hooks&&!Mi||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(r&&r());var o=e>0?"enter":"leave";s[o](i,r)}function H(t){if("string"==typeof t){t=document.querySelector(t)}return t}function B(t){var e=document.documentElement,i=t&&t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function W(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function V(t,e){var i=W(t,":"+e);return null===i&&(i=W(t,"v-bind:"+e)),i}function z(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function I(t,e){e.parentNode.insertBefore(t,e)}function U(t,e){e.nextSibling?I(t,e.nextSibling):e.parentNode.appendChild(t)}function J(t){t.parentNode.removeChild(t)}function q(t,e){e.firstChild?I(t,e.firstChild):e.appendChild(t)}function Q(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function G(t,e,i,n){t.addEventListener(e,i,n)}function K(t,e,i){t.removeEventListener(e,i)}function Z(t,e){Pi&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function X(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&Z(t,(i+e).trim())}}function Y(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");Z(t,i.trim())}t.className||t.removeAttribute("class")}function tt(t,e){var i,n;if(nt(t)&<(t.content)&&(t=t.content),t.hasChildNodes())for(et(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function et(t){for(var e;e=t.firstChild,it(e);)t.removeChild(e);for(;e=t.lastChild,it(e);)t.removeChild(e)}function it(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function nt(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function rt(t,e){var i=vn.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function st(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;n>i;i++){var r=e[i].name;if(_n.test(r))return u(r.replace(_n,""))}}function ot(t,e,i){for(var n;t!==e;)n=t.nextSibling,i(t),t=n;i(e)}function at(t,e,i,n,r){function s(){if(a++,o&&a>=l.length){for(var t=0;tr;r++){var o=n[r];bn.test(o)||yn.test(o)||(e=i[o],b(e)&&(i[o]=mi.extend(e)))}}function _t(t){var e,i,n=t.props;if(Ti(n))for(t.props={},e=n.length;e--;)i=n[e],"string"==typeof i?t.props[i]=null:i.name&&(t.props[i.name]=i);else if(b(n)){var r=Object.keys(n);for(e=r.length;e--;)i=n[r[e]],"function"==typeof i&&(n[r[e]]={type:i})}}function bt(t){if(Ti(t)){for(var e,i={},n=t.length;n--;){e=t[n];var r="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;r&&(i[r]=e)}return i}return t}function yt(t,e,i){function n(n){var r=wn[n]||xn;o[n]=r(t[n],e[n],i,n)}gt(e),_t(e);var s,o={};if(e.mixins)for(var a=0,l=e.mixins.length;l>a;a++)t=yt(t,e.mixins[a],i);for(s in t)n(s);for(s in e)r(t,s)||n(s);return o}function wt(t,e,i){if("string"==typeof i){var n,r=t[e];return r[i]||r[n=u(i)]||r[n.charAt(0).toUpperCase()+n.slice(1)]}}function xt(t,e,i){}function Ct(){this.id=Cn++,this.subs=[]}function $t(t){if(this.value=t,this.dep=new Ct,y(t,"__ob__",this),Ti(t)){var e=ji?kt:At;e(t,kn,An),this.observeArray(t)}else this.walk(t)}function kt(t,e){t.__proto__=e}function At(t,e,i){for(var n=0,r=i.length;r>n;n++){var s=i[n];y(t,s,e[s])}}function Ot(t,e){if(t&&"object"==typeof t){var i;return r(t,"__ob__")&&t.__ob__ instanceof $t?i=t.__ob__:(Ti(t)||b(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new $t(t)),i&&e&&i.addVm(e),i}}function Nt(t,e,i){var n=new Ct,r=Object.getOwnPropertyDescriptor(t,e);if(!r||r.configurable!==!1){var s=r&&r.get,o=r&&r.set,a=Ot(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):i;if(Ct.target&&(n.depend(),a&&a.dep.depend(),Ti(e)))for(var r,o=0,l=e.length;l>o;o++)r=e[o],r&&r.__ob__&&r.__ob__.dep.depend();return e},set:function(e){var r=s?s.call(t):i;e!==r&&(o?o.call(t,e):i=e,a=Ot(e),n.notify())}})}}function Tt(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Nn++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=yt(this.constructor.options,t,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function jt(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function St(t){var e=t.trim();return"0"===t.charAt(0)&&isNaN(t)?!1:s(e)?c(e):"*"+e}function Et(t){function e(){var e=t[c+1];return u===Hn&&"'"===e||u===Bn&&'"'===e?(c++,n="\\"+e,p[jn](),!0):void 0}var i,n,r,s,o,a,l,h=[],c=-1,u=Pn,f=0,p=[];for(p[Sn]=function(){void 0!==r&&(h.push(r),r=void 0)},p[jn]=function(){void 0===r?r=n:r+=n},p[En]=function(){p[jn](),f++},p[Fn]=function(){if(f>0)f--,u=Ln,p[jn]();else{if(f=0,r=St(r),r===!1)return!1;p[Sn]()}};null!=u;)if(c++,i=t[c],"\\"!==i||!e()){if(s=jt(i),l=zn[u],o=l[s]||l["else"]||Vn,o===Vn)return;if(u=o[0],a=p[o[1]],a&&(n=o[2],n=void 0===n?i:n,a()===!1))return;if(u===Wn)return h.raw=t,h}}function Ft(t){var e=Tn.get(t);return e||(e=Et(t),e&&Tn.put(t,e)),e}function Pt(t,e){return Vt(e).get(t)}function Rt(t,e,n){var r=t;if("string"==typeof e&&(e=Et(e)),!e||!_(t))return!1;for(var s,o,a=0,l=e.length;l>a;a++)s=t,o=e[a],"*"===o.charAt(0)&&(o=Vt(o.slice(1)).get.call(r,r)),l-1>a?(t=t[o],_(t)||(t={},i(s,o,t))):Ti(t)?t.$set(o,n):o in t?t[o]=n:i(t,o,n);return!0}function Dt(t,e){var i=nr.length;return nr[i]=e?t.replace(Zn,"\\n"):t,'"'+i+'"'}function Mt(t){var e=t.charAt(0),i=t.slice(1);return qn.test(i)?t:(i=i.indexOf('"')>-1?i.replace(Yn,Lt):i,e+"scope."+i)}function Lt(t,e){return nr[e]}function Ht(t){Gn.test(t),nr.length=0;var e=t.replace(Xn,Dt).replace(Kn,"");return e=(" "+e).replace(er,Mt).replace(Yn,Lt),Bt(e)}function Bt(t){try{return new Function("scope","return "+t+";")}catch(e){}}function Wt(t){var e=Ft(t);return e?function(t,i){Rt(t,e,i)}:void 0}function Vt(t,e){t=t.trim();var i=Un.get(t);if(i)return e&&!i.set&&(i.set=Wt(i.exp)),i;var n={exp:t};return n.get=zt(t)&&t.indexOf("[")<0?Bt("scope."+t):Ht(t),e&&(n.set=Wt(t)),Un.put(t,n),n}function zt(t){return tr.test(t)&&!ir.test(t)&&"Math."!==t.slice(0,5)}function It(){sr=[],or=[],ar={},lr={},hr=cr=!1}function Ut(){Jt(sr),cr=!0,Jt(or),Ei&&Ei.emit("flush"),It()}function Jt(t){for(var e=0;e0){var o=s+(n?e:ht(e));r=xr.get(o),r||(r=je(i,t.$options,!0),xr.put(o,r))}else r=je(i,t.$options,!0);this.linker=r}function he(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__v_frag;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__v_frag}return t}}function ce(t){var e=t.node;if(t.end)for(;!e.__vue__&&e!==t.end&&e.nextSibling;)e=e.nextSibling;return e.__vue__}function ue(t){for(var e=-1,i=new Array(Math.floor(t));++ea;a++)if(n=t.options[a],s=i?n.hasAttribute("selected"):n.selected){if(r=n.hasOwnProperty("_value")?n._value:n.value,!e)return r;o.push(r)}return o}function pe(t,e){for(var i=t.length;i--;)if($(t[i],e))return i;return-1}function de(t,e){var i=e.map(function(t){var e=t.charCodeAt(0);return e>47&&58>e?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&91>e)?e:zr[t]});return i=[].concat.apply([],i),function(e){return i.indexOf(e.keyCode)>-1?t.call(this,e):void 0}}function ve(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function me(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ge(t){return function(e){return e.target===e.currentTarget?t.call(this,e):void 0}}function _e(t){if(Qr[t])return Qr[t];var e=be(t);return Qr[t]=Qr[e]=e,e}function be(t){t=p(t);var e=u(t),i=e.charAt(0).toUpperCase()+e.slice(1);Gr||(Gr=document.createElement("div"));for(var n,r=Ur.length;r--;)if(n=Jr[r]+i,n in Gr.style)return Ur[r]+t;return e in Gr.style?t:void 0}function ye(t){for(var e={},i=t.trim().split(/\s+/),n=i.length;n--;)e[i[n]]=!0;return e}function we(t,e){return Ti(t)?t.indexOf(e)>-1:r(t,e)}function xe(t,e,i){function n(){++s>=r?i():t[s].call(e,n)}var r=t.length,s=0;t[0].call(e,n)}function Ce(t){fs.push(t),ps||(ps=!0,Vi($e))}function $e(){for(var t=document.documentElement.offsetHeight,e=0;er;r++)n[r]._bind();return n}function Ee(t,e){return t=t.descriptor.def.priority||js,e=e.descriptor.def.priority||js,t>e?-1:t===e?0:1}function Fe(t,e,i,n){function r(r){Pe(t,e,r),i&&n&&Pe(i,n)}return r.dirs=e,r}function Pe(t,e,i){for(var n=e.length;n--;)e[n]._teardown()}function Re(t,e,i,n){var r=Oe(e,i),s=Se(function(){r(t,n)},t);return Fe(t,s)}function De(t,e,i){var n,r,s=e._containerAttrs,o=e._replacerAttrs;if(11!==t.nodeType)e._asComponent?(s&&i&&(n=Ke(s,i)),o&&(r=Ke(o,e))):r=Ke(t.attributes,e);else;return e._containerAttrs=e._replacerAttrs=null,function(t,e,i){var s,o=t._context;o&&n&&(s=Se(function(){n(o,e,null,i)},o));var a=Se(function(){r&&r(t,e)},t);return Fe(t,a,o,s)}}function Me(t,e){var i=t.nodeType;return 1===i&&"SCRIPT"!==t.tagName?Le(t,e):3===i&&t.data.trim()?He(t,e):null}function Le(t,e){if("TEXTAREA"===t.tagName){var i=S(t.value);i&&(t.setAttribute(":value",E(i)),t.value="")}var n,r=t.hasAttributes();return r&&(n=qe(t,e)),n||(n=Ue(t,e)),n||(n=Je(t,e)),!n&&r&&(n=Ke(t.attributes,e)),n}function He(t,e){if(t._skip)return Be;var i=S(t.wholeText);if(!i)return null;for(var n=t.nextSibling;n&&3===n.nodeType;)n._skip=!0,n=n.nextSibling;for(var r,s,o=document.createDocumentFragment(),a=0,l=i.length;l>a;a++)s=i[a],r=s.tag?We(s,e):document.createTextNode(s.value),o.appendChild(r);return Ve(i,o,e)}function Be(t,e){J(e)}function We(t,e){function i(e){if(!t.descriptor){var i=N(t.value);t.descriptor={name:e,def:as[e],expression:i.expression,filters:i.filters}}}var n;return t.oneTime?n=document.createTextNode(t.value):t.html?(n=document.createComment("v-html"),i("html")):(n=document.createTextNode(" "),i("text")),n}function Ve(t,e){return function(i,n,r,s){for(var o,a,l,h=e.cloneNode(!0),c=m(h.childNodes),u=0,f=t.length;f>u;u++)o=t[u],a=o.value,o.tag&&(l=c[u],o.oneTime?(a=(s||i).$eval(a),o.html?Q(l,te(a,!0)):l.data=a):i._bindDir(o.descriptor,l,r,s));Q(n,h)}}function ze(t,e){for(var i,n,r,s=[],o=0,a=t.length;a>o;o++)r=t[o],i=Me(r,e),n=i&&i.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:ze(r.childNodes,e),s.push(i,n);return s.length?Ie(s):null}function Ie(t){return function(e,i,n,r,s){for(var o,a,l,h=0,c=0,u=t.length;u>h;c++){o=i[c],a=t[h++],l=t[h++];var f=m(o.childNodes);a&&a(e,o,n,r,s),l&&l(e,f,n,r,s)}}}function Ue(t,e){var i=t.tagName.toLowerCase();if(!bn.test(i)){var n=wt(e,"elementDirectives",i);return n?Ge(t,i,"",e,n):void 0}}function Je(t,e){var i=ct(t,e);if(i){var n=st(t),r={name:"component",ref:n,expression:i.id,def:ys.component,modifiers:{literal:!i.dynamic}},s=function(t,e,i,s,o){n&&Nt((s||t).$refs,n,null),t._bindDir(r,e,i,s,o)};return s.terminal=!0,s}}function qe(t,e){if(null!==W(t,"v-pre"))return Qe;if(t.hasAttribute("v-else")){var i=t.previousElementSibling;if(i&&i.hasAttribute("v-if"))return Qe}for(var n,r,s=0,o=Ts.length;o>s;s++)if(r=Ts[s],n=t.getAttribute("v-"+r),null!=n)return Ge(t,r,n,e)}function Qe(){}function Ge(t,e,i,n,r){var s=N(i),o={name:e,expression:s.expression,filters:s.filters,raw:i,def:r||wt(n,"directives",e)};"for"!==e&&"router-view"!==e||(o.ref=st(t));var a=function(t,e,i,n,r){o.ref&&Nt((n||t).$refs,o.ref,null),t._bindDir(o,e,i,n,r)};return a.terminal=!0,a}function Ke(t,e){function i(t,e,i){var n=i&&Ye(i),r=!n&&N(s);v.push({name:t,attr:o,raw:a,def:e,arg:h,modifiers:c,expression:r&&r.expression,filters:r&&r.filters,interp:i,hasOneTime:n})}for(var n,r,s,o,a,l,h,c,u,f,p,d=t.length,v=[];d--;)if(n=t[d],r=o=n.name,s=a=n.value,f=S(s),h=null,c=Ze(r),r=r.replace(Os,""),f)s=E(f),h=r,i("bind",as.bind,f);else if(Ns.test(r))c.literal=!$s.test(r),i("transition",ys.transition);else if(ks.test(r))h=r.replace(ks,""),i("on",as.on);else if($s.test(r))l=r.replace($s,""),"style"===l||"class"===l?i(l,ys[l]):(h=l,i("bind",as.bind));else if(p=r.match(As)){if(l=p[1],h=p[2],"else"===l)continue;u=wt(e,"directives",l),u&&i(l,u)}return v.length?Xe(v):void 0}function Ze(t){var e=Object.create(null),i=t.match(Os);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function Xe(t){return function(e,i,n,r,s){for(var o=t.length;o--;)e._bindDir(t[o],i,n,r,s)}}function Ye(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function ti(t,e){return e&&(e._containerAttrs=ii(t)),nt(t)&&(t=te(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=tt(t),t=ei(t,e))),lt(t)&&(q(rt("v-start",!0),t),t.appendChild(rt("v-end",!0))),t}function ei(t,e){var i=e.template,n=te(i,!0);if(n){var r=n.firstChild,s=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body,n.childNodes.length>1||1!==r.nodeType||"component"===s||wt(e,"components",s)||z(r,"is")||wt(e,"elementDirectives",s)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?n:(e._replacerAttrs=ii(r),ni(t,r),r)):(t.appendChild(n),t)}}function ii(t){return 1===t.nodeType&&t.hasAttributes()?m(t.attributes):void 0}function ni(t,e){for(var i,n,r=t.attributes,s=r.length;s--;)i=r[s].name,n=r[s].value,e.hasAttribute(i)||Ss.test(i)?"class"!==i||S(n)||n.split(/\s+/).forEach(function(t){X(e,t)}):e.setAttribute(i,n)}function ri(t,e,i){function n(t,i){var n='[slot="'+i+'"]',s=e.querySelectorAll(n);s.length&&(r[i]=si(s,e))}if(e){var r=i._slotContents={},s=t.querySelectorAll("slot");if(s.length){for(var o,a,l,h=0,c=s.length;c>h;h++)a=s[h],(l=a.getAttribute("name"))?n(a,l):o=!0;o&&(r["default"]=si(e.childNodes,e))}}}function si(t,e){var i=document.createDocumentFragment();t=m(t);for(var n=0,r=t.length;r>n;n++){var s=t[n];s.parentNode===e&&(!nt(s)||s.hasAttribute("v-if")||s.hasAttribute("v-for")||(e.removeChild(s),s=te(s)),i.appendChild(s))}return i}function oi(t){function e(){}function n(t,e){var i=new Qt(e,t,null,{lazy:!0});return function(){return i.dirty&&i.evaluate(),Ct.target&&i.depend(),i.value}}Object.defineProperty(t.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),t.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},t.prototype._initProps=function(){var t=this.$options,e=t.el,i=t.props;e=t.el=H(e),this._propsUnlinkFn=e&&1===e.nodeType&&i?Re(this,e,i,this._scope):null},t.prototype._initData=function(){var t=this._data,e=this.$options.data,n=e&&e();if(n){this._data=n;for(var s in t)null===this._props[s].raw&&r(n,s)||i(n,s,t[s])}var o,a,l=this._data,h=Object.keys(l);for(o=h.length;o--;)a=h[o],this._proxy(a);Ot(l,this)},t.prototype._setData=function(t){t=t||{};var e=this._data;this._data=t;var i,n,s;for(i=Object.keys(e),s=i.length;s--;)n=i[s],n in t||this._unproxy(n);for(i=Object.keys(t),s=i.length;s--;)n=i[s],r(this,n)||this._proxy(n);e.__ob__.removeVm(this),Ot(t,this),this._digest()},t.prototype._proxy=function(t){if(!o(t)){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})}},t.prototype._unproxy=function(t){o(t)||delete this[t]},t.prototype._digest=function(){for(var t=0,e=this._watchers.length;e>t;t++)this._watchers[t].update(!0)},t.prototype._initComputed=function(){var t=this.$options.computed;if(t)for(var i in t){var r=t[i],s={enumerable:!0,configurable:!0};"function"==typeof r?(s.get=n(r,this),s.set=e):(s.get=r.get?r.cache!==!1?n(r.get,this):v(r.get,this):e,s.set=r.set?v(r.set,this):e),Object.defineProperty(this,i,s)}},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=v(t[e],this)},t.prototype._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)Nt(this,e,t[e])}}function ai(t){function e(t,e){for(var i,n,r=e.attributes,s=0,o=r.length;o>s;s++)i=r[s].name,Fs.test(i)&&(i=i.replace(Fs,""),n=(t._scope||t._context).$eval(r[s].value,!0),"function"==typeof n&&(n._fromParent=!0,t.$on(i.replace(Fs),n)))}function i(t,e,i){if(i){var r,s,o,a;for(s in i)if(r=i[s],Ti(r))for(o=0,a=r.length;a>o;o++)n(t,e,s,r[o]);else n(t,e,s,r)}}function n(t,e,i,r,s){var o=typeof r;if("function"===o)t[e](i,r,s);else if("string"===o){var a=t.$options.methods,l=a&&a[r];l&&t[e](i,l,s)}else r&&"object"===o&&n(t,e,i,r.handler,r)}function r(){this._isAttached||(this._isAttached=!0,this.$children.forEach(s))}function s(t){!t._isAttached&&B(t.$el)&&t._callHook("attached")}function o(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(a))}function a(t){t._isAttached&&!B(t.$el)&&t._callHook("detached")}t.prototype._initEvents=function(){var t=this.$options;t._asComponent&&e(this,t.el),i(this,"$on",t.events),i(this,"$watch",t.watch)},t.prototype._initDOMHooks=function(){this.$on("hook:attached",r),this.$on("hook:detached",o)},t.prototype._callHook=function(t){this.$emit("pre-hook:"+t);var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}}function li(){}function hi(t,e,i,n,r,s){this.vm=e,this.el=i,this.descriptor=t,this.name=t.name,this.expression=t.expression,this.arg=t.arg,this.modifiers=t.modifiers,this.filters=t.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=n,this._scope=r,this._frag=s}function ci(t){t.prototype._updateRef=function(t){var e=this.$options._ref;if(e){var i=(this._scope||this._context).$refs;t?i[e]===this&&(i[e]=null):i[e]=this}},t.prototype._compile=function(t){var e=this.$options,i=t;if(t=ti(t,e),this._initElement(t),1!==t.nodeType||null===W(t,"v-pre")){var n=this._context&&this._context.$options,r=De(t,e,n);ri(t,e._content,this);var s,o=this.constructor;e._linkerCachable&&(s=o.linker,s||(s=o.linker=je(t,e)));var a=r(this,t,this._scope),l=s?s(this,t):je(t,e)(this,t);this._unlinkFn=function(){a(),l(!0)},e.replace&&Q(i,t),this._isCompiled=!0,this._callHook("compiled")}},t.prototype._initElement=function(t){lt(t)?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},t.prototype._bindDir=function(t,e,i,n,r){this._directives.push(new hi(t,this,e,i,n,r))},t.prototype._destroy=function(t,e){if(this._isBeingDestroyed)return void(e||this._cleanup());var i,n,r=this,s=function(){!i||n||e||r._cleanup()};t&&this.$el&&(n=!0,this.$remove(function(){n=!1,s()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var o,a=this.$parent;for(a&&!a._isBeingDestroyed&&(a.$children.$remove(this),this._updateRef(!0)),o=this.$children.length;o--;)this.$children[o].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),o=this._watchers.length;o--;)this._watchers[o].teardown();this.$el&&(this.$el.__vue__=null),i=!0,s()},t.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function ui(t){t.prototype._applyFilters=function(t,e,i,n){var r,s,o,a,l,h,c,u,f;for(h=0,c=i.length;c>h;h++)if(r=i[h],s=wt(this.$options,"filters",r.name),s&&(s=n?s.write:s.read||s,"function"==typeof s)){if(o=n?[t,e]:[t],l=n?2:1,r.args)for(u=0,f=r.args.length;f>u;u++)a=r.args[u],o[u+l]=a.dynamic?this.$get(a.value):a.value;t=s.apply(this,o)}return t},t.prototype._resolveComponent=function(e,i){var n=wt(this.$options,"components",e);if(n)if(n.options)i(n);else if(n.resolved)i(n.resolved);else if(n.requested)n.pendingCallbacks.push(i);else{n.requested=!0;var r=n.pendingCallbacks=[i];n.call(this,function(e){b(e)&&(e=t.extend(e)),n.resolved=e;for(var i=0,s=r.length;s>i;i++)r[i](e)},function(t){})}}}function fi(t){function e(t){return JSON.parse(JSON.stringify(t))}t.prototype.$get=function(t,e){var i=Vt(t);if(i){if(e&&!zt(t)){var n=this;return function(){n.$arguments=m(arguments);var t=i.get.call(n,n);return n.$arguments=null,t}}try{return i.get.call(this,this)}catch(r){}}},t.prototype.$set=function(t,e){var i=Vt(t,!0);i&&i.set&&i.set.call(this,this,e); 7 | },t.prototype.$delete=function(t){n(this._data,t)},t.prototype.$watch=function(t,e,i){var n,r=this;"string"==typeof t&&(n=N(t),t=n.expression);var s=new Qt(r,t,e,{deep:i&&i.deep,sync:i&&i.sync,filters:n&&n.filters,user:!i||i.user!==!1});return i&&i.immediate&&e.call(r,s.value),function(){s.teardown()}},t.prototype.$eval=function(t,e){if(Ps.test(t)){var i=N(t),n=this.$get(i.expression,e);return i.filters?this._applyFilters(n,null,i.filters):n}return this.$get(t,e)},t.prototype.$interpolate=function(t){var e=S(t),i=this;return e?1===e.length?i.$eval(e[0].value)+"":e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},t.prototype.$log=function(t){var i=t?Pt(this._data,t):this._data;if(i&&(i=e(i)),!t)for(var n in this.$options.computed)i[n]=e(this[n]);console.log(i)}}function pi(t){function e(t,e,n,r,s,o){e=i(e);var a=!B(e),l=r===!1||a?s:o,h=!a&&!t._isAttached&&!B(t.$el);return t._isFragment?(ot(t._fragmentStart,t._fragmentEnd,function(i){l(i,e,t)}),n&&n()):l(t.$el,e,t,n),h&&t._callHook("attached"),t}function i(t){return"string"==typeof t?document.querySelector(t):t}function n(t,e,i,n){e.appendChild(t),n&&n()}function r(t,e,i,n){I(t,e),n&&n()}function s(t,e,i){J(t),i&&i()}t.prototype.$nextTick=function(t){Vi(t,this)},t.prototype.$appendTo=function(t,i,r){return e(this,t,i,r,n,R)},t.prototype.$prependTo=function(t,e,n){return t=i(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},t.prototype.$before=function(t,i,n){return e(this,t,i,n,r,D)},t.prototype.$after=function(t,e,n){return t=i(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},t.prototype.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var i=this._isAttached&&B(this.$el);i||(e=!1);var n=this,r=function(){i&&n._callHook("detached"),t&&t()};if(this._isFragment)at(this._fragmentStart,this._fragmentEnd,this,this._fragment,r);else{var o=e===!1?s:M;o(this.$el,this,r)}return this}}function di(t){function e(t,e,n){var r=t.$parent;if(r&&n&&!i.test(e))for(;r;)r._eventsCount[e]=(r._eventsCount[e]||0)+n,r=r.$parent}t.prototype.$on=function(t,i){return(this._events[t]||(this._events[t]=[])).push(i),e(this,t,1),this},t.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},t.prototype.$off=function(t,i){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&e(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return e(this,t,-n.length),this._events[t]=null,this;for(var r,s=n.length;s--;)if(r=n[s],r===i||r.fn===i){e(this,t,-1),n.splice(s,1);break}return this},t.prototype.$emit=function(t){var e="string"==typeof t;t=e?t:t.name;var i=this._events[t],n=e||!i;if(i){i=i.length>1?m(i):i;var r=e&&i.some(function(t){return t._fromParent});r&&(n=!1);for(var s=m(arguments,1),o=0,a=i.length;a>o;o++){var l=i[o],h=l.apply(this,s);h!==!0||r&&!l._fromParent||(n=!0)}}return n},t.prototype.$broadcast=function(t){var e="string"==typeof t;if(t=e?t:t.name,this._eventsCount[t]){var i=this.$children,n=m(arguments);e&&(n[0]={name:t,source:this});for(var r=0,s=i.length;s>r;r++){var o=i[r],a=o.$emit.apply(o,n);a&&o.$broadcast.apply(o,n)}return this}},t.prototype.$dispatch=function(t){var e=this.$emit.apply(this,arguments);if(e){var i=this.$parent,n=m(arguments);for(n[0]={name:t,source:this};i;)e=i.$emit.apply(i,n),i=e?i.$parent:null;return this}};var i=/^hook:/}function vi(t){function e(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}t.prototype.$mount=function(t){return this._isCompiled?void 0:(t=H(t),t||(t=document.createElement("div")),this._compile(t),this._initDOMHooks(),B(this.$el)?(this._callHook("attached"),e.call(this)):this.$once("hook:attached",e),this)},t.prototype.$destroy=function(t,e){this._destroy(t,e)},t.prototype.$compile=function(t,e,i,n){return je(t,this.$options,!0)(this,t,e,i,n)}}function mi(t){this._init(t)}function gi(t,e,i){return i=i?parseInt(i,10):0,e=l(e),"number"==typeof e?t.slice(i,i+e):t}function _i(t,e,i){if(t=Ls(t),null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();for(var n,r,s,o,a="in"===i?3:2,l=m(arguments,a).reduce(function(t,e){return t.concat(e)},[]),h=[],c=0,u=t.length;u>c;c++)if(n=t[c],s=n&&n.$value||n,o=l.length){for(;o--;)if(r=l[o],"$key"===r&&yi(n.$key,e)||yi(Pt(s,r),e)){h.push(n);break}}else yi(n,e)&&h.push(n);return h}function bi(t,e,i){if(t=Ls(t),!e)return t;var n=i&&0>i?-1:1;return t.slice().sort(function(t,i){return"$key"!==e&&(_(t)&&"$value"in t&&(t=t.$value),_(i)&&"$value"in i&&(i=i.$value)),t=_(t)?Pt(t,e):t,i=_(i)?Pt(i,e):i,t===i?0:t>i?n:-n})}function yi(t,e){var i;if(b(t)){var n=Object.keys(t);for(i=n.length;i--;)if(yi(t[n[i]],e))return!0}else if(Ti(t)){for(i=t.length;i--;)if(yi(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function wi(t){function e(t){return new Function("return function "+d(t)+" (options) { this._init(options) }")()}t.options={directives:as,elementDirectives:Ms,filters:Bs,transitions:{},components:{},partials:{},replace:!0},t.util=On,t.config=vn,t.set=i,t["delete"]=n,t.nextTick=Vi,t.compiler=Es,t.FragmentFactory=le,t.internalDirectives=ys,t.parsers={path:In,text:fn,template:yr,directive:on,expression:rr},t.cid=0;var r=1;t.extend=function(t){t=t||{};var i=this,n=0===i.cid;if(n&&t._Ctor)return t._Ctor;var s=t.name||i.options.name,o=e(s||"VueComponent");return o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.cid=r++,o.options=yt(i.options,t),o["super"]=i,o.extend=i.extend,vn._assetTypes.forEach(function(t){o[t]=i[t]}),s&&(o.options.components[s]=o),n&&(t._Ctor=o),o},t.use=function(t){if(!t.installed){var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},t.mixin=function(e){t.options=yt(t.options,e)},vn._assetTypes.forEach(function(e){t[e]=function(i,n){return n?("component"===e&&b(n)&&(n.name=i,n=t.extend(n)),this.options[e+"s"][i]=n,n):this.options[e+"s"][i]}}),g(t.transition,gn)}var xi=Object.prototype.hasOwnProperty,Ci=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,$i=/-(\w)/g,ki=/([a-z\d])([A-Z])/g,Ai=/(?:^|[-_\/])(\w)/g,Oi=Object.prototype.toString,Ni="[object Object]",Ti=Array.isArray,ji="__proto__"in{},Si="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Ei=Si&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Fi=Si&&window.navigator.userAgent.toLowerCase(),Pi=Fi&&Fi.indexOf("msie 9.0")>0,Ri=Fi&&Fi.indexOf("android")>0,Di=void 0,Mi=void 0,Li=void 0,Hi=void 0;if(Si&&!Pi){var Bi=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,Wi=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Di=Bi?"WebkitTransition":"transition",Mi=Bi?"webkitTransitionEnd":"transitionend",Li=Wi?"WebkitAnimation":"animation",Hi=Wi?"webkitAnimationEnd":"animationend"}var Vi=function(){function t(){r=!1;var t=n.slice(0);n=[];for(var e=0;ee;e++)t[e].update()};var $n=Array.prototype,kn=Object.create($n);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=$n[t];y(kn,t,function(){for(var i=arguments.length,n=new Array(i);i--;)n[i]=arguments[i];var r,s=e.apply(this,n),o=this.__ob__;switch(t){case"push":r=n;break;case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.dep.notify(),s})}),y($n,"$set",function(t,e){return t>=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),y($n,"$remove",function(t){if(this.length){var e=x(this,t);return e>-1?this.splice(e,1):void 0}});var An=Object.getOwnPropertyNames(kn);$t.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;n>i;i++)this.convert(e[i],t[e[i]])},$t.prototype.observeArray=function(t){for(var e=0,i=t.length;i>e;e++)Ot(t[e])},$t.prototype.convert=function(t,e){Nt(this.value,t,e)},$t.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},$t.prototype.removeVm=function(t){this.vms.$remove(t)};var On=Object.freeze({defineReactive:Nt,set:i,del:n,hasOwn:r,isLiteral:s,isReserved:o,_toString:a,toNumber:l,toBoolean:h,stripQuotes:c,camelize:u,hyphenate:p,classify:d,bind:v,toArray:m,extend:g,isObject:_,isPlainObject:b,def:y,debounce:w,indexOf:x,cancellable:C,looseEqual:$,isArray:Ti,hasProto:ji,inBrowser:Si,devtools:Ei,isIE9:Pi,isAndroid:Ri,get transitionProp(){return Di},get transitionEndEvent(){return Mi},get animationProp(){return Li},get animationEndEvent(){return Hi},nextTick:Vi,query:H,inDoc:B,getAttr:W,getBindAttr:V,hasBindAttr:z,before:I,after:U,remove:J,prepend:q,replace:Q,on:G,off:K,setClass:Z,addClass:X,removeClass:Y,extractContent:tt,trimNode:et,isTemplate:nt,createAnchor:rt,findRef:st,mapNodeRange:ot,removeNodeRange:at,isFragment:lt,getOuterHTML:ht,mergeOptions:yt,resolveAsset:wt,assertAsset:xt,checkComponentAttr:ct,initProp:ft,assertProp:pt,coerceProp:dt,commonTagRE:bn,reservedTagRE:yn,get warn(){return mn}}),Nn=0,Tn=new k(1e3),jn=0,Sn=1,En=2,Fn=3,Pn=0,Rn=1,Dn=2,Mn=3,Ln=4,Hn=5,Bn=6,Wn=7,Vn=8,zn=[];zn[Pn]={ws:[Pn],ident:[Mn,jn],"[":[Ln],eof:[Wn]},zn[Rn]={ws:[Rn],".":[Dn],"[":[Ln],eof:[Wn]},zn[Dn]={ws:[Dn],ident:[Mn,jn]},zn[Mn]={ident:[Mn,jn],0:[Mn,jn],number:[Mn,jn],ws:[Rn,Sn],".":[Dn,Sn],"[":[Ln,Sn],eof:[Wn,Sn]},zn[Ln]={"'":[Hn,jn],'"':[Bn,jn],"[":[Ln,En],"]":[Rn,Fn],eof:Vn,"else":[Ln,jn]},zn[Hn]={"'":[Ln,jn],eof:Vn,"else":[Hn,jn]},zn[Bn]={'"':[Ln,jn],eof:Vn,"else":[Bn,jn]};var In=Object.freeze({parsePath:Ft,getPath:Pt,setPath:Rt}),Un=new k(1e3),Jn="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",qn=new RegExp("^("+Jn.replace(/,/g,"\\b|")+"\\b)"),Qn="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,proctected,static,interface,private,public",Gn=new RegExp("^("+Qn.replace(/,/g,"\\b|")+"\\b)"),Kn=/\s/g,Zn=/\n/g,Xn=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,Yn=/"(\d+)"/g,tr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,er=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,ir=/^(?:true|false)$/,nr=[],rr=Object.freeze({parseExpression:Vt,isSimplePath:zt}),sr=[],or=[],ar={},lr={},hr=!1,cr=!1,ur=0;Qt.prototype.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},Qt.prototype.get=function(){this.beforeGet();var t,e=this.scope||this.vm;try{t=this.getter.call(e,e)}catch(i){}return this.deep&&Gt(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.postProcess&&(t=this.postProcess(t)),this.afterGet(),t},Qt.prototype.set=function(t){var e=this.scope||this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(i){}var n=e.$forContext;if(n&&n.alias===this.expression){if(n.filters)return;n._withLock(function(){e.$key?n.rawValue[e.$key]=t:n.rawValue.$set(e.$index,t)})}},Qt.prototype.beforeGet=function(){Ct.target=this,this.newDeps=Object.create(null)},Qt.prototype.afterGet=function(){Ct.target=null;for(var t=Object.keys(this.deps),e=t.length;e--;){var i=t[e];this.newDeps[i]||this.deps[i].removeSub(this)}this.deps=this.newDeps},Qt.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!vn.async?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,qt(this))},Qt.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(_(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},Qt.prototype.evaluate=function(){var t=Ct.target;this.value=this.get(),this.dirty=!1,Ct.target=t},Qt.prototype.depend=function(){for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].depend()},Qt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var fr={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=a(t)}},pr=new k(1e3),dr=new k(1e3),vr={efault:[0,"",""],legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"]};vr.td=vr.th=[3,"","
"],vr.option=vr.optgroup=[1,'"],vr.thead=vr.tbody=vr.colgroup=vr.caption=vr.tfoot=[1,"","
"],vr.g=vr.defs=vr.symbol=vr.use=vr.image=vr.text=vr.circle=vr.ellipse=vr.line=vr.path=vr.polygon=vr.polyline=vr.rect=[1,'',""];var mr=/<([\w:]+)/,gr=/&#?\w+?;/,_r=function(){if(Si){var t=document.createElement("div");return t.innerHTML="",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),br=function(){if(Si){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}(),yr=Object.freeze({cloneNode:Yt,parseTemplate:te}),wr={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=rt("v-html"),Q(this.el,this.anchor))},update:function(t){t=a(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)J(this.nodes[e]);var i=te(t,!0,!0);this.nodes=m(i.childNodes),I(i,this.anchor)}};ee.prototype.callHook=function(t){var e,i;for(e=0,i=this.childFrags.length;i>e;e++)this.childFrags[e].callHook(t);for(e=0,i=this.children.length;i>e;e++)t(this.children[e])},ee.prototype.beforeRemove=function(){var t,e;for(t=0,e=this.childFrags.length;e>t;t++)this.childFrags[t].beforeRemove(!1);for(t=0,e=this.children.length;e>t;t++)this.children[t].$destroy(!1,!0);var i=this.unlink.dirs;for(t=0,e=i.length;e>t;t++)i[t]._watcher&&i[t]._watcher.teardown()},ee.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var xr=new k(5e3);le.prototype.create=function(t,e,i){var n=Yt(this.template);return new ee(this.linker,this.vm,n,t,e,i)};var Cr=700,$r=800,kr=850,Ar=1100,Or=1500,Nr=1500,Tr=1750,jr=2e3,Sr=2e3,Er=2100,Fr=0,Pr={priority:jr,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var t=this.expression.match(/(.*) (?:in|of) (.*)/);if(t){var e=t[1].match(/\((.*),(.*)\)/);e?(this.iterator=e[1].trim(),this.alias=e[2].trim()):this.alias=t[1].trim(),this.expression=t[2]}if(this.alias){this.id="__v-for__"+ ++Fr;var i=this.el.tagName;this.isOption=("OPTION"===i||"OPTGROUP"===i)&&"SELECT"===this.el.parentNode.tagName,this.start=rt("v-for-start"),this.end=rt("v-for-end"),Q(this.el,this.end),I(this.start,this.end),this.cache=Object.create(null),this.factory=new le(this.vm,this.el)}},update:function(t){this.diff(t),this.updateRef(),this.updateModel()},diff:function(t){var e,i,n,s,o,a,l=t[0],h=this.fromObject=_(l)&&r(l,"$key")&&r(l,"$value"),c=this.params.trackBy,u=this.frags,f=this.frags=new Array(t.length),p=this.alias,d=this.iterator,v=this.start,m=this.end,g=B(v),b=!u;for(e=0,i=t.length;i>e;e++)l=t[e],s=h?l.$key:null,o=h?l.$value:l,a=!_(o),n=!b&&this.getCachedFrag(o,e,s),n?(n.reused=!0,n.scope.$index=e,s&&(n.scope.$key=s),d&&(n.scope[d]=null!==s?s:e),(c||h||a)&&(n.scope[p]=o)):(n=this.create(o,p,e,s),n.fresh=!b),f[e]=n,b&&n.before(m);if(!b){var y=0,w=u.length-f.length;for(this.vm._vForRemoving=!0,e=0,i=u.length;i>e;e++)n=u[e],n.reused||(this.deleteCachedFrag(n),this.remove(n,y++,w,g));this.vm._vForRemoving=!1,y&&(this.vm._watchers=this.vm._watchers.filter(function(t){return t.active}));var x,C,$,k=0;for(e=0,i=f.length;i>e;e++)n=f[e],x=f[e-1],C=x?x.staggerCb?x.staggerAnchor:x.end||x.node:v,n.reused&&!n.staggerCb?($=he(n,v,this.id),$===x||$&&he($,v,this.id)===x||this.move(n,C)):this.insert(n,k++,C,g),n.reused=n.fresh=!1}},create:function(t,e,i,n){var r=this._host,s=this._scope||this.vm,o=Object.create(s);o.$refs=Object.create(s.$refs),o.$els=Object.create(s.$els),o.$parent=s,o.$forContext=this,Nt(o,e,t),Nt(o,"$index",i),n?Nt(o,"$key",n):o.$key&&y(o,"$key",null),this.iterator&&Nt(o,this.iterator,null!==n?n:i);var a=this.factory.create(r,o,this._frag);return a.forId=this.id,this.cacheFrag(t,a,i,n),a},updateRef:function(){var t=this.descriptor.ref;if(t){var e,i=(this._scope||this.vm).$refs;this.fromObject?(e={},this.frags.forEach(function(t){e[t.scope.$key]=ce(t)})):e=this.frags.map(ce),i[t]=e}},updateModel:function(){if(this.isOption){var t=this.start.parentNode,e=t&&t.__v_model;e&&e.forceUpdate()}},insert:function(t,e,i,n){t.staggerCb&&(t.staggerCb.cancel(),t.staggerCb=null);var r=this.getStagger(t,e,null,"enter");if(n&&r){var s=t.staggerAnchor;s||(s=t.staggerAnchor=rt("stagger-anchor"),s.__v_frag=t),U(s,i);var o=t.staggerCb=C(function(){t.staggerCb=null,t.before(s),J(s)});setTimeout(o,r)}else t.before(i.nextSibling)},remove:function(t,e,i,n){if(t.staggerCb)return t.staggerCb.cancel(),void(t.staggerCb=null);var r=this.getStagger(t,e,i,"leave");if(n&&r){var s=t.staggerCb=C(function(){t.staggerCb=null,t.remove()});setTimeout(s,r)}else t.remove()},move:function(t,e){e.nextSibling||this.end.parentNode.appendChild(this.end),t.before(e.nextSibling,!1)},cacheFrag:function(t,e,i,n){var s,o=this.params.trackBy,a=this.cache,l=!_(t);n||o||l?(s=o?"$index"===o?i:t[o]:n||t,a[s]||(a[s]=e)):(s=this.id,r(t,s)?null===t[s]&&(t[s]=e):y(t,s,e)),e.raw=t},getCachedFrag:function(t,e,i){var n,r=this.params.trackBy,s=!_(t);if(i||r||s){var o=r?"$index"===r?e:t[r]:i||t;n=this.cache[o]}else n=t[this.id];return n&&(n.reused||n.fresh),n},deleteCachedFrag:function(t){var e=t.raw,i=this.params.trackBy,n=t.scope,s=n.$index,o=r(n,"$key")&&n.$key,a=!_(e);if(i||o||a){var l=i?"$index"===i?s:e[i]:o||e;this.cache[l]=null}else e[this.id]=null,t.raw=null},getStagger:function(t,e,i,n){n+="Stagger";var r=t.node.__v_trans,s=r&&r.hooks,o=s&&(s[n]||s.stagger);return o?o.call(t,e,i):e*parseInt(this.params[n]||this.params.stagger,10)},_preProcess:function(t){return this.rawValue=t,t},_postProcess:function(t){if(Ti(t))return t;if(b(t)){for(var e,i=Object.keys(t),n=i.length,r=new Array(n);n--;)e=i[n],r[n]={$key:e,$value:t[e]};return r}return"number"!=typeof t||isNaN(t)||(t=ue(t)),t||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var t,e=this.frags.length;e--;)t=this.frags[e],this.deleteCachedFrag(t),t.destroy()}},Rr={priority:Sr,bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{var e=t.nextElementSibling;e&&null!==W(e,"v-else")&&(J(e),this.elseFactory=new le(e._context||this.vm,e)),this.anchor=rt("v-if"),Q(t,this.anchor),this.factory=new le(this.vm,t)}},update:function(t){this.invalid||(t?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseFactory&&!this.elseFrag&&(this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},Dr={bind:function(){var t=this.el.nextElementSibling;t&&null!==W(t,"v-else")&&(this.elseEl=t)},update:function(t){this.apply(this.el,t),this.elseEl&&this.apply(this.elseEl,!t)},apply:function(t,e){function i(){t.style.display=e?"":"none"}B(t)?L(t,e?1:-1,i,this.vm):i()}},Mr={bind:function(){var t=this,e=this.el,i="range"===e.type,n=this.params.lazy,r=this.params.number,s=this.params.debounce,o=!1;if(Ri||i||(this.on("compositionstart",function(){o=!0}),this.on("compositionend",function(){o=!1,n||t.listener()})),this.focused=!1,i||n||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1})),this.listener=this.rawListener=function(){if(!o&&t._bound){var n=r||i?l(e.value):e.value;t.set(n),Vi(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},s&&(this.listener=w(this.listener,s)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var a=jQuery.fn.on?"on":"bind";jQuery(e)[a]("change",this.rawListener),n||jQuery(e)[a]("input",this.listener)}else this.on("change",this.rawListener),n||this.on("input",this.listener);!n&&Pi&&(this.on("cut",function(){Vi(t.listener)}),this.on("keyup",function(e){46!==e.keyCode&&8!==e.keyCode||t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this.afterBind=this.listener)},update:function(t){this.el.value=a(t)},unbind:function(){var t=this.el;if(this.hasjQuery){var e=jQuery.fn.off?"off":"unbind";jQuery(t)[e]("change",this.listener),jQuery(t)[e]("input",this.listener)}}},Lr={bind:function(){var t=this,e=this.el;this.getValue=function(){if(e.hasOwnProperty("_value"))return e._value;var i=e.value;return t.params.number&&(i=l(i)),i},this.listener=function(){t.set(t.getValue())},this.on("change",this.listener),e.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){this.el.checked=$(t,this.getValue())}},Hr={bind:function(){var t=this,e=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var i=this.multiple=e.hasAttribute("multiple");this.listener=function(){var n=fe(e,i);n=t.params.number?Ti(n)?n.map(l):l(n):n,t.set(n)},this.on("change",this.listener);var n=fe(e,i,!0);(i&&n.length||!i&&null!==n)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",this.forceUpdate)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n,r=this.multiple&&Ti(t),s=e.options,o=s.length;o--;)i=s[o],n=i.hasOwnProperty("_value")?i._value:i.value,i.selected=r?pe(t,n)>-1:$(t,n)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},Br={bind:function(){function t(){var t=i.checked;return t&&i.hasOwnProperty("_trueValue")?i._trueValue:!t&&i.hasOwnProperty("_falseValue")?i._falseValue:t}var e=this,i=this.el;this.getValue=function(){return i.hasOwnProperty("_value")?i._value:e.params.number?l(i.value):i.value},this.listener=function(){var n=e._watcher.value;if(Ti(n)){var r=e.getValue();i.checked?x(n,r)<0&&n.push(r):n.$remove(r)}else e.set(t())},this.on("change",this.listener),i.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){var e=this.el;Ti(t)?e.checked=x(t,this.getValue())>-1:e.hasOwnProperty("_trueValue")?e.checked=$(t,e._trueValue):e.checked=!!t}},Wr={text:Mr,radio:Lr,select:Hr,checkbox:Br},Vr={priority:$r,twoWay:!0,handlers:Wr,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,i=e.tagName;if("INPUT"===i)t=Wr[e.type]||Wr.text;else if("SELECT"===i)t=Wr.select;else{if("TEXTAREA"!==i)return;t=Wr.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var i=wt(this.vm.$options,"filters",t[e].name);("function"==typeof i||i.read)&&(this.hasRead=!0),i.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},zr={esc:27,tab:9,enter:13,space:32,"delete":[8,46],up:38,left:37,right:39,down:40},Ir={priority:Cr,acceptStatement:!0,keyCodes:zr,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){G(t.el.contentWindow,t.arg,t.handler,t.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(t){if(this.descriptor.raw||(t=function(){}),"function"==typeof t){this.modifiers.stop&&(t=ve(t)),this.modifiers.prevent&&(t=me(t)),this.modifiers.self&&(t=ge(t));var e=Object.keys(this.modifiers).filter(function(t){return"stop"!==t&&"prevent"!==t});e.length&&(t=de(t,e)),this.reset(),this.handler=t,this.iframeBind?this.iframeBind():G(this.el,this.arg,this.handler,this.modifiers.capture)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&K(t,this.arg,this.handler)},unbind:function(){this.reset()}},Ur=["-webkit-","-moz-","-ms-"],Jr=["Webkit","Moz","ms"],qr=/!important;?$/,Qr=Object.create(null),Gr=null,Kr={deep:!0,update:function(t){"string"==typeof t?this.el.style.cssText=t:Ti(t)?this.handleObject(t.reduce(g,{})):this.handleObject(t||{})},handleObject:function(t){var e,i,n=this.cache||(this.cache={});for(e in n)e in t||(this.handleSingle(e,null),delete n[e]);for(e in t)i=t[e],i!==n[e]&&(n[e]=i,this.handleSingle(e,i))},handleSingle:function(t,e){if(t=_e(t))if(null!=e&&(e+=""),e){var i=qr.test(e)?"important":"";i&&(e=e.replace(qr,"").trim()),this.el.style.setProperty(t,e,i)}else this.el.style.removeProperty(t)}},Zr="http://www.w3.org/1999/xlink",Xr=/^xlink:/,Yr=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,ts=/^(?:value|checked|selected|muted)$/,es=/^(?:draggable|contenteditable|spellcheck)$/,is={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},ns={priority:kr,bind:function(){var t=this.arg,e=this.el.tagName;t||(this.deep=!0);var i=this.descriptor,n=i.interp;if(n){i.hasOneTime&&(this.expression=E(n,this._scope||this.vm)),(Yr.test(t)||"name"===t&&("PARTIAL"===e||"SLOT"===e))&&(this.el.removeAttribute(t),this.invalid=!0)}},update:function(t){if(!this.invalid){var e=this.arg;this.arg?this.handleSingle(e,t):this.handleObject(t||{})}},handleObject:Kr.handleObject,handleSingle:function(t,e){var i=this.el,n=this.descriptor.interp;this.modifiers.camel&&(t=u(t)),!n&&ts.test(t)&&t in i&&(i[t]="value"===t&&null==e?"":e);var r=is[t];if(!n&&r){i[r]=e;var s=i.__v_model;s&&s.listener()}return"value"===t&&"TEXTAREA"===i.tagName?void i.removeAttribute(t):void(es.test(t)?i.setAttribute(t,e?"true":"false"):null!=e&&e!==!1?"class"===t?(i.__v_trans&&(e+=" "+i.__v_trans.id+"-transition"),Z(i,e)):Xr.test(t)?i.setAttributeNS(Zr,t,e===!0?"":e):i.setAttribute(t,e===!0?"":e):i.removeAttribute(t))}},rs={priority:Or,bind:function(){if(this.arg){var t=this.id=u(this.arg),e=(this._scope||this.vm).$els;r(e,t)?e[t]=this.el:Nt(e,t,this.el)}},unbind:function(){var t=(this._scope||this.vm).$els;t[this.id]===this.el&&(t[this.id]=null)}},ss={bind:function(){}},os={bind:function(){var t=this.el;this.vm.$once("pre-hook:compiled",function(){t.removeAttribute("v-cloak")})}},as={text:fr,html:wr,"for":Pr,"if":Rr,show:Dr,model:Vr,on:Ir,bind:ns,el:rs,ref:ss,cloak:os},ls={deep:!0,update:function(t){t&&"string"==typeof t?this.handleObject(ye(t)):b(t)?this.handleObject(t):Ti(t)?this.handleArray(t):this.cleanup()},handleObject:function(t){this.cleanup(t);for(var e=this.prevKeys=Object.keys(t),i=0,n=e.length;n>i;i++){var r=e[i];t[r]?X(this.el,r):Y(this.el,r)}},handleArray:function(t){this.cleanup(t);for(var e=0,i=t.length;i>e;e++)t[e]&&X(this.el,t[e]);this.prevKeys=t.slice()},cleanup:function(t){if(this.prevKeys)for(var e=this.prevKeys.length;e--;){var i=this.prevKeys[e];!i||t&&we(t,i)||Y(this.el,i)}}},hs={priority:Nr,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__||(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=tt(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=rt("v-component"),Q(this.el,this.anchor),this.el.removeAttribute("is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+p(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(t){this.literal||this.setComponent(t)},setComponent:function(t,e){if(this.invalidatePending(),t){var i=this;this.resolveComponent(t,function(){i.mountComponent(e)})}else this.unbuild(!0),this.remove(this.childVM,e),this.childVM=null},resolveComponent:function(t,e){var i=this;this.pendingComponentCb=C(function(n){i.ComponentName=n.options.name||t,i.Component=n,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},mountComponent:function(t){this.unbuild(!0);var e=this,i=this.Component.options.activate,n=this.getCached(),r=this.build();i&&!n?(this.waitingFor=r,xe(i,r,function(){e.waitingFor===r&&(e.waitingFor=null,e.transition(r,t))})):(n&&r._updateRef(),this.transition(r,t))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var i={name:this.ComponentName, 8 | el:Yt(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};t&&g(i,t);var n=new this.Component(i);return this.keepAlive&&(this.cache[this.Component.cid]=n),n}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;return!e||this.keepAlive?void(e&&e._updateRef(!0)):void e.$destroy(!1,t)},remove:function(t,e){var i=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var n=this;t.$remove(function(){n.pendingRemovals--,i||t._cleanup(),!n.pendingRemovals&&n.pendingRemovalCb&&(n.pendingRemovalCb(),n.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var i=this,n=this.childVM;switch(this.childVM=t,i.params.transitionMode){case"in-out":t.$before(i.anchor,function(){i.remove(n,e)});break;case"out-in":i.remove(n,function(){t.$before(i.anchor,e)});break;default:i.remove(n),t.$before(i.anchor,e)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}},cs=vn._propBindingModes,us={bind:function(){var t=this.vm,e=t._context,i=this.descriptor.prop,n=i.path,r=i.parentPath,s=i.mode===cs.TWO_WAY,o=this.parentWatcher=new Qt(e,r,function(e){e=dt(i,e),pt(i,e)&&(t[n]=e)},{twoWay:s,filters:i.filters,scope:this._scope});if(ft(t,i,o.value),s){var a=this;t.$once("pre-hook:created",function(){a.childWatcher=new Qt(t,n,function(t){o.set(t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},fs=[],ps=!1,ds="transition",vs="animation",ms=Di+"Duration",gs=Li+"Duration",_s=ke.prototype;_s.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,X(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,Ce(this.enterNextTick))},_s.enterNextTick=function(){this.justEntered=!0;var t=this;setTimeout(function(){t.justEntered=!1},17);var e=this.enterDone,i=this.getCssTransitionType(this.enterClass);this.pendingJsCb?i===ds&&Y(this.el,this.enterClass):i===ds?(Y(this.el,this.enterClass),this.setupCssCb(Mi,e)):i===vs?this.setupCssCb(Hi,e):e()},_s.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,Y(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},_s.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,X(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():Ce(this.leaveNextTick)))},_s.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===ds?Mi:Hi;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},_s.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Y(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},_s.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,K(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(Y(this.el,this.enterClass),Y(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},_s.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},_s.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=C(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},_s.getCssTransitionType=function(t){if(!(!Mi||document.hidden||this.hooks&&this.hooks.css===!1||Ae(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var i=this.el.style,n=window.getComputedStyle(this.el),r=i[ms]||n[ms];if(r&&"0s"!==r)e=ds;else{var s=i[gs]||n[gs];s&&"0s"!==s&&(e=vs)}return e&&(this.typeCache[t]=e),e}},_s.setupCssCb=function(t,e){this.pendingCssEvent=t;var i=this,n=this.el,r=this.pendingCssCb=function(s){s.target===n&&(K(n,t,r),i.pendingCssEvent=i.pendingCssCb=null,!i.pendingJsCb&&e&&e())};G(n,t,r)};var bs={priority:Ar,update:function(t,e){var i=this.el,n=wt(this.vm.$options,"transitions",t);t=t||"v",i.__v_trans=new ke(i,t,n,this.vm),e&&Y(i,e+"-transition"),X(i,t+"-transition")}},ys={style:Kr,"class":ls,component:hs,prop:us,transition:bs},ws=vn._propBindingModes,xs={},Cs=/^[$_a-zA-Z]+[\w$]*$/,$s=/^v-bind:|^:/,ks=/^v-on:|^@/,As=/^v-([^:]+)(?:$|:(.*)$)/,Os=/\.[^\.]+/g,Ns=/^(v-bind:|:)?transition$/,Ts=["for","if"],js=1e3;Qe.terminal=!0;var Ss=/[^\w\-:\.]/,Es=Object.freeze({compile:je,compileAndLinkProps:Re,compileRoot:De,terminalDirectives:Ts,transclude:ti,scanSlots:ri}),Fs=/^v-on:|^@/;hi.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var i=e.attr||"v-"+t;this.el.removeAttribute(i)}var n=e.def;if("function"==typeof n?this.update=n:g(this,n),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var r=this;this.update?this._update=function(t,e){r._locked||r.update(t,e)}:this._update=li;var s=this._preProcess?v(this._preProcess,this):null,o=this._postProcess?v(this._postProcess,this):null,a=this._watcher=new Qt(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:s,postProcess:o,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},hi.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,i,n,r=t.length;r--;)e=t[r],n=u(e),i=V(this.el,e),null!=i?this._setupParamWatcher(n,i):(i=W(this.el,e),null!=i&&(this.params[n]=""===i?!0:i))}},hi.prototype._setupParamWatcher=function(t,e){var i=this,n=!1,r=(this._scope||this.vm).$watch(e,function(e,r){if(i.params[t]=e,n){var s=i.paramWatchers&&i.paramWatchers[t];s&&s.call(i,e,r)}else n=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(r)},hi.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!zt(t)){var e=Vt(t).get,i=this._scope||this.vm,n=function(t){i.$event=t,e.call(i,i),i.$event=null};return this.filters&&(n=i._applyFilters(n,null,this.filters)),this.update(n),!0}},hi.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},hi.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),Vi(function(){e._locked=!1})},hi.prototype.on=function(t,e,i){G(this.el,t,e,i),(this._listeners||(this._listeners=[])).push([t,e])},hi.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)K(this.el,e[t][0],e[t][1]);var i=this._paramUnwatchFns;if(i)for(t=i.length;t--;)i[t]();this.vm=this.el=this._watcher=this._listeners=null}};var Ps=/[^|]\|[^|]/;Tt(mi),oi(mi),ai(mi),ci(mi),ui(mi),fi(mi),pi(mi),di(mi),vi(mi);var Rs={priority:Er,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,i){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var n=document.createElement("template");n.setAttribute("v-else",""),n.innerHTML=this.el.innerHTML,n._context=this.vm,t.appendChild(n)}var r=i?i._scope:this._scope;this.unlink=e.$compile(t,i,r,this._frag)}t?Q(this.el,t):J(this.el)},fallback:function(){this.compile(tt(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Ds={priority:Tr,params:["name"],paramWatchers:{name:function(t){Rr.remove.call(this),t&&this.insert(t)}},bind:function(){this.anchor=rt("v-partial"),Q(this.el,this.anchor),this.insert(this.params.name)},insert:function(t){var e=wt(this.vm.$options,"partials",t);e&&(this.factory=new le(this.vm,e),Rr.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},Ms={slot:Rs,partial:Ds},Ls=Pr._postProcess,Hs=/(\d{3})(?=\d)/g,Bs={orderBy:bi,filterBy:_i,limitBy:gi,json:{read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},capitalize:function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},uppercase:function(t){return t||0===t?t.toString().toUpperCase():""},lowercase:function(t){return t||0===t?t.toString().toLowerCase():""},currency:function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$";var i=Math.abs(t).toFixed(2),n=i.slice(0,-3),r=n.length%3,s=r>0?n.slice(0,r)+(n.length>3?",":""):"",o=i.slice(-3),a=0>t?"-":"";return a+e+s+n.slice(r).replace(Hs,"$1,")+o},pluralize:function(t){var e=m(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")},debounce:function(t,e){return t?(e||(e=300),w(t,e)):void 0}};wi(mi),mi.version="1.0.17",Ei&&Ei.emit("init",mi),t.exports=mi}).call(e,function(){return this}())},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(3);n(r);e["default"]={name:"v-sidebar-item",props:["svg","img"]}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(3);n(r);e["default"]={name:"v-sidebar-items",props:{header:String}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=i(3);n(r);e["default"]={name:"v-sidebar",props:{visible:{type:Boolean,"default":!1}},methods:{show:function(){this.visible=!0,this.$root.$broadcast("v-sidebar:show")},hide:function(){this.visible=!1,this.$root.$broadcast("v-sidebar:hide")},toggle:function(){this.visible?this.hide():this.show()}},events:{"v-sidebar:show":function(){this.show()},"v-sidebar:hide":function(){this.hide()},"v-sidebar:toggle":function(){this.toggle()}}}},function(t,e,i){e=t.exports=i(1)(),e.push([t.id,".items[_v-28415b27]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.items-header[_v-28415b27]{-webkit-box-flex:0;-webkit-flex:0 0 48px;-ms-flex:0 0 48px;flex:0 0 48px;padding:0 16px 8px;line-height:40px;font-weight:bolder;color:rgba(0,0,0,.54)}.items[_v-28415b27]:not(:last-of-type){padding-bottom:3px;margin-bottom:4px;border-bottom:1px solid rgba(0,0,0,.1)}",""])},function(t,e,i){e=t.exports=i(1)(),e.push([t.id,".v-sidebar-item[_v-6c88f57c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-webkit-flex:0 0 48px;-ms-flex:0 0 48px;flex:0 0 48px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:8px 16px;color:rgba(0,0,0,.84);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.v-sidebar-item[_v-6c88f57c]:hover{cursor:pointer;background:rgba(0,0,0,.05)}.icon img[_v-6c88f57c]{max-width:32px}.icon img[_v-6c88f57c],.icon svg[_v-6c88f57c]{display:inline-block;max-height:48px;vertical-align:top}.icon svg[_v-6c88f57c]{max-width:24px;margin-left:4px;fill:rgba(0,0,0,.54)}.text[_v-6c88f57c]{font-weight:bolder}.icon+.text[_v-6c88f57c]{margin-left:16px}",""])},function(t,e,i){e=t.exports=i(1)(),e.push([t.id,".mini[_v-7d6965f4]{min-width:64px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;-ms-grid-row-align:center;align-items:center}.persistent[_v-7d6965f4]{position:fixed;top:0;left:0;bottom:0;width:20vw;min-width:300px;max-width:70vw;background:#fff;overflow:scroll;z-index:10}.persistent.v-transition[_v-7d6965f4]{-webkit-transition:all .2s ease-in-out .1s;transition:all .2s ease-in-out .1s;-webkit-transform:translate(0);transform:translate(0)}.persistent.v-enter[_v-7d6965f4],.persistent.v-leave[_v-7d6965f4]{-webkit-transform:translate(-100%);transform:translate(-100%)}.overlay[_v-7d6965f4]{position:absolute;top:0;left:0;bottom:0;width:100vw;background:rgba(0,0,0,.54);z-index:1}.overlay.v-transition[_v-7d6965f4]{-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;opacity:1}.overlay.v-enter[_v-7d6965f4],.overlay.v-leave[_v-7d6965f4]{opacity:0}",""])},function(t,e){t.exports='
{{ header }}
'},function(t,e){t.exports='
'},function(t,e){t.exports='
'},function(t,e,i){var n,r;i(17),n=i(4),r=i(11),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),r&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=r)},function(t,e,i){var n,r;i(16),n=i(5),r=i(10),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),r&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=r)},function(t,e,i){var n,r;i(18),n=i(6),r=i(12),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),r&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=r)},function(t,e,i){var n=i(7);"string"==typeof n&&(n=[[t.id,n,""]]);i(2)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){var n=i(8);"string"==typeof n&&(n=[[t.id,n,""]]);i(2)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){var n=i(9);"string"==typeof n&&(n=[[t.id,n,""]]);i(2)(n,{});n.locals&&(t.exports=n.locals)},function(t,e){!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={install:function(t){t.directive("svg",{params:["sprite"],bind:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","use"),i=""+opts.prefix+this.params.sprite,n=null,r=this.el;for(var s in r.attributes){var o=r.attributes[s].name;"string"==typeof o&&"_v"===o.substr(0,2)&&(n=o)}e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",opts.sprites+"#"+i),e.setAttributeNS(null,n,""),"svg"!==r.tagName&&(t.setAttributeNS(null,n,""),t.classList.add(opts["class"],i),r.appendChild(t),r=t),r.classList.add(opts["class"],i),r.appendChild(e)}})}}}])}])}); -------------------------------------------------------------------------------- /example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Phunky/vue-sidebar/bd66732a28dee1df3de82dd3f803d2c159e3af32/example/.DS_Store -------------------------------------------------------------------------------- /example/app.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 64 | 65 | 83 | 84 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vue-sidebar 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /example/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueSidebar from '../src/vue-sidebar.js' 3 | import App from './app.vue' 4 | 5 | Vue.config.debug = true; 6 | 7 | Vue.use(VueSidebar, { 8 | sprites : './sprites.svg', 9 | prefix : 'icon-', 10 | class : 'icon' 11 | }) 12 | 13 | new Vue({ 14 | el: 'body', 15 | components: { App } 16 | }) 17 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "example": "webpack-dev-server --inline --hot --progress --host 0.0.0.0 --config build/webpack.example.config.js --content-base example/", 4 | "dist": "cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.dist.config.js" 5 | }, 6 | "dependencies": { 7 | "vue": "^1.0.16", 8 | "vue-svg-directive": "^0.0.6" 9 | }, 10 | "devDependencies": { 11 | "babel-core": "^6.3.17", 12 | "babel-loader": "^6.2.0", 13 | "babel-plugin-transform-runtime": "^6.3.13", 14 | "babel-preset-es2015": "^6.3.13", 15 | "babel-preset-stage-0": "^6.5.0", 16 | "babel-runtime": "^5.8.34", 17 | "cross-env": "^1.0.7", 18 | "css-loader": "^0.23.0", 19 | "jade": "^1.11.0", 20 | "node-sass": "^3.4.2", 21 | "sass-loader": "^3.1.2", 22 | "template-html-loader": "0.0.3", 23 | "vue-hot-reload-api": "^1.2.2", 24 | "vue-html-loader": "^1.0.0", 25 | "vue-loader": "^8.0.0", 26 | "vue-style-loader": "^1.0.0", 27 | "webpack": "^1.12.9", 28 | "webpack-dev-server": "^1.14.0" 29 | }, 30 | "name": "vue-sidebar", 31 | "version": "0.0.2", 32 | "main": "dist/vue-sidebar.js", 33 | "author": "Mark Harwood", 34 | "license": "MIT", 35 | "description": "A sidebar component for VueJS inspired by Google's Material Design Navigation Draw spec." 36 | } 37 | -------------------------------------------------------------------------------- /src/v-sidebar-item.vue: -------------------------------------------------------------------------------- 1 | 44 | 45 | 54 | 55 | 64 | -------------------------------------------------------------------------------- /src/v-sidebar-items.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 27 | 28 | 39 | -------------------------------------------------------------------------------- /src/v-sidebar.vue: -------------------------------------------------------------------------------- 1 | 54 | 55 | 63 | 64 | 109 | -------------------------------------------------------------------------------- /src/vue-sidebar.js: -------------------------------------------------------------------------------- 1 | import sidebar from './v-sidebar.vue' 2 | import items from './v-sidebar-items.vue' 3 | import item from './v-sidebar-item.vue' 4 | import svg from 'vue-svg-directive' 5 | 6 | export default { 7 | install (Vue, opts) { 8 | Vue.use(svg, { 9 | sprites : opts.sprites, 10 | prefix : opts.prefix, 11 | class : opts.class 12 | }) 13 | 14 | Vue.component('v-sidebar', sidebar) 15 | Vue.component('v-sidebar-items', items) 16 | Vue.component('v-sidebar-item', item) 17 | } 18 | } 19 | --------------------------------------------------------------------------------