vendor: 4,706 bytes, line 1
1import{B as e,Ct as t,G as n,H as r,O as i,R as a,Z as o,gt as s,ht as c,ot as l,pt as u,vt as d}from"./dist-9EE66UbS.js";import{_ as f,a as p,c as m,d as h,f as g,i as _,l as ee,m as te,n as v,o as y,p as b,r as x,s as S,t as ne,u as C}from"./useApi-BPuI6ZR9-TyvYjYuV.js";var w=typeof document<`u`,re=/#/g,ie=/&/g,ae=/\//g,oe=/=/g,se=/\?/g,T=/\+/g,E=/%5B/g,D=/%5D/g,O=/%5E/g,ce=/%60/g,k=/%7B/g,A=/%7C/g,j=/%7D/g,M=/%20/g;function N(e){return e==null?``:encodeURI(``+e).replace(A,`|`).replace(E,`[`).replace(D,`]`)}function le(e){return N(e).replace(k,`{`).replace(j,`}`).replace(O,`^`)}function P(e){return N(e).replace(T,`%2B`).replace(M,`+`).replace(re,`%23`).replace(ie,`%26`).replace(ce,"`").replace(k,`{`).replace(j,`}`).replace(O,`^`)}function F(e){return P(e).replace(oe,`%3D`)}function I(e){return N(e).replace(re,`%23`).replace(se,`%3F`)}function ue(e){return I(e).replace(ae,`%2F`)}function L(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var de=/\/$/,R=e=>e.replace(de,``);function z(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=W(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:L(o)}}function fe(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function B(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function pe(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&V(t.matched[r],n.matched[i])&&H(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function V(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function H(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!me(e[n],t[n]))return!1;return!0}function me(e,t){return p(e)?U(e,t):p(t)?U(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function U(e,t){return p(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function W(e,t){if(_(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function K(e){if(!e){if(w){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),R(e)}var q=/^[^#]+#/;function J(e,t){return e.replace(q,`#`)+t}function Y(e,t){let 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)}}var X=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function he(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Y(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function ge(e,t){return(history.state?history.state.position-t:-1)+e}var _e=new Map;function ve(e){_e.set(e,X())}function ye(e){let t=_e.get(e);return _e.delete(e),t}function be(e){return typeof e==`string`||e&&typeof e==`object`}function xe(e){return typeof e==`string`||typeof e==`symbol`}function Se(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(T,` `),i=r.indexOf(`=`),a=L(i<0?r:r.slice(0,i)),o=i<0?null:L(r.slice(i+1));if(a in t){let e=t[a];p(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ce(e){let t=``;for(let n in e){let r=e[n];if(n=F(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(p(r)?r.map(e=>e&&P(e)):[r&&P(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function we(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=p(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Z(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Q(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(x(4,{from:n,to:t})):e instanceof Error?c(e):be(e)?c(x(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);
vendor: 4,622 bytes, line 1
1e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function $(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(m(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Q(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=y(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Q(c,n,r,o,e,i)()}))}}}return a}function Te(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>V(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>V(e,s))||i.push(s))}return[n,r,i]}var Ee=()=>location.protocol+`//`+location.host;function De(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),B(n,``)}return B(n,e)+r+i}function Oe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=De(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(v({},e.state,{scroll:X()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function ke(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function Ae(e){let{history:t,location:n}=window,r={value:De(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ee()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,v({},t.state,ke(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=v({},i.value,t.state,{forward:e,scroll:X()});a(o.current,o,!0),a(e,v({},ke(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function je(e){e=K(e);let t=Ae(e),n=Oe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=v({location:``,base:e,go:r,createHref:J.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Me(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),je(e)}var Ne={type:0,value:``},Pe=/[a-zA-Z0-9_]/;function Fe(e){if(!e)return[[]];if(e===`/`)return[[Ne]];if(!_(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Pe.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ie=`[^/]+?`,Le={sensitive:!1,strict:!1,start:!0,end:!0},Re=/[.+*?^${}()[\]/\\]/g;function ze(e,t){let n=v({},Le,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Re,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ie;if(u!==Ie){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u}
1)(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(p(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=p(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Be(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ve(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Be(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(He(r))return 1;if(He(i))return-1}return i.length-r.length}function He(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Ue={strict:!1,end:!0,sensitive:!1};function We(e,t,n){let r=ze(Fe(e.path),n),i=v(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Ge(e,t){let n=[],r=new Map;t=C(Ue,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=qe(e);s.aliasOf=r&&r.record;let l=C(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(qe(v({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!_(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=We(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Ye(d)&&o(e.name)),$e(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:h}function o(e){if(xe(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ze(e,n);n.splice(t,0,e),e.record.name&&!Ye(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw x(1,{location:e});s=i.record.name,a=v(Ke(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ke(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw x(1,{location:e,currentLocation:t});s=i.record.name,a=v({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Xe(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ke(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function qe(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Je(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Je(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ye(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xe(e){return e.reduce((e,t)=>
vendor: 8,837 bytes, line 1
1v(e,t.meta),{})}function Ze(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ve(e,t[i])<0?r=i:n=i+1}let i=Qe(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Qe(e){let t=e;for(;t=t.parent;)if($e(t)&&Ve(e,t)===0)return t}function $e({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function et(e){let n=r(b),a=r(g),o=i(()=>{let r=t(e.to);return n.resolve(r)}),s=i(()=>{let{matched:e}=o.value,{length:t}=e,n=e[t-1],r=a.matched;if(!n||!r.length)return-1;let i=r.findIndex(V.bind(null,n));if(i>-1)return i;let s=at(e[t-2]);return t>1&&at(n)===s&&r[r.length-1].path!==s?r.findIndex(V.bind(null,e[t-2])):i}),c=i(()=>s.value>-1&&it(a.params,o.value.params)),l=i(()=>s.value>-1&&s.value===a.matched.length-1&&H(a.params,o.value.params));function u(r={}){if(rt(r)){let r=n[t(e.replace)?`replace`:`push`](t(e.to)).catch(h);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>r),r}return Promise.resolve()}return{route:o,href:i(()=>o.value.href),isActive:c,isExactActive:l,navigate:u}}function tt(e){return e.length===1?e[0]:e}var nt=a({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`},viewTransition:Boolean},useLink:et,setup(t,{slots:n}){let a=u(et(t)),{options:o}=r(b),s=i(()=>({[ot(t.activeClass,o.linkActiveClass,`router-link-active`)]:a.isActive,[ot(t.exactActiveClass,o.linkExactActiveClass,`router-link-exact-active`)]:a.isExactActive}));return()=>{let r=n.default&&tt(n.default(a));return t.custom?r:e(`a`,{"aria-current":a.isExactActive?t.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:s.value},r)}}});function rt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function it(e,t){for(let n in t){let r=t[n],i=e[n];if(p(r)){if(!p(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function at(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ot=(e,t,n)=>e??t??n,st=a({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:a,slots:s}){let u=r(te),d=i(()=>n.route||u.value),p=r(f,0),m=i(()=>{let e=t(p),{matched:n}=d.value,r;for(;(r=n[e])&&!r.components;)e++;return e}),h=i(()=>d.value.matched[m.value]);o(f,i(()=>m.value+1)),o(ee,h),o(te,d);let g=c();return l(()=>[g.value,h.value,n.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!V(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=d.value,r=n.name,i=h.value,o=i&&i.components[r];if(!o)return ct(s.default,{Component:o,route:t});let c=i.props[r],l=c?c===!0?t.params:typeof c==`function`?c(t):c:null,u=e(o,v({},l,a,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[r]=null)},ref:g}));return ct(s.default,{Component:u,route:t})||u}}});function ct(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var lt=st;function ut(e){let r=Ge(e.routes,e),i=e.parseQuery||Se,a=e.stringifyQuery||Ce,o=e.history,c=Z(),l=Z(),u=Z(),f=d(G),m=d(0),_=G;w&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=ne.bind(null,e=>``+e),y=ne.bind(null,ue),C=ne.bind(null,L);function re(e,t){let n,i;xe(e)?(n=r.getRecordMatcher(e),i=t):i=e;let a=r.addRoute(i,n);return m.value++,()=>{a(),m.value++}}function ie(e){let t=r.getRecordMatcher(e);t&&(r.removeRoute(t),m.value++)}function ae(){r.clearRoutes(),m.value++}function oe(){return r.getRoutes().map(e=>e.record)}function se(e){return!!r.getRecordMatcher(e)}function T(e,t){if(m.value,typeof e==`string`){t||=e.startsWith(`/`)?G:f.value;let n=z(i,e,t.path),a=r.resolve({path:n.path},t),s=o.createHref(n.fullPath);return v(n,a,{params:C(a.params),redirectedFrom:void 0,href:s})}t=v({},t||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?G:f.value));let n;if(e.path!=null)n=v({},e,{path:z(i,e.path,t.path).path});else{let r=v({},e.params);for(let e in r)r[e]??delete r[e];n=v({},e,{params:y(r)}),t.params=y(t.params)}let s=r.resolve(n,t),c=e.hash||``;s.params=ee(C(s.params));let l=fe(a,v({},e,{hash:le(c),path:s.path})),u=o.createHref(l);return v({fullPath:l,hash:c,query:a===Ce?we(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function E(e){return typeof e==`string`?z(i,e,f.value.path):v({},e)}function D(e,t){if(_!==e)return x(8,{from:t,to:e})}function O(e){return A(e)}function ce(e){return O(v(E(e),{replace:!0}))}function k(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=E(i):{path:i},i.params={}),v({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function A(e,t){let n=_=T(e),r=f.value,i=e.state,o=e.force,s=e.replace===!0,c=k(n,r);if(c)return A(v(E(c),{state:typeof c==`object`?v({},i,c.state):i,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&pe(a,r,n)&&(u=x(16,{to:l,from:r}),W(r,r,!0,!1)),(u?Promise.resolve(u):N(l,r)).catch(e=>S(e)?S(e,2)?e:U(e):H(e,l,r)).then(e=>{if(e){if(S(e,2))return A(v({replace:s},E(e.to),{state:typeof e.to==`object`?v({},i,e.to.state):i,force:o}),t||l)}else e=F(l,r,!0,s,i);return P(l,r,e),e})}function j(e,t){let n=D(e,t);return n?Promise.reject(n):Promise.resolve()}function M(e){let t=J.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function N(e,t){let n,[r,i,a]=Te(e,t);n=$(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Q(r,e,t))});let o=j.bind(null,e,t);return n.push(o),X(n).then(()=>{n=[];for(let r of c.list())n.push(Q(r,e,t));return n.push(o),X(n)}).then(()=>{n=$(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Q(r,e,t))});return n.push(o),X(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(p(r.beforeEnter))for(let i of r.beforeEnter)n.push(Q(i,e,t));else n.push(Q(r.beforeEnter,e,t))}return n.push(o),X(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=$(a,`beforeRouteEnter`,e,t,M),n.push(o),X(n))).then(()=>{n=[];for(let r of l.list())n.push(Q(r,e,t));return n.push(o),X(n)}).catch(e=>S(e,8)?e:Promise.reject(e))}function P(e,t,n){u.list().forEach(r=>M(()=>r(e,t,n)))}function F(e,t,n,r,i){let a=D(e,t);if(a)return a;let s=t===G,c=w?history.state:{};n&&(r||s?o.replace(e.fullPath,v({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),f.value=e,W(e,t,n,s),U()}let I;function de(){I||=o.listen((e,t,n)=>{if(!Y.listening)return;let r=T(e),i=k(r,Y.currentRoute.value);if(i){A(v(i,{replace:!0,force:!0}),r).catch(h);return}_=r;let a=f.value;w&&n.delta&&ve(ge(a.fullPath,n.delta)),N(r,a).catch(e=>S(e,12)?e:S(e,2)?(A(v(E(e.to),{force:!0}),r).then(e=>{S(e,20)&&!n.delta&&n.type===`pop`&&o.go(-1,!1)}).catch(h),Promise.reject()):(n.delta&&o.go(-n.delta,!1),H(e,r,a))).then(e=>{e||=F(r,a,!1),e&&(n.delta&&!S(e,8)?o.go(-n.delta,!1):n.type===`pop`&&S(e,20)&&o.go(-1,!1)),P(r,a,e)}).catch(h)})}let R=Z(),B=Z(),V;function H(e,t,n){U(e);let r=B.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function me(){return V&&f.value!==G?Promise.resolve():new Promise((e,t)=>{R.add([e,t])})}function U(e){return V||(V=!e,de(),R.list().forEach(([t,n])=>e?n(e):t()),R.reset()),e}function W(t,r,i,a){let{scrollBehavior:o}=e;if(!w||!o)return Promise.resolve();let s=!i&&ye(ge(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return n().then(()=>o(t,r,s)).then(e=>t===f.value&&e&&he(e)).catch(e=>t===f.value&&H(e,t,r))}let K=e=>o.go(e),q,J=new Set,Y={currentRoute:f,listening:!0,addRoute:re,removeRoute:ie,clearRoutes:ae,hasRoute:se,getRoutes:oe,resolve:T,options:e,push:O,replace:ce,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:c.add,beforeResolve:l.add,afterEach:u.add,onError:B.add,isReady:me,install(e){e.component(`RouterLink`,nt),e.component(`RouterView`,lt),e.config.globalProperties.$router=Y,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>t(f)}),w&&!q&&f.value===G&&(q=!0,O(o.location).catch(e=>{}));let n={};for(let e in G)Object.defineProperty(n,e,{get:()=>f.value[e],enumerable:!0});e.provide(b,Y),e.provide(g,s(n)),e.provide(te,f);let r=e.unmount;J.add(e),e.unmount=function(){J.delete(e),J.size<1&&(_=G,I&&I(),I=null,f.value=G,q=!1,V=!1),r()}}};function X(e){return e.reduce((e,t)=>e.then(()=>M(t)),Promise.resolve())}return Y}export{ut as n,Me as r,nt as t};
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.