@stonecrop/desktop 0.2.64 โ†’ 0.2.65

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.
@@ -1,53 +1,53 @@
1
- (function(J,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(J=typeof globalThis<"u"?globalThis:J||self,r(J["@stonecrop/desktop"]={},J.Vue))})(this,function(J,r){"use strict";const ur={class:"action-menu-icon"},dr=["onclick"],pr={key:1},fr=["onClick"],mr={class:"dropdown-container"},hr={class:"dropdown"},gr=["onclick"],yr=["href"],wr={class:"dropdown-item"},br=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),s=r.ref(!1),a=r.ref(!1);r.onMounted(()=>{i()});const i=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},c=()=>{s.value=!0,o.value=setTimeout(()=>{s.value&&(n.value=!0)},500)},l=()=>{s.value=!1,a.value=!1,clearTimeout(o.value),n.value=!1},p=d=>{const u=!t.value[d].show;i(),t.value[d].show=u};return(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:c,onMouseleave:l},[r.createElementVNode("div",ur,[r.createElementVNode("div",{id:"chevron",onClick:u[0]||(u[0]=f=>a.value=!a.value)},u[1]||(u[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),u[2]||(u[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,m)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,dr)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",pr,[r.createElementVNode("button",{class:"button-default",onClick:h=>p(m)},r.toDisplayString(f.label),9,fr),r.withDirectives(r.createElementVNode("div",mr,[r.createElementVNode("div",hr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,h=>(r.openBlock(),r.createElementBlock("div",{key:h.label},[h.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:h.action,class:"dropdown-item"},r.toDisplayString(h.label),9,gr)):h.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:h.link},[r.createElementVNode("button",wr,r.toDisplayString(h.label),1)],8,yr)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),lt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},sn=lt(br,[["__scopeId","data-v-4fb5c934"]]),vr={};function Er(e,t){return r.openBlock(),r.createElementBlock("dialog")}const an=lt(vr,[["render",Er]]),_r=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kr={class:"aform"},$r=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),s=i=>{let c={};for(const[l,p]of Object.entries(i))["component","fieldtype"].includes(l)||(c[l]=p),l==="rows"&&p&&p.length===0&&(c.rows=o.value[i.fieldname]);return c},a=r.computed({get:()=>e.modelValue.map((i,c)=>r.computed({get(){return i.value},set:l=>{e.modelValue[c].value=l,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(i,c)=>(r.openBlock(),r.createElementBlock("form",kr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.modelValue,(l,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.component),r.mergeProps({key:p,schema:l,modelValue:a.value[p].value,"onUpdate:modelValue":d=>a.value[p].value=d,data:o.value[l.fieldname],readonly:i.readonly,ref_for:!0},s(l)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),Nr=_r($r,[["__scopeId","data-v-d9ce3008"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Or=Object.defineProperty,Sr=(e,t,n)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Sr(e,typeof t!="symbol"?t+"":t,n);function ut(e){this.message=e||""}ut.prototype=Object.create(Error.prototype,{constructor:{value:ut},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const cn=class it{constructor(t,n,o,s,a){if(K(this,"name","Stonecrop"),K(this,"registry"),K(this,"schema"),K(this,"workflow"),K(this,"actions"),K(this,"store"),it._root)return it._root;it._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=s,this.actions=a}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ut(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const s=this.registry.registry[t.slug].actions.get(n),{initialState:a}=this.workflow;this.workflow.transition(a,{type:n}),s.length>0&&s.forEach(i=>{new Function(i)(o)})}};K(cn,"_root");let xr=cn;var ln=!1;function ze(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function dt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Cr(){return un().__VUE_DEVTOOLS_GLOBAL_HOOK__}function un(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Pr=typeof Proxy=="function",Dr="devtools-plugin:setup",Vr="plugin:settings:set";let Se,pt;function Ir(){var e;return Se!==void 0||(typeof window<"u"&&window.performance?(Se=!0,pt=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(Se=!0,pt=globalThis.perf_hooks.performance):Se=!1),Se}function Rr(){return Ir()?pt.now():Date.now()}class Ar{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const i in t.settings){const c=t.settings[i];o[i]=c.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},o);try{const i=localStorage.getItem(s),c=JSON.parse(i);Object.assign(a,c)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}a=i},now(){return Rr()}},n&&n.on(Vr,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...l)=>{this.onQueue.push({method:c,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...l)=>(this.targetQueue.push({method:c,args:l,resolve:()=>{}}),this.fallbacks[c](...l)):(...l)=>new Promise(p=>{this.targetQueue.push({method:c,args:l,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ft(e,t){const n=e,o=un(),s=Cr(),a=Pr&&n.enableEarlyProxy;if(s&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(Dr,e,t);else{const i=a?new Ar(n,s):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
1
+ (function(J,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(J=typeof globalThis<"u"?globalThis:J||self,r(J["@stonecrop/desktop"]={},J.Vue))})(this,function(J,r){"use strict";const ur={class:"action-menu-icon"},dr=["onclick"],pr={key:1},fr=["onClick"],hr={class:"dropdown-container"},mr={class:"dropdown"},gr=["onclick"],yr=["href"],wr={class:"dropdown-item"},br=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),s=r.ref(!1),a=r.ref(!1);r.onMounted(()=>{i()});const i=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},c=()=>{s.value=!0,o.value=setTimeout(()=>{s.value&&(n.value=!0)},500)},l=()=>{s.value=!1,a.value=!1,clearTimeout(o.value),n.value=!1},p=d=>{const u=!t.value[d].show;i(),t.value[d].show=u};return(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:c,onMouseleave:l},[r.createElementVNode("div",ur,[r.createElementVNode("div",{id:"chevron",onClick:u[0]||(u[0]=f=>a.value=!a.value)},u[1]||(u[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),u[2]||(u[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,dr)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",pr,[r.createElementVNode("button",{class:"button-default",onClick:m=>p(h)},r.toDisplayString(f.label),9,fr),r.withDirectives(r.createElementVNode("div",hr,[r.createElementVNode("div",mr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,m=>(r.openBlock(),r.createElementBlock("div",{key:m.label},[m.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:m.action,class:"dropdown-item"},r.toDisplayString(m.label),9,gr)):m.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:m.link},[r.createElementVNode("button",wr,r.toDisplayString(m.label),1)],8,yr)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),ut=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},sn=ut(br,[["__scopeId","data-v-4fb5c934"]]),vr={};function Er(e,t){return r.openBlock(),r.createElementBlock("dialog")}const an=ut(vr,[["render",Er]]),_r=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kr={class:"aform"},Nr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),s=i=>{let c={};for(const[l,p]of Object.entries(i))["component","fieldtype"].includes(l)||(c[l]=p),l==="rows"&&p&&p.length===0&&(c.rows=o.value[i.fieldname]);return c},a=r.computed({get:()=>e.modelValue.map((i,c)=>r.computed({get(){return i.value},set:l=>{e.modelValue[c].value=l,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(i,c)=>(r.openBlock(),r.createElementBlock("form",kr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.modelValue,(l,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.component),r.mergeProps({key:p,schema:l,modelValue:a.value[p].value,"onUpdate:modelValue":d=>a.value[p].value=d,data:o.value[l.fieldname],readonly:i.readonly,ref_for:!0},s(l)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),$r=_r(Nr,[["__scopeId","data-v-d9ce3008"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Or=Object.defineProperty,Sr=(e,t,n)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>Sr(e,typeof t!="symbol"?t+"":t,n);function dt(e){this.message=e||""}dt.prototype=Object.create(Error.prototype,{constructor:{value:dt},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const cn=class ct{constructor(t,n,o,s,a){if(Y(this,"name","Stonecrop"),Y(this,"registry"),Y(this,"schema"),Y(this,"workflow"),Y(this,"actions"),Y(this,"store"),ct._root)return ct._root;ct._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=s,this.actions=a}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new dt(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const s=this.registry.registry[t.slug].actions.get(n),{initialState:a}=this.workflow;this.workflow.transition(a,{type:n}),s.length>0&&s.forEach(i=>{new Function(i)(o)})}};Y(cn,"_root");let xr=cn;var ln=!1;function He(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function pt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Cr(){return un().__VUE_DEVTOOLS_GLOBAL_HOOK__}function un(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Pr=typeof Proxy=="function",Vr="devtools-plugin:setup",Dr="plugin:settings:set";let xe,ft;function Ir(){var e;return xe!==void 0||(typeof window<"u"&&window.performance?(xe=!0,ft=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(xe=!0,ft=globalThis.perf_hooks.performance):xe=!1),xe}function Rr(){return Ir()?ft.now():Date.now()}class Ar{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const i in t.settings){const c=t.settings[i];o[i]=c.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},o);try{const i=localStorage.getItem(s),c=JSON.parse(i);Object.assign(a,c)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}a=i},now(){return Rr()}},n&&n.on(Dr,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...l)=>{this.onQueue.push({method:c,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...l)=>(this.targetQueue.push({method:c,args:l,resolve:()=>{}}),this.fallbacks[c](...l)):(...l)=>new Promise(p=>{this.targetQueue.push({method:c,args:l,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ht(e,t){const n=e,o=un(),s=Cr(),a=Pr&&n.enableEarlyProxy;if(s&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(Vr,e,t);else{const i=a?new Ar(n,s):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
2
2
  * pinia v2.3.0
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let xe;const Ce=e=>xe=e,dn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function pe(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Z;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Z||(Z={}));const ie=typeof window<"u",pn=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function mt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){hn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function fn(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function He(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Ge=typeof navigator=="object"?navigator:{userAgent:""},mn=/Macintosh/.test(Ge.userAgent)&&/AppleWebKit/.test(Ge.userAgent)&&!/Safari/.test(Ge.userAgent),hn=ie?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!mn?jr:"msSaveOrOpenBlob"in Ge?Br:Mr:()=>{};function jr(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?fn(o.href)?mt(e,t,n):(o.target="_blank",He(o)):He(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){He(o)},0))}function Br(e,t="download",n){if(typeof e=="string")if(fn(e))mt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){He(o)})}else navigator.msSaveOrOpenBlob(Tr(e,n),t)}function Mr(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return mt(e,t,n);const s=e.type==="application/octet-stream",a=/constructor/i.test(String(pn.HTMLElement))||"safari"in pn,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&a||mn)&&typeof FileReader<"u"){const c=new FileReader;c.onloadend=function(){let l=c.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},c.readAsDataURL(e)}else{const c=URL.createObjectURL(e);o?o.location.assign(c):location.href=c,o=null,setTimeout(function(){URL.revokeObjectURL(c)},4e4)}}function W(e,t){const n="๐Ÿ "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function ht(e){return"_a"in e&&"install"in e}function gn(){if(!("clipboard"in navigator))return W("Your browser doesn't support the Clipboard API","error"),!0}function yn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(W('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Lr(e){if(!gn())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),W("Global state copied to clipboard.")}catch(t){if(yn(t))return;W("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ur(e){if(!gn())try{wn(e,JSON.parse(await navigator.clipboard.readText())),W("Global state pasted from clipboard.")}catch(t){if(yn(t))return;W("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Wr(e){try{hn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){W("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ee;function Fr(){ee||(ee=document.createElement("input"),ee.type="file",ee.accept=".json");function e(){return new Promise((t,n)=>{ee.onchange=async()=>{const o=ee.files;if(!o)return t(null);const s=o.item(0);return t(s?{text:await s.text(),file:s}:null)},ee.oncancel=()=>t(null),ee.onerror=n,ee.click()})}return e}async function zr(e){try{const t=await Fr()();if(!t)return;const{text:n,file:o}=t;wn(e,JSON.parse(n)),W(`Global state imported from "${o.name}".`)}catch(t){W("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function wn(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function X(e){return{_custom:{display:e}}}const bn="๐Ÿ Pinia (root)",qe="_root";function Hr(e){return ht(e)?{id:qe,label:bn}:{id:e.$id,label:e.$id}}function Gr(e){if(ht(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>o.get(s)._getters).map(s=>{const a=o.get(s);return{editable:!1,key:s,value:a._getters.reduce((i,c)=>(i[c]=a[c],i),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function qr(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:X(e.type),key:X(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Jr(e){switch(e){case Z.direct:return"mutation";case Z.patchFunction:return"$patch";case Z.patchObject:return"$patch";default:return"unknown"}}let ye=!0;const Je=[],fe="pinia:mutations",z="pinia",{assign:Kr}=Object,Ke=e=>"๐Ÿ "+e;function Yr(e,t){ft({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Je,app:e},n=>{typeof n.now!="function"&&W("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:fe,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:z,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Lr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ur(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Wr(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await zr(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=t._s.get(o);s?typeof s.$reset!="function"?W(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),W(`Store "${o}" reset.`)):W(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,s)=>{const a=o.componentInstance&&o.componentInstance.proxy;if(a&&a._pStores){const i=o.componentInstance.proxy._pStores;Object.values(i).forEach(c=>{o.instanceData.state.push({type:Ke(c.$id),key:"state",editable:!0,value:c._isOptionsAPI?{_custom:{value:r.toRaw(c.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>c.$reset()}]}}:Object.keys(c.$state).reduce((l,p)=>(l[p]=c.$state[p],l),{})}),c._getters&&c._getters.length&&o.instanceData.state.push({type:Ke(c.$id),key:"getters",editable:!1,value:c._getters.reduce((l,p)=>{try{l[p]=c[p]}catch(d){l[p]=d}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===z){let s=[t];s=s.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?s.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):bn.toLowerCase().includes(o.filter.toLowerCase())):s).map(Hr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const s=o.nodeId===qe?t:t._s.get(o.nodeId);if(!s)return;s&&(o.nodeId!==qe&&(globalThis.$store=r.toRaw(s)),o.state=Gr(s))}}),n.on.editInspectorState((o,s)=>{if(o.app===e&&o.inspectorId===z){const a=o.nodeId===qe?t:t._s.get(o.nodeId);if(!a)return W(`store "${o.nodeId}" not found`,"error");const{path:i}=o;ht(a)?i.unshift("state"):(i.length!==1||!a._customProperties.has(i[0])||i[0]in a.$state)&&i.unshift("$state"),ye=!1,o.set(a,i,o.state.value),ye=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const s=o.type.replace(/^๐Ÿ\s*/,""),a=t._s.get(s);if(!a)return W(`store "${s}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return W(`Invalid path for store "${s}":
5
+ */let Ce;const Pe=e=>Ce=e,dn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function he(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var te;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(te||(te={}));const le=typeof window<"u",pn=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function mt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){mn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function fn(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function qe(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Ge=typeof navigator=="object"?navigator:{userAgent:""},hn=/Macintosh/.test(Ge.userAgent)&&/AppleWebKit/.test(Ge.userAgent)&&!/Safari/.test(Ge.userAgent),mn=le?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!hn?jr:"msSaveOrOpenBlob"in Ge?Br:Lr:()=>{};function jr(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?fn(o.href)?mt(e,t,n):(o.target="_blank",qe(o)):qe(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){qe(o)},0))}function Br(e,t="download",n){if(typeof e=="string")if(fn(e))mt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){qe(o)})}else navigator.msSaveOrOpenBlob(Tr(e,n),t)}function Lr(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return mt(e,t,n);const s=e.type==="application/octet-stream",a=/constructor/i.test(String(pn.HTMLElement))||"safari"in pn,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&a||hn)&&typeof FileReader<"u"){const c=new FileReader;c.onloadend=function(){let l=c.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},c.readAsDataURL(e)}else{const c=URL.createObjectURL(e);o?o.location.assign(c):location.href=c,o=null,setTimeout(function(){URL.revokeObjectURL(c)},4e4)}}function F(e,t){const n="๐Ÿ "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function gt(e){return"_a"in e&&"install"in e}function gn(){if(!("clipboard"in navigator))return F("Your browser doesn't support the Clipboard API","error"),!0}function yn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(F('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Mr(e){if(!gn())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),F("Global state copied to clipboard.")}catch(t){if(yn(t))return;F("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Wr(e){if(!gn())try{wn(e,JSON.parse(await navigator.clipboard.readText())),F("Global state pasted from clipboard.")}catch(t){if(yn(t))return;F("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Ur(e){try{mn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){F("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ne;function Fr(){ne||(ne=document.createElement("input"),ne.type="file",ne.accept=".json");function e(){return new Promise((t,n)=>{ne.onchange=async()=>{const o=ne.files;if(!o)return t(null);const s=o.item(0);return t(s?{text:await s.text(),file:s}:null)},ne.oncancel=()=>t(null),ne.onerror=n,ne.click()})}return e}async function zr(e){try{const t=await Fr()();if(!t)return;const{text:n,file:o}=t;wn(e,JSON.parse(n)),F(`Global state imported from "${o.name}".`)}catch(t){F("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function wn(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function Z(e){return{_custom:{display:e}}}const bn="๐Ÿ Pinia (root)",Je="_root";function Hr(e){return gt(e)?{id:Je,label:bn}:{id:e.$id,label:e.$id}}function qr(e){if(gt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>o.get(s)._getters).map(s=>{const a=o.get(s);return{editable:!1,key:s,value:a._getters.reduce((i,c)=>(i[c]=a[c],i),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Gr(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Z(e.type),key:Z(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Jr(e){switch(e){case te.direct:return"mutation";case te.patchFunction:return"$patch";case te.patchObject:return"$patch";default:return"unknown"}}let we=!0;const Ye=[],me="pinia:mutations",z="pinia",{assign:Yr}=Object,Ke=e=>"๐Ÿ "+e;function Kr(e,t){ht({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ye,app:e},n=>{typeof n.now!="function"&&F("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:me,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:z,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Mr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Wr(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ur(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await zr(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=t._s.get(o);s?typeof s.$reset!="function"?F(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),F(`Store "${o}" reset.`)):F(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,s)=>{const a=o.componentInstance&&o.componentInstance.proxy;if(a&&a._pStores){const i=o.componentInstance.proxy._pStores;Object.values(i).forEach(c=>{o.instanceData.state.push({type:Ke(c.$id),key:"state",editable:!0,value:c._isOptionsAPI?{_custom:{value:r.toRaw(c.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>c.$reset()}]}}:Object.keys(c.$state).reduce((l,p)=>(l[p]=c.$state[p],l),{})}),c._getters&&c._getters.length&&o.instanceData.state.push({type:Ke(c.$id),key:"getters",editable:!1,value:c._getters.reduce((l,p)=>{try{l[p]=c[p]}catch(d){l[p]=d}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===z){let s=[t];s=s.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?s.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):bn.toLowerCase().includes(o.filter.toLowerCase())):s).map(Hr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const s=o.nodeId===Je?t:t._s.get(o.nodeId);if(!s)return;s&&(o.nodeId!==Je&&(globalThis.$store=r.toRaw(s)),o.state=qr(s))}}),n.on.editInspectorState((o,s)=>{if(o.app===e&&o.inspectorId===z){const a=o.nodeId===Je?t:t._s.get(o.nodeId);if(!a)return F(`store "${o.nodeId}" not found`,"error");const{path:i}=o;gt(a)?i.unshift("state"):(i.length!==1||!a._customProperties.has(i[0])||i[0]in a.$state)&&i.unshift("$state"),we=!1,o.set(a,i,o.state.value),we=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const s=o.type.replace(/^๐Ÿ\s*/,""),a=t._s.get(s);if(!a)return F(`store "${s}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return F(`Invalid path for store "${s}":
6
6
  ${i}
7
- Only state can be modified.`);i[0]="$state",ye=!1,o.set(a,i,o.state.value),ye=!0}})})}function Qr(e,t){Je.includes(Ke(t.$id))||Je.push(Ke(t.$id)),ft({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Je,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:c,name:l,args:p})=>{const d=vn++;n.addTimelineEvent({layerId:fe,event:{time:o(),title:"๐Ÿ›ซ "+l,subtitle:"start",data:{store:X(t.$id),action:X(l),args:p},groupId:d}}),i(u=>{ce=void 0,n.addTimelineEvent({layerId:fe,event:{time:o(),title:"๐Ÿ›ฌ "+l,subtitle:"end",data:{store:X(t.$id),action:X(l),args:p,result:u},groupId:d}})}),c(u=>{ce=void 0,n.addTimelineEvent({layerId:fe,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+l,subtitle:"end",data:{store:X(t.$id),action:X(l),args:p,error:u},groupId:d}})})},!0),t._customProperties.forEach(i=>{r.watch(()=>r.unref(t[i]),(c,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),ye&&n.addTimelineEvent({layerId:fe,event:{time:o(),title:"Change",subtitle:i,data:{newValue:c,oldValue:l},groupId:ce}})},{deep:!0})}),t.$subscribe(({events:i,type:c},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!ye)return;const p={time:o(),title:Jr(c),data:Kr({store:X(t.$id)},qr(i)),groupId:ce};c===Z.patchFunction?p.subtitle="โคต๏ธ":c===Z.patchObject?p.subtitle="๐Ÿงฉ":i&&!Array.isArray(i)&&(p.subtitle=i.type),i&&(p.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:fe,event:p})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=r.markRaw(i=>{s(i),n.addTimelineEvent({layerId:fe,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:X(t.$id),info:X("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&W(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&W(`"${t.$id}" store installed ๐Ÿ†•`)})}let vn=0,ce;function En(e,t,n){const o=t.reduce((s,a)=>(s[a]=r.toRaw(e)[a],s),{});for(const s in o)e[s]=function(){const a=vn,i=n?new Proxy(e,{get(...l){return ce=a,Reflect.get(...l)},set(...l){return ce=a,Reflect.set(...l)}}):e;ce=a;const c=o[s].apply(i,arguments);return ce=void 0,c}}function Xr({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){En(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(s){o.apply(this,arguments),En(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)}}Qr(e,t)}}function Zr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const s=r.markRaw({install(a){Ce(s),s._a=a,a.provide(dn,s),a.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie&&Yr(a,s),o.forEach(i=>n.push(i)),o=[]},use(a){return!this._a&&!ln?o.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie&&typeof Proxy<"u"&&s.use(Xr),s}function _n(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];pe(s)&&pe(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=_n(s,o):e[n]=o}return e}const kn=()=>{};function $n(e,t,n,o=kn){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function we(e,...t){e.slice().forEach(n=>{n(...t)})}const es=e=>e(),Nn=Symbol(),gt=Symbol();function yt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];pe(s)&&pe(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=yt(s,o):e[n]=o}return e}const ts=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ns(e){return!pe(e)||!e.hasOwnProperty(ts)}const{assign:Y}=Object;function On(e){return!!(r.isRef(e)&&e.effect)}function Sn(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return Y(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{Ce(n);const m=n._s.get(e);return i[f].call(m,m)})),u),{}))}return l=wt(e,p,t,n,o,!0),l}function wt(e,t,n={},o,s,a){let i;const c=Y({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!ln&&(l.onTrigger=g=>{p?m=g:p==!1&&!b._hotUpdating&&(Array.isArray(m)?m.push(g):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],m;const h=o.state.value[e];!a&&!h&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const v=r.ref({});let N;function k(g){let y;p=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof g=="function"?(g(o.state.value[e]),y={type:Z.patchFunction,storeId:e,events:m}):(yt(o.state.value[e],g),y={type:Z.patchObject,payload:g,storeId:e,events:m});const x=N=Symbol();r.nextTick().then(()=>{N===x&&(p=!0)}),d=!0,we(u,y,o.state.value[e])}const S=a?function(){const{state:g}=n,y=g?g():{};this.$patch(x=>{Y(x,y)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:kn;function V(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(g,y="")=>{if(Nn in g)return g[gt]=y,g;const x=function(){Ce(o);const M=Array.from(arguments),F=[],ae=[];function he(j){F.push(j)}function Ne(j){ae.push(j)}we(f,{args:M,name:x[gt],store:b,after:he,onError:Ne});let H;try{H=g.apply(this&&this.$id===e?this:b,M)}catch(j){throw we(ae,j),j}return H instanceof Promise?H.then(j=>(we(F,j),j)).catch(j=>(we(ae,j),Promise.reject(j))):(we(F,H),H)};return x[Nn]=!0,x[gt]=y,x},$=r.markRaw({actions:{},getters:{},state:[],hotState:v}),C={_p:o,$id:e,$onAction:$n.bind(null,f),$patch:k,$reset:S,$subscribe(g,y={}){const x=$n(u,g,y.detached,()=>M()),M=i.run(()=>r.watch(()=>o.state.value[e],F=>{(y.flush==="sync"?d:p)&&g({storeId:e,type:Z.direct,events:m},F)},Y({},l,y)));return x},$dispose:V},b=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie?Y({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,b);const R=(o._a&&o._a.runWithContext||es)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const g in R){const y=R[g];if(r.isRef(y)&&!On(y)||r.isReactive(y))process.env.NODE_ENV!=="production"&&s?ze(v.value,g,r.toRef(R,g)):a||(h&&ns(y)&&(r.isRef(y)?y.value=h[g]:yt(y,h[g])),o.state.value[e][g]=y),process.env.NODE_ENV!=="production"&&$.state.push(g);else if(typeof y=="function"){const x=process.env.NODE_ENV!=="production"&&s?y:B(y,g);R[g]=x,process.env.NODE_ENV!=="production"&&($.actions[g]=y),c.actions[g]=y}else process.env.NODE_ENV!=="production"&&On(y)&&($.getters[g]=a?n.getters[g]:y,ie&&(R._getters||(R._getters=r.markRaw([]))).push(g))}if(Y(b,R),Y(r.toRaw(b),R),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?v.value:o.state.value[e],set:g=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");k(y=>{Y(y,g)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=r.markRaw(g=>{b._hotUpdating=!0,g._hmrPayload.state.forEach(y=>{if(y in b.$state){const x=g.$state[y],M=b.$state[y];typeof x=="object"&&pe(x)&&pe(M)?_n(x,M):g.$state[y]=M}ze(b,y,r.toRef(g.$state,y))}),Object.keys(b.$state).forEach(y=>{y in g.$state||dt(b,y)}),p=!1,d=!1,o.state.value[e]=r.toRef(g._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const y in g._hmrPayload.actions){const x=g[y];ze(b,y,B(x,y))}for(const y in g._hmrPayload.getters){const x=g._hmrPayload.getters[y],M=a?r.computed(()=>(Ce(o),x.call(b,b))):x;ze(b,y,M)}Object.keys(b._hmrPayload.getters).forEach(y=>{y in g._hmrPayload.getters||dt(b,y)}),Object.keys(b._hmrPayload.actions).forEach(y=>{y in g._hmrPayload.actions||dt(b,y)}),b._hmrPayload=g._hmrPayload,b._getters=g._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(y=>{Object.defineProperty(b,y,Y({value:b[y]},g))})}return o._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const y=i.run(()=>g({store:b,app:o._a,pinia:o,options:c}));Object.keys(y||{}).forEach(x=>b._customProperties.add(x)),Y(b,y)}else Y(b,i.run(()=>g({store:b,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);i[0]="$state",we=!1,o.set(a,i,o.state.value),we=!0}})})}function Qr(e,t){Ye.includes(Ke(t.$id))||Ye.push(Ke(t.$id)),ht({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ye,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:c,name:l,args:p})=>{const d=vn++;n.addTimelineEvent({layerId:me,event:{time:o(),title:"๐Ÿ›ซ "+l,subtitle:"start",data:{store:Z(t.$id),action:Z(l),args:p},groupId:d}}),i(u=>{ue=void 0,n.addTimelineEvent({layerId:me,event:{time:o(),title:"๐Ÿ›ฌ "+l,subtitle:"end",data:{store:Z(t.$id),action:Z(l),args:p,result:u},groupId:d}})}),c(u=>{ue=void 0,n.addTimelineEvent({layerId:me,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+l,subtitle:"end",data:{store:Z(t.$id),action:Z(l),args:p,error:u},groupId:d}})})},!0),t._customProperties.forEach(i=>{r.watch(()=>r.unref(t[i]),(c,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),we&&n.addTimelineEvent({layerId:me,event:{time:o(),title:"Change",subtitle:i,data:{newValue:c,oldValue:l},groupId:ue}})},{deep:!0})}),t.$subscribe(({events:i,type:c},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!we)return;const p={time:o(),title:Jr(c),data:Yr({store:Z(t.$id)},Gr(i)),groupId:ue};c===te.patchFunction?p.subtitle="โคต๏ธ":c===te.patchObject?p.subtitle="๐Ÿงฉ":i&&!Array.isArray(i)&&(p.subtitle=i.type),i&&(p.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:me,event:p})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=r.markRaw(i=>{s(i),n.addTimelineEvent({layerId:me,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:Z(t.$id),info:Z("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&F(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&F(`"${t.$id}" store installed ๐Ÿ†•`)})}let vn=0,ue;function En(e,t,n){const o=t.reduce((s,a)=>(s[a]=r.toRaw(e)[a],s),{});for(const s in o)e[s]=function(){const a=vn,i=n?new Proxy(e,{get(...l){return ue=a,Reflect.get(...l)},set(...l){return ue=a,Reflect.set(...l)}}):e;ue=a;const c=o[s].apply(i,arguments);return ue=void 0,c}}function Xr({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){En(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(s){o.apply(this,arguments),En(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)}}Qr(e,t)}}function Zr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const s=r.markRaw({install(a){Pe(s),s._a=a,a.provide(dn,s),a.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le&&Kr(a,s),o.forEach(i=>n.push(i)),o=[]},use(a){return!this._a&&!ln?o.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le&&typeof Proxy<"u"&&s.use(Xr),s}function _n(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];he(s)&&he(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=_n(s,o):e[n]=o}return e}const kn=()=>{};function Nn(e,t,n,o=kn){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function be(e,...t){e.slice().forEach(n=>{n(...t)})}const es=e=>e(),$n=Symbol(),yt=Symbol();function wt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];he(s)&&he(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=wt(s,o):e[n]=o}return e}const ts=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ns(e){return!he(e)||!e.hasOwnProperty(ts)}const{assign:K}=Object;function On(e){return!!(r.isRef(e)&&e.effect)}function Sn(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return K(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{Pe(n);const h=n._s.get(e);return i[f].call(h,h)})),u),{}))}return l=bt(e,p,t,n,o,!0),l}function bt(e,t,n={},o,s,a){let i;const c=K({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!ln&&(l.onTrigger=v=>{p?h=v:p==!1&&!w._hotUpdating&&(Array.isArray(h)?h.push(v):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],h;const m=o.state.value[e];!a&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const E=r.ref({});let O;function N(v){let g;p=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof v=="function"?(v(o.state.value[e]),g={type:te.patchFunction,storeId:e,events:h}):(wt(o.state.value[e],v),g={type:te.patchObject,payload:v,storeId:e,events:h});const b=O=Symbol();r.nextTick().then(()=>{O===b&&(p=!0)}),d=!0,be(u,g,o.state.value[e])}const x=a?function(){const{state:v}=n,g=v?v():{};this.$patch(b=>{K(b,g)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:kn;function I(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(v,g="")=>{if($n in v)return v[yt]=g,v;const b=function(){Pe(o);const V=Array.from(arguments),L=[],ee=[];function ce(M){L.push(M)}function Oe(M){ee.push(M)}be(f,{args:V,name:b[yt],store:w,after:ce,onError:Oe});let X;try{X=v.apply(this&&this.$id===e?this:w,V)}catch(M){throw be(ee,M),M}return X instanceof Promise?X.then(M=>(be(L,M),M)).catch(M=>(be(ee,M),Promise.reject(M))):(be(L,X),X)};return b[$n]=!0,b[yt]=g,b},$=r.markRaw({actions:{},getters:{},state:[],hotState:E}),C={_p:o,$id:e,$onAction:Nn.bind(null,f),$patch:N,$reset:x,$subscribe(v,g={}){const b=Nn(u,v,g.detached,()=>V()),V=i.run(()=>r.watch(()=>o.state.value[e],L=>{(g.flush==="sync"?d:p)&&v({storeId:e,type:te.direct,events:h},L)},K({},l,g)));return b},$dispose:I},w=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le?K({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,w);const j=(o._a&&o._a.runWithContext||es)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const v in j){const g=j[v];if(r.isRef(g)&&!On(g)||r.isReactive(g))process.env.NODE_ENV!=="production"&&s?He(E.value,v,r.toRef(j,v)):a||(m&&ns(g)&&(r.isRef(g)?g.value=m[v]:wt(g,m[v])),o.state.value[e][v]=g),process.env.NODE_ENV!=="production"&&$.state.push(v);else if(typeof g=="function"){const b=process.env.NODE_ENV!=="production"&&s?g:B(g,v);j[v]=b,process.env.NODE_ENV!=="production"&&($.actions[v]=g),c.actions[v]=g}else process.env.NODE_ENV!=="production"&&On(g)&&($.getters[v]=a?n.getters[v]:g,le&&(j._getters||(j._getters=r.markRaw([]))).push(v))}if(K(w,j),K(r.toRaw(w),j),Object.defineProperty(w,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?E.value:o.state.value[e],set:v=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");N(g=>{K(g,v)})}}),process.env.NODE_ENV!=="production"&&(w._hotUpdate=r.markRaw(v=>{w._hotUpdating=!0,v._hmrPayload.state.forEach(g=>{if(g in w.$state){const b=v.$state[g],V=w.$state[g];typeof b=="object"&&he(b)&&he(V)?_n(b,V):v.$state[g]=V}He(w,g,r.toRef(v.$state,g))}),Object.keys(w.$state).forEach(g=>{g in v.$state||pt(w,g)}),p=!1,d=!1,o.state.value[e]=r.toRef(v._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const g in v._hmrPayload.actions){const b=v[g];He(w,g,B(b,g))}for(const g in v._hmrPayload.getters){const b=v._hmrPayload.getters[g],V=a?r.computed(()=>(Pe(o),b.call(w,w))):b;He(w,g,V)}Object.keys(w._hmrPayload.getters).forEach(g=>{g in v._hmrPayload.getters||pt(w,g)}),Object.keys(w._hmrPayload.actions).forEach(g=>{g in v._hmrPayload.actions||pt(w,g)}),w._hmrPayload=v._hmrPayload,w._getters=v._getters,w._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le){const v={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(g=>{Object.defineProperty(w,g,K({value:w[g]},v))})}return o._p.forEach(v=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&le){const g=i.run(()=>v({store:w,app:o._a,pinia:o,options:c}));Object.keys(g||{}).forEach(b=>w._customProperties.add(b)),K(w,g)}else K(w,i.run(()=>v({store:w,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&w.$state&&typeof w.$state=="object"&&typeof w.$state.constructor=="function"&&!w.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
8
8
  state: () => new MyClass()
9
- Found in store "${b.$id}".`),h&&a&&n.hydrate&&n.hydrate(b.$state,h),p=!0,d=!0,b}/*! #__NO_SIDE_EFFECTS__ */function os(e,t,n){let o,s;const a=typeof t=="function";o=e,s=a?n:t;function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&xe&&xe._testing?null:c)||(p?r.inject(dn,null):null),c&&Ce(c),process.env.NODE_ENV!=="production"&&!xe)throw new Error(`[๐Ÿ]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
9
+ Found in store "${w.$id}".`),m&&a&&n.hydrate&&n.hydrate(w.$state,m),p=!0,d=!0,w}/*! #__NO_SIDE_EFFECTS__ */function os(e,t,n){let o,s;const a=typeof t=="function";o=e,s=a?n:t;function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Ce&&Ce._testing?null:c)||(p?r.inject(dn,null):null),c&&Pe(c),process.env.NODE_ENV!=="production"&&!Ce)throw new Error(`[๐Ÿ]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
10
10
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
11
- This will fail in production.`);c=xe,c._s.has(o)||(a?wt(o,t,s,c):Sn(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?wt(u,t,s,c,!0):Sn(u,Y({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&ie){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[o]=d}}return d}return i.$id=o,i}const rs=os("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function xn(e){e||(e=r.inject("$registry"));const t=rs(),n=r.ref(new xr(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var s,a;const i=e.router.currentRoute.value,c=(s=i.params.records)==null?void 0:s.toString().toLowerCase(),l=(a=i.params.record)==null?void 0:a.toString().toLowerCase();if(!c&&!l)return;const p=await e.getMeta(c);e.addDoctype(p),n.value.setup(p),c&&(l?await n.value.getRecord(p,l):await n.value.getRecords(p)),n.value.runAction(p,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}K(class ct{constructor(t,n){if(K(this,"name"),K(this,"router"),K(this,"registry"),K(this,"getMeta"),ct._root)return ct._root;ct._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
12
- * vue-router v4.4.5
11
+ This will fail in production.`);c=Ce,c._s.has(o)||(a?bt(o,t,s,c):Sn(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?bt(u,t,s,c,!0):Sn(u,K({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&le){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=d}}return d}return i.$id=o,i}const rs=os("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function xn(e){e||(e=r.inject("$registry"));const t=rs(),n=r.ref(new xr(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var s,a;const i=e.router.currentRoute.value,c=(s=i.params.records)==null?void 0:s.toString().toLowerCase(),l=(a=i.params.record)==null?void 0:a.toString().toLowerCase();if(!c&&!l)return;const p=await e.getMeta(c);e.addDoctype(p),n.value.setup(p),c&&(l?await n.value.getRecord(p,l):await n.value.getRecords(p)),n.value.runAction(p,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}Y(class lt{constructor(t,n){if(Y(this,"name"),Y(this,"router"),Y(this,"registry"),Y(this,"getMeta"),lt._root)return lt._root;lt._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
12
+ * vue-router v4.5.0
13
13
  * (c) 2024 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */const te=typeof document<"u";function Cn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ss(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cn(e.default)}const A=Object.assign;function bt(e,t){const n={};for(const o in t){const s=t[o];n[o]=q(s)?s.map(e):e(s)}return n}const Pe=()=>{},q=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Pn=/#/g,as=/&/g,is=/\//g,cs=/=/g,ls=/\?/g,Dn=/\+/g,us=/%5B/g,ds=/%5D/g,Vn=/%5E/g,ps=/%60/g,In=/%7B/g,fs=/%7C/g,Rn=/%7D/g,ms=/%20/g;function vt(e){return encodeURI(""+e).replace(fs,"|").replace(us,"[").replace(ds,"]")}function hs(e){return vt(e).replace(In,"{").replace(Rn,"}").replace(Vn,"^")}function Et(e){return vt(e).replace(Dn,"%2B").replace(ms,"+").replace(Pn,"%23").replace(as,"%26").replace(ps,"`").replace(In,"{").replace(Rn,"}").replace(Vn,"^")}function gs(e){return Et(e).replace(cs,"%3D")}function ys(e){return vt(e).replace(Pn,"%23").replace(ls,"%3F")}function ws(e){return e==null?"":ys(e).replace(is,"%2F")}function be(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}const bs=/\/$/,vs=e=>e.replace(bs,"");function _t(e,t,n="/"){let o,s={},a="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c<l&&c>=0&&(l=-1),l>-1&&(o=t.slice(0,l),a=t.slice(l+1,c>-1?c:t.length),s=e(a)),c>-1&&(o=o||t.slice(0,c),i=t.slice(c,t.length)),o=ks(o??t,n),{fullPath:o+(a&&"?")+a+i,path:o,query:s,hash:be(i)}}function Es(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function An(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tn(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&le(t.matched[o],n.matched[s])&&jn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function le(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_s(e[n],t[n]))return!1;return!0}function _s(e,t){return q(e)?Bn(e,t):q(t)?Bn(t,e):e===t}function Bn(e,t){return q(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function ks(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let a=n.length-1,i,c;for(i=0;i<o.length;i++)if(c=o[i],c!==".")if(c==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}const ue={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var De;(function(e){e.pop="pop",e.push="push"})(De||(De={}));var Ve;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ve||(Ve={}));function $s(e){if(!e)if(te){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vs(e)}const Ns=/^[^#]+#/;function Os(e,t){return e.replace(Ns,"#")+t}function Ss(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ye=()=>({left:window.scrollX,top:window.scrollY});function xs(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const a=document.querySelector(e.el);if(o&&a){P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Ss(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mn(e,t){return(history.state?history.state.position-t:-1)+e}const kt=new Map;function Cs(e,t){kt.set(e,t)}function Ps(e){const t=kt.get(e);return kt.delete(e),t}let Ds=()=>location.protocol+"//"+location.host;function Ln(e,t){const{pathname:n,search:o,hash:s}=t,a=e.indexOf("#");if(a>-1){let i=s.includes(e.slice(a))?e.slice(a).length:1,c=s.slice(i);return c[0]!=="/"&&(c="/"+c),An(c,"")}return An(n,e)+o+s}function Vs(e,t,n,o){let s=[],a=[],i=null;const c=({state:f})=>{const m=Ln(e,location),h=n.value,v=t.value;let N=0;if(f){if(n.value=m,t.value=f,i&&i===h){i=null;return}N=v?f.position-v.position:0}else o(m);s.forEach(k=>{k(n.value,h,{delta:N,type:De.pop,direction:N?N>0?Ve.forward:Ve.back:Ve.unknown})})};function l(){i=n.value}function p(f){s.push(f);const m=()=>{const h=s.indexOf(f);h>-1&&s.splice(h,1)};return a.push(m),m}function d(){const{history:f}=window;f.state&&f.replaceState(A({},f.state,{scroll:Ye()}),"")}function u(){for(const f of a)f();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:p,destroy:u}}function Un(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?Ye():null}}function Is(e){const{history:t,location:n}=window,o={value:Ln(e,n)},s={value:t.state};s.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,p,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:Ds()+e+l;try{t[d?"replaceState":"pushState"](p,"",f),s.value=p}catch(m){process.env.NODE_ENV!=="production"?P("Error with push/replace State",m):console.error(m),n[d?"replace":"assign"](f)}}function i(l,p){const d=A({},t.state,Un(s.value.back,l,s.value.forward,!0),p,{position:s.value.position});a(l,d,!0),o.value=l}function c(l,p){const d=A({},s.value,t.state,{forward:l,scroll:Ye()});process.env.NODE_ENV!=="production"&&!t.state&&P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
15
+ */const oe=typeof document<"u";function Cn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ss(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cn(e.default)}const A=Object.assign;function vt(e,t){const n={};for(const o in t){const s=t[o];n[o]=G(s)?s.map(e):e(s)}return n}const Ve=()=>{},G=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Pn=/#/g,as=/&/g,is=/\//g,cs=/=/g,ls=/\?/g,Vn=/\+/g,us=/%5B/g,ds=/%5D/g,Dn=/%5E/g,ps=/%60/g,In=/%7B/g,fs=/%7C/g,Rn=/%7D/g,hs=/%20/g;function Et(e){return encodeURI(""+e).replace(fs,"|").replace(us,"[").replace(ds,"]")}function ms(e){return Et(e).replace(In,"{").replace(Rn,"}").replace(Dn,"^")}function _t(e){return Et(e).replace(Vn,"%2B").replace(hs,"+").replace(Pn,"%23").replace(as,"%26").replace(ps,"`").replace(In,"{").replace(Rn,"}").replace(Dn,"^")}function gs(e){return _t(e).replace(cs,"%3D")}function ys(e){return Et(e).replace(Pn,"%23").replace(ls,"%3F")}function ws(e){return e==null?"":ys(e).replace(is,"%2F")}function ve(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}const bs=/\/$/,vs=e=>e.replace(bs,"");function kt(e,t,n="/"){let o,s={},a="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c<l&&c>=0&&(l=-1),l>-1&&(o=t.slice(0,l),a=t.slice(l+1,c>-1?c:t.length),s=e(a)),c>-1&&(o=o||t.slice(0,c),i=t.slice(c,t.length)),o=ks(o??t,n),{fullPath:o+(a&&"?")+a+i,path:o,query:s,hash:ve(i)}}function Es(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function An(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tn(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&de(t.matched[o],n.matched[s])&&jn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function de(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_s(e[n],t[n]))return!1;return!0}function _s(e,t){return G(e)?Bn(e,t):G(t)?Bn(t,e):e===t}function Bn(e,t){return G(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function ks(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let a=n.length-1,i,c;for(i=0;i<o.length;i++)if(c=o[i],c!==".")if(c==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}const pe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var De;(function(e){e.pop="pop",e.push="push"})(De||(De={}));var Ie;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ie||(Ie={}));function Ns(e){if(!e)if(oe){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vs(e)}const $s=/^[^#]+#/;function Os(e,t){return e.replace($s,"#")+t}function Ss(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Qe=()=>({left:window.scrollX,top:window.scrollY});function xs(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const a=document.querySelector(e.el);if(o&&a){P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Ss(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ln(e,t){return(history.state?history.state.position-t:-1)+e}const Nt=new Map;function Cs(e,t){Nt.set(e,t)}function Ps(e){const t=Nt.get(e);return Nt.delete(e),t}let Vs=()=>location.protocol+"//"+location.host;function Mn(e,t){const{pathname:n,search:o,hash:s}=t,a=e.indexOf("#");if(a>-1){let i=s.includes(e.slice(a))?e.slice(a).length:1,c=s.slice(i);return c[0]!=="/"&&(c="/"+c),An(c,"")}return An(n,e)+o+s}function Ds(e,t,n,o){let s=[],a=[],i=null;const c=({state:f})=>{const h=Mn(e,location),m=n.value,E=t.value;let O=0;if(f){if(n.value=h,t.value=f,i&&i===m){i=null;return}O=E?f.position-E.position:0}else o(h);s.forEach(N=>{N(n.value,m,{delta:O,type:De.pop,direction:O?O>0?Ie.forward:Ie.back:Ie.unknown})})};function l(){i=n.value}function p(f){s.push(f);const h=()=>{const m=s.indexOf(f);m>-1&&s.splice(m,1)};return a.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(A({},f.state,{scroll:Qe()}),"")}function u(){for(const f of a)f();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:p,destroy:u}}function Wn(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?Qe():null}}function Is(e){const{history:t,location:n}=window,o={value:Mn(e,n)},s={value:t.state};s.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,p,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:Vs()+e+l;try{t[d?"replaceState":"pushState"](p,"",f),s.value=p}catch(h){process.env.NODE_ENV!=="production"?P("Error with push/replace State",h):console.error(h),n[d?"replace":"assign"](f)}}function i(l,p){const d=A({},t.state,Wn(s.value.back,l,s.value.forward,!0),p,{position:s.value.position});a(l,d,!0),o.value=l}function c(l,p){const d=A({},s.value,t.state,{forward:l,scroll:Qe()});process.env.NODE_ENV!=="production"&&!t.state&&P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
16
16
 
17
17
  history.replaceState(history.state, '', url)
18
18
 
19
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),a(d.current,d,!0);const u=A({},Un(o.value,l,null),{position:d.position+1},p);a(l,u,!1),o.value=l}return{location:o,state:s,push:c,replace:i}}function Rs(e){e=$s(e);const t=Is(e),n=Vs(e,t.state,t.location,t.replace);function o(a,i=!0){i||n.pauseListeners(),history.go(a)}const s=A({location:"",base:e,go:o,createHref:Os.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Qe(e){return typeof e=="string"||e&&typeof e=="object"}function Wn(e){return typeof e=="string"||typeof e=="symbol"}const $t=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Fn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fn||(Fn={}));const As={1({location:e,currentLocation:t}){return`No match for
19
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),a(d.current,d,!0);const u=A({},Wn(o.value,l,null),{position:d.position+1},p);a(l,u,!1),o.value=l}return{location:o,state:s,push:c,replace:i}}function Rs(e){e=Ns(e);const t=Is(e),n=Ds(e,t.state,t.location,t.replace);function o(a,i=!0){i||n.pauseListeners(),history.go(a)}const s=A({location:"",base:e,go:o,createHref:Os.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Xe(e){return typeof e=="string"||e&&typeof e=="object"}function Un(e){return typeof e=="string"||typeof e=="symbol"}const $t=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Fn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fn||(Fn={}));const As={1({location:e,currentLocation:t}){return`No match for
20
20
  ${JSON.stringify(e)}${t?`
21
21
  while being at
22
- `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${js(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ve(e,t){return process.env.NODE_ENV!=="production"?A(new Error(As[e](t)),{type:e,[$t]:!0},t):A(new Error,{type:e,[$t]:!0},t)}function ne(e,t){return e instanceof Error&&$t in e&&(t==null||!!(e.type&t))}const Ts=["params","query","hash"];function js(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ts)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const zn="[^/]+?",Bs={sensitive:!1,strict:!1,start:!0,end:!0},Ms=/[.+*?^${}()[\]/\\]/g;function Ls(e,t){const n=A({},Bs,t),o=[];let s=n.start?"^":"";const a=[];for(const p of e){const d=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let u=0;u<p.length;u++){const f=p[u];let m=40+(n.sensitive?.25:0);if(f.type===0)u||(s+="/"),s+=f.value.replace(Ms,"\\$&"),m+=40;else if(f.type===1){const{value:h,repeatable:v,optional:N,regexp:k}=f;a.push({name:h,repeatable:v,optional:N});const S=k||zn;if(S!==zn){m+=10;try{new RegExp(`(${S})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${h}" (${S}): `+B.message)}}let V=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;u||(V=N&&p.length<2?`(?:/${V})`:"/"+V),N&&(V+="?"),s+=V,m+=20,N&&(m+=-8),v&&(m+=-20),S===".*"&&(m+=-50)}d.push(m)}o.push(d)}if(n.strict&&n.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function c(p){const d=p.match(i),u={};if(!d)return null;for(let f=1;f<d.length;f++){const m=d[f]||"",h=a[f-1];u[h.name]=m&&h.repeatable?m.split("/"):m}return u}function l(p){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const m of f)if(m.type===0)d+=m.value;else if(m.type===1){const{value:h,repeatable:v,optional:N}=m,k=h in p?p[h]:"";if(q(k)&&!v)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const S=q(k)?k.join("/"):k;if(!S)if(N)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${h}"`);d+=S}}return d||"/"}return{re:i,score:o,keys:a,parse:c,stringify:l}}function Us(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Hn(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const a=Us(o[n],s[n]);if(a)return a;n++}if(Math.abs(s.length-o.length)===1){if(Gn(o))return 1;if(Gn(s))return-1}return s.length-o.length}function Gn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ws={type:0,value:""},Fs=/[a-zA-Z0-9_]/;function zs(e){if(!e)return[[]];if(e==="/")return[[Ws]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${p}": ${m}`)}let n=0,o=n;const s=[];let a;function i(){a&&s.push(a),a=[]}let c=0,l,p="",d="";function u(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function f(){p+=l}for(;c<e.length;){if(l=e[c++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(p&&u(),i()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:Fs.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),u(),i(),s}function Hs(e,t,n){const o=Ls(zs(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const i of o.keys)a.has(i.name)&&P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(i.name)}const s=A(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Gs(e,t){const n=[],o=new Map;t=Yn({strict:!1,end:!0,sensitive:!1},t);function s(u){return o.get(u)}function a(u,f,m){const h=!m,v=Jn(u);process.env.NODE_ENV!=="production"&&Ys(v,f),v.aliasOf=m&&m.record;const N=Yn(t,u),k=[v];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const $ of B)k.push(Jn(A({},v,{components:m?m.record.components:v.components,path:$,aliasOf:m?m.record:v})))}let S,V;for(const B of k){const{path:$}=B;if(f&&$[0]!=="/"){const C=f.record.path,b=C[C.length-1]==="/"?"":"/";B.path=f.record.path+($&&b+$)}if(process.env.NODE_ENV!=="production"&&B.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
- See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=Hs(B,f,N),process.env.NODE_ENV!=="production"&&f&&$[0]==="/"&&Qs(S,f),m?(m.alias.push(S),process.env.NODE_ENV!=="production"&&Ks(m,S)):(V=V||S,V!==S&&V.alias.push(S),h&&u.name&&!Kn(S)&&i(u.name)),Qn(S)&&l(S),v.children){const C=v.children;for(let b=0;b<C.length;b++)a(C[b],S,m&&m.children[b])}m=m||S}return V?()=>{i(V)}:Pe}function i(u){if(Wn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){const f=Xs(u,n);n.splice(f,0,u),u.record.name&&!Kn(u)&&o.set(u.record.name,u)}function p(u,f){let m,h={},v,N;if("name"in u&&u.name){if(m=o.get(u.name),!m)throw ve(1,{location:u});if(process.env.NODE_ENV!=="production"){const V=Object.keys(u.params||{}).filter(B=>!m.keys.find($=>$.name===B));V.length&&P(`Discarded invalid param(s) "${V.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}N=m.record.name,h=A(qn(f.params,m.keys.filter(V=>!V.optional).concat(m.parent?m.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),u.params&&qn(u.params,m.keys.map(V=>V.name))),v=m.stringify(h)}else if(u.path!=null)v=u.path,process.env.NODE_ENV!=="production"&&!v.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),m=n.find(V=>V.re.test(v)),m&&(h=m.parse(v),N=m.record.name);else{if(m=f.name?o.get(f.name):n.find(V=>V.re.test(f.path)),!m)throw ve(1,{location:u,currentLocation:f});N=m.record.name,h=A({},f.params,u.params),v=m.stringify(h)}const k=[];let S=m;for(;S;)k.unshift(S.record),S=S.parent;return{name:N,path:v,params:h,matched:k,meta:Js(k)}}e.forEach(u=>a(u));function d(){n.length=0,o.clear()}return{addRoute:a,resolve:p,removeRoute:i,clearRoutes:d,getRoutes:c,getRecordMatcher:s}}function qn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Jn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:qs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function qs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Kn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Js(e){return e.reduce((t,n)=>A(t,n.meta),{})}function Yn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Nt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ks(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Nt.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Nt.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Ys(e,t){t&&t.record.name&&!e.name&&!e.path&&P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Qs(e,t){for(const n of t.keys)if(!e.keys.find(Nt.bind(null,n)))return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Xs(e,t){let n=0,o=t.length;for(;n!==o;){const a=n+o>>1;Hn(e,t[a])<0?o=a:n=a+1}const s=Zs(e);return s&&(o=t.lastIndexOf(s,o-1),process.env.NODE_ENV!=="production"&&o<0&&P(`Finding ancestor route "${s.record.path}" failed for "${e.record.path}"`)),o}function Zs(e){let t=e;for(;t=t.parent;)if(Qn(t)&&Hn(e,t)===0)return t}function Qn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ea(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const s=n[o].replace(Dn," "),a=s.indexOf("="),i=be(a<0?s:s.slice(0,a)),c=a<0?null:be(s.slice(a+1));if(i in t){let l=t[i];q(l)||(l=t[i]=[l]),l.push(c)}else t[i]=c}return t}function Xn(e){let t="";for(let n in e){const o=e[n];if(n=gs(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(q(o)?o.map(s=>s&&Et(s)):[o&&Et(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function ta(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=q(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const na=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Zn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Ot=Symbol(process.env.NODE_ENV!=="production"?"router":""),eo=Symbol(process.env.NODE_ENV!=="production"?"route location":""),St=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ie(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function de(e,t,n,o,s,a=i=>i()){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const p=f=>{f===!1?l(ve(4,{from:n,to:t})):f instanceof Error?l(f):Qe(f)?l(ve(2,{from:t,to:f})):(i&&o.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),c())},d=a(()=>e.call(o&&o.instances[s],t,n,process.env.NODE_ENV!=="production"?oa(p,t,n):p));let u=Promise.resolve(d);if(e.length<3&&(u=u.then(p)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
22
+ `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${js(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function Ee(e,t){return process.env.NODE_ENV!=="production"?A(new Error(As[e](t)),{type:e,[$t]:!0},t):A(new Error,{type:e,[$t]:!0},t)}function re(e,t){return e instanceof Error&&$t in e&&(t==null||!!(e.type&t))}const Ts=["params","query","hash"];function js(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ts)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const zn="[^/]+?",Bs={sensitive:!1,strict:!1,start:!0,end:!0},Ls=/[.+*?^${}()[\]/\\]/g;function Ms(e,t){const n=A({},Bs,t),o=[];let s=n.start?"^":"";const a=[];for(const p of e){const d=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let u=0;u<p.length;u++){const f=p[u];let h=40+(n.sensitive?.25:0);if(f.type===0)u||(s+="/"),s+=f.value.replace(Ls,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:E,optional:O,regexp:N}=f;a.push({name:m,repeatable:E,optional:O});const x=N||zn;if(x!==zn){h+=10;try{new RegExp(`(${x})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${m}" (${x}): `+B.message)}}let I=E?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;u||(I=O&&p.length<2?`(?:/${I})`:"/"+I),O&&(I+="?"),s+=I,h+=20,O&&(h+=-8),E&&(h+=-20),x===".*"&&(h+=-50)}d.push(h)}o.push(d)}if(n.strict&&n.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function c(p){const d=p.match(i),u={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",m=a[f-1];u[m.name]=h&&m.repeatable?h.split("/"):h}return u}function l(p){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:m,repeatable:E,optional:O}=h,N=m in p?p[m]:"";if(G(N)&&!E)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const x=G(N)?N.join("/"):N;if(!x)if(O)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);d+=x}}return d||"/"}return{re:i,score:o,keys:a,parse:c,stringify:l}}function Ws(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Hn(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const a=Ws(o[n],s[n]);if(a)return a;n++}if(Math.abs(s.length-o.length)===1){if(qn(o))return 1;if(qn(s))return-1}return s.length-o.length}function qn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Us={type:0,value:""},Fs=/[a-zA-Z0-9_]/;function zs(e){if(!e)return[[]];if(e==="/")return[[Us]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${p}": ${h}`)}let n=0,o=n;const s=[];let a;function i(){a&&s.push(a),a=[]}let c=0,l,p="",d="";function u(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function f(){p+=l}for(;c<e.length;){if(l=e[c++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(p&&u(),i()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:Fs.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),u(),i(),s}function Hs(e,t,n){const o=Ms(zs(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const i of o.keys)a.has(i.name)&&P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(i.name)}const s=A(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function qs(e,t){const n=[],o=new Map;t=Kn({strict:!1,end:!0,sensitive:!1},t);function s(u){return o.get(u)}function a(u,f,h){const m=!h,E=Jn(u);process.env.NODE_ENV!=="production"&&Ks(E,f),E.aliasOf=h&&h.record;const O=Kn(t,u),N=[E];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const $ of B)N.push(Jn(A({},E,{components:h?h.record.components:E.components,path:$,aliasOf:h?h.record:E})))}let x,I;for(const B of N){const{path:$}=B;if(f&&$[0]!=="/"){const C=f.record.path,w=C[C.length-1]==="/"?"":"/";B.path=f.record.path+($&&w+$)}if(process.env.NODE_ENV!=="production"&&B.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
+ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(x=Hs(B,f,O),process.env.NODE_ENV!=="production"&&f&&$[0]==="/"&&Xs(x,f),h?(h.alias.push(x),process.env.NODE_ENV!=="production"&&Ys(h,x)):(I=I||x,I!==x&&I.alias.push(x),m&&u.name&&!Yn(x)&&(process.env.NODE_ENV!=="production"&&Qs(u,f),i(u.name))),Qn(x)&&l(x),E.children){const C=E.children;for(let w=0;w<C.length;w++)a(C[w],x,h&&h.children[w])}h=h||x}return I?()=>{i(I)}:Ve}function i(u){if(Un(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){const f=Zs(u,n);n.splice(f,0,u),u.record.name&&!Yn(u)&&o.set(u.record.name,u)}function p(u,f){let h,m={},E,O;if("name"in u&&u.name){if(h=o.get(u.name),!h)throw Ee(1,{location:u});if(process.env.NODE_ENV!=="production"){const I=Object.keys(u.params||{}).filter(B=>!h.keys.find($=>$.name===B));I.length&&P(`Discarded invalid param(s) "${I.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}O=h.record.name,m=A(Gn(f.params,h.keys.filter(I=>!I.optional).concat(h.parent?h.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),u.params&&Gn(u.params,h.keys.map(I=>I.name))),E=h.stringify(m)}else if(u.path!=null)E=u.path,process.env.NODE_ENV!=="production"&&!E.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${E}". Unless you directly called \`matcher.resolve("${E}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(I=>I.re.test(E)),h&&(m=h.parse(E),O=h.record.name);else{if(h=f.name?o.get(f.name):n.find(I=>I.re.test(f.path)),!h)throw Ee(1,{location:u,currentLocation:f});O=h.record.name,m=A({},f.params,u.params),E=h.stringify(m)}const N=[];let x=h;for(;x;)N.unshift(x.record),x=x.parent;return{name:O,path:E,params:m,matched:N,meta:Js(N)}}e.forEach(u=>a(u));function d(){n.length=0,o.clear()}return{addRoute:a,resolve:p,removeRoute:i,clearRoutes:d,getRoutes:c,getRecordMatcher:s}}function Gn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Jn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Gs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Yn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Js(e){return e.reduce((t,n)=>A(t,n.meta),{})}function Kn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ot(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ys(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Ot.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Ot.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Ks(e,t){t&&t.record.name&&!e.name&&!e.path&&P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Qs(e,t){for(let n=t;n;n=n.parent)if(n.record.name===e.name)throw new Error(`A route named "${String(e.name)}" has been added as a ${t===n?"child":"descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`)}function Xs(e,t){for(const n of t.keys)if(!e.keys.find(Ot.bind(null,n)))return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Zs(e,t){let n=0,o=t.length;for(;n!==o;){const a=n+o>>1;Hn(e,t[a])<0?o=a:n=a+1}const s=ea(e);return s&&(o=t.lastIndexOf(s,o-1),process.env.NODE_ENV!=="production"&&o<0&&P(`Finding ancestor route "${s.record.path}" failed for "${e.record.path}"`)),o}function ea(e){let t=e;for(;t=t.parent;)if(Qn(t)&&Hn(e,t)===0)return t}function Qn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ta(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const s=n[o].replace(Vn," "),a=s.indexOf("="),i=ve(a<0?s:s.slice(0,a)),c=a<0?null:ve(s.slice(a+1));if(i in t){let l=t[i];G(l)||(l=t[i]=[l]),l.push(c)}else t[i]=c}return t}function Xn(e){let t="";for(let n in e){const o=e[n];if(n=gs(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(G(o)?o.map(s=>s&&_t(s)):[o&&_t(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function na(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=G(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const oa=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Zn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),St=Symbol(process.env.NODE_ENV!=="production"?"router":""),eo=Symbol(process.env.NODE_ENV!=="production"?"route location":""),xt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Re(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fe(e,t,n,o,s,a=i=>i()){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const p=f=>{f===!1?l(Ee(4,{from:n,to:t})):f instanceof Error?l(f):Xe(f)?l(Ee(2,{from:t,to:f})):(i&&o.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),c())},d=a(()=>e.call(o&&o.instances[s],t,n,process.env.NODE_ENV!=="production"?ra(p,t,n):p));let u=Promise.resolve(d);if(e.length<3&&(u=u.then(p)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
24
24
  ${e.toString()}
25
- . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof d=="object"&&"then"in d)u=u.then(m=>p._called?m:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!p._called){P(f),l(new Error("Invalid navigation guard"));return}}u.catch(f=>l(f))})}function oa(e,t,n){let o=0;return function(){o++===1&&P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function xt(e,t,n,o,s=a=>a()){const a=[];for(const i of e){process.env.NODE_ENV!=="production"&&!i.components&&!i.children.length&&P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const c in i.components){let l=i.components[c];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){P(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const p=l;l=()=>p}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,P(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(Cn(l)){const p=(l.__vccOpts||l)[t];p&&a.push(de(p,n,o,i,c,s))}else{let p=l();process.env.NODE_ENV!=="production"&&!("catch"in p)&&(P(`Component "${c}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),p=Promise.resolve(p)),a.push(()=>p.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);const u=ss(d)?d.default:d;i.mods[c]=d,i.components[c]=u;const f=(u.__vccOpts||u)[t];return f&&de(f,n,o,i,c,s)()}))}}}return a}function to(e){const t=r.inject(Ot),n=r.inject(eo);let o=!1,s=null;const a=r.computed(()=>{const d=r.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||d!==s)&&(Qe(d)||(o?P(`Invalid value for prop "to" in useLink()
25
+ . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof d=="object"&&"then"in d)u=u.then(h=>p._called?h:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!p._called){P(f),l(new Error("Invalid navigation guard"));return}}u.catch(f=>l(f))})}function ra(e,t,n){let o=0;return function(){o++===1&&P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function Ct(e,t,n,o,s=a=>a()){const a=[];for(const i of e){process.env.NODE_ENV!=="production"&&!i.components&&!i.children.length&&P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const c in i.components){let l=i.components[c];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){P(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const p=l;l=()=>p}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,P(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(Cn(l)){const p=(l.__vccOpts||l)[t];p&&a.push(fe(p,n,o,i,c,s))}else{let p=l();process.env.NODE_ENV!=="production"&&!("catch"in p)&&(P(`Component "${c}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),p=Promise.resolve(p)),a.push(()=>p.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);const u=ss(d)?d.default:d;i.mods[c]=d,i.components[c]=u;const f=(u.__vccOpts||u)[t];return f&&fe(f,n,o,i,c,s)()}))}}}return a}function to(e){const t=r.inject(St),n=r.inject(eo);let o=!1,s=null;const a=r.computed(()=>{const d=r.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||d!==s)&&(Xe(d)||(o?P(`Invalid value for prop "to" in useLink()
26
26
  - to:`,d,`
27
27
  - previous to:`,s,`
28
28
  - props:`,e):P(`Invalid value for prop "to" in useLink()
29
29
  - to:`,d,`
30
- - props:`,e)),s=d,o=!0),t.resolve(d)}),i=r.computed(()=>{const{matched:d}=a.value,{length:u}=d,f=d[u-1],m=n.matched;if(!f||!m.length)return-1;const h=m.findIndex(le.bind(null,f));if(h>-1)return h;const v=no(d[u-2]);return u>1&&no(f)===v&&m[m.length-1].path!==v?m.findIndex(le.bind(null,d[u-2])):h}),c=r.computed(()=>i.value>-1&&ia(n.params,a.value.params)),l=r.computed(()=>i.value>-1&&i.value===n.matched.length-1&&jn(n.params,a.value.params));function p(d={}){return aa(d)?t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Pe):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&te){const d=r.getCurrentInstance();if(d){const u={route:a.value,isActive:c.value,isExactActive:l.value,error:null};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(u),r.watchEffect(()=>{u.route=a.value,u.isActive=c.value,u.isExactActive=l.value,u.error=Qe(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:a,href:r.computed(()=>a.value.href),isActive:c,isExactActive:l,navigate:p}}const ra=r.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:to,setup(e,{slots:t}){const n=r.reactive(to(e)),{options:o}=r.inject(Ot),s=r.computed(()=>({[oo(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[oo(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},a)}}}),sa=ra;function aa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ia(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!q(s)||s.length!==o.length||o.some((a,i)=>a!==s[i]))return!1}return!0}function no(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const oo=(e,t,n)=>e??t??n,ca=r.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&ua();const o=r.inject(St),s=r.computed(()=>e.route||o.value),a=r.inject(Zn,0),i=r.computed(()=>{let p=r.unref(a);const{matched:d}=s.value;let u;for(;(u=d[p])&&!u.components;)p++;return p}),c=r.computed(()=>s.value.matched[i.value]);r.provide(Zn,r.computed(()=>i.value+1)),r.provide(na,c),r.provide(St,s);const l=r.ref();return r.watch(()=>[l.value,c.value,e.name],([p,d,u],[f,m,h])=>{d&&(d.instances[u]=p,m&&m!==d&&p&&p===f&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),p&&d&&(!m||!le(d,m)||!f)&&(d.enterCallbacks[u]||[]).forEach(v=>v(p))},{flush:"post"}),()=>{const p=s.value,d=e.name,u=c.value,f=u&&u.components[d];if(!f)return ro(n.default,{Component:f,route:p});const m=u.props[d],h=m?m===!0?p.params:typeof m=="function"?m(p):m:null,v=r.h(f,A({},h,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(u.instances[d]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&te&&v.ref){const N={depth:i.value,name:u.name,path:u.path,meta:u.meta};(q(v.ref)?v.ref.map(k=>k.i):[v.ref.i]).forEach(k=>{k.__vrv_devtools=N})}return ro(n.default,{Component:v,route:p})||v}}});function ro(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const la=ca;function ua(){const e=r.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
30
+ - props:`,e)),s=d,o=!0),t.resolve(d)}),i=r.computed(()=>{const{matched:d}=a.value,{length:u}=d,f=d[u-1],h=n.matched;if(!f||!h.length)return-1;const m=h.findIndex(de.bind(null,f));if(m>-1)return m;const E=no(d[u-2]);return u>1&&no(f)===E&&h[h.length-1].path!==E?h.findIndex(de.bind(null,d[u-2])):m}),c=r.computed(()=>i.value>-1&&la(n.params,a.value.params)),l=r.computed(()=>i.value>-1&&i.value===n.matched.length-1&&jn(n.params,a.value.params));function p(d={}){if(ca(d)){const u=t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Ve);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}if(process.env.NODE_ENV!=="production"&&oe){const d=r.getCurrentInstance();if(d){const u={route:a.value,isActive:c.value,isExactActive:l.value,error:null};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(u),r.watchEffect(()=>{u.route=a.value,u.isActive=c.value,u.isExactActive=l.value,u.error=Xe(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:a,href:r.computed(()=>a.value.href),isActive:c,isExactActive:l,navigate:p}}function sa(e){return e.length===1?e[0]:e}const aa=r.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:to,setup(e,{slots:t}){const n=r.reactive(to(e)),{options:o}=r.inject(St),s=r.computed(()=>({[oo(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[oo(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&sa(t.default(n));return e.custom?a:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},a)}}}),ia=aa;function ca(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function la(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!G(s)||s.length!==o.length||o.some((a,i)=>a!==s[i]))return!1}return!0}function no(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const oo=(e,t,n)=>e??t??n,ua=r.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&pa();const o=r.inject(xt),s=r.computed(()=>e.route||o.value),a=r.inject(Zn,0),i=r.computed(()=>{let p=r.unref(a);const{matched:d}=s.value;let u;for(;(u=d[p])&&!u.components;)p++;return p}),c=r.computed(()=>s.value.matched[i.value]);r.provide(Zn,r.computed(()=>i.value+1)),r.provide(oa,c),r.provide(xt,s);const l=r.ref();return r.watch(()=>[l.value,c.value,e.name],([p,d,u],[f,h,m])=>{d&&(d.instances[u]=p,h&&h!==d&&p&&p===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),p&&d&&(!h||!de(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(E=>E(p))},{flush:"post"}),()=>{const p=s.value,d=e.name,u=c.value,f=u&&u.components[d];if(!f)return ro(n.default,{Component:f,route:p});const h=u.props[d],m=h?h===!0?p.params:typeof h=="function"?h(p):h:null,E=r.h(f,A({},m,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(u.instances[d]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&oe&&E.ref){const O={depth:i.value,name:u.name,path:u.path,meta:u.meta};(G(E.ref)?E.ref.map(N=>N.i):[E.ref.i]).forEach(N=>{N.__vrv_devtools=O})}return ro(n.default,{Component:E,route:p})||E}}});function ro(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const da=ua;function pa(){const e=r.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
31
31
  Use slot props instead:
32
32
 
33
33
  <router-view v-slot="{ Component }">
34
34
  <${o}>
35
35
  <component :is="Component" />
36
36
  </${o}>
37
- </router-view>`)}}function Re(e,t){const n=A({},e,{matched:e.matched.map(o=>Ea(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Xe(e){return{_custom:{display:e}}}let da=0;function pa(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=da++;ft({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((d,u)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Re(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:d,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:so})}q(u.__vrl_devtools)&&(u.__devtoolsApi=s,u.__vrl_devtools.forEach(f=>{let m=f.route.path,h=co,v="",N=0;f.error?(m=f.error,h=ya,N=wa):f.isExactActive?(h=io,v="This is exactly active"):f.isActive&&(h=ao,v="This link is active"),d.tags.push({label:m,textColor:N,tooltip:v,backgroundColor:h})}))}),r.watch(t.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(c),s.sendInspectorState(c)});const a="router:navigations:"+o;s.addTimelineLayer({id:a,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((d,u)=>{s.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:s.now(),data:{error:d},groupId:u.meta.__navigationId}})});let i=0;t.beforeEach((d,u)=>{const f={guard:Xe("beforeEach"),from:Re(u,"Current Location during this navigation"),to:Re(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:a,event:{time:s.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,u,f)=>{const m={guard:Xe("afterEach")};f?(m.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},m.status=Xe("โŒ")):m.status=Xe("โœ…"),m.from=Re(u,"Current Location during this navigation"),m.to=Re(d,"Target location"),s.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:d.fullPath,time:s.now(),data:m,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const c="router-inspector:"+o;s.addInspector({id:c,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!p)return;const d=p;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(po),d.filter&&(u=u.filter(f=>Ct(f,d.filter.toLowerCase()))),u.forEach(f=>uo(f,t.currentRoute.value)),d.rootNodes=u.map(lo)}let p;s.on.getInspectorTree(d=>{p=d,d.app===e&&d.inspectorId===c&&l()}),s.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===c){const u=n.getRoutes().find(f=>f.record.__vd_id===d.nodeId);u&&(d.state={options:ma(u)})}}),s.sendInspectorTree(c),s.sendInspectorState(c)})}function fa(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function ma(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${fa(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const so=15485081,ao=2450411,io=8702998,ha=2282478,co=16486972,ga=6710886,ya=16704226,wa=12131356;function lo(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:ha}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:co}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:so}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:io}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:ao}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:ga});let o=n.__vd_id;return o==null&&(o=String(ba++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(lo)}}let ba=0;const va=/^\/(.*)\/([a-z]*)$/;function uo(e,t){const n=t.matched.length&&le(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>le(o,e.record))),e.children.forEach(o=>uo(o,t))}function po(e){e.__vd_match=!1,e.children.forEach(po)}function Ct(e,t){const n=String(e.re).match(va);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(a=>Ct(a,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),s=be(o);return!t.startsWith("/")&&(s.includes(t)||o.includes(t))||s.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Ct(a,t))}function Ea(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function _a(e){const t=Gs(e.routes,e),n=e.parseQuery||ea,o=e.stringifyQuery||Xn,s=e.history;if(process.env.NODE_ENV!=="production"&&!s)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const a=Ie(),i=Ie(),c=Ie(),l=r.shallowRef(ue);let p=ue;te&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bt.bind(null,w=>""+w),u=bt.bind(null,ws),f=bt.bind(null,be);function m(w,_){let E,O;return Wn(w)?(E=t.getRecordMatcher(w),process.env.NODE_ENV!=="production"&&!E&&P(`Parent route "${String(w)}" not found when adding child route`,_),O=_):O=w,t.addRoute(O,E)}function h(w){const _=t.getRecordMatcher(w);_?t.removeRoute(_):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(w)}"`)}function v(){return t.getRoutes().map(w=>w.record)}function N(w){return!!t.getRecordMatcher(w)}function k(w,_){if(_=A({},_||l.value),typeof w=="string"){const D=_t(n,w,_.path),L=t.resolve({path:D.path},_),ge=s.createHref(D.fullPath);return process.env.NODE_ENV!=="production"&&(ge.startsWith("//")?P(`Location "${w}" resolved to "${ge}". A resolved location cannot start with multiple slashes.`):L.matched.length||P(`No match found for location with path "${w}"`)),A(D,L,{params:f(L.params),hash:be(D.hash),redirectedFrom:void 0,href:ge})}if(process.env.NODE_ENV!=="production"&&!Qe(w))return P(`router.resolve() was passed an invalid location. This will fail in production.
38
- - Location:`,w),k({});let E;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&P(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),E=A({},w,{path:_t(n,w.path,_.path).path});else{const D=A({},w.params);for(const L in D)D[L]==null&&delete D[L];E=A({},w,{params:u(D)}),_.params=u(_.params)}const O=t.resolve(E,_),T=w.hash||"";process.env.NODE_ENV!=="production"&&T&&!T.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`),O.params=d(f(O.params));const U=Es(o,A({},w,{hash:hs(T),path:O.path})),I=s.createHref(U);return process.env.NODE_ENV!=="production"&&(I.startsWith("//")?P(`Location "${w}" resolved to "${I}". A resolved location cannot start with multiple slashes.`):O.matched.length||P(`No match found for location with path "${w.path!=null?w.path:w}"`)),A({fullPath:U,hash:T,query:o===Xn?ta(w.query):w.query||{}},O,{redirectedFrom:void 0,href:I})}function S(w){return typeof w=="string"?_t(n,w,l.value.path):A({},w)}function V(w,_){if(p!==w)return ve(8,{from:_,to:w})}function B(w){return b(w)}function $(w){return B(A(S(w),{replace:!0}))}function C(w){const _=w.matched[w.matched.length-1];if(_&&_.redirect){const{redirect:E}=_;let O=typeof E=="function"?E(w):E;if(typeof O=="string"&&(O=O.includes("?")||O.includes("#")?O=S(O):{path:O},O.params={}),process.env.NODE_ENV!=="production"&&O.path==null&&!("name"in O))throw P(`Invalid redirect found:
39
- ${JSON.stringify(O,null,2)}
40
- when navigating to "${w.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return A({query:w.query,hash:w.hash,params:O.path!=null?{}:w.params},O)}}function b(w,_){const E=p=k(w),O=l.value,T=w.state,U=w.force,I=w.replace===!0,D=C(E);if(D)return b(A(S(D),{state:typeof D=="object"?A({},T,D.state):T,force:U,replace:I}),_||E);const L=E;L.redirectedFrom=_;let ge;return!U&&Tn(o,O,E)&&(ge=ve(16,{to:L,from:O}),lr(O,O,!0,!1)),(ge?Promise.resolve(ge):y(L,O)).catch(G=>ne(G)?ne(G,2)?G:nn(G):j(G,L,O)).then(G=>{if(G){if(ne(G,2))return process.env.NODE_ENV!=="production"&&Tn(o,k(G.to),L)&&_&&(_._count=_._count?_._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${O.fullPath}" to "${L.fullPath}". Aborting to avoid a Stack Overflow.
41
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):b(A({replace:I},S(G.to),{state:typeof G.to=="object"?A({},T,G.to.state):T,force:U}),_||L)}else G=M(L,O,!0,I,T);return x(L,O,G),G})}function R(w,_){const E=V(w,_);return E?Promise.reject(E):Promise.resolve()}function g(w){const _=at.values().next().value;return _&&typeof _.runWithContext=="function"?_.runWithContext(w):w()}function y(w,_){let E;const[O,T,U]=ka(w,_);E=xt(O.reverse(),"beforeRouteLeave",w,_);for(const D of O)D.leaveGuards.forEach(L=>{E.push(de(L,w,_))});const I=R.bind(null,w,_);return E.push(I),Oe(E).then(()=>{E=[];for(const D of a.list())E.push(de(D,w,_));return E.push(I),Oe(E)}).then(()=>{E=xt(T,"beforeRouteUpdate",w,_);for(const D of T)D.updateGuards.forEach(L=>{E.push(de(L,w,_))});return E.push(I),Oe(E)}).then(()=>{E=[];for(const D of U)if(D.beforeEnter)if(q(D.beforeEnter))for(const L of D.beforeEnter)E.push(de(L,w,_));else E.push(de(D.beforeEnter,w,_));return E.push(I),Oe(E)}).then(()=>(w.matched.forEach(D=>D.enterCallbacks={}),E=xt(U,"beforeRouteEnter",w,_,g),E.push(I),Oe(E))).then(()=>{E=[];for(const D of i.list())E.push(de(D,w,_));return E.push(I),Oe(E)}).catch(D=>ne(D,8)?D:Promise.reject(D))}function x(w,_,E){c.list().forEach(O=>g(()=>O(w,_,E)))}function M(w,_,E,O,T){const U=V(w,_);if(U)return U;const I=_===ue,D=te?history.state:{};E&&(O||I?s.replace(w.fullPath,A({scroll:I&&D&&D.scroll},T)):s.push(w.fullPath,T)),l.value=w,lr(w,_,E,I),nn()}let F;function ae(){F||(F=s.listen((w,_,E)=>{const O=k(w),T=C(O);if(T){b(A(T,{replace:!0}),O).catch(Pe);return}p=O;const U=l.value;te&&Cs(Mn(U.fullPath,E.delta),Ye()),y(O,U).catch(I=>ne(I,12)?I:ne(I,2)?(b(I.to,O).then(D=>{ne(D,20)&&!E.delta&&E.type===De.pop&&s.go(-1,!1)}).catch(Pe),Promise.reject()):(E.delta&&s.go(-E.delta,!1),j(I,O,U))).then(I=>{I=I||M(O,U,!1),I&&(E.delta&&!ne(I,8)?s.go(-E.delta,!1):E.type===De.pop&&ne(I,20)&&s.go(-1,!1)),x(O,U,I)}).catch(Pe)}))}let he=Ie(),Ne=Ie(),H;function j(w,_,E){nn(w);const O=Ne.list();return O.length?O.forEach(T=>T(w,_,E)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(w)),Promise.reject(w)}function Mc(){return H&&l.value!==ue?Promise.resolve():new Promise((w,_)=>{he.add([w,_])})}function nn(w){return H||(H=!w,ae(),he.list().forEach(([_,E])=>w?E(w):_()),he.reset()),w}function lr(w,_,E,O){const{scrollBehavior:T}=e;if(!te||!T)return Promise.resolve();const U=!E&&Ps(Mn(w.fullPath,0))||(O||!E)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>T(w,_,U)).then(I=>I&&xs(I)).catch(I=>j(I,w,_))}const on=w=>s.go(w);let rn;const at=new Set,Lc={currentRoute:l,listening:!0,addRoute:m,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:v,resolve:k,options:e,push:B,replace:$,go:on,back:()=>on(-1),forward:()=>on(1),beforeEach:a.add,beforeResolve:i.add,afterEach:c.add,onError:Ne.add,isReady:Mc,install(w){const _=this;w.component("RouterLink",sa),w.component("RouterView",la),w.config.globalProperties.$router=_,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(l)}),te&&!rn&&l.value===ue&&(rn=!0,B(s.location).catch(T=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",T)}));const E={};for(const T in ue)Object.defineProperty(E,T,{get:()=>l.value[T],enumerable:!0});w.provide(Ot,_),w.provide(eo,r.shallowReactive(E)),w.provide(St,l);const O=w.unmount;at.add(w),w.unmount=function(){at.delete(w),at.size<1&&(p=ue,F&&F(),F=null,l.value=ue,rn=!1,H=!1),O()},process.env.NODE_ENV!=="production"&&te&&pa(w,_,t)}};function Oe(w){return w.reduce((_,E)=>_.then(()=>g(E)),Promise.resolve())}return Lc}function ka(e,t){const n=[],o=[],s=[],a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const c=t.matched[i];c&&(e.matched.find(p=>le(p,c))?o.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(p=>le(p,l))||s.push(l))}return[n,o,s]}_a({history:Rs(),routes:[]});function $a(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Ee=Promise.resolve();function fo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Na(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Pt(){return Math.random().toString(36).substring(2)}var mo=0,Dt=0;function Ze(){var e=new Date().getTime();return e===mo?(Dt++,e*1e3+Dt):(mo=e,Dt=0,e*1e3)}var Oa=Ze,Sa="native";function xa(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Ca(e){e.bc.close(),e.subFns=[]}function Pa(e,t){try{return e.bc.postMessage(t,!1),Ee}catch(n){return Promise.reject(n)}}function Da(e,t){e.messagesCallback=t}function Va(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Ia(){return 150}var Ra={create:xa,close:Ca,onMessage:Da,postMessage:Pa,canBeUsed:Va,type:Sa,averageResponseTime:Ia,microSeconds:Oa},ho=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,go()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,Aa(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function Aa(e){for(var t=go()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var s=o[0],a=o[1];if(a<t)e.map.delete(s);else return}}function go(){return new Date().getTime()}function Vt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var Ta=Ze,ja="pubkey.broadcast-channel-0-",oe="messages",et={durability:"relaxed"},Ba="idb";function yo(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function It(e){e.commit&&e.commit()}function Ma(e){var t=yo(),n=ja+e,o=t.open(n);return o.onupgradeneeded=function(s){var a=s.target.result;a.createObjectStore(oe,{keyPath:"id",autoIncrement:!0})},new Promise(function(s,a){o.onerror=function(i){return a(i)},o.onsuccess=function(){s(o.result)}})}function La(e,t,n){var o=new Date().getTime(),s={uuid:t,time:o,data:n},a=e.transaction([oe],"readwrite",et);return new Promise(function(i,c){a.oncomplete=function(){return i()},a.onerror=function(p){return c(p)};var l=a.objectStore(oe);l.add(s),It(a)})}function Ua(e,t){var n=e.transaction(oe,"readonly",et),o=n.objectStore(oe),s=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(a);return new Promise(function(l,p){i.onerror=function(d){return p(d)},i.onsuccess=function(d){l(d.target.result)}})}function c(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(l,p){var d=c();d.onerror=function(u){return p(u)},d.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(s.push(f.value),f.continue()):(It(n),l(s))}})}function Wa(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(oe,"readwrite",et),o=n.objectStore(oe);return Promise.all(t.map(function(s){var a=o.delete(s);return new Promise(function(i){a.onsuccess=function(){return i()}})}))}function Fa(e,t){var n=new Date().getTime()-t,o=e.transaction(oe,"readonly",et),s=o.objectStore(oe),a=[];return new Promise(function(i){s.openCursor().onsuccess=function(c){var l=c.target.result;if(l){var p=l.value;p.time<n?(a.push(p),l.continue()):(It(o),i(a))}else i(a)}})}function za(e){return Fa(e.db,e.options.idb.ttl).then(function(t){return Wa(e,t.map(function(n){return n.id}))})}function Ha(e,t){return t=Vt(t),Ma(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Pt(),eMIs:new ho(t.idb.ttl*2),writeBlockPromise:Ee,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},wo(o),o})}function wo(e){e.closed||bo(e).then(function(){return fo(e.options.idb.fallbackInterval)}).then(function(){return wo(e)})}function Ga(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function bo(e){return e.closed||!e.messagesCallback?Ee:Ua(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return Ga(o,e)}).sort(function(o,s){return o.time-s.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),Ee})}function qa(e){e.closed=!0,e.db.close()}function Ja(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return La(e.db,e.uuid,t)}).then(function(){Na(0,10)===0&&za(e)}),e.writeBlockPromise}function Ka(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,bo(e)}function Ya(){return!!yo()}function Qa(e){return e.idb.fallbackInterval*2}var Xa={create:Ha,close:qa,onMessage:Ka,postMessage:Ja,canBeUsed:Ya,type:Ba,averageResponseTime:Qa,microSeconds:Ta},Za=Ze,ei="pubkey.broadcastChannel-",ti="localstorage";function vo(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Eo(e){return ei+e}function ni(e,t){return new Promise(function(n){fo().then(function(){var o=Eo(e.channelName),s={token:Pt(),time:new Date().getTime(),data:t,uuid:e.uuid},a=JSON.stringify(s);vo().setItem(o,a);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=a,window.dispatchEvent(i),n()})})}function oi(e,t){var n=Eo(e),o=function(s){s.key===n&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",o),o}function ri(e){window.removeEventListener("storage",e)}function si(e,t){if(t=Vt(t),!_o())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Pt(),o=new ho(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:o};return s.listener=oi(e,function(a){s.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<s.messagesCallbackTime||(o.add(a.token),s.messagesCallback(a.data)))}),s}function ai(e){ri(e.listener)}function ii(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function _o(){var e=vo();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function ci(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var li={create:si,close:ai,onMessage:ii,postMessage:ni,canBeUsed:_o,type:ti,averageResponseTime:ci,microSeconds:Za},ui=Ze,di="simulate",Rt=new Set;function pi(e){var t={name:e,messagesCallback:null};return Rt.add(t),t}function fi(e){Rt.delete(e)}function mi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Rt);o.filter(function(s){return s.name===e.name}).filter(function(s){return s!==e}).filter(function(s){return!!s.messagesCallback}).forEach(function(s){return s.messagesCallback(t)}),n()},5)})}function hi(e,t){e.messagesCallback=t}function gi(){return!0}function yi(){return 5}var wi={create:pi,close:fi,onMessage:hi,postMessage:mi,canBeUsed:gi,type:di,averageResponseTime:yi,microSeconds:ui},ko=[Ra,Xa,li];function bi(e){var t=[].concat(e.methods,ko).filter(Boolean);if(e.type){if(e.type==="simulate")return wi;var n=t.find(function(s){return s.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(s){return s.type!=="idb"}));var o=t.find(function(s){return s.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(ko.map(function(s){return s.type})))}var $o=new Set,vi=0,At=function(e,t){this.id=vi++,$o.add(this),this.name=e,this.options=Vt(t),this.method=bi(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Ei(this)};At._pubkey=!0,At.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return No(this,"message",e)},postInternal:function(e){return No(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};xo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,So(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};So(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});xo(this,e,n)},close:function(){var e=this;if(!this.closed){$o.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Ee;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function No(e,t,n){var o=e.method.microSeconds(),s={time:o,type:t,data:n},a=e._prepP?e._prepP:Ee;return a.then(function(){var i=e.method.postMessage(e._state,s);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}function Ei(e){var t=e.method.create(e.name,e.options);$a(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function Oo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function So(e,t,n){e._addEL[t].push(n),_i(e)}function xo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ki(e)}function _i(e){if(!e._iL&&Oo(e)){var t=function(o){e._addEL[o.type].forEach(function(s){var a=1e5,i=s.time-a;o.time>=i&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ki(e){if(e._iL&&!Oo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Tt=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function Co(e){return Object(e)!==e}const $i=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ni(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===$i}function Oi(e){return Object.prototype.toString.call(e).slice(8,-1)}function Si(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function _e(e){let t="",n=0;const o=e.length;for(let s=0;s<o;s+=1){const a=e[s],i=Si(a);i&&(t+=e.slice(n,s)+i,n=s+1)}return`"${n===0?e:t+e.slice(n)}"`}const jt=-1,Po=-2,Do=-3,Vo=-4,Io=-5,Bt=-6;function Ro(e,t){return xi(JSON.parse(e))}function xi(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function s(a,i=!1){if(a===jt)return;if(a===Do)return NaN;if(a===Vo)return 1/0;if(a===Io)return-1/0;if(a===Bt)return-0;if(i)throw new Error("Invalid input");if(a in o)return o[a];const c=n[a];if(!c||typeof c!="object")o[a]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0];switch(l){case"Date":o[a]=new Date(c[1]);break;case"Set":const p=new Set;o[a]=p;for(let f=1;f<c.length;f+=1)p.add(s(c[f]));break;case"Map":const d=new Map;o[a]=d;for(let f=1;f<c.length;f+=2)d.set(s(c[f]),s(c[f+1]));break;case"RegExp":o[a]=new RegExp(c[1],c[2]);break;case"Object":o[a]=Object(c[1]);break;case"BigInt":o[a]=BigInt(c[1]);break;case"null":const u=Object.create(null);o[a]=u;for(let f=1;f<c.length;f+=2)u[c[f]]=s(c[f+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(c.length);o[a]=l;for(let p=0;p<c.length;p+=1){const d=c[p];d!==Po&&(l[p]=s(d))}}else{const l={};o[a]=l;for(const p in c){const d=c[p];l[p]=s(d)}}return o[a]}return s(0)}function Ao(e,t){const n=[],o=new Map,s=[];for(const p in t)s.push({key:p,fn:t[p]});const a=[];let i=0;function c(p){if(typeof p=="function")throw new Tt("Cannot stringify a function",a);if(o.has(p))return o.get(p);if(p===void 0)return jt;if(Number.isNaN(p))return Do;if(p===1/0)return Vo;if(p===-1/0)return Io;if(p===0&&1/p<0)return Bt;const d=i++;o.set(p,d);for(const{key:f,fn:m}of s){const h=m(p);if(h)return n[d]=`["${f}",${c(h)}]`,d}let u="";if(Co(p))u=Mt(p);else switch(Oi(p)){case"Number":case"String":case"Boolean":u=`["Object",${Mt(p)}]`;break;case"BigInt":u=`["BigInt",${p}]`;break;case"Date":u=`["Date","${isNaN(p.getDate())?"":p.toISOString()}"]`;break;case"RegExp":const{source:f,flags:m}=p;u=m?`["RegExp",${_e(f)},"${m}"]`:`["RegExp",${_e(f)}]`;break;case"Array":u="[";for(let h=0;h<p.length;h+=1)h>0&&(u+=","),h in p?(a.push(`[${h}]`),u+=c(p[h]),a.pop()):u+=Po;u+="]";break;case"Set":u='["Set"';for(const h of p)u+=`,${c(h)}`;u+="]";break;case"Map":u='["Map"';for(const[h,v]of p)a.push(`.get(${Co(h)?Mt(h):"..."})`),u+=`,${c(h)},${c(v)}`,a.pop();u+="]";break;default:if(!Ni(p))throw new Tt("Cannot stringify arbitrary non-POJOs",a);if(Object.getOwnPropertySymbols(p).length>0)throw new Tt("Cannot stringify POJOs with symbolic keys",a);if(Object.getPrototypeOf(p)===null){u='["null"';for(const h in p)a.push(`.${h}`),u+=`,${_e(h)},${c(p[h])}`,a.pop();u+="]"}else{u="{";let h=!1;for(const v in p)h&&(u+=","),h=!0,a.push(`.${v}`),u+=`${_e(v)}:${c(p[v])}`,a.pop();u+="}"}}return n[d]=u,d}const l=c(e);return l<0?`${l}`:`[${n.join(",")}]`}function Mt(e){const t=typeof e;return t==="string"?_e(e):e instanceof String?_e(e.toString()):e===void 0?jt.toString():e===0&&1/e<0?Bt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Ci(e,t,{initialize:n,type:o}){let s=`${t.$id}-${e.toString()}`,a=new At(s,{type:o}),i=!1,c=0;r.watch(()=>t[e],d=>{i||(c=Date.now(),a.postMessage({timestamp:c,state:Ro(Ao(d))})),i=!1},{deep:!0}),a.onmessage=d=>{if(d===void 0){a.postMessage({timestamp:c,state:Ro(Ao(t[e]))});return}d.timestamp<=c||(i=!0,c=d.timestamp,t[e]=d.state)};let l=()=>a.postMessage(void 0),p=()=>a.close();return n&&l(),{sync:l,unshare:p}}var Pi=(e,t)=>Object.keys(t).includes(e),Di=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:s})=>{var a,i;let c=((a=s==null?void 0:s.share)==null?void 0:a.enable)??t,l=((i=s==null?void 0:s.share)==null?void 0:i.omit)??[];!c||Object.keys(o.$state).forEach(p=>{var d;l.includes(p)||!Pi(p,o.$state)||Ci(p,o,{initialize:((d=s==null?void 0:s.share)==null?void 0:d.initialize)??e,type:n})})};Zr().use(Di({enable:!0,initialize:!0}));const To=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=xn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let s=t.value.schema.schema.toArray();s.forEach((a,i)=>{const l=t.value.store.record[a.fieldname];s[i].value=l}),o.value=s}}),(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Nr),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var Vi=!1;function tt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Lt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
37
+ </router-view>`)}}function Ae(e,t){const n=A({},e,{matched:e.matched.map(o=>ka(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Ze(e){return{_custom:{display:e}}}let fa=0;function ha(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=fa++;ht({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((d,u)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ae(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:d,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:so})}G(u.__vrl_devtools)&&(u.__devtoolsApi=s,u.__vrl_devtools.forEach(f=>{let h=f.route.path,m=co,E="",O=0;f.error?(h=f.error,m=ba,O=va):f.isExactActive?(m=io,E="This is exactly active"):f.isActive&&(m=ao,E="This link is active"),d.tags.push({label:h,textColor:O,tooltip:E,backgroundColor:m})}))}),r.watch(t.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(c),s.sendInspectorState(c)});const a="router:navigations:"+o;s.addTimelineLayer({id:a,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((d,u)=>{s.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:s.now(),data:{error:d},groupId:u.meta.__navigationId}})});let i=0;t.beforeEach((d,u)=>{const f={guard:Ze("beforeEach"),from:Ae(u,"Current Location during this navigation"),to:Ae(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:a,event:{time:s.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,u,f)=>{const h={guard:Ze("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Ze("โŒ")):h.status=Ze("โœ…"),h.from=Ae(u,"Current Location during this navigation"),h.to=Ae(d,"Target location"),s.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:d.fullPath,time:s.now(),data:h,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const c="router-inspector:"+o;s.addInspector({id:c,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!p)return;const d=p;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(po),d.filter&&(u=u.filter(f=>Pt(f,d.filter.toLowerCase()))),u.forEach(f=>uo(f,t.currentRoute.value)),d.rootNodes=u.map(lo)}let p;s.on.getInspectorTree(d=>{p=d,d.app===e&&d.inspectorId===c&&l()}),s.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===c){const u=n.getRoutes().find(f=>f.record.__vd_id===d.nodeId);u&&(d.state={options:ga(u)})}}),s.sendInspectorTree(c),s.sendInspectorState(c)})}function ma(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function ga(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${ma(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const so=15485081,ao=2450411,io=8702998,ya=2282478,co=16486972,wa=6710886,ba=16704226,va=12131356;function lo(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:ya}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:co}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:so}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:io}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:ao}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:wa});let o=n.__vd_id;return o==null&&(o=String(Ea++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(lo)}}let Ea=0;const _a=/^\/(.*)\/([a-z]*)$/;function uo(e,t){const n=t.matched.length&&de(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>de(o,e.record))),e.children.forEach(o=>uo(o,t))}function po(e){e.__vd_match=!1,e.children.forEach(po)}function Pt(e,t){const n=String(e.re).match(_a);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(a=>Pt(a,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),s=ve(o);return!t.startsWith("/")&&(s.includes(t)||o.includes(t))||s.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Pt(a,t))}function ka(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function Na(e){const t=qs(e.routes,e),n=e.parseQuery||ta,o=e.stringifyQuery||Xn,s=e.history;if(process.env.NODE_ENV!=="production"&&!s)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const a=Re(),i=Re(),c=Re(),l=r.shallowRef(pe);let p=pe;oe&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=vt.bind(null,y=>""+y),u=vt.bind(null,ws),f=vt.bind(null,ve);function h(y,k){let _,S;return Un(y)?(_=t.getRecordMatcher(y),process.env.NODE_ENV!=="production"&&!_&&P(`Parent route "${String(y)}" not found when adding child route`,k),S=k):S=y,t.addRoute(S,_)}function m(y){const k=t.getRecordMatcher(y);k?t.removeRoute(k):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(y)}"`)}function E(){return t.getRoutes().map(y=>y.record)}function O(y){return!!t.getRecordMatcher(y)}function N(y,k){if(k=A({},k||l.value),typeof y=="string"){const D=kt(n,y,k.path),W=t.resolve({path:D.path},k),ye=s.createHref(D.fullPath);return process.env.NODE_ENV!=="production"&&(ye.startsWith("//")?P(`Location "${y}" resolved to "${ye}". A resolved location cannot start with multiple slashes.`):W.matched.length||P(`No match found for location with path "${y}"`)),A(D,W,{params:f(W.params),hash:ve(D.hash),redirectedFrom:void 0,href:ye})}if(process.env.NODE_ENV!=="production"&&!Xe(y))return P(`router.resolve() was passed an invalid location. This will fail in production.
38
+ - Location:`,y),N({});let _;if(y.path!=null)process.env.NODE_ENV!=="production"&&"params"in y&&!("name"in y)&&Object.keys(y.params).length&&P(`Path "${y.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),_=A({},y,{path:kt(n,y.path,k.path).path});else{const D=A({},y.params);for(const W in D)D[W]==null&&delete D[W];_=A({},y,{params:u(D)}),k.params=u(k.params)}const S=t.resolve(_,k),T=y.hash||"";process.env.NODE_ENV!=="production"&&T&&!T.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`),S.params=d(f(S.params));const U=Es(o,A({},y,{hash:ms(T),path:S.path})),R=s.createHref(U);return process.env.NODE_ENV!=="production"&&(R.startsWith("//")?P(`Location "${y}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):S.matched.length||P(`No match found for location with path "${y.path!=null?y.path:y}"`)),A({fullPath:U,hash:T,query:o===Xn?na(y.query):y.query||{}},S,{redirectedFrom:void 0,href:R})}function x(y){return typeof y=="string"?kt(n,y,l.value.path):A({},y)}function I(y,k){if(p!==y)return Ee(8,{from:k,to:y})}function B(y){return w(y)}function $(y){return B(A(x(y),{replace:!0}))}function C(y){const k=y.matched[y.matched.length-1];if(k&&k.redirect){const{redirect:_}=k;let S=typeof _=="function"?_(y):_;if(typeof S=="string"&&(S=S.includes("?")||S.includes("#")?S=x(S):{path:S},S.params={}),process.env.NODE_ENV!=="production"&&S.path==null&&!("name"in S))throw P(`Invalid redirect found:
39
+ ${JSON.stringify(S,null,2)}
40
+ when navigating to "${y.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return A({query:y.query,hash:y.hash,params:S.path!=null?{}:y.params},S)}}function w(y,k){const _=p=N(y),S=l.value,T=y.state,U=y.force,R=y.replace===!0,D=C(_);if(D)return w(A(x(D),{state:typeof D=="object"?A({},T,D.state):T,force:U,replace:R}),k||_);const W=_;W.redirectedFrom=k;let ye;return!U&&Tn(o,S,_)&&(ye=Ee(16,{to:W,from:S}),lr(S,S,!0,!1)),(ye?Promise.resolve(ye):g(W,S)).catch(H=>re(H)?re(H,2)?H:nn(H):M(H,W,S)).then(H=>{if(H){if(re(H,2))return process.env.NODE_ENV!=="production"&&Tn(o,N(H.to),W)&&k&&(k._count=k._count?k._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${S.fullPath}" to "${W.fullPath}". Aborting to avoid a Stack Overflow.
41
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):w(A({replace:R},x(H.to),{state:typeof H.to=="object"?A({},T,H.to.state):T,force:U}),k||W)}else H=V(W,S,!0,R,T);return b(W,S,H),H})}function j(y,k){const _=I(y,k);return _?Promise.reject(_):Promise.resolve()}function v(y){const k=it.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(y):y()}function g(y,k){let _;const[S,T,U]=$a(y,k);_=Ct(S.reverse(),"beforeRouteLeave",y,k);for(const D of S)D.leaveGuards.forEach(W=>{_.push(fe(W,y,k))});const R=j.bind(null,y,k);return _.push(R),Se(_).then(()=>{_=[];for(const D of a.list())_.push(fe(D,y,k));return _.push(R),Se(_)}).then(()=>{_=Ct(T,"beforeRouteUpdate",y,k);for(const D of T)D.updateGuards.forEach(W=>{_.push(fe(W,y,k))});return _.push(R),Se(_)}).then(()=>{_=[];for(const D of U)if(D.beforeEnter)if(G(D.beforeEnter))for(const W of D.beforeEnter)_.push(fe(W,y,k));else _.push(fe(D.beforeEnter,y,k));return _.push(R),Se(_)}).then(()=>(y.matched.forEach(D=>D.enterCallbacks={}),_=Ct(U,"beforeRouteEnter",y,k,v),_.push(R),Se(_))).then(()=>{_=[];for(const D of i.list())_.push(fe(D,y,k));return _.push(R),Se(_)}).catch(D=>re(D,8)?D:Promise.reject(D))}function b(y,k,_){c.list().forEach(S=>v(()=>S(y,k,_)))}function V(y,k,_,S,T){const U=I(y,k);if(U)return U;const R=k===pe,D=oe?history.state:{};_&&(S||R?s.replace(y.fullPath,A({scroll:R&&D&&D.scroll},T)):s.push(y.fullPath,T)),l.value=y,lr(y,k,_,R),nn()}let L;function ee(){L||(L=s.listen((y,k,_)=>{const S=N(y),T=C(S);if(T){w(A(T,{replace:!0,force:!0}),S).catch(Ve);return}p=S;const U=l.value;oe&&Cs(Ln(U.fullPath,_.delta),Qe()),g(S,U).catch(R=>re(R,12)?R:re(R,2)?(w(A(x(R.to),{force:!0}),S).then(D=>{re(D,20)&&!_.delta&&_.type===De.pop&&s.go(-1,!1)}).catch(Ve),Promise.reject()):(_.delta&&s.go(-_.delta,!1),M(R,S,U))).then(R=>{R=R||V(S,U,!1),R&&(_.delta&&!re(R,8)?s.go(-_.delta,!1):_.type===De.pop&&re(R,20)&&s.go(-1,!1)),b(S,U,R)}).catch(Ve)}))}let ce=Re(),Oe=Re(),X;function M(y,k,_){nn(y);const S=Oe.list();return S.length?S.forEach(T=>T(y,k,_)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(y)),Promise.reject(y)}function q(){return X&&l.value!==pe?Promise.resolve():new Promise((y,k)=>{ce.add([y,k])})}function nn(y){return X||(X=!y,ee(),ce.list().forEach(([k,_])=>y?_(y):k()),ce.reset()),y}function lr(y,k,_,S){const{scrollBehavior:T}=e;if(!oe||!T)return Promise.resolve();const U=!_&&Ps(Ln(y.fullPath,0))||(S||!_)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>T(y,k,U)).then(R=>R&&xs(R)).catch(R=>M(R,y,k))}const on=y=>s.go(y);let rn;const it=new Set,Wc={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:O,getRoutes:E,resolve:N,options:e,push:B,replace:$,go:on,back:()=>on(-1),forward:()=>on(1),beforeEach:a.add,beforeResolve:i.add,afterEach:c.add,onError:Oe.add,isReady:q,install(y){const k=this;y.component("RouterLink",ia),y.component("RouterView",da),y.config.globalProperties.$router=k,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(l)}),oe&&!rn&&l.value===pe&&(rn=!0,B(s.location).catch(T=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",T)}));const _={};for(const T in pe)Object.defineProperty(_,T,{get:()=>l.value[T],enumerable:!0});y.provide(St,k),y.provide(eo,r.shallowReactive(_)),y.provide(xt,l);const S=y.unmount;it.add(y),y.unmount=function(){it.delete(y),it.size<1&&(p=pe,L&&L(),L=null,l.value=pe,rn=!1,X=!1),S()},process.env.NODE_ENV!=="production"&&oe&&ha(y,k,t)}};function Se(y){return y.reduce((k,_)=>k.then(()=>v(_)),Promise.resolve())}return Wc}function $a(e,t){const n=[],o=[],s=[],a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const c=t.matched[i];c&&(e.matched.find(p=>de(p,c))?o.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(p=>de(p,l))||s.push(l))}return[n,o,s]}Na({history:Rs(),routes:[]});function Oa(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var _e=Promise.resolve();function fo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Sa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Vt(){return Math.random().toString(36).substring(2)}var ho=0,Dt=0;function et(){var e=new Date().getTime();return e===ho?(Dt++,e*1e3+Dt):(ho=e,Dt=0,e*1e3)}var xa=et,Ca="native";function Pa(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Va(e){e.bc.close(),e.subFns=[]}function Da(e,t){try{return e.bc.postMessage(t,!1),_e}catch(n){return Promise.reject(n)}}function Ia(e,t){e.messagesCallback=t}function Ra(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Aa(){return 150}var Ta={create:Pa,close:Va,onMessage:Ia,postMessage:Da,canBeUsed:Ra,type:Ca,averageResponseTime:Aa,microSeconds:xa},mo=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,go()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ja(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ja(e){for(var t=go()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var s=o[0],a=o[1];if(a<t)e.map.delete(s);else return}}function go(){return new Date().getTime()}function It(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var Ba=et,La="pubkey.broadcast-channel-0-",se="messages",tt={durability:"relaxed"},Ma="idb";function yo(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Rt(e){e.commit&&e.commit()}function Wa(e){var t=yo(),n=La+e,o=t.open(n);return o.onupgradeneeded=function(s){var a=s.target.result;a.createObjectStore(se,{keyPath:"id",autoIncrement:!0})},new Promise(function(s,a){o.onerror=function(i){return a(i)},o.onsuccess=function(){s(o.result)}})}function Ua(e,t,n){var o=new Date().getTime(),s={uuid:t,time:o,data:n},a=e.transaction([se],"readwrite",tt);return new Promise(function(i,c){a.oncomplete=function(){return i()},a.onerror=function(p){return c(p)};var l=a.objectStore(se);l.add(s),Rt(a)})}function Fa(e,t){var n=e.transaction(se,"readonly",tt),o=n.objectStore(se),s=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(a);return new Promise(function(l,p){i.onerror=function(d){return p(d)},i.onsuccess=function(d){l(d.target.result)}})}function c(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(l,p){var d=c();d.onerror=function(u){return p(u)},d.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(s.push(f.value),f.continue()):(Rt(n),l(s))}})}function za(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(se,"readwrite",tt),o=n.objectStore(se);return Promise.all(t.map(function(s){var a=o.delete(s);return new Promise(function(i){a.onsuccess=function(){return i()}})}))}function Ha(e,t){var n=new Date().getTime()-t,o=e.transaction(se,"readonly",tt),s=o.objectStore(se),a=[];return new Promise(function(i){s.openCursor().onsuccess=function(c){var l=c.target.result;if(l){var p=l.value;p.time<n?(a.push(p),l.continue()):(Rt(o),i(a))}else i(a)}})}function qa(e){return Ha(e.db,e.options.idb.ttl).then(function(t){return za(e,t.map(function(n){return n.id}))})}function Ga(e,t){return t=It(t),Wa(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Vt(),eMIs:new mo(t.idb.ttl*2),writeBlockPromise:_e,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},wo(o),o})}function wo(e){e.closed||bo(e).then(function(){return fo(e.options.idb.fallbackInterval)}).then(function(){return wo(e)})}function Ja(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function bo(e){return e.closed||!e.messagesCallback?_e:Fa(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return Ja(o,e)}).sort(function(o,s){return o.time-s.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),_e})}function Ya(e){e.closed=!0,e.db.close()}function Ka(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return Ua(e.db,e.uuid,t)}).then(function(){Sa(0,10)===0&&qa(e)}),e.writeBlockPromise}function Qa(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,bo(e)}function Xa(){return!!yo()}function Za(e){return e.idb.fallbackInterval*2}var ei={create:Ga,close:Ya,onMessage:Qa,postMessage:Ka,canBeUsed:Xa,type:Ma,averageResponseTime:Za,microSeconds:Ba},ti=et,ni="pubkey.broadcastChannel-",oi="localstorage";function vo(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Eo(e){return ni+e}function ri(e,t){return new Promise(function(n){fo().then(function(){var o=Eo(e.channelName),s={token:Vt(),time:new Date().getTime(),data:t,uuid:e.uuid},a=JSON.stringify(s);vo().setItem(o,a);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=a,window.dispatchEvent(i),n()})})}function si(e,t){var n=Eo(e),o=function(s){s.key===n&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",o),o}function ai(e){window.removeEventListener("storage",e)}function ii(e,t){if(t=It(t),!_o())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Vt(),o=new mo(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:o};return s.listener=si(e,function(a){s.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<s.messagesCallbackTime||(o.add(a.token),s.messagesCallback(a.data)))}),s}function ci(e){ai(e.listener)}function li(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function _o(){var e=vo();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function ui(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var di={create:ii,close:ci,onMessage:li,postMessage:ri,canBeUsed:_o,type:oi,averageResponseTime:ui,microSeconds:ti},pi=et,fi="simulate",At=new Set;function hi(e){var t={name:e,messagesCallback:null};return At.add(t),t}function mi(e){At.delete(e)}function gi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(At);o.filter(function(s){return s.name===e.name}).filter(function(s){return s!==e}).filter(function(s){return!!s.messagesCallback}).forEach(function(s){return s.messagesCallback(t)}),n()},5)})}function yi(e,t){e.messagesCallback=t}function wi(){return!0}function bi(){return 5}var vi={create:hi,close:mi,onMessage:yi,postMessage:gi,canBeUsed:wi,type:fi,averageResponseTime:bi,microSeconds:pi},ko=[Ta,ei,di];function Ei(e){var t=[].concat(e.methods,ko).filter(Boolean);if(e.type){if(e.type==="simulate")return vi;var n=t.find(function(s){return s.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(s){return s.type!=="idb"}));var o=t.find(function(s){return s.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(ko.map(function(s){return s.type})))}var No=new Set,_i=0,Tt=function(e,t){this.id=_i++,No.add(this),this.name=e,this.options=It(t),this.method=Ei(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,ki(this)};Tt._pubkey=!0,Tt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return $o(this,"message",e)},postInternal:function(e){return $o(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};xo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,So(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};So(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});xo(this,e,n)},close:function(){var e=this;if(!this.closed){No.delete(this),this.closed=!0;var t=this._prepP?this._prepP:_e;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function $o(e,t,n){var o=e.method.microSeconds(),s={time:o,type:t,data:n},a=e._prepP?e._prepP:_e;return a.then(function(){var i=e.method.postMessage(e._state,s);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}function ki(e){var t=e.method.create(e.name,e.options);Oa(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function Oo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function So(e,t,n){e._addEL[t].push(n),Ni(e)}function xo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),$i(e)}function Ni(e){if(!e._iL&&Oo(e)){var t=function(o){e._addEL[o.type].forEach(function(s){var a=1e5,i=s.time-a;o.time>=i&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function $i(e){if(e._iL&&!Oo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let jt=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function Co(e){return Object(e)!==e}const Oi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Si(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===Oi}function xi(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ci(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function ke(e){let t="",n=0;const o=e.length;for(let s=0;s<o;s+=1){const a=e[s],i=Ci(a);i&&(t+=e.slice(n,s)+i,n=s+1)}return`"${n===0?e:t+e.slice(n)}"`}const Bt=-1,Po=-2,Vo=-3,Do=-4,Io=-5,Lt=-6;function Ro(e,t){return Pi(JSON.parse(e))}function Pi(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function s(a,i=!1){if(a===Bt)return;if(a===Vo)return NaN;if(a===Do)return 1/0;if(a===Io)return-1/0;if(a===Lt)return-0;if(i)throw new Error("Invalid input");if(a in o)return o[a];const c=n[a];if(!c||typeof c!="object")o[a]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0];switch(l){case"Date":o[a]=new Date(c[1]);break;case"Set":const p=new Set;o[a]=p;for(let f=1;f<c.length;f+=1)p.add(s(c[f]));break;case"Map":const d=new Map;o[a]=d;for(let f=1;f<c.length;f+=2)d.set(s(c[f]),s(c[f+1]));break;case"RegExp":o[a]=new RegExp(c[1],c[2]);break;case"Object":o[a]=Object(c[1]);break;case"BigInt":o[a]=BigInt(c[1]);break;case"null":const u=Object.create(null);o[a]=u;for(let f=1;f<c.length;f+=2)u[c[f]]=s(c[f+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(c.length);o[a]=l;for(let p=0;p<c.length;p+=1){const d=c[p];d!==Po&&(l[p]=s(d))}}else{const l={};o[a]=l;for(const p in c){const d=c[p];l[p]=s(d)}}return o[a]}return s(0)}function Ao(e,t){const n=[],o=new Map,s=[];for(const p in t)s.push({key:p,fn:t[p]});const a=[];let i=0;function c(p){if(typeof p=="function")throw new jt("Cannot stringify a function",a);if(o.has(p))return o.get(p);if(p===void 0)return Bt;if(Number.isNaN(p))return Vo;if(p===1/0)return Do;if(p===-1/0)return Io;if(p===0&&1/p<0)return Lt;const d=i++;o.set(p,d);for(const{key:f,fn:h}of s){const m=h(p);if(m)return n[d]=`["${f}",${c(m)}]`,d}let u="";if(Co(p))u=Mt(p);else switch(xi(p)){case"Number":case"String":case"Boolean":u=`["Object",${Mt(p)}]`;break;case"BigInt":u=`["BigInt",${p}]`;break;case"Date":u=`["Date","${isNaN(p.getDate())?"":p.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=p;u=h?`["RegExp",${ke(f)},"${h}"]`:`["RegExp",${ke(f)}]`;break;case"Array":u="[";for(let m=0;m<p.length;m+=1)m>0&&(u+=","),m in p?(a.push(`[${m}]`),u+=c(p[m]),a.pop()):u+=Po;u+="]";break;case"Set":u='["Set"';for(const m of p)u+=`,${c(m)}`;u+="]";break;case"Map":u='["Map"';for(const[m,E]of p)a.push(`.get(${Co(m)?Mt(m):"..."})`),u+=`,${c(m)},${c(E)}`,a.pop();u+="]";break;default:if(!Si(p))throw new jt("Cannot stringify arbitrary non-POJOs",a);if(Object.getOwnPropertySymbols(p).length>0)throw new jt("Cannot stringify POJOs with symbolic keys",a);if(Object.getPrototypeOf(p)===null){u='["null"';for(const m in p)a.push(`.${m}`),u+=`,${ke(m)},${c(p[m])}`,a.pop();u+="]"}else{u="{";let m=!1;for(const E in p)m&&(u+=","),m=!0,a.push(`.${E}`),u+=`${ke(E)}:${c(p[E])}`,a.pop();u+="}"}}return n[d]=u,d}const l=c(e);return l<0?`${l}`:`[${n.join(",")}]`}function Mt(e){const t=typeof e;return t==="string"?ke(e):e instanceof String?ke(e.toString()):e===void 0?Bt.toString():e===0&&1/e<0?Lt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Vi(e,t,{initialize:n,type:o}){let s=`${t.$id}-${e.toString()}`,a=new Tt(s,{type:o}),i=!1,c=0;r.watch(()=>t[e],d=>{i||(c=Date.now(),a.postMessage({timestamp:c,state:Ro(Ao(d))})),i=!1},{deep:!0}),a.onmessage=d=>{if(d===void 0){a.postMessage({timestamp:c,state:Ro(Ao(t[e]))});return}d.timestamp<=c||(i=!0,c=d.timestamp,t[e]=d.state)};let l=()=>a.postMessage(void 0),p=()=>a.close();return n&&l(),{sync:l,unshare:p}}var Di=(e,t)=>Object.keys(t).includes(e),Ii=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:s})=>{var a,i;let c=((a=s==null?void 0:s.share)==null?void 0:a.enable)??t,l=((i=s==null?void 0:s.share)==null?void 0:i.omit)??[];!c||Object.keys(o.$state).forEach(p=>{var d;l.includes(p)||!Di(p,o.$state)||Vi(p,o,{initialize:((d=s==null?void 0:s.share)==null?void 0:d.initialize)??e,type:n})})};Zr().use(Ii({enable:!0,initialize:!0}));const To=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=xn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let s=t.value.schema.schema.toArray();s.forEach((a,i)=>{const l=t.value.store.record[a.fieldname];s[i].value=l}),o.value=s}}),(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref($r),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var Ri=!1;function nt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Wt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
43
43
  * pinia v2.3.0
44
44
  * (c) 2024 Eduardo San Martin Morote
45
45
  * @license MIT
46
- */let Ae;const nt=e=>Ae=e,Ii=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function me(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Te;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Te||(Te={}));const je=typeof window<"u",Ut=typeof navigator=="object"?navigator:{userAgent:""};/Macintosh/.test(Ut.userAgent)&&/AppleWebKit/.test(Ut.userAgent)&&/Safari/.test(Ut.userAgent);function jo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];me(s)&&me(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=jo(s,o):e[n]=o}return e}const Bo=()=>{};function Mo(e,t,n,o=Bo){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function ke(e,...t){e.slice().forEach(n=>{n(...t)})}const Ri=e=>e(),Lo=Symbol(),Wt=Symbol();function Ft(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];me(s)&&me(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Ft(s,o):e[n]=o}return e}const Ai=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ti(e){return!me(e)||!e.hasOwnProperty(Ai)}const{assign:Q}=Object;function Uo(e){return!!(r.isRef(e)&&e.effect)}function Wo(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return Q(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{nt(n);const m=n._s.get(e);return i[f].call(m,m)})),u),{}))}return l=zt(e,p,t,n,o,!0),l}function zt(e,t,n={},o,s,a){let i;const c=Q({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Vi&&(l.onTrigger=g=>{p?m=g:p==!1&&!b._hotUpdating&&(Array.isArray(m)?m.push(g):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],m;const h=o.state.value[e];!a&&!h&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const v=r.ref({});let N;function k(g){let y;p=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof g=="function"?(g(o.state.value[e]),y={type:Te.patchFunction,storeId:e,events:m}):(Ft(o.state.value[e],g),y={type:Te.patchObject,payload:g,storeId:e,events:m});const x=N=Symbol();r.nextTick().then(()=>{N===x&&(p=!0)}),d=!0,ke(u,y,o.state.value[e])}const S=a?function(){const{state:g}=n,y=g?g():{};this.$patch(x=>{Q(x,y)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Bo;function V(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(g,y="")=>{if(Lo in g)return g[Wt]=y,g;const x=function(){nt(o);const M=Array.from(arguments),F=[],ae=[];function he(j){F.push(j)}function Ne(j){ae.push(j)}ke(f,{args:M,name:x[Wt],store:b,after:he,onError:Ne});let H;try{H=g.apply(this&&this.$id===e?this:b,M)}catch(j){throw ke(ae,j),j}return H instanceof Promise?H.then(j=>(ke(F,j),j)).catch(j=>(ke(ae,j),Promise.reject(j))):(ke(F,H),H)};return x[Lo]=!0,x[Wt]=y,x},$=r.markRaw({actions:{},getters:{},state:[],hotState:v}),C={_p:o,$id:e,$onAction:Mo.bind(null,f),$patch:k,$reset:S,$subscribe(g,y={}){const x=Mo(u,g,y.detached,()=>M()),M=i.run(()=>r.watch(()=>o.state.value[e],F=>{(y.flush==="sync"?d:p)&&g({storeId:e,type:Te.direct,events:m},F)},Q({},l,y)));return x},$dispose:V},b=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&je?Q({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,b);const R=(o._a&&o._a.runWithContext||Ri)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const g in R){const y=R[g];if(r.isRef(y)&&!Uo(y)||r.isReactive(y))process.env.NODE_ENV!=="production"&&s?tt(v.value,g,r.toRef(R,g)):a||(h&&Ti(y)&&(r.isRef(y)?y.value=h[g]:Ft(y,h[g])),o.state.value[e][g]=y),process.env.NODE_ENV!=="production"&&$.state.push(g);else if(typeof y=="function"){const x=process.env.NODE_ENV!=="production"&&s?y:B(y,g);R[g]=x,process.env.NODE_ENV!=="production"&&($.actions[g]=y),c.actions[g]=y}else process.env.NODE_ENV!=="production"&&Uo(y)&&($.getters[g]=a?n.getters[g]:y,je&&(R._getters||(R._getters=r.markRaw([]))).push(g))}if(Q(b,R),Q(r.toRaw(b),R),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?v.value:o.state.value[e],set:g=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");k(y=>{Q(y,g)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=r.markRaw(g=>{b._hotUpdating=!0,g._hmrPayload.state.forEach(y=>{if(y in b.$state){const x=g.$state[y],M=b.$state[y];typeof x=="object"&&me(x)&&me(M)?jo(x,M):g.$state[y]=M}tt(b,y,r.toRef(g.$state,y))}),Object.keys(b.$state).forEach(y=>{y in g.$state||Lt(b,y)}),p=!1,d=!1,o.state.value[e]=r.toRef(g._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const y in g._hmrPayload.actions){const x=g[y];tt(b,y,B(x,y))}for(const y in g._hmrPayload.getters){const x=g._hmrPayload.getters[y],M=a?r.computed(()=>(nt(o),x.call(b,b))):x;tt(b,y,M)}Object.keys(b._hmrPayload.getters).forEach(y=>{y in g._hmrPayload.getters||Lt(b,y)}),Object.keys(b._hmrPayload.actions).forEach(y=>{y in g._hmrPayload.actions||Lt(b,y)}),b._hmrPayload=g._hmrPayload,b._getters=g._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&je){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(y=>{Object.defineProperty(b,y,Q({value:b[y]},g))})}return o._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&je){const y=i.run(()=>g({store:b,app:o._a,pinia:o,options:c}));Object.keys(y||{}).forEach(x=>b._customProperties.add(x)),Q(b,y)}else Q(b,i.run(()=>g({store:b,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
46
+ */let Te;const ot=e=>Te=e,Ai=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ge(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var je;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(je||(je={}));const Be=typeof window<"u";function jo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];ge(s)&&ge(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=jo(s,o):e[n]=o}return e}const Bo=()=>{};function Lo(e,t,n,o=Bo){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function Ne(e,...t){e.slice().forEach(n=>{n(...t)})}const Ti=e=>e(),Mo=Symbol(),Ut=Symbol();function Ft(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];ge(s)&&ge(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Ft(s,o):e[n]=o}return e}const ji=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Bi(e){return!ge(e)||!e.hasOwnProperty(ji)}const{assign:Q}=Object;function Wo(e){return!!(r.isRef(e)&&e.effect)}function Uo(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return Q(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{ot(n);const h=n._s.get(e);return i[f].call(h,h)})),u),{}))}return l=zt(e,p,t,n,o,!0),l}function zt(e,t,n={},o,s,a){let i;const c=Q({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Ri&&(l.onTrigger=g=>{p?h=g:p==!1&&!w._hotUpdating&&(Array.isArray(h)?h.push(g):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],h;const m=o.state.value[e];!a&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const E=r.ref({});let O;function N(g){let b;p=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof g=="function"?(g(o.state.value[e]),b={type:je.patchFunction,storeId:e,events:h}):(Ft(o.state.value[e],g),b={type:je.patchObject,payload:g,storeId:e,events:h});const V=O=Symbol();r.nextTick().then(()=>{O===V&&(p=!0)}),d=!0,Ne(u,b,o.state.value[e])}const x=a?function(){const{state:b}=n,V=b?b():{};this.$patch(L=>{Q(L,V)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Bo;function I(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(g,b="")=>{if(Mo in g)return g[Ut]=b,g;const V=function(){ot(o);const L=Array.from(arguments),ee=[],ce=[];function Oe(q){ee.push(q)}function X(q){ce.push(q)}Ne(f,{args:L,name:V[Ut],store:w,after:Oe,onError:X});let M;try{M=g.apply(this&&this.$id===e?this:w,L)}catch(q){throw Ne(ce,q),q}return M instanceof Promise?M.then(q=>(Ne(ee,q),q)).catch(q=>(Ne(ce,q),Promise.reject(q))):(Ne(ee,M),M)};return V[Mo]=!0,V[Ut]=b,V},$=r.markRaw({actions:{},getters:{},state:[],hotState:E}),C={_p:o,$id:e,$onAction:Lo.bind(null,f),$patch:N,$reset:x,$subscribe(g,b={}){const V=Lo(u,g,b.detached,()=>L()),L=i.run(()=>r.watch(()=>o.state.value[e],ee=>{(b.flush==="sync"?d:p)&&g({storeId:e,type:je.direct,events:h},ee)},Q({},l,b)));return V},$dispose:I},w=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be?Q({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,w);const v=(o._a&&o._a.runWithContext||Ti)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const g in v){const b=v[g];if(r.isRef(b)&&!Wo(b)||r.isReactive(b))process.env.NODE_ENV!=="production"&&s?nt(E.value,g,r.toRef(v,g)):a||(m&&Bi(b)&&(r.isRef(b)?b.value=m[g]:Ft(b,m[g])),o.state.value[e][g]=b),process.env.NODE_ENV!=="production"&&$.state.push(g);else if(typeof b=="function"){const V=process.env.NODE_ENV!=="production"&&s?b:B(b,g);v[g]=V,process.env.NODE_ENV!=="production"&&($.actions[g]=b),c.actions[g]=b}else process.env.NODE_ENV!=="production"&&Wo(b)&&($.getters[g]=a?n.getters[g]:b,Be&&(v._getters||(v._getters=r.markRaw([]))).push(g))}if(Q(w,v),Q(r.toRaw(w),v),Object.defineProperty(w,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?E.value:o.state.value[e],set:g=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");N(b=>{Q(b,g)})}}),process.env.NODE_ENV!=="production"&&(w._hotUpdate=r.markRaw(g=>{w._hotUpdating=!0,g._hmrPayload.state.forEach(b=>{if(b in w.$state){const V=g.$state[b],L=w.$state[b];typeof V=="object"&&ge(V)&&ge(L)?jo(V,L):g.$state[b]=L}nt(w,b,r.toRef(g.$state,b))}),Object.keys(w.$state).forEach(b=>{b in g.$state||Wt(w,b)}),p=!1,d=!1,o.state.value[e]=r.toRef(g._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const b in g._hmrPayload.actions){const V=g[b];nt(w,b,B(V,b))}for(const b in g._hmrPayload.getters){const V=g._hmrPayload.getters[b],L=a?r.computed(()=>(ot(o),V.call(w,w))):V;nt(w,b,L)}Object.keys(w._hmrPayload.getters).forEach(b=>{b in g._hmrPayload.getters||Wt(w,b)}),Object.keys(w._hmrPayload.actions).forEach(b=>{b in g._hmrPayload.actions||Wt(w,b)}),w._hmrPayload=g._hmrPayload,w._getters=g._getters,w._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(b=>{Object.defineProperty(w,b,Q({value:w[b]},g))})}return o._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be){const b=i.run(()=>g({store:w,app:o._a,pinia:o,options:c}));Object.keys(b||{}).forEach(V=>w._customProperties.add(V)),Q(w,b)}else Q(w,i.run(()=>g({store:w,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&w.$state&&typeof w.$state=="object"&&typeof w.$state.constructor=="function"&&!w.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
47
47
  state: () => new MyClass()
48
- Found in store "${b.$id}".`),h&&a&&n.hydrate&&n.hydrate(b.$state,h),p=!0,d=!0,b}/*! #__NO_SIDE_EFFECTS__ */function ji(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[๐Ÿ]: "defineStore()" must be passed a store id as its first argument.');function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Ae&&Ae._testing?null:c)||(p?r.inject(Ii,null):null),c&&nt(c),process.env.NODE_ENV!=="production"&&!Ae)throw new Error(`[๐Ÿ]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
48
+ Found in store "${w.$id}".`),m&&a&&n.hydrate&&n.hydrate(w.$state,m),p=!0,d=!0,w}/*! #__NO_SIDE_EFFECTS__ */function Li(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[๐Ÿ]: "defineStore()" must be passed a store id as its first argument.');function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Te&&Te._testing?null:c)||(p?r.inject(Ai,null):null),c&&ot(c),process.env.NODE_ENV!=="production"&&!Te)throw new Error(`[๐Ÿ]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
49
49
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
50
- This will fail in production.`);c=Ae,c._s.has(o)||(a?zt(o,t,s,c):Wo(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?zt(u,t,s,c,!0):Wo(u,Q({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&je){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[o]=d}}return d}return i.$id=o,i}function Fo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ht(e){return typeof e=="function"?e():r.unref(e)}const Bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mi=e=>e!=null,Li=Object.prototype.toString,Ui=e=>Li.call(e)==="[object Object]",Wi=()=>{},Be=Bi?window:void 0;function Me(e){var t;const n=Ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Le(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=Be):[t,n,o,s]=e,!t)return Wi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),l=r.watch(()=>[Me(t),Ht(s)],([d,u])=>{if(i(),!d)return;const f=Ui(u)?{...u}:u;a.push(...n.flatMap(m=>o.map(h=>c(d,m,h,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Fo(p),p}function Fi(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function zi(e){const t=Fi();return r.computed(()=>(t.value,!!e()))}function Hi(e,t,n={}){const{window:o=Be,...s}=n;let a;const i=zi(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=Ht(e),m=(Array.isArray(f)?f:[f]).map(Me).filter(Mi);return new Set(m)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(m=>a.observe(m,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return Fo(u),{isSupported:i,stop:u,takeRecords:d}}function Gi(e={}){var t;const{window:n=Be,deep:o=!0,triggerOnRemoval:s=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var p;let d=a==null?void 0:a.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(p=d==null?void 0:d.shadowRoot)==null?void 0:p.activeElement;return d},c=r.ref(),l=()=>{c.value=i()};return n&&(Le(n,"blur",p=>{p.relatedTarget===null&&l()},!0),Le(n,"focus",l,!0)),s&&Hi(a,p=>{p.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}const qi="focusin",Ji="focusout";function Ki(e,t={}){const{window:n=Be}=t,o=r.computed(()=>Me(e)),s=r.ref(!1),a=r.computed(()=>s.value),i=Gi(t);return!n||!i.value?{focused:a}:(Le(o,qi,()=>s.value=!0),Le(o,Ji,()=>s.value=!1),{focused:a})}function Yi(e,{window:t=Be,scrollTarget:n}={}){const o=r.ref(!1),s=()=>{if(!t)return;const a=t.document,i=Me(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||a.documentElement.clientHeight)&&c.left<=(t.innerWidth||a.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Me(e),()=>s(),{immediate:!0,flush:"post"}),t&&Le(n||t,"scroll",s,{capture:!1,passive:!0}),o}const re=e=>{let t=Yi(e).value;return t=t&&e.offsetHeight>0,t},se=e=>e.tabIndex>=0,zo=e=>{const t=e.target;return Gt(t)},Gt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!se(n)||!re(n))?Gt(n):n},Qi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.firstElementChild;a&&(o=a)}}return o&&(!se(o)||!re(o))?qt(o):o},Ho=e=>{const t=e.target;return qt(t)},qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!se(n)||!re(n))?qt(n):n},Xi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.lastElementChild;a&&(o=a)}}return o&&(!se(o)||!re(o))?Gt(o):o},Go=e=>{const t=e.target;return Jt(t)},Jt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!se(n)||!re(n))?Jt(n):n},qo=e=>{const t=e.target;return Kt(t)},Kt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!se(n)||!re(n))?Kt(n):n},Jo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!se(t)||!re(t))?Kt(t):t},Ko=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!se(t)||!re(t))?Jt(t):t},ot=["alt","control","shift","meta"],Zi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Yt={"keydown.up":e=>{const t=zo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=qo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Qi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Xi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ho(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=zo(e);t&&t.focus()}},"keydown.home":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=qo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Yo(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let l=[];if(typeof i.selectors=="string")l=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const p of i.selectors)p instanceof HTMLElement?l.push(p):l.push(p.$el);else if(i.selectors instanceof HTMLElement)l.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const p of i.selectors.value)p instanceof HTMLElement?l.push(p):l.push(p.$el);else l.push(i.selectors.value);return l},o=i=>{const c=t(i);let l=[];return i.selectors?l=n(i):c&&(l=Array.from(c.children).filter(p=>se(p)&&re(p))),l},s=i=>c=>{const l=Zi[c.key]||c.key.toLowerCase();if(ot.includes(l))return;const p=i.handlers||Yt;for(const d of Object.keys(p)){const[u,...f]=d.split(".");if(u==="keydown"&&f.includes(l)){const m=p[d],h=f.filter(N=>ot.includes(N)),v=ot.some(N=>{const k=N.charAt(0).toUpperCase()+N.slice(1);return c.getModifierState(k)});if(h.length>0){if(v){for(const N of ot)if(f.includes(N)){const k=N.charAt(0).toUpperCase()+N.slice(1);c.getModifierState(k)&&m(c)}}}else v||m(c)}}},a=[];r.onMounted(()=>{for(const i of e){const c=t(i),l=o(i),p=s(i),d=c?[c]:l;for(const u of d){const{focused:f}=Ki(r.ref(u)),m=r.watch(f,h=>{h?u.addEventListener("keydown",p):u.removeEventListener("keydown",p)});a.push(m)}}}),r.onBeforeUnmount(()=>{for(const i of a)i()})}function Qo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ue(e){return typeof e=="function"?e():r.unref(e)}const Xo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ec=Object.prototype.toString,tc=e=>ec.call(e)==="[object Object]",We=()=>{},Qt=nc();function nc(){var e,t;return Xo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Zo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function oc(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:We}))):r.ref(t)}function Fe(e){var t;const n=Ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const er=Xo?window:void 0;function rt(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=er):[t,n,o,s]=e,!t)return We;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),l=r.watch(()=>[Fe(t),Ue(s)],([d,u])=>{if(i(),!d)return;const f=tc(u)?{...u}:u;a.push(...n.flatMap(m=>o.map(h=>c(d,m,h,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Qo(p),p}let tr=!1;function nr(e,t,n={}){const{window:o=er,ignore:s=[],capture:a=!0,detectIframe:i=!1}=n;if(!o)return We;Qt&&!tr&&(tr=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",We)),o.document.documentElement.addEventListener("click",We));let c=!0;const l=d=>s.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===d.target||d.composedPath().includes(f));{const f=Fe(u);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[rt(o,"click",d=>{const u=Fe(e);if(!(!u||u===d.target||d.composedPath().includes(u))){if(d.detail===0&&(c=!l(d)),!c){c=!0;return}t(d)}},{passive:!0,capture:a}),rt(o,"pointerdown",d=>{const u=Fe(e);c=!l(d)&&!!(u&&!d.composedPath().includes(u))},{passive:!0}),i&&rt(o,"blur",d=>{setTimeout(()=>{var u;const f=Fe(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>p.forEach(d=>d())}const rc={[Zo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=nr(e,t.value,{capture:n});else{const[o,s]=t.value;e.__onClickOutside_stop=nr(e,o,Object.assign({capture:n},s))}},[Zo.unmounted](e){e.__onClickOutside_stop()}};function Xt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function or(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:or(n)}}function sc(e){const t=e||window.event,n=t.target;return or(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Zt=new WeakMap;function ac(e,t=!1){const n=r.ref(t);let o=null,s="";r.watch(oc(e),c=>{const l=Xt(Ue(c));if(l){const p=l;if(Zt.get(p)||Zt.set(p,p.style.overflow),p.style.overflow!=="hidden"&&(s=p.style.overflow),p.style.overflow==="hidden")return n.value=!0;if(n.value)return p.style.overflow="hidden"}},{immediate:!0});const a=()=>{const c=Xt(Ue(e));!c||n.value||(Qt&&(o=rt(c,"touchmove",l=>{sc(l)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Xt(Ue(e));!c||!n.value||(Qt&&(o==null||o()),c.style.overflow=s,Zt.delete(c),n.value=!1)};return Qo(i),r.computed({get(){return n.value},set(c){c?a():i()}})}function ic(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const s=ac(n,o.value);r.watch(t,a=>s.value=a)}}ic();function en(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function st(e){return typeof e=="function"?e():r.unref(e)}const cc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const lc=e=>e!=null,uc=Object.prototype.toString,dc=e=>uc.call(e)==="[object Object]",pc=()=>{};function fc(e){return r.getCurrentInstance()}function mc(e,t=!0,n){fc()?r.onMounted(e,n):t?e():r.nextTick(e)}const tn=cc?window:void 0;function $e(e){var t;const n=st(e);return(t=n==null?void 0:n.$el)!=null?t:n}function rr(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=tn):[t,n,o,s]=e,!t)return pc;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),l=r.watch(()=>[$e(t),st(s)],([d,u])=>{if(i(),!d)return;const f=dc(u)?{...u}:u;a.push(...n.flatMap(m=>o.map(h=>c(d,m,h,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return en(p),p}function hc(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function sr(e){const t=hc();return r.computed(()=>(t.value,!!e()))}function ar(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=st(e),m=(Array.isArray(f)?f:[f]).map($e).filter(lc);return new Set(m)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(m=>a.observe(m,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return en(u),{isSupported:i,stop:u,takeRecords:d}}function gc(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const u=st(e);return Array.isArray(u)?u.map(f=>$e(f)):[$e(u)]}),p=r.watch(l,u=>{if(c(),i.value&&o){a=new ResizeObserver(t);for(const f of u)f&&a.observe(f,s)}},{immediate:!0,flush:"post"}),d=()=>{c(),p()};return en(d),{isSupported:i,stop:d}}function yc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:a=!0,updateTiming:i="sync"}=t,c=r.ref(0),l=r.ref(0),p=r.ref(0),d=r.ref(0),u=r.ref(0),f=r.ref(0),m=r.ref(0),h=r.ref(0);function v(){const k=$e(e);if(!k){n&&(c.value=0,l.value=0,p.value=0,d.value=0,u.value=0,f.value=0,m.value=0,h.value=0);return}const S=k.getBoundingClientRect();c.value=S.height,l.value=S.bottom,p.value=S.left,d.value=S.right,u.value=S.top,f.value=S.width,m.value=S.x,h.value=S.y}function N(){i==="sync"?v():i==="next-frame"&&requestAnimationFrame(()=>v())}return gc(e,N),r.watch(()=>$e(e),k=>!k&&N()),ar(e,N,{attributeFilter:["style","class"]}),s&&rr("scroll",N,{capture:!0,passive:!0}),o&&rr("resize",N,{passive:!0}),mc(()=>{a&&N()}),{height:c,bottom:l,left:p,right:d,top:u,width:f,x:m,y:h,update:N}}const wc=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},bc=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],vc=["innerHTML"],Ec={key:2},_c=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.useTemplateRef("cell"),{bottom:n,left:o}=yc(t),s=e.store.getCellData(e.colIndex,e.rowIndex),a=e.store.getCellDisplayValue(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),l=e.store.columns[e.colIndex],p=e.store.rows[e.rowIndex],d=l.align||"center",u=l.width||"40ch",f=r.computed(()=>typeof a=="string"?wc(a):!1),m=r.computed(()=>{var k;return{textAlign:d,width:u,backgroundColor:c.value?"var(--sc-cell-modified)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:e.store.getIndent(e.colIndex,(k=e.store.display[e.rowIndex])==null?void 0:k.indent)}}),h=()=>{l.mask,l.modalComponent&&e.store.$patch(k=>{k.modal.visible=!0,k.modal.colIndex=e.colIndex,k.modal.rowIndex=e.rowIndex,k.modal.parent=t.value,k.modal.top=n.value,k.modal.left=o.value,k.modal.width=u,typeof l.modalComponent=="function"?k.modal.component=l.modalComponent({table:k.table,row:p,column:l}):k.modal.component=l.modalComponent,k.modal.componentProps=l.modalComponentExtraProps})};if(e.addNavigation){let k={...Yt,"keydown.f2":h,"keydown.alt.up":h,"keydown.alt.down":h,"keydown.alt.left":h,"keydown.alt.right":h};typeof e.addNavigation=="object"&&(k={...k,...e.addNavigation}),Yo([{selectors:t,handlers:k}])}const v=()=>{t.value&&(i.value=t.value.textContent)},N=()=>{t.value&&(l.format?c.value=t.value.textContent!==e.store.getFormattedValue(e.colIndex,e.rowIndex,s):c.value=t.value.textContent!==s,t.value.textContent!==i.value&&(i.value=t.value.textContent,t.value.dispatchEvent(new Event("change")),l.format||e.store.setCellData(e.colIndex,e.rowIndex,i.value)))};return(k,S)=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":k.colIndex,"data-rowindex":k.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:k.tabIndex,spellcheck:!1,style:r.normalizeStyle(m.value),onFocus:v,onPaste:N,onBlur:N,onInput:N,onClick:h,class:r.normalizeClass(["atable-cell",k.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:r.unref(a)},r.unref(l).cellComponentProps),null,16,["value"])):f.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:r.unref(a)},null,8,vc)):(r.openBlock(),r.createElementBlock("span",Ec,r.toDisplayString(r.unref(a)),1))],46,bc)),[[r.unref(rc),k.store.closeModal]])}}),kc=["tabindex"],$c=r.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.useTemplateRef("rowEl"),n=e.store.isRowVisible(e.rowIndex),o=e.store.getRowExpandSymbol(e.rowIndex);if(e.addNavigation){let s=Yt;typeof e.addNavigation=="object"&&(s={...s,...e.addNavigation}),Yo([{selectors:t,handlers:s}])}return(s,a)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"table-row"},[s.store.config.view!=="uncounted"?r.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},r.toDisplayString(s.rowIndex+1),3)):s.store.config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>s.store.toggleRowExpand(s.rowIndex))},r.toDisplayString(r.unref(o)),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"default")],8,kc)),[[r.vShow,r.unref(n)]])}}),Nc={key:0,id:"resizable"},Oc={class:"atable-header-row",tabindex:"-1"},Sc=r.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){return(t,n)=>t.columns.length?(r.openBlock(),r.createElementBlock("thead",Nc,[r.createElementVNode("tr",Oc,[t.store.zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.config.view==="tree"?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,(o,s)=>(r.openBlock(),r.createElementBlock("th",{key:o.name,tabindex:"-1",style:r.normalizeStyle(t.store.getHeaderCellStyle(o)),class:r.normalizeClass(o.pinned?"sticky-column":"")},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.label||String.fromCharCode(s+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),xc=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},store:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),Cc=e=>{const t=e.id||crypto.randomUUID();return ji(`table-${t}`,()=>{const n=()=>{const $={};for(const[C,b]of s.value.entries())for(const[R,g]of a.value.entries())$[`${C}:${R}`]=g[b.name];return $},o=$=>{const C=[Object.assign({},{rowModified:!1})];if($&&"0:0"in $)return $;const b=new Set;for(let R=a.value.length-1;R>=0;R--){const g=a.value[R];g.parent&&b.add(g.parent),C[R]={childrenOpen:!1,expanded:!1,indent:g.indent||null,isParent:b.has(R),isRoot:g.parent===null||g.parent===void 0,rowModified:!1,open:g.parent===null||g.parent===void 0,parent:g.parent}}return C},s=r.ref(e.columns),a=r.ref(e.rows),i=r.ref(e.config||{}),c=r.ref(e.table||n()),l=r.ref(o(e.display)),p=r.ref(e.modal||{visible:!1}),d=r.computed(()=>s.value.some($=>$.pinned)),u=r.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),f=r.computed(()=>["list","tree","list-expansion"].includes(i.value.view)),m=($,C)=>c.value[`${$}:${C}`],h=($,C,b)=>{const R=`${$}:${C}`,g=s.value[$];c.value[R]!==b&&(l.value[C].rowModified=!0),c.value[R]=b,a.value[C][g.name]=b},v=$=>({minWidth:$.width||"40ch",textAlign:$.align||"center",width:i.value.fullWidth?"auto":null}),N=$=>i.value.view!=="tree"||l.value[$].isRoot||l.value[$].open,k=$=>i.value.view!=="tree"?"":l.value[$].isRoot||l.value[$].isParent?l.value[$].childrenOpen?"-":"+":"",S=$=>{if(i.value.view==="tree"){l.value[$].childrenOpen=!l.value[$].childrenOpen;for(let C=a.value.length-1;C>=0;C--)l.value[C].parent===$&&(l.value[C].open=!l.value[C].open,l.value[C].childrenOpen&&S(C))}else i.value.view==="list-expansion"&&(l.value[$].expanded=!l.value[$].expanded)},V=($,C)=>{const b=m($,C);return B($,C,b)},B=($,C,b)=>{const R=s.value[$],g=a.value[C],y=R.format;return y?typeof y=="function"?y(b,{table:c.value,row:g,column:R}):typeof y=="string"?Function(`"use strict";return (${y})`)()(b,{table:c.value,row:g,column:R}):b:b};return{columns:s,rows:a,config:i,table:c,display:l,modal:p,hasPinnedColumns:d,numberedRowWidth:u,zeroColumn:f,closeModal:$=>{var C;$.target instanceof Node&&(C=p.value.parent)!=null&&C.contains($.target)||p.value.visible&&(p.value.visible=!1)},getCellData:m,getCellDisplayValue:V,getFormattedValue:B,getHeaderCellStyle:v,getIndent:($,C)=>C&&$===0&&C>0?`${C}ch`:"inherit",getRowExpandSymbol:k,isRowVisible:N,setCellData:h,toggleRowExpand:S}})()},Pc=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate"],setup(e,{expose:t,emit:n}){const o=n,s=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,i=Cc({columns:e.columns,rows:a,id:e.id,config:e.config});i.$onAction(({name:l,store:p,args:d})=>{if(l==="setCellData"){const[u,f,m]=d,h=p.getCellData(u,f);o("cellUpdate",[u,f,m,h])}}),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&ar(s,c,{childList:!0,subtree:!0}))});const c=()=>{const l=s.value,p=l.rows[0],d=l.rows[1],u=p?Array.from(p.cells):[];for(const[f,m]of u.entries()){const h=d.cells[f];h&&(m.style.width=`${h.offsetWidth}px`)}for(const f of l.rows){let m=0;const h=[];for(const v of f.cells)(v.classList.contains("sticky-column")||v.classList.contains("sticky-index"))&&(v.style.left=`${m}px`,m+=v.offsetWidth,h.push(v));h.length>0&&h[h.length-1].classList.add("sticky-column-edge")}};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const p=i.modal.parent;p&&r.nextTick().then(()=>{p.focus()})}}),t({store:i}),(l,p)=>(r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(Sc,{columns:r.unref(i).columns,store:r.unref(i)},null,8,["columns","store"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(d,u)=>(r.openBlock(),r.createBlock($c,{key:d.id,row:d,rowIndex:u,store:r.unref(i)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(f,m)=>(r.openBlock(),r.createBlock(_c,{key:f.name,store:r.unref(i),col:f,spellcheck:"false",pinned:f.pinned,rowIndex:u,colIndex:m,component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["store","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(xc,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i),style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i)},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["colIndex","rowIndex","store","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4))}}),Dc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Vc=Dc(Pc,[["__scopeId","data-v-20244978"]]),ir=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=xn(),o={view:"list"};return(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Vc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),Ic={class:"tabs"},Rc={tabindex:"0"},Ac={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},Tc={tabindex:"0"},jc={style:{width:"11pt"}},cr=lt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),s=r.useTemplateRef("searchinput"),a=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{s.value.focus()})},l=u=>{u.preventDefault(),u.stopPropagation()},p=async u=>{u.preventDefault(),u.stopPropagation(),await c()},d=()=>{};return(u,f)=>{const m=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",Ic,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",Rc,[r.createElementVNode("div",{class:r.normalizeClass(a.value)},"ร—",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(m,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",Ac,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
50
+ This will fail in production.`);c=Te,c._s.has(o)||(a?zt(o,t,s,c):Uo(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?zt(u,t,s,c,!0):Uo(u,Q({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&Be){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=d}}return d}return i.$id=o,i}function Fo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ht(e){return typeof e=="function"?e():r.unref(e)}const Mi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wi=e=>e!=null,Ui=Object.prototype.toString,Fi=e=>Ui.call(e)==="[object Object]",zi=()=>{},Le=Mi?window:void 0;function Me(e){var t;const n=Ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}function We(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=Le):[t,n,o,s]=e,!t)return zi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,h)=>(d.addEventListener(u,f,h),()=>d.removeEventListener(u,f,h)),l=r.watch(()=>[Me(t),Ht(s)],([d,u])=>{if(i(),!d)return;const f=Fi(u)?{...u}:u;a.push(...n.flatMap(h=>o.map(m=>c(d,h,m,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Fo(p),p}function Hi(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function qi(e){const t=Hi();return r.computed(()=>(t.value,!!e()))}function Gi(e,t,n={}){const{window:o=Le,...s}=n;let a;const i=qi(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=Ht(e),h=(Array.isArray(f)?f:[f]).map(Me).filter(Wi);return new Set(h)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return Fo(u),{isSupported:i,stop:u,takeRecords:d}}function Ji(e={}){var t;const{window:n=Le,deep:o=!0,triggerOnRemoval:s=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var p;let d=a==null?void 0:a.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(p=d==null?void 0:d.shadowRoot)==null?void 0:p.activeElement;return d},c=r.ref(),l=()=>{c.value=i()};return n&&(We(n,"blur",p=>{p.relatedTarget===null&&l()},!0),We(n,"focus",l,!0)),s&&Gi(a,p=>{p.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}const Yi="focusin",Ki="focusout";function Qi(e,t={}){const{window:n=Le}=t,o=r.computed(()=>Me(e)),s=r.ref(!1),a=r.computed(()=>s.value),i=Ji(t);return!n||!i.value?{focused:a}:(We(o,Yi,()=>s.value=!0),We(o,Ki,()=>s.value=!1),{focused:a})}function Xi(e,{window:t=Le,scrollTarget:n}={}){const o=r.ref(!1),s=()=>{if(!t)return;const a=t.document,i=Me(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||a.documentElement.clientHeight)&&c.left<=(t.innerWidth||a.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Me(e),()=>s(),{immediate:!0,flush:"post"}),t&&We(n||t,"scroll",s,{capture:!1,passive:!0}),o}const ae=e=>{let t=Xi(e).value;return t=t&&e.offsetHeight>0,t},ie=e=>e.tabIndex>=0,zo=e=>{const t=e.target;return qt(t)},qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!ie(n)||!ae(n))?qt(n):n},Zi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.firstElementChild;a&&(o=a)}}return o&&(!ie(o)||!ae(o))?Gt(o):o},Ho=e=>{const t=e.target;return Gt(t)},Gt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!ie(n)||!ae(n))?Gt(n):n},ec=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.lastElementChild;a&&(o=a)}}return o&&(!ie(o)||!ae(o))?qt(o):o},qo=e=>{const t=e.target;return Jt(t)},Jt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!ie(n)||!ae(n))?Jt(n):n},Go=e=>{const t=e.target;return Yt(t)},Yt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!ie(n)||!ae(n))?Yt(n):n},Jo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!ie(t)||!ae(t))?Yt(t):t},Yo=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!ie(t)||!ae(t))?Jt(t):t},rt=["alt","control","shift","meta"],tc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Kt={"keydown.up":e=>{const t=zo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=qo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Zi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=ec(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ho(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=zo(e);t&&t.focus()}},"keydown.home":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=qo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Ko(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let l=[];if(typeof i.selectors=="string")l=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const p of i.selectors)p instanceof HTMLElement?l.push(p):l.push(p.$el);else if(i.selectors instanceof HTMLElement)l.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const p of i.selectors.value)p instanceof HTMLElement?l.push(p):l.push(p.$el);else l.push(i.selectors.value);return l},o=i=>{const c=t(i);let l=[];return i.selectors?l=n(i):c&&(l=Array.from(c.children).filter(p=>ie(p)&&ae(p))),l},s=i=>c=>{const l=tc[c.key]||c.key.toLowerCase();if(rt.includes(l))return;const p=i.handlers||Kt;for(const d of Object.keys(p)){const[u,...f]=d.split(".");if(u==="keydown"&&f.includes(l)){const h=p[d],m=f.filter(O=>rt.includes(O)),E=rt.some(O=>{const N=O.charAt(0).toUpperCase()+O.slice(1);return c.getModifierState(N)});if(m.length>0){if(E){for(const O of rt)if(f.includes(O)){const N=O.charAt(0).toUpperCase()+O.slice(1);c.getModifierState(N)&&h(c)}}}else E||h(c)}}},a=[];r.onMounted(()=>{for(const i of e){const c=t(i),l=o(i),p=s(i),d=c?[c]:l;for(const u of d){const{focused:f}=Qi(r.ref(u)),h=r.watch(f,m=>{m?u.addEventListener("keydown",p):u.removeEventListener("keydown",p)});a.push(h)}}}),r.onBeforeUnmount(()=>{for(const i of a)i()})}function Qo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ue(e){return typeof e=="function"?e():r.unref(e)}const Xo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nc=Object.prototype.toString,oc=e=>nc.call(e)==="[object Object]",Fe=()=>{},Qt=rc();function rc(){var e,t;return Xo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Zo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function sc(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Fe}))):r.ref(t)}function ze(e){var t;const n=Ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const er=Xo?window:void 0;function st(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=er):[t,n,o,s]=e,!t)return Fe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,h)=>(d.addEventListener(u,f,h),()=>d.removeEventListener(u,f,h)),l=r.watch(()=>[ze(t),Ue(s)],([d,u])=>{if(i(),!d)return;const f=oc(u)?{...u}:u;a.push(...n.flatMap(h=>o.map(m=>c(d,h,m,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Qo(p),p}let tr=!1;function nr(e,t,n={}){const{window:o=er,ignore:s=[],capture:a=!0,detectIframe:i=!1}=n;if(!o)return Fe;Qt&&!tr&&(tr=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Fe)),o.document.documentElement.addEventListener("click",Fe));let c=!0;const l=d=>s.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===d.target||d.composedPath().includes(f));{const f=ze(u);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[st(o,"click",d=>{const u=ze(e);if(!(!u||u===d.target||d.composedPath().includes(u))){if(d.detail===0&&(c=!l(d)),!c){c=!0;return}t(d)}},{passive:!0,capture:a}),st(o,"pointerdown",d=>{const u=ze(e);c=!l(d)&&!!(u&&!d.composedPath().includes(u))},{passive:!0}),i&&st(o,"blur",d=>{setTimeout(()=>{var u;const f=ze(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>p.forEach(d=>d())}const ac={[Zo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=nr(e,t.value,{capture:n});else{const[o,s]=t.value;e.__onClickOutside_stop=nr(e,o,Object.assign({capture:n},s))}},[Zo.unmounted](e){e.__onClickOutside_stop()}};function Xt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function or(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:or(n)}}function ic(e){const t=e||window.event,n=t.target;return or(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Zt=new WeakMap;function cc(e,t=!1){const n=r.ref(t);let o=null,s="";r.watch(sc(e),c=>{const l=Xt(Ue(c));if(l){const p=l;if(Zt.get(p)||Zt.set(p,p.style.overflow),p.style.overflow!=="hidden"&&(s=p.style.overflow),p.style.overflow==="hidden")return n.value=!0;if(n.value)return p.style.overflow="hidden"}},{immediate:!0});const a=()=>{const c=Xt(Ue(e));!c||n.value||(Qt&&(o=st(c,"touchmove",l=>{ic(l)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Xt(Ue(e));!c||!n.value||(Qt&&(o==null||o()),c.style.overflow=s,Zt.delete(c),n.value=!1)};return Qo(i),r.computed({get(){return n.value},set(c){c?a():i()}})}function lc(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const s=cc(n,o.value);r.watch(t,a=>s.value=a)}}lc();function en(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function at(e){return typeof e=="function"?e():r.unref(e)}const uc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dc=e=>e!=null,pc=Object.prototype.toString,fc=e=>pc.call(e)==="[object Object]",hc=()=>{};function mc(e){return r.getCurrentInstance()}function gc(e,t=!0,n){mc()?r.onMounted(e,n):t?e():r.nextTick(e)}const tn=uc?window:void 0;function $e(e){var t;const n=at(e);return(t=n==null?void 0:n.$el)!=null?t:n}function rr(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=tn):[t,n,o,s]=e,!t)return hc;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,h)=>(d.addEventListener(u,f,h),()=>d.removeEventListener(u,f,h)),l=r.watch(()=>[$e(t),at(s)],([d,u])=>{if(i(),!d)return;const f=fc(u)?{...u}:u;a.push(...n.flatMap(h=>o.map(m=>c(d,h,m,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return en(p),p}function yc(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function sr(e){const t=yc();return r.computed(()=>(t.value,!!e()))}function ar(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=at(e),h=(Array.isArray(f)?f:[f]).map($e).filter(dc);return new Set(h)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return en(u),{isSupported:i,stop:u,takeRecords:d}}function wc(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const u=at(e);return Array.isArray(u)?u.map(f=>$e(f)):[$e(u)]}),p=r.watch(l,u=>{if(c(),i.value&&o){a=new ResizeObserver(t);for(const f of u)f&&a.observe(f,s)}},{immediate:!0,flush:"post"}),d=()=>{c(),p()};return en(d),{isSupported:i,stop:d}}function bc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:a=!0,updateTiming:i="sync"}=t,c=r.ref(0),l=r.ref(0),p=r.ref(0),d=r.ref(0),u=r.ref(0),f=r.ref(0),h=r.ref(0),m=r.ref(0);function E(){const N=$e(e);if(!N){n&&(c.value=0,l.value=0,p.value=0,d.value=0,u.value=0,f.value=0,h.value=0,m.value=0);return}const x=N.getBoundingClientRect();c.value=x.height,l.value=x.bottom,p.value=x.left,d.value=x.right,u.value=x.top,f.value=x.width,h.value=x.x,m.value=x.y}function O(){i==="sync"?E():i==="next-frame"&&requestAnimationFrame(()=>E())}return wc(e,O),r.watch(()=>$e(e),N=>!N&&O()),ar(e,O,{attributeFilter:["style","class"]}),s&&rr("scroll",O,{capture:!0,passive:!0}),o&&rr("resize",O,{passive:!0}),gc(()=>{a&&O()}),{height:c,bottom:l,left:p,right:d,top:u,width:f,x:h,y:m,update:O}}const vc=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},Ec=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],_c=["innerHTML"],kc={key:2},Nc=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.useTemplateRef("cell"),{bottom:n,left:o}=bc(t),s=e.store.getCellData(e.colIndex,e.rowIndex),a=e.store.getCellDisplayValue(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),l=e.store.columns[e.colIndex],p=e.store.rows[e.rowIndex],d=l.align||"center",u=l.width||"40ch",f=r.computed(()=>typeof a=="string"?vc(a):!1),h=r.computed(()=>{var N;return{textAlign:d,width:u,backgroundColor:c.value?"var(--sc-cell-modified)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:e.store.getIndent(e.colIndex,(N=e.store.display[e.rowIndex])==null?void 0:N.indent)}}),m=()=>{l.mask,l.modalComponent&&e.store.$patch(N=>{N.modal.visible=!0,N.modal.colIndex=e.colIndex,N.modal.rowIndex=e.rowIndex,N.modal.parent=t.value,N.modal.top=n.value,N.modal.left=o.value,N.modal.width=u,typeof l.modalComponent=="function"?N.modal.component=l.modalComponent({table:N.table,row:p,column:l}):N.modal.component=l.modalComponent,N.modal.componentProps=l.modalComponentExtraProps})};if(e.addNavigation){let N={...Kt,"keydown.f2":m,"keydown.alt.up":m,"keydown.alt.down":m,"keydown.alt.left":m,"keydown.alt.right":m};typeof e.addNavigation=="object"&&(N={...N,...e.addNavigation}),Ko([{selectors:t,handlers:N}])}const E=()=>{t.value&&(i.value=t.value.textContent)},O=()=>{t.value&&(l.format?c.value=t.value.textContent!==e.store.getFormattedValue(e.colIndex,e.rowIndex,s):c.value=t.value.textContent!==s,t.value.textContent!==i.value&&(i.value=t.value.textContent,t.value.dispatchEvent(new Event("change")),l.format||e.store.setCellData(e.colIndex,e.rowIndex,i.value)))};return(N,x)=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":N.colIndex,"data-rowindex":N.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:N.tabIndex,spellcheck:!1,style:r.normalizeStyle(h.value),onFocus:E,onPaste:O,onBlur:O,onInput:O,onClick:m,class:r.normalizeClass(["atable-cell",N.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:r.unref(a)},r.unref(l).cellComponentProps),null,16,["value"])):f.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:r.unref(a)},null,8,_c)):(r.openBlock(),r.createElementBlock("span",kc,r.toDisplayString(r.unref(a)),1))],46,Ec)),[[r.unref(ac),N.store.closeModal]])}}),$c=["tabindex"],Oc=r.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.useTemplateRef("rowEl"),n=e.store.isRowVisible(e.rowIndex),o=e.store.getRowExpandSymbol(e.rowIndex);if(e.addNavigation){let s=Kt;typeof e.addNavigation=="object"&&(s={...s,...e.addNavigation}),Ko([{selectors:t,handlers:s}])}return(s,a)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"table-row"},[s.store.config.view!=="uncounted"?r.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},r.toDisplayString(s.rowIndex+1),3)):s.store.config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>s.store.toggleRowExpand(s.rowIndex))},r.toDisplayString(r.unref(o)),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"default")],8,$c)),[[r.vShow,r.unref(n)]])}}),Sc={key:0,id:"resizable"},xc={class:"atable-header-row",tabindex:"-1"},Cc=r.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){return(t,n)=>t.columns.length?(r.openBlock(),r.createElementBlock("thead",Sc,[r.createElementVNode("tr",xc,[t.store.zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.config.view==="tree"?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,(o,s)=>(r.openBlock(),r.createElementBlock("th",{key:o.name,tabindex:"-1",style:r.normalizeStyle(t.store.getHeaderCellStyle(o)),class:r.normalizeClass(o.pinned?"sticky-column":"")},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.label||String.fromCharCode(s+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),Pc=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},store:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),Vc=e=>{const t=e.id||crypto.randomUUID();return Li(`table-${t}`,()=>{const n=()=>{const $={};for(const[C,w]of s.value.entries())for(const[j,v]of a.value.entries())$[`${C}:${j}`]=v[w.name];return $},o=$=>{const C=[Object.assign({},{rowModified:!1})];if($&&"0:0"in $)return $;const w=new Set;for(let j=a.value.length-1;j>=0;j--){const v=a.value[j];v.parent&&w.add(v.parent),C[j]={childrenOpen:!1,expanded:!1,indent:v.indent||null,isParent:w.has(j),isRoot:v.parent===null||v.parent===void 0,rowModified:!1,open:v.parent===null||v.parent===void 0,parent:v.parent}}return C},s=r.ref(e.columns),a=r.ref(e.rows),i=r.ref(e.config||{}),c=r.ref(e.table||n()),l=r.ref(o(e.display)),p=r.ref(e.modal||{visible:!1}),d=r.computed(()=>s.value.some($=>$.pinned)),u=r.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),f=r.computed(()=>["list","tree","list-expansion"].includes(i.value.view)),h=($,C)=>c.value[`${$}:${C}`],m=($,C,w)=>{const j=`${$}:${C}`,v=s.value[$];c.value[j]!==w&&(l.value[C].rowModified=!0),c.value[j]=w,a.value[C][v.name]=w},E=$=>({minWidth:$.width||"40ch",textAlign:$.align||"center",width:i.value.fullWidth?"auto":null}),O=$=>i.value.view!=="tree"||l.value[$].isRoot||l.value[$].open,N=$=>i.value.view!=="tree"?"":l.value[$].isRoot||l.value[$].isParent?l.value[$].childrenOpen?"-":"+":"",x=$=>{if(i.value.view==="tree"){l.value[$].childrenOpen=!l.value[$].childrenOpen;for(let C=a.value.length-1;C>=0;C--)l.value[C].parent===$&&(l.value[C].open=!l.value[C].open,l.value[C].childrenOpen&&x(C))}else i.value.view==="list-expansion"&&(l.value[$].expanded=!l.value[$].expanded)},I=($,C)=>{const w=h($,C);return B($,C,w)},B=($,C,w)=>{const j=s.value[$],v=a.value[C],g=j.format;return g?typeof g=="function"?g(w,{table:c.value,row:v,column:j}):typeof g=="string"?Function(`"use strict";return (${g})`)()(w,{table:c.value,row:v,column:j}):w:w};return{columns:s,rows:a,config:i,table:c,display:l,modal:p,hasPinnedColumns:d,numberedRowWidth:u,zeroColumn:f,closeModal:$=>{var C;$.target instanceof Node&&(C=p.value.parent)!=null&&C.contains($.target)||p.value.visible&&(p.value.visible=!1)},getCellData:h,getCellDisplayValue:I,getFormattedValue:B,getHeaderCellStyle:E,getIndent:($,C)=>C&&$===0&&C>0?`${C}ch`:"inherit",getRowExpandSymbol:N,isRowVisible:O,setCellData:m,toggleRowExpand:x}})()},Dc=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate"],setup(e,{expose:t,emit:n}){const o=n,s=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,i=Vc({columns:e.columns,rows:a,id:e.id,config:e.config});i.$onAction(({name:l,store:p,args:d})=>{if(l==="setCellData"){const[u,f,h]=d,m=p.getCellData(u,f);o("cellUpdate",[u,f,h,m])}}),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&ar(s,c,{childList:!0,subtree:!0}))});const c=()=>{const l=s.value,p=l.rows[0],d=l.rows[1],u=p?Array.from(p.cells):[];for(const[f,h]of u.entries()){const m=d.cells[f];m&&(h.style.width=`${m.offsetWidth}px`)}for(const f of l.rows){let h=0;const m=[];for(const E of f.cells)(E.classList.contains("sticky-column")||E.classList.contains("sticky-index"))&&(E.style.left=`${h}px`,h+=E.offsetWidth,m.push(E));m.length>0&&m[m.length-1].classList.add("sticky-column-edge")}};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const p=i.modal.parent;p&&r.nextTick().then(()=>{p.focus()})}}),t({store:i}),(l,p)=>(r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(Cc,{columns:r.unref(i).columns,store:r.unref(i)},null,8,["columns","store"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(d,u)=>(r.openBlock(),r.createBlock(Oc,{key:d.id,row:d,rowIndex:u,store:r.unref(i)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(f,h)=>(r.openBlock(),r.createBlock(Nc,{key:f.name,store:r.unref(i),col:f,spellcheck:"false",pinned:f.pinned,rowIndex:u,colIndex:h,component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["store","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(Pc,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i),style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i)},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["colIndex","rowIndex","store","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4))}}),Ic=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Rc=Ic(Dc,[["__scopeId","data-v-20244978"]]),ir=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=xn(),o={view:"list"};return(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Rc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),Ac={class:"tabs"},Tc={tabindex:"0"},jc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},Bc={tabindex:"0"},Lc={style:{width:"11pt"}},cr=ut(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),s=r.useTemplateRef("searchinput"),a=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{s.value.focus()})},l=u=>{u.preventDefault(),u.stopPropagation()},p=async u=>{u.preventDefault(),u.stopPropagation(),await c()},d=()=>{};return(u,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",Ac,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",Tc,[r.createElementVNode("div",{class:r.normalizeClass(a.value)},"ร—",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",jc,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
51
51
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
52
52
  c2.414,0.39,4.511,1.845,5.731,3.942l47.43,47.43V58.499c0-4.487,3.633-8.129,8.129-8.129h47.755c4.495,0,8.129,3.642,8.129,8.129
53
53
  v79.156l91.39,91.398c2.325,2.325,3.024,5.828,1.764,8.868c-1.26,3.032-4.227,5.007-7.511,5.007c-0.008,0-0.008,0-0.016,0
@@ -55,5 +55,5 @@ This will fail in production.`);c=Ae,c._s.has(o)||(a?zt(o,t,s,c):Wo(o,s,c),proce
55
55
  c0-2.162,0.854-4.235,2.39-5.755c1.528-1.52,3.585-2.374,5.739-2.374c0.008,0,0.008,0,0.016,0l45.105,0.089l-79.855-79.863
56
56
  c-1.528-1.528-2.382-3.593-2.382-5.747V66.628h-31.498v26.645c0,3.284-1.975,6.251-5.015,7.511
57
57
  c-3.032,1.268-6.527,0.569-8.86-1.764l-57.038-57.038l-183.95,183.95l45.203,0.089c4.487,0.008,8.112,3.642,8.112,8.129
58
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:c,onKeydown:r.withKeys(c,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",Tc,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",jc,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=h=>l(h)),onInput:f[2]||(f[2]=h=>l(h)),onBlur:f[3]||(f[3]=h=>p(h)),onKeydown:f[4]||(f[4]=r.withKeys(h=>p(h),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.breadcrumbs,h=>(r.openBlock(),r.createElementBlock("li",{key:h.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(m,{tabindex:"0",to:h.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Bc={install:e=>{e.component("ActionSet",sn),e.component("CommandPalette",an),e.component("Doctype",To),e.component("Records",ir),e.component("SheetNav",cr)}};J.ActionSet=sn,J.CommandPalette=an,J.Doctype=To,J.Records=ir,J.SheetNav=cr,J.StonecropDesktop=Bc,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
58
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:c,onKeydown:r.withKeys(c,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",Bc,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",Lc,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=m=>l(m)),onInput:f[2]||(f[2]=m=>l(m)),onBlur:f[3]||(f[3]=m=>p(m)),onKeydown:f[4]||(f[4]=r.withKeys(m=>p(m),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.breadcrumbs,m=>(r.openBlock(),r.createElementBlock("li",{key:m.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:m.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(m.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Mc={install:e=>{e.component("ActionSet",sn),e.component("CommandPalette",an),e.component("Doctype",To),e.component("Records",ir),e.component("SheetNav",cr)}};J.ActionSet=sn,J.CommandPalette=an,J.Doctype=To,J.Records=ir,J.SheetNav=cr,J.StonecropDesktop=Mc,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
59
59
  //# sourceMappingURL=desktop.umd.cjs.map