!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):t.VueRouter=e()}(this,function(){"use strict";functionl(t){return-1<Object.prototype.toString.call(t).indexOf("Error")}functionk(t,e){for(varrine)t[r]=e[r];returnt}vari={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){varr=e.props,n=e.children,o=e.parent,i=e.data;i.routerView=!0;for(vara=o.$createElement,s=r.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),p=0,f=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&p++,o._inactive&&(f=!0),o=o.$parent;if(i.routerViewDepth=p,f)returna(c[s],i,n);varh=u.matched[p];if(!h)returnc[s]=null,a();varl=c[s]=h.components[s];i.registerRouteInstance=function(t,e){varr=h.instances[s];(e&&r!==t||!e&&r===t)&&(h.instances[s]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){h.instances[s]=e.componentInstance};vard=i.props=function(t,e){switch(typeofe){case"undefined":return;case"object":returne;case"function":returne(t);case"boolean":returne?t.params:void0}}(u,h.props&&h.props[s]);if(d){d=i.props=k({},d);vary=i.attrs=i.attrs||{};for(varvind)l.props&&vinl.props||(y[v]=d[v],deleted[v])}returna(l,i,n)}};vare=/[!'()*]/g,r=function(t){return"%"+t.charCodeAt(0).toString(16)},n=/%2C/g,o=function(t){returnencodeURIComponent(t).replace(e,r).replace(n,",")},a=decodeURIComponent;functionh(t){varo={};return(t=t.trim().replace(/^(\?|#|&)/,""))&&t.split("&").forEach(function(t){vare=t.replace(/\+/g,"").split("="),r=a(e.shift()),n=0<e.length?a(e.join("=")):null;void0===o[r]?o[r]=n:Array.isArray(o[r])?o[r].push(n):o[r]=[o[r],n]}),o}functions(n){vart=n?Object.keys(n).map(function(e){vart=n[e];if(void0===t)return"";if(null===t)returno(e);if(Array.isArray(t)){varr=[];returnt.forEach(function(t){void0!==t&&(null===t?r.push(o(e)):r.push(o(e)+"="+o(t)))}),r.join("&")}returno(e)+"="+o(t)}).filter(function(t){return0<t.length}).join("&"):null;returnt?"?"+t:""}varE=/\/?$/;functionj(t,e,r,n){varo=n&&n.options.stringifyQuery,i=e.query||{};try{i=u(i)}catch(t){}vara={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",type:e.type,query:i,params:e.params||{},fullPath:c(e,o),matched:t?function(t){vare=[];for(;t;)e.unshift(t),t=t.parent;returne}(t):[]};returnr&&(a.redirectedFrom=c(r,o)),Object.freeze(a)}functionu(t){if(Array.isArray(t))returnt.map(u);if(t&&"object"==typeoft){vare={};for(varrint)e[r]=u(t[r]);returne}returnt}varO=j(null,{path:"/"});functionc(t,e){varr=t.path,n=t.query;void0===n&&(n={});varo=t.hash;returnvoid0===o&&(o=""),(r||"/")+(e||s)(n)+o}functionC(n,o){if(void0===n&&(n={}),void0===o&&(o={}),!n||!o)returnn===o;vart=Object.keys(n),e=Object.keys(o);returnt.length===e.length&&t.every(function(t){vare=n[t],r=o[t];return"object"==typeofe&&"object"==typeofr?C(e,r):String(e)===String(r)})}vard,t=[String,Object],p=[String,Array],f={name:"RouterLink",props:{to:{type:t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:p,default:"click"}},render:function(t){vare,r,n,o,i=this,a=this.$router,s=this.$route,u=a.resolve(this.to,s,this.append),c=u.location,p=u.route,f=u.href,h={},l=a.options.linkActiveClass,d=a.options.linkExactActiveClass,y=null==l?"router-link-active":l,v=null==d?"router-link-exact-active":d,m=null==this.activeClass?y:this.activeClass,g=null==this.exactActiveClass?v:this.exactActiveClass,_=c.path?j(null,c,null,a):p;h[g]=(e=s,(r=_)===O?e===r:!!r&&(e.path&&r.path?e.path.replace(E,"")===r.path.replace(E,"")&&e.hash===r.hash&&C(e.query,r.query):!(!e.name||!r.name)&&e.name===r.name&&e.hash===r.hash&&C(e.query,r.query)&&C(e.params,r.params))),h[m]=this.exact?h[g]:(o=_,0===(n=s).path.replace(E,"/").indexOf(o.path.replace(E,"/"))&&(!o.hash||n.hash===o.hash)&&function(t,e){for(varrine)if(!(rint))return!1;return!0}(n.query,o.query));varb=function(t){T(t)&&(i.replace?a.replace(c):a.push(c))},w={click:T};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=b}):w[this.event]=b;varx={class:h};if("a"===this.tag)x.on=w,x.attrs={href:f};else{varR=functiont(e){if(e)for(varr,n=0;n<e.length;n++){if("a"===(r=e[n]).tag)returnr;if(r.children&&(r=t(r.children)))returnr}}(this.$slots.default);if(R)R.isStatic=!1,(R.data=k({},R.data)).on=w,(R.data.attrs=k({},R.data.attrs)).href=f;elsex.on=w}returnt(this.tag,x,this.$slots.default)}};functionT(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){vare=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}returnt.preventDefault&&t.preventDefault(),!0}}vary="undefined"!=typeofwindow;functionm(t,e,r){varn=t.charAt(0);if("/"===n)returnt;if("?"===n||"#"===n)returne+t;varo=e.split("/");r&&o[o.length-1]||o.pop();for(vari=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){vars=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}functionv(t){returnt.replace(/\/\//g,"/")}varg=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},_=M,b=S,w=function(t,e){returnL(S(t,e))},x=L,R=I,A=newRegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");functionS(t,e){for(varr,n,o=[],i=0,a=0,s="",u=e&&e.delimiter||"/";null!=(r=A.exec(t));){varc=r[0],p=r[1],f=r.index;if(s+=t.slice(a,f),a=f+c.length,p)s+=p[1];else{varh=t[a],l=r[2],d=r[3],y=r[4],v=r[5],m=r[6],g=r[7];s&&(o.push(s),s="");var_=null!=l&&null!=h&&h!==l,b="+"===m||"*"===m,w="?"===m||"*"===m,x=r[2]||u,R=y||v;o.push({name:d||i++,prefix:l||"",delimiter:x,optional:w,repeat:b,partial:_,asterisk:!!g,pattern:R?(n=R,n.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+q(x)+"]+?"})}}returna<t.length&&(s+=t.substr(a)),s&&o.push(s),o}function$(t){returnencodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}functionL(p){for(varf=newArray(p.length),t=0;t<p.length;t++)"object"==typeofp[t]&&(f[t]=newRegExp("^(?:"+p[t].pattern+")$"));returnfunction(t,e){for(varr="",n=t||{},o=(e||{}).pretty?$:encodeURIComponent,i=0;i<p.length;i++){vara=p[i];if("string"!=typeofa){vars,u=n[a.name];if(null==u){if(a.optional){a.partial&&(r+=a.prefix);continue}thrownewTypeError('Expected "'+a.name+'" to be defined')}if(g(u)){if(!a.repeat)thrownewTypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(a.optional)continue;thrownewTypeError('Expected "'+a.name+'" to not be empty')}for(varc=0;c<u.length;c++){if(s=o(u[c]),!f[i].test(s))thrownewTypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(s)+"`");r+=(0===c?a.prefix:a.delimiter)+s}}else{if(s=a.asterisk?encodeURI(u).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(u),!f[i].test(s))thrownewTypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+s+'"');r+=a.prefix+s}}elser+=a}returnr}}functionq(t){returnt.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}functionP(t,e){returnt.keys=e,t}functionU(t){returnt.sensitive?"":"i"}functionI(t,e,r){g(e)||(r=e||r,e=[]);for(varn=(r=r||{}).strict,o=!1!==r.end,i="",a=0;a<t.length;a++){vars=t[a];if("string"==typeofs)i+=q(s);else{varu=q(s.prefix),c="(?:"+s.pattern+")";e.push(s),s.repeat&&(c+="(?:"+u+c+")*"),i+=c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")"}}varp=q(r.delimiter||"/"),f=i.slice(-p.length)===p;returnn||(i=(f?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":n&&f?"":"(?="+p+"|$)",P(newRegExp("^"+i,U(r)),e)}functionM(t,e,r){returng(e)||(r=e||r,e=[]),r=r||{},tinstanceofRegExp?function(t,e){varr=t.source.match(/\((?!\?)/g);if(r)for(varn=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});returnP(t,e)}(t,e):g(t)?function(t,e,r){for(varn=[],o=0;o<t.length;o++)n.push(M(t[o],e,r).source);returnP(newRegExp("(?:"+n.join("|")+")",U(r)),e)}(t,e,r):(n=e,I(S(t,o=r),n,o));varn,o}_.parse=b,_.compile=w,_.tokensToFunction=x,_.tokensToRegExp=R;varV=Object.create(null);functionB(t,e,r){try{return(V[t]||(V[t]=_.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}functionH(t,e,r,n){varo=e||[],i=r||Object.create(null),a=n||Object.create(null);t.forEach(function(t){!functionr(n,o,i,a,s,u){vart=a.path;vare=a.name;varc=a.pathToRegexpOptions||{};varp=function(t,e,r){r||(t=t.replace(/\/$/,""));if("/"===t[0])returnt;if(null==e)returnt;returnv(e.path+"/"+t)}(t,s,c.strict);"boolean"==typeofa.caseSensitive&&(c.sensitive=a.caseSensitive);varf={path:p,regex:(h=p,l=c,_(h,[],l)),components:a.components||{default:a.component},instances:{},name:e,parent:s,matchAs:u,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{},props:null==a.props?{}:a.components?a.props:{default:a.props}};varh,l;a.children&&a.children.forEach(function(t){vare=u?v(u+"/"+t.path):void0;r(n,o,i,t,f,e)});if(void0!==a.alias){vard=Array.isArray(a.alias)?a.alias:[a.alias];d.forEach(function(t){vare={path:t,children:a.children};r(n,o,i,e,s,f.path||"/")})}o[f.path]||(n.push(f.path),o[f.path]=f);e&&(i[e]||(i[e]=f))}(o,i,a,t)});for(vars=0,u=o.length;s<u;s++)"*"===o[s]&&(o.push(o.splice(s,1)[0]),u--,s--);return{pathList:o,pathMap:i,nameMap:a}}functionz(t,e,r,n){varo="string"==typeoft?{path:t}:t;if(o.name||o._normalized)returno;if(!o.path&&o.params&&e){(o=k({},o))._normalized=!0;vari=k(k({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;elseif(e.matched.length){vara=e.matched[e.matched.length-1].path;o.path=B(a,i,e.path)}returno}vars=function(t){vare="",r="",n=t.indexOf("#");0<=n&&(e=t.slice(n),t=t.slice(0,n));varo=t.indexOf("?");return0<=o&&(r=t.slice(o+1),t=t.slice(0,o)),{path:t,query:r,hash:e}}(o.path||""),u=e&&e.path||"/",c=s.path?m(s.path,u,r||o.append):u,p=function(t,e,r){void0===e&&(e={});varn,o=r||h;try{n=o(t||"")}catch(t){n={}}for(variine)n[i]=e[i];returnn}(s.query,o.query,n&&n.options.parseQuery),f=o.hash||s.hash;returnf&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,type:o.type,params:o.params||{},path:c,query:p,hash:f}}functionD(t,h){vare=H(t),f=e.pathList,l=e.pathMap,d=e.nameMap;functiony(t,e,r){varn=z(t,e,!1,h),o=n.name;if(o){vari=d[o];if(!i)returnv(null,n);vara=i.regex.keys.filter(function(t){return!t.optional}).map(function(t){returnt.name});if("object"!=typeofn.params&&(n.params={}),e&&"object"==typeofe.params)for(varsine.params)!(sinn.params)&&-1<a.indexOf(s)&&(n.params[s]=e.params[s]);if(i)returnn.path=B(i.path,n.params),v(i,n,r)}elseif(n.path){n.params=n.params||{};for(varu=0;u<f.length;u++){varc=f[u],p=l[c];if(F(p.regex,n.path,n.params))returnv(p,n,r)}}returnv(null,n)}functionn(t,e){varr=t.redirect,n="function"==typeofr?r(j(t,e,null,h)):r;if("string"==typeofn&&(n={path:n}),!n||"object"!=typeofn)returnv(null,e);varo,i=n,a=i.name,s=i.path,u=e.query,c=e.hash,p=e.params;if(u=i.hasOwnProperty("query")?i.query:u,c=i.hasOwnProperty("hash")?i.hash:c,p=i.hasOwnProperty("params")?i.params:p,a){d[a];returny({_normalized:!0,name:a,query:u,hash:c,params:p},void0,e)}if(s){varf=m(s,(o=t).parent?o.parent.path:"/",!0);returny({_normalized:!0,path:B(f,p),query:u,hash:c},void0,e)}returnv(null,e)}functionv(t,e,r){returnt&&t.redirect?n(t,r||e):t&&t.matchAs?function(t,e,r){varn=y({_normalized:!0,path:B(r,e.params)});if(n){varo=n.matched,i=o[o.length-1];returne.params=n.params,v(i,e)}returnv(null,e)}(0,e,t.matchAs):(e.params=e.params||{},t&&t.meta&&t.meta.id?e.params.__id__=t.meta.id:e.params.__id__||(e.params.__id__=h.id),t&&t.meta&&t.meta.name&&(t.meta.id?t.components.default.name=t.meta.name+"-"+e.params.__id__:(t=Object.assign({},t)).components={default:{name:t.meta.name+"-"+e.params.__id__,render:t.components.default.render}}),j(t,e,r,h))}return{match:y,addRoutes:function(t){H(t,f,l,d)}}}functionF(t,e,r){varn=e.match(t);if(!n)return!1;if(!r)return!0;for(varo=1,i=n.length;o<i;++o){vara=t.keys[o-1],s="string"==typeofn[o]?decodeURIComponent(n[o]):n[o];a&&(r[a.name||"pathMatch"]=s)}return!0}varK=Object.create(null);functionJ(t){window.history.replaceState({key:ot(),id:t.currentRoute&&t.currentRoute.params.__id__||t.id},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",function(t){vare;Q(),t.state&&t.state.key&&(e=t.state.key,rt=e)})}functionN(r,n,o,i){if(r.app){vara=r.options.scrollBehavior;a&&r.app.$nextTick(function(){vare=function(){vart=ot();if(t)returnK[t]}(),t=a.call(r,n,o,i?e:null);t&&("function"==typeoft.then?t.then(function(t){G(t,e)}).catch(function(t){}):G(t,e))})}}functionQ(){vart=ot();t&&(K[t]={x:window.pageXOffset,y:window.pageYOffset})}functionX(t){returnW(t.x)||W(t.y)}functionY(t){return{x:W(t.x)?t.x:window.pageXOffset,y:W(t.y)?t.y:window.pageYOffset}}functionW(t){return"number"==typeoft}functionG(t,e){varr,n,o,i,a,s="object"==typeoft;if(s&&"string"==typeoft.selector){varu=document.querySelector(t.selector);if(u){varc=t.offset&&"object"==typeoft.offset?t.offset:{};c={x:W((a=c).x)?a.x:0,y:W(a.y)?a.y:0},r=u,n=c,o=document.documentElement.getBoundingClientRect(),e={x:(i=r.getBoundingClientRect()).left-o.left-n.x,y:i.top-o.top-n.y}}elseX(t)&&(e=Y(t))}elses&&X(t)&&(e=Y(t));e&&window.scrollTo(e.x,e.y)}varZ,tt=y&&((-1===(Z=window.navigator.userAgent).indexOf("Android 2.")&&-1===Z.indexOf("Android 4.0")||-1===Z.indexOf("Mobile Safari")||-1!==Z.indexOf("Chrome")||-1!==Z.indexOf("Windows Phone"))&&window.history&&"pushState"inwindow.history),et=y&&window.performance&&window.performance.now?window.performance:Date,rt=nt();functionnt(){returnet.now().toFixed(3)}functionot(){returnrt}functionit(e,t,r){Q();varn=window.history;try{r?n.replaceState({id:t,key:rt},"",e):(rt=nt(),n.pushState({id:t,key:rt},"",e))}catch(t){window.location[r?"replace":"assign"](e)}}functionat(t,e){it(t,e,!0)}functionst(e,r,n){varo=function(t){t>=e.length?n():e[t]?r(e[t],function(){o(t+1)}):o(t+1)};o(0)}functionut(r){returnfunction(t,e,u){varc=!1,p=0,f=null;ct(r,function(r,t,n,o){if("function"==typeofr&&void0===r.cid){c=!0,p++;vare,i=ht(function(t){vare;((e=t).__esModule||ft&&"Module"===e[Symbol.toStringTag])&&(t=t.default),r.resolved="function"==typeoft?t:d.extend(t),n.components[o]=t,--p<=0&&u()}),a=ht(function(t){vare="Failed to resolve async component "+o+": "+t;f||(f=l(t)?t:newError(e),u(f))});try{e=r(i,a)}catch(t){a(t)}if(e)if("function"==typeofe.then)e.then(i,a);else{vars=e.component;s&&"function"==typeofs.then&&s.then(i,a)}}}),c||u()}}functionct(t,r){returnpt(t.map(function(e){returnObject.keys(e.components).map(function(t){returnr(e.components[t],e.instances[t],e,t)})}))}functionpt(t){returnArray.prototype.concat.apply([],t)}varft="function"==typeofSymbol&&"symbol"==typeofSymbol.toStringTag;functionht(r){varn=!1;returnfunction(){for(vart=[],e=arguments.length;e--;)t[e]=arguments[e];if(!n)returnn=!0,r.apply(this,t)}}varlt=function(t,e){this.router=t,this.base=function(t){if(!t)if(y){vare=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}elset="/";"/"!==t.charAt(0)&&(t="/"+t);returnt.replace(/\/$/,"")}(e),this.current=O,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};functiondt(t,i,a,e){varr=ct(t,function(t,e,r,n){varo=function(t,e){"function"!=typeoft&&(t=d.extend(t));returnt.options[e]}(t,i);if(o)returnArray.isArray(o)?o.map(function(t){returna(t,e,r,n)}):a(o,e,r,n)});returnpt(e?r.reverse():r)}functionyt(t,e){if(e)returnfunction(){returnt.apply(e,arguments)}}lt.prototype.listen=function(t){this.cb=t},lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},lt.prototype.onError=function(t){this.errorCbs.push(t)},lt.prototype.transitionTo=function(t,e,r){varn=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){n.updateRoute(o),e&&e(o),n.ensureURL(),n.ready||(n.ready=!0,n.readyCbs.forEach(function(t){t(o)}))},function(e){r&&r(e),e&&!n.ready&&(n.ready=!0,n.readyErrorCbs.forEach(function(t){t(e)}))})},lt.prototype.confirmTransition=function(r,e,t){varn=this,o=this.current,i=function(e){l(e)&&(n.errorCbs.length?n.errorCbs.forEach(function(t){t(e)}):console.error(e)),t&&t(e)},a=function(t,e){varr,n=Math.max(t.length,e.length);for(r=0;r<n&&t[r]===e[r];r++);return{updated:e.slice(0,r),activated:e.slice(r),deactivated:t.slice(r)}}(this.current.matched,r.matched),s=a.updated,u=a.deactivated,f=a.activated,c=[].concat(dt(u,"beforeRouteLeave",yt,!0),this.router.beforeHooks,dt(s,"beforeRouteUpdate",yt),f.map(function(t){returnt.beforeEnter}),ut(f));this.pending=r;varh=function(t,e){if(n.pending!==r)returni();try{t(r,o,function(t){!1===t||l(t)?(n.ensureURL(!0),i(t)):"string"==typeoft||"object"==typeoft&&("string"==typeoft.path||"string"==typeoft.name)?(i(),"object"==typeoft&&t.replace?n.replace(t):n.push(t)):e(t)})}catch(t){i(t)}};st(c,h,function(){varc,p,t=[];st((c=t,p=function(){returnn.current===r},dt(f,"beforeRouteEnter",function(t,e,r,n){returno=t,i=r,a=n,s=c,u=p,function(t,e,r){returno(t,e,function(t){r(t),"function"==typeoft&&s.push(function(){!functiont(e,r,n,o){r[n]&&!r[n]._isBeingDestroyed?e(r[n]):o()&&setTimeout(function(){t(e,r,n,o)},16)}(t,i.instances,a,u)})})};varo,i,a,s,u})).concat(n.router.resolveHooks),h,function(){if(n.pending!==r)returni();n.pending=null,e(r),n.router.app&&n.router.app.$nextTick(function(){t.forEach(function(t){t()})})})})},lt.prototype.updateRoute=function(e){varr=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(t){t&&t(e,r)})};varvt=function(t){functione(){t.apply(this,arguments)}returnt&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.setupListeners=function(){varo=this,i=this.router,t=i.options.scrollBehavior,a=tt&&t;a&&J(i);vars=mt(this.base);window.addEventListener("popstate",function(t){vare=o.current,r=mt(o.base);if(o.current!==O||r!==s){varn=t.state&&t.state.id;n||(n=i.id),o.transitionTo({path:r,params:{__id__:n}},function(t){a&&N(i,t,e,!0)})}})},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(e,r,t){varn=this;if("object"==typeofe){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}e.params=e.params||{},e.params.__id__=this.router.id}varo=this.current;this.transitionTo(e,function(t){it(v(n.base+t.fullPath),e.params.__id__),N(n.router,t,o,!1),r&&r(t)},t)},e.prototype.replace=function(e,r,t){varn=this;if("object"==typeofe){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}e.params=e.params||{},e.params.__id__=this.router.id}varo=this.current;this.transitionTo(e,function(t){at(v(n.base+t.fullPath),e.params.__id__),N(n.router,t,o,!1),r&&r(t)},t)},e.prototype.ensureURL=function(t){if(mt(this.base)!==this.current.fullPath){vare={path:v(this.base+this.current.fullPath),params:{__id__:this.current.params.__id__}};t?it(e,e.params.__id__):at(e,e.params.__id__)}},e.prototype.getCurrentLocation=function(){return{path:mt(this.base),params:{__id__:++this.router.id}}},e}(lt);functionmt(t){vare=decodeURI(window.location.pathname);returnt&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}vargt=function(n){functiont(t,e,r){n.call(this,t,e),r&&function(t){vare=mt(t);if(!/^\/#/.test(e))returnwindow.location.replace(v(t+"/#"+e)),!0}(this.base)||_t()}returnn&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.setupListeners=function(){varn=this,o=this.router,t=o.options.scrollBehavior,i=tt&&t;i&&J(o),window.addEventListener(tt?"popstate":"hashchange",function(t){vare=n.current;if(_t()){varr=t.state&&t.state.id;r||(r=o.id),n.transitionTo({path:bt(),params:{__id__:r}},function(t){i&&N(n.router,t,e,!0),tt||Rt(t.fullPath,t.params.__id__)})}})},t.prototype.push=function(t,e,r){varn=this;if("object"==typeoft){switch(t.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}t.params=t.params||{},t.params.__id__=this.router.id}varo=this.current,i=this.router.id;this.transitionTo(t,function(t){xt(t.fullPath,i),N(n.router,t,o,!1),e&&e(t)},r)},t.prototype.replace=function(t,e,r){varn=this;if("object"==typeoft){switch(t.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}t.params=t.params||{},t.params.__id__=this.router.id}varo=this.current,i=this.router.id;this.transitionTo(t,function(t){Rt(t.fullPath,i),N(n.router,t,o,!1),e&&e(t)},r)},t.prototype.go=function(t){window.history.go(t)},t.prototype.ensureURL=function(t){vare=this.current.fullPath;bt()!==e&&(t?xt(e,this.current.params.__id__):Rt(e,this.current.params.__id__))},t.prototype.getCurrentLocation=function(){return{path:bt(),params:{__id__:++this.router.id}}},t}(lt);function_t(){vart=bt();return"/"===t.charAt(0)||(Rt("/"+t),!1)}functionbt(){vart=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}functionwt(t){vare=window.location.href,r=e.indexOf("#");return(0<=r?e.slice(0,r):e)+"#"+t}functionxt(t,e){tt?it(wt(t),e):window.location.hash=t}functionRt(t,e){tt?at(wt(t),e):window.location.replace(wt(t))}varkt=function(r){functiont(t,e){r.call(this,t,e),this.stack=[],this.index=-1}returnr&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.push=function(t,e,r){varn=this;this.transitionTo(t,function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)},r)},t.prototype.replace=function(t,e,r){varn=this;this.transitionTo(t,function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)},r)},t.prototype.go=function(t){vare=this,r=this.index+t;if(!(r<0||r>=this.stack.length)){varn=this.stack[r];this.confirmTransition(n,function(){e.index=r,e.updateRoute(n)})}},t.prototype.getCurrentLocation=function(){vart=this.stack[this.stack.length-1];returnt?t.fullPath:"/"},t.prototype.ensureURL=function(){},t}(lt),Et=function(t){void0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=D(t.routes||[],this),this.id=t.id||1,this.minId=t.id||1;vare=t.mode||"hash";switch(this.fallback="history"===e&&!tt&&!1!==t.fallback,this.fallback&&(e="hash"),y||(e="abstract"),this.mode=e){case"history":this.history=newvt(this,t.base);break;case"hash":this.history=newgt(this,t.base,this.fallback);break;case"abstract":this.history=newkt(this,t.base)}},jt={currentRoute:{configurable:!0}};functionOt(e,r){returne.push(r),function(){vart=e.indexOf(r);-1<t&&e.splice(t,1)}}returnEt.prototype.match=function(t,e,r){returnthis.matcher.match(t,e,r)},jt.currentRoute.get=function(){returnthis.history&&this.history.current},Et.prototype.init=function(t){varr=this;if(this.apps.push(t),!this.app){this.app=t;vare=this.history;if(einstanceofvt){varn=function(){e.setupListeners()};e.transitionTo(e.getCurrentLocation(),n,n)}elseif(einstanceofgt){varo=function(){e.setupListeners()};e.transitionTo(e.getCurrentLocation(),o,o)}e.listen(function(e){r.apps.forEach(function(t){t._route=e})})}},Et.prototype.beforeEach=function(t){returnOt(this.beforeHooks,t)},Et.prototype.beforeResolve=function(t){returnOt(this.resolveHooks,t)},Et.prototype.afterEach=function(t){returnOt(this.afterHooks,t)},Et.prototype.onReady=function(t,e){this.history.onReady(t,e)},Et.prototype.onError=function(t){this.history.onError(t)},Et.prototype.push=function(t,e,r){this.history.push(t,e,r)},Et.prototype.replace=function(t,e,r){this.history.replace(t,e,r)},Et.prototype.go=function(t){this.history.go(t)},Et.prototype.back=function(){this.go(-1)},Et.prototype.forward=function(){this.go(1)},Et.prototype.getMatchedComponents=function(t){vare=t?t.matched?t:this.resolve(t).route:this.currentRoute;returne?[].concat.apply([],e.matched.map(function(e){returnObject.keys(e.components).map(function(t){returne.components[t]})})):[]},Et.prototype.resolve=function(t,e,r){varn,o,i,a,s=z(t,e||this.history.current,r,this),u=this.match(s,e),c=u.redirectedFrom||u.fullPath,p=this.history.base;return{location:s,route:u,href:(n=p,o=c,i=this.mode,a="hash"===i?"#"+o:o,n?v(n+"/"+a):a),normalizedTo:s,resolved:u}},Et.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==O&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Et.prototype,jt),Et.install=functiont(e){if(!t.installed||d!==e){t.installed=!0;varn=function(t){returnvoid0!==t},r=function(t,e){varr=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};(d=e).mixin({beforeCreate:function(){n(this.$options.router)?((this._routerRoot=this)._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){returnthis._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){returnthis._routerRoot._route}}),e.component("RouterView",i),e.component("RouterLink",f);varo=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Et.version="3.0.1",y&&window.Vue&&window.Vue.use(Et),Et});
\ No newline at end of file
!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):t.VueRouter=e()}(this,function(){"use strict";functionl(t){return-1<Object.prototype.toString.call(t).indexOf("Error")}functionk(t,e){for(varrine)t[r]=e[r];returnt}vari={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){varr=e.props,n=e.children,o=e.parent,i=e.data;i.routerView=!0;for(vara=o.$createElement,s=r.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),p=0,f=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&p++,o._inactive&&(f=!0),o=o.$parent;if(i.routerViewDepth=p,f)returna(c[s],i,n);varh=u.matched[p];if(!h)returnc[s]=null,a();varl=c[s]=h.components[s];i.registerRouteInstance=function(t,e){varr=h.instances[s];(e&&r!==t||!e&&r===t)&&(h.instances[s]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){h.instances[s]=e.componentInstance};vard=i.props=function(t,e){switch(typeofe){case"undefined":return;case"object":returne;case"function":returne(t);case"boolean":returne?t.params:void0}}(u,h.props&&h.props[s]);if(d){d=i.props=k({},d);vary=i.attrs=i.attrs||{};for(varvind)l.props&&vinl.props||(y[v]=d[v],deleted[v])}returna(l,i,n)}};vare=/[!'()*]/g,r=function(t){return"%"+t.charCodeAt(0).toString(16)},n=/%2C/g,o=function(t){returnencodeURIComponent(t).replace(e,r).replace(n,",")},a=decodeURIComponent;functionh(t){varo={};return(t=t.trim().replace(/^(\?|#|&)/,""))&&t.split("&").forEach(function(t){vare=t.replace(/\+/g,"").split("="),r=a(e.shift()),n=0<e.length?a(e.join("=")):null;void0===o[r]?o[r]=n:Array.isArray(o[r])?o[r].push(n):o[r]=[o[r],n]}),o}functions(n){vart=n?Object.keys(n).map(function(e){vart=n[e];if(void0===t)return"";if(null===t)returno(e);if(Array.isArray(t)){varr=[];returnt.forEach(function(t){void0!==t&&(null===t?r.push(o(e)):r.push(o(e)+"="+o(t)))}),r.join("&")}returno(e)+"="+o(t)}).filter(function(t){return0<t.length}).join("&"):null;returnt?"?"+t:""}varE=/\/?$/;functionj(t,e,r,n){varo=n&&n.options.stringifyQuery,i=e.query||{};try{i=u(i)}catch(t){}vara={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",type:e.type,query:i,params:e.params||{},fullPath:c(e,o),matched:t?function(t){vare=[];for(;t;)e.unshift(t),t=t.parent;returne}(t):[]};returnr&&(a.redirectedFrom=c(r,o)),Object.freeze(a)}functionu(t){if(Array.isArray(t))returnt.map(u);if(t&&"object"==typeoft){vare={};for(varrint)e[r]=u(t[r]);returne}returnt}varO=j(null,{path:"/"});functionc(t,e){varr=t.path,n=t.query;void0===n&&(n={});varo=t.hash;returnvoid0===o&&(o=""),(r||"/")+(e||s)(n)+o}functionC(n,o){if(void0===n&&(n={}),void0===o&&(o={}),!n||!o)returnn===o;vart=Object.keys(n),e=Object.keys(o);returnt.length===e.length&&t.every(function(t){vare=n[t],r=o[t];return"object"==typeofe&&"object"==typeofr?C(e,r):String(e)===String(r)})}vard,t=[String,Object],p=[String,Array],f={name:"RouterLink",props:{to:{type:t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:p,default:"click"}},render:function(t){vare,r,n,o,i=this,a=this.$router,s=this.$route,u=a.resolve(this.to,s,this.append),c=u.location,p=u.route,f=u.href,h={},l=a.options.linkActiveClass,d=a.options.linkExactActiveClass,y=null==l?"router-link-active":l,v=null==d?"router-link-exact-active":d,m=null==this.activeClass?y:this.activeClass,g=null==this.exactActiveClass?v:this.exactActiveClass,_=c.path?j(null,c,null,a):p;h[g]=(e=s,(r=_)===O?e===r:!!r&&(e.path&&r.path?e.path.replace(E,"")===r.path.replace(E,"")&&e.hash===r.hash&&C(e.query,r.query):!(!e.name||!r.name)&&e.name===r.name&&e.hash===r.hash&&C(e.query,r.query)&&C(e.params,r.params))),h[m]=this.exact?h[g]:(o=_,0===(n=s).path.replace(E,"/").indexOf(o.path.replace(E,"/"))&&(!o.hash||n.hash===o.hash)&&function(t,e){for(varrine)if(!(rint))return!1;return!0}(n.query,o.query));varb=function(t){T(t)&&(i.replace?a.replace(c):a.push(c))},w={click:T};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=b}):w[this.event]=b;varx={class:h};if("a"===this.tag)x.on=w,x.attrs={href:f};else{varR=functiont(e){if(e)for(varr,n=0;n<e.length;n++){if("a"===(r=e[n]).tag)returnr;if(r.children&&(r=t(r.children)))returnr}}(this.$slots.default);if(R)R.isStatic=!1,(R.data=k({},R.data)).on=w,(R.data.attrs=k({},R.data.attrs)).href=f;elsex.on=w}returnt(this.tag,x,this.$slots.default)}};functionT(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){vare=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}returnt.preventDefault&&t.preventDefault(),!0}}vary="undefined"!=typeofwindow;functionm(t,e,r){varn=t.charAt(0);if("/"===n)returnt;if("?"===n||"#"===n)returne+t;varo=e.split("/");r&&o[o.length-1]||o.pop();for(vari=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){vars=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}functionv(t){returnt.replace(/\/\//g,"/")}varg=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},_=M,b=S,w=function(t,e){returnL(S(t,e))},x=L,R=I,A=newRegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");functionS(t,e){for(varr,n,o=[],i=0,a=0,s="",u=e&&e.delimiter||"/";null!=(r=A.exec(t));){varc=r[0],p=r[1],f=r.index;if(s+=t.slice(a,f),a=f+c.length,p)s+=p[1];else{varh=t[a],l=r[2],d=r[3],y=r[4],v=r[5],m=r[6],g=r[7];s&&(o.push(s),s="");var_=null!=l&&null!=h&&h!==l,b="+"===m||"*"===m,w="?"===m||"*"===m,x=r[2]||u,R=y||v;o.push({name:d||i++,prefix:l||"",delimiter:x,optional:w,repeat:b,partial:_,asterisk:!!g,pattern:R?(n=R,n.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+q(x)+"]+?"})}}returna<t.length&&(s+=t.substr(a)),s&&o.push(s),o}function$(t){returnencodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}functionL(p){for(varf=newArray(p.length),t=0;t<p.length;t++)"object"==typeofp[t]&&(f[t]=newRegExp("^(?:"+p[t].pattern+")$"));returnfunction(t,e){for(varr="",n=t||{},o=(e||{}).pretty?$:encodeURIComponent,i=0;i<p.length;i++){vara=p[i];if("string"!=typeofa){vars,u=n[a.name];if(null==u){if(a.optional){a.partial&&(r+=a.prefix);continue}thrownewTypeError('Expected "'+a.name+'" to be defined')}if(g(u)){if(!a.repeat)thrownewTypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(a.optional)continue;thrownewTypeError('Expected "'+a.name+'" to not be empty')}for(varc=0;c<u.length;c++){if(s=o(u[c]),!f[i].test(s))thrownewTypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(s)+"`");r+=(0===c?a.prefix:a.delimiter)+s}}else{if(s=a.asterisk?encodeURI(u).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(u),!f[i].test(s))thrownewTypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+s+'"');r+=a.prefix+s}}elser+=a}returnr}}functionq(t){returnt.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}functionP(t,e){returnt.keys=e,t}functionU(t){returnt.sensitive?"":"i"}functionI(t,e,r){g(e)||(r=e||r,e=[]);for(varn=(r=r||{}).strict,o=!1!==r.end,i="",a=0;a<t.length;a++){vars=t[a];if("string"==typeofs)i+=q(s);else{varu=q(s.prefix),c="(?:"+s.pattern+")";e.push(s),s.repeat&&(c+="(?:"+u+c+")*"),i+=c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")"}}varp=q(r.delimiter||"/"),f=i.slice(-p.length)===p;returnn||(i=(f?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":n&&f?"":"(?="+p+"|$)",P(newRegExp("^"+i,U(r)),e)}functionM(t,e,r){returng(e)||(r=e||r,e=[]),r=r||{},tinstanceofRegExp?function(t,e){varr=t.source.match(/\((?!\?)/g);if(r)for(varn=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});returnP(t,e)}(t,e):g(t)?function(t,e,r){for(varn=[],o=0;o<t.length;o++)n.push(M(t[o],e,r).source);returnP(newRegExp("(?:"+n.join("|")+")",U(r)),e)}(t,e,r):(n=e,I(S(t,o=r),n,o));varn,o}_.parse=b,_.compile=w,_.tokensToFunction=x,_.tokensToRegExp=R;varB=Object.create(null);functionH(t,e,r){try{return(B[t]||(B[t]=_.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}functionV(t,e,r,n){varo=e||[],i=r||Object.create(null),a=n||Object.create(null);t.forEach(function(t){!functionr(n,o,i,a,s,u){vart=a.path;vare=a.name;varc=a.pathToRegexpOptions||{};varp=function(t,e,r){r||(t=t.replace(/\/$/,""));if("/"===t[0])returnt;if(null==e)returnt;returnv(e.path+"/"+t)}(t,s,c.strict);"boolean"==typeofa.caseSensitive&&(c.sensitive=a.caseSensitive);varf={path:p,regex:(h=p,l=c,_(h,[],l)),components:a.components||{default:a.component},instances:{},name:e,parent:s,matchAs:u,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{},props:null==a.props?{}:a.components?a.props:{default:a.props}};varh,l;a.children&&a.children.forEach(function(t){vare=u?v(u+"/"+t.path):void0;r(n,o,i,t,f,e)});if(void0!==a.alias){vard=Array.isArray(a.alias)?a.alias:[a.alias];d.forEach(function(t){vare={path:t,children:a.children};r(n,o,i,e,s,f.path||"/")})}o[f.path]||(n.push(f.path),o[f.path]=f);e&&(i[e]||(i[e]=f))}(o,i,a,t)});for(vars=0,u=o.length;s<u;s++)"*"===o[s]&&(o.push(o.splice(s,1)[0]),u--,s--);return{pathList:o,pathMap:i,nameMap:a}}functionz(t,e,r,n){varo="string"==typeoft?{path:t}:t;if(o.name||o._normalized)returno;if(!o.path&&o.params&&e){(o=k({},o))._normalized=!0;vari=k(k({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;elseif(e.matched.length){vara=e.matched[e.matched.length-1].path;o.path=H(a,i,e.path)}returno}vars=function(t){vare="",r="",n=t.indexOf("#");0<=n&&(e=t.slice(n),t=t.slice(0,n));varo=t.indexOf("?");return0<=o&&(r=t.slice(o+1),t=t.slice(0,o)),{path:t,query:r,hash:e}}(o.path||""),u=e&&e.path||"/",c=s.path?m(s.path,u,r||o.append):u,p=function(t,e,r){void0===e&&(e={});varn,o=r||h;try{n=o(t||"")}catch(t){n={}}for(variine)n[i]=e[i];returnn}(s.query,o.query,n&&n.options.parseQuery),f=o.hash||s.hash;returnf&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,type:o.type,params:o.params||{},path:c,query:p,hash:f}}functionD(t,h){vare=V(t),f=e.pathList,l=e.pathMap,d=e.nameMap;functiony(t,e,r){varn=z(t,e,!1,h),o=n.name;if(o){vari=d[o];if(!i)returnv(null,n);vara=i.regex.keys.filter(function(t){return!t.optional}).map(function(t){returnt.name});if("object"!=typeofn.params&&(n.params={}),e&&"object"==typeofe.params)for(varsine.params)!(sinn.params)&&-1<a.indexOf(s)&&(n.params[s]=e.params[s]);if(i)returnn.path=H(i.path,n.params),v(i,n,r)}elseif(n.path){n.params=n.params||{};for(varu=0;u<f.length;u++){varc=f[u],p=l[c];if(F(p.regex,n.path,n.params))returnv(p,n,r)}}returnv(null,n)}functionn(t,e){varr=t.redirect,n="function"==typeofr?r(j(t,e,null,h)):r;if("string"==typeofn&&(n={path:n}),!n||"object"!=typeofn)returnv(null,e);varo,i=n,a=i.name,s=i.path,u=e.query,c=e.hash,p=e.params;if(u=i.hasOwnProperty("query")?i.query:u,c=i.hasOwnProperty("hash")?i.hash:c,p=i.hasOwnProperty("params")?i.params:p,a){d[a];returny({_normalized:!0,name:a,query:u,hash:c,params:p},void0,e)}if(s){varf=m(s,(o=t).parent?o.parent.path:"/",!0);returny({_normalized:!0,path:H(f,p),query:u,hash:c},void0,e)}returnv(null,e)}functionv(t,e,r){returnt&&t.redirect?n(t,r||e):t&&t.matchAs?function(t,e,r){varn=y({_normalized:!0,path:H(r,e.params)});if(n){varo=n.matched,i=o[o.length-1];returne.params=n.params,v(i,e)}returnv(null,e)}(0,e,t.matchAs):(e.params=e.params||{},t&&t.meta&&t.meta.id?e.params.__id__=t.meta.id:e.params.__id__||(e.params.__id__=h.id),t&&t.meta&&t.meta.name&&(t.meta.id?t.components.default.name=t.meta.name+"-"+e.params.__id__:(t=Object.assign({},t)).components={default:{name:t.meta.name+"-"+e.params.__id__,render:t.components.default.render}}),j(t,e,r,h))}return{match:y,addRoutes:function(t){V(t,f,l,d)}}}functionF(t,e,r){varn=e.match(t);if(!n)return!1;if(!r)return!0;for(varo=1,i=n.length;o<i;++o){vara=t.keys[o-1],s="string"==typeofn[o]?decodeURIComponent(n[o]):n[o];a&&(r[a.name||"pathMatch"]=s)}return!0}varK=Object.create(null);functionJ(t){window.history.replaceState({key:ot(),id:t.currentRoute&&t.currentRoute.params.__id__||t.id},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",function(t){vare;Q(),t.state&&t.state.key&&(e=t.state.key,rt=e)})}functionN(r,n,o,i){if(r.app){vara=r.options.scrollBehavior;a&&r.app.$nextTick(function(){vare=function(){vart=ot();if(t)returnK[t]}(),t=a.call(r,n,o,i?e:null);t&&("function"==typeoft.then?t.then(function(t){G(t,e)}).catch(function(t){}):G(t,e))})}}functionQ(){vart=ot();t&&(K[t]={x:window.pageXOffset,y:window.pageYOffset})}functionX(t){returnW(t.x)||W(t.y)}functionY(t){return{x:W(t.x)?t.x:window.pageXOffset,y:W(t.y)?t.y:window.pageYOffset}}functionW(t){return"number"==typeoft}functionG(t,e){varr,n,o,i,a,s="object"==typeoft;if(s&&"string"==typeoft.selector){varu=document.querySelector(t.selector);if(u){varc=t.offset&&"object"==typeoft.offset?t.offset:{};c={x:W((a=c).x)?a.x:0,y:W(a.y)?a.y:0},r=u,n=c,o=document.documentElement.getBoundingClientRect(),e={x:(i=r.getBoundingClientRect()).left-o.left-n.x,y:i.top-o.top-n.y}}elseX(t)&&(e=Y(t))}elses&&X(t)&&(e=Y(t));e&&window.scrollTo(e.x,e.y)}varZ,tt=y&&((-1===(Z=window.navigator.userAgent).indexOf("Android 2.")&&-1===Z.indexOf("Android 4.0")||-1===Z.indexOf("Mobile Safari")||-1!==Z.indexOf("Chrome")||-1!==Z.indexOf("Windows Phone"))&&window.history&&"pushState"inwindow.history),et=y&&window.performance&&window.performance.now?window.performance:Date,rt=nt();functionnt(){returnet.now().toFixed(3)}functionot(){returnrt}functionit(e,t,r){Q();varn=window.history;try{r?n.replaceState({id:t,key:rt},"",e):(rt=nt(),n.pushState({id:t,key:rt},"",e))}catch(t){window.location[r?"replace":"assign"](e)}}functionat(t,e){it(t,e,!0)}functionst(e,r,n){varo=function(t){t>=e.length?n():e[t]?r(e[t],function(){o(t+1)}):o(t+1)};o(0)}functionut(r){returnfunction(t,e,u){varc=!1,p=0,f=null;ct(r,function(r,t,n,o){if("function"==typeofr&&void0===r.cid){c=!0,p++;vare,i=ht(function(t){vare;((e=t).__esModule||ft&&"Module"===e[Symbol.toStringTag])&&(t=t.default),r.resolved="function"==typeoft?t:d.extend(t),n.components[o]=t,--p<=0&&u()}),a=ht(function(t){vare="Failed to resolve async component "+o+": "+t;f||(f=l(t)?t:newError(e),u(f))});try{e=r(i,a)}catch(t){a(t)}if(e)if("function"==typeofe.then)e.then(i,a);else{vars=e.component;s&&"function"==typeofs.then&&s.then(i,a)}}}),c||u()}}functionct(t,r){returnpt(t.map(function(e){returnObject.keys(e.components).map(function(t){returnr(e.components[t],e.instances[t],e,t)})}))}functionpt(t){returnArray.prototype.concat.apply([],t)}varft="function"==typeofSymbol&&"symbol"==typeofSymbol.toStringTag;functionht(r){varn=!1;returnfunction(){for(vart=[],e=arguments.length;e--;)t[e]=arguments[e];if(!n)returnn=!0,r.apply(this,t)}}varlt=function(t,e){this.router=t,this.base=function(t){if(!t)if(y){vare=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}elset="/";"/"!==t.charAt(0)&&(t="/"+t);returnt.replace(/\/$/,"")}(e),this.current=O,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};functiondt(t,i,a,e){varr=ct(t,function(t,e,r,n){varo=function(t,e){"function"!=typeoft&&(t=d.extend(t));returnt.options[e]}(t,i);if(o)returnArray.isArray(o)?o.map(function(t){returna(t,e,r,n)}):a(o,e,r,n)});returnpt(e?r.reverse():r)}functionyt(t,e){if(e)returnfunction(){returnt.apply(e,arguments)}}lt.prototype.listen=function(t){this.cb=t},lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},lt.prototype.onError=function(t){this.errorCbs.push(t)},lt.prototype.transitionTo=function(t,e,r){varn=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){n.updateRoute(o),e&&e(o),n.ensureURL(),n.ready||(n.ready=!0,n.readyCbs.forEach(function(t){t(o)}))},function(e){r&&r(e),e&&!n.ready&&(n.ready=!0,n.readyErrorCbs.forEach(function(t){t(e)}))})},lt.prototype.confirmTransition=function(r,e,t){varn=this,o=this.current,i=function(e){l(e)&&(n.errorCbs.length?n.errorCbs.forEach(function(t){t(e)}):console.error(e)),t&&t(e)},a=function(t,e){varr,n=Math.max(t.length,e.length);for(r=0;r<n&&t[r]===e[r];r++);return{updated:e.slice(0,r),activated:e.slice(r),deactivated:t.slice(r)}}(this.current.matched,r.matched),s=a.updated,u=a.deactivated,f=a.activated,c=[].concat(dt(u,"beforeRouteLeave",yt,!0),this.router.beforeHooks,dt(s,"beforeRouteUpdate",yt),f.map(function(t){returnt.beforeEnter}),ut(f));this.pending=r;varh=function(t,e){if(n.pending!==r)returni();try{t(r,o,function(t){!1===t||l(t)?(n.ensureURL(!0),i(t)):"string"==typeoft||"object"==typeoft&&("string"==typeoft.path||"string"==typeoft.name)?(i(),"object"==typeoft&&t.replace?n.replace(t):n.push(t)):e(t)})}catch(t){i(t)}};st(c,h,function(){varc,p,t=[];st((c=t,p=function(){returnn.current===r},dt(f,"beforeRouteEnter",function(t,e,r,n){returno=t,i=r,a=n,s=c,u=p,function(t,e,r){returno(t,e,function(t){r(t),"function"==typeoft&&s.push(function(){!functiont(e,r,n,o){r[n]&&!r[n]._isBeingDestroyed?e(r[n]):o()&&setTimeout(function(){t(e,r,n,o)},16)}(t,i.instances,a,u)})})};varo,i,a,s,u})).concat(n.router.resolveHooks),h,function(){if(n.pending!==r)returni();n.pending=null,e(r),n.router.app&&n.router.app.$nextTick(function(){t.forEach(function(t){t()})})})})},lt.prototype.updateRoute=function(e){varr=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(t){t&&t(e,r)})};varvt=function(t){functione(){t.apply(this,arguments)}returnt&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.setupListeners=function(){varo=this,i=this.router,t=i.options.scrollBehavior,a=tt&&t;a&&J(i);vars=mt(this.base);window.addEventListener("popstate",function(t){vare=o.current,r=mt(o.base);if(o.current!==O||r!==s){varn=t.state&&t.state.id;n||(n=i.id),o.transitionTo({path:r,params:{__id__:n}},function(t){a&&N(i,t,e,!0)})}})},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(e,r,t){varn=this;if("object"==typeofe){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}e.params=e.params||{},e.params.__id__=this.router.id}varo=this.current;this.transitionTo(e,function(t){it(v(n.base+t.fullPath),e.params.__id__),N(n.router,t,o,!1),r&&r(t)},t)},e.prototype.replace=function(e,r,t){varn=this;if("object"==typeofe){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}e.params=e.params||{},e.params.__id__=this.router.id}varo=this.current;this.transitionTo(e,function(t){at(v(n.base+t.fullPath),e.params.__id__),N(n.router,t,o,!1),r&&r(t)},t)},e.prototype.ensureURL=function(t){if(mt(this.base)!==this.current.fullPath){vare={path:v(this.base+this.current.fullPath),params:{__id__:this.current.params.__id__}};t?it(e,e.params.__id__):at(e,e.params.__id__)}},e.prototype.getCurrentLocation=function(){return{path:mt(this.base),params:{__id__:++this.router.id}}},e}(lt);functionmt(t){vare=decodeURI(window.location.pathname);returnt&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}vargt=function(n){functiont(t,e,r){n.call(this,t,e),r&&function(t){vare=mt(t);if(!/^\/#/.test(e))returnwindow.location.replace(v(t+"/#"+e)),!0}(this.base)||_t()}returnn&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.setupListeners=function(){varn=this,o=this.router,t=o.options.scrollBehavior,i=tt&&t;i&&J(o),window.addEventListener(tt?"popstate":"hashchange",function(t){vare=n.current;if(_t()){varr=t.state&&t.state.id;r||(r=o.id),n.transitionTo({path:bt(),params:{__id__:r}},function(t){i&&N(n.router,t,e,!0),tt||Rt(t.fullPath,t.params.__id__)})}})},t.prototype.push=function(t,e,r){varn=this;if("object"==typeoft){switch(t.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}t.params=t.params||{},t.params.__id__=this.router.id}varo=this.current,i=this.router.id;this.transitionTo(t,function(t){xt(t.fullPath,i),N(n.router,t,o,!1),e&&e(t)},r)},t.prototype.replace=function(t,e,r){varn=this;if("object"==typeoft){switch(t.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++}t.params=t.params||{},t.params.__id__=this.router.id}varo=this.current,i=this.router.id;this.transitionTo(t,function(t){Rt(t.fullPath,i),N(n.router,t,o,!1),e&&e(t)},r)},t.prototype.go=function(t){window.history.go(t)},t.prototype.ensureURL=function(t){vare=this.current.fullPath;bt()!==e&&(t?xt(e,this.current.params.__id__):Rt(e,this.current.params.__id__))},t.prototype.getCurrentLocation=function(){return{path:bt(),params:{__id__:++this.router.id}}},t}(lt);function_t(){vart=bt();return"/"===t.charAt(0)||(Rt("/"+t),!1)}functionbt(){vart=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}functionwt(t){vare=window.location.href,r=e.indexOf("#");return(0<=r?e.slice(0,r):e)+"#"+t}functionxt(t,e){tt?it(wt(t),e):window.location.hash=t}functionRt(t,e){tt?at(wt(t),e):window.location.replace(wt(t))}varkt=function(r){functiont(t,e){r.call(this,t,e),this.stack=[],this.index=-1}returnr&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.push=function(t,e,r){varn=this;this.transitionTo(t,function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)},r)},t.prototype.replace=function(t,e,r){varn=this;this.transitionTo(t,function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)},r)},t.prototype.go=function(t){vare=this,r=this.index+t;if(!(r<0||r>=this.stack.length)){varn=this.stack[r];this.confirmTransition(n,function(){e.index=r,e.updateRoute(n)})}},t.prototype.getCurrentLocation=function(){vart=this.stack[this.stack.length-1];returnt?t.fullPath:"/"},t.prototype.ensureURL=function(){},t}(lt),Et=function(t){void0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=D(t.routes||[],this),this.id=t.id||1,this.minId=t.id||1;vare=t.mode||"hash";switch(this.fallback="history"===e&&!tt&&!1!==t.fallback,this.fallback&&(e="hash"),y||(e="abstract"),this.mode=e){case"history":this.history=newvt(this,t.base);break;case"hash":this.history=newgt(this,t.base,this.fallback);break;case"abstract":this.history=newkt(this,t.base)}},jt={currentRoute:{configurable:!0}};functionOt(e,r){returne.push(r),function(){vart=e.indexOf(r);-1<t&&e.splice(t,1)}}returnEt.prototype.match=function(t,e,r){returnthis.matcher.match(t,e,r)},jt.currentRoute.get=function(){returnthis.history&&this.history.current},Et.prototype.init=function(t){varr=this;if(this.apps.push(t),!this.app){this.app=t;vare=this.history;if(einstanceofvt){varn=function(){e.setupListeners()};e.transitionTo(e.getCurrentLocation(),n,n)}elseif(einstanceofgt){varo=function(){e.setupListeners()};e.transitionTo(e.getCurrentLocation(),o,o)}e.listen(function(e){r.apps.forEach(function(t){t._route=e})})}},Et.prototype.beforeEach=function(t){returnOt(this.beforeHooks,t)},Et.prototype.beforeResolve=function(t){returnOt(this.resolveHooks,t)},Et.prototype.afterEach=function(t){returnOt(this.afterHooks,t)},Et.prototype.onReady=function(t,e){this.history.onReady(t,e)},Et.prototype.onError=function(t){this.history.onError(t)},Et.prototype.push=function(t,e,r){this.history.push(t,e,r)},Et.prototype.replace=function(t,e,r){this.history.replace(t,e,r)},Et.prototype.go=function(t){this.history.go(t)},Et.prototype.back=function(){this.go(-1)},Et.prototype.forward=function(){this.go(1)},Et.prototype.getMatchedComponents=function(t){vare=t?t.matched?t:this.resolve(t).route:this.currentRoute;returne?[].concat.apply([],e.matched.map(function(e){returnObject.keys(e.components).map(function(t){returne.components[t]})})):[]},Et.prototype.resolve=function(t,e,r){varn,o,i,a,s=z(t,e||this.history.current,r,this),u=this.match(s,e),c=u.redirectedFrom||u.fullPath,p=this.history.base;return{location:s,route:u,href:(n=p,o=c,i=this.mode,a="hash"===i?"#"+o:o,n?v(n+"/"+a):a),normalizedTo:s,resolved:u}},Et.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==O&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Et.prototype,jt),Et.install=functiont(e){if(!t.installed||d!==e){t.installed=!0;varn=function(t){returnvoid0!==t},r=function(t,e){varr=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};(d=e).mixin({beforeCreate:function(){n(this.$options.router)?((this._routerRoot=this)._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){returnthis._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){returnthis._routerRoot._route}}),e.component("RouterView",i),e.component("RouterLink",f);varo=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Et.version="3.0.1",Et});