SYN/public/admin/assets/vue-router.680b42ce.js

6 lines
23 KiB
JavaScript
Raw Permalink Normal View History

2025-11-28 07:29:47 +00:00
import{s as nt,E as q,u as F,at as rt,d as qe,b as N,F as le,r as st,w as ot,h as ze,n as ct,a1 as it}from"./@vue.54440ad7.js";/*!
* vue-router v4.4.3
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const G=typeof document<"u";function at(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const P=Object.assign;function ue(e,t){const n={};for(const r in t){const s=t[r];n[r]=L(s)?s.map(e):e(s)}return n}const W=()=>{},L=Array.isArray,Ge=/#/g,lt=/&/g,ut=/\//g,ft=/=/g,ht=/\?/g,Ke=/\+/g,dt=/%5B/g,pt=/%5D/g,Ve=/%5E/g,mt=/%60/g,Ue=/%7B/g,gt=/%7C/g,De=/%7D/g,vt=/%20/g;function ge(e){return encodeURI(""+e).replace(gt,"|").replace(dt,"[").replace(pt,"]")}function yt(e){return ge(e).replace(Ue,"{").replace(De,"}").replace(Ve,"^")}function de(e){return ge(e).replace(Ke,"%2B").replace(vt,"+").replace(Ge,"%23").replace(lt,"%26").replace(mt,"`").replace(Ue,"{").replace(De,"}").replace(Ve,"^")}function Rt(e){return de(e).replace(ft,"%3D")}function Et(e){return ge(e).replace(Ge,"%23").replace(ht,"%3F")}function wt(e){return e==null?"":Et(e).replace(ut,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Pt=/\/$/,St=e=>e.replace(Pt,"");function fe(e,t,n="/"){let r,s={},a="",p="";const g=t.indexOf("#");let c=t.indexOf("?");return g<c&&g>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,g>-1?g:t.length),s=e(a)),g>-1&&(r=r||t.slice(0,g),p=t.slice(g,t.length)),r=At(r!=null?r:t,n),{fullPath:r+(a&&"?")+a+p,path:r,query:s,hash:X(p)}}function bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kt(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&K(t.matched[r],n.matched[s])&&Qe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function K(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ct(e[n],t[n]))return!1;return!0}function Ct(e,t){return L(e)?ke(e,t):L(t)?ke(t,e):e===t}function ke(e,t){return L(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function At(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let a=n.length-1,p,g;for(p=0;p<r.length;p++)if(g=r[p],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(p).join("/")}const j={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var Y;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y||(Y={}));function _t(e){if(!e)if(G){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),St(e)}const Ot=/^[^#]+#/;function xt(e,t){return e.replace(Ot,"#")+t}function Mt(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 te=()=>({left:window.scrollX,top:window.scrollY});function It(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Mt(s,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 Ce(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function Lt(e,t){pe.set(e,t)}function Nt(e){const t=pe.get(e);return pe.delete(e),t}let Tt=()=>location.protocol+"//"+location.host;function Fe(e,t){const{pathname:n,search:r,hash:s}=t,a=e.indexOf("#");if(a>-1){let g=s.includes(e.slice(a))?e.slice(a).length:1,c=s.slice(g);return c[0]!=="/"&&(c="/"+c),be(c,"")}return be(n,e)+r+s}function $t(e,t,n,r){let s=[],a=[],p=null;const g=({state:l})=>{const u=Fe(e,location),w=n.value,S=t.value;let C=0;if(l){if(n.value=u,t.value=l,p&&p===w){p=null;return}C=S?l.position-S.position:0}else r(u);s.forEach(A=>{A(n.value,w,{delta:C,type:Z.pop,direction:C?C>0?Y.forward:Y.back:Y.unknown})})};function c(