2025-06-27 10:04:22 +08:00

6 lines
26 KiB
JavaScript

import{a6 as rt,i as W,f as I,a as Ve,N as ot,d as De,H as X,h as qe,I as ae,b as st,A as it}from"./runtime-dom.esm-bundler-896ebc12.js";const ct="modulepreload",at=function(e){return"/"+e},we={},$=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(c=>{if(c=at(c),c in we)return;we[c]=!0;const d=c.endsWith(".css"),m=d?'[rel="stylesheet"]':"";if(!!r)for(let s=o.length-1;s>=0;s--){const l=o[s];if(l.href===c&&(!d||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":ct,d||(u.as="script",u.crossOrigin=""),u.href=c,document.head.appendChild(u),d)return new Promise((s,l)=>{u.addEventListener("load",s),u.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${c}`)))})})).then(()=>t())};/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const D=typeof window<"u";function lt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const w=Object.assign;function le(e,t){const n={};for(const r in t){const o=t[r];n[r]=T(o)?o.map(e):e(o)}return n}const F=()=>{},T=Array.isArray,ut=/\/$/,ft=e=>e.replace(ut,"");function ue(e,t,n="/"){let r,o={},c="",d="";const m=t.indexOf("#");let a=t.indexOf("?");return m<a&&m>=0&&(a=-1),a>-1&&(r=t.slice(0,a),c=t.slice(a+1,m>-1?m:t.length),o=e(c)),m>-1&&(r=r||t.slice(0,m),d=t.slice(m,t.length)),r=mt(r??t,n),{fullPath:r+(c&&"?")+c+d,path:r,query:o,hash:d}}function ht(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 dt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&q(t.matched[r],n.matched[o])&&ze(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!pt(e[n],t[n]))return!1;return!0}function pt(e,t){return T(e)?ke(e,t):T(t)?ke(t,e):e===t}function ke(e,t){return T(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function mt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,c,d;for(c=0;c<r.length;c++)if(d=r[c],d!==".")if(d==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(c-(c===r.length?1:0)).join("/")}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 gt(e){if(!e)if(D){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ft(e)}const vt=/^[^#]+#/;function yt(e,t){return e.replace(vt,"#")+t}function Et(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.pageXOffset,top:window.pageYOffset});function Rt(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=Et(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ce(e,t){return(history.state?history.state.position-t:-1)+e}const he=new Map;function _t(e,t){he.set(e,t)}function Pt(e){const t=he.get(e);return he.delete(e),t}let wt=()=>location.protocol+"//"+location.host;function Ge(e,t){const{pathname:n,search:r,hash:o}=t,c=e.indexOf("#");if(c>-1){let m=o.includes(e.slice(c))?e.slice(c).length:1,a=o.slice(m);return a[0]!=="/"&&(a="/"+a),Se(a,"")}return Se(n,e)+r+o}function St(e,t,n,r){let o=[],c=[],d=null;const m=({state:f})=>{const g=Ge(e,location),E=n.value,C=t.value;let k=0;if(f){if(n.value=g,t.value=f,d&&d===E){d=null;return}k=C?f.position-C.position:0}else r(g);o.forEach(R=>{R(n.value,E,{delta:k,type:Z.pop,direction:k?k>0?Y.forward:Y.back:Y.unknown})})};function a(){d=n.value}function u(f){o.push(f);const g=()=>{const E=o.indexOf(f);E>-1&&o.splice(E,1)};return c.push(g),g}function s(){const{history:f}=window;f.state&&f.replaceState(w({},f.state,{scroll:te()}),"")}function l(){for(const f of c)f();c=[],window.removeEventListener("popstate",m),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",m),window.addEventListener("beforeunload",s),{pauseListeners:a,listen:u,destroy:l}}function Ae(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function kt(e){const{history:t,location:n}=window,r={value:Ge(e,n)},o={value:t.state};o.value||c(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(a,u,s){const l=e.indexOf("#"),f=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+a:wt()+e+a;try{t[s?"replaceState":"pushState"](u,"",f),o.value=u}catch(g){console.error(g),n[s?"replace":"assign"](f)}}function d(a,u){const s=w({},t.state,Ae(o.value.back,a,o.value.forward,!0),u,{position:o.value.position});c(a,s,!0),r.value=a}function m(a,u){const s=w({},o.value,t.state,{forward:a,scroll:te()});c(s.current,s,!0);const l=w({},Ae(r.value,a,null),{position:s.position+1},u);c(a,l,!1),r.value=a}return{location:r,state:o,push:m,replace:d}}function Ct(e){e=gt(e);const t=kt(e),n=St(e,t.state,t.location,t.replace);function r(c,d=!0){d||n.pauseListeners(),history.go(c)}const o=w({location:"",base:e,go:r,createHref:yt.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 At(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ct(e)}function bt(e){return typeof e=="string"||e&&typeof e=="object"}function Ue(e){return typeof e=="string"||typeof e=="symbol"}const B={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ke=Symbol("");var be;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(be||(be={}));function z(e,t){return w(new Error,{type:e,[Ke]:!0},t)}function N(e,t){return e instanceof Error&&Ke in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Ot={sensitive:!1,strict:!1,start:!0,end:!0},xt=/[.+*?^${}()[\]/\\]/g;function Lt(e,t){const n=w({},Ot,t),r=[];let o=n.start?"^":"";const c=[];for(const u of e){const s=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let l=0;l<u.length;l++){const f=u[l];let g=40+(n.sensitive?.25:0);if(f.type===0)l||(o+="/"),o+=f.value.replace(xt,"\\$&"),g+=40;else if(f.type===1){const{value:E,repeatable:C,optional:k,regexp:R}=f;c.push({name:E,repeatable:C,optional:k});const P=R||Oe;if(P!==Oe){g+=10;try{new RegExp(`(${P})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${E}" (${P}): `+L.message)}}let O=C?`((?:${P})(?:/(?:${P}))*)`:`(${P})`;l||(O=k&&u.length<2?`(?:/${O})`:"/"+O),k&&(O+="?"),o+=O,g+=20,k&&(g+=-8),C&&(g+=-20),P===".*"&&(g+=-50)}s.push(g)}r.push(s)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function m(u){const s=u.match(d),l={};if(!s)return null;for(let f=1;f<s.length;f++){const g=s[f]||"",E=c[f-1];l[E.name]=g&&E.repeatable?g.split("/"):g}return l}function a(u){let s="",l=!1;for(const f of e){(!l||!s.endsWith("/"))&&(s+="/"),l=!1;for(const g of f)if(g.type===0)s+=g.value;else if(g.type===1){const{value:E,repeatable:C,optional:k}=g,R=E in u?u[E]:"";if(T(R)&&!C)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const P=T(R)?R.join("/"):R;if(!P)if(k)f.length<2&&(s.endsWith("/")?s=s.slice(0,-1):l=!0);else throw new Error(`Missing required param "${E}"`);s+=P}}return s||"/"}return{re:d,score:r,keys:c,parse:m,stringify:a}}function It(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Tt(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const c=It(r[n],o[n]);if(c)return c;n++}if(Math.abs(o.length-r.length)===1){if(xe(r))return 1;if(xe(o))return-1}return o.length-r.length}function xe(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Mt={type:0,value:""},Nt=/[a-zA-Z0-9_]/;function $t(e){if(!e)return[[]];if(e==="/")return[[Mt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const o=[];let c;function d(){c&&o.push(c),c=[]}let m=0,a,u="",s="";function l(){u&&(n===0?c.push({type:0,value:u}):n===1||n===2||n===3?(c.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:u,regexp:s,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=a}for(;m<e.length;){if(a=e[m++],a==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:a==="/"?(u&&l(),d()):a===":"?(l(),n=1):f();break;case 4:f(),n=r;break;case 1:a==="("?n=2:Nt.test(a)?f():(l(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&m--);break;case 2:a===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+a:n=3:s+=a;break;case 3:l(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&m--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),l(),d(),o}function Bt(e,t,n){const r=Lt($t(e.path),n),o=w(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ht(e,t){const n=[],r=new Map;t=Te({strict:!1,end:!0,sensitive:!1},t);function o(s){return r.get(s)}function c(s,l,f){const g=!f,E=jt(s);E.aliasOf=f&&f.record;const C=Te(t,s),k=[E];if("alias"in s){const O=typeof s.alias=="string"?[s.alias]:s.alias;for(const L of O)k.push(w({},E,{components:f?f.record.components:E.components,path:L,aliasOf:f?f.record:E}))}let R,P;for(const O of k){const{path:L}=O;if(l&&L[0]!=="/"){const j=l.record.path,M=j[j.length-1]==="/"?"":"/";O.path=l.record.path+(L&&M+L)}if(R=Bt(O,l,C),f?f.alias.push(R):(P=P||R,P!==R&&P.alias.push(R),g&&s.name&&!Ie(R)&&d(s.name)),E.children){const j=E.children;for(let M=0;M<j.length;M++)c(j[M],R,f&&f.children[M])}f=f||R,(R.record.components&&Object.keys(R.record.components).length||R.record.name||R.record.redirect)&&a(R)}return P?()=>{d(P)}:F}function d(s){if(Ue(s)){const l=r.get(s);l&&(r.delete(s),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(s);l>-1&&(n.splice(l,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function m(){return n}function a(s){let l=0;for(;l<n.length&&Tt(s,n[l])>=0&&(s.record.path!==n[l].record.path||!Qe(s,n[l]));)l++;n.splice(l,0,s),s.record.name&&!Ie(s)&&r.set(s.record.name,s)}function u(s,l){let f,g={},E,C;if("name"in s&&s.name){if(f=r.get(s.name),!f)throw z(1,{location:s});C=f.record.name,g=w(Le(l.params,f.keys.filter(P=>!P.optional).map(P=>P.name)),s.params&&Le(s.params,f.keys.map(P=>P.name))),E=f.stringify(g)}else if("path"in s)E=s.path,f=n.find(P=>P.re.test(E)),f&&(g=f.parse(E),C=f.record.name);else{if(f=l.name?r.get(l.name):n.find(P=>P.re.test(l.path)),!f)throw z(1,{location:s,currentLocation:l});C=f.record.name,g=w({},l.params,s.params),E=f.stringify(g)}const k=[];let R=f;for(;R;)k.unshift(R.record),R=R.parent;return{name:C,path:E,params:g,matched:k,meta:Dt(k)}}return e.forEach(s=>c(s)),{addRoute:c,resolve:u,removeRoute:d,getRoutes:m,getRecordMatcher:o}}function Le(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function jt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Vt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Vt(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=="boolean"?n:n[r];return t}function Ie(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dt(e){return e.reduce((t,n)=>w(t,n.meta),{})}function Te(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Qe(e,t){return t.children.some(n=>n===e||Qe(e,n))}const We=/#/g,qt=/&/g,zt=/\//g,Gt=/=/g,Ut=/\?/g,Fe=/\+/g,Kt=/%5B/g,Qt=/%5D/g,Ye=/%5E/g,Wt=/%60/g,Xe=/%7B/g,Ft=/%7C/g,Ze=/%7D/g,Yt=/%20/g;function me(e){return encodeURI(""+e).replace(Ft,"|").replace(Kt,"[").replace(Qt,"]")}function Xt(e){return me(e).replace(Xe,"{").replace(Ze,"}").replace(Ye,"^")}function de(e){return me(e).replace(Fe,"%2B").replace(Yt,"+").replace(We,"%23").replace(qt,"%26").replace(Wt,"`").replace(Xe,"{").replace(Ze,"}").replace(Ye,"^")}function Zt(e){return de(e).replace(Gt,"%3D")}function Jt(e){return me(e).replace(We,"%23").replace(Ut,"%3F")}function en(e){return e==null?"":Jt(e).replace(zt,"%2F")}function ee(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function tn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const c=r[o].replace(Fe," "),d=c.indexOf("="),m=ee(d<0?c:c.slice(0,d)),a=d<0?null:ee(c.slice(d+1));if(m in t){let u=t[m];T(u)||(u=t[m]=[u]),u.push(a)}else t[m]=a}return t}function Me(e){let t="";for(let n in e){const r=e[n];if(n=Zt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(T(r)?r.map(c=>c&&de(c)):[r&&de(r)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+n,c!=null&&(t+="="+c))})}return t}function nn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=T(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const rn=Symbol(""),Ne=Symbol(""),ge=Symbol(""),Je=Symbol(""),pe=Symbol("");function Q(){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,reset:n}}function H(e,t,n,r,o){const c=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,m)=>{const a=l=>{l===!1?m(z(4,{from:n,to:t})):l instanceof Error?m(l):bt(l)?m(z(2,{from:t,to:l})):(c&&r.enterCallbacks[o]===c&&typeof l=="function"&&c.push(l),d())},u=e.call(r&&r.instances[o],t,n,a);let s=Promise.resolve(u);e.length<3&&(s=s.then(a)),s.catch(l=>m(l))})}function fe(e,t,n,r){const o=[];for(const c of e)for(const d in c.components){let m=c.components[d];if(!(t!=="beforeRouteEnter"&&!c.instances[d]))if(on(m)){const u=(m.__vccOpts||m)[t];u&&o.push(H(u,n,r,c,d))}else{let a=m();o.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${c.path}"`));const s=lt(u)?u.default:u;c.components[d]=s;const f=(s.__vccOpts||s)[t];return f&&H(f,n,r,c,d)()}))}}return o}function on(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $e(e){const t=X(ge),n=X(Je),r=I(()=>t.resolve(W(e.to))),o=I(()=>{const{matched:a}=r.value,{length:u}=a,s=a[u-1],l=n.matched;if(!s||!l.length)return-1;const f=l.findIndex(q.bind(null,s));if(f>-1)return f;const g=Be(a[u-2]);return u>1&&Be(s)===g&&l[l.length-1].path!==g?l.findIndex(q.bind(null,a[u-2])):f}),c=I(()=>o.value>-1&&ln(n.params,r.value.params)),d=I(()=>o.value>-1&&o.value===n.matched.length-1&&ze(n.params,r.value.params));function m(a={}){return an(a)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(F):Promise.resolve()}return{route:r,href:I(()=>r.value.href),isActive:c,isExactActive:d,navigate:m}}const sn=De({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"}},useLink:$e,setup(e,{slots:t}){const n=Ve($e(e)),{options:r}=X(ge),o=I(()=>({[He(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[He(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const c=t.default&&t.default(n);return e.custom?c:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},c)}}}),cn=sn;function an(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 ln(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(!T(o)||o.length!==r.length||r.some((c,d)=>c!==o[d]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const He=(e,t,n)=>e??t??n,un=De({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=X(pe),o=I(()=>e.route||r.value),c=X(Ne,0),d=I(()=>{let u=W(c);const{matched:s}=o.value;let l;for(;(l=s[u])&&!l.components;)u++;return u}),m=I(()=>o.value.matched[d.value]);ae(Ne,I(()=>d.value+1)),ae(rn,m),ae(pe,o);const a=st();return it(()=>[a.value,m.value,e.name],([u,s,l],[f,g,E])=>{s&&(s.instances[l]=u,g&&g!==s&&u&&u===f&&(s.leaveGuards.size||(s.leaveGuards=g.leaveGuards),s.updateGuards.size||(s.updateGuards=g.updateGuards))),u&&s&&(!g||!q(s,g)||!f)&&(s.enterCallbacks[l]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=o.value,s=e.name,l=m.value,f=l&&l.components[s];if(!f)return je(n.default,{Component:f,route:u});const g=l.props[s],E=g?g===!0?u.params:typeof g=="function"?g(u):g:null,k=qe(f,w({},E,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(l.instances[s]=null)},ref:a}));return je(n.default,{Component:k,route:u})||k}}});function je(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fn=un;function hn(e){const t=Ht(e.routes,e),n=e.parseQuery||tn,r=e.stringifyQuery||Me,o=e.history,c=Q(),d=Q(),m=Q(),a=rt(B);let u=B;D&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=le.bind(null,i=>""+i),l=le.bind(null,en),f=le.bind(null,ee);function g(i,p){let h,v;return Ue(i)?(h=t.getRecordMatcher(i),v=p):v=i,t.addRoute(v,h)}function E(i){const p=t.getRecordMatcher(i);p&&t.removeRoute(p)}function C(){return t.getRoutes().map(i=>i.record)}function k(i){return!!t.getRecordMatcher(i)}function R(i,p){if(p=w({},p||a.value),typeof i=="string"){const y=ue(n,i,p.path),b=t.resolve({path:y.path},p),K=o.createHref(y.fullPath);return w(y,b,{params:f(b.params),hash:ee(y.hash),redirectedFrom:void 0,href:K})}let h;if("path"in i)h=w({},i,{path:ue(n,i.path,p.path).path});else{const y=w({},i.params);for(const b in y)y[b]==null&&delete y[b];h=w({},i,{params:l(i.params)}),p.params=l(p.params)}const v=t.resolve(h,p),S=i.hash||"";v.params=s(f(v.params));const A=ht(r,w({},i,{hash:Xt(S),path:v.path})),_=o.createHref(A);return w({fullPath:A,hash:S,query:r===Me?nn(i.query):i.query||{}},v,{redirectedFrom:void 0,href:_})}function P(i){return typeof i=="string"?ue(n,i,a.value.path):w({},i)}function O(i,p){if(u!==i)return z(8,{from:p,to:i})}function L(i){return G(i)}function j(i){return L(w(P(i),{replace:!0}))}function M(i){const p=i.matched[i.matched.length-1];if(p&&p.redirect){const{redirect:h}=p;let v=typeof h=="function"?h(i):h;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=P(v):{path:v},v.params={}),w({query:i.query,hash:i.hash,params:"path"in v?{}:i.params},v)}}function G(i,p){const h=u=R(i),v=a.value,S=i.state,A=i.force,_=i.replace===!0,y=M(h);if(y)return G(w(P(y),{state:typeof y=="object"?w({},S,y.state):S,force:A,replace:_}),p||h);const b=h;b.redirectedFrom=p;let K;return!A&&dt(r,v,h)&&(K=z(16,{to:b,from:v}),_e(v,v,!0,!1)),(K?Promise.resolve(K):ve(b,v)).catch(x=>N(x)?N(x,2)?x:oe(x):re(x,b,v)).then(x=>{if(x){if(N(x,2))return G(w({replace:_},P(x.to),{state:typeof x.to=="object"?w({},S,x.to.state):S,force:A}),p||b)}else x=Ee(b,v,!0,_,S);return ye(b,v,x),x})}function et(i,p){const h=O(i,p);return h?Promise.reject(h):Promise.resolve()}function ve(i,p){let h;const[v,S,A]=dn(i,p);h=fe(v.reverse(),"beforeRouteLeave",i,p);for(const y of v)y.leaveGuards.forEach(b=>{h.push(H(b,i,p))});const _=et.bind(null,i,p);return h.push(_),V(h).then(()=>{h=[];for(const y of c.list())h.push(H(y,i,p));return h.push(_),V(h)}).then(()=>{h=fe(S,"beforeRouteUpdate",i,p);for(const y of S)y.updateGuards.forEach(b=>{h.push(H(b,i,p))});return h.push(_),V(h)}).then(()=>{h=[];for(const y of i.matched)if(y.beforeEnter&&!p.matched.includes(y))if(T(y.beforeEnter))for(const b of y.beforeEnter)h.push(H(b,i,p));else h.push(H(y.beforeEnter,i,p));return h.push(_),V(h)}).then(()=>(i.matched.forEach(y=>y.enterCallbacks={}),h=fe(A,"beforeRouteEnter",i,p),h.push(_),V(h))).then(()=>{h=[];for(const y of d.list())h.push(H(y,i,p));return h.push(_),V(h)}).catch(y=>N(y,8)?y:Promise.reject(y))}function ye(i,p,h){for(const v of m.list())v(i,p,h)}function Ee(i,p,h,v,S){const A=O(i,p);if(A)return A;const _=p===B,y=D?history.state:{};h&&(v||_?o.replace(i.fullPath,w({scroll:_&&y&&y.scroll},S)):o.push(i.fullPath,S)),a.value=i,_e(i,p,h,_),oe()}let U;function tt(){U||(U=o.listen((i,p,h)=>{if(!Pe.listening)return;const v=R(i),S=M(v);if(S){G(w(S,{replace:!0}),v).catch(F);return}u=v;const A=a.value;D&&_t(Ce(A.fullPath,h.delta),te()),ve(v,A).catch(_=>N(_,12)?_:N(_,2)?(G(_.to,v).then(y=>{N(y,20)&&!h.delta&&h.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(h.delta&&o.go(-h.delta,!1),re(_,v,A))).then(_=>{_=_||Ee(v,A,!1),_&&(h.delta&&!N(_,8)?o.go(-h.delta,!1):h.type===Z.pop&&N(_,20)&&o.go(-1,!1)),ye(v,A,_)}).catch(F)}))}let ne=Q(),Re=Q(),J;function re(i,p,h){oe(i);const v=Re.list();return v.length?v.forEach(S=>S(i,p,h)):console.error(i),Promise.reject(i)}function nt(){return J&&a.value!==B?Promise.resolve():new Promise((i,p)=>{ne.add([i,p])})}function oe(i){return J||(J=!i,tt(),ne.list().forEach(([p,h])=>i?h(i):p()),ne.reset()),i}function _e(i,p,h,v){const{scrollBehavior:S}=e;if(!D||!S)return Promise.resolve();const A=!h&&Pt(Ce(i.fullPath,0))||(v||!h)&&history.state&&history.state.scroll||null;return ot().then(()=>S(i,p,A)).then(_=>_&&Rt(_)).catch(_=>re(_,i,p))}const se=i=>o.go(i);let ie;const ce=new Set,Pe={currentRoute:a,listening:!0,addRoute:g,removeRoute:E,hasRoute:k,getRoutes:C,resolve:R,options:e,push:L,replace:j,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:c.add,beforeResolve:d.add,afterEach:m.add,onError:Re.add,isReady:nt,install(i){const p=this;i.component("RouterLink",cn),i.component("RouterView",fn),i.config.globalProperties.$router=p,Object.defineProperty(i.config.globalProperties,"$route",{enumerable:!0,get:()=>W(a)}),D&&!ie&&a.value===B&&(ie=!0,L(o.location).catch(S=>{}));const h={};for(const S in B)h[S]=I(()=>a.value[S]);i.provide(ge,p),i.provide(Je,Ve(h)),i.provide(pe,a);const v=i.unmount;ce.add(i),i.unmount=function(){ce.delete(i),ce.size<1&&(u=B,U&&U(),U=null,a.value=B,ie=!1,J=!1),v()}}};return Pe}function V(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function dn(e,t){const n=[],r=[],o=[],c=Math.max(t.matched.length,e.matched.length);for(let d=0;d<c;d++){const m=t.matched[d];m&&(e.matched.find(u=>q(u,m))?r.push(m):n.push(m));const a=e.matched[d];a&&(t.matched.find(u=>q(u,a))||o.push(a))}return[n,r,o]}const pn=[{path:"/",redirect:"/shanghaimap"},{path:"/shanghaimap",component:()=>$(()=>import("./shanghaimap-57bb81f6.js"),["assets/shanghaimap-57bb81f6.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/VueDraggableResizable-d4c6f879.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css","assets/linq-f2d45665.js","assets/index-bc09411f.js","assets/SettingAPI-9de9ba61.js","assets/index-bf67ebd5.js","assets/wordCloud-6f538b1f.js","assets/shanghaimap-a820a53b.css"])},{path:"/fixshanghaimap",component:()=>$(()=>import("./fixshanghaimap-b278e696.js"),["assets/fixshanghaimap-b278e696.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/VueDraggableResizable-d4c6f879.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css","assets/barshow-65a7ce60.js","assets/barshow-1a28add8.css","assets/linq-f2d45665.js","assets/index-bc09411f.js","assets/SettingAPI-9de9ba61.js","assets/headMenu.vue_vue_type_script_setup_true_component_true_lang-d9494011.js"])},{path:"/test2",component:()=>$(()=>import("./test2-bc5f66bd.js"),["assets/test2-bc5f66bd.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/VueDraggableResizable-d4c6f879.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css"])},{path:"/chinamap",component:()=>$(()=>import("./chinamap-6be66095.js"),["assets/chinamap-6be66095.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/VueDraggableResizable-d4c6f879.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css","assets/barshow-65a7ce60.js","assets/barshow-1a28add8.css","assets/linq-f2d45665.js","assets/index-bc09411f.js","assets/SettingAPI-9de9ba61.js","assets/headMenu.vue_vue_type_script_setup_true_component_true_lang-d9494011.js"])},{path:"/worldmap",component:()=>$(()=>import("./worldmapgen-70f82383.js"),["assets/worldmapgen-70f82383.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/VueDraggableResizable-d4c6f879.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css","assets/linq-f2d45665.js","assets/index-bc09411f.js","assets/SettingAPI-9de9ba61.js","assets/headMenu.vue_vue_type_script_setup_true_component_true_lang-d9494011.js","assets/worldmapgen-5a2293b5.css"])},{path:"/jiedao",component:()=>$(()=>import("./jiedaonew-6ebb9f2d.js"),["assets/jiedaonew-6ebb9f2d.js","assets/runtime-dom.esm-bundler-896ebc12.js"])},{path:"/test",component:()=>$(()=>import("./test-5a7d4611.js"),["assets/test-5a7d4611.js","assets/VueDraggableResizable-d4c6f879.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css","assets/index-bf67ebd5.js"])},{path:"/shanghaimapforstage",component:()=>$(()=>import("./shanghaimapForStage-e8c2ae4a.js"),["assets/shanghaimapForStage-e8c2ae4a.js","assets/runtime-dom.esm-bundler-896ebc12.js","assets/VueDraggableResizable-d4c6f879.js","assets/_plugin-vue_export-helper-c27b6911.js","assets/VueDraggableResizable-e9353437.css","assets/linq-f2d45665.js","assets/index-bc09411f.js","assets/index-bf67ebd5.js","assets/wordCloud-6f538b1f.js","assets/shanghaimap-a820a53b.css"])}],gn=hn({history:At(),routes:pn});export{gn as r};