Files
miriamgemeinde/public/assets/vue-router-qDNOCMCn.js

2 lines
24 KiB
JavaScript

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