@kitbag/router 0.23.1 → 0.24.1
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.
- package/dist/components/routerLink.d.ts +2 -0
- package/dist/components/routerView.d.ts +1 -1
- package/dist/compositions/useRejection.d.ts +1 -1
- package/dist/kitbag-router.js +6191 -6154
- package/dist/kitbag-router.umd.cjs +3 -3
- package/dist/main.d.ts +3 -3
- package/dist/models/hooks.d.ts +2 -1
- package/dist/services/createCurrentRejection.d.ts +10 -0
- package/dist/services/createRejection.d.ts +2 -1
- package/dist/services/createRejectionHooks.d.ts +9 -0
- package/dist/services/createRouteHooks.d.ts +3 -2
- package/dist/services/createRouterHooks.d.ts +3 -1
- package/dist/services/createRouterPlugin.d.ts +1 -1
- package/dist/services/getRejectionHooks.d.ts +3 -0
- package/dist/services/getRoutesForRouter.d.ts +21 -7
- package/dist/services/insertBaseRoute.d.ts +1 -1
- package/dist/types/createRouteOptions.d.ts +1 -2
- package/dist/types/hooks.d.ts +19 -16
- package/dist/types/redirects.d.ts +0 -11
- package/dist/types/rejection.d.ts +17 -1
- package/dist/types/resolved.d.ts +4 -0
- package/dist/types/route.d.ts +12 -6
- package/dist/types/router.d.ts +6 -2
- package/dist/types/routerLink.d.ts +4 -0
- package/dist/types/routerPlugin.d.ts +7 -8
- package/dist/types/routerReject.d.ts +1 -2
- package/dist/types/routerRoute.d.ts +4 -0
- package/dist/types/titles.d.ts +5 -9
- package/dist/types/url.d.ts +6 -12
- package/dist/utilities/testHelpers.d.ts +168 -218
- package/package.json +5 -5
- package/dist/services/createRouterReject.d.ts +0 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(I,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],R):(I=typeof globalThis<"u"?globalThis:I||self,R(I["@kitbag/router"]={},I.Vue))})(this,(function(I,R){"use strict";class Ln extends Error{constructor(t){super(`Child property on meta for ${t} conflicts with the parent meta.`)}}function Lo(e,t){return Do(e,t),{...e,...t}}function Do(e,t){const n=Object.keys(e).find(r=>r in t&&typeof t[r]!=typeof e[r]);if(n)throw new Ln(n)}class Dn extends Error{constructor(t){super(`Invalid Param "${t}": Router does not support multiple params by the same name. All param names must be unique.`)}}function Vo(e,t){return e.filter(n=>t===n).length}function Be(...e){const t=e.flatMap(n=>Array.isArray(n)?n:Object.keys(n));for(const n of t)if(Vo(t,n)>1)throw new Dn(n)}function xo(e,t){return Be(e,t),{...e,...t}}function Vn(e){return"hooks"in e}function fe(e){return e&&Vn(e)?e.hooks:[]}function xn(e,t){return[...fe(e),...fe(t)]}function xt(e){return"parent"in e&&!!e.parent}function Mt(e){return"component"in e&&!!e.component}function Bt(e){return"props"in e&&typeof e.props=="function"}function $t(e){return"components"in e&&!!e.components}function Ht(e){return"props"in e&&typeof e.props=="object"}function jt(e,t){return{...t,meta:Lo(e.meta,t.meta),state:xo(e.state,t.state),hooks:xn(e,t),matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function W(e){return typeof e!="string"?!1:/^(https?:\/\/|\/).*/g.test(e)}function Mn(e){return W(e)?e:`/${e}`}const Zt=Symbol("IS_URL_SYMBOL");function le(e){return typeof e=="object"&&e!==null&&Zt in e}class de extends Error{constructor(){super("Router not installed")}}class Bn extends Error{constructor(t,n){super(`useRoute called with incorrect route. Given ${t}, expected ${n}`)}}function rt(){let e=0;return()=>(++e).toString()}const Mo=rt()();function Bo(e){return e===Mo}const Gt=rt();function $n(e){return e===void 0?"":e}class pe{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set}class $o extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}}function ot(){const e=new pe;return{redirect:(f,m)=>{if(e.redirects.size>0)throw new $o(f.name);const c=(E,{replace:l})=>{l(f.name,m?.(E.params))};return e.redirects.add(c),()=>e.redirects.delete(c)},onBeforeRouteEnter:f=>(e.onBeforeRouteEnter.add(f),()=>e.onBeforeRouteEnter.delete(f)),onBeforeRouteUpdate:f=>(e.onBeforeRouteUpdate.add(f),()=>e.onBeforeRouteUpdate.delete(f)),onBeforeRouteLeave:f=>(e.onBeforeRouteLeave.add(f),()=>e.onBeforeRouteLeave.delete(f)),onAfterRouteEnter:f=>(e.onAfterRouteEnter.add(f),()=>e.onAfterRouteEnter.delete(f)),onAfterRouteUpdate:f=>(e.onAfterRouteUpdate.add(f),()=>e.onAfterRouteUpdate.delete(f)),onAfterRouteLeave:f=>(e.onAfterRouteLeave.add(f),()=>e.onAfterRouteLeave.delete(f)),onError:f=>(e.onError.add(f),()=>e.onError.delete(f)),store:e}}class qt extends Error{context;constructor(t={}){super(t.message??"Uncaught InvalidRouteParamValueError"),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...t}}}const $e="[",st="]";function Ho(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function jo(e){return typeof e=="function"&&Ho(e)}function it(e){return typeof e=="object"&&"get"in e&&typeof e.get=="function"&&"set"in e&&typeof e.set=="function"}function Ft(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Hn(e,t){return it(e)?{...e,defaultValue:t??e.defaultValue}:{get:n=>he(n,{param:e}),set:n=>ie(n,{param:e}),defaultValue:t}}function at(e){return it(e)&&e.defaultValue!==void 0}function Zo(e,t){return Hn(e,t)}function Go(e){return e!==void 0}function Oe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function qo(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"}function te(e){return typeof e=="string"&&e.length>0}let P=null;async function Fo(){const{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:a,ZodEmail:i,ZodUUID:u,ZodBase64:f,ZodCUID:m,ZodCUID2:c,ZodULID:E,ZodJWT:l,ZodBigInt:p,ZodNaN:S,ZodBoolean:_,ZodDate:h,ZodISODateTime:T,ZodISODate:g,ZodISOTime:d,ZodNumber:y,ZodLiteral:w,ZodObject:A,ZodEnum:C,ZodArray:M,ZodTuple:$,ZodUnion:K,ZodDiscriminatedUnion:Ve,ZodRecord:re,ZodMap:oe,ZodSet:xe,ZodIntersection:j,ZodPromise:b}=await import("zod");return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:a,ZodEmail:i,ZodUUID:u,ZodBase64:f,ZodCUID:m,ZodCUID2:c,ZodULID:E,ZodJWT:l,ZodBigInt:p,ZodNaN:S,ZodBoolean:_,ZodDate:h,ZodISODateTime:T,ZodISODate:g,ZodISOTime:d,ZodNumber:y,ZodLiteral:w,ZodObject:A,ZodEnum:C,ZodArray:M,ZodTuple:$,ZodUnion:K,ZodDiscriminatedUnion:Ve,ZodRecord:re,ZodMap:oe,ZodSet:xe,ZodIntersection:j,ZodPromise:b}}function zo(e){return Object.values(e).some(t=>le(t)?Object.values(t.schema.host.params).some(({param:n})=>zt(n))||Object.values(t.schema.path.params).some(({param:n})=>zt(n))||Object.values(t.schema.query.params).some(({param:n})=>zt(n)):!1)}function zt(e){return Oe(e)&&"parse"in e&&typeof e.parse=="function"&&"~standard"in e&&Oe(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="zod"}async function Wo(){try{P=await Fo()}catch{throw new Error("Failed to initialize Zod")}}function jn(e){return P?e instanceof P.ZodType:!1}function Zn(e){return{get:(t,{invalid:n})=>{try{return Wt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Jt(t,e)}catch{throw n()}}}}const Jo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function we(e,t){if(typeof t=="string"&&Jo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function He(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ct(e,t){return P?.ZodString&&e instanceof P.ZodString?1:P?.ZodString&&t instanceof P.ZodString?-1:0}function Wt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(!!e);if(t instanceof P.ZodDate)return t.parse(new Date(e));if(t instanceof P.ZodNumber)return t.parse(Number(e));if(t instanceof P.ZodBigInt)return t.parse(BigInt(e));if(t instanceof P.ZodNaN)return t.parse(Number(e));if(t instanceof P.ZodLiteral)return He([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof P.ZodObject)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodEnum)return t.parse(e);if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>Wt(e,r));return He(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>Wt(e,r));return He(n)}if(t instanceof P.ZodRecord)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodMap)return t.parse(new Map(JSON.parse(e,we)));if(t instanceof P.ZodSet)return t.parse(new Set(JSON.parse(e,we)));if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return t.parse(e)}function Jt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString||t instanceof P.ZodISODateTime||t instanceof P.ZodISODate||t instanceof P.ZodISOTime||t instanceof P.ZodIPv4||t instanceof P.ZodIPv6||t instanceof P.ZodCIDRv4||t instanceof P.ZodCIDRv6||t instanceof P.ZodURL||t instanceof P.ZodEmail||t instanceof P.ZodUUID||t instanceof P.ZodBase64||t instanceof P.ZodCUID||t instanceof P.ZodCUID2||t instanceof P.ZodULID||t instanceof P.ZodJWT)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(e).toString();if(t instanceof P.ZodDate)return t.parse(e).toISOString();if(t instanceof P.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof P.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof P.ZodNaN)return t.parse(e).toString();if(t instanceof P.ZodLiteral){const n=t.parse(e);return n!=null?n.toString():String(n)}if(t instanceof P.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof P.ZodEnum){const n=t.parse(e);return typeof n=="string"?n:String(n)}if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>Jt(e,r));return He(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>Jt(e,r));return He(n)}if(t instanceof P.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof P.ZodMap){const n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof P.ZodSet){const n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return JSON.stringify(t.parse(e))}function Kt(e){return typeof e=="object"&&e!==null&&"then"in e}function k(e,t){const n=e["~standard"].validate(t);if(Kt(n))throw new Error("Promise schemas are not supported");if(n.issues)throw new Error("Validation failed");return n.value}function Ko(e){return Oe(e)&&"type"in e&&typeof e.type=="string"&&"~standard"in e&&Oe(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="valibot"}function Gn(e){return Ko(e)}function qn(e){return{get:(t,{invalid:n})=>{try{return Yt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Qt(t,e)}catch{throw n()}}}}const Yo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Pe(e,t){if(typeof t=="string"&&Yo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function Ne(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ut(e,t){return e.type==="string"?1:t.type==="string"?-1:0}function Yt(e,t){if(t.type==="boolean")return k(t,!!e);if(t.type==="date")return k(t,new Date(e));if(t.type==="number")return k(t,Number(e));if(t.type==="literal")return Ne([()=>k(t,Number(e)),()=>k(t,!!e),()=>k(t,e)]);if(t.type==="object")return k(t,JSON.parse(e,Pe));if(t.type==="enum")return Ne([()=>k(t,Number(e)),()=>k(t,!!e),()=>k(t,e)]);if(t.type==="array"||t.type==="tuple")return k(t,JSON.parse(e,Pe));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return Ne(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return Ne(n)}if(t.type==="record")return k(t,JSON.parse(e,Pe));if(t.type==="map")return k(t,new Map(JSON.parse(e,Pe)));if(t.type==="set")return k(t,new Set(JSON.parse(e,Pe)));if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return k(t,e)}function Qt(e,t){if(t.type==="string"||t.type==="boolean")return k(t,e).toString();if(t.type==="date")return k(t,e).toISOString();if(t.type==="number")return k(t,Number(e)).toString();if(t.type==="literal")return k(t,e).toString();if(t.type==="object")return JSON.stringify(k(t,e));if(t.type==="enum"||t.type==="nativeEnum")return k(t,e).toString();if(t.type==="array"||t.type==="tuple")return JSON.stringify(k(t,e));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Qt(e,r));return Ne(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Qt(e,r));return Ne(n)}if(t.type==="record")return JSON.stringify(k(t,e));if(t.type==="map"){const n=k(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type==="set"){const n=k(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return JSON.stringify(k(t,e))}function Xt(e){return{get:(t,{invalid:n})=>{if(`${e}`===t)return e;throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`)},set:(t,{invalid:n})=>{if(e!==t)throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);return t.toString()}}}function Qo(e,t){return e[t]??String}function Fn(e){return{invalid:t=>{throw new qt({...e,message:t})}}}const Xo={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!="string")throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},zn={get:(e,{invalid:t})=>{if(e==="true")return!0;if(e==="false")return!1;throw t(`Expected boolean value, received ${JSON.stringify(e)}`)},set:(e,{invalid:t})=>{if(typeof e!="boolean")throw t(`Expected boolean value, received ${JSON.stringify(e)}`);return e.toString()}},Wn={get:(e,{invalid:t})=>{const n=Number(e);if(isNaN(n))throw t(`Expected number value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="number")throw t(`Expected number value, received ${JSON.stringify(e)}`);return e.toString()}},Jn={get:(e,{invalid:t})=>{const n=new Date(e);if(isNaN(n.getTime()))throw t(`Expected date value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="object"||!(e instanceof Date))throw t(`Expected date value, received ${JSON.stringify(e)}`);return e.toISOString()}},Kn={get:(e,{invalid:t})=>{try{return JSON.parse(e)}catch{throw t(`Expected JSON value, received "${e}"`)}},set:(e,{invalid:t})=>{try{return JSON.stringify(e)}catch{throw t(`Expected JSON value, received "${e}"`)}}};function he(e,{param:t=String,isOptional:n=!1}={}){const r=Fn({param:t,value:e,isGetter:!0});if(e===void 0||!te(e)){if(at(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Xo.get(e,r);if(t===Boolean)return zn.get(e,r);if(t===Number)return Wn.get(e,r);if(t===Date)return Jn.get(e,r);if(t===JSON)return Kn.get(e,r);if(jo(t))return t(e,r);if(it(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return Ft(t)?Xt(t).get(e,r):jn(t)?Zn(t).get(e,r):Gn(t)?qn(t).get(e,r):e}function en(e,t){try{return he(e,t)}catch(n){if(n instanceof qt)return;throw n}}function es(e,t){try{return ie(e,t)}catch(n){if(n instanceof qt)return;throw n}}function ie(e,{param:t=String,isOptional:n=!1}={}){const r=Fn({param:t,value:e,isSetter:!0});if(e===void 0){if(n)return"";throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===Boolean)return zn.set(e,r);if(t===Number)return Wn.set(e,r);if(t===Date)return Jn.set(e,r);if(t===JSON)return Kn.set(e,r);if(it(t))return t.set(e,r);if(Ft(t))return Xt(t).set(e,r);if(jn(t))return Zn(t).set(e,r);if(Gn(t))return qn(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}const ft=`\\${$e}\\??([\\w-_]+)\\*?\\${st}`,ts=`\\${$e}\\?([\\w-_]+)\\*?\\${st}`,ns=`\\${$e}\\??([\\w-_]+)\\*\\${st}`,rs="[^/]*",os=".*",ss="([^/]*)",is="(.*)";function tn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function as(e,t){const n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0;const o=n.reduce((a,i)=>{const u=tn(e.slice(r,i.index));u.length&&a.push(u);const[f]=i;return a.push(f),r=i.index+f.length,a},[]),s=e.slice(r);return s&&o.push(s),o}function cs(e){const t=lt(e);return new RegExp(`^${t||".*"}$`,"i")}function Yn(e){const t=lt(e);return new RegExp(`^${t}$`,"i")}function us(e){const t=e.replace(/^#*/,""),n=lt(t);return new RegExp(`^#?${n||".*"}$`,"i")}function fs(e){const t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,n])=>!Xn(n)).map(([n,r])=>{const o=lt(r);return new RegExp(`${tn(n)}=${o}(&|$)`,"i")})}function lt(e){return as(e,new RegExp(ft,"g")).map(t=>t.startsWith($e)?Qn(t):tn(t)).join("")}function Qn(e){return e.replace(new RegExp(ft,"g"),t=>er(t)?os:rs)}function ls(e,t){const n=tr(t),{isGreedy:r=!1}=e.params[t]??{},o=r?is:ss;return e.value.replace(n,o)}function Xn(e){return new RegExp(ts,"g").test(e)}function er(e){return new RegExp(ns,"g").test(e)}function dt(e){const[t]=nr(e,new RegExp(ft,"g"));return t}function tr(e){return new RegExp(`\\${$e}\\??${e}\\*?\\${st}`,"g")}function nr(e,t){return Array.from(e.matchAll(t)).flatMap(([,...r])=>r.map(o=>te(o)?o:""))}function ds(e="",t={}){return te(e)?Array.from(e.matchAll(new RegExp(ft,"g"))).reduce((r,[o,s])=>{const a=dt(o);if(!a)return r;const i=Qo(t,a),u=Xn(o)||at(i),f=er(o);return Be([a],r),r[s]={param:i,isOptional:u,isGreedy:f},r},{}):{}}const rr=Symbol("UrlPartsWithParams");function or(e){return Oe(e)&&e[rr]===!0}function Q(e){return e===void 0?pt():or(e)?e:pt(e,{})}function pt(e,t){return{value:e??"",params:ds(e,t),[rr]:!0}}function ht(e){if(typeof e=="string"||typeof e>"u"||or(e))return Q(e);const t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(const[o,s]of t)if(Ft(s))n.push(`${o}=${s}`);else{const a=`[${o}]`,i=dt(a);i&&(r[i]=s),n.push(`${i}=${a}`)}return pt(n.join("&"),r)}function ps(e,t,n){const r=ls(t,n),o=Qn(r),[s]=nr(e,new RegExp(o,"g"));return s}function hs(e,t,n,r){const o=ie(r,t.params[n]);return e.replace(tr(n),o)}function sr(...e){const t=new URLSearchParams;for(const n of e){const r=new URLSearchParams(n);for(const[o,s]of r.entries())t.append(o,s)}return t}const Et="https://internal.invalid";function gt(e){const t=new URL(e.host??Et,Et);return t.pathname=e.path??"",t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??"",Mn(t.toString().replace(new RegExp(`^${Et}/*`),"/"))}function X(e){return!e.startsWith("http")?gs(e):Es(e)}function je(e,t){if(typeof e=="string"){const r=je(X(e),t);return gt(r)}const n=new URLSearchParams(t.query);return{host:te(t.host)?t.host:e.host,path:te(t.path)?t.path:e.path??"",query:sr(e.query,n),hash:te(t.hash)?t.hash:e.hash??""}}function Es(e){const{protocol:t,host:n,pathname:r,searchParams:o,hash:s}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:o,hash:s}}function gs(e){const{pathname:t,searchParams:n,hash:r}=new URL(e,Et);return{path:t,query:n,hash:r}}function Ie(e){const t={host:Q(e.host),path:Q(e.path),query:ms(ht(e.query)),hash:_s(Q(e.hash))};Be(t.path.params,t.query.params,t.host.params,t.hash.params);const n={...t.host,regexp:cs(t.host.value),stringify(c={}){return nn(t.host,c)}},r={...t.path,regexp:{trailingSlashIgnored:Yn(t.path.value),trailingSlashRemoved:Yn(t.path.value.replace(/^(.+)\/$/,"$1"))},stringify(c={}){return nn(t.path,c)}},o={...t.query,regexp:fs(t.query.value),stringify(c={}){return ys(t.query,c).toString()}},s={...t.hash,regexp:us(t.hash.value),stringify(c={}){return nn(t.hash,c)}};function a(c={}){return gt({host:n.stringify(c),path:r.stringify(c),query:o.stringify(c),hash:s.stringify(c)})}function i(c,E={}){const l=X(c),p=E.removeTrailingSlashes??!0;if(!n.regexp.test(l.host??""))throw new Error("Host does not match");if(!(p?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(l.path))throw new Error("Path does not match");const _=l.query.toString();if(!o.regexp.every(h=>h.test(_)))throw new Error("Query does not match");if(!s.regexp.test(l.hash))throw new Error("Hash does not match")}function u(c,E={}){i(c,E);const l=X(c);return{...rn(n,l.host??""),...rn(r,l.path),...Rs(o,l.query.toString()),...rn(s,l.hash)}}function f(c,E={}){try{return{success:!0,params:u(c,E)}}catch(l){return{success:!1,params:{},error:new Error("Failed to parse url",{cause:l})}}}return{...{schema:{host:n,path:r,query:o,hash:s},params:{},[Zt]:!0},isRelative:!te(t.host.value),stringify:a,parse:u,tryParse:f}}function _s(e){return{...e,value:e.value.replace(/^#/,"")}}function ms(e){return{...e,value:e.value.replace(/^\?/,"")}}function nn(e,t){return Object.keys(e.params).reduce((n,r)=>hs(n,e,r,t[r]),e.value)}function ys(e,t){const n=new URLSearchParams(e.value);if(!e.value)return n;for(const[r,o]of Array.from(n.entries())){const s=dt(o);if(!s)continue;const i=ie(t[s],e.params[s]),u=t[s]===void 0&&i==="";e.params[s].isOptional&&u?n.delete(r,o):n.set(r,i)}return n}function rn(e,t){const n={},r=decodeURIComponent(t);for(const[o,s]of Object.entries(e.params)){const a=ps(r,e,o),i=he(a,s);n[o]=i}return n}function Rs(e,t){const n={},r=new URLSearchParams(e.value),o=new URLSearchParams(t);for(const[s,a]of Array.from(r.entries())){const i=dt(a);if(!i)continue;const f=o.get(s)??void 0,m=he(f,e.params[i]);n[i]=m}return n}class ir extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}}function ar(e){return"redirect"in e}function cr({getRoute:e}){return{redirectTo:(...[r,o])=>{const s=e();if(!ar(s))throw new ir(s.name);r.context.push(s),s.context.push(r),s.redirect(r,o)},redirectFrom:(r,o)=>{const s=e();if(!ar(r))throw new ir(r.name);s.context.push(r),r.context.push(s),r.redirect(s,o)}}}function on(e,t){Be(e.params,t.params);const n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function ur(e,t){Be(e.params,t.params);const n=[e.value,t.value].filter(te).join("&");return{...e,value:n,params:{...e.params,...t.params}}}function fr(e,t){return on(e,t)}function sn(e,t){if(!le(e))throw new Error("Parent is not a valid url");if(!Ss(t))return Ie({host:e.schema.host,path:on(e.schema.path,Q(t.path)),query:ur(e.schema.query,ht(t.query)),hash:fr(e.schema.hash,Q(t.hash))});if(!le(t))throw new Error("Child is not a valid url");return Ie({host:e.schema.host,path:on(e.schema.path,t.schema.path),query:ur(e.schema.query,t.schema.query),hash:fr(e.schema.hash,t.schema.hash)})}function Ss(e){return le(e)}function an(e){return"getTitle"in e}function Ts(e){let t;return{setTitle:o=>{t=o},getTitle:async o=>{const s=async()=>{if(e&&an(e))return e.getTitle(o)};return t?t(o,{from:o,getParentTitle:s}):s()}}}function Ee(e,t){const n=Gt(),r=$n(e.name),o=Q(e.path),s=ht(e.query),a=Q(e.hash),i=e.meta??{},u=e.state??{},f=e.context??[],{store:m,...c}=ot(),E=Ts(e.parent),l=R.markRaw({...e,id:n,meta:i,state:u,props:t,name:r}),p=cr({getRoute:()=>_}),S=Ie({path:o,query:s,hash:a}),_={id:n,matched:l,matches:[l],hooks:[m],name:r,meta:i,state:u,context:f,depth:1,prefetch:e.prefetch,...p,...S,...c,...E};if(xt(e)){const h=jt(e.parent,_),T=sn(e.parent,{path:o,query:s,hash:a});return{...h,...T}}return _}function lr(e){return R.defineComponent(()=>()=>R.h("h1",e),{name:e,props:[]})}function Os(e){const t=e.component??lr(e.type);return{type:e.type,component:t}}function ws(e){const t=Gt(),n=$n(e.name),r=Q(e.path),o=ht(e.query),s=Q(e.hash),a=e.meta??{},i=Q(e.host),u=e.context??[],{store:f,...m}=ot(),c=cr({getRoute:()=>p}),E=R.markRaw({id:t,meta:{},state:{},...e}),l=Ie({host:i,path:r,query:o,hash:s}),p={id:t,matched:E,matches:[E],hooks:[f],name:n,meta:a,depth:1,state:{},context:u,...m,...c,...l};if(xt(e)){const S=jt(e.parent,p),_=sn(e.parent,{path:r,query:o,hash:s});return{...S,..._}}return p}function Ze(){const e=new Map;return t=>{const n=e.get(t);if(!n){const r=Symbol();return e.set(t,r),r}return n}}const Ps=Ze();function dr(e){const t=Ps(e);return({increment:n=!1}={})=>{const r=R.inject(t,0);return n&&R.provide(t,r+1),r}}const Ge=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},qe=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},Fe=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function Ns(e){switch(e){case"onBeforeRouteEnter":case"onAfterRouteEnter":return Ge;case"onBeforeRouteUpdate":case"onAfterRouteUpdate":return Fe;case"onBeforeRouteLeave":case"onAfterRouteLeave":return qe;default:throw new Error(`Switch is not exhaustive for lifecycle: ${e}`)}}function Is(e,t){const n=new pe;return fe(e).forEach((r,o)=>{if(r.redirects.forEach(s=>n.redirects.add(s)),Ge(e,t,o))return r.onBeforeRouteEnter.forEach(s=>n.onBeforeRouteEnter.add(s));if(Fe(e,t,o))return r.onBeforeRouteUpdate.forEach(s=>n.onBeforeRouteUpdate.add(s))}),fe(t).forEach((r,o)=>{if(qe(e,t,o))return r.onBeforeRouteLeave.forEach(s=>n.onBeforeRouteLeave.add(s))}),n}function As(e,t){const n=new pe;return fe(e).forEach((r,o)=>{if(Ge(e,t,o))return r.onAfterRouteEnter.forEach(s=>n.onAfterRouteEnter.add(s));if(Fe(e,t,o))return r.onAfterRouteUpdate.forEach(s=>n.onAfterRouteUpdate.add(s))}),fe(t).forEach((r,o)=>{if(qe(e,t,o))return r.onAfterRouteLeave.forEach(s=>n.onAfterRouteLeave.add(s))}),n}class _t extends Error{}class ae extends _t{response;constructor(t){super("Uncaught ContextPushError"),this.response={status:"PUSH",to:t}}}class ge extends _t{response;constructor(t){super("Uncaught ContextRejectionError"),this.response={status:"REJECT",type:t}}}class pr extends _t{response;constructor(){super("Uncaught ContextAbortError"),this.response={status:"ABORT"}}}function bs(e,t,n){const r=new pe;return e.matches.forEach((o,s)=>{Ge(e,t,s)&&n.onBeforeRouteEnter.forEach(a=>r.onBeforeRouteEnter.add(a)),Fe(e,t,s)&&n.onBeforeRouteUpdate.forEach(a=>r.onBeforeRouteUpdate.add(a))}),t?.matches.forEach((o,s)=>{qe(e,t,s)&&n.onBeforeRouteLeave.forEach(a=>r.onBeforeRouteLeave.add(a))}),r}function Cs(e,t,n){const r=new pe;return e.matches.forEach((o,s)=>{Ge(e,t,s)&&n.onAfterRouteEnter.forEach(a=>r.onAfterRouteEnter.add(a)),Fe(e,t,s)&&n.onAfterRouteUpdate.forEach(a=>r.onAfterRouteUpdate.add(a))}),t?.matches.forEach((o,s)=>{qe(e,t,s)&&n.onAfterRouteLeave.forEach(a=>r.onAfterRouteLeave.add(a))}),r}function hr(){let e=null;function t(r){e=r}function n(r){return e?e.runWithContext(r):r()}return{setVueApp:t,runWithContext:n}}function ze({to:e}){const t=a=>{throw new ge(a)},n=(...a)=>{throw new ae(a)};return{reject:t,push:n,replace:(a,i,u)=>{if(W(a)){const c=i??{};throw new ae([a,{...c,replace:!0}])}const f=i,m=u??{};throw new ae([a,f,{...m,replace:!0}])},update:(a,i,u)=>{if(typeof a=="object"){const m={...e.params,...a};return n(e.name,m,i)}const f={...e.params,[a]:i};return n(e.name,f,u)},abort:()=>{throw new pr}}}const Er=Ze();function ks(){const{setVueApp:e,runWithContext:t}=hr(),{store:n,...r}=ot(),o=new pe,s=async({to:m,from:c})=>{const{reject:E,push:l,replace:p,update:S,abort:_}=ze({to:m}),h=Is(m,c),T=bs(m,c,n),g=[...h.redirects,...T.onBeforeRouteEnter,...h.onBeforeRouteEnter,...T.onBeforeRouteUpdate,...h.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...T.onBeforeRouteLeave,...h.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{const d=g.map(y=>t(()=>y(m,{from:c,reject:E,push:l,replace:p,update:S,abort:_})));await Promise.all(d)}catch(d){if(d instanceof ae||d instanceof ge||d instanceof pr)return d.response;try{i(d,{to:m,from:c,source:"hook"})}catch(y){if(y instanceof ae||y instanceof ge)return y.response;throw y}}return{status:"SUCCESS"}},a=async({to:m,from:c})=>{const{reject:E,push:l,replace:p,update:S}=ze({to:m}),_=As(m,c),h=Cs(m,c,n),T=[...o.onAfterRouteLeave,..._.onAfterRouteLeave,...h.onAfterRouteLeave,...o.onAfterRouteUpdate,..._.onAfterRouteUpdate,...h.onAfterRouteUpdate,...o.onAfterRouteEnter,..._.onAfterRouteEnter,...h.onAfterRouteEnter];try{const g=T.map(d=>t(()=>d(m,{from:c,reject:E,push:l,replace:p,update:S})));await Promise.all(g)}catch(g){if(g instanceof ae||g instanceof ge)return g.response;try{i(g,{to:m,from:c,source:"hook"})}catch(d){if(d instanceof ae||d instanceof ge)return d.response;throw d}}return{status:"SUCCESS"}},i=(m,{to:c,from:E,source:l})=>{const{reject:p,push:S,replace:_,update:h}=ze({to:c});for(const T of n.onError)try{T(m,{to:c,from:E,source:l,reject:p,push:S,replace:_,update:h});return}catch(g){if(g instanceof _t)throw g;if(g===m)continue;throw g}};return{runBeforeRouteHooks:s,runAfterRouteHooks:a,runErrorHooks:i,addComponentHook:({lifecycle:m,depth:c,hook:E})=>{const l=Ns(m),p=o[m],S=(_,h)=>{if(l(_,h.from,c))return E(_,h)};return p.add(S),()=>p.delete(S)},addGlobalRouteHooks:m=>{m.onBeforeRouteEnter.forEach(c=>r.onBeforeRouteEnter(c)),m.onBeforeRouteUpdate.forEach(c=>r.onBeforeRouteUpdate(c)),m.onBeforeRouteLeave.forEach(c=>r.onBeforeRouteLeave(c)),m.onAfterRouteEnter.forEach(c=>r.onAfterRouteEnter(c)),m.onAfterRouteUpdate.forEach(c=>r.onAfterRouteUpdate(c)),m.onAfterRouteLeave.forEach(c=>r.onAfterRouteLeave(c)),m.onError.forEach(c=>r.onError(c))},setVueApp:e,...r}}function Us(e){const t=Er(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}function mt(e,t){const n=dr(e),r=Us(e);return o=>{const s=n(),i=r().addComponentHook({lifecycle:t,hook:o,depth:s-1});return R.onUnmounted(i),i}}function vs(e){const t=mt(e,"onBeforeRouteLeave"),n=mt(e,"onBeforeRouteUpdate"),r=mt(e,"onAfterRouteLeave"),o=mt(e,"onAfterRouteUpdate");return{onBeforeRouteLeave:t,onBeforeRouteUpdate:n,onAfterRouteLeave:r,onAfterRouteUpdate:o}}const gr=Ze();function Ls(e){const t=gr(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}const _r=Ze();function mr(e){const t=_r(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}function We(e){return()=>{const t=R.inject(e);if(!t)throw new de;return t}}const yr=Symbol("isRouterRouteSymbol");function Ds(e,t){return typeof t=="object"&&t!==null&&yr in t&&e in t}function Vs(e,t,n){function r(g){const d=gt({...X(t.href),query:void 0}),y=je(d,{query:g});n(y)}function o(g,d,y){if(qo(g))return o({[g]:d},y);const w=g,A=d,C={...t.params,...w};return n(t.name,C,A)}const s=(...g)=>{const d=new URLSearchParams(t.query);d.set(...g),r(d)},a=(...g)=>{const d=new URLSearchParams(t.query);d.append(...g),r(d)},i=(...g)=>{const d=new URLSearchParams(t.query);d.delete(...g),r(d)},{id:u,matched:f,matches:m,name:c,hash:E,href:l}=R.toRefs(t),p=new Proxy({},{get(g,d,y){return Reflect.get(t.params,d,y)},set(g,d,y){return o(d,y),!0},ownKeys(){return Reflect.ownKeys(t.params)},getOwnPropertyDescriptor(g,d){return Reflect.getOwnPropertyDescriptor(t.params,d)}}),S=R.computed({get(){return p},set(g){o(g)}}),_=R.computed({get(){return new Proxy(t.query,{get(g,d,y){switch(d){case"append":return a;case"set":return s;case"delete":return i;default:return Reflect.get(g,d,y)}}})},set(g){r(g)}}),h=R.computed({get(){return new Proxy(t.state,{set(g,d,y){return o({},{state:{...t.state,[d]:y}}),!0}})},set(g){o({},{state:g})}});return R.reactive({...t,id:u,matched:f,matches:m,state:h,query:_,hash:E,params:S,name:c,href:l,update:o,[yr]:!0,[e]:!0})}function cn(e){return(t,n,{exact:r}={})=>Ds(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(o=>o.name).includes(n):!1}function yt(e){const t=We(e),n=cn(e);return(r,o)=>{const s=t();function a(){if(!r)return;if(!n(s.route,r,o))throw new Bn(r,s.route.name)}return R.watch(s.route,a,{immediate:!0,deep:!0}),s.route}}function un(e){const t=yt(e),n=We(e),r=mr(e),o=dr(e),s=Ls(e);return R.defineComponent((a,i)=>{const u=t(),f=n(),m=r(),c=o({increment:!0});R.onServerPrefetch(async()=>{await f.start()});const{getRouteComponents:E}=s(),l=R.computed(()=>{if(!f.started.value)return null;if(m.value)return m.value.component;const p=u.matches.at(c);if(!p)return null;const S=E(p),_=a.name??"default";return S[_]});return()=>i.slots.default?i.slots.default({route:u,component:l.value,rejection:m.value}):l.value?R.h(l.value):null},{name:"RouterView",props:["name"]})}const Rr=Ze();function Sr(e){const t=Rr(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}const xs="lazy",Ms={components:!0,props:!1};function Rt(e){return["eager","lazy","intent"].includes(e)}function Tr({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){const o=fn(n,r),s=fn(t,r),a=fn(e,r),i=[o,s,a,Ms[r],xs].reduce((u,f)=>Rt(u)?u:u===!0&&Rt(f)?f:u===!0&&!Rt(f)?u:u===void 0?f:u,void 0);return Rt(i)?i:!1}function fn(e,t){return Oe(e)?e[t]:e}const Bs=R.defineAsyncComponent(()=>new Promise(e=>{e({default:{template:"foo"}})}));function Or(e){return e.name===Bs.name&&"__asyncLoader"in e}const wr=Symbol("visibilityObserver");function $s(e){const t=R.inject(wr);if(!t)throw new de;return R.watch(e,(r,o)=>{r&&t.observe(r),o&&t.unobserve(o)},{immediate:!0}),R.onUnmounted(()=>{e.value&&t.unobserve(e.value)}),{isElementVisible:R.computed(()=>e.value?t.isElementVisible(e.value):!1)}}function Pr(e,t,n){R.watch(e,(r,o)=>{r&&r.addEventListener(t,n),o&&o.removeEventListener(t,n)},{immediate:!0}),R.onUnmounted(()=>{e.value&&e.value.removeEventListener(t,n)})}function Hs(e){const t=Sr(e);return n=>{const r=new Map,o=R.ref(),{getPrefetchProps:s,setPrefetchProps:a}=t(),{isElementVisible:i}=$s(o),u=()=>{const c=Array.from(r.values()).reduce((E,l)=>(Object.assign(E,l),E),{});a(c)};R.watch(()=>R.toValue(n),({route:c,...E})=>{r.clear(),c&&m("eager",c,E)},{immediate:!0}),R.watch(i,c=>{const{route:E,...l}=R.toValue(n);!E||!c||m("lazy",E,l)},{immediate:!0}),Pr(o,"focusin",f),Pr(o,"mouseover",f);function f(){const{route:c,...E}=R.toValue(n);c&&m("intent",c,E)}function m(c,E,l){js(c,E,l),r.has(c)||r.set(c,s(c,E,l))}return{element:o,commit:u}}}function js(e,t,n){t.matches.forEach(r=>{Tr({...n,routePrefetch:r.prefetch},"components")===e&&(Mt(r)&&Or(r.component)&&r.component.__asyncLoader(),$t(r)&&Object.values(r.components).forEach(s=>{Or(s)&&s.__asyncLoader()}))})}function Nr(e){const t=We(e),n=Hs(e),r=cn(e);return(o,s={},a={})=>{const i=t(),u=R.computed(()=>{const d=R.toValue(o);return typeof d!="string"?d:W(d)?i.find(d,R.toValue(a)):i.resolve(d,R.toValue(s),R.toValue(a))}),f=R.computed(()=>{if(u.value)return u.value.href;const d=R.toValue(o);if(W(d))return d;console.error(new Error("Failed to resolve route in RouterLink."))}),m=R.computed(()=>r(i.route)&&i.route.matches.some(d=>d.id===u.value?.id)),c=R.computed(()=>i.route.id===u.value?.id),E=R.computed(()=>r(i.route)&&Go(u.value)&&i.route.href.startsWith(u.value.href)),l=R.computed(()=>i.route.href===u.value?.href),p=R.computed(()=>!!f.value&&i.isExternal(f.value)),S=R.computed(()=>{const d=R.toValue(o);return typeof d!="string"||W(d)?R.toValue(s):R.toValue(a)}),{element:_,commit:h}=n(()=>({route:u.value,routerPrefetch:i.prefetch,linkPrefetch:S.value.prefetch})),T=d=>{h();const y={replace:d?.replace??S.value.replace,query:sr(d?.query,S.value.query),hash:d?.hash??S.value.hash,state:{...S.value.state,...d?.state}},w=R.toValue(o);return W(w)||typeof w=="object"?i.push(w,y):i.push(w,R.toValue(s),y)};return{element:_,route:u,href:f,isMatch:m,isExactMatch:c,isActive:E,isExactActive:l,isExternal:p,push:T,replace:d=>T({...d,replace:!0})}}}function Ir(e){const t=We(e),n=Nr(e);return R.defineComponent((r,o)=>{const s=t(),a=R.computed(()=>h(r.to)),i=R.computed(()=>T(r.to)),u=R.computed(()=>{const{to:d,...y}=r;return y}),{element:f,isMatch:m,isExactMatch:c,isActive:E,isExactActive:l,isExternal:p,push:S}=n(()=>typeof r.to=="function"?r.to(s.resolve):r.to,u),_=R.computed(()=>({"router-link--match":m.value,"router-link--exact-match":c.value,"router-link--active":E.value,"router-link--exact-active":l.value}));function h(d){if(typeof d=="function"){const y=d(s.resolve);return h(y)}return W(d)?s.find(d):d}function T(d){if(typeof d=="function"){const y=d(s.resolve);return T(y)}return W(d)?d:d?.href}function g(d){d.preventDefault(),S()}return()=>R.h("a",{href:i.value,class:["router-link",_.value],ref:f,onClick:g},o.slots.default?.({route:a.value,isMatch:m.value,isExactMatch:c.value,isActive:E.value,isExactActive:l.value,isExternal:p.value}))},{name:"RouterLink",props:["to","prefetch","query","hash","replace","state"]})}function Zs(e){const t=yt(e);return(n,r=String)=>{const o=t(),s=R.computed({get(){const i=o.query.get(R.toValue(n));return i===null?at(r)?r.defaultValue:null:en(i,{param:r})},set(i){o.query.set(R.toValue(n),ie(i,{param:r}))}}),a=R.computed({get(){const i=o.query.getAll(R.toValue(n));return i.length===0&&at(r)?[r.defaultValue]:i.map(u=>en(u,{param:r})).filter(u=>u!==null)},set(i){const u=new URLSearchParams(o.query);u.delete(R.toValue(n)),i.forEach(f=>{u.append(R.toValue(n),ie(f,{param:r}))}),o.query=u}});return{value:s,values:a,remove:()=>{o.query.delete(R.toValue(n))}}}}function Ar(e){const t=typeof e=="object"?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s}=vs(t),a=cn(t),i=un(t),u=Ir(t),f=yt(t),m=We(t),c=Zs(t),E=Nr(t),l=mr(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s,isRoute:a,RouterView:i,RouterLink:u,useRoute:f,useRouter:m,useQueryValue:c,useLink:E,useRejection:l}}function Gs(e){const{store:t,...n}=ot();return{routes:e.routes??[],rejections:e.rejections??[],hooks:t,...n}}function br(e){return{get:(t,{invalid:n})=>{for(const r of e){const o=en(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(const r of e){const o=es(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}const qs={separator:","};function Fs(e,t={}){const{separator:n}={...qs,...t},r=br(e);return{get:(o,s)=>o.split(n).map(a=>r.get(a,s)),set:(o,s)=>{if(!Array.isArray(o))throw s.invalid("Expected an array");return o.map(a=>r.set(a,s)).join(n)}}}const zs={separator:","};function Ws(e,t={}){const{separator:n}={...zs,...t};return{get:r=>{const o=r.split(n);return e.map((s,a)=>he(o.at(a),{param:s}))},set:(r,{invalid:o})=>{if(!Array.isArray(r))throw o("Expected a tuple");if(r.length!==e.length)throw o(`Expected tuple with ${e.length} values but received ${r.length} values`);return e.map((s,a)=>ie(r.at(a),{param:s})).join(n)}}}function Ae(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(n=>n!==t)}},call(t){e.forEach(n=>n(t))}}}function St(){return Math.random().toString(36).slice(2,10)}function Cr(e,t,n){return Math.min(Math.max(e,t),n)}function Tt(e){e.preventDefault(),e.returnValue=""}function _e({pathname:e="/",search:t="",hash:n=""}){let r=e;return t&&t!=="?"&&(r+=t.startsWith("?")?t:"?"+t),n&&n!=="#"&&(r+=n.startsWith("#")?n:"#"+n),r}function Je(e){const t={};if(e){const n=e.indexOf("#");n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));const r=e.indexOf("?");r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function be(e){return Object.freeze(e)}const Ot="beforeunload",kr="popstate",Js="hashchange";function Ur(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:d,search:y,hash:w}=t.location,A=n.state??{};return[A.idx,be({pathname:d,search:y,hash:w,state:A.usr??null,key:A.key??"default"})]}let o=null;function s(){if(o)m.call(o),o=null;else{const[y,w]=r();if(m.length){if(y!=null){const A=i??0-y;A&&(o={action:"POP",location:w,retry(){T(A*-1)}},T(A))}}else S("POP")}}t.addEventListener(kr,s);let a="POP",[i,u]=r();const f=Ae(),m=Ae();i==null&&(i=0,n.replaceState({...n.state,idx:i},"",c(u)));function c(d){return typeof d=="string"?d:_e(d)}function E(d,y=null){return be({pathname:u.pathname,hash:"",search:"",...typeof d=="string"?Je(d):d,state:y,key:St()})}function l(d,y){return[{usr:d.state,key:d.key,idx:y},c(d)]}function p(d,y,w){return m.length?(m.call({action:d,location:y,retry:w}),!1):!0}function S(d){a=d,[i,u]=r(),f.call({action:a,location:u})}function _(d,y){const w="PUSH",A=E(d,y);function C(){_(d,y)}if(p(w,A,C)){const[M,$]=l(A,(i??0)+1);try{n.pushState(M,"",$)}catch{t.location.assign($)}S(w)}}function h(d,y){const w="REPLACE",A=E(d,y);function C(){h(d,y)}if(p(w,A,C)){const[M,$]=l(A,i??0);n.replaceState(M,"",$),S(w)}}function T(d){n.go(d)}return{get action(){return a},get location(){return u},createHref:c,push:_,replace:h,go:T,back(){T(-1)},forward(){T(1)},listen(d){return f.push(d)},block(d){const y=m.push(d);return m.length===1&&t.addEventListener(Ot,Tt),()=>{y(),m.length||t.removeEventListener(Ot,Tt)}}}}function Ks(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:y="/",search:w="",hash:A=""}=Je(t.location.hash.slice(1)),C=n.state??{};return[C.idx,be({pathname:y,search:w,hash:A,state:C.usr??null,key:C.key??"default"})]}let o=null;function s(){if(o)m.call(o),o=null;else{const[w,A]=r();if(m.length){if(w!=null){const C=(i??0)-w;C&&(o={action:"POP",location:A,retry(){g(C*-1)}},g(C))}}else _("POP")}}t.addEventListener(kr,s),t.addEventListener(Js,()=>{const[,y]=r();_e(y)!==_e(u)&&s()});let a="POP",[i,u]=r();const f=Ae(),m=Ae();i==null&&(i=0,n.replaceState({...n.state,idx:i},""));function c(){const y=document.querySelector("base");let w="";if(y?.getAttribute("href")){const A=t.location.href,C=A.indexOf("#");w=C===-1?A:A.slice(0,C)}return w}function E(y){return c()+"#"+(typeof y=="string"?y:_e(y))}function l(y,w=null){return be({pathname:u.pathname,hash:"",search:"",...typeof y=="string"?Je(y):y,state:w,key:St()})}function p(y,w){return[{usr:y.state,key:y.key,idx:w},E(y)]}function S(y,w,A){return m.length?(m.call({action:y,location:w,retry:A}),!1):!0}function _(y){a=y,[i,u]=r(),f.call({action:a,location:u})}function h(y,w){const A="PUSH",C=l(y,w);function M(){h(y,w)}if(S(A,C,M)){const[$,K]=p(C,(i??0)+1);try{n.pushState($,"",K)}catch{t.location.assign(K)}_(A)}}function T(y,w){const A="REPLACE",C=l(y,w);function M(){T(y,w)}if(S(A,C,M)){const[$,K]=p(C,i??0);n.replaceState($,"",K),_(A)}}function g(y){n.go(y)}return{get action(){return a},get location(){return u},createHref:E,push:h,replace:T,go:g,back(){g(-1)},forward(){g(1)},listen(y){return f.push(y)},block(y){const w=m.push(y);return m.length===1&&t.addEventListener(Ot,Tt),()=>{w(),m.length||t.removeEventListener(Ot,Tt)}}}}function vr(e={}){const{initialEntries:t=["/"],initialIndex:n}=e,r=t.map(h=>be({pathname:"/",search:"",hash:"",state:null,key:St(),...typeof h=="string"?Je(h):h}));let o=Cr(n??r.length-1,0,r.length-1),s="POP",a=r[o];const i=Ae(),u=Ae();function f(h){return typeof h=="string"?h:_e(h)}function m(h,T=null){return be({pathname:a.pathname,search:"",hash:"",...typeof h=="string"?Je(h):h,state:T,key:St()})}function c(h,T,g){return u.length?(u.call({action:h,location:T,retry:g}),!1):!0}function E(h,T){s=h,a=T,i.call({action:s,location:a})}function l(h,T){const g="PUSH",d=m(h,T);function y(){l(h,T)}c(g,d,y)&&(o+=1,r.splice(o,r.length,d),E(g,d))}function p(h,T){const g="REPLACE",d=m(h,T);function y(){p(h,T)}c(g,d,y)&&(r[o]=d,E(g,d))}function S(h){const T=Cr(o+h,0,r.length-1),g="POP",d=r[T];function y(){S(h)}c(g,d,y)&&(o=T,E(g,d))}return{get index(){return o},get action(){return s},get location(){return a},createHref:f,push:l,replace:p,go:S,back(){S(-1)},forward(){S(1)},listen(h){return i.push(h)},block(h){return u.push(h)}}}function Ys(e,t,n){const r=R.reactive({...t}),o=i=>{Object.assign(r,{...i})},s=r,a=Vs(e,s,n);return{currentRoute:s,routerRoute:a,updateRoute:o}}function Qs(e){return t=>{const{host:n}=X(t);return!(n===void 0||n===e)}}function Lr(e){try{const t=e();return Kt(t)?t.catch(n=>n):t}catch(t){return t}}function Xs(){const{setVueApp:e,runWithContext:t}=hr(),n=R.reactive(new Map),r=(E,l,p)=>{const{push:S,replace:_,reject:h,update:T}=ze({to:l});return l.matches.filter(g=>Tr({...p,routePrefetch:g.prefetch},"props")===E).flatMap(g=>m(g)).reduce((g,{id:d,name:y,props:w})=>{if(!w)return g;const A=f(d,y,l),C=t(()=>Lr(()=>w(l,{push:S,replace:_,reject:h,update:T,parent:i(l,!0)})));return g[A]=C,g},{})},o=E=>{Object.entries(E).forEach(([l,p])=>{n.set(l,p)})},s=async E=>{const{push:l,replace:p,reject:S,update:_}=ze({to:E}),h=E.matches.flatMap(m),T=[],g=[];for(const{id:d,name:y,props:w}of h){if(!w)continue;const A=f(d,y,E);if(T.push(A),!n.has(A)){const C=t(()=>Lr(()=>w(E,{push:l,replace:p,reject:S,update:_,parent:i(E)})));n.set(A,C)}g.push((async()=>{const C=await n.get(A);if(C instanceof Error)throw C})())}c(T);try{return await Promise.all(g),{status:"SUCCESS"}}catch(d){if(d instanceof ae||d instanceof ge)return d.response;throw d}},a=(E,l,p)=>{const S=f(E,l,p);return n.get(S)};function i(E,l=!1){const p=E.matches.at(-2);if(p)return Bt(p)?{name:p.name??"",get props(){return u(p,"default",E,l)}}:Ht(p)?{name:p.name??"",props:new Proxy({},{get(S,_){return typeof _!="string"?Reflect.get(S,_):u(p,_,E,l)}})}:{name:p.name??"",props:void 0}}function u(E,l,p,S=!1){const _=a(E.id,l,p);if(S&&!_){const h=E.name??"unknown",T=p.name||"unknown";console.warn(`
|
|
2
|
-
Unable to access parent props "${
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@kitbag/router`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=class extends Error{constructor(e){super(`Child property on meta for ${e} conflicts with the parent meta.`)}};function r(e,t){return i(e,t),{...e,...t}}function i(e,t){let r=Object.keys(e).find(n=>n in t&&typeof t[n]!=typeof e[n]);if(r)throw new n(r)}var a=class extends Error{constructor(e){super(`Invalid Param "${e}": Router does not support multiple params by the same name. All param names must be unique.`)}};function o(e,t){return e.filter(e=>t===e).length}function s(...e){let t=e.flatMap(e=>Array.isArray(e)?e:Object.keys(e));for(let e of t)if(o(t,e)>1)throw new a(e)}function c(e,t){return s(e,t),{...e,...t}}var l=Symbol(`IS_ROUTE_SYMBOL`);function u(e){return typeof e==`object`&&!!e&&l in e}var d=[`NotFound`],f=Symbol(`IS_REJECTION_SYMBOL`);function p(e){return typeof e==`object`&&!!e&&f in e}function m(e){return e&&(u(e)||p(e))?e.hooks:[]}function h(e,t){return[...m(e),...m(t)]}function g(e){return`parent`in e&&!!e.parent}function _(e){return`component`in e&&!!e.component}function v(e){return`props`in e&&typeof e.props==`function`}function y(e){return`components`in e&&!!e.components}function b(e){return`props`in e&&typeof e.props==`object`}function x(e,t){if(!u(e)||!u(t))throw Error(`combineRoutes called with invalid route arguments`);return{...t,meta:r(e.meta,t.meta),state:c(e.state,t.state),hooks:h(e,t),matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function S(e){return typeof e==`string`?/^(https?:\/\/|\/).*/g.test(e):!1}function C(e){return S(e)?e:`/${e}`}var w=class extends Error{constructor(){super(`Router not installed`)}},ee=class extends Error{constructor(e,t){super(`useRoute called with incorrect route. Given ${e}, expected ${t}`)}};function T(){let e=0;return()=>(++e).toString()}var E=T()();function te(e){return e===E}var D=T();function O(e){return e===void 0?``:e}var k=class{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set;onRejection=new Set},ne=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}};function A(){let e=new k;return{redirect:(t,n)=>{if(e.redirects.size>0)throw new ne(t.name);let r=(e,{replace:r})=>{r(t.name,n?.(e.params))};return e.redirects.add(r),()=>e.redirects.delete(r)},onBeforeRouteEnter:t=>(e.onBeforeRouteEnter.add(t),()=>e.onBeforeRouteEnter.delete(t)),onBeforeRouteUpdate:t=>(e.onBeforeRouteUpdate.add(t),()=>e.onBeforeRouteUpdate.delete(t)),onBeforeRouteLeave:t=>(e.onBeforeRouteLeave.add(t),()=>e.onBeforeRouteLeave.delete(t)),onAfterRouteEnter:t=>(e.onAfterRouteEnter.add(t),()=>e.onAfterRouteEnter.delete(t)),onAfterRouteUpdate:t=>(e.onAfterRouteUpdate.add(t),()=>e.onAfterRouteUpdate.delete(t)),onAfterRouteLeave:t=>(e.onAfterRouteLeave.add(t),()=>e.onAfterRouteLeave.delete(t)),onError:t=>(e.onError.add(t),()=>e.onError.delete(t)),onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}var re=class extends Error{context;constructor(e={}){super(e.message??`Uncaught InvalidRouteParamValueError`),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...e}}};function ie(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function ae(e){return typeof e==`function`&&ie(e)}function oe(e){return typeof e==`object`&&`get`in e&&typeof e.get==`function`&&`set`in e&&typeof e.set==`function`}function se(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function ce(e,t){return oe(e)?{...e,defaultValue:t??e.defaultValue}:{get:t=>Ge(t,{param:e}),set:t=>F(t,{param:e}),defaultValue:t}}function le(e){return oe(e)&&e.defaultValue!==void 0}function ue(e,t){return ce(e,t)}function de(e){return e!==void 0}function j(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function fe(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}function M(e){return typeof e==`string`&&e.length>0}var pe=Symbol(`IS_URL_SYMBOL`);function me(e){return typeof e==`object`&&!!e&&pe in e}var N=null;async function he(){let{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:i,ZodCIDRv6:a,ZodURL:o,ZodEmail:s,ZodUUID:c,ZodBase64:l,ZodCUID:u,ZodCUID2:d,ZodULID:f,ZodJWT:p,ZodBigInt:m,ZodNaN:h,ZodBoolean:g,ZodDate:_,ZodISODateTime:v,ZodISODate:y,ZodISOTime:b,ZodNumber:x,ZodLiteral:S,ZodObject:C,ZodEnum:w,ZodArray:ee,ZodTuple:T,ZodUnion:E,ZodDiscriminatedUnion:te,ZodRecord:D,ZodMap:O,ZodSet:k,ZodIntersection:ne,ZodPromise:A}=await import(`zod`);return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:i,ZodCIDRv6:a,ZodURL:o,ZodEmail:s,ZodUUID:c,ZodBase64:l,ZodCUID:u,ZodCUID2:d,ZodULID:f,ZodJWT:p,ZodBigInt:m,ZodNaN:h,ZodBoolean:g,ZodDate:_,ZodISODateTime:v,ZodISODate:y,ZodISOTime:b,ZodNumber:x,ZodLiteral:S,ZodObject:C,ZodEnum:w,ZodArray:ee,ZodTuple:T,ZodUnion:E,ZodDiscriminatedUnion:te,ZodRecord:D,ZodMap:O,ZodSet:k,ZodIntersection:ne,ZodPromise:A}}function ge(e){return Object.values(e).some(e=>me(e)?Object.values(e.schema.host.params).some(({param:e})=>_e(e))||Object.values(e.schema.path.params).some(({param:e})=>_e(e))||Object.values(e.schema.query.params).some(({param:e})=>_e(e)):!1)}function _e(e){return j(e)&&`parse`in e&&typeof e.parse==`function`&&`~standard`in e&&j(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`zod`}async function ve(){try{N=await he()}catch{throw Error(`Failed to initialize Zod`)}}function ye(e){return N?e instanceof N.ZodType:!1}function be(e){return{get:(t,{invalid:n})=>{try{return Te(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Ee(t,e)}catch{throw n()}}}}var xe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Se(e,t){if(typeof t==`string`&&xe.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Ce(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function we(e,t){return N?.ZodString&&e instanceof N.ZodString?1:N?.ZodString&&t instanceof N.ZodString?-1:0}function Te(e,t){if(!N)throw Error(`Zod is not initialized`);if(t instanceof N.ZodString)return t.parse(e);if(t instanceof N.ZodBoolean)return t.parse(!!e);if(t instanceof N.ZodDate)return t.parse(new Date(e));if(t instanceof N.ZodNumber)return t.parse(Number(e));if(t instanceof N.ZodBigInt)return t.parse(BigInt(e));if(t instanceof N.ZodNaN)return t.parse(Number(e));if(t instanceof N.ZodLiteral)return Ce([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof N.ZodObject)return t.parse(JSON.parse(e,Se));if(t instanceof N.ZodEnum)return t.parse(e);if(t instanceof N.ZodArray||t instanceof N.ZodTuple)return t.parse(JSON.parse(e,Se));if(t instanceof N.ZodUnion)return Ce(Array.from(t.def.options).sort(we).map(t=>()=>Te(e,t)));if(t instanceof N.ZodDiscriminatedUnion)return Ce(Array.from(t.options).sort(we).map(t=>()=>Te(e,t)));if(t instanceof N.ZodRecord)return t.parse(JSON.parse(e,Se));if(t instanceof N.ZodMap)return t.parse(new Map(JSON.parse(e,Se)));if(t instanceof N.ZodSet)return t.parse(new Set(JSON.parse(e,Se)));if(t instanceof N.ZodIntersection)throw Error(`Intersection schemas are not supported`);if(t instanceof N.ZodPromise)throw Error(`Promise schemas are not supported`);return t.parse(e)}function Ee(e,t){if(!N)throw Error(`Zod is not initialized`);if(t instanceof N.ZodString||t instanceof N.ZodISODateTime||t instanceof N.ZodISODate||t instanceof N.ZodISOTime||t instanceof N.ZodIPv4||t instanceof N.ZodIPv6||t instanceof N.ZodCIDRv4||t instanceof N.ZodCIDRv6||t instanceof N.ZodURL||t instanceof N.ZodEmail||t instanceof N.ZodUUID||t instanceof N.ZodBase64||t instanceof N.ZodCUID||t instanceof N.ZodCUID2||t instanceof N.ZodULID||t instanceof N.ZodJWT)return t.parse(e);if(t instanceof N.ZodBoolean)return t.parse(e).toString();if(t instanceof N.ZodDate)return t.parse(e).toISOString();if(t instanceof N.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof N.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof N.ZodNaN)return t.parse(e).toString();if(t instanceof N.ZodLiteral){let n=t.parse(e);return n==null?String(n):n.toString()}if(t instanceof N.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof N.ZodEnum){let n=t.parse(e);return typeof n==`string`?n:String(n)}if(t instanceof N.ZodArray||t instanceof N.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof N.ZodUnion)return Ce(Array.from(t.def.options).sort(we).map(t=>()=>Ee(e,t)));if(t instanceof N.ZodDiscriminatedUnion)return Ce(Array.from(t.options).sort(we).map(t=>()=>Ee(e,t)));if(t instanceof N.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof N.ZodMap){let n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof N.ZodSet){let n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof N.ZodIntersection)throw Error(`Intersection schemas are not supported`);if(t instanceof N.ZodPromise)throw Error(`Promise schemas are not supported`);return JSON.stringify(t.parse(e))}function De(e){return typeof e==`object`&&!!e&&`then`in e}function P(e,t){let n=e[`~standard`].validate(t);if(De(n))throw Error(`Promise schemas are not supported`);if(n.issues)throw Error(`Validation failed`);return n.value}function Oe(e){return j(e)&&`type`in e&&typeof e.type==`string`&&`~standard`in e&&j(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`valibot`}function ke(e){return Oe(e)}function Ae(e){return{get:(t,{invalid:n})=>{try{return Fe(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Ie(t,e)}catch{throw n()}}}}var je=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Me(e,t){if(typeof t==`string`&&je.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Ne(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function Pe(e,t){return e.type===`string`?1:t.type===`string`?-1:0}function Fe(e,t){if(t.type===`boolean`)return P(t,!!e);if(t.type===`date`)return P(t,new Date(e));if(t.type===`number`)return P(t,Number(e));if(t.type===`literal`)return Ne([()=>P(t,Number(e)),()=>P(t,!!e),()=>P(t,e)]);if(t.type===`object`)return P(t,JSON.parse(e,Me));if(t.type===`enum`)return Ne([()=>P(t,Number(e)),()=>P(t,!!e),()=>P(t,e)]);if(t.type===`array`||t.type===`tuple`)return P(t,JSON.parse(e,Me));if(t.type===`union`&&`options`in t||t.type===`variant`&&`options`in t)return Ne(t.options.sort(Pe).map(t=>()=>Fe(e,t)));if(t.type===`record`)return P(t,JSON.parse(e,Me));if(t.type===`map`)return P(t,new Map(JSON.parse(e,Me)));if(t.type===`set`)return P(t,new Set(JSON.parse(e,Me)));if(t.type===`intersection`)throw Error(`Intersection schemas are not supported`);if(t.type===`promise`)throw Error(`Promise schemas are not supported`);if(t.type===`function`)throw Error(`Function schemas are not supported`);return P(t,e)}function Ie(e,t){if(t.type===`string`||t.type===`boolean`)return P(t,e).toString();if(t.type===`date`)return P(t,e).toISOString();if(t.type===`number`)return P(t,Number(e)).toString();if(t.type===`literal`)return P(t,e).toString();if(t.type===`object`)return JSON.stringify(P(t,e));if(t.type===`enum`||t.type===`nativeEnum`)return P(t,e).toString();if(t.type===`array`||t.type===`tuple`)return JSON.stringify(P(t,e));if(t.type===`union`&&`options`in t||t.type===`variant`&&`options`in t)return Ne(t.options.sort(Pe).map(t=>()=>Ie(e,t)));if(t.type===`record`)return JSON.stringify(P(t,e));if(t.type===`map`){let n=P(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type===`set`){let n=P(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type===`intersection`)throw Error(`Intersection schemas are not supported`);if(t.type===`promise`)throw Error(`Promise schemas are not supported`);if(t.type===`function`)throw Error(`Function schemas are not supported`);return JSON.stringify(P(t,e))}function Le(e){return{get:(t,{invalid:n})=>{if(`${e}`===t)return e;throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`)},set:(t,{invalid:n})=>{if(e!==t)throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);return t.toString()}}}function Re(e,t){return e[t]??String}function ze(e){return{invalid:t=>{throw new re({...e,message:t})}}}var Be={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!=`string`)throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},Ve={get:(e,{invalid:t})=>{if(e===`true`)return!0;if(e===`false`)return!1;throw t(`Expected boolean value, received ${JSON.stringify(e)}`)},set:(e,{invalid:t})=>{if(typeof e!=`boolean`)throw t(`Expected boolean value, received ${JSON.stringify(e)}`);return e.toString()}},He={get:(e,{invalid:t})=>{let n=Number(e);if(isNaN(n))throw t(`Expected number value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!=`number`)throw t(`Expected number value, received ${JSON.stringify(e)}`);return e.toString()}},Ue={get:(e,{invalid:t})=>{let n=new Date(e);if(isNaN(n.getTime()))throw t(`Expected date value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!=`object`||!(e instanceof Date))throw t(`Expected date value, received ${JSON.stringify(e)}`);return e.toISOString()}},We={get:(e,{invalid:t})=>{try{return JSON.parse(e)}catch{throw t(`Expected JSON value, received "${e}"`)}},set:(e,{invalid:t})=>{try{return JSON.stringify(e)}catch{throw t(`Expected JSON value, received "${e}"`)}}};function Ge(e,{param:t=String,isOptional:n=!1}={}){let r=ze({param:t,value:e,isGetter:!0});if(e===void 0||!M(e)){if(le(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Be.get(e,r);if(t===Boolean)return Ve.get(e,r);if(t===Number)return He.get(e,r);if(t===Date)return Ue.get(e,r);if(t===JSON)return We.get(e,r);if(ae(t))return t(e,r);if(oe(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return se(t)?Le(t).get(e,r):ye(t)?be(t).get(e,r):ke(t)?Ae(t).get(e,r):e}function Ke(e,t){try{return Ge(e,t)}catch(e){if(e instanceof re)return;throw e}}function qe(e,t){try{return F(e,t)}catch(e){if(e instanceof re)return;throw e}}function F(e,{param:t=String,isOptional:n=!1}={}){let r=ze({param:t,value:e,isSetter:!0});if(e===void 0){if(n)return``;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===Boolean)return Ve.set(e,r);if(t===Number)return He.set(e,r);if(t===Date)return Ue.set(e,r);if(t===JSON)return We.set(e,r);if(oe(t))return t.set(e,r);if(se(t))return Le(t).set(e,r);if(ye(t))return be(t).set(e,r);if(ke(t))return Ae(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}var Je=`\\[\\??([\\w-_]+)\\*?\\]`,Ye=`\\[\\?([\\w-_]+)\\*?\\]`,Xe=`\\[\\??([\\w-_]+)\\*\\]`,Ze=`[^/]*`,Qe=`([^/]*)`,$e=`(.*)`;function et(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function tt(e,t){let n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0,i=n.reduce((t,n)=>{let i=et(e.slice(r,n.index));i.length&&t.push(i);let[a]=n;return t.push(a),r=n.index+a.length,t},[]),a=e.slice(r);return a&&i.push(a),i}function nt(e){let t=ot(e);return RegExp(`^${t||`.*`}$`,`i`)}function rt(e){let t=ot(e);return RegExp(`^${t}$`,`i`)}function it(e){let t=ot(e.replace(/^#*/,``));return RegExp(`^#?${t||`.*`}$`,`i`)}function at(e){let t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,e])=>!lt(e)).map(([e,t])=>{let n=ot(t);return RegExp(`${et(e)}=${n}(&|$)`,`i`)})}function ot(e){return tt(e,new RegExp(Je,`g`)).map(e=>e.startsWith(`[`)?st(e):et(e)).join(``)}function st(e){return e.replace(new RegExp(Je,`g`),e=>ut(e)?`.*`:Ze)}function ct(e,t){let n=ft(t),{isGreedy:r=!1}=e.params[t]??{},i=r?$e:Qe;return e.value.replace(n,i)}function lt(e){return new RegExp(Ye,`g`).test(e)}function ut(e){return new RegExp(Xe,`g`).test(e)}function dt(e){let[t]=pt(e,new RegExp(Je,`g`));return t}function ft(e){return RegExp(`\\[\\??${e}\\*?\\]`,`g`)}function pt(e,t){return Array.from(e.matchAll(t)).flatMap(([,...e])=>e.map(e=>M(e)?e:``))}function mt(e=``,t={}){return M(e)?Array.from(e.matchAll(new RegExp(Je,`g`))).reduce((e,[n,r])=>{let i=dt(n);if(!i)return e;let a=Re(t,i),o=lt(n)||le(a),c=ut(n);return s([i],e),e[r]={param:a,isOptional:o,isGreedy:c},e},{}):{}}var ht=Symbol(`UrlPartsWithParams`);function gt(e){return j(e)&&e[ht]===!0}function I(e){return e===void 0?_t():gt(e)?e:_t(e,{})}function _t(e,t){return{value:e??``,params:mt(e,t),[ht]:!0}}function vt(e){if(typeof e==`string`||e===void 0||gt(e))return I(e);let t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(let[e,i]of t)if(se(i))n.push(`${e}=${i}`);else{let t=`[${e}]`,a=dt(t);a&&(r[a]=i),n.push(`${a}=${t}`)}return _t(n.join(`&`),r)}function yt(e,t,n){let r=st(ct(t,n)),[i]=pt(e,new RegExp(r,`g`));return i}function bt(e,t,n,r){let i=F(r,t.params[n]);return e.replace(ft(n),i)}function xt(...e){let t=new URLSearchParams;for(let n of e){let e=new URLSearchParams(n);for(let[n,r]of e.entries())t.append(n,r)}return t}var St=`https://internal.invalid`;function Ct(e){let t=new URL(e.host??St,St);return t.pathname=e.path??``,t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??``,C(t.toString().replace(RegExp(`^${St}/*`),`/`))}function L(e){return e.startsWith(`http`)?Tt(e):Et(e)}function wt(e,t){if(typeof e==`string`)return Ct(wt(L(e),t));let n=new URLSearchParams(t.query);return{host:M(t.host)?t.host:e.host,path:M(t.path)?t.path:e.path??``,query:xt(e.query,n),hash:M(t.hash)?t.hash:e.hash??``}}function Tt(e){let{protocol:t,host:n,pathname:r,searchParams:i,hash:a}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:i,hash:a}}function Et(e){let{pathname:t,searchParams:n,hash:r}=new URL(e,St);return{path:t,query:n,hash:r}}function Dt(e){let t={host:I(e.host),path:I(e.path),query:kt(vt(e.query)),hash:Ot(I(e.hash))};s(t.path.params,t.query.params,t.host.params,t.hash.params);let n={...t.host,regexp:nt(t.host.value),stringify(e={}){return At(t.host,e)}},r={...t.path,regexp:{trailingSlashIgnored:rt(t.path.value),trailingSlashRemoved:rt(t.path.value.replace(/^(.+)\/$/,`$1`))},stringify(e={}){return At(t.path,e)}},i={...t.query,regexp:at(t.query.value),stringify(e={}){return jt(t.query,e).toString()}},a={...t.hash,regexp:it(t.hash.value),stringify(e={}){return At(t.hash,e)}};function o(e={}){return Ct({host:n.stringify(e),path:r.stringify(e),query:i.stringify(e),hash:a.stringify(e)})}function c(e,t={}){let o=L(e),s=t.removeTrailingSlashes??!0;if(!n.regexp.test(o.host??``))throw Error(`Host does not match`);if(!(s?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(o.path))throw Error(`Path does not match`);let c=o.query.toString();if(!i.regexp.every(e=>e.test(c)))throw Error(`Query does not match`);if(!a.regexp.test(o.hash))throw Error(`Hash does not match`)}function l(e,t={}){c(e,t);let o=L(e);return{...Mt(n,o.host??``),...Mt(r,o.path),...Nt(i,o.query.toString()),...Mt(a,o.hash)}}function u(e,t={}){try{return{success:!0,params:l(e,t)}}catch(e){return{success:!1,params:{},error:Error(`Failed to parse url`,{cause:e})}}}return{[pe]:!0,schema:{host:n,path:r,query:i,hash:a},params:{},isRelative:!M(t.host.value),stringify:o,parse:l,tryParse:u}}function Ot(e){return{...e,value:e.value.replace(/^#/,``)}}function kt(e){return{...e,value:e.value.replace(/^\?/,``)}}function At(e,t){return Object.keys(e.params).reduce((n,r)=>bt(n,e,r,t[r]),e.value)}function jt(e,t){let n=new URLSearchParams(e.value);if(!e.value)return n;for(let[r,i]of Array.from(n.entries())){let a=dt(i);if(!a)continue;let o=F(t[a],e.params[a]),s=t[a]===void 0&&o===``;e.params[a].isOptional&&s?n.delete(r,i):n.set(r,o)}return n}function Mt(e,t){let n={},r=decodeURIComponent(t);for(let[t,i]of Object.entries(e.params))n[t]=Ge(yt(r,e,t),i);return n}function Nt(e,t){let n={},r=new URLSearchParams(e.value),i=new URLSearchParams(t);for(let[t,a]of Array.from(r.entries())){let r=dt(a);r&&(n[r]=Ge(i.get(t)??void 0,e.params[r]))}return n}var Pt=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}};function Ft({getRoute:e}){return{redirectTo:(...[t,n])=>{let r=e();if(!u(r))throw new Pt(r.name);t.context.push(r),r.context.push(t),r.redirect(t,n)},redirectFrom:(t,n)=>{let r=e();if(!u(t))throw new Pt(t.name);r.context.push(t),t.context.push(r),t.redirect(r,n)}}}function It(e,t){s(e.params,t.params);let n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function Lt(e,t){s(e.params,t.params);let n=[e.value,t.value].filter(M).join(`&`);return{...e,value:n,params:{...e.params,...t.params}}}function Rt(e,t){return It(e,t)}function zt(e,t){if(!me(e))throw Error(`Parent is not a valid url`);if(!me(t))return Dt({host:e.schema.host,path:It(e.schema.path,I(t.path)),query:Lt(e.schema.query,vt(t.query)),hash:Rt(e.schema.hash,I(t.hash))});if(!me(t))throw Error(`Child is not a valid url`);return Dt({host:e.schema.host,path:It(e.schema.path,t.schema.path),query:Lt(e.schema.query,t.schema.query),hash:Rt(e.schema.hash,t.schema.hash)})}function Bt(e){let t;return{setTitle:e=>{t=e},getTitle:async n=>{let r=async()=>{if(e&&u(e))return e.getTitle(n)};return t?t(n,{from:n,getParentTitle:r}):r()}}}function R(e,n){let r=D(),i=O(e.name),a=I(e.path),o=vt(e.query),s=I(e.hash),c=e.meta??{},u=e.state??{},d=e.context??[],{store:f,redirect:p,...m}=A(),{setTitle:h,getTitle:_}=Bt(e.parent),v=(0,t.markRaw)({...e,id:r,meta:c,state:u,props:n,name:i}),y=Ft({getRoute:()=>C}),b=Dt({path:a,query:o,hash:s}),S={[l]:!0,depth:1,hooks:[f],getTitle:_,redirect:p},C={id:r,matched:v,matches:[v],name:i,meta:c,state:u,context:d,prefetch:e.prefetch,setTitle:h,...y,...b,...m,...S};if(g(e)){let t=x(e.parent,C),n=zt(e.parent,{path:a,query:o,hash:s});return{...t,...n}}return C}function Vt(){let e=new k;return{onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}function Ht(e){return(0,t.defineComponent)(()=>()=>(0,t.h)(`h1`,e),{name:e,props:[]})}function Ut(e){let t=new URLSearchParams(e);return{get:(...e)=>t.get(...e),getAll:(...e)=>t.getAll(...e),set:(...e)=>{t.set(...e)},append:(...e)=>{t.append(...e)},delete:(...e)=>{t.delete(...e)},toString:(...e)=>t.toString(...e),forEach:(...e)=>{t.forEach(...e)},entries:(...e)=>t.entries(...e),keys:(...e)=>t.keys(...e),values:(...e)=>t.values(...e),has:(...e)=>t.has(...e),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function Wt(e){let n=(0,t.markRaw)(e.component??Ht(e.type)),r=Gt(e.type,n),{store:i,...a}=Vt(),o={[f]:!0,route:r,hooks:[i]};return{type:e.type,component:n,...a,...o}}function Gt(e,t){let n={id:D(),component:t,meta:{},state:{}};return{id:n.id,matched:n,matches:[n],name:e,query:Ut(``),params:{},state:{},href:`/`,hash:``,title:Promise.resolve(void 0)}}function Kt(e){let n=D(),r=O(e.name),i=I(e.path),a=vt(e.query),o=I(e.hash),s=e.meta??{},c=I(e.host),u=e.context??[],{store:d,redirect:f,...p}=A(),{getTitle:m,setTitle:h}=Bt(e.parent),_=Ft({getRoute:()=>S}),v=(0,t.markRaw)({id:n,meta:{},state:{},...e}),y=Dt({host:c,path:i,query:a,hash:o}),b={[l]:!0,depth:1,hooks:[d],getTitle:m,redirect:f},S={id:n,matched:v,matches:[v],name:r,meta:s,state:{},context:u,setTitle:h,...p,..._,...y,...b};if(g(e)){let t=x(e.parent,S),n=zt(e.parent,{path:i,query:a,hash:o});return{...t,...n}}return S}function qt(){let e=new Map;return t=>{let n=e.get(t);if(!n){let n=Symbol();return e.set(t,n),n}return n}}var Jt=qt();function Yt(e){let n=Jt(e);return({increment:e=!1}={})=>{let r=(0,t.inject)(n,0);return e&&(0,t.provide)(n,r+1),r}}var Xt=(e,t,n)=>{let r=e.matches,i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Zt=(e,t,n)=>{let r=e.matches,i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Qt=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function $t(e){switch(e){case`onBeforeRouteEnter`:case`onAfterRouteEnter`:return Xt;case`onBeforeRouteUpdate`:case`onAfterRouteUpdate`:return Qt;case`onBeforeRouteLeave`:case`onAfterRouteLeave`:return Zt;default:throw Error(`Switch is not exhaustive for lifecycle: ${e}`)}}var en=class extends Error{},z=class extends en{response;constructor(e){super(`Uncaught ContextPushError`),this.response={status:`PUSH`,to:e}}},B=class extends en{response;constructor(e){super(`Uncaught ContextRejectionError`),this.response={status:`REJECT`,type:e}}},tn=class extends en{response;constructor(){super(`Uncaught ContextAbortError`),this.response={status:`ABORT`}}};function nn(e,t){let n=new k;return m(e).forEach((r,i)=>{if(r.redirects.forEach(e=>n.redirects.add(e)),Xt(e,t,i))return r.onBeforeRouteEnter.forEach(e=>n.onBeforeRouteEnter.add(e));if(Qt(e,t,i))return r.onBeforeRouteUpdate.forEach(e=>n.onBeforeRouteUpdate.add(e))}),m(t).forEach((r,i)=>{if(Zt(e,t,i))return r.onBeforeRouteLeave.forEach(e=>n.onBeforeRouteLeave.add(e))}),n}function rn(e,t){let n=new k;return m(e).forEach((r,i)=>{if(Xt(e,t,i))return r.onAfterRouteEnter.forEach(e=>n.onAfterRouteEnter.add(e));if(Qt(e,t,i))return r.onAfterRouteUpdate.forEach(e=>n.onAfterRouteUpdate.add(e))}),m(t).forEach((r,i)=>{if(Zt(e,t,i))return r.onAfterRouteLeave.forEach(e=>n.onAfterRouteLeave.add(e))}),n}function an(e,t,n){let r=new k;return e.matches.forEach((i,a)=>{Xt(e,t,a)&&n.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter.add(e)),Qt(e,t,a)&&n.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Zt(e,t,a)&&n.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave.add(e))}),r}function on(e,t,n){let r=new k;return e.matches.forEach((i,a)=>{Xt(e,t,a)&&n.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter.add(e)),Qt(e,t,a)&&n.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Zt(e,t,a)&&n.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave.add(e))}),r}function sn(e){let t=new k;return m(e).forEach(e=>{e.onRejection.forEach(e=>t.onRejection.add(e))}),t}function cn(){let e=null;function t(t){e=t}function n(t){return e?e.runWithContext(t):t()}return{setVueApp:t,runWithContext:n}}function ln({to:e}){let t=e=>{throw new B(e)},n=(...e)=>{throw new z(e)};return{reject:t,push:n,replace:(e,t,n)=>{throw S(e)?new z([e,{...t??{},replace:!0}]):new z([e,t,{...n??{},replace:!0}])},update:(t,r,i)=>{if(typeof t==`object`){let i={...e.params,...t};return n(e.name,i,r)}let a={...e.params,[t]:r};return n(e.name,a,i)},abort:()=>{throw new tn}}}var un=qt();function dn(){let{setVueApp:e,runWithContext:t}=cn(),{store:n,...r}=A(),i=new k,a=async({to:e,from:r})=>{let{reject:a,push:o,replace:c,update:l,abort:u}=ln({to:e}),d=nn(e,r),f=an(e,r,n),p=[...d.redirects,...f.onBeforeRouteEnter,...d.onBeforeRouteEnter,...f.onBeforeRouteUpdate,...d.onBeforeRouteUpdate,...i.onBeforeRouteUpdate,...f.onBeforeRouteLeave,...d.onBeforeRouteLeave,...i.onBeforeRouteLeave];try{let n=p.map(n=>t(()=>n(e,{from:r,reject:a,push:o,replace:c,update:l,abort:u})));await Promise.all(n)}catch(t){if(t instanceof z||t instanceof B||t instanceof tn)return t.response;try{s(t,{to:e,from:r,source:`hook`})}catch(e){if(e instanceof z||e instanceof B)return e.response;throw e}}return{status:`SUCCESS`}},o=async({to:e,from:r})=>{let{reject:a,push:o,replace:c,update:l}=ln({to:e}),u=rn(e,r),d=on(e,r,n),f=[...i.onAfterRouteLeave,...u.onAfterRouteLeave,...d.onAfterRouteLeave,...i.onAfterRouteUpdate,...u.onAfterRouteUpdate,...d.onAfterRouteUpdate,...i.onAfterRouteEnter,...u.onAfterRouteEnter,...d.onAfterRouteEnter];try{let n=f.map(n=>t(()=>n(e,{from:r,reject:a,push:o,replace:c,update:l})));await Promise.all(n)}catch(t){if(t instanceof z||t instanceof B)return t.response;try{s(t,{to:e,from:r,source:`hook`})}catch(e){if(e instanceof z||e instanceof B)return e.response;throw e}}return{status:`SUCCESS`}},s=(e,{to:t,from:r,source:i})=>{let{reject:a,push:o,replace:s,update:c}=ln({to:t});for(let l of n.onError)try{l(e,{to:t,from:r,source:i,reject:a,push:o,replace:s,update:c});return}catch(t){if(t instanceof en)throw t;if(t===e)continue;throw t}};return{runBeforeRouteHooks:a,runAfterRouteHooks:o,runErrorHooks:s,runRejectionHooks:(e,{to:t,from:r})=>{let i=[...sn(e).onRejection,...n.onRejection];for(let n of i)n(e.type,{to:t,from:r})},addComponentHook:({lifecycle:e,depth:t,hook:n})=>{let r=$t(e),a=i[e],o=(e,i)=>{if(r(e,i.from,t))return n(e,i)};return a.add(o),()=>a.delete(o)},addGlobalRouteHooks:e=>{e.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter(e)),e.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate(e)),e.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave(e)),e.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter(e)),e.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate(e)),e.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave(e)),e.onError.forEach(e=>r.onError(e))},setVueApp:e,...r}}function fn(e){let n=un(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new w;return e}}function pn(e,n){let r=Yt(e),i=fn(e);return e=>{let a=r(),o=i().addComponentHook({lifecycle:n,hook:e,depth:a-1});return(0,t.onUnmounted)(o),o}}function mn(e){return{onBeforeRouteLeave:pn(e,`onBeforeRouteLeave`),onBeforeRouteUpdate:pn(e,`onBeforeRouteUpdate`),onAfterRouteLeave:pn(e,`onAfterRouteLeave`),onAfterRouteUpdate:pn(e,`onAfterRouteUpdate`)}}var hn=qt();function gn(e){let n=hn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new w;return e}}var _n=qt();function vn(e){let n=_n(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new w;return e}}function yn(e){return()=>{let n=(0,t.inject)(e);if(!n)throw new w;return n}}var bn=Symbol(`isRouterRouteSymbol`);function xn(e,t){return typeof t==`object`&&!!t&&bn in t&&e in t}function Sn(e,n,r){function i(e){r(wt(Ct({...L(n.href),query:void 0}),{query:e}))}function a(e,t,i){if(fe(e))return a({[e]:t},i);let o=e,s=t,c={...n.params,...o};return r(n.name,c,s)}let o=(...e)=>{let t=new URLSearchParams(n.query);t.set(...e),i(t)},s=(...e)=>{let t=new URLSearchParams(n.query);t.append(...e),i(t)},c=(...e)=>{let t=new URLSearchParams(n.query);t.delete(...e),i(t)},{id:l,matched:u,matches:d,name:f,hash:p,href:m}=(0,t.toRefs)(n),h=new Proxy({},{get(e,t,r){return Reflect.get(n.params,t,r)},set(e,t,n){return a(t,n),!0},ownKeys(){return Reflect.ownKeys(n.params)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(n.params,t)}}),g=(0,t.computed)({get(){return h},set(e){a(e)}}),_=(0,t.computed)({get(){return new Proxy(n.query,{get(e,t,n){switch(t){case`append`:return s;case`set`:return o;case`delete`:return c;default:return Reflect.get(e,t,n)}}})},set(e){i(e)}}),v=(0,t.computed)({get(){return new Proxy(n.state,{set(e,t,r){return a({},{state:{...n.state,[t]:r}}),!0}})},set(e){a({},{state:e})}});return(0,t.reactive)({...n,id:l,matched:u,matches:d,state:v,query:_,hash:p,params:g,name:f,href:m,update:a,[bn]:!0,[e]:!0})}function Cn(e){return(t,n,{exact:r}={})=>xn(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(e=>e.name).includes(n):!1}function wn(e){let n=yn(e),r=Cn(e);return(e,i)=>{let a=n();function o(){if(e&&!r(a.route,e,i))throw new ee(e,a.route.name)}return(0,t.watch)(a.route,o,{immediate:!0,deep:!0}),a.route}}function Tn(e){let n=wn(e),r=yn(e),i=vn(e),a=Yt(e),o=gn(e);return(0,t.defineComponent)((e,s)=>{let c=n(),l=r(),u=i(),d=a({increment:!0});(0,t.onServerPrefetch)(async()=>{await l.start()});let{getRouteComponents:f}=o(),p=(0,t.computed)(()=>{if(!l.started.value)return null;if(u.value)return u.value.component;let t=c.matches.at(d);return t?f(t)[e.name??`default`]:null});return()=>s.slots.default?s.slots.default({route:c,component:p.value,rejection:u.value}):p.value?(0,t.h)(p.value):null},{name:`RouterView`,props:[`name`]})}var En=qt();function Dn(e){let n=En(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new w;return e}}var On=`lazy`,kn={components:!0,props:!1};function An(e){return[`eager`,`lazy`,`intent`].includes(e)}function jn({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){let i=[Mn(n,r),Mn(t,r),Mn(e,r),kn[r],On].reduce((e,t)=>An(e)?e:e===!0&&An(t)?t:e===!0&&!An(t)?e:e===void 0?t:e,void 0);return An(i)?i:!1}function Mn(e,t){return j(e)?e[t]:e}var Nn=(0,t.defineAsyncComponent)(()=>new Promise(e=>{e({default:{template:`foo`}})}));function Pn(e){return e.name===Nn.name&&`__asyncLoader`in e}var Fn=Symbol(`visibilityObserver`);function In(e){let n=(0,t.inject)(Fn);if(!n)throw new w;return(0,t.watch)(e,(e,t)=>{e&&n.observe(e),t&&n.unobserve(t)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&n.unobserve(e.value)}),{isElementVisible:(0,t.computed)(()=>e.value?n.isElementVisible(e.value):!1)}}function Ln(e,n,r){(0,t.watch)(e,(e,t)=>{e&&e.addEventListener(n,r),t&&t.removeEventListener(n,r)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&e.value.removeEventListener(n,r)})}function Rn(e){let n=Dn(e);return e=>{let r=new Map,i=(0,t.ref)(),{getPrefetchProps:a,setPrefetchProps:o}=n(),{isElementVisible:s}=In(i),c=()=>{o(Array.from(r.values()).reduce((e,t)=>(Object.assign(e,t),e),{}))};(0,t.watch)(()=>(0,t.toValue)(e),({route:e,...t})=>{r.clear(),e&&u(`eager`,e,t)},{immediate:!0}),(0,t.watch)(s,n=>{let{route:r,...i}=(0,t.toValue)(e);!r||!n||u(`lazy`,r,i)},{immediate:!0}),Ln(i,`focusin`,l),Ln(i,`mouseover`,l);function l(){let{route:n,...r}=(0,t.toValue)(e);n&&u(`intent`,n,r)}function u(e,t,n){zn(e,t,n),r.has(e)||r.set(e,a(e,t,n))}return{element:i,commit:c}}}function zn(e,t,n){t.matches.forEach(t=>{jn({...n,routePrefetch:t.prefetch},`components`)===e&&(_(t)&&Pn(t.component)&&t.component.__asyncLoader(),y(t)&&Object.values(t.components).forEach(e=>{Pn(e)&&e.__asyncLoader()}))})}function Bn(e){let n=yn(e),r=Rn(e),i=Cn(e);return(e,a={},o={})=>{let s=n(),c=(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof n==`string`?S(n)?s.find(n,(0,t.toValue)(o)):s.resolve(n,(0,t.toValue)(a),(0,t.toValue)(o)):n}),l=(0,t.computed)(()=>{if(c.value)return c.value.href;let n=(0,t.toValue)(e);if(S(n))return n;console.error(Error(`Failed to resolve route in RouterLink.`))}),u=(0,t.computed)(()=>i(s.route)&&s.route.matches.some(e=>e.id===c.value?.id)),d=(0,t.computed)(()=>s.route.id===c.value?.id),f=(0,t.computed)(()=>i(s.route)&&de(c.value)&&s.route.href.startsWith(c.value.href)),p=(0,t.computed)(()=>s.route.href===c.value?.href),m=(0,t.computed)(()=>!!l.value&&s.isExternal(l.value)),h=(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof n!=`string`||S(n)?(0,t.toValue)(a):(0,t.toValue)(o)}),{element:g,commit:_}=r(()=>({route:c.value,routerPrefetch:s.prefetch,linkPrefetch:h.value.prefetch})),v=n=>{_();let r={replace:n?.replace??h.value.replace,query:xt(n?.query,h.value.query),hash:n?.hash??h.value.hash,state:{...h.value.state,...n?.state}},i=(0,t.toValue)(e);return S(i)||typeof i==`object`?s.push(i,r):s.push(i,(0,t.toValue)(a),r)};return{element:g,route:c,href:l,isMatch:u,isExactMatch:d,isActive:f,isExactActive:p,isExternal:m,push:v,replace:e=>v({...e,replace:!0})}}}function Vn(e){let n=yn(e),r=Bn(e);return(0,t.defineComponent)((e,i)=>{let a=n(),o=(0,t.computed)(()=>_(e.to)),s=(0,t.computed)(()=>v(e.to)),c=(0,t.computed)(()=>!e.target||e.target===`_self`),{element:l,isMatch:u,isExactMatch:d,isActive:f,isExactActive:p,isExternal:m,push:h}=r(()=>typeof e.to==`function`?e.to(a.resolve):e.to,(0,t.computed)(()=>{let{to:t,...n}=e;return n})),g=(0,t.computed)(()=>({"router-link--match":u.value,"router-link--exact-match":d.value,"router-link--active":f.value,"router-link--exact-active":p.value}));function _(e){return typeof e==`function`?_(e(a.resolve)):S(e)?a.find(e):e}function v(e){return typeof e==`function`?v(e(a.resolve)):S(e)?e:e?.href}function y(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!c.value}function b(e){y(e)||(e.preventDefault(),h())}return()=>(0,t.h)(`a`,{href:s.value,target:e.target,class:[`router-link`,g.value],ref:l,onClick:b},i.slots.default?.({route:o.value,isMatch:u.value,isExactMatch:d.value,isActive:f.value,isExactActive:p.value,isExternal:m.value}))},{name:`RouterLink`,props:[`to`,`prefetch`,`query`,`hash`,`replace`,`state`,`target`]})}function Hn(e){let n=wn(e);return(e,r=String)=>{let i=n();return{value:(0,t.computed)({get(){let n=i.query.get((0,t.toValue)(e));return n===null?le(r)?r.defaultValue:null:Ke(n,{param:r})},set(n){i.query.set((0,t.toValue)(e),F(n,{param:r}))}}),values:(0,t.computed)({get(){let n=i.query.getAll((0,t.toValue)(e));return n.length===0&&le(r)?[r.defaultValue]:n.map(e=>Ke(e,{param:r})).filter(e=>e!==null)},set(n){let a=new URLSearchParams(i.query);a.delete((0,t.toValue)(e)),n.forEach(n=>{a.append((0,t.toValue)(e),F(n,{param:r}))}),i.query=a}}),remove:()=>{i.query.delete((0,t.toValue)(e))}}}}function Un(e){let t=typeof e==`object`?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a}=mn(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a,isRoute:Cn(t),RouterView:Tn(t),RouterLink:Vn(t),useRoute:wn(t),useRouter:yn(t),useQueryValue:Hn(t),useLink:Bn(t),useRejection:vn(t)}}var Wn=Symbol(`IS_ROUTER_PLUGIN_SYMBOL`);function Gn(e){return typeof e==`object`&&!!e&&Wn in e}function Kn(e){let{store:t,...n}=A(),r={[Wn]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function qn(e){return{get:(t,{invalid:n})=>{for(let n of e){let e=Ke(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(let n of e){let e=qe(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}var Jn={separator:`,`};function Yn(e,t={}){let{separator:n}={...Jn,...t},r=qn(e);return{get:(e,t)=>e.split(n).map(e=>r.get(e,t)),set:(e,t)=>{if(!Array.isArray(e))throw t.invalid(`Expected an array`);return e.map(e=>r.set(e,t)).join(n)}}}var Xn={separator:`,`};function Zn(e,t={}){let{separator:n}={...Xn,...t};return{get:t=>{let r=t.split(n);return e.map((e,t)=>Ge(r.at(t),{param:e}))},set:(t,{invalid:r})=>{if(!Array.isArray(t))throw r(`Expected a tuple`);if(t.length!==e.length)throw r(`Expected tuple with ${e.length} values but received ${t.length} values`);return e.map((e,n)=>F(t.at(n),{param:e})).join(n)}}}function Qn(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(e=>e!==t)}},call(t){e.forEach(e=>e(t))}}}function $n(){return Math.random().toString(36).slice(2,10)}function er(e,t,n){return Math.min(Math.max(e,t),n)}function tr(e){e.preventDefault(),e.returnValue=``}function V({pathname:e=`/`,search:t=``,hash:n=``}){let r=e;return t&&t!==`?`&&(r+=t.startsWith(`?`)?t:`?`+t),n&&n!==`#`&&(r+=n.startsWith(`#`)?n:`#`+n),r}function nr(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function rr(e){return Object.freeze(e)}var ir=`beforeunload`,ar=`popstate`,or=`hashchange`;function sr(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e,search:r,hash:i}=t.location,a=n.state??{};return[a.idx,rr({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=s??0-e;n&&(i={action:`POP`,location:t,retry(){v(n*-1)}},v(n))}}else h(`POP`)}}t.addEventListener(ar,a);let o=`POP`,[s,c]=r(),l=Qn(),u=Qn();s??(s=0,n.replaceState({...n.state,idx:s},``,d(c)));function d(e){return typeof e==`string`?e:V(e)}function f(e,t=null){return rr({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?nr(e):e,state:t,key:$n()})}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function m(e,t,n){return u.length?(u.call({action:e,location:t,retry:n}),!1):!0}function h(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function g(e,r){let i=`PUSH`,a=f(e,r);function o(){g(e,r)}if(m(i,a,o)){let[e,r]=p(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}h(i)}}function _(e,t){let r=`REPLACE`,i=f(e,t);function a(){_(e,t)}if(m(r,i,a)){let[e,t]=p(i,s??0);n.replaceState(e,``,t),h(r)}}function v(e){n.go(e)}return{get action(){return o},get location(){return c},createHref:d,push:g,replace:_,go:v,back(){v(-1)},forward(){v(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(ir,tr),()=>{n(),u.length||t.removeEventListener(ir,tr)}}}}function cr(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e=`/`,search:r=``,hash:i=``}=nr(t.location.hash.slice(1)),a=n.state??{};return[a.idx,rr({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=(s??0)-e;n&&(i={action:`POP`,location:t,retry(){y(n*-1)}},y(n))}}else g(`POP`)}}t.addEventListener(ar,a),t.addEventListener(or,()=>{let[,e]=r();V(e)!==V(c)&&a()});let o=`POP`,[s,c]=r(),l=Qn(),u=Qn();s??(s=0,n.replaceState({...n.state,idx:s},``));function d(){let e=document.querySelector(`base`),n=``;if(e?.getAttribute(`href`)){let e=t.location.href,r=e.indexOf(`#`);n=r===-1?e:e.slice(0,r)}return n}function f(e){return d()+`#`+(typeof e==`string`?e:V(e))}function p(e,t=null){return rr({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?nr(e):e,state:t,key:$n()})}function m(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function h(e,t,n){return u.length?(u.call({action:e,location:t,retry:n}),!1):!0}function g(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function _(e,r){let i=`PUSH`,a=p(e,r);function o(){_(e,r)}if(h(i,a,o)){let[e,r]=m(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}g(i)}}function v(e,t){let r=`REPLACE`,i=p(e,t);function a(){v(e,t)}if(h(r,i,a)){let[e,t]=m(i,s??0);n.replaceState(e,``,t),g(r)}}function y(e){n.go(e)}return{get action(){return o},get location(){return c},createHref:f,push:_,replace:v,go:y,back(){y(-1)},forward(){y(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(ir,tr),()=>{n(),u.length||t.removeEventListener(ir,tr)}}}}function lr(e={}){let{initialEntries:t=[`/`],initialIndex:n}=e,r=t.map(e=>rr({pathname:`/`,search:``,hash:``,state:null,key:$n(),...typeof e==`string`?nr(e):e})),i=er(n??r.length-1,0,r.length-1),a=`POP`,o=r[i],s=Qn(),c=Qn();function l(e){return typeof e==`string`?e:V(e)}function u(e,t=null){return rr({pathname:o.pathname,search:``,hash:``,...typeof e==`string`?nr(e):e,state:t,key:$n()})}function d(e,t,n){return c.length?(c.call({action:e,location:t,retry:n}),!1):!0}function f(e,t){a=e,o=t,s.call({action:a,location:o})}function p(e,t){let n=`PUSH`,a=u(e,t);function o(){p(e,t)}d(n,a,o)&&(i+=1,r.splice(i,r.length,a),f(n,a))}function m(e,t){let n=`REPLACE`,a=u(e,t);function o(){m(e,t)}d(n,a,o)&&(r[i]=a,f(n,a))}function h(e){let t=er(i+e,0,r.length-1),n=r[t];function a(){h(e)}d(`POP`,n,a)&&(i=t,f(`POP`,n))}return{get index(){return i},get action(){return a},get location(){return o},createHref:l,push:p,replace:m,go:h,back(){h(-1)},forward(){h(1)},listen(e){return s.push(e)},block(e){return c.push(e)}}}function ur(e,n,r){let i=(0,t.reactive)({...n}),a=e=>{Object.assign(i,{...e})},o=i;return{currentRoute:o,routerRoute:Sn(e,o,r),updateRoute:a}}function dr(e){return t=>{let{host:n}=L(t);return!(n===void 0||n===e)}}function fr(e){try{let t=e();return De(t)?t.catch(e=>e):t}catch(e){return e}}function pr(){let{setVueApp:e,runWithContext:n}=cn(),r=(0,t.reactive)(new Map),i=(e,t,r)=>{let{push:i,replace:a,reject:o,update:s}=ln({to:t});return t.matches.filter(t=>jn({...r,routePrefetch:t.prefetch},`props`)===e).flatMap(e=>d(e)).reduce((e,{id:r,name:l,props:d})=>{if(!d)return e;let f=u(r,l,t);return e[f]=n(()=>fr(()=>d(t,{push:i,replace:a,reject:o,update:s,parent:c(t,!0)}))),e},{})},a=e=>{Object.entries(e).forEach(([e,t])=>{r.set(e,t)})},o=async e=>{let{push:t,replace:i,reject:a,update:o}=ln({to:e}),s=e.matches.flatMap(d),l=[],p=[];for(let{id:d,name:f,props:m}of s){if(!m)continue;let s=u(d,f,e);if(l.push(s),!r.has(s)){let l=n(()=>fr(()=>m(e,{push:t,replace:i,reject:a,update:o,parent:c(e)})));r.set(s,l)}p.push((async()=>{let e=await r.get(s);if(e instanceof Error)throw e})())}f(l);try{return await Promise.all(p),{status:`SUCCESS`}}catch(e){if(e instanceof z||e instanceof B)return e.response;throw e}},s=(e,t,n)=>{let i=u(e,t,n);return r.get(i)};function c(e,t=!1){let n=e.matches.at(-2);if(n)return v(n)?{name:n.name??``,get props(){return l(n,`default`,e,t)}}:b(n)?{name:n.name??``,props:new Proxy({},{get(r,i){return typeof i==`string`?l(n,i,e,t):Reflect.get(r,i)}})}:{name:n.name??``,props:void 0}}function l(e,t,n,r=!1){let i=s(e.id,t,n);if(r&&!i){let r=e.name??`unknown`,i=n.name||`unknown`;console.warn(`
|
|
2
|
+
Unable to access parent props "${t}" from route "${r}" while prefetching props for route "${i}".
|
|
3
3
|
This may occur if the parent route's props were not also prefetched.
|
|
4
|
-
`)}return _}function f(E,l,p){return[E,l,p.id,JSON.stringify(p.params)].join("-")}function m(E){return Bt(E)?[{id:E.id,name:"default",props:E.props}]:Ht(E)?Object.entries(E.props).map(([l,p])=>({id:E.id,name:l,props:p})):[]}function c(E){for(const l of n.keys())E.includes(l)||n.delete(l)}return{getPrefetchProps:r,setPrefetchProps:o,getProps:a,setProps:s,setVueApp:e}}function Ke(){return typeof window<"u"&&typeof window.document<"u"}function ei({mode:e,listener:t}){const n=ti(e),r=(u,f)=>{if(f?.replace){n.replace(u,f.state);return}n.push(u,f?.state)},o=()=>{const u=_e(n.location);n.replace(u)};let s;return{...n,update:r,refresh:o,startListening:()=>{s?.(),s=n.listen(t)},stopListening:()=>{s?.()}}}function ti(e="auto"){switch(e){case"auto":return Ke()?Ur():vr();case"browser":return Ur();case"memory":return vr();case"hash":return Ks();default:const t=e;throw new Error(`Switch is not exhaustive for mode: ${t}`)}}function Dr(e){const t=new URLSearchParams(e);return{get:(...n)=>t.get(...n),getAll:(...n)=>t.getAll(...n),set:(...n)=>{t.set(...n)},append:(...n)=>{t.append(...n)},delete:(...n)=>{t.delete(...n)},toString:(...n)=>t.toString(...n),forEach:(...n)=>{t.forEach(...n)},entries:(...n)=>t.entries(...n),keys:(...n)=>t.keys(...n),values:(...n)=>t.values(...n),has:(...n)=>t.has(...n),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function ni(e){const t=s=>{const a=e.find(i=>i.type===s);return R.markRaw(a?.component??lr(s))},n=s=>{const a=R.markRaw(t(s)),i={id:Gt(),component:a,meta:{},state:{}};return{id:i.id,matched:i,matches:[i],hooks:[],name:s,query:Dr(""),params:{},state:{},href:"/",hash:"",getTitle:async()=>{}}},r=s=>{if(!s){o.value=null;return}const a=t(s);o.value={type:s,component:a}},o=R.ref(null);return{setRejection:r,rejection:o,getRejectionRoute:n}}class ri extends Error{constructor(){super("initialUrl must be set if window.location is unavailable")}}function oi(e){if(e)return e;if(Ke())return window.location.toString();throw new ri}function Vr(e){return!!e&&typeof e=="object"}const wt={isOptional:!0,isGreedy:!1};function si(e,t,n){if(Vr(e)&&t in e){const r=e[t];return typeof r=="string"?he(r,{param:n,...wt}):r}return he(void 0,{param:n,...wt})}function ii(e,t){const n={};for(const[r,o]of Object.entries(e)){const s=si(t,r,o);n[r]=s}return n}function ai(e,t,n){if(Vr(e)&&t in e){const r=e[t];return ie(r,{param:n,...wt})}return ie(void 0,{param:n,...wt})}const xr=(e,t)=>{const n={};for(const[r,o]of Object.entries(e)){const s=ai(t,r,o);n[r]=s}return n};function ci(){const e=R.reactive(new Map),t=Ke()?a():null,n=i=>{e.set(i,!1),t?.observe(i)},r=i=>{e.delete(i),t?.unobserve(i)},o=()=>{t?.disconnect()},s=i=>e.get(i)??!1;function a(){return new IntersectionObserver(i=>{i.forEach(u=>{e.set(u.target,u.isIntersecting)})})}return{observe:n,unobserve:r,disconnect:o,isElementVisible:s}}class ui extends Error{constructor(t){super(`Route not found: "${t}"`)}}function Mr(e,t={},n={}){const r=e.stringify(t),o=je(r,{query:new URLSearchParams(n.query),hash:n.hash}),{query:s,hash:a}=X(o),i=async f=>{if(an(e))return e.getTitle(f)};return{...e,query:Dr(s),state:ii(e.state,n.state),hash:a,params:t,href:o,getTitle:i}}class fi extends Error{constructor(t){super(`Invalid Name "${t}": Router does not support multiple routes with the same name. All name names must be unique.`)}}function Br(e){return"name"in e&&te(e.name)}function li(e,t){return te(t)?{...e,...sn(Ie({path:t}),e)}:e}function di(e,t=[],n){const r=new Map,o=[...e,...t.map(i=>i.routes)];function s(i){if(!Br(i))return;const u=r.get(i.name);if(u&&u.id!==i.id)throw new fi(i.name);if(!(u&&u.id===i.id)){r.set(i.name,li(i,n));for(const f of i.context)pi(f)&&s(f)}}function a(i){for(const u of i)s(u)}for(const i of o){if(hi(i)){a(i);continue}s(i)}return{routes:Array.from(r.values()).sort(Ei),getRouteByName:i=>r.get(i)}}function pi(e){return"id"in e}function hi(e){return Array.isArray(e)}function Ei(e,t){return t.depth-e.depth}function gi(e=[]){const t=new pe;return e.forEach(n=>{n.hooks.onBeforeRouteEnter.forEach(r=>t.onBeforeRouteEnter.add(r)),n.hooks.onBeforeRouteUpdate.forEach(r=>t.onBeforeRouteUpdate.add(r)),n.hooks.onBeforeRouteLeave.forEach(r=>t.onBeforeRouteLeave.add(r)),n.hooks.onAfterRouteEnter.forEach(r=>t.onAfterRouteEnter.add(r)),n.hooks.onAfterRouteUpdate.forEach(r=>t.onAfterRouteUpdate.add(r)),n.hooks.onAfterRouteLeave.forEach(r=>t.onAfterRouteLeave.add(r))}),t}function _i(e,{match:t,name:n,component:r}){const o=Sr(e),s=yt(e);return R.defineComponent({name:"PropsWrapper",expose:[],setup(){const a=R.getCurrentInstance(),i=o(),u=s();return()=>{const f=i.getProps(t.id,n,u);return f instanceof Error?"":Kt(f)?a?.suspense?R.h(yi,{component:r,props:f}):R.h(mi,{component:r,props:f}):R.h(r,f)}}})}const mi=R.defineComponent(e=>{const t=R.ref();return R.watch(()=>e.props,async n=>{t.value=await n},{immediate:!0,deep:!0}),()=>t.value instanceof Error?"":t.value?R.h(e.component,t.value):""},{props:["component","props"]}),yi=R.defineComponent(async e=>{const t=R.ref();return t.value=await e.props,R.watch(()=>t.value,async n=>{t.value=await n},{deep:!0}),()=>t.value instanceof Error?"":t.value?R.h(e.component,t.value):""},{props:["component","props"]});function Ri(e){const t=new Map;return{getRouteComponents:r=>{const o=t.get(r.id);if(o)return o;const s=Si(e,r);return t.set(r.id,s),s}}}function Si(e,t){const n=un(e);return $t(t)?$r(e,t,t.components):Mt(t)?$r(e,t,{default:t.component}):{default:n}}function $r(e,t,n){return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,_i(e,{match:t,name:r,component:o})]))}const Hr=Symbol();var Ti=Object.create,jr=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,wi=Object.getOwnPropertyNames,Pi=Object.getPrototypeOf,Ni=Object.prototype.hasOwnProperty,Ii=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ai=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=wi(t),s=0,a=o.length,i;s<a;s++)i=o[s],!Ni.call(e,i)&&i!==n&&jr(e,i,{get:(u=>t[u]).bind(null,i),enumerable:!(r=Oi(t,i))||r.enumerable});return e},bi=(e,t,n)=>(n=e!=null?Ti(Pi(e)):{},Ai(jr(n,"default",{value:e,enumerable:!0}),e));const Zr=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,Zr&&(O.self,O.top),typeof navigator<"u"&&navigator.userAgent?.toLowerCase().includes("electron");var Ci=Ii(((e,t)=>{t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const a=new Map;if(a.set(Date,c=>new Date(c)),a.set(Map,(c,E)=>new Map(u(Array.from(c),E))),a.set(Set,(c,E)=>new Set(u(Array.from(c),E))),s.constructorHandlers)for(const c of s.constructorHandlers)a.set(c[0],c[1]);let i=null;return s.proto?m:f;function u(c,E){const l=Object.keys(c),p=new Array(l.length);for(let S=0;S<l.length;S++){const _=l[S],h=c[_];typeof h!="object"||h===null?p[_]=h:h.constructor!==Object&&(i=a.get(h.constructor))?p[_]=i(h,E):ArrayBuffer.isView(h)?p[_]=n(h):p[_]=E(h)}return p}function f(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,f);if(c.constructor!==Object&&(i=a.get(c.constructor)))return i(c,f);const E={};for(const l in c){if(Object.hasOwnProperty.call(c,l)===!1)continue;const p=c[l];typeof p!="object"||p===null?E[l]=p:p.constructor!==Object&&(i=a.get(p.constructor))?E[l]=i(p,f):ArrayBuffer.isView(p)?E[l]=n(p):E[l]=f(p)}return E}function m(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,m);if(c.constructor!==Object&&(i=a.get(c.constructor)))return i(c,m);const E={};for(const l in c){const p=c[l];typeof p!="object"||p===null?E[l]=p:p.constructor!==Object&&(i=a.get(p.constructor))?E[l]=i(p,m):ArrayBuffer.isView(p)?E[l]=n(p):E[l]=m(p)}return E}}function o(s){const a=[],i=[],u=new Map;if(u.set(Date,l=>new Date(l)),u.set(Map,(l,p)=>new Map(m(Array.from(l),p))),u.set(Set,(l,p)=>new Set(m(Array.from(l),p))),s.constructorHandlers)for(const l of s.constructorHandlers)u.set(l[0],l[1]);let f=null;return s.proto?E:c;function m(l,p){const S=Object.keys(l),_=new Array(S.length);for(let h=0;h<S.length;h++){const T=S[h],g=l[T];if(typeof g!="object"||g===null)_[T]=g;else if(g.constructor!==Object&&(f=u.get(g.constructor)))_[T]=f(g,p);else if(ArrayBuffer.isView(g))_[T]=n(g);else{const d=a.indexOf(g);d!==-1?_[T]=i[d]:_[T]=p(g)}}return _}function c(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return m(l,c);if(l.constructor!==Object&&(f=u.get(l.constructor)))return f(l,c);const p={};a.push(l),i.push(p);for(const S in l){if(Object.hasOwnProperty.call(l,S)===!1)continue;const _=l[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,c);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const h=a.indexOf(_);h!==-1?p[S]=i[h]:p[S]=c(_)}}return a.pop(),i.pop(),p}function E(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return m(l,E);if(l.constructor!==Object&&(f=u.get(l.constructor)))return f(l,E);const p={};a.push(l),i.push(p);for(const S in l){const _=l[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,E);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const h=a.indexOf(_);h!==-1?p[S]=i[h]:p[S]=E(_)}}return a.pop(),i.pop(),p}}})),ki=bi(Ci());const Ui=/(?:^|[-_/])(\w)/g;function vi(e,t){return t?t.toUpperCase():""}function Li(e){return e&&`${e}`.replace(Ui,vi)}function Di(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}const Gr=(0,ki.default)({circles:!0}),Vi={trailing:!0};function Ce(e,t=25,n={}){if(n={...Vi,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],a,i;const u=(c,E)=>(a=xi(e,c,E),a.finally(()=>{if(a=null,n.trailing&&i&&!o){const l=u(c,i);return i=null,l}}),a),f=function(...c){return n.trailing&&(i=c),a||new Promise(E=>{const l=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const p=n.leading?r:u(this,c);i=null;for(const S of s)S(p);s=[]},t),l?(r=u(this,c),E(r)):s.push(E)})},m=c=>{c&&(clearTimeout(c),o=null)};return f.isPending=()=>!!o,f.cancel=()=>{m(o),s=[],i=null},f.flush=()=>{if(m(o),!i||a)return;const c=i;return i=null,u(this,c)},f}async function xi(e,t,n){return await e.apply(t,n)}function ln(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ln(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Mi={run:e=>e()},Bi=()=>Mi,qr=typeof console.createTask<"u"?console.createTask:Bi;function $i(e,t){const n=t.shift(),r=qr(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Hi(e,t){const n=t.shift(),r=qr(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function dn(e,t){for(const n of[...e])n(t)}class ji{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let a=s.message;a||(a=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ln(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ln(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith($i,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Hi,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&dn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&dn(this._after,o)}):(this._after&&o&&dn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Fr(){return new ji}var Zi=Object.create,zr=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor,qi=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,zi=Object.prototype.hasOwnProperty,Wr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=qi(t),s=0,a=o.length,i;s<a;s++)i=o[s],!zi.call(e,i)&&i!==n&&zr(e,i,{get:(u=>t[u]).bind(null,i),enumerable:!(r=Gi(t,i))||r.enumerable});return e},Ji=(e,t,n)=>(n=e!=null?Zi(Fi(e)):{},Wi(zr(n,"default",{value:e,enumerable:!0}),e));function Ki(e){if(typeof e=="function")return e.displayName||e.name||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||"";const t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t==="index"&&e.__file?.endsWith("index.vue")?"":t}function Yi(e){const t=e.__file;if(t)return Li(Di(t,".vue"))}function Jr(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function pn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Kr(e){const t=e.subTree?.type,n=pn(e);return n?n?.types?.Fragment===t:!1}function Pt(e){const t=Ki(e?.type||{});if(t)return t;if(e?.root===e)return"Root";for(const r in e.parent?.type?.components)if(e.parent.type.components[r]===e?.type)return Jr(e,r);for(const r in e.appContext?.components)if(e.appContext.components[r]===e?.type)return Jr(e,r);const n=Yi(e?.type||{});return n||"Anonymous Component"}function Qi(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?"root":e.uid}`}function hn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Xi(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}let Nt;function ea(e){return Nt||(Nt=document.createRange()),Nt.selectNode(e),Nt.getBoundingClientRect()}function ta(e){const t=Xi();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=me(o.component);else if(o.el){const a=o.el;a.nodeType===1||a.getBoundingClientRect?s=a.getBoundingClientRect():a.nodeType===3&&a.data.trim()&&(s=ea(a))}s&&na(t,s)}return t}function na(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}const Yr={top:0,left:0,right:0,bottom:0,width:0,height:0};function me(e){const t=e.subTree.el;return typeof window>"u"?Yr:Kr(e)?ta(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?me(e.subTree.component):Yr}function En(e){return Kr(e)?ra(e.subTree):e.subTree?[e.subTree.el]:[]}function ra(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...En(n.component)):n?.el&&t.push(n.el)}),t}const Qr="__vue-devtools-component-inspector__",Xr="__vue-devtools-component-inspector__card__",eo="__vue-devtools-component-inspector__name__",to="__vue-devtools-component-inspector__indicator__",no={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},oa={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},sa={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ke(){return document.getElementById(Qr)}function ia(){return document.getElementById(Xr)}function aa(){return document.getElementById(to)}function ca(){return document.getElementById(eo)}function gn(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function _n(e){const t=document.createElement("div");t.id=e.elementId??Qr,Object.assign(t.style,{...no,...gn(e.bounds),...e.style});const n=document.createElement("span");n.id=Xr,Object.assign(n.style,{...oa,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=eo,r.innerHTML=`<${e.name}> `;const o=document.createElement("i");return o.id=to,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,sa),n.appendChild(r),n.appendChild(o),t.appendChild(n),document.body.appendChild(t),t}function mn(e){const t=ke(),n=ia(),r=ca(),o=aa();t&&(Object.assign(t.style,{...no,...gn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`<${e.name}> `,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function ua(e){const t=me(e);if(!t.width&&!t.height)return;const n=Pt(e);ke()?mn({bounds:t,name:n}):_n({bounds:t,name:n})}function ro(){const e=ke();e&&(e.style.display="none")}let yn=null;function Rn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(yn=n,n.vnode.el)){const r=me(n),o=Pt(n);ke()?mn({bounds:r,name:o}):_n({bounds:r,name:o})}}}function fa(e,t){e.preventDefault(),e.stopPropagation(),yn&&t(Qi(yn))}let It=null;function la(){ro(),window.removeEventListener("mouseover",Rn),window.removeEventListener("click",It,!0),It=null}function da(){return window.addEventListener("mouseover",Rn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),fa(n,r=>{window.removeEventListener("click",t,!0),It=null,window.removeEventListener("mouseover",Rn);const o=ke();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}It=t,window.addEventListener("click",t,!0)})}function pa(e){const t=hn(H.value,e.id);if(t){const[n]=En(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=me(t),o=document.createElement("div"),s={...gn(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=me(t);if(r.width||r.height){const o=Pt(t),s=ke();s?mn({...e,name:o,bounds:r}):_n({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}O.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function ha(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Ea(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ga(){return new Promise(e=>{function t(){Ea(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():ha(()=>{t()})})}let At=(function(e){return e.SKIP="__v_skip",e.IS_REACTIVE="__v_isReactive",e.IS_READONLY="__v_isReadonly",e.IS_SHALLOW="__v_isShallow",e.RAW="__v_raw",e})({});function _a(e){return!!(e&&e[At.IS_READONLY])}function oo(e){return _a(e)?oo(e[At.RAW]):!!(e&&e[At.IS_REACTIVE])}function Sn(e){return!!(e&&e.__v_isRef===!0)}function Ye(e){const t=e&&e[At.RAW];return t?Ye(t):e}var ma=class{constructor(){this.refEditor=new ya}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const i=o.shift();e instanceof Map?e=e.get(i):e instanceof Set?e=Array.from(e.values())[i]:e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],a=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(a)?this.refEditor.set(a,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Ye(t)instanceof Map?t.delete(n):Ye(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Ye(t)instanceof Map?t.set(e.newKey||n,r):Ye(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},ya=class{set(e,t){if(Sn(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Sn(e)?e.value:e}isRef(e){return Sn(e)||oo(e)}};const Ra="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Sa(){if(typeof window>"u"||!Zr||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=typeof localStorage.getItem<"u"?localStorage.getItem(Ra):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];const Ta=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Oa(e,t){D.timelineLayersState[t.id]=!1,Ta.push({...e,descriptorId:t.id,appRecord:pn(t.app)})}O.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];const Tn=new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),so=Ce(()=>{ve.hooks.callHook(ye.SEND_INSPECTOR_TO_CLIENT,io())});function wa(e,t){Tn.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??"Search tree...",stateFilterPlaceholder:e.stateFilterPlaceholder??"Search state...",treeFilter:"",selectedNodeId:"",appRecord:pn(t.app)}),so()}function io(){return Tn.filter(e=>e.descriptor.app===H.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{const t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${n?.icon?.replace(/_/g,"-")}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function bt(e,t){return Tn.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}let B=(function(e){return e.VISIT_COMPONENT_TREE="visitComponentTree",e.INSPECT_COMPONENT="inspectComponent",e.EDIT_COMPONENT_STATE="editComponentState",e.GET_INSPECTOR_TREE="getInspectorTree",e.GET_INSPECTOR_STATE="getInspectorState",e.EDIT_INSPECTOR_STATE="editInspectorState",e.INSPECT_TIMELINE_EVENT="inspectTimelineEvent",e.TIMELINE_CLEARED="timelineCleared",e.SET_PLUGIN_SETTINGS="setPluginSettings",e})({}),L=(function(e){return e.ADD_INSPECTOR="addInspector",e.SEND_INSPECTOR_TREE="sendInspectorTree",e.SEND_INSPECTOR_STATE="sendInspectorState",e.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",e.TIMELINE_LAYER_ADDED="timelineLayerAdded",e.TIMELINE_EVENT_ADDED="timelineEventAdded",e.GET_COMPONENT_INSTANCES="getComponentInstances",e.GET_COMPONENT_BOUNDS="getComponentBounds",e.GET_COMPONENT_NAME="getComponentName",e.COMPONENT_HIGHLIGHT="componentHighlight",e.COMPONENT_UNHIGHLIGHT="componentUnhighlight",e})({}),ye=(function(e){return e.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",e.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",e.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",e.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",e.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",e.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",e.ROUTER_INFO_UPDATED="routerInfoUpdated",e})({});function Pa(){const e=Fr();e.hook(L.ADD_INSPECTOR,({inspector:r,plugin:o})=>{wa(r,o.descriptor)});const t=Ce(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||D.highPerfModeEnabled)return;const s=bt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(i=>{e.callHookWith(async u=>{await Promise.all(u.map(f=>f(a))),i()},B.GET_INSPECTOR_TREE)}),e.callHookWith(async i=>{await Promise.all(i.map(u=>u({inspectorId:r,rootNodes:a.rootNodes})))},ye.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(L.SEND_INSPECTOR_TREE,t);const n=Ce(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||D.highPerfModeEnabled)return;const s=bt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:s?.selectedNodeId||"",state:null},i={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(u=>{e.callHookWith(async f=>{await Promise.all(f.map(m=>m(a,i))),u()},B.GET_INSPECTOR_STATE)}),e.callHookWith(async u=>{await Promise.all(u.map(f=>f({inspectorId:r,nodeId:a.nodeId,state:a.state})))},ye.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(L.SEND_INSPECTOR_STATE,n),e.hook(L.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:r,nodeId:o,plugin:s})=>{const a=bt(r,s.descriptor.app);a&&(a.selectedNodeId=o)}),e.hook(L.TIMELINE_LAYER_ADDED,({options:r,plugin:o})=>{Oa(r,o.descriptor)}),e.hook(L.TIMELINE_EVENT_ADDED,({options:r,plugin:o})=>{D.highPerfModeEnabled||!D.timelineLayersState?.[o.descriptor.id]&&!["performance","component-event","keyboard","mouse"].includes(r.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(a=>a(r)))},ye.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(L.GET_COMPONENT_INSTANCES,async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===s).map(([,a])=>a)}),e.hook(L.GET_COMPONENT_BOUNDS,async({instance:r})=>me(r)),e.hook(L.GET_COMPONENT_NAME,({instance:r})=>Pt(r)),e.hook(L.COMPONENT_HIGHLIGHT,({uid:r})=>{const o=H.value.instanceMap.get(r);o&&ua(o)}),e.hook(L.COMPONENT_UNHIGHLIGHT,()=>{ro()}),e}O.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??="",O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];const Ue="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Na(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Sa()}}O[Ue]??=Na();const Ia=Ce(e=>{ve.hooks.callHook(ye.DEVTOOLS_STATE_UPDATED,{state:e})});Ce((e,t)=>{ve.hooks.callHook(ye.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});const Ct=new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_APP_RECORDS__:O.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),H=new Proxy(O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ao(){Ia({...O[Ue],appRecords:Ct.value,activeAppRecordId:H.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Aa(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ao()}function ba(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ao()}const D=new Proxy(O[Ue],{get(e,t){return t==="appRecords"?Ct:t==="activeAppRecordId"?H.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[Ue][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[Ue]},e[t]=n,O[Ue][t]=n,!0}});function Ca(e={}){const{file:t,host:n,baseUrl:r=window.location.origin,line:o=0,column:s=0}=e;if(t){if(n==="chrome-extension"){const a=t.replace(/\\/g,"\\\\"),i=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??"/";fetch(`${i}__open-in-editor?file=${encodeURI(t)}`).then(u=>{if(!u.ok){const f=`Opening component ${a} failed`;console.log(`%c${f}`,"color:red")}})}else if(D.vitePluginDetected){const a=O.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;O.__VUE_INSPECTOR__.openInEditor(a,t,o,s)}}}O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];const On=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function wn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Pn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ka(e){return(On.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function co(e,t){const n=Pn(e);if(n){const r=localStorage.getItem(n);if(r)return JSON.parse(r)}return wn(e?(On.find(r=>r[0].id===e)?.[0]??null)?.settings??{}:t)}function Ua(e,t){const n=Pn(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(wn(t)))}function va(e,t,n){const r=Pn(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),a={...s,[t]:n};localStorage.setItem(r,JSON.stringify(a)),ve.hooks.callHookWith(i=>{i.forEach(u=>u({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:a}))},B.SET_PLUGIN_SETTINGS)}let q=(function(e){return e.APP_INIT="app:init",e.APP_UNMOUNT="app:unmount",e.COMPONENT_UPDATED="component:updated",e.COMPONENT_ADDED="component:added",e.COMPONENT_REMOVED="component:removed",e.COMPONENT_EMIT="component:emit",e.PERFORMANCE_START="perf:start",e.PERFORMANCE_END="perf:end",e.ADD_ROUTE="router:add-route",e.REMOVE_ROUTE="router:remove-route",e.RENDER_TRACKED="render:tracked",e.RENDER_TRIGGERED="render:triggered",e.APP_CONNECTED="app:connected",e.SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup",e})({});const F=O.__VUE_DEVTOOLS_HOOK??=Fr(),uo={on:{vueAppInit(e){F.hook(q.APP_INIT,e)},vueAppUnmount(e){F.hook(q.APP_UNMOUNT,e)},vueAppConnected(e){F.hook(q.APP_CONNECTED,e)},componentAdded(e){return F.hook(q.COMPONENT_ADDED,e)},componentEmit(e){return F.hook(q.COMPONENT_EMIT,e)},componentUpdated(e){return F.hook(q.COMPONENT_UPDATED,e)},componentRemoved(e){return F.hook(q.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){F.hook(q.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return F.hook(q.PERFORMANCE_START,e)},perfEnd(e){return F.hook(q.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return F.callHook(q.SETUP_DEVTOOLS_PLUGIN,e,t)}};var La=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(B.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(B.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(B.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(B.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(B.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(B.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(B.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(B.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(B.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(D.highPerfModeEnabled)return;const t=io().find(n=>n.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){const n=[e.appContext.app,e.uid,e.parent?.uid,e];F.callHook(q.COMPONENT_UPDATED,...n)}else F.callHook(q.COMPONENT_UPDATED);this.hooks.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(L.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Ua(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){D.highPerfModeEnabled||this.hooks.callHook(L.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){D.highPerfModeEnabled||this.hooks.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(L.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(B.VISIT_COMPONENT_TREE,e)}now(){return D.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(L.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){D.highPerfModeEnabled||this.hooks.callHook(L.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return co(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(L.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(L.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(L.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(L.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(L.COMPONENT_UNHIGHLIGHT)}};const Da=La,Va="__vue_devtool_undefined__",xa="__vue_devtool_infinity__",Ma="__vue_devtool_negative_infinity__",Ba="__vue_devtool_nan__",$a={[Va]:"undefined",[Ba]:"NaN",[xa]:"Infinity",[Ma]:"-Infinity"};Object.entries($a).reduce((e,[t,n])=>(e[n]=t,e),{}),O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function Ha(e,t){return uo.setupDevToolsPlugin(e,t)}function ja(e,t){const[n,r]=e;if(n.app!==t)return;const o=new Da({plugin:{setupFn:r,descriptor:n},ctx:ve});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function fo(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||D.highPerfModeEnabled&&!t?.inspectingComponent||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),On.forEach(n=>{ja(n,e)}))}const kt="__VUE_DEVTOOLS_ROUTER__",Qe="__VUE_DEVTOOLS_ROUTER_INFO__";O[Qe]??={currentRoute:null,routes:[]},O[kt]??={},new Proxy(O[Qe],{get(e,t){return O[Qe][t]}}),new Proxy(O[kt],{get(e,t){if(t==="value")return O[kt]}});function Za(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nn(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o?.length&&(o=Nn(o)),{path:n,name:r,children:o,meta:s}})}function Ga(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:a,params:i,query:u}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:i,query:u,matched:Nn(a)}}return e}function qa(e,t){function n(){const r=e.app?.config.globalProperties.$router,o=Ga(r?.currentRoute.value),s=Nn(Za(r)),a=console.warn;console.warn=()=>{},O[Qe]={currentRoute:o?Gr(o):{},routes:Gr(s)},O[kt]=r,console.warn=a}n(),uo.on.componentUpdated(Ce(()=>{t.value?.app===e.app&&(n(),!D.highPerfModeEnabled&&ve.hooks.callHook(ye.ROUTER_INFO_UPDATED,{state:O[Qe]}))},200))}function Fa(e){return{async getInspectorTree(t){const n={...t,app:H.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},B.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){const n={...t,app:H.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(a=>a(n,r))),o()},B.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){const n=new ma,r={...t,app:H.value.app,set:(o,s=t.path,a=t.state.value,i)=>{n.set(o,s,a,i||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},B.EDIT_INSPECTOR_STATE)},sendInspectorState(t){const n=bt(t);e.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return da()},cancelInspectComponentInspector(){return la()},getComponentRenderCode(t){const n=hn(H.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return pa({id:t})},openInEditor:Ca,getVueInspector:ga,toggleApp(t,n){const r=Ct.value.find(o=>o.id===t);r&&(ba(t),Aa(r),qa(r,H),so(),fo(r.app,n))},inspectDOM(t){const n=hn(H.value,t);if(n){const[r]=En(n);r&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){va(t,n,r)},getPluginSettings(t){return{options:ka(t),values:co(t)}}}}O.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};const lo=Pa();O.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:lo,get state(){return{...D,activeAppRecordId:H.id,activeAppRecord:H.value,appRecords:Ct.value}},api:Fa(lo)};const ve=O.__VUE_DEVTOOLS_KIT_CONTEXT__;var za=Wr(((e,t)=>{(function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},i={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),m=[".","!","~","*","'","(",")"].join(""),c=function(_,h){var T="-",g="",d="",y=!0,w={},A,C,M,$,K,Ve,re,oe,xe,j,b,Re,Y,ue,ee="";if(typeof _!="string")return"";if(typeof h=="string"&&(T=h),re=i.en,oe=a.en,typeof h=="object"){A=h.maintainCase||!1,w=h.custom&&typeof h.custom=="object"?h.custom:w,M=+h.truncate>1&&h.truncate||!1,$=h.uric||!1,K=h.uricNoSlash||!1,Ve=h.mark||!1,y=!(h.symbols===!1||h.lang===!1),T=h.separator||T,$&&(ee+=u),K&&(ee+=f),Ve&&(ee+=m),re=h.lang&&i[h.lang]&&y?i[h.lang]:y?i.en:{},oe=h.lang&&a[h.lang]?a[h.lang]:h.lang===!1||h.lang===!0?{}:a.en,h.titleCase&&typeof h.titleCase.length=="number"&&Array.prototype.toString.call(h.titleCase)?(h.titleCase.forEach(function(z){w[z+""]=z+""}),C=!0):C=!!h.titleCase,h.custom&&typeof h.custom.length=="number"&&Array.prototype.toString.call(h.custom)&&h.custom.forEach(function(z){w[z+""]=z+""}),Object.keys(w).forEach(function(z){var Se;z.length>1?Se=new RegExp("\\b"+l(z)+"\\b","gi"):Se=new RegExp(l(z),"gi"),_=_.replace(Se,w[z])});for(b in w)ee+=b}for(ee+=T,ee=l(ee),_=_.replace(/(^\s+|\s+$)/g,""),Y=!1,ue=!1,j=0,Re=_.length;j<Re;j++)b=_[j],p(b,w)?Y=!1:oe[b]?(b=Y&&oe[b].match(/[A-Za-z0-9]/)?" "+oe[b]:oe[b],Y=!1):b in r?(j+1<Re&&o.indexOf(_[j+1])>=0?(d+=b,b=""):ue===!0?(b=s[d]+r[b],d=""):b=Y&&r[b].match(/[A-Za-z0-9]/)?" "+r[b]:r[b],Y=!1,ue=!1):b in s?(d+=b,b="",j===Re-1&&(b=s[d]),ue=!0):re[b]&&!($&&u.indexOf(b)!==-1)&&!(K&&f.indexOf(b)!==-1)?(b=Y||g.substr(-1).match(/[A-Za-z0-9]/)?T+re[b]:re[b],b+=_[j+1]!==void 0&&_[j+1].match(/[A-Za-z0-9]/)?T:"",Y=!0):(ue===!0?(b=s[d]+b,d="",ue=!1):Y&&(/[A-Za-z0-9]/.test(b)||g.substr(-1).match(/A-Za-z0-9]/))&&(b=" "+b),Y=!1),g+=b.replace(new RegExp("[^\\w\\s"+ee+"_-]","g"),T);return C&&(g=g.replace(/(\w)(\S*)/g,function(z,Se,Dt){var Te=Se.toUpperCase()+(Dt!==null?Dt:"");return Object.keys(w).indexOf(Te.toLowerCase())<0?Te:Te.toLowerCase()})),g=g.replace(/\s+/g,T).replace(new RegExp("\\"+T+"+","g"),T).replace(new RegExp("(^\\"+T+"+|\\"+T+"+$)","g"),""),M&&g.length>M&&(xe=g.charAt(M)===T,g=g.slice(0,M),xe||(g=g.slice(0,g.lastIndexOf(T)))),!A&&!C&&(g=g.toLowerCase()),g},E=function(_){return function(T){return c(T,_)}},l=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(S,_){for(var h in _)if(_[h]===S)return!0};if(typeof t<"u"&&t.exports)t.exports=c,t.exports.createSlug=E;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=c,n.createSlug=E}catch{}})(e)})),Wa=Wr(((e,t)=>{t.exports=za()}));Wa(),O.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function Ja(e){D.highPerfModeEnabled=e??!D.highPerfModeEnabled,!e&&H.value&&fo(H.value.app)}function Ka(e){D.devtoolsClientDetected={...D.devtoolsClientDetected,...e},Ja(!Object.values(D.devtoolsClientDetected).some(Boolean))}O.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Ka;var Ya=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},po=class{constructor(e){this.generateIdentifier=e,this.kv=new Ya}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Qa=class extends po{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Xa(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function ec(e,t){const n=Xa(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function Le(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Ut(e,t){return e.indexOf(t)!==-1}function ho(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var tc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ec(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};const nc=e=>Object.prototype.toString.call(e).slice(8,-1),Eo=e=>typeof e>"u",rc=e=>e===null,Xe=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,In=e=>Xe(e)&&Object.keys(e).length===0,ce=e=>Array.isArray(e),oc=e=>typeof e=="string",sc=e=>typeof e=="number"&&!isNaN(e),ic=e=>typeof e=="boolean",ac=e=>e instanceof RegExp,et=e=>e instanceof Map,tt=e=>e instanceof Set,go=e=>nc(e)==="Symbol",cc=e=>e instanceof Date&&!isNaN(e.valueOf()),uc=e=>e instanceof Error,_o=e=>typeof e=="number"&&isNaN(e),fc=e=>ic(e)||rc(e)||Eo(e)||sc(e)||oc(e)||go(e),lc=e=>typeof e=="bigint",dc=e=>e===1/0||e===-1/0,pc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),hc=e=>e instanceof URL,mo=e=>e.replace(/\./g,"\\."),An=e=>e.map(String).map(mo).join("."),nt=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};function ne(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const yo=[ne(Eo,"undefined",()=>null,()=>{}),ne(lc,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),ne(cc,"Date",e=>e.toISOString(),e=>new Date(e)),ne(uc,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ne(ac,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ne(tt,"set",e=>[...e.values()],e=>new Set(e)),ne(et,"map",e=>[...e.entries()],e=>new Map(e)),ne(e=>_o(e)||dc(e),"number",e=>_o(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ne(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ne(hc,"URL",e=>e.toString(),e=>new URL(e))];function vt(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Ro=vt((e,t)=>go(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Ec=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),So=vt(pc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Ec[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function To(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const Oo=vt(To,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),wo=vt((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),gc=[Oo,Ro,wo,So],Po=(e,t)=>{const n=ho(gc,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=ho(yo,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},No={};yo.forEach(e=>{No[e.annotation]=e});const _c=(e,t,n)=>{if(ce(t))switch(t[0]){case"symbol":return Ro.untransform(e,t,n);case"class":return Oo.untransform(e,t,n);case"custom":return wo.untransform(e,t,n);case"typed-array":return So.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=No[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},De=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Io(e){if(Ut(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ut(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Ut(e,"constructor"))throw new Error("constructor is not allowed as a property")}const mc=(e,t)=>{Io(t);for(let n=0;n<t.length;n++){const r=t[n];if(tt(e))e=De(e,+r);else if(et(e)){const o=+r,s=+t[++n]==0?"key":"value",a=De(e,o);switch(s){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[r]}return e},bn=(e,t,n)=>{if(Io(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const a=t[s];if(ce(r)){const i=+a;r=r[i]}else if(Xe(r))r=r[a];else if(tt(r)){const i=+a;r=De(r,i)}else if(et(r)){if(s===t.length-2)break;const i=+a,u=+t[++s]==0?"key":"value",f=De(r,i);switch(u){case"key":r=f;break;case"value":r=r.get(f);break}}}const o=t[t.length-1];if(ce(r)?r[+o]=n(r[+o]):Xe(r)&&(r[o]=n(r[o])),tt(r)){const s=De(r,+o),a=n(s);s!==a&&(r.delete(s),r.add(a))}if(et(r)){const s=+t[t.length-2],a=De(r,s);switch(+o==0?"key":"value"){case"key":{const i=n(a);r.set(i,r.get(a)),i!==a&&r.delete(a);break}case"value":r.set(a,n(r.get(a)));break}}return e};function Cn(e,t,n=[]){if(!e)return;if(!ce(e)){Le(e,(s,a)=>Cn(s,t,[...n,...nt(a)]));return}const[r,o]=e;o&&Le(o,(s,a)=>{Cn(s,t,[...n,...nt(a)])}),t(r,n)}function yc(e,t,n){return Cn(t,(r,o)=>{e=bn(e,o,s=>_c(s,r,n))}),e}function Rc(e,t){function n(r,o){const s=mc(e,nt(o));r.map(nt).forEach(a=>{e=bn(e,a,()=>s)})}if(ce(t)){const[r,o]=t;r.forEach(s=>{e=bn(e,nt(s),()=>e)}),o&&Le(o,n)}else Le(t,n);return e}const Sc=(e,t)=>Xe(e)||ce(e)||et(e)||tt(e)||To(e,t);function Tc(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Oc(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(i=>i.map(String)).sort((i,u)=>i.length-u.length));const[s,...a]=o;s.length===0?r=a.map(An):n[An(s)]=a.map(An)}),r?In(n)?[r]:[r,n]:In(n)?void 0:n}const Ao=(e,t,n,r,o=[],s=[],a=new Map)=>{const i=fc(e);if(!i){Tc(e,o,t);const l=a.get(e);if(l)return r?{transformedValue:null}:l}if(!Sc(e,n)){const l=Po(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return i||a.set(e,p),p}if(Ut(s,e))return{transformedValue:null};const u=Po(e,n),f=u?.value??e,m=ce(f)?[]:{},c={};Le(f,(l,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);const S=Ao(l,t,n,r,[...o,p],[...s,e],a);m[p]=S.transformedValue,ce(S.annotations)?c[p]=S.annotations:Xe(S.annotations)&&Le(S.annotations,(_,h)=>{c[mo(p)+"."+h]=_})});const E=In(c)?{transformedValue:m,annotations:u?[u.type]:void 0}:{transformedValue:m,annotations:u?[u.type,c]:c};return i||a.set(e,E),E};function bo(e){return Object.prototype.toString.call(e).slice(8,-1)}function Co(e){return bo(e)==="Array"}function wc(e){if(bo(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Pc(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kn(e,t={}){if(Co(e))return e.map(o=>kn(o,t));if(!wc(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Co(t.props)&&!t.props.includes(s))return o;const a=e[s];return Pc(o,s,kn(a,t),e,t.nonenumerable),o},{})}var U=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Qa,this.symbolRegistry=new po(t=>t.description??""),this.customTransformerRegistry=new tc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Ao(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Oc(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=kn(t);return n?.values&&(r=yc(r,n.values,this)),n?.referentialEqualities&&(r=Rc(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};U.defaultInstance=new U,U.serialize=U.defaultInstance.serialize.bind(U.defaultInstance),U.deserialize=U.defaultInstance.deserialize.bind(U.defaultInstance),U.stringify=U.defaultInstance.stringify.bind(U.defaultInstance),U.parse=U.defaultInstance.parse.bind(U.defaultInstance),U.registerClass=U.defaultInstance.registerClass.bind(U.defaultInstance),U.registerSymbol=U.defaultInstance.registerSymbol.bind(U.defaultInstance),U.registerCustom=U.defaultInstance.registerCustom.bind(U.defaultInstance),U.allowErrorProps=U.defaultInstance.allowErrorProps.bind(U.defaultInstance),O.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],O.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;const Lt={template:"<div>This is component</div>"},Un=Ee({name:"parentA",path:"/parentA/[paramA]"}),ko=Ee({parent:Un,name:"parentA.childA",path:"/childA/[?paramB]"}),Nc=Ee({parent:Un,name:"parentA.childB",path:"/childB/[paramD]",component:Lt}),Ic=Ee({parent:ko,name:"parentA.childA.grandChildA",path:"/[paramC]",component:Lt});Ee({name:"parentB",path:"/parentB",component:Lt}),Ee({name:"parentC",path:"/",component:Lt});function Ac(e,t){return t!=="1"?`${e} ${t}`:e}const bc=({route:e})=>!!e.name,Cc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!le(e))return!1;const n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},kc=e=>bc(e)&&Cc(e),Uc=rt(),vc=2282478,Lc=2278750,Dc=1483594;function Vc(e,t={match:!1,exactMatch:!1}){const n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:vc}),t.match&&n.push({label:"match",textColor:0,backgroundColor:Lc}),t.exactMatch&&n.push({label:"exact-match",textColor:0,backgroundColor:Dc}),{id:e.id,label:e.name,tags:n}}function xc(e,t){if(!t||!("id"in t)||!("matches"in t))return{match:!1,exactMatch:!1};const n=t.id===e.id;return{match:t.matches.some(o=>o.id===e.id),exactMatch:n}}function Mc(e){const t=[];return le(e)&&(t.push({editable:!1,key:"name",value:e.name}),t.push({editable:!1,key:"path",value:e.schema.path.value}),t.push({editable:!1,key:"query",value:e.schema.query.value}),t.push({editable:!1,key:"hash",value:e.schema.hash.value}),t.push({editable:!1,key:"meta",value:e.meta})),t}function Bc({router:e,app:t,routes:n}){if(!Ke()||e.hasDevtools)return;e.hasDevtools=!0;const r=Uc(),o=new Map(n.map(i=>[i.id,i])),s=`kitbag-router-routes.${r}`,a=`kitbag-router.${r}`;Ha({id:a,label:"Kitbag Router",packageName:"@kitbag/router",homepage:"https://router.kitbag.dev/",componentStateTypes:["Routing"],logo:"https://kitbag.dev/kitbag-logo-circle.svg",app:t},i=>{i.addInspector({id:s,label:Ac("Routes",r),treeFilterPlaceholder:"Search routes"}),i.on.getInspectorTree(u=>{u.app!==t||u.inspectorId!==s||(u.rootNodes=n.filter(f=>kc({route:f,payload:u})).map(f=>{const m=xc(f,e.route);return Vc(f,m)}))}),R.watch(()=>e.route,()=>{i.sendInspectorTree(s)},{deep:!0,immediate:!1}),i.on.getInspectorState(u=>{if(u.app!==t||u.inspectorId!==s)return;const f=o.get(u.nodeId);f&&(u.state={options:Mc(f)})}),i.sendInspectorTree(s),i.sendInspectorState(s)})}function $c(e,t){const n=new URLSearchParams(e),r=new URLSearchParams(t);for(const[o,s]of r.entries())n.delete(o,s);return n}function Hc(e,t,n={}){const{query:r,hash:o}=X(t);for(const s of e){if(!Br(s))continue;const{success:a,params:i}=s.tryParse(t,n);if(a){const u=s.stringify(i),{query:f}=X(u),m=$c(r,f);return Mr(s,i,{...n,query:m,hash:o})}}}const Uo=/^(\/.+?)\/+$/;function jc(e){const{path:t,...n}=X(e);return gt({...n,path:t.replace(Uo,"$1")})}function Zc(e){const{path:t}=X(e);return Uo.test(t)}let vo;function Gc(e){!an(e)||!Ke()||(vo??=document.title,e.getTitle(e).then(t=>{document.title=t??vo??""}))}function qc(e,t,n=[]){const o=t?.isGlobalRouter??!0?Hr:Symbol(),s=[...n.flatMap(N=>N.rejections),...t?.rejections??[]],a=t?.removeTrailingSlashes??!0,{routes:i,getRouteByName:u}=di(e,n,t?.base),f=ks();f.addGlobalRouteHooks(gi(n));const m=rt(),c=Xs(),E=Ri(o),l=ci(),p=ei({mode:t?.historyMode,listener:({location:N})=>{const v=_e(N);_(v,{state:N.state,replace:!0})}});function S(N,v={}){const G=!j(N),Z=i.filter(x=>x.isRelative===G);return Hc(Z,N,{...v,...{removeTrailingSlashes:a}})}async function _(N,v={}){if(Zc(N)&&a){const se=jc(N);if(W(se))return d(se,v)}const G=m();p.stopListening();const Z=S(N,v)??C("NotFound"),V=Se(G),x=await f.runBeforeRouteHooks({to:Z,from:V});switch(x.status){case"ABORT":return;case"PUSH":p.update(N,v),await g(...x.to);return;case"REJECT":p.update(N,v),w(x.type);break;case"SUCCESS":p.update(N,v),w(null);break;default:throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(x)}`)}j(N)||h(G,Z,V);const Me=await f.runAfterRouteHooks({to:Z,from:V});switch(Me.status){case"PUSH":await g(...Me.to);break;case"REJECT":w(Me.type);break;case"SUCCESS":break;default:const se=Me;throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(se)}`)}Gc(Z),p.startListening()}function h(N,v,G){const Z=N;c.setProps(v).then(V=>{if(Z===N)switch(V.status){case"SUCCESS":break;case"PUSH":g(...V.to);break;case"REJECT":w(V.type);break;default:const x=V;throw new Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(x)}`)}}).catch(V=>{try{f.runErrorHooks(V,{to:v,from:G,source:"props"})}catch(x){if(x instanceof ae){g(...x.response.to);return}if(x instanceof ge){w(x.response.type);return}throw x}}),Ve(v)}const T=(N,v={},G={})=>{const Z=u(N);if(!Z)throw new ui(N);return Mr(Z,v,G)},g=(N,v,G)=>{if(W(N)){const se={...v},Vt=je(N,{query:se.query,hash:se.hash});return _(Vt,se)}if(typeof N=="string"){const{replace:se,...Vt}={...G},ou={...v},vn=T(N,ou,Vt),su=xr({...vn.matched.state},{...vn.state,...Vt.state});return _(vn.href,{replace:se,state:su})}const{replace:Z,...V}={...v},x=xr({...N.matched.state},{...N.state,...V.state}),Me=je(N.href,{query:V.query,hash:V.hash});return _(Me,{replace:Z,state:x})},d=(N,v,G)=>{if(W(N)){const V={...v,replace:!0};return g(N,V)}if(typeof N=="string"){const V={...G,replace:!0},x={...v};return g(N,x,V)}const Z={...v,replace:!0};return g(N,Z)},y=N=>{w(N)},{setRejection:w,rejection:A,getRejectionRoute:C}=ni(s),M=C("NotFound"),{currentRoute:$,routerRoute:K,updateRoute:Ve}=Ys(o,M,g),re=oi(t?.initialUrl),oe=p.location.state,{host:xe}=X(re),j=Qs(xe);let b=!1;const Re=R.ref(!1),{promise:Y,resolve:ue}=Promise.withResolvers();async function ee(){if(b)return Y;b=!0,zo(i)&&await Wo(),await _(re,{replace:!0,state:oe}),p.startListening(),ue(),Re.value=!0}function z(){p.stopListening()}function Se(N){return Bo(N)?null:{...$}}function Dt(N){f.setVueApp(N),c.setVueApp(N);const v=un(o),G=Ir(o);N.component("RouterView",v),N.component("RouterLink",G),N.provide(_r(o),A),N.provide(Er(o),f),N.provide(Rr(o),c),N.provide(gr(o),E),N.provide(wr,l),N.provide(o,Te),Bc({router:Te,app:N,routes:i}),ee()}const Te={route:K,resolve:T,find:S,push:g,replace:d,reject:y,refresh:p.refresh,forward:p.forward,back:p.back,go:p.go,install:Dt,isExternal:j,onBeforeRouteEnter:f.onBeforeRouteEnter,onBeforeRouteUpdate:f.onBeforeRouteUpdate,onBeforeRouteLeave:f.onBeforeRouteLeave,onAfterRouteEnter:f.onAfterRouteEnter,onAfterRouteUpdate:f.onAfterRouteUpdate,onAfterRouteLeave:f.onAfterRouteLeave,onError:f.onError,prefetch:t?.prefetch,start:ee,started:Re,stop:z,key:o,hasDevtools:!1};return Te}const J=Ar(Hr),Fc=J.onBeforeRouteLeave,zc=J.onBeforeRouteUpdate,Wc=J.onAfterRouteLeave,Jc=J.onAfterRouteUpdate,Kc=J.isRoute,Yc=J.RouterView,Qc=J.RouterLink,Xc=J.useRoute,eu=J.useRouter,tu=J.useQueryValue,nu=J.useLink,ru=J.useRejection;I.DuplicateParamsError=Dn,I.IS_URL_SYMBOL=Zt,I.MetaPropertyConflict=Ln,I.RouterLink=Qc,I.RouterNotInstalledError=de,I.RouterView=Yc,I.UseRouteInvalidError=Bn,I.arrayOf=Fs,I.asUrlString=Mn,I.combineHooks=xn,I.combineRoutes=jt,I.createExternalRoute=ws,I.createParam=Hn,I.createRejection=Os,I.createRoute=Ee,I.createRouter=qc,I.createRouterAssets=Ar,I.createRouterPlugin=Gs,I.createUrl=Ie,I.getHooks=fe,I.isRoute=Kc,I.isUrlString=W,I.isUrlWithSchema=le,I.isWithComponent=Mt,I.isWithComponentProps=Bt,I.isWithComponentPropsRecord=Ht,I.isWithComponents=$t,I.isWithHooks=Vn,I.isWithParent=xt,I.literal=Xt,I.onAfterRouteLeave=Wc,I.onAfterRouteUpdate=Jc,I.onBeforeRouteLeave=Fc,I.onBeforeRouteUpdate=zc,I.tupleOf=Ws,I.unionOf=br,I.useLink=nu,I.useQueryValue=tu,I.useRejection=ru,I.useRoute=Xc,I.useRouter=eu,I.withDefault=Zo,I.withParams=pt,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|
|
4
|
+
`)}return i}function u(e,t,n){return[e,t,n.id,JSON.stringify(n.params)].join(`-`)}function d(e){return v(e)?[{id:e.id,name:`default`,props:e.props}]:b(e)?Object.entries(e.props).map(([t,n])=>({id:e.id,name:t,props:n})):[]}function f(e){for(let t of r.keys())e.includes(t)||r.delete(t)}return{getPrefetchProps:i,setPrefetchProps:a,getProps:s,setProps:o,setVueApp:e}}function mr(){return typeof window<`u`&&window.document!==void 0}function hr({mode:e,listener:t}){let n=gr(e),r=(e,t)=>{if(t?.replace){n.replace(e,t.state);return}n.push(e,t?.state)},i=()=>{let e=V(n.location);n.replace(e)},a,o=()=>{a?.(),a=n.listen(t)},s=()=>{a?.()};return{...n,update:r,refresh:i,startListening:o,stopListening:s}}function gr(e=`auto`){switch(e){case`auto`:return mr()?sr():lr();case`browser`:return sr();case`memory`:return lr();case`hash`:return cr();default:let t=e;throw Error(`Switch is not exhaustive for mode: ${t}`)}}var _r=class extends Error{constructor(){super(`initialUrl must be set if window.location is unavailable`)}};function vr(e){if(e)return e;if(mr())return window.location.toString();throw new _r}function yr(e){return!!e&&typeof e==`object`}var br={isOptional:!0,isGreedy:!1};function xr(e,t,n){if(yr(e)&&t in e){let r=e[t];return typeof r==`string`?Ge(r,{param:n,...br}):r}return Ge(void 0,{param:n,...br})}function Sr(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=xr(t,r,i);return n}function Cr(e,t,n){if(yr(e)&&t in e){let r=e[t];return F(r,{param:n,...br})}return F(void 0,{param:n,...br})}var wr=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))n[r]=Cr(t,r,i);return n};function Tr(){let e=(0,t.reactive)(new Map),n=mr()?s():null,r=t=>{e.set(t,!1),n?.observe(t)},i=t=>{e.delete(t),n?.unobserve(t)},a=()=>{n?.disconnect()},o=t=>e.get(t)??!1;function s(){return new IntersectionObserver(t=>{t.forEach(t=>{e.set(t.target,t.isIntersecting)})})}return{observe:r,unobserve:i,disconnect:a,isElementVisible:o}}var Er=class extends Error{constructor(e){super(`Route not found: "${e}"`)}};function Dr(e,t={},n={}){let r=wt(e.stringify(t),{query:new URLSearchParams(n.query),hash:n.hash}),{query:i,hash:a}=L(r),{promise:o,resolve:s}=Promise.withResolvers(),c={...e,query:Ut(i),state:Sr(e.state,n.state),hash:a,params:t,href:r,title:o};return Or(c).then(s),c}async function Or(e){if(u(e))return e.getTitle(e)}var kr=class extends Error{constructor(e){super(`Invalid Name "${e}": Router does not support multiple routes with the same name. All name names must be unique.`)}};function Ar(e){return`name`in e&&M(e.name)}function jr(e,t){return M(t)?{...e,...zt(Dt({path:t}),e)}:e}function Mr(e,t=[],n={}){let r=new Map,i=new Map,a=[...e,...t.map(e=>e.routes)],o=[...d.map(e=>Wt({type:e})),...n.rejections??[],...t.map(e=>e.rejections)];function s(e){if(!u(e)||!Ar(e))return;let t=r.get(e.name);if(t&&t.id!==e.id)throw new kr(e.name);if(!(t&&t.id===e.id)){r.set(e.name,jr(e,n.base));for(let t of e.context)u(t)&&s(t),p(t)&&c(t)}}function c(e){p(e)&&i.set(e.type,e)}function l(e){for(let t of e)s(t)}function f(e){for(let t of e)c(t)}for(let e of a){if(Nr(e)){l(e);continue}s(e)}for(let e of o){if(Pr(e)){f(e);continue}c(e)}function m(e){return r.get(e)}function h(e){return i.get(e)}return{routes:Array.from(r.values()).sort(Fr),rejections:Array.from(i.values()),getRouteByName:m,getRejectionByType:h}}function Nr(e){return Array.isArray(e)}function Pr(e){return Array.isArray(e)}function Fr(e,t){return t.depth-e.depth}function Ir(e=[]){let t=new k;return e.forEach(e=>{Gn(e)&&(e.hooks.onBeforeRouteEnter.forEach(e=>t.onBeforeRouteEnter.add(e)),e.hooks.onBeforeRouteUpdate.forEach(e=>t.onBeforeRouteUpdate.add(e)),e.hooks.onBeforeRouteLeave.forEach(e=>t.onBeforeRouteLeave.add(e)),e.hooks.onAfterRouteEnter.forEach(e=>t.onAfterRouteEnter.add(e)),e.hooks.onAfterRouteUpdate.forEach(e=>t.onAfterRouteUpdate.add(e)),e.hooks.onAfterRouteLeave.forEach(e=>t.onAfterRouteLeave.add(e)))}),t}function Lr(e,{match:n,name:r,component:i}){let a=Dn(e),o=wn(e);return(0,t.defineComponent)({name:`PropsWrapper`,expose:[],setup(){let e=(0,t.getCurrentInstance)(),s=a(),c=o();return()=>{let a=s.getProps(n.id,r,c);return a instanceof Error?``:De(a)?e?.suspense?(0,t.h)(zr,{component:i,props:a}):(0,t.h)(Rr,{component:i,props:a}):(0,t.h)(i,a)}}})}var Rr=(0,t.defineComponent)(e=>{let n=(0,t.ref)();return(0,t.watch)(()=>e.props,async e=>{n.value=await e},{immediate:!0,deep:!0}),()=>n.value instanceof Error?``:n.value?(0,t.h)(e.component,n.value):``},{props:[`component`,`props`]}),zr=(0,t.defineComponent)(async e=>{let n=(0,t.ref)();return n.value=await e.props,(0,t.watch)(()=>n.value,async e=>{n.value=await e},{deep:!0}),()=>n.value instanceof Error?``:n.value?(0,t.h)(e.component,n.value):``},{props:[`component`,`props`]});function Br(e){let t=new Map;return{getRouteComponents:n=>{let r=t.get(n.id);if(r)return r;let i=Vr(e,n);return t.set(n.id,i),i}}}function Vr(e,t){let n=Tn(e);return y(t)?Hr(e,t,t.components):_(t)?Hr(e,t,{default:t.component}):{default:n}}function Hr(e,t,n){return Object.fromEntries(Object.entries(n).map(([n,r])=>[n,Lr(e,{match:t,name:n,component:r})]))}var Ur=Symbol(),Wr=Object.create,Gr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyNames,Jr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty,Xr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zr=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Yr.call(e,s)&&s!==n&&Gr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Kr(t,s))||r.enumerable});return e},Qr=(e,t,n)=>(n=e==null?{}:Wr(Jr(e)),Zr(t||!e||!e.__esModule?Gr(n,`default`,{value:e,enumerable:!0}):n,e)),$r=typeof navigator<`u`,H=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};H.chrome!==void 0&&H.chrome.devtools,$r&&(H.self,H.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__;var ei=Qr(Xr(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}))(),1),ti=/(?:^|[-_/])(\w)/g;function ni(e,t){return t?t.toUpperCase():``}function ri(e){return e&&`${e}`.replace(ti,ni)}function ii(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var ai=(0,ei.default)({circles:!0}),oi={trailing:!0};function si(e,t=25,n={}){if(n={...oi,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=ci(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o),l=function(...e){return n.trailing&&(s=e),o||new Promise(o=>{let l=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);s=null;for(let e of a)e(t);a=[]},t),l?(r=c(this,e),o(r)):a.push(o)})},u=e=>{e&&(clearTimeout(e),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{u(i),a=[],s=null},l.flush=()=>{if(u(i),!s||o)return;let e=s;return s=null,c(this,e)},l}async function ci(e,t,n){return await e.apply(t,n)}function li(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?li(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var ui={run:e=>e()},di=console.createTask===void 0?()=>ui:console.createTask;function fi(e,t){let n=di(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function pi(e,t){let n=di(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function mi(e,t){for(let n of[...e])n(t)}var hi=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=li(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=li(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(fi,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(pi,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&mi(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&mi(this._after,r)}):(this._after&&r&&mi(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function gi(){return new hi}var _i=Object.create,vi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,bi=Object.getOwnPropertyNames,xi=Object.getPrototypeOf,Si=Object.prototype.hasOwnProperty,Ci=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wi=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=bi(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Si.call(e,s)&&s!==n&&vi(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=yi(t,s))||r.enumerable});return e},Ti=(e,t,n)=>(n=e==null?{}:_i(xi(e)),wi(t||!e||!e.__esModule?vi(n,`default`,{value:e,enumerable:!0}):n,e));function Ei(e){if(typeof e==`function`)return e.displayName||e.name||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||``;let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function Di(e){let t=e.__file;if(t)return ri(ii(t,`.vue`))}function Oi(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function ki(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Ai(e){let t=e.subTree?.type,n=ki(e);return n?n?.types?.Fragment===t:!1}function ji(e){let t=Ei(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return Oi(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return Oi(e,t);return Di(e?.type||{})||`Anonymous Component`}function Mi(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function Ni(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function Pi(){let e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Fi;function Ii(e){return Fi||=document.createRange(),Fi.selectNode(e),Fi.getBoundingClientRect()}function Li(e){let t=Pi();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=U(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=Ii(e))}i&&Ri(t,i)}return t}function Ri(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var zi={top:0,left:0,right:0,bottom:0,width:0,height:0};function U(e){let t=e.subTree.el;return typeof window>`u`?zi:Ai(e)?Li(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?U(e.subTree.component):zi}function Bi(e){return Ai(e)?Vi(e.subTree):e.subTree?[e.subTree.el]:[]}function Vi(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...Bi(e.component)):e?.el&&t.push(e.el)}),t}var Hi=`__vue-devtools-component-inspector__`,Ui=`__vue-devtools-component-inspector__card__`,Wi=`__vue-devtools-component-inspector__name__`,Gi=`__vue-devtools-component-inspector__indicator__`,Ki={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},qi={fontFamily:`Arial, Helvetica, sans-serif`,padding:`5px 8px`,borderRadius:`4px`,textAlign:`left`,position:`absolute`,left:0,color:`#e9e9e9`,fontSize:`14px`,fontWeight:600,lineHeight:`24px`,backgroundColor:`#42b883`,boxShadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},Ji={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function Yi(){return document.getElementById(Hi)}function Xi(){return document.getElementById(Ui)}function Zi(){return document.getElementById(Gi)}function Qi(){return document.getElementById(Wi)}function $i(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function ea(e){let t=document.createElement(`div`);t.id=e.elementId??Hi,Object.assign(t.style,{...Ki,...$i(e.bounds),...e.style});let n=document.createElement(`span`);n.id=Ui,Object.assign(n.style,{...qi,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=Wi,r.innerHTML=`<${e.name}> `;let i=document.createElement(`i`);return i.id=Gi,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,Ji),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function ta(e){let t=Yi(),n=Xi(),r=Qi(),i=Zi();t&&(Object.assign(t.style,{...Ki,...$i(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`<${e.name}> `,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function na(e){let t=U(e);if(!t.width&&!t.height)return;let n=ji(e);Yi()?ta({bounds:t,name:n}):ea({bounds:t,name:n})}function ra(){let e=Yi();e&&(e.style.display=`none`)}var ia=null;function aa(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(ia=e,e.vnode.el)){let t=U(e),n=ji(e);Yi()?ta({bounds:t,name:n}):ea({bounds:t,name:n})}}}function oa(e,t){e.preventDefault(),e.stopPropagation(),ia&&t(Mi(ia))}var sa=null;function ca(){ra(),window.removeEventListener(`mouseover`,aa),window.removeEventListener(`click`,sa,!0),sa=null}function la(){return window.addEventListener(`mouseover`,aa),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),oa(n,n=>{window.removeEventListener(`click`,t,!0),sa=null,window.removeEventListener(`mouseover`,aa);let r=Yi();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}sa=t,window.addEventListener(`click`,t,!0)})}function ua(e){let t=Ni(K.value,e.id);if(t){let[n]=Bi(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=U(t),n=document.createElement(`div`),r={...$i(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=U(t);if(n.width||n.height){let r=ji(t),i=Yi();i?ta({...e,name:r,bounds:n}):ea({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}H.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function da(e){let t=0,n=setInterval(()=>{H.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function fa(){let e=H.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function pa(){return new Promise(e=>{function t(){fa(),e(H.__VUE_INSPECTOR__)}H.__VUE_INSPECTOR__?t():da(()=>{t()})})}var ma=function(e){return e.SKIP=`__v_skip`,e.IS_REACTIVE=`__v_isReactive`,e.IS_READONLY=`__v_isReadonly`,e.IS_SHALLOW=`__v_isShallow`,e.RAW=`__v_raw`,e}({});function ha(e){return!!(e&&e[ma.IS_READONLY])}function ga(e){return ha(e)?ga(e[ma.RAW]):!!(e&&e[ma.IS_REACTIVE])}function _a(e){return!!(e&&e.__v_isRef===!0)}function va(e){let t=e&&e[ma.RAW];return t?va(t):e}var ya=class{constructor(){this.refEditor=new ba}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):va(t)instanceof Map?t.delete(n):va(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):va(t)instanceof Map?t.set(e.newKey||n,r):va(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},ba=class{set(e,t){if(_a(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return _a(e)?e.value:e}isRef(e){return _a(e)||ga(e)}};new ya;var xa=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function Sa(){if(typeof window>`u`||!$r||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(xa);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}H.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];var Ca=new Proxy(H.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function wa(e,t){q.timelineLayersState[t.id]=!1,Ca.push({...e,descriptorId:t.id,appRecord:ki(t.app)})}H.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];var Ta=new Proxy(H.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Ea=si(()=>{fo.hooks.callHook(Aa.SEND_INSPECTOR_TO_CLIENT,Oa())});function Da(e,t){Ta.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:ki(t.app)}),Ea()}function Oa(){return Ta.filter(e=>e.descriptor.app===K.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${n?.icon?.replace(/_/g,`-`)}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function ka(e,t){return Ta.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}var W=function(e){return e.VISIT_COMPONENT_TREE=`visitComponentTree`,e.INSPECT_COMPONENT=`inspectComponent`,e.EDIT_COMPONENT_STATE=`editComponentState`,e.GET_INSPECTOR_TREE=`getInspectorTree`,e.GET_INSPECTOR_STATE=`getInspectorState`,e.EDIT_INSPECTOR_STATE=`editInspectorState`,e.INSPECT_TIMELINE_EVENT=`inspectTimelineEvent`,e.TIMELINE_CLEARED=`timelineCleared`,e.SET_PLUGIN_SETTINGS=`setPluginSettings`,e}({}),G=function(e){return e.ADD_INSPECTOR=`addInspector`,e.SEND_INSPECTOR_TREE=`sendInspectorTree`,e.SEND_INSPECTOR_STATE=`sendInspectorState`,e.CUSTOM_INSPECTOR_SELECT_NODE=`customInspectorSelectNode`,e.TIMELINE_LAYER_ADDED=`timelineLayerAdded`,e.TIMELINE_EVENT_ADDED=`timelineEventAdded`,e.GET_COMPONENT_INSTANCES=`getComponentInstances`,e.GET_COMPONENT_BOUNDS=`getComponentBounds`,e.GET_COMPONENT_NAME=`getComponentName`,e.COMPONENT_HIGHLIGHT=`componentHighlight`,e.COMPONENT_UNHIGHLIGHT=`componentUnhighlight`,e}({}),Aa=function(e){return e.SEND_INSPECTOR_TREE_TO_CLIENT=`sendInspectorTreeToClient`,e.SEND_INSPECTOR_STATE_TO_CLIENT=`sendInspectorStateToClient`,e.SEND_TIMELINE_EVENT_TO_CLIENT=`sendTimelineEventToClient`,e.SEND_INSPECTOR_TO_CLIENT=`sendInspectorToClient`,e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT=`sendActiveAppUpdatedToClient`,e.DEVTOOLS_STATE_UPDATED=`devtoolsStateUpdated`,e.DEVTOOLS_CONNECTED_UPDATED=`devtoolsConnectedUpdated`,e.ROUTER_INFO_UPDATED=`routerInfoUpdated`,e}({});function ja(){let e=gi();e.hook(G.ADD_INSPECTOR,({inspector:e,plugin:t})=>{Da(e,t.descriptor)});let t=si(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=ka(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},W.GET_INSPECTOR_TREE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},Aa.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(G.SEND_INSPECTOR_TREE,t);let n=si(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=ka(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},W.GET_INSPECTOR_STATE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},Aa.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(G.SEND_INSPECTOR_STATE,n),e.hook(G.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:e,nodeId:t,plugin:n})=>{let r=ka(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(G.TIMELINE_LAYER_ADDED,({options:e,plugin:t})=>{wa(e,t.descriptor)}),e.hook(G.TIMELINE_EVENT_ADDED,({options:t,plugin:n})=>{q.highPerfModeEnabled||!q.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},Aa.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(G.GET_COMPONENT_INSTANCES,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(G.GET_COMPONENT_BOUNDS,async({instance:e})=>U(e)),e.hook(G.GET_COMPONENT_NAME,({instance:e})=>ji(e)),e.hook(G.COMPONENT_HIGHLIGHT,({uid:e})=>{let t=K.value.instanceMap.get(e);t&&na(t)}),e.hook(G.COMPONENT_UNHIGHLIGHT,()=>{ra()}),e}H.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??=``,H.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],H.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];var Ma=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function Na(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Sa()}}H[Ma]??=Na();var Pa=si(e=>{fo.hooks.callHook(Aa.DEVTOOLS_STATE_UPDATED,{state:e})});si((e,t)=>{fo.hooks.callHook(Aa.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});var Fa=new Proxy(H.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?H.__VUE_DEVTOOLS_KIT_APP_RECORDS__:H.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),K=new Proxy(H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Ia(){Pa({...H[Ma],appRecords:Fa.value,activeAppRecordId:K.id,tabs:H.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:H.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function La(e){H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Ia()}function Ra(e){H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Ia()}var q=new Proxy(H[Ma],{get(e,t){return t===`appRecords`?Fa:t===`activeAppRecordId`?K.id:t===`tabs`?H.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?H.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:H[Ma][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...H[Ma]},e[t]=n,H[Ma][t]=n,!0}});function za(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(q.vitePluginDetected){let e=H.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;H.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}H.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];var Ba=new Proxy(H.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Va(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Ha(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Ua(e){return(Ba.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function Wa(e,t){let n=Ha(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Va(e?(Ba.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function Ga(e,t){let n=Ha(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Va(t)))}function Ka(e,t,n){let r=Ha(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),fo.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},W.SET_PLUGIN_SETTINGS)}var J=function(e){return e.APP_INIT=`app:init`,e.APP_UNMOUNT=`app:unmount`,e.COMPONENT_UPDATED=`component:updated`,e.COMPONENT_ADDED=`component:added`,e.COMPONENT_REMOVED=`component:removed`,e.COMPONENT_EMIT=`component:emit`,e.PERFORMANCE_START=`perf:start`,e.PERFORMANCE_END=`perf:end`,e.ADD_ROUTE=`router:add-route`,e.REMOVE_ROUTE=`router:remove-route`,e.RENDER_TRACKED=`render:tracked`,e.RENDER_TRIGGERED=`render:triggered`,e.APP_CONNECTED=`app:connected`,e.SETUP_DEVTOOLS_PLUGIN=`devtools-plugin:setup`,e}({}),Y=H.__VUE_DEVTOOLS_HOOK??=gi(),qa={on:{vueAppInit(e){Y.hook(J.APP_INIT,e)},vueAppUnmount(e){Y.hook(J.APP_UNMOUNT,e)},vueAppConnected(e){Y.hook(J.APP_CONNECTED,e)},componentAdded(e){return Y.hook(J.COMPONENT_ADDED,e)},componentEmit(e){return Y.hook(J.COMPONENT_EMIT,e)},componentUpdated(e){return Y.hook(J.COMPONENT_UPDATED,e)},componentRemoved(e){return Y.hook(J.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){Y.hook(J.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return Y.hook(J.PERFORMANCE_START,e)},perfEnd(e){return Y.hook(J.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return Y.callHook(J.SETUP_DEVTOOLS_PLUGIN,e,t)}},Ja=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(W.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(W.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(W.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(W.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(W.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(W.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(W.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(W.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(W.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(q.highPerfModeEnabled)return;let t=Oa().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];Y.callHook(J.COMPONENT_UPDATED,...t)}else Y.callHook(J.COMPONENT_UPDATED);this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(G.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Ga(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(G.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(W.VISIT_COMPONENT_TREE,e)}now(){return q.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(G.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){q.highPerfModeEnabled||this.hooks.callHook(G.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return Wa(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(G.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(G.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(G.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(G.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(G.COMPONENT_UNHIGHLIGHT)}},Ya=`__vue_devtool_undefined__`,Xa=`__vue_devtool_infinity__`,Za=`__vue_devtool_negative_infinity__`,Qa=`__vue_devtool_nan__`,$a={[Ya]:`undefined`,[Qa]:`NaN`,[Xa]:`Infinity`,[Za]:`-Infinity`};Object.entries($a).reduce((e,[t,n])=>(e[n]=t,e),{}),H.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function eo(e,t){return qa.setupDevToolsPlugin(e,t)}function to(e,t){let[n,r]=e;if(n.app!==t)return;let i=new Ja({plugin:{setupFn:r,descriptor:n},ctx:fo});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function no(e,t){H.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||q.highPerfModeEnabled&&!t?.inspectingComponent||(H.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Ba.forEach(t=>{to(t,e)}))}var ro=`__VUE_DEVTOOLS_ROUTER__`,io=`__VUE_DEVTOOLS_ROUTER_INFO__`;H[io]??={currentRoute:null,routes:[]},H[ro]??={},new Proxy(H[io],{get(e,t){return H[io][t]}}),new Proxy(H[ro],{get(e,t){if(t===`value`)return H[ro]}});function ao(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function oo(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=oo(r)),{path:t,name:n,children:r,meta:i}})}function so(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:c}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:c,matched:oo(o)}}return e}function co(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=so(t?.currentRoute.value),r=oo(ao(t)),i=console.warn;console.warn=()=>{},H[io]={currentRoute:n?ai(n):{},routes:ai(r)},H[ro]=t,console.warn=i}n(),qa.on.componentUpdated(si(()=>{t.value?.app===e.app&&(n(),!q.highPerfModeEnabled&&fo.hooks.callHook(Aa.ROUTER_INFO_UPDATED,{state:H[io]}))},200))}function lo(e){return{async getInspectorTree(t){let n={...t,app:K.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},W.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){let n={...t,app:K.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},W.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){let n=new ya,r={...t,app:K.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},W.EDIT_INSPECTOR_STATE)},sendInspectorState(t){let n=ka(t);e.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return la()},cancelInspectComponentInspector(){return ca()},getComponentRenderCode(e){let t=Ni(K.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return ua({id:e})},openInEditor:za,getVueInspector:pa,toggleApp(e,t){let n=Fa.value.find(t=>t.id===e);n&&(Ra(e),La(n),co(n,K),Ea(),no(n.app,t))},inspectDOM(e){let t=Ni(K.value,e);if(t){let[e]=Bi(t);e&&(H.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){Ka(e,t,n)},getPluginSettings(e){return{options:Ua(e),values:Wa(e)}}}}H.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};var uo=ja();H.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:uo,get state(){return{...q,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:Fa.value}},api:lo(uo)};var fo=H.__VUE_DEVTOOLS_KIT_CONTEXT__,po=Ci(((e,t)=>{(function(e){"use strict";var n={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`Ae`,Å:`A`,Æ:`AE`,Ç:`C`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,Ð:`D`,Ñ:`N`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`Oe`,Ő:`O`,Ø:`O`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`Ue`,Ű:`U`,Ý:`Y`,Þ:`TH`,ß:`ss`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`ae`,å:`a`,æ:`ae`,ç:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ì:`i`,í:`i`,î:`i`,ï:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`oe`,ő:`o`,ø:`o`,ù:`u`,ú:`u`,û:`u`,ü:`ue`,ű:`u`,ý:`y`,þ:`th`,ÿ:`y`,ẞ:`SS`,ا:`a`,أ:`a`,إ:`i`,آ:`aa`,ؤ:`u`,ئ:`e`,ء:`a`,ب:`b`,ت:`t`,ث:`th`,ج:`j`,ح:`h`,خ:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,ش:`sh`,ص:`s`,ض:`dh`,ط:`t`,ظ:`z`,ع:`a`,غ:`gh`,ف:`f`,ق:`q`,ك:`k`,ل:`l`,م:`m`,ن:`n`,ه:`h`,و:`w`,ي:`y`,ى:`a`,ة:`h`,ﻻ:`la`,ﻷ:`laa`,ﻹ:`lai`,ﻵ:`laa`,گ:`g`,چ:`ch`,پ:`p`,ژ:`zh`,ک:`k`,ی:`y`,"َ":`a`,"ً":`an`,"ِ":`e`,"ٍ":`en`,"ُ":`u`,"ٌ":`on`,"ْ":``,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`,က:`k`,ခ:`kh`,ဂ:`g`,ဃ:`ga`,င:`ng`,စ:`s`,ဆ:`sa`,ဇ:`z`,စျ:`za`,ည:`ny`,ဋ:`t`,ဌ:`ta`,ဍ:`d`,ဎ:`da`,ဏ:`na`,တ:`t`,ထ:`ta`,ဒ:`d`,ဓ:`da`,န:`n`,ပ:`p`,ဖ:`pa`,ဗ:`b`,ဘ:`ba`,မ:`m`,ယ:`y`,ရ:`ya`,လ:`l`,ဝ:`w`,သ:`th`,ဟ:`h`,ဠ:`la`,အ:`a`,"ြ":`y`,"ျ":`ya`,"ွ":`w`,"ြွ":`yw`,"ျွ":`ywa`,"ှ":`h`,ဧ:`e`,"၏":`-e`,ဣ:`i`,ဤ:`-i`,ဉ:`u`,ဦ:`-u`,ဩ:`aw`,သြော:`aw`,ဪ:`aw`,"၀":`0`,"၁":`1`,"၂":`2`,"၃":`3`,"၄":`4`,"၅":`5`,"၆":`6`,"၇":`7`,"၈":`8`,"၉":`9`,"္":``,"့":``,"း":``,č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`,ހ:`h`,ށ:`sh`,ނ:`n`,ރ:`r`,ބ:`b`,ޅ:`lh`,ކ:`k`,އ:`a`,ވ:`v`,މ:`m`,ފ:`f`,ދ:`dh`,ތ:`th`,ލ:`l`,ގ:`g`,ޏ:`gn`,ސ:`s`,ޑ:`d`,ޒ:`z`,ޓ:`t`,ޔ:`y`,ޕ:`p`,ޖ:`j`,ޗ:`ch`,ޘ:`tt`,ޙ:`hh`,ޚ:`kh`,ޛ:`th`,ޜ:`z`,ޝ:`sh`,ޞ:`s`,ޟ:`d`,ޠ:`t`,ޡ:`z`,ޢ:`a`,ޣ:`gh`,ޤ:`q`,ޥ:`w`,"ަ":`a`,"ާ":`aa`,"ި":`i`,"ީ":`ee`,"ު":`u`,"ޫ":`oo`,"ެ":`e`,"ޭ":`ey`,"ޮ":`o`,"ޯ":`oa`,"ް":``,ა:`a`,ბ:`b`,გ:`g`,დ:`d`,ე:`e`,ვ:`v`,ზ:`z`,თ:`t`,ი:`i`,კ:`k`,ლ:`l`,მ:`m`,ნ:`n`,ო:`o`,პ:`p`,ჟ:`zh`,რ:`r`,ს:`s`,ტ:`t`,უ:`u`,ფ:`p`,ქ:`k`,ღ:`gh`,ყ:`q`,შ:`sh`,ჩ:`ch`,ც:`ts`,ძ:`dz`,წ:`ts`,ჭ:`ch`,ხ:`kh`,ჯ:`j`,ჰ:`h`,α:`a`,β:`v`,γ:`g`,δ:`d`,ε:`e`,ζ:`z`,η:`i`,θ:`th`,ι:`i`,κ:`k`,λ:`l`,μ:`m`,ν:`n`,ξ:`ks`,ο:`o`,π:`p`,ρ:`r`,σ:`s`,τ:`t`,υ:`y`,φ:`f`,χ:`x`,ψ:`ps`,ω:`o`,ά:`a`,έ:`e`,ί:`i`,ό:`o`,ύ:`y`,ή:`i`,ώ:`o`,ς:`s`,ϊ:`i`,ΰ:`y`,ϋ:`y`,ΐ:`i`,Α:`A`,Β:`B`,Γ:`G`,Δ:`D`,Ε:`E`,Ζ:`Z`,Η:`I`,Θ:`TH`,Ι:`I`,Κ:`K`,Λ:`L`,Μ:`M`,Ν:`N`,Ξ:`KS`,Ο:`O`,Π:`P`,Ρ:`R`,Σ:`S`,Τ:`T`,Υ:`Y`,Φ:`F`,Χ:`X`,Ψ:`PS`,Ω:`O`,Ά:`A`,Έ:`E`,Ί:`I`,Ό:`O`,Ύ:`Y`,Ή:`I`,Ώ:`O`,Ϊ:`I`,Ϋ:`Y`,ā:`a`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,ū:`u`,Ā:`A`,Ē:`E`,Ģ:`G`,Ī:`I`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Ū:`U`,Ќ:`Kj`,ќ:`kj`,Љ:`Lj`,љ:`lj`,Њ:`Nj`,њ:`nj`,Тс:`Ts`,тс:`ts`,ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`E`,Ł:`L`,Ń:`N`,Ś:`S`,Ź:`Z`,Ż:`Z`,Є:`Ye`,І:`I`,Ї:`Yi`,Ґ:`G`,є:`ye`,і:`i`,ї:`yi`,ґ:`g`,ă:`a`,Ă:`A`,ș:`s`,Ș:`S`,ț:`t`,Ț:`T`,ţ:`t`,Ţ:`T`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,е:`e`,ё:`yo`,ж:`zh`,з:`z`,и:`i`,й:`i`,к:`k`,л:`l`,м:`m`,н:`n`,о:`o`,п:`p`,р:`r`,с:`s`,т:`t`,у:`u`,ф:`f`,х:`kh`,ц:`c`,ч:`ch`,ш:`sh`,щ:`sh`,ъ:``,ы:`y`,ь:``,э:`e`,ю:`yu`,я:`ya`,А:`A`,Б:`B`,В:`V`,Г:`G`,Д:`D`,Е:`E`,Ё:`Yo`,Ж:`Zh`,З:`Z`,И:`I`,Й:`I`,К:`K`,Л:`L`,М:`M`,Н:`N`,О:`O`,П:`P`,Р:`R`,С:`S`,Т:`T`,У:`U`,Ф:`F`,Х:`Kh`,Ц:`C`,Ч:`Ch`,Ш:`Sh`,Щ:`Sh`,Ъ:``,Ы:`Y`,Ь:``,Э:`E`,Ю:`Yu`,Я:`Ya`,ђ:`dj`,ј:`j`,ћ:`c`,џ:`dz`,Ђ:`Dj`,Ј:`j`,Ћ:`C`,Џ:`Dz`,ľ:`l`,ĺ:`l`,ŕ:`r`,Ľ:`L`,Ĺ:`L`,Ŕ:`R`,ş:`s`,Ş:`S`,ı:`i`,İ:`I`,ğ:`g`,Ğ:`G`,ả:`a`,Ả:`A`,ẳ:`a`,Ẳ:`A`,ẩ:`a`,Ẩ:`A`,đ:`d`,Đ:`D`,ẹ:`e`,Ẹ:`E`,ẽ:`e`,Ẽ:`E`,ẻ:`e`,Ẻ:`E`,ế:`e`,Ế:`E`,ề:`e`,Ề:`E`,ệ:`e`,Ệ:`E`,ễ:`e`,Ễ:`E`,ể:`e`,Ể:`E`,ỏ:`o`,ọ:`o`,Ọ:`o`,ố:`o`,Ố:`O`,ồ:`o`,Ồ:`O`,ổ:`o`,Ổ:`O`,ộ:`o`,Ộ:`O`,ỗ:`o`,Ỗ:`O`,ơ:`o`,Ơ:`O`,ớ:`o`,Ớ:`O`,ờ:`o`,Ờ:`O`,ợ:`o`,Ợ:`O`,ỡ:`o`,Ỡ:`O`,Ở:`o`,ở:`o`,ị:`i`,Ị:`I`,ĩ:`i`,Ĩ:`I`,ỉ:`i`,Ỉ:`i`,ủ:`u`,Ủ:`U`,ụ:`u`,Ụ:`U`,ũ:`u`,Ũ:`U`,ư:`u`,Ư:`U`,ứ:`u`,Ứ:`U`,ừ:`u`,Ừ:`U`,ự:`u`,Ự:`U`,ữ:`u`,Ữ:`U`,ử:`u`,Ử:`ư`,ỷ:`y`,Ỷ:`y`,ỳ:`y`,Ỳ:`Y`,ỵ:`y`,Ỵ:`Y`,ỹ:`y`,Ỹ:`Y`,ạ:`a`,Ạ:`A`,ấ:`a`,Ấ:`A`,ầ:`a`,Ầ:`A`,ậ:`a`,Ậ:`A`,ẫ:`a`,Ẫ:`A`,ắ:`a`,Ắ:`A`,ằ:`a`,Ằ:`A`,ặ:`a`,Ặ:`A`,ẵ:`a`,Ẵ:`A`,"⓪":`0`,"①":`1`,"②":`2`,"③":`3`,"④":`4`,"⑤":`5`,"⑥":`6`,"⑦":`7`,"⑧":`8`,"⑨":`9`,"⑩":`10`,"⑪":`11`,"⑫":`12`,"⑬":`13`,"⑭":`14`,"⑮":`15`,"⑯":`16`,"⑰":`17`,"⑱":`18`,"⑲":`18`,"⑳":`18`,"⓵":`1`,"⓶":`2`,"⓷":`3`,"⓸":`4`,"⓹":`5`,"⓺":`6`,"⓻":`7`,"⓼":`8`,"⓽":`9`,"⓾":`10`,"⓿":`0`,"⓫":`11`,"⓬":`12`,"⓭":`13`,"⓮":`14`,"⓯":`15`,"⓰":`16`,"⓱":`17`,"⓲":`18`,"⓳":`19`,"⓴":`20`,"Ⓐ":`A`,"Ⓑ":`B`,"Ⓒ":`C`,"Ⓓ":`D`,"Ⓔ":`E`,"Ⓕ":`F`,"Ⓖ":`G`,"Ⓗ":`H`,"Ⓘ":`I`,"Ⓙ":`J`,"Ⓚ":`K`,"Ⓛ":`L`,"Ⓜ":`M`,"Ⓝ":`N`,"Ⓞ":`O`,"Ⓟ":`P`,"Ⓠ":`Q`,"Ⓡ":`R`,"Ⓢ":`S`,"Ⓣ":`T`,"Ⓤ":`U`,"Ⓥ":`V`,"Ⓦ":`W`,"Ⓧ":`X`,"Ⓨ":`Y`,"Ⓩ":`Z`,"ⓐ":`a`,"ⓑ":`b`,"ⓒ":`c`,"ⓓ":`d`,"ⓔ":`e`,"ⓕ":`f`,"ⓖ":`g`,"ⓗ":`h`,"ⓘ":`i`,"ⓙ":`j`,"ⓚ":`k`,"ⓛ":`l`,"ⓜ":`m`,"ⓝ":`n`,"ⓞ":`o`,"ⓟ":`p`,"ⓠ":`q`,"ⓡ":`r`,"ⓢ":`s`,"ⓣ":`t`,"ⓤ":`u`,"ⓦ":`v`,"ⓥ":`w`,"ⓧ":`x`,"ⓨ":`y`,"ⓩ":`z`,"“":`"`,"”":`"`,"‘":`'`,"’":`'`,"∂":`d`,ƒ:`f`,"™":`(TM)`,"©":`(C)`,œ:`oe`,Œ:`OE`,"®":`(R)`,"†":`+`,"℠":`(SM)`,"…":`...`,"˚":`o`,º:`o`,ª:`a`,"•":`*`,"၊":`,`,"။":`.`,$:`USD`,"€":`EUR`,"₢":`BRN`,"₣":`FRF`,"£":`GBP`,"₤":`ITL`,"₦":`NGN`,"₧":`ESP`,"₩":`KRW`,"₪":`ILS`,"₫":`VND`,"₭":`LAK`,"₮":`MNT`,"₯":`GRD`,"₱":`ARS`,"₲":`PYG`,"₳":`ARA`,"₴":`UAH`,"₵":`GHS`,"¢":`cent`,"¥":`CNY`,元:`CNY`,円:`YEN`,"﷼":`IRR`,"₠":`EWE`,"฿":`THB`,"₨":`INR`,"₹":`INR`,"₰":`PF`,"₺":`TRY`,"؋":`AFN`,"₼":`AZN`,лв:`BGN`,"៛":`KHR`,"₡":`CRC`,"₸":`KZT`,ден:`MKD`,zł:`PLN`,"₽":`RUB`,"₾":`GEL`},r=[`်`,`ް`],i={"ာ":`a`,"ါ":`a`,"ေ":`e`,"ဲ":`e`,"ိ":`i`,"ီ":`i`,"ို":`o`,"ု":`u`,"ူ":`u`,"ေါင်":`aung`,"ော":`aw`,"ော်":`aw`,"ေါ":`aw`,"ေါ်":`aw`,"်":`်`,က်:`et`,"ိုက်":`aik`,"ောက်":`auk`,င်:`in`,"ိုင်":`aing`,"ောင်":`aung`,စ်:`it`,ည်:`i`,တ်:`at`,"ိတ်":`eik`,"ုတ်":`ok`,"ွတ်":`ut`,"ေတ်":`it`,ဒ်:`d`,"ိုဒ်":`ok`,"ုဒ်":`ait`,န်:`an`,"ာန်":`an`,"ိန်":`ein`,"ုန်":`on`,"ွန်":`un`,ပ်:`at`,"ိပ်":`eik`,"ုပ်":`ok`,"ွပ်":`ut`,န်ုပ်:`nub`,မ်:`an`,"ိမ်":`ein`,"ုမ်":`on`,"ွမ်":`un`,ယ်:`e`,"ိုလ်":`ol`,ဉ်:`in`,"ံ":`an`,"ိံ":`ein`,"ုံ":`on`,"ައް":`ah`,"ަށް":`ah`},a={en:{},az:{ç:`c`,ə:`e`,ğ:`g`,ı:`i`,ö:`o`,ş:`s`,ü:`u`,Ç:`C`,Ə:`E`,Ğ:`G`,İ:`I`,Ö:`O`,Ş:`S`,Ü:`U`},cs:{č:`c`,ď:`d`,ě:`e`,ň:`n`,ř:`r`,š:`s`,ť:`t`,ů:`u`,ž:`z`,Č:`C`,Ď:`D`,Ě:`E`,Ň:`N`,Ř:`R`,Š:`S`,Ť:`T`,Ů:`U`,Ž:`Z`},fi:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},hu:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`,ü:`u`,Ü:`U`,ű:`u`,Ű:`U`},lt:{ą:`a`,č:`c`,ę:`e`,ė:`e`,į:`i`,š:`s`,ų:`u`,ū:`u`,ž:`z`,Ą:`A`,Č:`C`,Ę:`E`,Ė:`E`,Į:`I`,Š:`S`,Ų:`U`,Ū:`U`},lv:{ā:`a`,č:`c`,ē:`e`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,š:`s`,ū:`u`,ž:`z`,Ā:`A`,Č:`C`,Ē:`E`,Ģ:`G`,Ī:`i`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Š:`S`,Ū:`u`,Ž:`Z`},pl:{ą:`a`,ć:`c`,ę:`e`,ł:`l`,ń:`n`,ó:`o`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ć:`C`,Ę:`e`,Ł:`L`,Ń:`N`,Ó:`O`,Ś:`S`,Ź:`Z`,Ż:`Z`},sv:{ä:`a`,Ä:`A`,ö:`o`,Ö:`O`},sk:{ä:`a`,Ä:`A`},sr:{љ:`lj`,њ:`nj`,Љ:`Lj`,Њ:`Nj`,đ:`dj`,Đ:`Dj`},tr:{Ü:`U`,Ö:`O`,ü:`u`,ö:`o`}},o={ar:{"∆":`delta`,"∞":`la-nihaya`,"♥":`hob`,"&":`wa`,"|":`aw`,"<":`aqal-men`,">":`akbar-men`,"∑":`majmou`,"¤":`omla`},az:{},ca:{"∆":`delta`,"∞":`infinit`,"♥":`amor`,"&":`i`,"|":`o`,"<":`menys que`,">":`mes que`,"∑":`suma dels`,"¤":`moneda`},cs:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`nebo`,"<":`mensi nez`,">":`vetsi nez`,"∑":`soucet`,"¤":`mena`},de:{"∆":`delta`,"∞":`unendlich`,"♥":`Liebe`,"&":`und`,"|":`oder`,"<":`kleiner als`,">":`groesser als`,"∑":`Summe von`,"¤":`Waehrung`},dv:{"∆":`delta`,"∞":`kolunulaa`,"♥":`loabi`,"&":`aai`,"|":`noonee`,"<":`ah vure kuda`,">":`ah vure bodu`,"∑":`jumula`,"¤":`faisaa`},en:{"∆":`delta`,"∞":`infinity`,"♥":`love`,"&":`and`,"|":`or`,"<":`less than`,">":`greater than`,"∑":`sum`,"¤":`currency`},es:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`y`,"|":`u`,"<":`menos que`,">":`mas que`,"∑":`suma de los`,"¤":`moneda`},fa:{"∆":`delta`,"∞":`bi-nahayat`,"♥":`eshgh`,"&":`va`,"|":`ya`,"<":`kamtar-az`,">":`bishtar-az`,"∑":`majmooe`,"¤":`vahed`},fi:{"∆":`delta`,"∞":`aarettomyys`,"♥":`rakkaus`,"&":`ja`,"|":`tai`,"<":`pienempi kuin`,">":`suurempi kuin`,"∑":`summa`,"¤":`valuutta`},fr:{"∆":`delta`,"∞":`infiniment`,"♥":`Amour`,"&":`et`,"|":`ou`,"<":`moins que`,">":`superieure a`,"∑":`somme des`,"¤":`monnaie`},ge:{"∆":`delta`,"∞":`usasruloba`,"♥":`siqvaruli`,"&":`da`,"|":`an`,"<":`naklebi`,">":`meti`,"∑":`jami`,"¤":`valuta`},gr:{},hu:{"∆":`delta`,"∞":`vegtelen`,"♥":`szerelem`,"&":`es`,"|":`vagy`,"<":`kisebb mint`,">":`nagyobb mint`,"∑":`szumma`,"¤":`penznem`},it:{"∆":`delta`,"∞":`infinito`,"♥":`amore`,"&":`e`,"|":`o`,"<":`minore di`,">":`maggiore di`,"∑":`somma`,"¤":`moneta`},lt:{"∆":`delta`,"∞":`begalybe`,"♥":`meile`,"&":`ir`,"|":`ar`,"<":`maziau nei`,">":`daugiau nei`,"∑":`suma`,"¤":`valiuta`},lv:{"∆":`delta`,"∞":`bezgaliba`,"♥":`milestiba`,"&":`un`,"|":`vai`,"<":`mazak neka`,">":`lielaks neka`,"∑":`summa`,"¤":`valuta`},my:{"∆":`kwahkhyaet`,"∞":`asaonasme`,"♥":`akhyait`,"&":`nhin`,"|":`tho`,"<":`ngethaw`,">":`kyithaw`,"∑":`paungld`,"¤":`ngwekye`},mk:{},nl:{"∆":`delta`,"∞":`oneindig`,"♥":`liefde`,"&":`en`,"|":`of`,"<":`kleiner dan`,">":`groter dan`,"∑":`som`,"¤":`valuta`},pl:{"∆":`delta`,"∞":`nieskonczonosc`,"♥":`milosc`,"&":`i`,"|":`lub`,"<":`mniejsze niz`,">":`wieksze niz`,"∑":`suma`,"¤":`waluta`},pt:{"∆":`delta`,"∞":`infinito`,"♥":`amor`,"&":`e`,"|":`ou`,"<":`menor que`,">":`maior que`,"∑":`soma`,"¤":`moeda`},ro:{"∆":`delta`,"∞":`infinit`,"♥":`dragoste`,"&":`si`,"|":`sau`,"<":`mai mic ca`,">":`mai mare ca`,"∑":`suma`,"¤":`valuta`},ru:{"∆":`delta`,"∞":`beskonechno`,"♥":`lubov`,"&":`i`,"|":`ili`,"<":`menshe`,">":`bolshe`,"∑":`summa`,"¤":`valjuta`},sk:{"∆":`delta`,"∞":`nekonecno`,"♥":`laska`,"&":`a`,"|":`alebo`,"<":`menej ako`,">":`viac ako`,"∑":`sucet`,"¤":`mena`},sr:{},tr:{"∆":`delta`,"∞":`sonsuzluk`,"♥":`ask`,"&":`ve`,"|":`veya`,"<":`kucuktur`,">":`buyuktur`,"∑":`toplam`,"¤":`para birimi`},uk:{"∆":`delta`,"∞":`bezkinechnist`,"♥":`lubov`,"&":`i`,"|":`abo`,"<":`menshe`,">":`bilshe`,"∑":`suma`,"¤":`valjuta`},vn:{"∆":`delta`,"∞":`vo cuc`,"♥":`yeu`,"&":`va`,"|":`hoac`,"<":`nho hon`,">":`lon hon`,"∑":`tong`,"¤":`tien te`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),c=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),l=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),u=function(e,t){var u=`-`,d=``,m=``,h=!0,g={},_,v,y,b,x,S,C,w,ee,T,E,te,D,O,k=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),C=o.en,w=a.en,typeof t==`object`)for(E in _=t.maintainCase||!1,g=t.custom&&typeof t.custom==`object`?t.custom:g,y=+t.truncate>1&&t.truncate||!1,b=t.uric||!1,x=t.uricNoSlash||!1,S=t.mark||!1,h=!(t.symbols===!1||t.lang===!1),u=t.separator||u,b&&(k+=s),x&&(k+=c),S&&(k+=l),C=t.lang&&o[t.lang]&&h?o[t.lang]:h?o.en:{},w=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){g[e+``]=e+``}),v=!0):v=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){g[e+``]=e+``}),Object.keys(g).forEach(function(t){var n=t.length>1?RegExp(`\\b`+f(t)+`\\b`,`gi`):new RegExp(f(t),`gi`);e=e.replace(n,g[t])}),g)k+=E;for(k+=u,k=f(k),e=e.replace(/(^\s+|\s+$)/g,``),D=!1,O=!1,T=0,te=e.length;T<te;T++)E=e[T],p(E,g)?D=!1:w[E]?(E=D&&w[E].match(/[A-Za-z0-9]/)?` `+w[E]:w[E],D=!1):E in n?(T+1<te&&r.indexOf(e[T+1])>=0?(m+=E,E=``):O===!0?(E=i[m]+n[E],m=``):E=D&&n[E].match(/[A-Za-z0-9]/)?` `+n[E]:n[E],D=!1,O=!1):E in i?(m+=E,E=``,T===te-1&&(E=i[m]),O=!0):C[E]&&!(b&&s.indexOf(E)!==-1)&&!(x&&c.indexOf(E)!==-1)?(E=D||d.substr(-1).match(/[A-Za-z0-9]/)?u+C[E]:C[E],E+=e[T+1]!==void 0&&e[T+1].match(/[A-Za-z0-9]/)?u:``,D=!0):(O===!0?(E=i[m]+E,m=``,O=!1):D&&(/[A-Za-z0-9]/.test(E)||d.substr(-1).match(/A-Za-z0-9]/))&&(E=` `+E),D=!1),d+=E.replace(RegExp(`[^\\w\\s`+k+`_-]`,`g`),u);return v&&(d=d.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(g).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),d=d.replace(/\s+/g,u).replace(RegExp(`\\`+u+`+`,`g`),u).replace(RegExp(`(^\\`+u+`+|\\`+u+`+$)`,`g`),``),y&&d.length>y&&(ee=d.charAt(y)===u,d=d.slice(0,y),ee||(d=d.slice(0,d.lastIndexOf(u)))),!_&&!v&&(d=d.toLowerCase()),d},d=function(e){return function(t){return u(t,e)}},f=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},p=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=u,t.exports.createSlug=d;else if(typeof define<`u`&&define.amd)define([],function(){return u});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=u,e.createSlug=d}catch{}})(e)}));Ti(Ci(((e,t)=>{t.exports=po()}))(),1),H.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function mo(e){q.highPerfModeEnabled=e??!q.highPerfModeEnabled,!e&&K.value&&no(K.value.app)}function ho(e){q.devtoolsClientDetected={...q.devtoolsClientDetected,...e},mo(!Object.values(q.devtoolsClientDetected).some(Boolean))}H.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=ho;var go=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},_o=class{constructor(e){this.generateIdentifier=e,this.kv=new go}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},vo=class extends _o{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function yo(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function bo(e,t){let n=yo(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function xo(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function So(e,t){return e.indexOf(t)!==-1}function Co(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var wo=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return bo(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},To=e=>Object.prototype.toString.call(e).slice(8,-1),Eo=e=>e===void 0,Do=e=>e===null,Oo=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,ko=e=>Oo(e)&&Object.keys(e).length===0,X=e=>Array.isArray(e),Ao=e=>typeof e==`string`,jo=e=>typeof e==`number`&&!isNaN(e),Mo=e=>typeof e==`boolean`,No=e=>e instanceof RegExp,Po=e=>e instanceof Map,Fo=e=>e instanceof Set,Io=e=>To(e)===`Symbol`,Lo=e=>e instanceof Date&&!isNaN(e.valueOf()),Ro=e=>e instanceof Error,zo=e=>typeof e==`number`&&isNaN(e),Bo=e=>Mo(e)||Do(e)||Eo(e)||jo(e)||Ao(e)||Io(e),Vo=e=>typeof e==`bigint`,Ho=e=>e===1/0||e===-1/0,Uo=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Wo=e=>e instanceof URL,Go=e=>e.replace(/\./g,`\\.`),Ko=e=>e.map(String).map(Go).join(`.`),qo=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};function Z(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Jo=[Z(Eo,`undefined`,()=>null,()=>void 0),Z(Vo,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Z(Lo,`Date`,e=>e.toISOString(),e=>new Date(e)),Z(Ro,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Z(No,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Z(Fo,`set`,e=>[...e.values()],e=>new Set(e)),Z(Po,`map`,e=>[...e.entries()],e=>new Map(e)),Z(e=>zo(e)||Ho(e),`number`,e=>zo(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Z(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Z(Wo,`URL`,e=>e.toString(),e=>new URL(e))];function Yo(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Xo=Yo((e,t)=>Io(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),Zo=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Qo=Yo(Uo,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=Zo[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function $o(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var es=Yo($o,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),ts=Yo((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),ns=[es,Xo,ts,Qo],rs=(e,t)=>{let n=Co(ns,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=Co(Jo,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},is={};Jo.forEach(e=>{is[e.annotation]=e});var as=(e,t,n)=>{if(X(t))switch(t[0]){case`symbol`:return Xo.untransform(e,t,n);case`class`:return es.untransform(e,t,n);case`custom`:return ts.untransform(e,t,n);case`typed-array`:return Qo.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=is[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},os=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function ss(e){if(So(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(So(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(So(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var cs=(e,t)=>{ss(t);for(let n=0;n<t.length;n++){let r=t[n];if(Fo(e))e=os(e,+r);else if(Po(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=os(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o);break}}else e=e[r]}return e},ls=(e,t,n)=>{if(ss(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(X(r)){let e=+n;r=r[e]}else if(Oo(r))r=r[n];else if(Fo(r)){let e=+n;r=os(r,e)}else if(Po(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=os(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o);break}}}let i=t[t.length-1];if(X(r)?r[+i]=n(r[+i]):Oo(r)&&(r[i]=n(r[i])),Fo(r)){let e=os(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(Po(r)){let e=+t[t.length-2],a=os(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)));break}}return e};function us(e,t,n=[]){if(!e)return;if(!X(e)){xo(e,(e,r)=>us(e,t,[...n,...qo(r)]));return}let[r,i]=e;i&&xo(i,(e,r)=>{us(e,t,[...n,...qo(r)])}),t(r,n)}function ds(e,t,n){return us(t,(t,r)=>{e=ls(e,r,e=>as(e,t,n))}),e}function fs(e,t){function n(t,n){let r=cs(e,qo(n));t.map(qo).forEach(t=>{e=ls(e,t,()=>r)})}if(X(t)){let[r,i]=t;r.forEach(t=>{e=ls(e,qo(t),()=>e)}),i&&xo(i,n)}else xo(t,n);return e}var ps=(e,t)=>Oo(e)||X(e)||Po(e)||Fo(e)||$o(e,t);function ms(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function hs(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(Ko):n[Ko(i)]=a.map(Ko)}),r?ko(n)?[r]:[r,n]:ko(n)?void 0:n}var gs=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=Bo(e);if(!s){ms(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!ps(e,n)){let t=rs(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(So(a,e))return{transformedValue:null};let c=rs(e,n),l=c?.value??e,u=X(l)?[]:{},d={};xo(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=gs(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,X(l.annotations)?d[c]=l.annotations:Oo(l.annotations)&&xo(l.annotations,(e,t)=>{d[Go(c)+`.`+t]=e})});let f=ko(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f};function _s(e){return Object.prototype.toString.call(e).slice(8,-1)}function vs(e){return _s(e)===`Array`}function ys(e){if(_s(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function bs(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function xs(e,t={}){if(vs(e))return e.map(e=>xs(e,t));if(!ys(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(vs(t.props)&&!t.props.includes(r))return n;let i=e[r];return bs(n,r,xs(i,t),e,t.nonenumerable),n},{})}var Q=class{constructor({dedupe:e=!1}={}){this.classRegistry=new vo,this.symbolRegistry=new _o(e=>e.description??``),this.customTransformerRegistry=new wo,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=gs(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=hs(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=xs(t);return n?.values&&(r=ds(r,n.values,this)),n?.referentialEqualities&&(r=fs(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};Q.defaultInstance=new Q,Q.serialize=Q.defaultInstance.serialize.bind(Q.defaultInstance),Q.deserialize=Q.defaultInstance.deserialize.bind(Q.defaultInstance),Q.stringify=Q.defaultInstance.stringify.bind(Q.defaultInstance),Q.parse=Q.defaultInstance.parse.bind(Q.defaultInstance),Q.registerClass=Q.defaultInstance.registerClass.bind(Q.defaultInstance),Q.registerSymbol=Q.defaultInstance.registerSymbol.bind(Q.defaultInstance),Q.registerCustom=Q.defaultInstance.registerCustom.bind(Q.defaultInstance),Q.allowErrorProps=Q.defaultInstance.allowErrorProps.bind(Q.defaultInstance),Q.serialize,Q.deserialize,Q.stringify,Q.parse,Q.registerClass,Q.registerCustom,Q.registerSymbol,Q.allowErrorProps,H.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],H.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,H.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,H.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,H.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,H.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;var Ss={template:`<div>This is component</div>`},Cs=R({name:`parentA`,path:`/parentA/[paramA]`}),ws=R({parent:Cs,name:`parentA.childA`,path:`/childA/[?paramB]`});R({parent:Cs,name:`parentA.childB`,path:`/childB/[paramD]`,component:Ss}),R({parent:ws,name:`parentA.childA.grandChildA`,path:`/[paramC]`,component:Ss}),R({name:`parentB`,path:`/parentB`,component:Ss}),R({name:`parentC`,path:`/`,component:Ss});function Ts(e,t){return t===`1`?e:`${e} ${t}`}var Es=({route:e})=>!!e.name,Ds=({route:e,payload:t})=>{if(!t.filter)return!0;if(!me(e))return!1;let n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},Os=e=>Es(e)&&Ds(e),ks=T(),As=2282478,js=2278750,Ms=1483594;function Ns(e,t={match:!1,exactMatch:!1}){let n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:As}),t.match&&n.push({label:`match`,textColor:0,backgroundColor:js}),t.exactMatch&&n.push({label:`exact-match`,textColor:0,backgroundColor:Ms}),{id:e.id,label:e.name,tags:n}}function Ps(e,t){if(!t||!(`id`in t)||!(`matches`in t))return{match:!1,exactMatch:!1};let n=t.id===e.id;return{match:t.matches.some(t=>t.id===e.id),exactMatch:n}}function Fs(e){let t=[];return me(e)?(t.push({editable:!1,key:`name`,value:e.name}),t.push({editable:!1,key:`path`,value:e.schema.path.value}),t.push({editable:!1,key:`query`,value:e.schema.query.value}),t.push({editable:!1,key:`hash`,value:e.schema.hash.value}),t.push({editable:!1,key:`meta`,value:e.meta}),t):t}function Is({router:e,app:n,routes:r}){if(!mr()||e.hasDevtools)return;e.hasDevtools=!0;let i=ks(),a=new Map(r.map(e=>[e.id,e])),o=`kitbag-router-routes.${i}`;eo({id:`kitbag-router.${i}`,label:`Kitbag Router`,packageName:`@kitbag/router`,homepage:`https://router.kitbag.dev/`,componentStateTypes:[`Routing`],logo:`https://kitbag.dev/kitbag-logo-circle.svg`,app:n},s=>{s.addInspector({id:o,label:Ts(`Routes`,i),treeFilterPlaceholder:`Search routes`}),s.on.getInspectorTree(t=>{t.app!==n||t.inspectorId!==o||(t.rootNodes=r.filter(e=>Os({route:e,payload:t})).map(t=>Ns(t,Ps(t,e.route))))}),(0,t.watch)(()=>e.route,()=>{s.sendInspectorTree(o)},{deep:!0,immediate:!1}),s.on.getInspectorState(e=>{if(e.app!==n||e.inspectorId!==o)return;let t=a.get(e.nodeId);t&&(e.state={options:Fs(t)})}),s.sendInspectorTree(o),s.sendInspectorState(o)})}function Ls(e,t){let n=new URLSearchParams(e),r=new URLSearchParams(t);for(let[e,t]of r.entries())n.delete(e,t);return n}function Rs(e,t,n={}){let{query:r,hash:i}=L(t);for(let a of e){if(!Ar(a))continue;let{success:e,params:o}=a.tryParse(t,n);if(e){let{query:e}=L(a.stringify(o)),t=Ls(r,e);return Dr(a,o,{...n,query:t,hash:i})}}}var zs=/^(\/.+?)\/+$/;function Bs(e){let{path:t,...n}=L(e);return Ct({...n,path:t.replace(zs,`$1`)})}function Vs(e){let{path:t}=L(e);return zs.test(t)}var Hs;function Us(e){!u(e)||!mr()||(Hs??=document.title,e.title.then(e=>{document.title=e??Hs??``}))}function Ws(){let e=e=>{r.value=e},n=()=>{r.value=null},r=(0,t.ref)(null);return{currentRejection:r,updateRejection:e,clearRejection:n}}function Gs(e,n,r=[]){let i=n?.isGlobalRouter??!0?Ur:Symbol(),a=n?.removeTrailingSlashes??!0,{routes:o,getRouteByName:s,getRejectionByType:c}=Mr(e,r,n),l=c(`NotFound`),u=dn();u.addGlobalRouteHooks(Ir(r));let d=T(),f=pr(),p=Br(i),m=Tr(),h=hr({mode:n?.historyMode,listener:({location:e})=>{_(V(e),{state:e.state,replace:!0})}});function g(e,t={}){let n=!ae(e),r=o.filter(e=>e.isRelative===n),i={removeTrailingSlashes:a};return Rs(r,e,{...t,...i})}async function _(e,t={}){if(Vs(e)&&a){let n=Bs(e);if(S(n))return x(n,t)}let n=d();h.stopListening();let r=g(e,t)??l.route,i=j(n),o=await u.runBeforeRouteHooks({to:r,from:i});switch(o.status){case`ABORT`:return;case`PUSH`:h.update(e,t),await b(...o.to);return;case`REJECT`:h.update(e,t),C(o.type,r,i);break;case`SUCCESS`:h.update(e,t),D();break;default:throw Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(o)}`)}ae(e)||v(n,r,i);let s=await u.runAfterRouteHooks({to:r,from:i});switch(s.status){case`PUSH`:await b(...s.to);break;case`REJECT`:C(s.type,r,i);break;case`SUCCESS`:break;default:let e=s;throw Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(e)}`)}Us(r),h.startListening()}function v(e,t,n){let r=e;f.setProps(t).then(i=>{if(r===e)switch(i.status){case`SUCCESS`:break;case`PUSH`:b(...i.to);break;case`REJECT`:C(i.type,t,n);break;default:let e=i;throw Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(e)}`)}}).catch(e=>{try{u.runErrorHooks(e,{to:t,from:n,source:`props`})}catch(e){if(e instanceof z){b(...e.response.to);return}if(e instanceof B){C(e.response.type,t,n);return}throw e}}),ne(t)}let y=(e,t={},n={})=>{let r=s(e);if(!r)throw new Er(e);return Dr(r,t,n)},b=(e,t,n)=>{if(S(e)){let n={...t};return _(wt(e,{query:n.query,hash:n.hash}),n)}if(typeof e==`string`){let{replace:r,...i}={...n},a=y(e,{...t},i),o=wr({...a.matched.state},{...a.state,...i.state});return _(a.href,{replace:r,state:o})}let{replace:r,...i}={...t},a=wr({...e.matched.state},{...e.state,...i.state});return _(wt(e.href,{query:i.query,hash:i.hash}),{replace:r,state:a})},x=(e,t,n)=>{if(S(e))return b(e,{...t,replace:!0});if(typeof e==`string`){let r={...n,replace:!0};return b(e,{...t},r)}return b(e,{...t,replace:!0})};function C(e,t=null,n=null){let r=c(e);r&&(u.runRejectionHooks(r,{to:t,from:n}),E(r))}let w=e=>{C(e)},{currentRejection:ee,updateRejection:E,clearRejection:D}=Ws(),{currentRoute:O,routerRoute:k,updateRoute:ne}=ur(i,l.route,b),A=vr(n?.initialUrl),re=h.location.state,{host:ie}=L(A),ae=dr(ie),oe=!1,se=(0,t.ref)(!1),{promise:ce,resolve:le}=Promise.withResolvers();async function ue(){if(oe)return ce;oe=!0,ge(o)&&await ve(),await _(A,{replace:!0,state:re}),h.startListening(),le(),se.value=!0}function de(){h.stopListening()}function j(e){return te(e)?null:{...O}}function fe(e){u.setVueApp(e),f.setVueApp(e);let t=Tn(i),n=Vn(i);e.component(`RouterView`,t),e.component(`RouterLink`,n),e.provide(_n(i),ee),e.provide(un(i),u),e.provide(En(i),f),e.provide(hn(i),p),e.provide(Fn,m),e.provide(i,M),Is({router:M,app:e,routes:o}),ue()}let M={route:k,resolve:y,find:g,push:b,replace:x,reject:w,refresh:h.refresh,forward:h.forward,back:h.back,go:h.go,install:fe,isExternal:ae,onBeforeRouteEnter:u.onBeforeRouteEnter,onBeforeRouteUpdate:u.onBeforeRouteUpdate,onBeforeRouteLeave:u.onBeforeRouteLeave,onAfterRouteEnter:u.onAfterRouteEnter,onAfterRouteUpdate:u.onAfterRouteUpdate,onAfterRouteLeave:u.onAfterRouteLeave,onError:u.onError,onRejection:u.onRejection,prefetch:n?.prefetch,start:ue,started:se,stop:de,key:i,hasDevtools:!1};return M}var $=Un(Ur),Ks=$.onBeforeRouteLeave,qs=$.onBeforeRouteUpdate,Js=$.onAfterRouteLeave,Ys=$.onAfterRouteUpdate,Xs=$.isRoute,Zs=$.RouterView,Qs=$.RouterLink,$s=$.useRoute,ec=$.useRouter,tc=$.useQueryValue,nc=$.useLink,rc=$.useRejection;e.DuplicateParamsError=a,e.MetaPropertyConflict=n,e.RouterLink=Qs,e.RouterNotInstalledError=w,e.RouterView=Zs,e.UseRouteInvalidError=ee,e.arrayOf=Yn,e.asUrlString=C,e.combineHooks=h,e.combineRoutes=x,e.createExternalRoute=Kt,e.createParam=ce,e.createRejection=Wt,e.createRoute=R,e.createRouter=Gs,e.createRouterAssets=Un,e.createRouterPlugin=Kn,e.createUrl=Dt,e.getHooks=m,e.isRoute=Xs,e.isUrlString=S,e.isWithComponent=_,e.isWithComponentProps=v,e.isWithComponentPropsRecord=b,e.isWithComponents=y,e.isWithParent=g,e.literal=Le,e.onAfterRouteLeave=Js,e.onAfterRouteUpdate=Ys,e.onBeforeRouteLeave=Ks,e.onBeforeRouteUpdate=qs,e.tupleOf=Zn,e.unionOf=qn,e.useLink=nc,e.useQueryValue=tc,e.useRejection=rc,e.useRoute=$s,e.useRouter=ec,e.withDefault=ue,e.withParams=_t});
|