6 lines
27 KiB
JavaScript
6 lines
27 KiB
JavaScript
|
|
/*!
|
||
|
|
* vue-router v4.6.4
|
||
|
|
* (c) 2025 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
var VueRouter=(function(e,t){let n=typeof document<`u`;function r(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function i(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&r(e.default)}let a=Object.assign;function o(e,t){let n={};for(let r in t){let i=t[r];n[r]=c(i)?i.map(e):e(i)}return n}let s=()=>{},c=Array.isArray;function l(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}let u=/#/g,d=/&/g,f=/\//g,p=/=/g,m=/\?/g,h=/\+/g,ee=/%5B/g,te=/%5D/g,g=/%5E/g,ne=/%60/g,re=/%7B/g,ie=/%7C/g,ae=/%7D/g,_=/%20/g;function v(e){return e==null?``:encodeURI(``+e).replace(ie,`|`).replace(ee,`[`).replace(te,`]`)}function oe(e){return v(e).replace(re,`{`).replace(ae,`}`).replace(g,`^`)}function y(e){return v(e).replace(h,`%2B`).replace(_,`+`).replace(u,`%23`).replace(d,`%26`).replace(ne,"`").replace(re,`{`).replace(ae,`}`).replace(g,`^`)}function b(e){return y(e).replace(p,`%3D`)}function se(e){return v(e).replace(u,`%23`).replace(m,`%3F`)}function ce(e){return se(e).replace(f,`%2F`)}function x(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch(e){}return``+e}let le=/\/$/,S=e=>e.replace(le,``);function ue(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=r||t.slice(0,s),o=t.slice(s,t.length)),r=E(r==null?t:r,n),{fullPath:r+a+o,path:r,query:i,hash:x(o)}}function de(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function fe(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&&C(t.matched[r],n.matched[i])&&w(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function C(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(var n in e)if(!me(e[n],t[n]))return!1;return!0}function me(e,t){return c(e)?T(e,t):c(t)?T(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function T(e,t){return c(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function E(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(`/`)}let D={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},O=function(e){return e.pop=`pop`,e.push=`push`,e}({}),k=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function A(e){if(!e)if(n){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),S(e)}let he=/^[^#]+#/;function j(e,t){return e.replace(he,`#`)+t}function M(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)}}let N=()=>({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=M(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}let P=new Map;function ve(e,t){P.set(e,t)}function ye(e){let t=P.get(e);return P.delete(e),t}let F=()=>location.protocol+`//`+location.host;function I(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),fe(n,``)}return fe(n,e)+r+i}function L(e,t,n,r){let i=[],o=[],s=null,c=({state:a})=>{let o=I(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=o,t.valu
|