├── .babelrc ├── docs ├── src │ ├── assets │ │ └── logo.png │ ├── main.js │ ├── router │ │ └── index.js │ ├── App.vue │ └── routes │ │ ├── First.vue │ │ ├── Second.vue │ │ └── Third.vue ├── index.html ├── package.json ├── webpack.config.js └── build │ └── build.js ├── .gitignore ├── src ├── index.js └── RouterNav.vue ├── .editorconfig ├── README.md ├── webpack.config.js ├── LICENSE └── package.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-3" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /docs/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/classicalConditioning/vue-router-nav/HEAD/docs/src/assets/logo.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log 5 | yarn-error.log 6 | 7 | # Editor directories and files 8 | .idea 9 | *.suo 10 | *.ntvs* 11 | *.njsproj 12 | *.sln 13 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import RouterNav from './RouterNav.vue' 3 | 4 | export default { 5 | install(Vue, options) { 6 | Vue.component('router-nav', RouterNav); 7 | } 8 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /docs/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import router from './router' 4 | import RouterNav from 'vue-router-nav' 5 | 6 | Vue.use(RouterNav) 7 | 8 | new Vue({ 9 | el: '#app', 10 | router, 11 | render: h => h(App) 12 | }) 13 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Vue-router-nav demo 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Second from '../routes/Second' 4 | import First from '../routes/First' 5 | import Third from '../routes/Third' 6 | 7 | Vue.use(Router) 8 | 9 | export default new Router({ 10 | routes: [ 11 | { 12 | path: '/', 13 | name: 'First', 14 | component: First 15 | }, 16 | { 17 | path: '/second', 18 | name: 'Second', 19 | component: Second 20 | }, 21 | { 22 | path: '/third', 23 | name: 'Third', 24 | component: Third 25 | } 26 | ] 27 | }) 28 | -------------------------------------------------------------------------------- /docs/src/App.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | 14 | 37 | -------------------------------------------------------------------------------- /docs/src/routes/First.vue: -------------------------------------------------------------------------------- 1 | 8 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-router-nav 2 | 3 | > Minimalistic responsive navigation bar that renders routes of vue-router. 4 | 5 | View the [demo](https://classicalconditioning.github.io/vue-router-nav/). 6 | 7 | ## Dependencies 8 | 9 | You need to have vue-router installed in order for vue-router-nav to work. 10 | 11 | ## Install 12 | `npm install vue-router-nav --save` 13 | 14 | ## Usage 15 | 16 | ``` javascript 17 | import RouterNav from 'vue-router-nav' 18 | 19 | Vue.use(RouterNav) 20 | ``` 21 | 22 | ``` html 23 | 29 | 30 | 35 | ``` 36 | -------------------------------------------------------------------------------- /docs/src/routes/Second.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | 14 | -------------------------------------------------------------------------------- /docs/src/routes/Third.vue: -------------------------------------------------------------------------------- 1 | 8 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = { 4 | context: __dirname, 5 | 6 | entry: './src/index.js', 7 | 8 | output: { 9 | path: path.resolve(__dirname, 'dist'), 10 | filename: 'index.js', 11 | library: 'vue-router-nav', 12 | libraryTarget: 'umd', 13 | }, 14 | 15 | module: { 16 | rules: [ 17 | { 18 | test: /\.vue$/, 19 | loader: 'vue-loader', 20 | exclude: /node_modules/, 21 | }, 22 | { 23 | test: /\.js$/, 24 | loader: 'babel-loader', 25 | exclude: /node_modules/, 26 | }, 27 | { 28 | test: /\.scss$/, 29 | loaders: ['style-loader', 'css-loader', 'sass-loader'], 30 | } 31 | ] 32 | }, 33 | 34 | resolve: { 35 | extensions: ['.js', '.vue'], 36 | }, 37 | 38 | externals: { 39 | vue: 'vue', 40 | } 41 | }; -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "simple-demo", 3 | "description": "A Vue.js project", 4 | "version": "1.0.0", 5 | "author": "Alex Pavlov ", 6 | "license": "MIT", 7 | "private": true, 8 | "scripts": { 9 | "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", 10 | "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" 11 | }, 12 | "dependencies": { 13 | "vue": "^2.4.4", 14 | "vue-router": "^3.0.1", 15 | "vue-router-nav": "^0.1.8" 16 | }, 17 | "browserslist": [ 18 | "> 1%", 19 | "last 2 versions", 20 | "not ie <= 8" 21 | ], 22 | "devDependencies": { 23 | "babel-core": "^6.26.0", 24 | "babel-loader": "^7.1.2", 25 | "babel-preset-env": "^1.6.0", 26 | "babel-preset-stage-3": "^6.24.1", 27 | "cross-env": "^5.0.5", 28 | "css-loader": "^0.28.7", 29 | "file-loader": "^1.1.4", 30 | "vue-loader": "^13.0.5", 31 | "vue-template-compiler": "^2.4.4", 32 | "webpack": "^3.6.0", 33 | "webpack-dev-server": "^2.9.1" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017-present Alex Pavlov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-router-nav", 3 | "description": "A vue.js router navigation bar plugin based on vue-router.", 4 | "keywords": [ 5 | "nav", 6 | "router", 7 | "vue" 8 | ], 9 | "version": "0.1.8", 10 | "author": "Classical Conditioning ", 11 | "license": "MIT", 12 | "main": "dist/index.js", 13 | "scripts": { 14 | "build": "webpack -p --progress" 15 | }, 16 | "files": [ 17 | "dist" 18 | ], 19 | "browserslist": [ 20 | "> 1%", 21 | "last 2 versions", 22 | "not ie <= 8" 23 | ], 24 | "repository": "classicalConditioning/vue-router-nav", 25 | "bugs": { 26 | "url": "https://github.com/classicalConditioning/vue-router-nav/issues" 27 | }, 28 | "homepage": "https://github.com/classicalConditioning/vue-router-nav#readme", 29 | "devDependencies": { 30 | "babel-core": "^6.26.0", 31 | "babel-loader": "^7.1.2", 32 | "babel-preset-env": "^1.6.0", 33 | "babel-preset-stage-3": "^6.24.1", 34 | "cross-env": "^5.0.5", 35 | "css-loader": "^0.28.7", 36 | "file-loader": "^1.1.4", 37 | "vue-loader": "^13.0.5", 38 | "vue-template-compiler": "^2.4.4", 39 | "webpack": "^3.6.0", 40 | "webpack-dev-server": "^2.9.1" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /docs/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var webpack = require('webpack') 3 | 4 | module.exports = { 5 | entry: './src/main.js', 6 | output: { 7 | path: path.resolve(__dirname, './dist'), 8 | publicPath: '/dist/', 9 | filename: 'build.js' 10 | }, 11 | module: { 12 | rules: [ 13 | { 14 | test: /\.css$/, 15 | use: [ 16 | 'vue-style-loader', 17 | 'css-loader' 18 | ], 19 | }, { 20 | test: /\.vue$/, 21 | loader: 'vue-loader', 22 | options: { 23 | loaders: { 24 | } 25 | // other vue-loader options go here 26 | } 27 | }, 28 | { 29 | test: /\.js$/, 30 | loader: 'babel-loader', 31 | exclude: /node_modules/ 32 | }, 33 | { 34 | test: /\.(png|jpg|gif|svg)$/, 35 | loader: 'file-loader', 36 | options: { 37 | name: '[name].[ext]?[hash]' 38 | } 39 | } 40 | ] 41 | }, 42 | resolve: { 43 | alias: { 44 | 'vue$': 'vue/dist/vue.esm.js' 45 | }, 46 | extensions: ['*', '.js', '.vue', '.json'] 47 | }, 48 | devServer: { 49 | historyApiFallback: true, 50 | noInfo: true, 51 | overlay: true 52 | }, 53 | performance: { 54 | hints: false 55 | }, 56 | devtool: '#eval-source-map' 57 | } 58 | 59 | if (process.env.NODE_ENV === 'production') { 60 | module.exports.devtool = '#source-map' 61 | // http://vue-loader.vuejs.org/en/workflow/production.html 62 | module.exports.plugins = (module.exports.plugins || []).concat([ 63 | new webpack.DefinePlugin({ 64 | 'process.env': { 65 | NODE_ENV: '"production"' 66 | } 67 | }), 68 | new webpack.optimize.UglifyJsPlugin({ 69 | sourceMap: true, 70 | compress: { 71 | warnings: false 72 | } 73 | }), 74 | new webpack.LoaderOptionsPlugin({ 75 | minimize: true 76 | }) 77 | ]) 78 | } 79 | -------------------------------------------------------------------------------- /src/RouterNav.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 53 | 54 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /docs/build/build.js: -------------------------------------------------------------------------------- 1 | !function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=5)}([function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;o=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}function m(t,e){return ii.call(t,e)}function y(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function g(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function _(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function b(t,e){for(var n in e)t[n]=e[n];return t}function w(t){for(var e={},n=0;n0&&(a=yt(a,(e||"")+"_"+n),mt(a[0])&&mt(u)&&(l[c]=R(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?mt(u)?l[c]=R(u.text+a):""!==a&&l.push(R(a)):mt(a)&&mt(u)?l[c]=R(u.text+a.text):(i(t._isVList)&&o(a.tag)&&r(a.key)&&o(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function gt(t,e){return(t.__esModule||Mi&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function _t(t,e,n,r,o){var i=Bi();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function bt(t,e,n){if(i(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;if(i(t.loading)&&o(t.loadingComp))return t.loadingComp;if(!o(t.contexts)){var a=t.contexts=[n],s=!0,u=function(){for(var t=0,e=a.length;tda&&ca[n].id>t.id;)n--;ca.splice(n+1,0,t)}else ca.push(t);fa||(fa=!0,at(Dt))}}function qt(t,e,n){ma.get=function(){return this[e][n]},ma.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ma)}function Vt(t){t._watchers=[];var e=t.$options;e.props&&zt(t,e.props),e.methods&&Zt(t,e.methods),e.data?Kt(t):P(t._data={},!0),e.computed&&Wt(t,e.computed),e.watch&&e.watch!==Ti&&Yt(t,e.watch)}function zt(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;Ki.shouldConvert=i;for(var a in e)!function(i){o.push(i);var a=Z(i,e,n,t);D(r,i,a),i in t||qt(t,"_props",i)}(a);Ki.shouldConvert=!0}function Kt(t){var e=t.$options.data;e=t._data="function"==typeof e?Jt(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);o--;){var i=n[o];r&&m(r,i)||A(i)||qt(t,"_data",i)}P(e,!0)}function Jt(t,e){try{return t.call(e,e)}catch(t){return et(t,e,"data()"),{}}}function Wt(t,e){var n=t._computedWatchers=Object.create(null),r=Li();for(var o in e){var i=e[o],a="function"==typeof i?i:i.get;r||(n[o]=new va(t,a||x,x,ya)),o in t||Gt(t,o,i)}}function Gt(t,e,n){var r=!Li();"function"==typeof n?(ma.get=r?Xt(e):n,ma.set=x):(ma.get=n.get?r&&!1!==n.cache?Xt(e):n.get:x,ma.set=n.set?n.set:x),Object.defineProperty(t,e,ma)}function Xt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Di.target&&e.depend(),e.value}}function Zt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?x:g(e[n],t)}function Yt(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(t[o])<0)&&r.push(t[o]);return r}return t}function Ee(t){this._init(t)}function je(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=_(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function Re(t){t.mixin=function(t){return this.options=G(this.options,t),this}}function Le(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=G(n.options,t),a.super=n,a.options.props&&Ie(a),a.options.computed&&Me(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,hi.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=b({},a.options),o[r]=a,a}}function Ie(t){var e=t.options.props;for(var n in e)qt(t.prototype,"_props",n)}function Me(t){var e=t.options.computed;for(var n in e)Gt(t.prototype,n,e[n])}function Ne(t){hi.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Pe(t){return t&&(t.Ctor.options.name||t.tag)}function De(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Fe(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=Pe(a.componentOptions);s&&!e(s)&&Ue(n,i,r,o)}}}function Ue(t,e,n,r){var o=t[e];o&&o!==r&&o.componentInstance.$destroy(),t[e]=null,v(n,e)}function He(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)r=r.componentInstance._vnode,r.data&&(e=Be(r.data,e));for(;o(n=n.parent);)n.data&&(e=Be(e,n.data));return qe(e.staticClass,e.class)}function Be(t,e){return{staticClass:Ve(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function qe(t,e){return o(t)||o(e)?Ve(t,ze(e)):""}function Ve(t,e){return t?e?t+" "+e:t:e||""}function ze(t){return Array.isArray(t)?Ke(t):c(t)?Je(t):"string"==typeof t?t:""}function Ke(t){for(var e,n="",r=0,i=t.length;r-1?Ga[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ga[t]=/HTMLUnknownElement/.test(e.toString())}function Xe(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Ze(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ye(t,e){return document.createElementNS(Va[t],e)}function Qe(t){return document.createTextNode(t)}function tn(t){return document.createComment(t)}function en(t,e,n){t.insertBefore(e,n)}function nn(t,e){t.removeChild(e)}function rn(t,e){t.appendChild(e)}function on(t){return t.parentNode}function an(t){return t.nextSibling}function sn(t){return t.tagName}function cn(t,e){t.textContent=e}function un(t,e,n){t.setAttribute(e,n)}function ln(t,e){var n=t.data.ref;if(n){var r=t.context,o=t.componentInstance||t.elm,i=r.$refs;e?Array.isArray(i[n])?v(i[n],o):i[n]===o&&(i[n]=void 0):t.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}function fn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&pn(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function pn(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||Xa(r)&&Xa(i)}function dn(t,e,n){var r,i,a={};for(r=e;r<=n;++r)i=t[r].key,o(i)&&(a[i]=r);return a}function hn(t,e){(t.data.directives||e.data.directives)&&vn(t,e)}function vn(t,e){var n,r,o,i=t===Qa,a=e===Qa,s=mn(t.data.directives,t.context),c=mn(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,gn(o,"update",e,t),o.def&&o.def.componentUpdated&&l.push(o)):(gn(o,"bind",e,t),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n=0&&" "===(m=t.charAt(v));v--);m&&as.test(m)||(l=!0)}}else void 0===i?(h=o+1,i=t.slice(0,o).trim()):e();if(void 0===i?i=t.slice(0,o).trim():0!==h&&e(),a)for(o=0;o-1?{exp:t.slice(0,Sa),key:'"'+t.slice(Sa+1)+'"'}:{exp:t,key:null};for(Oa=t,Sa=Ea=ja=0;!Nn();)Ta=Mn(),Pn(Ta)?Fn(Ta):91===Ta&&Dn(Ta);return{exp:t.slice(0,Ea),key:t.slice(Ea+1,ja)}}function Mn(){return Oa.charCodeAt(++Sa)}function Nn(){return Sa>=Aa}function Pn(t){return 34===t||39===t}function Dn(t){var e=1;for(Ea=Sa;!Nn();)if(t=Mn(),Pn(t))Fn(t);else if(91===t&&e++,93===t&&e--,0===e){ja=Sa;break}}function Fn(t){for(var e=t;!Nn()&&(t=Mn())!==e;);}function Un(t,e,n){Ra=n;var r=e.value,o=e.modifiers,i=t.tag,a=t.attrsMap.type;if(t.component)return Rn(t,r,o),!1;if("select"===i)qn(t,r,o);else if("input"===i&&"checkbox"===a)Hn(t,r,o);else if("input"===i&&"radio"===a)Bn(t,r,o);else if("input"===i||"textarea"===i)Vn(t,r,o);else if(!mi.isReservedTag(i))return Rn(t,r,o),!1;return!0}function Hn(t,e,n){var r=n&&n.number,o=En(t,"value")||"null",i=En(t,"true-value")||"true",a=En(t,"false-value")||"false";An(t,"checked","Array.isArray("+e+")?_i("+e+","+o+")>-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Sn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat([$$v]))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Ln(e,"$$c")+"}",null,!0)}function Bn(t,e,n){var r=n&&n.number,o=En(t,"value")||"null";o=r?"_n("+o+")":o,An(t,"checked","_q("+e+","+o+")"),Sn(t,"change",Ln(e,o),null,!0)}function qn(t,e,n){var r=n&&n.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",i="var $$selectedVal = "+o+";";i=i+" "+Ln(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Sn(t,"change",i,null,!0)}function Vn(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?ss:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Ln(e,l);c&&(f="if($event.target.composing)return;"+f),An(t,"value","("+e+")"),Sn(t,u,f,null,!0),(s||a)&&Sn(t,"blur","$forceUpdate()")}function zn(t){if(o(t[ss])){var e=Ci?"change":"input";t[e]=[].concat(t[ss],t[e]||[]),delete t[ss]}o(t[cs])&&(t.change=[].concat(t[cs],t.change||[]),delete t[cs])}function Kn(t,e,n){var r=La;return function o(){null!==t.apply(null,arguments)&&Wn(e,o,n,r)}}function Jn(t,e,n,r,o){e=it(e),n&&(e=Kn(e,t,r)),La.addEventListener(t,e,Si?{capture:r,passive:o}:r)}function Wn(t,e,n,r){(r||La).removeEventListener(t,e._withTask||e,n)}function Gn(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};La=e.elm,zn(n),lt(n,o,Jn,Wn,e.context),La=void 0}}function Xn(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};o(c.__ob__)&&(c=e.data.domProps=b({},c));for(n in s)r(c[n])&&(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=i;var u=r(i)?"":String(i);Zn(a,u)&&(a.value=u)}else a[n]=i}}}function Zn(t,e){return!t.composing&&("OPTION"===t.tagName||Yn(t,e)||Qn(t,e))}function Yn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Qn(t,e){var n=t.value,r=t._vModifiers;return o(r)&&r.number?d(n)!==d(e):o(r)&&r.trim?n.trim()!==e.trim():n!==e}function tr(t){var e=er(t.style);return t.staticStyle?b(t.staticStyle,e):e}function er(t){return Array.isArray(t)?w(t):"string"==typeof t?fs(t):t}function nr(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)o=o.componentInstance._vnode,o.data&&(n=tr(o.data))&&b(r,n);(n=tr(t.data))&&b(r,n);for(var i=t;i=i.parent;)i.data&&(n=tr(i.data))&&b(r,n);return r}function rr(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,c=e.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,p=er(e.data.style)||{};e.data.normalizedStyle=o(p.__ob__)?b({},p):p;var d=nr(e,!0);for(s in f)r(d[s])&&hs(c,s,"");for(s in d)(a=d[s])!==f[s]&&hs(c,s,null==a?"":a)}}function or(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ir(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ar(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&b(e,gs(t.name||"v")),b(e,t),e}return"string"==typeof t?gs(t):void 0}}function sr(t){As(function(){As(t)})}function cr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),or(t,e))}function ur(t,e){t._transitionClasses&&v(t._transitionClasses,e),ir(t,e)}function lr(t,e,n){var r=fr(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===bs?Cs:ks,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=bs,l=a,f=i.length):e===ws?u>0&&(n=ws,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?bs:ws:null,f=n?n===bs?i.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===bs&&Os.test(r[xs+"Property"])}}function pr(t,e){for(;t.length1}function gr(t,e){!0!==e.data.show&&hr(e)}function _r(t,e,n){br(t,e,n),(Ci||ki)&&setTimeout(function(){br(t,e,n)},0)}function br(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s-1,a.selected!==i&&(a.selected=i);else if(C(xr(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function wr(t,e){return e.every(function(e){return!C(e,t)})}function xr(t){return"_value"in t?t._value:t.value}function Cr(t){t.target.composing=!0}function $r(t){t.target.composing&&(t.target.composing=!1,kr(t.target,"input"))}function kr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ar(t){return!t.componentInstance||t.data&&t.data.transition?t:Ar(t.componentInstance._vnode)}function Or(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Or(xt(e.children)):t}function Tr(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[si(i)]=o[i];return e}function Sr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Er(t){for(;t=t.parent;)if(t.data.transition)return!0}function jr(t,e){return e.key===t.key&&e.tag===t.tag}function Rr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Lr(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ir(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function Mr(t,e){var n=e?qs(e):Hs;if(n.test(t)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(t);){o=r.index,o>a&&i.push(JSON.stringify(t.slice(a,o)));var s=xn(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)e.end&&e.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var o,i,a=[],s=e.expectHTML,c=e.isUnaryTag||fi,u=e.canBeLeftOpenTag||fi,l=0;t;){if(o=t,i&&yc(i)){var f=0,p=i.toLowerCase(),d=gc[p]||(gc[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=t.replace(d,function(t,n,r){return f=r.length,yc(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),Cc(p,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-h.length,t=h,r(p,l-f,l)}else{var v=t.indexOf("<");if(0===v){if(rc.test(t)){var m=t.indexOf("--\x3e");if(m>=0){e.shouldKeepComment&&e.comment(t.substring(4,m)),n(m+3);continue}}if(oc.test(t)){var y=t.indexOf("]>");if(y>=0){n(y+2);continue}}var g=t.match(nc);if(g){n(g[0].length);continue}var _=t.match(ec);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var w=function(){var e=t.match(Qs);if(e){var r={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var o,i;!(o=t.match(tc))&&(i=t.match(Xs));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=l,r}}();if(w){!function(t){var n=t.tagName,o=t.unarySlash;s&&("p"===i&&Gs(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=t.attrs.length,p=new Array(f),d=0;d=0){for(C=t.slice(v);!(ec.test(C)||Qs.test(C)||rc.test(C)||oc.test(C)||($=C.indexOf("<",1))<0);)v+=$,C=t.slice(v);x=t.substring(0,v),n(v)}v<0&&(x=t,t=""),e.chars&&x&&e.chars(x)}if(t===o){e.chars&&e.chars(t);break}}r()}function Br(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ao(e),parent:n,children:[]}}function qr(t,e){function n(t){t.pre&&(s=!1),fc(t.tag)&&(c=!1)}ac=e.warn||$n,fc=e.isPreTag||fi,pc=e.mustUseProp||fi,dc=e.getTagNamespace||fi,cc=kn(e.modules,"transformNode"),uc=kn(e.modules,"preTransformNode"),lc=kn(e.modules,"postTransformNode"),sc=e.delimiters;var r,o,i=[],a=!1!==e.preserveWhitespace,s=!1,c=!1;return Hr(t,{warn:ac,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,a,u){var l=o&&o.ns||dc(t);Ci&&"svg"===l&&(a=uo(a));var f=Br(t,a,o);l&&(f.ns=l),co(f)&&!Li()&&(f.forbidden=!0);for(var p=0;p':'
',mc.innerHTML.indexOf(" ")>0}function ti(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*! 2 | * Vue.js v2.5.8 3 | * (c) 2014-2017 Evan You 4 | * Released under the MIT License. 5 | */ 6 | var ei=Object.freeze({}),ni=Object.prototype.toString,ri=h("slot,component",!0),oi=h("key,ref,slot,slot-scope,is"),ii=Object.prototype.hasOwnProperty,ai=/-(\w)/g,si=y(function(t){return t.replace(ai,function(t,e){return e?e.toUpperCase():""})}),ci=y(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),ui=/\B([A-Z])/g,li=y(function(t){return t.replace(ui,"-$1").toLowerCase()}),fi=function(t,e,n){return!1},pi=function(t){return t},di="data-server-rendered",hi=["component","directive","filter"],vi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],mi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:fi,isReservedAttr:fi,isUnknownElement:fi,getTagNamespace:x,parsePlatformTagName:pi,mustUseProp:fi,_lifecycleHooks:vi},yi=/[^\w.$]/,gi="__proto__"in{},_i="undefined"!=typeof window,bi="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,wi=bi&&WXEnvironment.platform.toLowerCase(),xi=_i&&window.navigator.userAgent.toLowerCase(),Ci=xi&&/msie|trident/.test(xi),$i=xi&&xi.indexOf("msie 9.0")>0,ki=xi&&xi.indexOf("edge/")>0,Ai=xi&&xi.indexOf("android")>0||"android"===wi,Oi=xi&&/iphone|ipad|ipod|ios/.test(xi)||"ios"===wi,Ti=(xi&&/chrome\/\d+/.test(xi),{}.watch),Si=!1;if(_i)try{var Ei={};Object.defineProperty(Ei,"passive",{get:function(){Si=!0}}),window.addEventListener("test-passive",null,Ei)}catch(t){}var ji,Ri,Li=function(){return void 0===ji&&(ji=!_i&&void 0!==t&&"server"===t.process.env.VUE_ENV),ji},Ii=_i&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Mi="undefined"!=typeof Symbol&&S(Symbol)&&"undefined"!=typeof Reflect&&S(Reflect.ownKeys);Ri="undefined"!=typeof Set&&S(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Ni=x,Pi=0,Di=function(){this.id=Pi++,this.subs=[]};Di.prototype.addSub=function(t){this.subs.push(t)},Di.prototype.removeSub=function(t){v(this.subs,t)},Di.prototype.depend=function(){Di.target&&Di.target.addDep(this)},Di.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e1?_(n):n;for(var r=_(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Ue(c,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},ka={KeepAlive:$a};!function(t){var e={};e.get=function(){return mi},Object.defineProperty(t,"config",e),t.util={warn:Ni,extend:b,mergeOptions:G,defineReactive:D},t.set=F,t.delete=U,t.nextTick=at,t.options=Object.create(null),hi.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,b(t.options.components,ka),je(t),Re(t),Le(t),Ne(t)}(Ee),Object.defineProperty(Ee.prototype,"$isServer",{get:Li}),Object.defineProperty(Ee.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Ee.version="2.5.8";var Aa,Oa,Ta,Sa,Ea,ja,Ra,La,Ia,Ma=h("style,class"),Na=h("input,textarea,option,select,progress"),Pa=function(t,e,n){return"value"===n&&Na(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Da=h("contenteditable,draggable,spellcheck"),Fa=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ua="http://www.w3.org/1999/xlink",Ha=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ba=function(t){return Ha(t)?t.slice(6,t.length):""},qa=function(t){return null==t||!1===t},Va={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},za=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ka=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ja=function(t){return"pre"===t},Wa=function(t){return za(t)||Ka(t)},Ga=Object.create(null),Xa=h("text,number,password,search,email,tel,url"),Za=Object.freeze({createElement:Ze,createElementNS:Ye,createTextNode:Qe,createComment:tn,insertBefore:en,removeChild:nn,appendChild:rn,parentNode:on,nextSibling:an,tagName:sn,setTextContent:cn,setAttribute:un}),Ya={create:function(t,e){ln(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ln(t,!0),ln(e))},destroy:function(t){ln(t,!0)}},Qa=new Ui("",{},[]),ts=["create","activate","update","remove","destroy"],es={create:hn,update:hn,destroy:function(t){hn(t,Qa)}},ns=Object.create(null),rs=[Ya,es],os={create:_n,update:_n},is={create:wn,update:wn},as=/[\w).+\-_$\]]/,ss="__r",cs="__c",us={create:Gn,update:Gn},ls={create:Xn,update:Xn},fs=y(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),ps=/^--/,ds=/\s*!important$/,hs=function(t,e,n){if(ps.test(e))t.style.setProperty(e,n);else if(ds.test(n))t.style.setProperty(e,n.replace(ds,""),"important");else{var r=ms(e);if(Array.isArray(n))for(var o=0,i=n.length;oh?(f=r(n[y+1])?null:n[y+1].elm,g(t,f,n,d,y,i)):d>y&&b(t,e,p,h)}function C(t,e,n,r){for(var i=n;i\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Zs="[a-zA-Z_][\\w\\-\\.]*",Ys="((?:"+Zs+"\\:)?"+Zs+")",Qs=new RegExp("^<"+Ys),tc=/^\s*(\/?)>/,ec=new RegExp("^<\\/"+Ys+"[^>]*>"),nc=/^]+>/i,rc=/^