Files
2026-04-28 15:13:50 +02:00

2 lines
27 KiB
JavaScript

import{p as K,u as Z,s as ct,q as lt,v as qe,x as ut,y as Fe,z as G,A as ft,B as ht,C as pt,D as he}from"./runtime-dom.esm-bundler.DYN7TRGp.js";import{u as dt,l as mt}from"./index.ZNJz487u.js";const F=typeof document<"u";function Ke(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function gt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ke(e.default)}const O=Object.assign;function pe(e,t){const n={};for(const r in t){const o=t[r];n[r]=B(o)?o.map(e):e(o)}return n}const ee=()=>{},B=Array.isArray;function we(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}let I=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const We=Symbol("");I.MATCHER_NOT_FOUND+"",I.NAVIGATION_GUARD_REDIRECT+"",I.NAVIGATION_ABORTED+"",I.NAVIGATION_CANCELLED+"",I.NAVIGATION_DUPLICATED+"";function W(e,t){return O(new Error,{type:e,[We]:!0},t)}function V(e,t){return e instanceof Error&&We in e&&(t==null||!!(e.type&t))}const vt=["params","query","hash"];function Et(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of vt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Rt=Symbol(""),Ie=Symbol(""),oe=Symbol(""),ze=Symbol(""),ve=Symbol("");function In(){return K(oe)}const Qe=/#/g,yt=/&/g,At=/\//g,_t=/=/g,Nt=/\?/g,Ye=/\+/g,Ot=/%5B/g,Ct=/%5D/g,Je=/%5E/g,Pt=/%60/g,Xe=/%7B/g,wt=/%7C/g,Ze=/%7D/g,It=/%20/g;function Ae(e){return e==null?"":encodeURI(""+e).replace(wt,"|").replace(Ot,"[").replace(Ct,"]")}function St(e){return Ae(e).replace(Xe,"{").replace(Ze,"}").replace(Je,"^")}function Ee(e){return Ae(e).replace(Ye,"%2B").replace(It,"+").replace(Qe,"%23").replace(yt,"%26").replace(Pt,"`").replace(Xe,"{").replace(Ze,"}").replace(Je,"^")}function bt(e){return Ee(e).replace(_t,"%3D")}function Tt(e){return Ae(e).replace(Qe,"%23").replace(Nt,"%3F")}function kt(e){return Tt(e).replace(At,"%2F")}function te(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const xt=/\/$/,Dt=e=>e.replace(xt,"");function de(e,t,n="/"){let r,o={},u="",h="";const m=t.indexOf("#");let a=t.indexOf("?");return a=m>=0&&a>m?-1:a,a>=0&&(r=t.slice(0,a),u=t.slice(a,m>0?m:t.length),o=e(u.slice(1))),m>=0&&(r=r||t.slice(0,m),h=t.slice(m,t.length)),r=Vt(r??t,n),{fullPath:r+u+h,path:r,query:o,hash:te(h)}}function Lt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Se(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&z(t.matched[r],n.matched[o])&&et(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function z(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function et(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Gt(e[n],t[n]))return!1;return!0}function Gt(e,t){return B(e)?be(e,t):B(t)?be(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function be(e,t){return B(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,h,m;for(h=0;h<r.length;h++)if(m=r[h],m!==".")if(m==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h).join("/")}const $={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Re=(function(e){return e.pop="pop",e.push="push",e})({}),me=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Mt(e){if(!e)if(F){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dt(e)}const $t=/^[^#]+#/;function Ut(e,t){return e.replace($t,"#")+t}function Ht(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)}}const se=()=>({left:window.scrollX,top:window.scrollY});function jt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ht(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Te(e,t){return(history.state?history.state.position-t:-1)+e}const ye=new Map;function qt(e,t){ye.set(e,t)}function Ft(e){const t=ye.get(e);return ye.delete(e),t}function Kt(e){return typeof e=="string"||e&&typeof e=="object"}function tt(e){return typeof e=="string"||typeof e=="symbol"}function Wt(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 o=n[r].replace(Ye," "),u=o.indexOf("="),h=te(u<0?o:o.slice(0,u)),m=u<0?null:te(o.slice(u+1));if(h in t){let a=t[h];B(a)||(a=t[h]=[a]),a.push(m)}else t[h]=m}return t}function ke(e){let t="";for(let n in e){const r=e[n];if(n=bt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(B(r)?r.map(o=>o&&Ee(o)):[r&&Ee(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function zt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=B(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function X(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function U(e,t,n,r,o,u=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((m,a)=>{const p=c=>{c===!1?a(W(I.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?a(c):Kt(c)?a(W(I.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[o]===h&&typeof c=="function"&&h.push(c),m())},f=u(()=>e.call(r&&r.instances[o],t,n,p));let i=Promise.resolve(f);e.length<3&&(i=i.then(p)),i.catch(c=>a(c))})}function ge(e,t,n,r,o=u=>u()){const u=[];for(const h of e)for(const m in h.components){let a=h.components[m];if(!(t!=="beforeRouteEnter"&&!h.instances[m]))if(Ke(a)){const p=(a.__vccOpts||a)[t];p&&u.push(U(p,n,r,h,m,o))}else{let p=a();u.push(()=>p.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${m}" at "${h.path}"`);const i=gt(f)?f.default:f;h.mods[m]=f,h.components[m]=i;const c=(i.__vccOpts||i)[t];return c&&U(c,n,r,h,m,o)()}))}}return u}function Qt(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const m=t.matched[h];m&&(e.matched.find(p=>z(p,m))?r.push(m):n.push(m));const a=e.matched[h];a&&(t.matched.find(p=>z(p,a))||o.push(a))}return[n,r,o]}let Yt=()=>location.protocol+"//"+location.host;function nt(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let h=o.includes(e.slice(u))?e.slice(u).length:1,m=o.slice(h);return m[0]!=="/"&&(m="/"+m),Se(m,"")}return Se(n,e)+r+o}function Jt(e,t,n,r){let o=[],u=[],h=null;const m=({state:c})=>{const l=nt(e,location),R=n.value,A=t.value;let P=0;if(c){if(n.value=l,t.value=c,h&&h===R){h=null;return}P=A?c.position-A.position:0}else r(l);o.forEach(w=>{w(n.value,R,{delta:P,type:Re.pop,direction:P?P>0?me.forward:me.back:me.unknown})})};function a(){h=n.value}function p(c){o.push(c);const l=()=>{const R=o.indexOf(c);R>-1&&o.splice(R,1)};return u.push(l),l}function f(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(O({},c.state,{scroll:se()}),"")}}function i(){for(const c of u)c();u=[],window.removeEventListener("popstate",m),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",m),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:a,listen:p,destroy:i}}function xe(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?se():null}}function Xt(e){const{history:t,location:n}=window,r={value:nt(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(a,p,f){const i=e.indexOf("#"),c=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+a:Yt()+e+a;try{t[f?"replaceState":"pushState"](p,"",c),o.value=p}catch(l){console.error(l),n[f?"replace":"assign"](c)}}function h(a,p){u(a,O({},t.state,xe(o.value.back,a,o.value.forward,!0),p,{position:o.value.position}),!0),r.value=a}function m(a,p){const f=O({},o.value,t.state,{forward:a,scroll:se()});u(f.current,f,!0),u(a,O({},xe(r.value,a,null),{position:f.position+1},p),!1),r.value=a}return{location:r,state:o,push:m,replace:h}}function Zt(e){e=Mt(e);const t=Xt(e),n=Jt(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const o=O({location:"",base:e,go:r,createHref:Ut.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function en(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zt(e)}let j=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const tn={type:j.Static,value:""},nn=/[a-zA-Z0-9_]/;function rn(e){if(!e)return[[]];if(e==="/")return[[tn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(l){throw new Error(`ERR (${n})/"${p}": ${l}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let m=0,a,p="",f="";function i(){p&&(n===T.Static?u.push({type:j.Static,value:p}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),u.push({type:j.Param,value:p,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=a}for(;m<e.length;){if(a=e[m++],a==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:a==="/"?(p&&i(),h()):a===":"?(i(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:a==="("?n=T.ParamRegExp:nn.test(a)?c():(i(),n=T.Static,a!=="*"&&a!=="?"&&a!=="+"&&m--);break;case T.ParamRegExp:a===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+a:n=T.ParamRegExpEnd:f+=a;break;case T.ParamRegExpEnd:i(),n=T.Static,a!=="*"&&a!=="?"&&a!=="+"&&m--,f="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),i(),h(),o}const De="[^/]+?",on={sensitive:!1,strict:!1,start:!0,end:!0};var k=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(k||{});const sn=/[.+*?^${}()[\]/\\]/g;function an(e,t){const n=O({},on,t),r=[];let o=n.start?"^":"";const u=[];for(const p of e){const f=p.length?[]:[k.Root];n.strict&&!p.length&&(o+="/");for(let i=0;i<p.length;i++){const c=p[i];let l=k.Segment+(n.sensitive?k.BonusCaseSensitive:0);if(c.type===j.Static)i||(o+="/"),o+=c.value.replace(sn,"\\$&"),l+=k.Static;else if(c.type===j.Param){const{value:R,repeatable:A,optional:P,regexp:w}=c;u.push({name:R,repeatable:A,optional:P});const N=w||De;if(N!==De){l+=k.BonusCustomRegExp;try{new RegExp(`(${N})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${R}" (${N}): `+L.message)}}let C=A?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;i||(C=P&&p.length<2?`(?:/${C})`:"/"+C),P&&(C+="?"),o+=C,l+=k.Dynamic,P&&(l+=k.BonusOptional),A&&(l+=k.BonusRepeatable),N===".*"&&(l+=k.BonusWildcard)}f.push(l)}r.push(f)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=k.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function m(p){const f=p.match(h),i={};if(!f)return null;for(let c=1;c<f.length;c++){const l=f[c]||"",R=u[c-1];i[R.name]=l&&R.repeatable?l.split("/"):l}return i}function a(p){let f="",i=!1;for(const c of e){(!i||!f.endsWith("/"))&&(f+="/"),i=!1;for(const l of c)if(l.type===j.Static)f+=l.value;else if(l.type===j.Param){const{value:R,repeatable:A,optional:P}=l,w=R in p?p[R]:"";if(B(w)&&!A)throw new Error(`Provided param "${R}" is an array but it is not repeatable (* or + modifiers)`);const N=B(w)?w.join("/"):w;if(!N)if(P)c.length<2&&(f.endsWith("/")?f=f.slice(0,-1):i=!0);else throw new Error(`Missing required param "${R}"`);f+=N}}return f||"/"}return{re:h,score:r,keys:u,parse:m,stringify:a}}function cn(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===k.Static+k.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===k.Static+k.Segment?1:-1:0}function rt(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=cn(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Le(r))return 1;if(Le(o))return-1}return o.length-r.length}function Le(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function un(e,t,n){const r=an(rn(e.path),n),o=O(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function fn(e,t){const n=[],r=new Map;t=we(ln,t);function o(i){return r.get(i)}function u(i,c,l){const R=!l,A=Ge(i);A.aliasOf=l&&l.record;const P=we(t,i),w=[A];if("alias"in i){const L=typeof i.alias=="string"?[i.alias]:i.alias;for(const H of L)w.push(Ge(O({},A,{components:l?l.record.components:A.components,path:H,aliasOf:l?l.record:A})))}let N,C;for(const L of w){const{path:H}=L;if(c&&H[0]!=="/"){const M=c.record.path,D=M[M.length-1]==="/"?"":"/";L.path=c.record.path+(H&&D+H)}if(N=un(L,c,P),l?l.alias.push(N):(C=C||N,C!==N&&C.alias.push(N),R&&i.name&&!Ve(N)&&h(i.name)),ot(N)&&a(N),A.children){const M=A.children;for(let D=0;D<M.length;D++)u(M[D],N,l&&l.children[D])}l=l||N}return C?()=>{h(C)}:ee}function h(i){if(tt(i)){const c=r.get(i);c&&(r.delete(i),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(i);c>-1&&(n.splice(c,1),i.record.name&&r.delete(i.record.name),i.children.forEach(h),i.alias.forEach(h))}}function m(){return n}function a(i){const c=dn(i,n);n.splice(c,0,i),i.record.name&&!Ve(i)&&r.set(i.record.name,i)}function p(i,c){let l,R={},A,P;if("name"in i&&i.name){if(l=r.get(i.name),!l)throw W(I.MATCHER_NOT_FOUND,{location:i});P=l.record.name,R=O(Be(c.params,l.keys.filter(C=>!C.optional).concat(l.parent?l.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),i.params&&Be(i.params,l.keys.map(C=>C.name))),A=l.stringify(R)}else if(i.path!=null)A=i.path,l=n.find(C=>C.re.test(A)),l&&(R=l.parse(A),P=l.record.name);else{if(l=c.name?r.get(c.name):n.find(C=>C.re.test(c.path)),!l)throw W(I.MATCHER_NOT_FOUND,{location:i,currentLocation:c});P=l.record.name,R=O({},c.params,i.params),A=l.stringify(R)}const w=[];let N=l;for(;N;)w.unshift(N.record),N=N.parent;return{name:P,path:A,params:R,matched:w,meta:pn(w)}}e.forEach(i=>u(i));function f(){n.length=0,r.clear()}return{addRoute:u,resolve:p,removeRoute:h,clearRoutes:f,getRoutes:m,getRecordMatcher:o}}function Be(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ge(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:hn(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 hn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ve(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pn(e){return e.reduce((t,n)=>O(t,n.meta),{})}function dn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;rt(e,t[u])<0?r=u:n=u+1}const o=mn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function mn(e){let t=e;for(;t=t.parent;)if(ot(t)&&rt(e,t)===0)return t}function ot({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Me(e){const t=K(oe),n=K(ze),r=G(()=>{const a=Z(e.to);return t.resolve(a)}),o=G(()=>{const{matched:a}=r.value,{length:p}=a,f=a[p-1],i=n.matched;if(!f||!i.length)return-1;const c=i.findIndex(z.bind(null,f));if(c>-1)return c;const l=$e(a[p-2]);return p>1&&$e(f)===l&&i[i.length-1].path!==l?i.findIndex(z.bind(null,a[p-2])):c}),u=G(()=>o.value>-1&&yn(n.params,r.value.params)),h=G(()=>o.value>-1&&o.value===n.matched.length-1&&et(n.params,r.value.params));function m(a={}){if(Rn(a)){const p=t[Z(e.replace)?"replace":"push"](Z(e.to)).catch(ee);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:r,href:G(()=>r.value.href),isActive:u,isExactActive:h,navigate:m}}function gn(e){return e.length===1?e[0]:e}const vn=qe({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:Me,setup(e,{slots:t}){const n=ut(Me(e)),{options:r}=K(oe),o=G(()=>({[Ue(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ue(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&gn(t.default(n));return e.custom?u:Fe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),En=vn;function Rn(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!B(o)||o.length!==r.length||r.some((u,h)=>u.valueOf()!==o[h].valueOf()))return!1}return!0}function $e(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ue=(e,t,n)=>e??t??n,An=qe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=K(ve),o=G(()=>e.route||r.value),u=K(Ie,0),h=G(()=>{let p=Z(u);const{matched:f}=o.value;let i;for(;(i=f[p])&&!i.components;)p++;return p}),m=G(()=>o.value.matched[h.value]);he(Ie,G(()=>h.value+1)),he(Rt,m),he(ve,o);const a=ht();return ft(()=>[a.value,m.value,e.name],([p,f,i],[c,l,R])=>{f&&(f.instances[i]=p,l&&l!==f&&p&&p===c&&(f.leaveGuards.size||(f.leaveGuards=l.leaveGuards),f.updateGuards.size||(f.updateGuards=l.updateGuards))),p&&f&&(!l||!z(f,l)||!c)&&(f.enterCallbacks[i]||[]).forEach(A=>A(p))},{flush:"post"}),()=>{const p=o.value,f=e.name,i=m.value,c=i&&i.components[f];if(!c)return He(n.default,{Component:c,route:p});const l=i.props[f],R=l?l===!0?p.params:typeof l=="function"?l(p):l:null,P=Fe(c,O({},R,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(i.instances[f]=null)},ref:a}));return He(n.default,{Component:P,route:p})||P}}});function He(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const _n=An;function Nn(e){const t=fn(e.routes,e),n=e.parseQuery||Wt,r=e.stringifyQuery||ke,o=e.history,u=X(),h=X(),m=X(),a=lt($);let p=$;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=pe.bind(null,s=>""+s),i=pe.bind(null,kt),c=pe.bind(null,te);function l(s,g){let d,v;return tt(s)?(d=t.getRecordMatcher(s),v=g):v=s,t.addRoute(v,d)}function R(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function A(){return t.getRoutes().map(s=>s.record)}function P(s){return!!t.getRecordMatcher(s)}function w(s,g){if(g=O({},g||a.value),typeof s=="string"){const E=de(n,s,g.path),b=t.resolve({path:E.path},g),J=o.createHref(E.fullPath);return O(E,b,{params:c(b.params),hash:te(E.hash),redirectedFrom:void 0,href:J})}let d;if(s.path!=null)d=O({},s,{path:de(n,s.path,g.path).path});else{const E=O({},s.params);for(const b in E)E[b]==null&&delete E[b];d=O({},s,{params:i(E)}),g.params=i(g.params)}const v=t.resolve(d,g),_=s.hash||"";v.params=f(c(v.params));const S=Lt(r,O({},s,{hash:St(_),path:v.path})),y=o.createHref(S);return O({fullPath:S,hash:_,query:r===ke?zt(s.query):s.query||{}},v,{redirectedFrom:void 0,href:y})}function N(s){return typeof s=="string"?de(n,s,a.value.path):O({},s)}function C(s,g){if(p!==s)return W(I.NAVIGATION_CANCELLED,{from:g,to:s})}function L(s){return D(s)}function H(s){return L(O(N(s),{replace:!0}))}function M(s,g){const d=s.matched[s.matched.length-1];if(d&&d.redirect){const{redirect:v}=d;let _=typeof v=="function"?v(s,g):v;return typeof _=="string"&&(_=_.includes("?")||_.includes("#")?_=N(_):{path:_},_.params={}),O({query:s.query,hash:s.hash,params:_.path!=null?{}:s.params},_)}}function D(s,g){const d=p=w(s),v=a.value,_=s.state,S=s.force,y=s.replace===!0,E=M(d,v);if(E)return D(O(N(E),{state:typeof E=="object"?O({},_,E.state):_,force:S,replace:y}),g||d);const b=d;b.redirectedFrom=g;let J;return!S&&Bt(r,v,d)&&(J=W(I.NAVIGATION_DUPLICATED,{to:b,from:v}),Pe(v,v,!0,!1)),(J?Promise.resolve(J):_e(b,v)).catch(x=>V(x)?V(x,I.NAVIGATION_GUARD_REDIRECT)?x:le(x):ce(x,b,v)).then(x=>{if(x){if(V(x,I.NAVIGATION_GUARD_REDIRECT))return D(O({replace:y},N(x.to),{state:typeof x.to=="object"?O({},_,x.to.state):_,force:S}),g||b)}else x=Oe(b,v,!0,y,_);return Ne(b,v,x),x})}function st(s,g){const d=C(s,g);return d?Promise.reject(d):Promise.resolve()}function ie(s){const g=re.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function _e(s,g){let d;const[v,_,S]=Qt(s,g);d=ge(v.reverse(),"beforeRouteLeave",s,g);for(const E of v)E.leaveGuards.forEach(b=>{d.push(U(b,s,g))});const y=st.bind(null,s,g);return d.push(y),q(d).then(()=>{d=[];for(const E of u.list())d.push(U(E,s,g));return d.push(y),q(d)}).then(()=>{d=ge(_,"beforeRouteUpdate",s,g);for(const E of _)E.updateGuards.forEach(b=>{d.push(U(b,s,g))});return d.push(y),q(d)}).then(()=>{d=[];for(const E of S)if(E.beforeEnter)if(B(E.beforeEnter))for(const b of E.beforeEnter)d.push(U(b,s,g));else d.push(U(E.beforeEnter,s,g));return d.push(y),q(d)}).then(()=>(s.matched.forEach(E=>E.enterCallbacks={}),d=ge(S,"beforeRouteEnter",s,g,ie),d.push(y),q(d))).then(()=>{d=[];for(const E of h.list())d.push(U(E,s,g));return d.push(y),q(d)}).catch(E=>V(E,I.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function Ne(s,g,d){m.list().forEach(v=>ie(()=>v(s,g,d)))}function Oe(s,g,d,v,_){const S=C(s,g);if(S)return S;const y=g===$,E=F?history.state:{};d&&(v||y?o.replace(s.fullPath,O({scroll:y&&E&&E.scroll},_)):o.push(s.fullPath,_)),a.value=s,Pe(s,g,d,y),le()}let Q;function it(){Q||(Q=o.listen((s,g,d)=>{if(!Y.listening)return;const v=w(s),_=M(v,Y.currentRoute.value);if(_){D(O(_,{replace:!0,force:!0}),v).catch(ee);return}p=v;const S=a.value;F&&qt(Te(S.fullPath,d.delta),se()),_e(v,S).catch(y=>V(y,I.NAVIGATION_ABORTED|I.NAVIGATION_CANCELLED)?y:V(y,I.NAVIGATION_GUARD_REDIRECT)?(D(O(N(y.to),{force:!0}),v).then(E=>{V(E,I.NAVIGATION_ABORTED|I.NAVIGATION_DUPLICATED)&&!d.delta&&d.type===Re.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(d.delta&&o.go(-d.delta,!1),ce(y,v,S))).then(y=>{y=y||Oe(v,S,!1),y&&(d.delta&&!V(y,I.NAVIGATION_CANCELLED)?o.go(-d.delta,!1):d.type===Re.pop&&V(y,I.NAVIGATION_ABORTED|I.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Ne(v,S,y)}).catch(ee)}))}let ae=X(),Ce=X(),ne;function ce(s,g,d){le(s);const v=Ce.list();return v.length?v.forEach(_=>_(s,g,d)):console.error(s),Promise.reject(s)}function at(){return ne&&a.value!==$?Promise.resolve():new Promise((s,g)=>{ae.add([s,g])})}function le(s){return ne||(ne=!s,it(),ae.list().forEach(([g,d])=>s?d(s):g()),ae.reset()),s}function Pe(s,g,d,v){const{scrollBehavior:_}=e;if(!F||!_)return Promise.resolve();const S=!d&&Ft(Te(s.fullPath,0))||(v||!d)&&history.state&&history.state.scroll||null;return pt().then(()=>_(s,g,S)).then(y=>y&&jt(y)).catch(y=>ce(y,s,g))}const ue=s=>o.go(s);let fe;const re=new Set,Y={currentRoute:a,listening:!0,addRoute:l,removeRoute:R,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:A,resolve:w,options:e,push:L,replace:H,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:u.add,beforeResolve:h.add,afterEach:m.add,onError:Ce.add,isReady:at,install(s){s.component("RouterLink",En),s.component("RouterView",_n),s.config.globalProperties.$router=Y,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(a)}),F&&!fe&&a.value===$&&(fe=!0,L(o.location).catch(v=>{}));const g={};for(const v in $)Object.defineProperty(g,v,{get:()=>a.value[v],enumerable:!0});s.provide(oe,Y),s.provide(ze,ct(g)),s.provide(ve,a);const d=s.unmount;re.add(s),s.unmount=function(){re.delete(s),re.size<1&&(p=$,Q&&Q(),Q=null,a.value=$,fe=!1,ne=!1),d()}}};function q(s){return s.reduce((g,d)=>g.then(()=>ie(d)),Promise.resolve())}return Y}const Sn=(e,t)=>{const n=Nn({history:en(`wp-admin/admin.php?page=broken-link-checker-${window.aioseoBrokenLinkChecker.page}`),routes:e,scrollBehavior(r,o,u){return u||(r.hash?{selector:r.hash}:{left:0,top:0})}});return n.beforeEach(async(r,o,u)=>(dt().loaded||mt(t),u())),n},On="modulepreload",Cn=function(e,t){return new URL(e,t).href},je={},bn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let p=function(f){return Promise.all(f.map(i=>Promise.resolve(i).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const h=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),a=m?.nonce||m?.getAttribute("nonce");o=p(n.map(f=>{if(f=Cn(f,r),f in je)return;je[f]=!0;const i=f.endsWith(".css"),c=i?'[rel="stylesheet"]':"";if(r)for(let R=h.length-1;R>=0;R--){const A=h[R];if(A.href===f&&(!i||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${c}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":On,i||(l.as="script"),l.crossOrigin="",l.href=f,a&&l.setAttribute("nonce",a),document.head.appendChild(l),i)return new Promise((R,A)=>{l.addEventListener("load",R),l.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${f}`)))})}))}function u(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&u(m.reason);return t().catch(u)})},Tn=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((o,u)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(u.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};export{Tn as _,bn as a,Sn as s,In as u};