1import{c0 as e,bN as t,bP as n,bK as r,cr as o,cn as a,c1 as c,cQ as s,bO as l,bM as i,bQ as u}from"./commonmodules.b9c1dd40.js"; 2/*! 3 * vue-router v4.1.6 4 * (c) 2022 Eduardo San Martin Morote 5 * @license MIT 6 */const f="undefined"!=typeof window;const p=Object.assign;function h(e,t){const n={};for(const r in t){const o=t[r];n[r]=m(o)?o.map(e):e(o)}return n}const d=()=>{},m=Array.isArray,g=/\/$/;function v(e,t,n="/"){let r,o={},a="",c="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),c=t.slice(s,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o,a,c=n.length-1;for(o=0;o<r.length;o++)if(a=r[o],"."!==a){if(".."!==a)break;c>1&&c--}return n.slice(0,c).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+c,path:r,query:o,hash:c}}function b(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function y(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function w(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!E(e[n],t[n]))return!1;return!0}function E(e,t){return m(e)?O(e,t):m(t)?O(t,e):e===t}function O(e,t){return m(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var k,R,P,x;function C(e){if(!e)if(f){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(g,"")}(R=k||(k={})).pop="pop",R.push="push",(x=P||(P={})).back="back",x.forward="forward",x.unknown="";const $=/^[^#]+#/;function j(e,t){return e.replace($,"#")+t}const S=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function q(e,t){return(history.state?history.state.position-t:-1)+e}const M=new Map;function L(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),b(n,"")}return b(n,e)+r+o}function B(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?S():null}}function G(e){const{history:t,location:n}=window,r={value:L(e,n)},o={value:t.state};function a(r,a,c){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:location.protocol+"//"+location.host+e+r;try{t[c?"replaceState":"pushState"](a,"",l),o.value=a}catch(i){n[c?"replace":"assign"](l)}}return o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const c=p({},o.value,t.state,{forward:e,scroll:S()});a(c.current,c,!0),a(e,p({},B(r.value,e,null),{position:c.position+1},n),!1),r.value=e},replace:function(e,n){a(e,p({},t.state,B(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function _(e){const t=G(e=C(e)),n=function(e,t,n,r){let o=[],a=[],c=null;const s=({state:a})=>{const s=L(e,location),l=n.value,i=t.value;let u=0;if(a){if(n.value=s,t.value=a,c&&c===l)return void(c=null);u=i?a.position-i.position:0}else r(s);o.forEach((e=>{e(n.value,l,{delta:u,type:k.pop,direction:u?u>0?P.forward:P.back:P.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(p({},e.state,{scroll:S()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:function(){c=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const r=p({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:j.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function I(e){return"string"==typeof e||"symbol"==typeof e}const D={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},U=Symbol("");var F,T;function W(e,t){return p(new Error,{type:e,[U]:!0},t)}function K(e,t){return e instanceof Error&&U in e&&(null==t||!!(e.type&t))}(T=F||(F={}))[T.aborted=4]="aborted",T[T.cancelled=8]="cancelled",T[T.duplicated=16]="duplicated";const V={sensitive:!1,strict:!1,start:!0,end:!0},z=/[.+*?^${}()[\]/\\]/g;function Q(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}
6return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function H(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Q(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(N(r))return 1;if(N(o))return-1}return o.length-r.length}function N(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const X={type:0,value:""},Y=/[a-zA-Z0-9_]/;function Z(e,t,n){const r=function(e,t){const n=p({},V,t),r=[];let o=n.start?"^":"";const a=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const r=l[t];let c=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(z,"\\$&"),c+=40;else if(1===r.type){const{value:e,repeatable:n,optional:i,regexp:u}=r;a.push({name:e,repeatable:n,optional:i});const f=u||"[^/]+?";if("[^/]+?"!==f){c+=10;try{new RegExp(`(${f})`)}catch(s){throw new Error(`Invalid custom RegExp for param "${e}" (${f}): `+s.message)}}let p=n?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;t||(p=i&&l.length<2?`(?:/${p})`:"/"+p),i&&(p+="?"),o+=p,c+=20,i&&(c+=-8),n&&(c+=-20),".*"===f&&(c+=-50)}e.push(c)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const c=new RegExp(o,n.sensitive?"":"i");return{re:c,score:r,keys:a,parse:function(e){const t=e.match(c),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=a[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:a,repeatable:c,optional:s}=e,l=a in t?t[a]:"";if(m(l)&&!c)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const i=m(l)?l.join("/"):l;if(!i){if(!s)throw new Error(`Missing required param "${a}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=i}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[X]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${i}": ${e}`)}let n=0,r=n;const o=[];let a;function c(){a&&o.push(a),a=[]}let s,l=0,i="",u="";function f(){i&&(0===n?a.push({type:0,value:i}):1===n||2===n||3===n?(a.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${i}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:i,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),i="")}function p(){i+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(i&&f(),c()):":"===s?(f(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===s?n=2:Y.test(s)?p():(f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${i}"`),f(),c(),o}(e.path),n),o=p(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function J(e,t){const n=[],r=new Map;function o(e,n,r){const s=!r,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:te(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=r&&r.record;const i=oe(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(p({},l,{components:r?r.record.components:l.components,path:e,aliasOf:r?r.record:l}))}let f,h;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(f=Z(t,n,i),r?r.alias.push(f):(h=h||f,h!==f&&h.alias.push(f),s&&e.name&&!ne(f)&&a(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],f,r&&r.children[t])}r=r||f,(f.record.components&&Object.keys(f.record.components).length||f.record.name||f.record.redirect)&&c(f)}return h?()=>{a(h)}:d}function a(e){if(I(e)){const t=r.get(e);
6t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function c(e){let t=0;for(;t<n.length&&H(e,n[t])>=0&&(e.record.path!==n[t].record.path||!ae(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!ne(e)&&r.set(e.record.name,e)}return t=oe({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,a,c,s={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw W(1,{location:e});c=o.record.name,s=p(ee(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&ee(e.params,o.keys.map((e=>e.name)))),a=o.stringify(s)}else if("path"in e)a=e.path,o=n.find((e=>e.re.test(a))),o&&(s=o.parse(a),c=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw W(1,{location:e,currentLocation:t});c=o.record.name,s=p({},t.params,e.params),a=o.stringify(s)}const l=[];let i=o;for(;i;)l.unshift(i.record),i=i.parent;return{name:c,path:a,params:s,matched:l,meta:re(l)}},removeRoute:a,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function ee(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function te(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="boolean"==typeof n?n:n[r];return t}function ne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function re(e){return e.reduce(((e,t)=>p(e,t.meta)),{})}function oe(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ae(e,t){return t.children.some((t=>t===e||ae(e,t)))}const ce=/#/g,se=/&/g,le=/\//g,ie=/=/g,ue=/\?/g,fe=/\+/g,pe=/%5B/g,he=/%5D/g,de=/%5E/g,me=/%60/g,ge=/%7B/g,ve=/%7C/g,be=/%7D/g,ye=/%20/g;function we(e){return encodeURI(""+e).replace(ve,"|").replace(pe,"[").replace(he,"]")}function Ee(e){return we(e).replace(fe,"%2B").replace(ye,"+").replace(ce,"%23").replace(se,"%26").replace(me,"`").replace(ge,"{").replace(be,"}").replace(de,"^")}function Oe(e){return null==e?"":function(e){return we(e).replace(ce,"%23").replace(ue,"%3F")}(e).replace(le,"%2F")}function ke(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Re(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(fe," "),o=e.indexOf("="),a=ke(o<0?e:e.slice(0,o)),c=o<0?null:ke(e.slice(o+1));if(a in t){let e=t[a];m(e)||(e=t[a]=[e]),e.push(c)}else t[a]=c}return t}function Pe(e){let t="";for(let n in e){const r=e[n];if(n=Ee(n).replace(ie,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(m(r)?r.map((e=>e&&Ee(e))):[r&&Ee(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function xe(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=m(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const Ce=Symbol(""),$e=Symbol(""),je=Symbol(""),Se=Symbol(""),Ae=Symbol("");function qe(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function Me(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((c,s)=>{const l=e=>{var l;!1===e?s(W(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(l=e)||l&&"object"==typeof l?s(W(2,{from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),c())},i=e.call(r&&r.instances[o],t,n,l);let u=Promise.resolve(i);e.length<3&&(u=u.then(l)),u.catch((e=>s(e)))}))}function Le(e,t,n,r){const o=[];for(const c of e)for(const e in c.components){let s=c.components[e];if("beforeRouteEnter"===t||c.instances[e])if("object"==typeof(a=s)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(s.__vccOpts||s)[t];a&&o.push(Me(a,n,r,c,e))}else{let a=s();o.push((()=>a.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${c.path}"`));const a=(s=o).__esModule||"Module"===s[Symbol.toStringTag]?o.default:o;var s;c.components[e]=a;const l=(a.__vccOpts||a)[t];return l&&Me(l,n,r,c,e)()}))))}}var a;return o}function Be(e){const o=t(je),a=t(Se),c=r((()=>o.resolve(n(e.to)))),s=r((()=>{const{matched:e}=c.value,{length:t}=e,n=e[t-1],r=a.matched;
6if(!n||!r.length)return-1;const o=r.findIndex(y.bind(null,n));if(o>-1)return o;const s=_e(e[t-2]);return t>1&&_e(n)===s&&r[r.length-1].path!==s?r.findIndex(y.bind(null,e[t-2])):o})),l=r((()=>s.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!m(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(a.params,c.value.params))),i=r((()=>s.value>-1&&s.value===a.matched.length-1&&w(a.params,c.value.params)));return{route:c,href:r((()=>c.value.href)),isActive:l,isExactActive:i,navigate:function(t={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(t)?o[n(e.replace)?"replace":"push"](n(e.to)).catch(d):Promise.resolve()}}}const Ge=c({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Be,setup(e,{slots:n}){const a=o(Be(e)),{options:c}=t(je),l=r((()=>({[Ie(e.activeClass,c.linkActiveClass,"router-link-active")]:a.isActive,[Ie(e.exactActiveClass,c.linkExactActiveClass,"router-link-exact-active")]:a.isExactActive})));return()=>{const t=n.default&&n.default(a);return e.custom?t:s("a",{"aria-current":a.isExactActive?e.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:l.value},t)}}});function _e(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ie=(e,t,n)=>null!=e?e:null!=t?t:n;function De(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ue=c({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:o,slots:a}){const c=t(Ae),f=r((()=>e.route||c.value)),h=t($e,0),d=r((()=>{let e=n(h);const{matched:t}=f.value;let r;for(;(r=t[e])&&!r.components;)e++;return e})),m=r((()=>f.value.matched[d.value]));l($e,r((()=>d.value+1))),l(Ce,m),l(Ae,f);const g=i();return u((()=>[g.value,m.value,e.name]),(([e,t,n],[r,o,a])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&y(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const t=f.value,n=e.name,r=m.value,c=r&&r.components[n];if(!c)return De(a.default,{Component:c,route:t});const l=r.props[n],i=l?!0===l?t.params:"function"==typeof l?l(t):l:null,u=s(c,p({},i,o,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(r.instances[n]=null)},ref:g}));return De(a.default,{Component:u,route:t})||u}}});function Fe(t){const c=J(t.routes,t),s=t.parseQuery||Re,l=t.stringifyQuery||Pe,i=t.history,u=qe(),g=qe(),b=qe(),E=e(D);let O=D;f&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const R=h.bind(null,(e=>""+e)),P=h.bind(null,Oe),x=h.bind(null,ke);function C(e,t){if(t=p({},t||E.value),"string"==typeof e){const n=v(s,e,t.path),r=c.resolve({path:n.path},t),o=i.createHref(n.fullPath);return p(n,r,{params:x(r.params),hash:ke(n.hash),redirectedFrom:void 0,href:o})}let n;if("path"in e)n=p({},e,{path:v(s,e.path,t.path).path});else{const r=p({},e.params);for(const e in r)null==r[e]&&delete r[e];n=p({},e,{params:P(e.params)}),t.params=P(t.params)}const r=c.resolve(n,t),o=e.hash||"";r.params=R(x(r.params));const a=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(l,p({},e,{hash:(u=o,we(u).replace(ge,"{").replace(be,"}").replace(de,"^")),path:r.path}));var u;const f=i.createHref(a);return p({fullPath:a,hash:o,query:l===Pe?xe(e.query):e.query||{}},r,{redirectedFrom:void 0,href:f})}function $(e){return"string"==typeof e?v(s,e,E.value.path):p({},e)}function j(e,t){if(O!==e)return W(8,{from:t,to:e})}function L(e){return G(e)}function B(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=$(r):{path:r},r.params={}),p({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function G(e,t){const n=O=C(e),r=E.value,o=e.state,a=e.force,c=!0===e.replace,s=B(n);if(s)return G(p($(s),{state:"object"==typeof s?p({},o,s.state):o,force:a,replace:c}),t||n);const i=n;let u;return i.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&y(t.matched[r],n.matched[o])&&w(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(l,r,n)&&(u=W(16,{to:i,from:r}),Z(r,r,!0,!1)),(u?Promise.resolve(u):U(i,r)).catch((e=>K(e)?K(e,2)?e:Y(e):X(e,i,r))).then((e=>{if(e){if(K(e,2))return G(p({replace:c},$(e.to),{state:"object"==typeof e.to?p({},o,e.to.state):o,force:a}),t||i)}else e=T(i,r,!0,c,o);return F(i,r,e),e}))}function _(e,t){const n=j(e,t);return n?Promise.reject(n):Promise.resolve()}function U(e,t){let n;const[r,o,a]=function(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let c=0;c<a;c++){const a=t.matched[c];a&&(e.matched.find((e=>y(e,a)))?r.push(a):n.push(a));const s=e.matched[c];s&&(t.matched.find((e=>y(e,s)))||o.push(s))}return[n,r,o]}(e,t);n=Le(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach((r=>{n.push(Me(r,e,t))}));const c=_.bind(null,e,t);return n.push(c),Te(n).then((()=>{n=[];for(const r of u.list())n.push(Me(r,e,t));return n.push(c),Te(n)})).then((()=>{n=Le(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Me(r,e,t))}));return n.push(c),Te(n)})).then((()=>{n=[];for(const r of e.matched)if(r.beforeEnter&&!t.matched.includes(r))if(m(r.beforeEnter))for(const o of r.beforeEnter)n.push(Me(o,e,t));else n.push(Me(r.beforeEnter,e,t));return n.push(c),Te(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Le(a,"beforeRouteEnter",e,t),n.push(c),Te(n)))).then((()=>{n=[];for(const r of g.list())n.push(Me(r,e,t));return n.push(c),Te(n)})).catch((e=>K(e,8)?e:Promise.reject(e)))}function F(e,t,n){for(const r of b.list())r(e,t,n)}function T(e,t,n,r,o){const a=j(e,t);if(a)return a;const c=t===D,s=f?history.state:{};
6n&&(r||c?i.replace(e.fullPath,p({scroll:c&&s&&s.scroll},o)):i.push(e.fullPath,o)),E.value=e,Z(e,t,n,c),Y()}let V;function z(){V||(V=i.listen(((e,t,n)=>{if(!re.listening)return;const r=C(e),o=B(r);if(o)return void G(p(o,{replace:!0}),r).catch(d);O=r;const a=E.value;var c,s;f&&(c=q(a.fullPath,n.delta),s=S(),M.set(c,s)),U(r,a).catch((e=>K(e,12)?e:K(e,2)?(G(e.to,r).then((e=>{K(e,20)&&!n.delta&&n.type===k.pop&&i.go(-1,!1)})).catch(d),Promise.reject()):(n.delta&&i.go(-n.delta,!1),X(e,r,a)))).then((e=>{(e=e||T(r,a,!1))&&(n.delta&&!K(e,8)?i.go(-n.delta,!1):n.type===k.pop&&K(e,20)&&i.go(-1,!1)),F(r,a,e)})).catch(d)})))}let Q,H=qe(),N=qe();function X(e,t,n){Y(e);const r=N.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function Y(e){return Q||(Q=!e,z(),H.list().forEach((([t,n])=>e?n(e):t())),H.reset()),e}function Z(e,n,r,o){const{scrollBehavior:c}=t;if(!f||!c)return Promise.resolve();const s=!r&&function(e){const t=M.get(e);return M.delete(e),t}(q(e.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return a().then((()=>c(e,n,s))).then((e=>e&&A(e))).catch((t=>X(t,e,n)))}const ee=e=>i.go(e);let te;const ne=new Set,re={currentRoute:E,listening:!0,addRoute:function(e,t){let n,r;
6return I(e)?(n=c.getRecordMatcher(e),r=t):r=e,c.addRoute(r,n)},removeRoute:function(e){const t=c.getRecordMatcher(e);t&&c.removeRoute(t)},hasRoute:function(e){return!!c.getRecordMatcher(e)},getRoutes:function(){return c.getRoutes().map((e=>e.record))},resolve:C,options:t,push:L,replace:function(e){return L(p($(e),{replace:!0}))},go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:u.add,beforeResolve:g.add,afterEach:b.add,onError:N.add,isReady:function(){return Q&&E.value!==D?Promise.resolve():new Promise(((e,t)=>{H.add([e,t])}))},install(e){e.component("RouterLink",Ge),e.component("RouterView",Ue),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>n(E)}),f&&!te&&E.value===D&&(te=!0,L(i.location).catch((e=>{})));const t={};for(const n in D)t[n]=r((()=>E.value[n]));e.provide(je,this),e.provide(Se,o(t)),e.provide(Ae,E);const a=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(O=D,V&&V(),V=null,E.value=D,te=!1,Q=!1),a()}}};return re}function Te(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function We(){return t(je)}function Ke(){return t(Se)}export{_ as a,We as b,Fe as c,Ke as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.