@vtj/pro 0.13.38 → 0.13.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  14. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +29 -25
  15. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  16. package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
  17. package/dist/@vtj/materials/deps/vant/index.css +1 -1
  18. package/dist/@vtj/materials/deps/vant/vant.min.js +3 -3
  19. package/dist/@vtj/materials/deps/vue/vue.global.js +314 -269
  20. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
  21. package/dist/@vtj/materials/deps/vue-router/vue-router.global.js +38 -55
  22. package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
  23. package/dist/assets/{@element-plus-icons-vue-BKci8WR4.js → @element-plus-icons-vue-Cedkr9-t.js} +1 -1
  24. package/dist/assets/@vueuse-dfxA5MrB.js +1 -0
  25. package/dist/assets/{Editor-DDkL8z_g-CT2bNIwy.css → Editor-CB7H71mV-C0ROBped.css} +1 -1
  26. package/dist/assets/{Editor-DDkL8z_g-DBAoPJJ_.js → Editor-CB7H71mV-ZgvMz2MG.js} +102 -80
  27. package/dist/assets/auth-DnD_8cBd.js +1 -0
  28. package/dist/assets/element-plus-CTJx9qrF.js +12 -0
  29. package/dist/assets/element-plus-Cubt0wGL.css +1 -0
  30. package/dist/assets/index-CfEg0G4X.js +1 -0
  31. package/dist/assets/{index-BN_BO5AJ.js → index-DRT_gnec.js} +2 -2
  32. package/dist/assets/{lodash-es-DyZ5XK_i.js → lodash-es-C_ofKwPd.js} +1 -1
  33. package/dist/assets/marked-Dt4xUbva.js +59 -0
  34. package/dist/assets/page-BoUPZL85.js +2 -0
  35. package/dist/assets/preview-6kb9FMSl.js +2 -0
  36. package/dist/assets/{uni-page-BA3KNMq4.js → uni-page-DhlBsrdh.js} +1 -1
  37. package/dist/assets/{utils-DgJKN_YS.js → utils-BRRyiuJG.js} +1 -1
  38. package/dist/assets/vue-DnlwaDgl.js +35 -0
  39. package/dist/assets/vue-router-C7QxHR5l.js +9 -0
  40. package/dist/assets/{vxe-CiIRgvGK.js → vxe-CV1GhgEu.js} +4 -4
  41. package/dist/index.html +10 -10
  42. package/dist/uni/assets/{@dcloudio-uni-h5-vue-8GkSpuEV.js → @dcloudio-uni-h5-vue-Dxv_ts1w.js} +1 -1
  43. package/dist/uni/assets/{index-Bo7dvfkA.js → index-BBaSDF4L.js} +19 -19
  44. package/dist/uni/assets/vue-router-C2iVG-hf.js +9 -0
  45. package/dist/uni/index.html +24 -3
  46. package/package.json +12 -12
  47. package/dist/assets/@vueuse-CFu7Lllw.js +0 -1
  48. package/dist/assets/auth-BJnotDgg.js +0 -1
  49. package/dist/assets/element-plus-BCa6Zci8.js +0 -12
  50. package/dist/assets/element-plus-BZ_SBfk-.css +0 -1
  51. package/dist/assets/index-svsO9SUA.js +0 -1
  52. package/dist/assets/marked-BQZxLJfc.js +0 -56
  53. package/dist/assets/page-CKK4ROLa.js +0 -2
  54. package/dist/assets/preview-DUXn9tqt.js +0 -2
  55. package/dist/assets/vue-CAMRmZ-8.js +0 -35
  56. package/dist/assets/vue-router-CwSAuTE4.js +0 -9
  57. package/dist/uni/assets/vue-router-eQVOEjEf.js +0 -9
@@ -1,9 +0,0 @@
1
- import{i as M,o as dt,a as pt,b as mt,d as Fe,c as B,p as pe,r as gt,w as Rt,h as Qe,s as Et,u as $,e as vt,n as yt,f as At}from"./@dcloudio-uni-h5-vue-8GkSpuEV.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-Cc-Ey1iB.js";/*!
2
- * vue-router v4.6.3
3
- * (c) 2025 Eduardo San Martin Morote
4
- * @license MIT
5
- */const F=typeof document!="undefined";function ze(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ye(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ze(e.default)}const O=Object.assign;function me(e,t){const n={};for(const r in t){const o=t[r];n[r]=L(o)?o.map(e):e(o)}return n}const ee=()=>{},L=Array.isArray;function be(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Je=/#/g,Nt=/&/g,Ot=/\//g,Ct=/=/g,_t=/\?/g,Xe=/\+/g,Pt=/%5B/g,It=/%5D/g,Ze=/%5E/g,wt=/%60/g,$e=/%7B/g,St=/%7C/g,et=/%7D/g,bt=/%20/g;function Ne(e){return e==null?"":encodeURI(""+e).replace(St,"|").replace(Pt,"[").replace(It,"]")}function Tt(e){return Ne(e).replace($e,"{").replace(et,"}").replace(Ze,"^")}function ve(e){return Ne(e).replace(Xe,"%2B").replace(bt,"+").replace(Je,"%23").replace(Nt,"%26").replace(wt,"`").replace($e,"{").replace(et,"}").replace(Ze,"^")}function xt(e){return ve(e).replace(Ct,"%3D")}function Dt(e){return Ne(e).replace(Je,"%23").replace(_t,"%3F")}function Gt(e){return Dt(e).replace(Ot,"%2F")}function ne(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const kt=/\/$/,Lt=e=>e.replace(kt,"");function ge(e,t,n="/"){let r,o={},u="",h="";const d=t.indexOf("#");let i=t.indexOf("?");return i=d>=0&&i>d?-1:i,i>=0&&(r=t.slice(0,i),u=t.slice(i,d>0?d:t.length),o=e(u.slice(1))),d>=0&&(r=r||t.slice(0,d),h=t.slice(d,t.length)),r=Ut(r!=null?r:t,n),{fullPath:r+u+h,path:r,query:o,hash:ne(h)}}function Bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Te(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(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])&&tt(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 tt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Mt(e[n],t[n]))return!1;return!0}function Mt(e,t){return L(e)?xe(e,t):L(t)?xe(t,e):e===t}function xe(e,t){return L(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ut(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,d;for(h=0;h<r.length;h++)if(d=r[h],d!==".")if(d==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h).join("/")}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let se=(function(e){return e.pop="pop",e.push="push",e})({}),te=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const Re="";function nt(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),Lt(e)}const Ht=/^[^#]+#/;function rt(e,t){return e.replace(Ht,"#")+t}function jt(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 ie=()=>({left:window.scrollX,top:window.scrollY});function qt(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=jt(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 De(e,t){return(history.state?history.state.position-t:-1)+e}const ye=new Map;function Kt(e,t){ye.set(e,t)}function Wt(e){const t=ye.get(e);return ye.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function ot(e){return typeof e=="string"||typeof e=="symbol"}let w=(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 st=Symbol("");let In=(function(e){return e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated",e})({});w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function z(e,t){return O(new Error,{type:e,[st]:!0},t)}function V(e,t){return e instanceof Error&&st in e&&(t==null||!!(e.type&t))}const Qt=["params","query","hash"];function zt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Qt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yt(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(Xe," "),u=o.indexOf("="),h=ne(u<0?o:o.slice(0,u)),d=u<0?null:ne(o.slice(u+1));if(h in t){let i=t[h];L(i)||(i=t[h]=[i]),i.push(d)}else t[h]=d}return t}function Ge(e){let t="";for(let n in e){const r=e[n];if(n=xt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(L(r)?r.map(o=>o&&ve(o)):[r&&ve(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=L(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Oe=Symbol(""),ke=Symbol(""),ae=Symbol(""),Ce=Symbol(""),Ae=Symbol("");function Z(){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 it(e,t,n){const r=()=>{e[t].delete(n)};dt(r),pt(r),mt(()=>{e[t].add(n)}),e[t].add(n)}function wn(e){const t=M(Oe,{}).value;t&&it(t,"leaveGuards",e)}function Sn(e){const t=M(Oe,{}).value;t&&it(t,"updateGuards",e)}function j(e,t,n,r,o,u=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const l=c=>{c===!1?i(z(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(z(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[o]===h&&typeof c=="function"&&h.push(c),d())},p=u(()=>e.call(r&&r.instances[o],t,n,l));let a=Promise.resolve(p);e.length<3&&(a=a.then(l)),a.catch(c=>i(c))})}function Ee(e,t,n,r,o=u=>u()){const u=[];for(const h of e)for(const d in h.components){let i=h.components[d];if(!(t!=="beforeRouteEnter"&&!h.instances[d]))if(ze(i)){const l=(i.__vccOpts||i)[t];l&&u.push(j(l,n,r,h,d,o))}else{let l=i();u.push(()=>l.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${d}" at "${h.path}"`);const a=Ye(p)?p.default:p;h.mods[d]=p,h.components[d]=a;const c=(a.__vccOpts||a)[t];return c&&j(c,n,r,h,d,o)()}))}}return u}function bn(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const h=Ye(u)?u.default:u;t.mods[r]=u,t.components[r]=h})),n},[])))).then(()=>e)}function Xt(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const d=t.matched[h];d&&(e.matched.find(l=>Q(l,d))?r.push(d):n.push(d));const i=e.matched[h];i&&(t.matched.find(l=>Q(l,i))||o.push(i))}return[n,r,o]}/*!
6
- * vue-router v4.6.3
7
- * (c) 2025 Eduardo San Martin Morote
8
- * @license MIT
9
- */let Zt=()=>location.protocol+"//"+location.host;function at(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,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Te(d,"")}return Te(n,e)+r+o}function $t(e,t,n,r){let o=[],u=[],h=null;const d=({state:c})=>{const f=at(e,location),N=n.value,C=t.value;let P=0;if(c){if(n.value=f,t.value=c,h&&h===N){h=null;return}P=C?c.position-C.position:0}else r(f);o.forEach(I=>{I(n.value,N,{delta:P,type:se.pop,direction:P?P>0?te.forward:te.back:te.unknown})})};function i(){h=n.value}function l(c){o.push(c);const f=()=>{const N=o.indexOf(c);N>-1&&o.splice(N,1)};return u.push(f),f}function p(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(O({},c.state,{scroll:ie()}),"")}}function a(){for(const c of u)c();u=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:i,listen:l,destroy:a}}function Le(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ie():null}}function en(e){const{history:t,location:n}=window,r={value:at(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(i,l,p){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Zt()+e+i;try{t[p?"replaceState":"pushState"](l,"",c),o.value=l}catch(f){console.error(f),n[p?"replace":"assign"](c)}}function h(i,l){u(i,O({},t.state,Le(o.value.back,i,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=i}function d(i,l){const p=O({},o.value,t.state,{forward:i,scroll:ie()});u(p.current,p,!0),u(i,O({},Le(r.value,i,null),{position:p.position+1},l),!1),r.value=i}return{location:r,state:o,push:d,replace:h}}function tn(e){e=nt(e);const t=en(e),n=$t(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:rt.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 Tn(e=""){let t=[],n=[[Re,{}]],r=0;e=nt(e);function o(d,i={}){r++,r!==n.length&&n.splice(r),n.push([d,i])}function u(d,i,{direction:l,delta:p}){const a={direction:l,delta:p,type:se.pop};for(const c of t)c(d,i,a)}const h={location:Re,state:{},base:e,createHref:rt.bind(null,e),replace(d,i){n.splice(r--,1),o(d,i)},push(d,i){o(d,i)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[[Re,{}]],r=0},go(d,i=!0){const l=this.location,p=d<0?te.back:te.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&u(this.location,l,{direction:p,delta:d})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(h,"state",{enumerable:!0,get:()=>n[r][1]}),h}function xn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tn(e)}let K=(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 nn={type:K.Static,value:""},rn=/[a-zA-Z0-9_]/;function on(e){if(!e)return[[]];if(e==="/")return[[nn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let d=0,i,l="",p="";function a(){l&&(n===T.Static?u.push({type:K.Static,value:l}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:K.Param,value:l,regexp:p,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:i==="/"?(l&&a(),h()):i===":"?(a(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:i==="("?n=T.ParamRegExp:rn.test(i)?c():(a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case T.ParamRegExp:i===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+i:n=T.ParamRegExpEnd:p+=i;break;case T.ParamRegExpEnd:a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--,p="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),a(),h(),o}const Be="[^/]+?",sn={sensitive:!1,strict:!1,start:!0,end:!0};var x=(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})(x||{});const an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=O({},sn,t),r=[];let o=n.start?"^":"";const u=[];for(const l of e){const p=l.length?[]:[x.Root];n.strict&&!l.length&&(o+="/");for(let a=0;a<l.length;a++){const c=l[a];let f=x.Segment+(n.sensitive?x.BonusCaseSensitive:0);if(c.type===K.Static)a||(o+="/"),o+=c.value.replace(an,"\\$&"),f+=x.Static;else if(c.type===K.Param){const{value:N,repeatable:C,optional:P,regexp:I}=c;u.push({name:N,repeatable:C,optional:P});const A=I||Be;if(A!==Be){f+=x.BonusCustomRegExp;try{`${A}`}catch(k){throw new Error(`Invalid custom RegExp for param "${N}" (${A}): `+k.message)}}let _=C?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;a||(_=P&&l.length<2?`(?:/${_})`:"/"+_),P&&(_+="?"),o+=_,f+=x.Dynamic,P&&(f+=x.BonusOptional),C&&(f+=x.BonusRepeatable),A===".*"&&(f+=x.BonusWildcard)}p.push(f)}r.push(p)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=x.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function d(l){const p=l.match(h),a={};if(!p)return null;for(let c=1;c<p.length;c++){const f=p[c]||"",N=u[c-1];a[N.name]=f&&N.repeatable?f.split("/"):f}return a}function i(l){let p="",a=!1;for(const c of e){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const f of c)if(f.type===K.Static)p+=f.value;else if(f.type===K.Param){const{value:N,repeatable:C,optional:P}=f,I=N in l?l[N]:"";if(L(I)&&!C)throw new Error(`Provided param "${N}" is an array but it is not repeatable (* or + modifiers)`);const A=L(I)?I.join("/"):I;if(!A)if(P)c.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${N}"`);p+=A}}return p||"/"}return{re:h,score:r,keys:u,parse:d,stringify:i}}function un(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]===x.Static+x.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===x.Static+x.Segment?1:-1:0}function ct(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=un(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(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 fn(e,t,n){const r=cn(on(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 hn(e,t){const n=[],r=new Map;t=be(ln,t);function o(a){return r.get(a)}function u(a,c,f){const N=!f,C=Ue(a);C.aliasOf=f&&f.record;const P=be(t,a),I=[C];if("alias"in a){const k=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of k)I.push(Ue(O({},C,{components:f?f.record.components:C.components,path:q,aliasOf:f?f.record:C})))}let A,_;for(const k of I){const{path:q}=k;if(c&&q[0]!=="/"){const U=c.record.path,G=U[U.length-1]==="/"?"":"/";k.path=c.record.path+(q&&G+q)}if(A=fn(k,c,P),f?f.alias.push(A):(_=_||A,_!==A&&_.alias.push(A),N&&a.name&&!He(A)&&h(a.name)),ut(A)&&i(A),C.children){const U=C.children;for(let G=0;G<U.length;G++)u(U[G],A,f&&f.children[G])}f=f||A}return _?()=>{h(_)}:ee}function h(a){if(ot(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function d(){return n}function i(a){const c=mn(a,n);n.splice(c,0,a),a.record.name&&!He(a)&&r.set(a.record.name,a)}function l(a,c){let f,N={},C,P;if("name"in a&&a.name){if(f=r.get(a.name),!f)throw z(w.MATCHER_NOT_FOUND,{location:a});P=f.record.name,N=O(Me(c.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),a.params&&Me(a.params,f.keys.map(_=>_.name))),C=f.stringify(N)}else if(a.path!=null)C=a.path,f=n.find(_=>_.re.test(C)),f&&(N=f.parse(C),P=f.record.name);else{if(f=c.name?r.get(c.name):n.find(_=>_.re.test(c.path)),!f)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=f.record.name,N=O({},c.params,a.params),C=f.stringify(N)}const I=[];let A=f;for(;A;)I.unshift(A.record),A=A.parent;return{name:P,path:C,params:N,matched:I,meta:pn(I)}}e.forEach(a=>u(a));function p(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:h,clearRoutes:p,getRoutes:d,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ue(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dn(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 dn(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 He(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 mn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;ct(e,t[u])<0?r=u:n=u+1}const o=gn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(ut(t)&&ct(e,t)===0)return t}function ut({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function je(e){const t=M(ae),n=M(Ce),r=B(()=>{const i=$(e.to);return t.resolve(i)}),o=B(()=>{const{matched:i}=r.value,{length:l}=i,p=i[l-1],a=n.matched;if(!p||!a.length)return-1;const c=a.findIndex(Q.bind(null,p));if(c>-1)return c;const f=qe(i[l-2]);return l>1&&qe(p)===f&&a[a.length-1].path!==f?a.findIndex(Q.bind(null,i[l-2])):c}),u=B(()=>o.value>-1&&An(n.params,r.value.params)),h=B(()=>o.value>-1&&o.value===n.matched.length-1&&tt(n.params,r.value.params));function d(i={}){if(yn(i)){const l=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:h,navigate:d}}function Rn(e){return e.length===1?e[0]:e}const En=Fe({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:je,setup(e,{slots:t}){const n=At(je(e)),{options:r}=M(ae),o=B(()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&Rn(t.default(n));return e.custom?u:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),vn=En;function yn(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 An(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(!L(o)||o.length!==r.length||r.some((u,h)=>u!==o[h]))return!1}return!0}function qe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>e!=null?e:t!=null?t:n,Nn=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=M(Ae),o=B(()=>e.route||r.value),u=M(ke,0),h=B(()=>{let l=$(u);const{matched:p}=o.value;let a;for(;(a=p[l])&&!a.components;)l++;return l}),d=B(()=>o.value.matched[h.value]);pe(ke,B(()=>h.value+1)),pe(Oe,d),pe(Ae,o);const i=gt();return Rt(()=>[i.value,d.value,e.name],([l,p,a],[c,f,N])=>{p&&(p.instances[a]=l,f&&f!==p&&l&&l===c&&(p.leaveGuards.size||(p.leaveGuards=f.leaveGuards),p.updateGuards.size||(p.updateGuards=f.updateGuards))),l&&p&&(!f||!Q(p,f)||!c)&&(p.enterCallbacks[a]||[]).forEach(C=>C(l))},{flush:"post"}),()=>{const l=o.value,p=e.name,a=d.value,c=a&&a.components[p];if(!c)return We(n.default,{Component:c,route:l});const f=a.props[p],N=f?f===!0?l.params:typeof f=="function"?f(l):f:null,P=Qe(c,O({},N,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[p]=null)},ref:i}));return We(n.default,{Component:P,route:l})||P}}});function We(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const On=Nn;function Dn(e){const t=hn(e.routes,e),n=e.parseQuery||Yt,r=e.stringifyQuery||Ge,o=e.history,u=Z(),h=Z(),d=Z(),i=Et(H);let l=H;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=me.bind(null,s=>""+s),a=me.bind(null,Gt),c=me.bind(null,ne);function f(s,g){let m,R;return ot(s)?(m=t.getRecordMatcher(s),R=g):R=s,t.addRoute(R,m)}function N(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function C(){return t.getRoutes().map(s=>s.record)}function P(s){return!!t.getRecordMatcher(s)}function I(s,g){if(g=O({},g||i.value),typeof s=="string"){const E=ge(n,s,g.path),b=t.resolve({path:E.path},g),X=o.createHref(E.fullPath);return O(E,b,{params:c(b.params),hash:ne(E.hash),redirectedFrom:void 0,href:X})}let m;if(s.path!=null)m=O({},s,{path:ge(n,s.path,g.path).path});else{const E=O({},s.params);for(const b in E)E[b]==null&&delete E[b];m=O({},s,{params:a(E)}),g.params=a(g.params)}const R=t.resolve(m,g),y=s.hash||"";R.params=p(c(R.params));const S=Bt(r,O({},s,{hash:Tt(y),path:R.path})),v=o.createHref(S);return O({fullPath:S,hash:y,query:r===Ge?Jt(s.query):s.query||{}},R,{redirectedFrom:void 0,href:v})}function A(s){return typeof s=="string"?ge(n,s,i.value.path):O({},s)}function _(s,g){if(l!==s)return z(w.NAVIGATION_CANCELLED,{from:g,to:s})}function k(s){return G(s)}function q(s){return k(O(A(s),{replace:!0}))}function U(s,g){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:R}=m;let y=typeof R=="function"?R(s,g):R;return typeof y=="string"&&(y=y.includes("?")||y.includes("#")?y=A(y):{path:y},y.params={}),O({query:s.query,hash:s.hash,params:y.path!=null?{}:s.params},y)}}function G(s,g){const m=l=I(s),R=i.value,y=s.state,S=s.force,v=s.replace===!0,E=U(m,R);if(E)return G(O(A(E),{state:typeof E=="object"?O({},y,E.state):y,force:S,replace:v}),g||m);const b=m;b.redirectedFrom=g;let X;return!S&&Vt(r,R,m)&&(X=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Se(R,R,!0,!1)),(X?Promise.resolve(X):_e(b,R)).catch(D=>V(D)?V(D,w.NAVIGATION_GUARD_REDIRECT)?D:fe(D):le(D,b,R)).then(D=>{if(D){if(V(D,w.NAVIGATION_GUARD_REDIRECT))return G(O({replace:v},A(D.to),{state:typeof D.to=="object"?O({},y,D.to.state):y,force:S}),g||b)}else D=Ie(b,R,!0,v,y);return Pe(b,R,D),D})}function lt(s,g){const m=_(s,g);return m?Promise.reject(m):Promise.resolve()}function ce(s){const g=oe.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function _e(s,g){let m;const[R,y,S]=Xt(s,g);m=Ee(R.reverse(),"beforeRouteLeave",s,g);for(const E of R)E.leaveGuards.forEach(b=>{m.push(j(b,s,g))});const v=lt.bind(null,s,g);return m.push(v),W(m).then(()=>{m=[];for(const E of u.list())m.push(j(E,s,g));return m.push(v),W(m)}).then(()=>{m=Ee(y,"beforeRouteUpdate",s,g);for(const E of y)E.updateGuards.forEach(b=>{m.push(j(b,s,g))});return m.push(v),W(m)}).then(()=>{m=[];for(const E of S)if(E.beforeEnter)if(L(E.beforeEnter))for(const b of E.beforeEnter)m.push(j(b,s,g));else m.push(j(E.beforeEnter,s,g));return m.push(v),W(m)}).then(()=>(s.matched.forEach(E=>E.enterCallbacks={}),m=Ee(S,"beforeRouteEnter",s,g,ce),m.push(v),W(m))).then(()=>{m=[];for(const E of h.list())m.push(j(E,s,g));return m.push(v),W(m)}).catch(E=>V(E,w.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function Pe(s,g,m){d.list().forEach(R=>ce(()=>R(s,g,m)))}function Ie(s,g,m,R,y){const S=_(s,g);if(S)return S;const v=g===H,E=F?history.state:{};m&&(R||v?o.replace(s.fullPath,O({scroll:v&&E&&E.scroll},y)):o.push(s.fullPath,y)),i.value=s,Se(s,g,m,v),fe()}let Y;function ft(){Y||(Y=o.listen((s,g,m)=>{if(!J.listening)return;const R=I(s),y=U(R,J.currentRoute.value);if(y){G(O(y,{replace:!0,force:!0}),R).catch(ee);return}l=R;const S=i.value;F&&Kt(De(S.fullPath,m.delta),ie()),_e(R,S).catch(v=>V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?v:V(v,w.NAVIGATION_GUARD_REDIRECT)?(G(O(A(v.to),{force:!0}),R).then(E=>{V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!m.delta&&m.type===se.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(m.delta&&o.go(-m.delta,!1),le(v,R,S))).then(v=>{v=v||Ie(R,S,!1),v&&(m.delta&&!V(v,w.NAVIGATION_CANCELLED)?o.go(-m.delta,!1):m.type===se.pop&&V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Pe(R,S,v)}).catch(ee)}))}let ue=Z(),we=Z(),re;function le(s,g,m){fe(s);const R=we.list();return R.length?R.forEach(y=>y(s,g,m)):console.error(s),Promise.reject(s)}function ht(){return re&&i.value!==H?Promise.resolve():new Promise((s,g)=>{ue.add([s,g])})}function fe(s){return re||(re=!s,ft(),ue.list().forEach(([g,m])=>s?m(s):g()),ue.reset()),s}function Se(s,g,m,R){const{scrollBehavior:y}=e;if(!F||!y)return Promise.resolve();const S=!m&&Wt(De(s.fullPath,0))||(R||!m)&&history.state&&history.state.scroll||null;return yt().then(()=>y(s,g,S)).then(v=>v&&qt(v)).catch(v=>le(v,s,g))}const he=s=>o.go(s);let de;const oe=new Set,J={currentRoute:i,listening:!0,addRoute:f,removeRoute:N,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:C,resolve:I,options:e,push:k,replace:q,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:u.add,beforeResolve:h.add,afterEach:d.add,onError:we.add,isReady:ht,install(s){s.component("RouterLink",vn),s.component("RouterView",On),s.config.globalProperties.$router=J,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),F&&!de&&i.value===H&&(de=!0,k(o.location).catch(R=>{}));const g={};for(const R in H)Object.defineProperty(g,R,{get:()=>i.value[R],enumerable:!0});s.provide(ae,J),s.provide(Ce,vt(g)),s.provide(Ae,i);const m=s.unmount;oe.add(s),s.unmount=function(){oe.delete(s),oe.size<1&&(l=H,Y&&Y(),Y=null,i.value=H,de=!1,re=!1),m()}}};function W(s){return s.reduce((g,m)=>g.then(()=>ce(m)),Promise.resolve())}return J}function Gn(){return M(ae)}function kn(e){return M(Ce)}export{In as NavigationFailureType,vn as RouterLink,On as RouterView,H as START_LOCATION,Tn as createMemoryHistory,Dn as createRouter,hn as createRouterMatcher,xn as createWebHashHistory,tn as createWebHistory,V as isNavigationFailure,bn as loadRouteLocation,Oe as matchedRouteKey,wn as onBeforeRouteLeave,Sn as onBeforeRouteUpdate,Yt as parseQuery,Ce as routeLocationKey,ae as routerKey,Ae as routerViewLocationKey,Ge as stringifyQuery,je as useLink,kn as useRoute,Gn as useRouter,ke as viewDepthKey};