@stonecrop/desktop 0.2.24 → 0.2.26

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,39 +1,45 @@
1
- (function(F,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(F=typeof globalThis<"u"?globalThis:F||self,s(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,s){"use strict";const Ye=e=>(s.pushScopeId("data-v-f4328a22"),e=e(),s.popScopeId(),e),Do={class:"action-menu-icon"},To=[Ye(()=>s.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"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1)),Ye(()=>s.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"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1))],Vo=Ye(()=>s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),Bo=["onclick"],Mo={key:1},jo=["onClick"],Lo={class:"dropdown-container"},Uo={class:"dropdown"},Ho=["onclick"],Wo=["href"],Fo={class:"dropdown-item"},zo=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=e,n=s.ref([]),o=s.ref(!1),r=s.ref(null),i=s.ref(!1),c=s.ref(!1);s.onMounted(()=>{n.value=t.elements,a()});const a=()=>{for(let f of n.value)f.elementType==="dropdown"&&(f.show=!1)},l=()=>{i.value=!0,r.value=setTimeout(()=>{i.value&&(o.value=!0)},500)},d=()=>{i.value=!1,c.value=!1,clearTimeout(r.value),o.value=!1},u=f=>{const p=!n.value[f].show;a(),n.value[f].show=p};return(f,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":o.value,"hovered-and-closed":c.value},"action-set collapse"]),onMouseover:l,onMouseleave:d},[s.createElementVNode("div",Do,[s.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=h=>c.value=!c.value)},To)]),Vo,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(h,g)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:h.label},[h.elementType=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},s.toDisplayString(h.label),9,Bo)):s.createCommentVNode("",!0),h.elementType=="dropdown"?(s.openBlock(),s.createElementBlock("div",Mo,[s.createElementVNode("button",{class:"button-default",onClick:y=>u(g)},s.toDisplayString(h.label),9,jo),s.withDirectives(s.createElementVNode("div",Lo,[s.createElementVNode("div",Uo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.actions,y=>(s.openBlock(),s.createElementBlock("div",{key:y.label},[y.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:y.action,class:"dropdown-item"},s.toDisplayString(y.label),9,Ho)):y.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:y.link},[s.createElementVNode("button",Fo,s.toDisplayString(y.label),1)],8,Wo)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,h.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),Qe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Lt=Qe(zo,[["__scopeId","data-v-f4328a22"]]),Go={};function Ko(e,t){return s.openBlock(),s.createElementBlock("dialog")}const Ut=Qe(Go,[["render",Ko]]),qo=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jo={class:"aform"},Yo=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=s.ref(n.data||{}),i=a=>{let l={};for(const[d,u]of Object.entries(a))["component","fieldtype"].includes(d)||(l[d]=u),d==="rows"&&u&&u.length===0&&(l.rows=r.value[a.fieldname]);return l},c=s.computed({get:()=>n.modelValue.map((a,l)=>s.computed({get(){return a.value},set:d=>{n.modelValue[l].value=d,o("update:modelValue",n.modelValue)}})),set:()=>{}});return(a,l)=>(s.openBlock(),s.createElementBlock("form",Jo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.modelValue,(d,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(d.component),s.mergeProps({key:u,schema:d,modelValue:c.value[u].value,"onUpdate:modelValue":f=>c.value[u].value=f,data:r.value[d.fieldname],readonly:a.readonly},i(d)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),Qo=qo(Yo,[["__scopeId","data-v-88047a70"]]);function Xe(e){this.message=e||""}Xe.prototype=Object.create(Error.prototype,{constructor:{value:Xe},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});class ve{constructor(t,n,o,r,i){if(this.name="Stonecrop",ve._root)return ve._root;ve._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=i}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new Xe(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 r=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:r})}async getRecord(t,n){this.store.$patch({record:{}});const r=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:r})}runAction(t,n,o){const i=this.registry.registry[t.slug].actions.get(n),{initialState:c}=this.workflow;this.workflow.transition(c,{type:n}),i.length>0&&i.forEach(a=>{new Function(a)(o)})}}var Ht=!1;function Ae(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 Ze(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Xo(){return Wt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Zo=typeof Proxy=="function",er="devtools-plugin:setup",tr="plugin:settings:set";let pe,et;function nr(){var e;return pe!==void 0||(typeof window<"u"&&window.performance?(pe=!0,et=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(pe=!0,et=global.perf_hooks.performance):pe=!1),pe}function or(){return nr()?et.now():Date.now()}class rr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const c in t.settings){const a=t.settings[c];o[c]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},o);try{const c=localStorage.getItem(r),a=JSON.parse(c);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(c){try{localStorage.setItem(r,JSON.stringify(c))}catch{}i=c},now(){return or()}},n&&n.on(tr,(c,a)=>{c===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(c,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(c,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}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 tt(e,t){const n=e,o=Wt(),r=Xo(),i=Zo&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(er,e,t);else{const c=i?new rr(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
1
+ (function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,a){"use strict";const Ze=e=>(a.pushScopeId("data-v-3ce59358"),e=e(),a.popScopeId(),e),Wo={class:"action-menu-icon"},Fo=[Ze(()=>a.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"},[a.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1)),Ze(()=>a.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"},[a.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1))],zo=Ze(()=>a.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),qo=["onclick"],Go={key:1},Ho=["onClick"],Jo={class:"dropdown-container"},Ko={class:"dropdown"},Qo=["onclick"],Yo=["href"],Xo={class:"dropdown-item"},Zo=a.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=e,n=a.ref([]),o=a.ref(!1),r=a.ref(null),s=a.ref(!1),c=a.ref(!1);a.onMounted(()=>{n.value=t.elements,i()});const i=()=>{for(let u of n.value)u.elementType==="dropdown"&&(u.show=!1)},l=()=>{s.value=!0,r.value=setTimeout(()=>{s.value&&(o.value=!0)},500)},d=()=>{s.value=!1,c.value=!1,clearTimeout(r.value),o.value=!1},p=u=>{const f=!n.value[u].show;i(),n.value[u].show=f};return(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"open-set":o.value,"hovered-and-closed":c.value},"action-set collapse"]),onMouseover:l,onMouseleave:d},[a.createElementVNode("div",Wo,[a.createElementVNode("div",{id:"chevron",onClick:f[0]||(f[0]=h=>c.value=!c.value)},Fo)]),zo,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(h,g)=>(a.openBlock(),a.createElementBlock("div",{class:"action-element",key:h.label},[h.elementType=="button"?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},a.toDisplayString(h.label),9,qo)):a.createCommentVNode("",!0),h.elementType=="dropdown"?(a.openBlock(),a.createElementBlock("div",Go,[a.createElementVNode("button",{class:"button-default",onClick:y=>p(g)},a.toDisplayString(h.label),9,Ho),a.withDirectives(a.createElementVNode("div",Jo,[a.createElementVNode("div",Ko,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.actions,y=>(a.openBlock(),a.createElementBlock("div",{key:y.label},[y.action!=null?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:y.action,class:"dropdown-item"},a.toDisplayString(y.label),9,Qo)):y.link!=null?(a.openBlock(),a.createElementBlock("a",{key:1,href:y.link},[a.createElementVNode("button",Xo,a.toDisplayString(y.label),1)],8,Yo)):a.createCommentVNode("",!0)]))),128))])],512),[[a.vShow,h.show]])])):a.createCommentVNode("",!0)]))),128))],34))}}),et=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ht=et(Zo,[["__scopeId","data-v-3ce59358"]]),er={};function tr(e,t){return a.openBlock(),a.createElementBlock("dialog")}const Jt=et(er,[["render",tr]]),nr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const or={class:"aform"},rr=a.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(n.data||{}),s=i=>{let l={};for(const[d,p]of Object.entries(i))["component","fieldtype"].includes(d)||(l[d]=p),d==="rows"&&p&&p.length===0&&(l.rows=r.value[i.fieldname]);return l},c=a.computed({get:()=>n.modelValue.map((i,l)=>a.computed({get(){return i.value},set:d=>{n.modelValue[l].value=d,o("update:modelValue",n.modelValue)}})),set:()=>{}});return(i,l)=>(a.openBlock(),a.createElementBlock("form",or,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.modelValue,(d,p)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.component),a.mergeProps({key:p,schema:d,modelValue:c.value[p].value,"onUpdate:modelValue":u=>c.value[p].value=u,data:r.value[d.fieldname],readonly:i.readonly,ref_for:!0},s(d)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ar=nr(rr,[["__scopeId","data-v-dc1a868d"]]);var sr=Object.defineProperty,ir=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t,n)=>ir(e,typeof t!="symbol"?t+"":t,n);function tt(e){this.message=e||""}tt.prototype=Object.create(Error.prototype,{constructor:{value:tt},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class Ye{constructor(t,n,o,r,s){if(G(this,"name","Stonecrop"),G(this,"registry"),G(this,"schema"),G(this,"workflow"),G(this,"actions"),G(this,"store"),Ye._root)return Ye._root;Ye._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new tt(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 r=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),r.length>0&&r.forEach(c=>{new Function(c)(o)})}};G(Kt,"_root");let cr=Kt;var Qt=!1;function Re(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 nt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function lr(){return Yt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Yt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ur=typeof Proxy=="function",dr="devtools-plugin:setup",pr="plugin:settings:set";let _e,ot;function fr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,ot=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,ot=global.perf_hooks.performance):_e=!1),_e}function hr(){return fr()?ot.now():Date.now()}class mr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const c in t.settings){const i=t.settings[c];o[c]=i.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const c=localStorage.getItem(r),i=JSON.parse(c);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(c){try{localStorage.setItem(r,JSON.stringify(c))}catch{}s=c},now(){return hr()}},n&&n.on(pr,(c,i)=>{c===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(c,i)=>this.target?this.target.on[i]:(...l)=>{this.onQueue.push({method:i,args:l})}}),this.proxiedTarget=new Proxy({},{get:(c,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...l)=>(this.targetQueue.push({method:i,args:l,resolve:()=>{}}),this.fallbacks[i](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:i,args:l,resolve:d})})})}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 rt(e,t){const n=e,o=Yt(),r=lr(),s=ur&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))r.emit(dr,e,t);else{const c=s?new mr(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
2
2
  * pinia v2.1.7
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let _e;const be=e=>_e=e,Ft=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Y;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Y||(Y={}));const De=typeof window<"u",Ee=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&De,zt=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 sr(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 nt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){qt(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Gt(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Te(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Ve=typeof navigator=="object"?navigator:{userAgent:""},Kt=/Macintosh/.test(Ve.userAgent)&&/AppleWebKit/.test(Ve.userAgent)&&!/Safari/.test(Ve.userAgent),qt=De?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Kt?ir:"msSaveOrOpenBlob"in Ve?ar:cr:()=>{};function ir(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?Gt(o.href)?nt(e,t,n):(o.target="_blank",Te(o)):Te(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Te(o)},0))}function ar(e,t="download",n){if(typeof e=="string")if(Gt(e))nt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Te(o)})}else navigator.msSaveOrOpenBlob(sr(e,n),t)}function cr(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return nt(e,t,n);const r=e.type==="application/octet-stream",i=/constructor/i.test(String(zt.HTMLElement))||"safari"in zt,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&i||Kt)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=c?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);o?o.location.assign(a):location.href=a,o=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function B(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 ot(e){return"_a"in e&&"install"in e}function Jt(){if(!("clipboard"in navigator))return B("Your browser doesn't support the Clipboard API","error"),!0}function Yt(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function lr(e){if(!Jt())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),B("Global state copied to clipboard.")}catch(t){if(Yt(t))return;B("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function ur(e){if(!Jt())try{Qt(e,JSON.parse(await navigator.clipboard.readText())),B("Global state pasted from clipboard.")}catch(t){if(Yt(t))return;B("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function dr(e){try{qt(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){B("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let X;function fr(){X||(X=document.createElement("input"),X.type="file",X.accept=".json");function e(){return new Promise((t,n)=>{X.onchange=async()=>{const o=X.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},X.oncancel=()=>t(null),X.onerror=n,X.click()})}return e}async function pr(e){try{const n=await fr()();if(!n)return;const{text:o,file:r}=n;Qt(e,JSON.parse(o)),B(`Global state imported from "${r.name}".`)}catch(t){B("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Qt(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 q(e){return{_custom:{display:e}}}const Xt="🍍 Pinia (root)",rt="_root";function hr(e){return ot(e)?{id:rt,label:Xt}:{id:e.$id,label:e.$id}}function mr(e){if(ot(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(i=>({editable:!0,key:i,value:e.state.value[i]})),getters:n.filter(i=>o.get(i)._getters).map(i=>{const c=o.get(i);return{editable:!1,key:i,value:c._getters.reduce((a,l)=>(a[l]=c[l],a),{})}})}}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:q(e.type),key:q(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function yr(e){switch(e){case Y.direct:return"mutation";case Y.patchFunction:return"$patch";case Y.patchObject:return"$patch";default:return"unknown"}}let he=!0;const Be=[],le="pinia:mutations",L="pinia",{assign:wr}=Object,Me=e=>"🍍 "+e;function vr(e,t){tt({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Be,app:e},n=>{typeof n.now!="function"&&B("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:le,label:"Pinia 🍍",color:15064968}),n.addInspector({id:L,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(L),n.sendInspectorState(L)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{dr(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await pr(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?B(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),B(`Store "${o}" reset.`)):B(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,r)=>{const i=o.componentInstance&&o.componentInstance.proxy;if(i&&i._pStores){const c=o.componentInstance.proxy._pStores;Object.values(c).forEach(a=>{o.instanceData.state.push({type:Me(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:s.toRaw(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,d)=>(l[d]=a.$state[d],l),{})}),a._getters&&a._getters.length&&o.instanceData.state.push({type:Me(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,d)=>{try{l[d]=a[d]}catch(u){l[d]=u}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===L){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):Xt.toLowerCase().includes(o.filter.toLowerCase())):r).map(hr)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===L){const r=o.nodeId===rt?t:t._s.get(o.nodeId);if(!r)return;r&&(o.state=mr(r))}}),n.on.editInspectorState((o,r)=>{if(o.app===e&&o.inspectorId===L){const i=o.nodeId===rt?t:t._s.get(o.nodeId);if(!i)return B(`store "${o.nodeId}" not found`,"error");const{path:c}=o;ot(i)?c.unshift("state"):(c.length!==1||!i._customProperties.has(c[0])||c[0]in i.$state)&&c.unshift("$state"),he=!1,o.set(i,c,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const r=o.type.replace(/^🍍\s*/,""),i=t._s.get(r);if(!i)return B(`store "${r}" not found`,"error");const{path:c}=o;if(c[0]!=="state")return B(`Invalid path for store "${r}":
5
+ */let Ee;const ke=e=>Ee=e,Xt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ue(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Y;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Y||(Y={}));const je=typeof window<"u",$e=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&je,Zt=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 gr(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 at(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){nn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function en(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Te(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 Be=typeof navigator=="object"?navigator:{userAgent:""},tn=/Macintosh/.test(Be.userAgent)&&/AppleWebKit/.test(Be.userAgent)&&!/Safari/.test(Be.userAgent),nn=je?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tn?yr:"msSaveOrOpenBlob"in Be?wr:br:()=>{};function yr(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?en(o.href)?at(e,t,n):(o.target="_blank",Te(o)):Te(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Te(o)},0))}function wr(e,t="download",n){if(typeof e=="string")if(en(e))at(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Te(o)})}else navigator.msSaveOrOpenBlob(gr(e,n),t)}function br(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return at(e,t,n);const r=e.type==="application/octet-stream",s=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s||tn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let l=i.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=c?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);o?o.location.assign(i):location.href=i,o=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function j(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 st(e){return"_a"in e&&"install"in e}function on(){if(!("clipboard"in navigator))return j("Your browser doesn't support the Clipboard API","error"),!0}function rn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(j('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function vr(e){if(!on())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),j("Global state copied to clipboard.")}catch(t){if(rn(t))return;j("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function _r(e){if(!on())try{an(e,JSON.parse(await navigator.clipboard.readText())),j("Global state pasted from clipboard.")}catch(t){if(rn(t))return;j("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Er(e){try{nn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){j("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Z;function kr(){Z||(Z=document.createElement("input"),Z.type="file",Z.accept=".json");function e(){return new Promise((t,n)=>{Z.onchange=async()=>{const o=Z.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},Z.oncancel=()=>t(null),Z.onerror=n,Z.click()})}return e}async function $r(e){try{const t=await kr()();if(!t)return;const{text:n,file:o}=t;an(e,JSON.parse(n)),j(`Global state imported from "${o.name}".`)}catch(t){j("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function an(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 J(e){return{_custom:{display:e}}}const sn="🍍 Pinia (root)",it="_root";function Sr(e){return st(e)?{id:it,label:sn}:{id:e.$id,label:e.$id}}function xr(e){if(st(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(r=>({editable:!0,key:r,value:e.state.value[r]})),getters:n.filter(r=>o.get(r)._getters).map(r=>{const s=o.get(r);return{editable:!1,key:r,value:s._getters.reduce((c,i)=>(c[i]=s[i],c),{})}})}}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 Or(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:J(e.type),key:J(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Nr(e){switch(e){case Y.direct:return"mutation";case Y.patchFunction:return"$patch";case Y.patchObject:return"$patch";default:return"unknown"}}let he=!0;const Le=[],de="pinia:mutations",M="pinia",{assign:Cr}=Object,Me=e=>"🍍 "+e;function Ir(e,t){rt({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Le,app:e},n=>{typeof n.now!="function"&&j("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:de,label:"Pinia 🍍",color:15064968}),n.addInspector({id:M,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{vr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await _r(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Er(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await $r(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?j(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),j(`Store "${o}" reset.`)):j(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,r)=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const c=o.componentInstance.proxy._pStores;Object.values(c).forEach(i=>{o.instanceData.state.push({type:Me(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:a.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,d)=>(l[d]=i.$state[d],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:Me(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,d)=>{try{l[d]=i[d]}catch(p){l[d]=p}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===M){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):sn.toLowerCase().includes(o.filter.toLowerCase())):r).map(Sr)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===M){const r=o.nodeId===it?t:t._s.get(o.nodeId);if(!r)return;r&&(o.state=xr(r))}}),n.on.editInspectorState((o,r)=>{if(o.app===e&&o.inspectorId===M){const s=o.nodeId===it?t:t._s.get(o.nodeId);if(!s)return j(`store "${o.nodeId}" not found`,"error");const{path:c}=o;st(s)?c.unshift("state"):(c.length!==1||!s._customProperties.has(c[0])||c[0]in s.$state)&&c.unshift("$state"),he=!1,o.set(s,c,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const r=o.type.replace(/^🍍\s*/,""),s=t._s.get(r);if(!s)return j(`store "${r}" not found`,"error");const{path:c}=o;if(c[0]!=="state")return j(`Invalid path for store "${r}":
6
6
  ${c}
7
- Only state can be modified.`);c[0]="$state",he=!1,o.set(i,c,o.state.value),he=!0}})})}function _r(e,t){Be.includes(Me(t.$id))||Be.push(Me(t.$id)),tt({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Be,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:c,onError:a,name:l,args:d})=>{const u=Zt++;n.addTimelineEvent({layerId:le,event:{time:o(),title:"🛫 "+l,subtitle:"start",data:{store:q(t.$id),action:q(l),args:d},groupId:u}}),c(f=>{re=void 0,n.addTimelineEvent({layerId:le,event:{time:o(),title:"🛬 "+l,subtitle:"end",data:{store:q(t.$id),action:q(l),args:d,result:f},groupId:u}})}),a(f=>{re=void 0,n.addTimelineEvent({layerId:le,event:{time:o(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:q(t.$id),action:q(l),args:d,error:f},groupId:u}})})},!0),t._customProperties.forEach(c=>{s.watch(()=>s.unref(t[c]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(L),he&&n.addTimelineEvent({layerId:le,event:{time:o(),title:"Change",subtitle:c,data:{newValue:a,oldValue:l},groupId:re}})},{deep:!0})}),t.$subscribe(({events:c,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(L),!he)return;const d={time:o(),title:yr(a),data:wr({store:q(t.$id)},gr(c)),groupId:re};a===Y.patchFunction?d.subtitle="⤵️":a===Y.patchObject?d.subtitle="🧩":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:le,event:d})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=s.markRaw(c=>{r(c),n.addTimelineEvent({layerId:le,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:q(t.$id),info:q("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L)});const{$dispose:i}=t;t.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&B(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&B(`"${t.$id}" store installed 🆕`)})}let Zt=0,re;function en(e,t,n){const o=t.reduce((r,i)=>(r[i]=s.toRaw(e)[i],r),{});for(const r in o)e[r]=function(){const i=Zt,c=n?new Proxy(e,{get(...l){return re=i,Reflect.get(...l)},set(...l){return re=i,Reflect.set(...l)}}):e;re=i;const a=o[r].apply(c,arguments);return re=void 0,a}}function br({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,en(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;s.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),en(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)},_r(e,t)}function Er(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],o=[];const r=s.markRaw({install(i){be(r),r._a=i,i.provide(Ft,r),i.config.globalProperties.$pinia=r,Ee&&vr(i,r),o.forEach(c=>n.push(c)),o=[]},use(i){return!this._a&&!Ht?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Ee&&typeof Proxy<"u"&&r.use(br),r}function tn(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ce(r)&&ce(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=tn(r,o):e[n]=o}return e}const nn=()=>{};function on(e,t,n,o=nn){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const kr=e=>e();function st(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],r=e[n];ce(r)&&ce(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=st(r,o):e[n]=o}return e}const Sr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Nr(e){return!ce(e)||!e.hasOwnProperty(Sr)}const{assign:z}=Object;function rn(e){return!!(s.isRef(e)&&e.effect)}function sn(e,t,n,o){const{state:r,actions:i,getters:c}=t,a=n.state.value[e];let l;function d(){!a&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const u=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return z(u,i,Object.keys(c||{}).reduce((f,p)=>(process.env.NODE_ENV!=="production"&&p in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),f[p]=s.markRaw(s.computed(()=>{be(n);const h=n._s.get(e);return c[p].call(h,h)})),f),{}))}return l=it(e,d,t,n,o,!0),l}function it(e,t,n={},o,r,i){let c;const a=z({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"&&!Ht&&(l.onTrigger=k=>{d?h=k:d==!1&&!N._hotUpdating&&(Array.isArray(h)?h.push(k):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,u,f=[],p=[],h;const g=o.state.value[e];!i&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const y=s.ref({});let b;function S(k){let _;d=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof k=="function"?(k(o.state.value[e]),_={type:Y.patchFunction,storeId:e,events:h}):(st(o.state.value[e],k),_={type:Y.patchObject,payload:k,storeId:e,events:h});const R=b=Symbol();s.nextTick().then(()=>{b===R&&(d=!0)}),u=!0,me(f,_,o.state.value[e])}const I=i?function(){const{state:_}=n,R=_?_():{};this.$patch(V=>{z(V,R)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:nn;function A(){c.stop(),f=[],p=[],o._s.delete(e)}function j(k,_){return function(){be(o);const R=Array.from(arguments),V=[],de=[];function Re(U){V.push(U)}function qe(U){de.push(U)}me(p,{args:R,name:k,store:N,after:Re,onError:qe});let Q;try{Q=_.apply(this&&this.$id===e?this:N,R)}catch(U){throw me(de,U),U}return Q instanceof Promise?Q.then(U=>(me(V,U),U)).catch(U=>(me(de,U),Promise.reject(U))):(me(V,Q),Q)}}const G=s.markRaw({actions:{},getters:{},state:[],hotState:y}),K={_p:o,$id:e,$onAction:on.bind(null,p),$patch:S,$reset:I,$subscribe(k,_={}){const R=on(f,k,_.detached,()=>V()),V=c.run(()=>s.watch(()=>o.state.value[e],de=>{(_.flush==="sync"?u:d)&&k({storeId:e,type:Y.direct,events:h},de)},z({},l,_)));return R},$dispose:A},N=s.reactive(process.env.NODE_ENV!=="production"||Ee?z({_hmrPayload:G,_customProperties:s.markRaw(new Set)},K):K);o._s.set(e,N);const J=(o._a&&o._a.runWithContext||kr)(()=>o._e.run(()=>(c=s.effectScope()).run(t)));for(const k in J){const _=J[k];if(s.isRef(_)&&!rn(_)||s.isReactive(_))process.env.NODE_ENV!=="production"&&r?Ae(y.value,k,s.toRef(J,k)):i||(g&&Nr(_)&&(s.isRef(_)?_.value=g[k]:st(_,g[k])),o.state.value[e][k]=_),process.env.NODE_ENV!=="production"&&G.state.push(k);else if(typeof _=="function"){const R=process.env.NODE_ENV!=="production"&&r?_:j(k,_);J[k]=R,process.env.NODE_ENV!=="production"&&(G.actions[k]=_),a.actions[k]=_}else process.env.NODE_ENV!=="production"&&rn(_)&&(G.getters[k]=i?n.getters[k]:_,De&&(J._getters||(J._getters=s.markRaw([]))).push(k))}if(z(N,J),z(s.toRaw(N),J),Object.defineProperty(N,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?y.value:o.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");S(_=>{z(_,k)})}}),process.env.NODE_ENV!=="production"&&(N._hotUpdate=s.markRaw(k=>{N._hotUpdating=!0,k._hmrPayload.state.forEach(_=>{if(_ in N.$state){const R=k.$state[_],V=N.$state[_];typeof R=="object"&&ce(R)&&ce(V)?tn(R,V):k.$state[_]=V}Ae(N,_,s.toRef(k.$state,_))}),Object.keys(N.$state).forEach(_=>{_ in k.$state||Ze(N,_)}),d=!1,u=!1,o.state.value[e]=s.toRef(k._hmrPayload,"hotState"),u=!0,s.nextTick().then(()=>{d=!0});for(const _ in k._hmrPayload.actions){const R=k[_];Ae(N,_,j(_,R))}for(const _ in k._hmrPayload.getters){const R=k._hmrPayload.getters[_],V=i?s.computed(()=>(be(o),R.call(N,N))):R;Ae(N,_,V)}Object.keys(N._hmrPayload.getters).forEach(_=>{_ in k._hmrPayload.getters||Ze(N,_)}),Object.keys(N._hmrPayload.actions).forEach(_=>{_ in k._hmrPayload.actions||Ze(N,_)}),N._hmrPayload=k._hmrPayload,N._getters=k._getters,N._hotUpdating=!1})),Ee){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(_=>{Object.defineProperty(N,_,z({value:N[_]},k))})}return o._p.forEach(k=>{if(Ee){const _=c.run(()=>k({store:N,app:o._a,pinia:o,options:a}));Object.keys(_||{}).forEach(R=>N._customProperties.add(R)),z(N,_)}else z(N,c.run(()=>k({store:N,app:o._a,pinia:o,options:a})))}),process.env.NODE_ENV!=="production"&&N.$state&&typeof N.$state=="object"&&typeof N.$state.constructor=="function"&&!N.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);c[0]="$state",he=!1,o.set(s,c,o.state.value),he=!0}})})}function Pr(e,t){Le.includes(Me(t.$id))||Le.push(Me(t.$id)),rt({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Le,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:c,onError:i,name:l,args:d})=>{const p=cn++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛫 "+l,subtitle:"start",data:{store:J(t.$id),action:J(l),args:d},groupId:p}}),c(u=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛬 "+l,subtitle:"end",data:{store:J(t.$id),action:J(l),args:d,result:u},groupId:p}})}),i(u=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:J(t.$id),action:J(l),args:d,error:u},groupId:p}})})},!0),t._customProperties.forEach(c=>{a.watch(()=>a.unref(t[c]),(i,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(M),he&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:c,data:{newValue:i,oldValue:l},groupId:ae}})},{deep:!0})}),t.$subscribe(({events:c,type:i},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(M),!he)return;const d={time:o(),title:Nr(i),data:Cr({store:J(t.$id)},Or(c)),groupId:ae};i===Y.patchFunction?d.subtitle="⤵️":i===Y.patchObject?d.subtitle="🧩":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:de,event:d})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=a.markRaw(c=>{r(c),n.addTimelineEvent({layerId:de,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:J(t.$id),info:J("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&j(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&j(`"${t.$id}" store installed 🆕`)})}let cn=0,ae;function ln(e,t,n){const o=t.reduce((r,s)=>(r[s]=a.toRaw(e)[s],r),{});for(const r in o)e[r]=function(){const s=cn,c=n?new Proxy(e,{get(...l){return ae=s,Reflect.get(...l)},set(...l){return ae=s,Reflect.set(...l)}}):e;ae=s;const i=o[r].apply(c,arguments);return ae=void 0,i}}function Dr({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,ln(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;a.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),ln(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)},Pr(e,t)}function Vr(){const e=a.effectScope(!0),t=e.run(()=>a.ref({}));let n=[],o=[];const r=a.markRaw({install(s){ke(r),r._a=s,s.provide(Xt,r),s.config.globalProperties.$pinia=r,$e&&Ir(s,r),o.forEach(c=>n.push(c)),o=[]},use(s){return!this._a&&!Qt?o.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return $e&&typeof Proxy<"u"&&r.use(Dr),r}function un(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ue(r)&&ue(o)&&!a.isRef(o)&&!a.isReactive(o)?e[n]=un(r,o):e[n]=o}return e}const dn=()=>{};function pn(e,t,n,o=dn){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(r),r}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Ar=e=>e();function ct(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],r=e[n];ue(r)&&ue(o)&&e.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?e[n]=ct(r,o):e[n]=o}return e}const Rr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function jr(e){return!ue(e)||!e.hasOwnProperty(Rr)}const{assign:H}=Object;function fn(e){return!!(a.isRef(e)&&e.effect)}function hn(e,t,n,o){const{state:r,actions:s,getters:c}=t,i=n.state.value[e];let l;function d(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(r?r():{}).value):a.toRefs(n.state.value[e]);return H(p,s,Object.keys(c||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in p&&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]=a.markRaw(a.computed(()=>{ke(n);const h=n._s.get(e);return c[f].call(h,h)})),u),{}))}return l=lt(e,d,t,n,o,!0),l}function lt(e,t,n={},o,r,s){let c;const i=H({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"&&!Qt&&(l.onTrigger=_=>{d?h=_:d==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(_):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,p,u=[],f=[],h;const g=o.state.value[e];!s&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const y=a.ref({});let $;function C(_){let v;d=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof _=="function"?(_(o.state.value[e]),v={type:Y.patchFunction,storeId:e,events:h}):(ct(o.state.value[e],_),v={type:Y.patchObject,payload:_,storeId:e,events:h});const V=$=Symbol();a.nextTick().then(()=>{$===V&&(d=!0)}),p=!0,me(u,v,o.state.value[e])}const N=s?function(){const{state:_}=n,v=_?_():{};this.$patch(V=>{H(V,v)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:dn;function I(){c.stop(),u=[],f=[],o._s.delete(e)}function B(_,v){return function(){ke(o);const V=Array.from(arguments),F=[],Q=[];function Wt(L){F.push(L)}function Ae(L){Q.push(L)}me(f,{args:V,name:_,store:k,after:Wt,onError:Ae});let le;try{le=v.apply(this&&this.$id===e?this:k,V)}catch(L){throw me(Q,L),L}return le instanceof Promise?le.then(L=>(me(F,L),L)).catch(L=>(me(Q,L),Promise.reject(L))):(me(F,le),le)}}const U=a.markRaw({actions:{},getters:{},state:[],hotState:y}),K={_p:o,$id:e,$onAction:pn.bind(null,f),$patch:C,$reset:N,$subscribe(_,v={}){const V=pn(u,_,v.detached,()=>F()),F=c.run(()=>a.watch(()=>o.state.value[e],Q=>{(v.flush==="sync"?p:d)&&_({storeId:e,type:Y.direct,events:h},Q)},H({},l,v)));return V},$dispose:I},k=a.reactive(process.env.NODE_ENV!=="production"||$e?H({_hmrPayload:U,_customProperties:a.markRaw(new Set)},K):K);o._s.set(e,k);const X=(o._a&&o._a.runWithContext||Ar)(()=>o._e.run(()=>(c=a.effectScope()).run(t)));for(const _ in X){const v=X[_];if(a.isRef(v)&&!fn(v)||a.isReactive(v))process.env.NODE_ENV!=="production"&&r?Re(y.value,_,a.toRef(X,_)):s||(g&&jr(v)&&(a.isRef(v)?v.value=g[_]:ct(v,g[_])),o.state.value[e][_]=v),process.env.NODE_ENV!=="production"&&U.state.push(_);else if(typeof v=="function"){const V=process.env.NODE_ENV!=="production"&&r?v:B(_,v);X[_]=V,process.env.NODE_ENV!=="production"&&(U.actions[_]=v),i.actions[_]=v}else process.env.NODE_ENV!=="production"&&fn(v)&&(U.getters[_]=s?n.getters[_]:v,je&&(X._getters||(X._getters=a.markRaw([]))).push(_))}if(H(k,X),H(a.toRaw(k),X),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?y.value:o.state.value[e],set:_=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");C(v=>{H(v,_)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(_=>{k._hotUpdating=!0,_._hmrPayload.state.forEach(v=>{if(v in k.$state){const V=_.$state[v],F=k.$state[v];typeof V=="object"&&ue(V)&&ue(F)?un(V,F):_.$state[v]=F}Re(k,v,a.toRef(_.$state,v))}),Object.keys(k.$state).forEach(v=>{v in _.$state||nt(k,v)}),d=!1,p=!1,o.state.value[e]=a.toRef(_._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{d=!0});for(const v in _._hmrPayload.actions){const V=_[v];Re(k,v,B(v,V))}for(const v in _._hmrPayload.getters){const V=_._hmrPayload.getters[v],F=s?a.computed(()=>(ke(o),V.call(k,k))):V;Re(k,v,F)}Object.keys(k._hmrPayload.getters).forEach(v=>{v in _._hmrPayload.getters||nt(k,v)}),Object.keys(k._hmrPayload.actions).forEach(v=>{v in _._hmrPayload.actions||nt(k,v)}),k._hmrPayload=_._hmrPayload,k._getters=_._getters,k._hotUpdating=!1})),$e){const _={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(k,v,H({value:k[v]},_))})}return o._p.forEach(_=>{if($e){const v=c.run(()=>_({store:k,app:o._a,pinia:o,options:i}));Object.keys(v||{}).forEach(V=>k._customProperties.add(V)),H(k,v)}else H(k,c.run(()=>_({store:k,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$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 "${N.$id}".`),g&&i&&n.hydrate&&n.hydrate(N.$state,g),d=!0,u=!0,N}function Ir(e,t,n){let o,r;const i=typeof t=="function";if(typeof e=="string")o=e,r=i?n:t;else if(r=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 c(a,l){const d=s.hasInjectionContext();if(a=(process.env.NODE_ENV==="test"&&_e&&_e._testing?null:a)||(d?s.inject(Ft,null):null),a&&be(a),process.env.NODE_ENV!=="production"&&!_e)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 "${k.$id}".`),g&&s&&n.hydrate&&n.hydrate(k.$state,g),d=!0,p=!0,k}function Tr(e,t,n){let o,r;const s=typeof t=="function";if(typeof e=="string")o=e,r=s?n:t;else if(r=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 c(i,l){const d=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Ee&&Ee._testing?null:i)||(d?a.inject(Xt,null):null),i&&ke(i),process.env.NODE_ENV!=="production"&&!Ee)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.`);a=_e,a._s.has(o)||(i?it(o,t,r,a):sn(o,r,a),process.env.NODE_ENV!=="production"&&(c._pinia=a));const u=a._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+o,p=i?it(f,t,r,a,!0):sn(f,z({},r),a,!0);l._hotUpdate(p),delete a.state.value[f],a._s.delete(f)}if(process.env.NODE_ENV!=="production"&&De){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const p=f.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[o]=u}}return u}return c.$id=o,c}const Or=Ir("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function an(e){e||(e=s.inject("$registry"));const t=Or(),n=s.ref(new ve(e,t)),o=s.ref(!1);return s.onBeforeMount(async()=>{var r,i;const c=e.router.currentRoute.value,a=(r=c.params.records)==null?void 0:r.toString().toLowerCase(),l=(i=c.params.record)==null?void 0:i.toString().toLowerCase();if(!a&&!l)return;const d=await e.getMeta(a);e.addDoctype(d),n.value.setup(d),a&&(l?await n.value.getRecord(d,l):await n.value.getRecords(d)),n.value.runAction(d,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}/*!
12
- * vue-router v4.2.5
13
- * (c) 2023 Eduardo San Martin Morote
11
+ This will fail in production.`);i=Ee,i._s.has(o)||(s?lt(o,t,r,i):hn(o,r,i),process.env.NODE_ENV!=="production"&&(c._pinia=i));const p=i._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=s?lt(u,t,r,i,!0):hn(u,H({},r),i,!0);l._hotUpdate(f),delete i.state.value[u],i._s.delete(u)}if(process.env.NODE_ENV!=="production"&&je){const u=a.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=p}}return p}return c.$id=o,c}const Br=Tr("data",()=>{const e=a.ref([]),t=a.ref({});return{records:e,record:t}});function mn(e){e||(e=a.inject("$registry"));const t=Br(),n=a.ref(new cr(e,t)),o=a.ref(!1);return a.onBeforeMount(async()=>{var r,s;const c=e.router.currentRoute.value,i=(r=c.params.records)==null?void 0:r.toString().toLowerCase(),l=(s=c.params.record)==null?void 0:s.toString().toLowerCase();if(!i&&!l)return;const d=await e.getMeta(i);e.addDoctype(d),n.value.setup(d),i&&(l?await n.value.getRecord(d,l):await n.value.getRecords(d)),n.value.runAction(d,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}G(class Xe{constructor(t,n){if(G(this,"name"),G(this,"router"),G(this,"registry"),G(this,"getMeta"),Xe._root)return Xe._root;Xe._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.0
13
+ * (c) 2024 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */const Z=typeof window<"u";function Cr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const x=Object.assign;function at(e,t){const n={};for(const o in t){const r=t[o];n[o]=W(r)?r.map(e):e(r)}return n}const ke=()=>{},W=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Pr=/\/$/,xr=e=>e.replace(Pr,"");function ct(e,t,n="/"){let o,r={},i="",c="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),c=t.slice(a,t.length)),o=Ar(o??t,n),{fullPath:o+(i&&"?")+i+c,path:o,query:r,hash:c}}function $r(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function cn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ln(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&se(t.matched[o],n.matched[r])&&un(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function se(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function un(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Rr(e[n],t[n]))return!1;return!0}function Rr(e,t){return W(e)?dn(e,t):W(t)?dn(t,e):e===t}function dn(e,t){return W(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Ar(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("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,c,a;for(c=0;c<o.length;c++)if(a=o[c],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(c-(c===o.length?1:0)).join("/")}var Se;(function(e){e.pop="pop",e.push="push"})(Se||(Se={}));var Ne;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ne||(Ne={}));function Dr(e){if(!e)if(Z){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xr(e)}const Tr=/^[^#]+#/;function Vr(e,t){return e.replace(Tr,"#")+t}function Br(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 je=()=>({left:window.pageXOffset,top:window.pageYOffset});function Mr(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 i=document.querySelector(e.el);if(o&&i){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 r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Br(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function fn(e,t){return(history.state?history.state.position-t:-1)+e}const lt=new Map;function jr(e,t){lt.set(e,t)}function Lr(e){const t=lt.get(e);return lt.delete(e),t}let Ur=()=>location.protocol+"//"+location.host;function pn(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),cn(l,"")}return cn(n,e)+o+r}function Hr(e,t,n,o){let r=[],i=[],c=null;const a=({state:p})=>{const h=pn(e,location),g=n.value,y=t.value;let b=0;if(p){if(n.value=h,t.value=p,c&&c===g){c=null;return}b=y?p.position-y.position:0}else o(h);r.forEach(S=>{S(n.value,g,{delta:b,type:Se.pop,direction:b?b>0?Ne.forward:Ne.back:Ne.unknown})})};function l(){c=n.value}function d(p){r.push(p);const h=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return i.push(h),h}function u(){const{history:p}=window;p.state&&p.replaceState(x({},p.state,{scroll:je()}),"")}function f(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:f}}function hn(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?je():null}}function Wr(e){const{history:t,location:n}=window,o={value:pn(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,d,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Ur()+e+l;try{t[u?"replaceState":"pushState"](d,"",p),r.value=d}catch(h){process.env.NODE_ENV!=="production"?P("Error with push/replace State",h):console.error(h),n[u?"replace":"assign"](p)}}function c(l,d){const u=x({},t.state,hn(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});i(l,u,!0),o.value=l}function a(l,d){const u=x({},r.value,t.state,{forward:l,scroll:je()});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 ee=typeof document<"u";function Lr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const P=Object.assign;function ut(e,t){const n={};for(const o in t){const r=t[o];n[o]=z(r)?r.map(e):e(r)}return n}const Se=()=>{},z=Array.isArray;function S(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const gn=/#/g,Mr=/&/g,Ur=/\//g,Wr=/=/g,Fr=/\?/g,yn=/\+/g,zr=/%5B/g,qr=/%5D/g,wn=/%5E/g,Gr=/%60/g,bn=/%7B/g,Hr=/%7C/g,vn=/%7D/g,Jr=/%20/g;function dt(e){return encodeURI(""+e).replace(Hr,"|").replace(zr,"[").replace(qr,"]")}function Kr(e){return dt(e).replace(bn,"{").replace(vn,"}").replace(wn,"^")}function pt(e){return dt(e).replace(yn,"%2B").replace(Jr,"+").replace(gn,"%23").replace(Mr,"%26").replace(Gr,"`").replace(bn,"{").replace(vn,"}").replace(wn,"^")}function Qr(e){return pt(e).replace(Wr,"%3D")}function Yr(e){return dt(e).replace(gn,"%23").replace(Fr,"%3F")}function Xr(e){return e==null?"":Yr(e).replace(Ur,"%2F")}function ge(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&S(`Error decoding "${e}". Using original value`)}return""+e}const Zr=/\/$/,ea=e=>e.replace(Zr,"");function ft(e,t,n="/"){let o,r={},s="",c="";const i=t.indexOf("#");let l=t.indexOf("?");return i<l&&i>=0&&(l=-1),l>-1&&(o=t.slice(0,l),s=t.slice(l+1,i>-1?i:t.length),r=e(s)),i>-1&&(o=o||t.slice(0,i),c=t.slice(i,t.length)),o=oa(o??t,n),{fullPath:o+(s&&"?")+s+c,path:o,query:r,hash:ge(c)}}function ta(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _n(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function En(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&se(t.matched[o],n.matched[r])&&kn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function se(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!na(e[n],t[n]))return!1;return!0}function na(e,t){return z(e)?$n(e,t):z(t)?$n(t,e):e===t}function $n(e,t){return z(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function oa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return S(`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("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,c,i;for(c=0;c<o.length;c++)if(i=o[c],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(c).join("/")}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xe;(function(e){e.pop="pop",e.push="push"})(xe||(xe={}));var Oe;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oe||(Oe={}));function ra(e){if(!e)if(ee){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ea(e)}const aa=/^[^#]+#/;function sa(e,t){return e.replace(aa,"#")+t}function ia(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 Ue=()=>({left:window.scrollX,top:window.scrollY});function ca(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 s=document.querySelector(e.el);if(o&&s){S(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{S(`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 r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=ia(r,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 Sn(e,t){return(history.state?history.state.position-t:-1)+e}const ht=new Map;function la(e,t){ht.set(e,t)}function ua(e){const t=ht.get(e);return ht.delete(e),t}let da=()=>location.protocol+"//"+location.host;function xn(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let c=r.includes(e.slice(s))?e.slice(s).length:1,i=r.slice(c);return i[0]!=="/"&&(i="/"+i),_n(i,"")}return _n(n,e)+o+r}function pa(e,t,n,o){let r=[],s=[],c=null;const i=({state:f})=>{const h=xn(e,location),g=n.value,y=t.value;let $=0;if(f){if(n.value=h,t.value=f,c&&c===g){c=null;return}$=y?f.position-y.position:0}else o(h);r.forEach(C=>{C(n.value,g,{delta:$,type:xe.pop,direction:$?$>0?Oe.forward:Oe.back:Oe.unknown})})};function l(){c=n.value}function d(f){r.push(f);const h=()=>{const g=r.indexOf(f);g>-1&&r.splice(g,1)};return s.push(h),h}function p(){const{history:f}=window;f.state&&f.replaceState(P({},f.state,{scroll:Ue()}),"")}function u(){for(const f of s)f();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:l,listen:d,destroy:u}}function On(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ue():null}}function fa(e){const{history:t,location:n}=window,o={value:xn(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,d,p){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:da()+e+l;try{t[p?"replaceState":"pushState"](d,"",f),r.value=d}catch(h){process.env.NODE_ENV!=="production"?S("Error with push/replace State",h):console.error(h),n[p?"replace":"assign"](f)}}function c(l,d){const p=P({},t.state,On(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});s(l,p,!0),o.value=l}function i(l,d){const p=P({},r.value,t.state,{forward:l,scroll:Ue()});process.env.NODE_ENV!=="production"&&!t.state&&S(`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://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),i(u.current,u,!0);const f=x({},hn(o.value,l,null),{position:u.position+1},d);i(l,f,!1),o.value=l}return{location:o,state:r,push:a,replace:c}}function Fr(e){e=Dr(e);const t=Wr(e),n=Hr(e,t.state,t.location,t.replace);function o(i,c=!0){c||n.pauseListeners(),history.go(i)}const r=x({location:"",base:e,go:o,createHref:Vr.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function zr(e){return typeof e=="string"||e&&typeof e=="object"}function mn(e){return typeof e=="string"||typeof e=="symbol"}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ut=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var gn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gn||(gn={}));const Gr={1({location:e,currentLocation:t}){return`No match for
19
+ You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),s(p.current,p,!0);const u=P({},On(o.value,l,null),{position:p.position+1},d);s(l,u,!1),o.value=l}return{location:o,state:r,push:i,replace:c}}function ha(e){e=ra(e);const t=fa(e),n=pa(e,t.state,t.location,t.replace);function o(s,c=!0){c||n.pauseListeners(),history.go(s)}const r=P({location:"",base:e,go:o,createHref:sa.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function We(e){return typeof e=="string"||e&&typeof e=="object"}function Nn(e){return typeof e=="string"||typeof e=="symbol"}const mt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Cn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Cn||(Cn={}));const ma={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 "${qr(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 ge(e,t){return process.env.NODE_ENV!=="production"?x(new Error(Gr[e](t)),{type:e,[ut]:!0},t):x(new Error,{type:e,[ut]:!0},t)}function ee(e,t){return e instanceof Error&&ut in e&&(t==null||!!(e.type&t))}const Kr=["params","query","hash"];function qr(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of Kr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const yn="[^/]+?",Jr={sensitive:!1,strict:!1,start:!0,end:!0},Yr=/[.+*?^${}()[\]/\\]/g;function Qr(e,t){const n=x({},Jr,t),o=[];let r=n.start?"^":"";const i=[];for(const d of e){const u=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let f=0;f<d.length;f++){const p=d[f];let h=40+(n.sensitive?.25:0);if(p.type===0)f||(r+="/"),r+=p.value.replace(Yr,"\\$&"),h+=40;else if(p.type===1){const{value:g,repeatable:y,optional:b,regexp:S}=p;i.push({name:g,repeatable:y,optional:b});const I=S||yn;if(I!==yn){h+=10;try{new RegExp(`(${I})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${g}" (${I}): `+j.message)}}let A=y?`((?:${I})(?:/(?:${I}))*)`:`(${I})`;f||(A=b&&d.length<2?`(?:/${A})`:"/"+A),b&&(A+="?"),r+=A,h+=20,b&&(h+=-8),y&&(h+=-20),I===".*"&&(h+=-50)}u.push(h)}o.push(u)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const c=new RegExp(r,n.sensitive?"":"i");function a(d){const u=d.match(c),f={};if(!u)return null;for(let p=1;p<u.length;p++){const h=u[p]||"",g=i[p-1];f[g.name]=h&&g.repeatable?h.split("/"):h}return f}function l(d){let u="",f=!1;for(const p of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of p)if(h.type===0)u+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:b}=h,S=g in d?d[g]:"";if(W(S)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const I=W(S)?S.join("/"):S;if(!I)if(b)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${g}"`);u+=I}}return u||"/"}return{re:c,score:o,keys:i,parse:a,stringify:l}}function Xr(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 Zr(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const i=Xr(o[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-o.length)===1){if(wn(o))return 1;if(wn(r))return-1}return r.length-o.length}function wn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const es={type:0,value:""},ts=/[a-zA-Z0-9_]/;function ns(e){if(!e)return[[]];if(e==="/")return[[es]];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})/"${d}": ${h}`)}let n=0,o=n;const r=[];let i;function c(){i&&r.push(i),i=[]}let a=0,l,d="",u="";function f(){d&&(n===0?i.push({type:0,value:d}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&f(),c()):l===":"?(f(),n=1):p();break;case 4:p(),n=o;break;case 1:l==="("?n=2:ts.test(l)?p():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),f(),c(),r}function os(e,t,n){const o=Qr(ns(e.path),n);if(process.env.NODE_ENV!=="production"){const i=new Set;for(const c of o.keys)i.has(c.name)&&P(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),i.add(c.name)}const r=x(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function rs(e,t){const n=[],o=new Map;t=bn({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function i(u,f,p){const h=!p,g=ss(u);process.env.NODE_ENV!=="production"&&ls(g,f),g.aliasOf=p&&p.record;const y=bn(t,u),b=[g];if("alias"in u){const A=typeof u.alias=="string"?[u.alias]:u.alias;for(const j of A)b.push(x({},g,{components:p?p.record.components:g.components,path:j,aliasOf:p?p.record:g}))}let S,I;for(const A of b){const{path:j}=A;if(f&&j[0]!=="/"){const G=f.record.path,K=G[G.length-1]==="/"?"":"/";A.path=f.record.path+(j&&K+j)}if(process.env.NODE_ENV!=="production"&&A.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
- See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(S=os(A,f,y),process.env.NODE_ENV!=="production"&&f&&j[0]==="/"&&us(S,f),p?(p.alias.push(S),process.env.NODE_ENV!=="production"&&cs(p,S)):(I=I||S,I!==S&&I.alias.push(S),h&&u.name&&!_n(S)&&c(u.name)),g.children){const G=g.children;for(let K=0;K<G.length;K++)i(G[K],S,p&&p.children[K])}p=p||S,(S.record.components&&Object.keys(S.record.components).length||S.record.name||S.record.redirect)&&l(S)}return I?()=>{c(I)}:ke}function c(u){if(mn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(c),f.alias.forEach(c))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function a(){return n}function l(u){let f=0;for(;f<n.length&&Zr(u,n[f])>=0&&(u.record.path!==n[f].record.path||!En(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!_n(u)&&o.set(u.record.name,u)}function d(u,f){let p,h={},g,y;if("name"in u&&u.name){if(p=o.get(u.name),!p)throw ge(1,{location:u});if(process.env.NODE_ENV!=="production"){const I=Object.keys(u.params||{}).filter(A=>!p.keys.find(j=>j.name===A));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.`)}y=p.record.name,h=x(vn(f.params,p.keys.filter(I=>!I.optional).map(I=>I.name)),u.params&&vn(u.params,p.keys.map(I=>I.name))),g=p.stringify(h)}else if("path"in u)g=u.path,process.env.NODE_ENV!=="production"&&!g.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),p=n.find(I=>I.re.test(g)),p&&(h=p.parse(g),y=p.record.name);else{if(p=f.name?o.get(f.name):n.find(I=>I.re.test(f.path)),!p)throw ge(1,{location:u,currentLocation:f});y=p.record.name,h=x({},f.params,u.params),g=p.stringify(h)}const b=[];let S=p;for(;S;)b.unshift(S.record),S=S.parent;return{name:y,path:g,params:h,matched:b,meta:as(b)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:d,removeRoute:c,getRoutes:a,getRecordMatcher:r}}function vn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function ss(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:is(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function is(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 _n(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function as(e){return e.reduce((t,n)=>x(t,n.meta),{})}function bn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function dt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function cs(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(dt.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(dt.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 ls(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 us(e,t){for(const n of t.keys)if(!e.keys.find(dt.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 En(e,t){return t.children.some(n=>n===e||En(e,n))}const kn=/#/g,ds=/&/g,fs=/\//g,ps=/=/g,hs=/\?/g,Sn=/\+/g,ms=/%5B/g,gs=/%5D/g,Nn=/%5E/g,ys=/%60/g,In=/%7B/g,ws=/%7C/g,On=/%7D/g,vs=/%20/g;function ft(e){return encodeURI(""+e).replace(ws,"|").replace(ms,"[").replace(gs,"]")}function _s(e){return ft(e).replace(In,"{").replace(On,"}").replace(Nn,"^")}function pt(e){return ft(e).replace(Sn,"%2B").replace(vs,"+").replace(kn,"%23").replace(ds,"%26").replace(ys,"`").replace(In,"{").replace(On,"}").replace(Nn,"^")}function bs(e){return pt(e).replace(ps,"%3D")}function Es(e){return ft(e).replace(kn,"%23").replace(hs,"%3F")}function ks(e){return e==null?"":Es(e).replace(fs,"%2F")}function Ie(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}function Ss(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const i=o[r].replace(Sn," "),c=i.indexOf("="),a=Ie(c<0?i:i.slice(0,c)),l=c<0?null:Ie(i.slice(c+1));if(a in t){let d=t[a];W(d)||(d=t[a]=[d]),d.push(l)}else t[a]=l}return t}function Cn(e){let t="";for(let n in e){const o=e[n];if(n=bs(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(W(o)?o.map(i=>i&&pt(i)):[o&&pt(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ns(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=W(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Is=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Pn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),ht=Symbol(process.env.NODE_ENV!=="production"?"router":""),xn=Symbol(process.env.NODE_ENV!=="production"?"route location":""),mt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Oe(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ae(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((c,a)=>{const l=f=>{f===!1?a(ge(4,{from:n,to:t})):f instanceof Error?a(f):zr(f)?a(ge(2,{from:t,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),c())},d=e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Os(l,t,n):l);let u=Promise.resolve(d);if(e.length<3&&(u=u.then(l)),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 "${ya(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 ye(e,t){return process.env.NODE_ENV!=="production"?P(new Error(ma[e](t)),{type:e,[mt]:!0},t):P(new Error,{type:e,[mt]:!0},t)}function te(e,t){return e instanceof Error&&mt in e&&(t==null||!!(e.type&t))}const ga=["params","query","hash"];function ya(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ga)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const In="[^/]+?",wa={sensitive:!1,strict:!1,start:!0,end:!0},ba=/[.+*?^${}()[\]/\\]/g;function va(e,t){const n=P({},wa,t),o=[];let r=n.start?"^":"";const s=[];for(const d of e){const p=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let u=0;u<d.length;u++){const f=d[u];let h=40+(n.sensitive?.25:0);if(f.type===0)u||(r+="/"),r+=f.value.replace(ba,"\\$&"),h+=40;else if(f.type===1){const{value:g,repeatable:y,optional:$,regexp:C}=f;s.push({name:g,repeatable:y,optional:$});const N=C||In;if(N!==In){h+=10;try{new RegExp(`(${N})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${g}" (${N}): `+B.message)}}let I=y?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;u||(I=$&&d.length<2?`(?:/${I})`:"/"+I),$&&(I+="?"),r+=I,h+=20,$&&(h+=-8),y&&(h+=-20),N===".*"&&(h+=-50)}p.push(h)}o.push(p)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const c=new RegExp(r,n.sensitive?"":"i");function i(d){const p=d.match(c),u={};if(!p)return null;for(let f=1;f<p.length;f++){const h=p[f]||"",g=s[f-1];u[g.name]=h&&g.repeatable?h.split("/"):h}return u}function l(d){let p="",u=!1;for(const f of e){(!u||!p.endsWith("/"))&&(p+="/"),u=!1;for(const h of f)if(h.type===0)p+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:$}=h,C=g in d?d[g]:"";if(z(C)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const N=z(C)?C.join("/"):C;if(!N)if($)f.length<2&&(p.endsWith("/")?p=p.slice(0,-1):u=!0);else throw new Error(`Missing required param "${g}"`);p+=N}}return p||"/"}return{re:c,score:o,keys:s,parse:i,stringify:l}}function _a(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 Pn(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const s=_a(o[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-o.length)===1){if(Dn(o))return 1;if(Dn(r))return-1}return r.length-o.length}function Dn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ea={type:0,value:""},ka=/[a-zA-Z0-9_]/;function $a(e){if(!e)return[[]];if(e==="/")return[[Ea]];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})/"${d}": ${h}`)}let n=0,o=n;const r=[];let s;function c(){s&&r.push(s),s=[]}let i=0,l,d="",p="";function u(){d&&(n===0?s.push({type:0,value:d}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:p,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&u(),c()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:ka.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case 2:l===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+l:n=3:p+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--,p="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),u(),c(),r}function Sa(e,t,n){const o=va($a(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const c of o.keys)s.has(c.name)&&S(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(c.name)}const r=P(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xa(e,t){const n=[],o=new Map;t=Rn({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function s(u,f,h){const g=!h,y=Oa(u);process.env.NODE_ENV!=="production"&&Pa(y,f),y.aliasOf=h&&h.record;const $=Rn(t,u),C=[y];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const U of B)C.push(P({},y,{components:h?h.record.components:y.components,path:U,aliasOf:h?h.record:y}))}let N,I;for(const B of C){const{path:U}=B;if(f&&U[0]!=="/"){const K=f.record.path,k=K[K.length-1]==="/"?"":"/";B.path=f.record.path+(U&&k+U)}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://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=Sa(B,f,$),process.env.NODE_ENV!=="production"&&f&&U[0]==="/"&&Da(N,f),h?(h.alias.push(N),process.env.NODE_ENV!=="production"&&Ia(h,N)):(I=I||N,I!==N&&I.alias.push(N),g&&u.name&&!An(N)&&c(u.name)),jn(N)&&l(N),y.children){const K=y.children;for(let k=0;k<K.length;k++)s(K[k],N,h&&h.children[k])}h=h||N}return I?()=>{c(I)}:Se}function c(u){if(Nn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(c),f.alias.forEach(c))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function i(){return n}function l(u){const f=Va(u,n);n.splice(f,0,u),u.record.name&&!An(u)&&o.set(u.record.name,u)}function d(u,f){let h,g={},y,$;if("name"in u&&u.name){if(h=o.get(u.name),!h)throw ye(1,{location:u});if(process.env.NODE_ENV!=="production"){const I=Object.keys(u.params||{}).filter(B=>!h.keys.find(U=>U.name===B));I.length&&S(`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.`)}$=h.record.name,g=P(Vn(f.params,h.keys.filter(I=>!I.optional).concat(h.parent?h.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),u.params&&Vn(u.params,h.keys.map(I=>I.name))),y=h.stringify(g)}else if(u.path!=null)y=u.path,process.env.NODE_ENV!=="production"&&!y.startsWith("/")&&S(`The Matcher cannot resolve relative paths but received "${y}". Unless you directly called \`matcher.resolve("${y}")\`, 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(y)),h&&(g=h.parse(y),$=h.record.name);else{if(h=f.name?o.get(f.name):n.find(I=>I.re.test(f.path)),!h)throw ye(1,{location:u,currentLocation:f});$=h.record.name,g=P({},f.params,u.params),y=h.stringify(g)}const C=[];let N=h;for(;N;)C.unshift(N.record),N=N.parent;return{name:$,path:y,params:g,matched:C,meta:Ca(C)}}e.forEach(u=>s(u));function p(){n.length=0,o.clear()}return{addRoute:s,resolve:d,removeRoute:c,clearRoutes:p,getRoutes:i,getRecordMatcher:r}}function Vn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Oa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Na(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Na(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 An(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ca(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Rn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function gt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ia(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(gt.bind(null,n)))return S(`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(gt.bind(null,n)))return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Pa(e,t){t&&t.record.name&&!e.name&&!e.path&&S(`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 Da(e,t){for(const n of t.keys)if(!e.keys.find(gt.bind(null,n)))return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Va(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Pn(e,t[s])<0?o=s:n=s+1}const r=Aa(e);return r&&(o=t.lastIndexOf(r,o-1),process.env.NODE_ENV!=="production"&&o<0&&S(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)),o}function Aa(e){let t=e;for(;t=t.parent;)if(jn(t)&&Pn(e,t)===0)return t}function jn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ra(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 r=n[o].replace(yn," "),s=r.indexOf("="),c=ge(s<0?r:r.slice(0,s)),i=s<0?null:ge(r.slice(s+1));if(c in t){let l=t[c];z(l)||(l=t[c]=[l]),l.push(i)}else t[c]=i}return t}function Tn(e){let t="";for(let n in e){const o=e[n];if(n=Qr(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(z(o)?o.map(r=>r&&pt(r)):[o&&pt(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ja(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=z(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Ta=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),yt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Ln=Symbol(process.env.NODE_ENV!=="production"?"route location":""),wt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ne(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ce(e,t,n,o,r,s=c=>c()){const c=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const d=f=>{f===!1?l(ye(4,{from:n,to:t})):f instanceof Error?l(f):We(f)?l(ye(2,{from:t,to:f})):(c&&o.enterCallbacks[r]===c&&typeof f=="function"&&c.push(f),i())},p=s(()=>e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Ba(d,t,n):d));let u=Promise.resolve(p);if(e.length<3&&(u=u.then(d)),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(p=>l._called?p:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!l._called){P(f),a(new Error("Invalid navigation guard"));return}}u.catch(f=>a(f))})}function Os(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 gt(e,t,n,o){const r=[];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 a=i.components[c];if(process.env.NODE_ENV!=="production"){if(!a||typeof a!="object"&&typeof a!="function")throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){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 l=a;a=()=>l}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__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(Cs(a)){const d=(a.__vccOpts||a)[t];d&&r.push(ae(d,n,o,i,c))}else{let l=a();process.env.NODE_ENV!=="production"&&!("catch"in l)&&(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.`),l=Promise.resolve(l)),r.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const u=Cr(d)?d.default:d;i.components[c]=u;const p=(u.__vccOpts||u)[t];return p&&ae(p,n,o,i,c)()}))}}}return r}function Cs(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $n(e){const t=s.inject(ht),n=s.inject(xn),o=s.computed(()=>t.resolve(s.unref(e.to))),r=s.computed(()=>{const{matched:l}=o.value,{length:d}=l,u=l[d-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(se.bind(null,u));if(p>-1)return p;const h=Rn(l[d-2]);return d>1&&Rn(u)===h&&f[f.length-1].path!==h?f.findIndex(se.bind(null,l[d-2])):p}),i=s.computed(()=>r.value>-1&&$s(n.params,o.value.params)),c=s.computed(()=>r.value>-1&&r.value===n.matched.length-1&&un(n.params,o.value.params));function a(l={}){return xs(l)?t[s.unref(e.replace)?"replace":"push"](s.unref(e.to)).catch(ke):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Z){const l=s.getCurrentInstance();if(l){const d={route:o.value,isActive:i.value,isExactActive:c.value};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(d),s.watchEffect(()=>{d.route=o.value,d.isActive=i.value,d.isExactActive=c.value},{flush:"post"})}}return{route:o,href:s.computed(()=>o.value.href),isActive:i,isExactActive:c,navigate:a}}const Ps=s.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:$n,setup(e,{slots:t}){const n=s.reactive($n(e)),{options:o}=s.inject(ht),r=s.computed(()=>({[An(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[An(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:s.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}});function xs(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 $s(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!W(r)||r.length!==o.length||o.some((i,c)=>i!==r[c]))return!1}return!0}function Rn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const An=(e,t,n)=>e??t??n,Rs=s.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"&&Ds();const o=s.inject(mt),r=s.computed(()=>e.route||o.value),i=s.inject(Pn,0),c=s.computed(()=>{let d=s.unref(i);const{matched:u}=r.value;let f;for(;(f=u[d])&&!f.components;)d++;return d}),a=s.computed(()=>r.value.matched[c.value]);s.provide(Pn,s.computed(()=>c.value+1)),s.provide(Is,a),s.provide(mt,r);const l=s.ref();return s.watch(()=>[l.value,a.value,e.name],([d,u,f],[p,h,g])=>{u&&(u.instances[f]=d,h&&h!==u&&d&&d===p&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!se(u,h)||!p)&&(u.enterCallbacks[f]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,u=e.name,f=a.value,p=f&&f.components[u];if(!p)return Dn(n.default,{Component:p,route:d});const h=f.props[u],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=S=>{S.component.isUnmounted&&(f.instances[u]=null)},b=s.h(p,x({},g,t,{onVnodeUnmounted:y,ref:l}));if(process.env.NODE_ENV!=="production"&&Z&&b.ref){const S={depth:c.value,name:f.name,path:f.path,meta:f.meta};(W(b.ref)?b.ref.map(A=>A.i):[b.ref.i]).forEach(A=>{A.__vrv_devtools=S})}return Dn(n.default,{Component:b,route:d})||b}}});function Dn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const As=Rs;function Ds(){const e=s.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>.
25
+ . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof p=="object"&&"then"in p)u=u.then(h=>d._called?h:(S(f),Promise.reject(new Error("Invalid navigation guard"))));else if(p!==void 0&&!d._called){S(f),l(new Error("Invalid navigation guard"));return}}u.catch(f=>l(f))})}function Ba(e,t,n){let o=0;return function(){o++===1&&S(`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 bt(e,t,n,o,r=s=>s()){const s=[];for(const c of e){process.env.NODE_ENV!=="production"&&!c.components&&!c.children.length&&S(`Record with path "${c.path}" is either missing a "component(s)" or "children" property.`);for(const i in c.components){let l=c.components[i];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw S(`Component "${i}" in record with path "${c.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){S(`Component "${i}" in record with path "${c.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 d=l;l=()=>d}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,S(`Component "${i}" in record with path "${c.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!c.instances[i]))if(La(l)){const d=(l.__vccOpts||l)[t];d&&s.push(ce(d,n,o,c,i,r))}else{let d=l();process.env.NODE_ENV!=="production"&&!("catch"in d)&&(S(`Component "${i}" in record with path "${c.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.`),d=Promise.resolve(d)),s.push(()=>d.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${c.path}"`));const u=Lr(p)?p.default:p;c.components[i]=u;const f=(u.__vccOpts||u)[t];return f&&ce(f,n,o,c,i,r)()}))}}}return s}function La(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mn(e){const t=a.inject(yt),n=a.inject(Ln);let o=!1,r=null;const s=a.computed(()=>{const p=a.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||p!==r)&&(We(p)||(o?S(`Invalid value for prop "to" in useLink()
26
+ - to:`,p,`
27
+ - previous to:`,r,`
28
+ - props:`,e):S(`Invalid value for prop "to" in useLink()
29
+ - to:`,p,`
30
+ - props:`,e)),r=p,o=!0),t.resolve(p)}),c=a.computed(()=>{const{matched:p}=s.value,{length:u}=p,f=p[u-1],h=n.matched;if(!f||!h.length)return-1;const g=h.findIndex(se.bind(null,f));if(g>-1)return g;const y=Un(p[u-2]);return u>1&&Un(f)===y&&h[h.length-1].path!==y?h.findIndex(se.bind(null,p[u-2])):g}),i=a.computed(()=>c.value>-1&&Fa(n.params,s.value.params)),l=a.computed(()=>c.value>-1&&c.value===n.matched.length-1&&kn(n.params,s.value.params));function d(p={}){return Wa(p)?t[a.unref(e.replace)?"replace":"push"](a.unref(e.to)).catch(Se):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ee){const p=a.getCurrentInstance();if(p){const u={route:s.value,isActive:i.value,isExactActive:l.value,error:null};p.__vrl_devtools=p.__vrl_devtools||[],p.__vrl_devtools.push(u),a.watchEffect(()=>{u.route=s.value,u.isActive=i.value,u.isExactActive=l.value,u.error=We(a.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:a.computed(()=>s.value.href),isActive:i,isExactActive:l,navigate:d}}const Ma=a.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:Mn,setup(e,{slots:t}){const n=a.reactive(Mn(e)),{options:o}=a.inject(yt),r=a.computed(()=>({[Wn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Wn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:a.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),Ua=Ma;function Wa(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 Fa(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!z(r)||r.length!==o.length||o.some((s,c)=>s!==r[c]))return!1}return!0}function Un(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wn=(e,t,n)=>e??t??n,za=a.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"&&Ga();const o=a.inject(wt),r=a.computed(()=>e.route||o.value),s=a.inject(Bn,0),c=a.computed(()=>{let d=a.unref(s);const{matched:p}=r.value;let u;for(;(u=p[d])&&!u.components;)d++;return d}),i=a.computed(()=>r.value.matched[c.value]);a.provide(Bn,a.computed(()=>c.value+1)),a.provide(Ta,i),a.provide(wt,r);const l=a.ref();return a.watch(()=>[l.value,i.value,e.name],([d,p,u],[f,h,g])=>{p&&(p.instances[u]=d,h&&h!==p&&d&&d===f&&(p.leaveGuards.size||(p.leaveGuards=h.leaveGuards),p.updateGuards.size||(p.updateGuards=h.updateGuards))),d&&p&&(!h||!se(p,h)||!f)&&(p.enterCallbacks[u]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,p=e.name,u=i.value,f=u&&u.components[p];if(!f)return Fn(n.default,{Component:f,route:d});const h=u.props[p],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=a.h(f,P({},g,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(u.instances[p]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&ee&&y.ref){const $={depth:c.value,name:u.name,path:u.path,meta:u.meta};(z(y.ref)?y.ref.map(C=>C.i):[y.ref.i]).forEach(C=>{C.__vrv_devtools=$})}return Fn(n.default,{Component:y,route:d})||y}}});function Fn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qa=za;function Ga(){const e=a.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";S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
26
31
  Use slot props instead:
27
32
 
28
33
  <router-view v-slot="{ Component }">
29
34
  <${o}>
30
35
  <component :is="Component" />
31
36
  </${o}>
32
- </router-view>`)}}function Ce(e,t){const n=x({},e,{matched:e.matched.map(o=>Ws(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Le(e){return{_custom:{display:e}}}let Ts=0;function Vs(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Ts++;tt({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},r=>{typeof r.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."),r.on.inspectComponent((u,f)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:u,componentInstance:f})=>{if(f.__vrv_devtools){const p=f.__vrv_devtools;u.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Tn})}W(f.__vrl_devtools)&&(f.__devtoolsApi=r,f.__vrl_devtools.forEach(p=>{let h=Mn,g="";p.isExactActive?(h=Bn,g="This is exactly active"):p.isActive&&(h=Vn,g="This link is active"),u.tags.push({label:p.route.path,textColor:0,tooltip:g,backgroundColor:h})}))}),s.watch(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(a),r.sendInspectorState(a)});const i="router:navigations:"+o;r.addTimelineLayer({id:i,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((u,f)=>{r.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:f.fullPath,logType:"error",time:r.now(),data:{error:u},groupId:f.meta.__navigationId}})});let c=0;t.beforeEach((u,f)=>{const p={guard:Le("beforeEach"),from:Ce(f,"Current Location during this navigation"),to:Ce(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:c++}),r.addTimelineEvent({layerId:i,event:{time:r.now(),title:"Start of navigation",subtitle:u.fullPath,data:p,groupId:u.meta.__navigationId}})}),t.afterEach((u,f,p)=>{const h={guard:Le("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=Le("❌")):h.status=Le("✅"),h.from=Ce(f,"Current Location during this navigation"),h.to=Ce(u,"Target location"),r.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:u.fullPath,time:r.now(),data:h,logType:p?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+o;r.addInspector({id:a,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const u=d;let f=n.getRoutes().filter(p=>!p.parent||!p.parent.record.components);f.forEach(Un),u.filter&&(f=f.filter(p=>yt(p,u.filter.toLowerCase()))),f.forEach(p=>Ln(p,t.currentRoute.value)),u.rootNodes=f.map(jn)}let d;r.on.getInspectorTree(u=>{d=u,u.app===e&&u.inspectorId===a&&l()}),r.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===a){const p=n.getRoutes().find(h=>h.record.__vd_id===u.nodeId);p&&(u.state={options:Ms(p)})}}),r.sendInspectorTree(a),r.sendInspectorState(a)})}function Bs(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Ms(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}${Bs(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 Tn=15485081,Vn=2450411,Bn=8702998,js=2282478,Mn=16486972,Ls=6710886;function jn(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:js}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Mn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Tn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Bn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Vn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Ls});let o=n.__vd_id;return o==null&&(o=String(Us++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(jn)}}let Us=0;const Hs=/^\/(.*)\/([a-z]*)$/;function Ln(e,t){const n=t.matched.length&&se(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>se(o,e.record))),e.children.forEach(o=>Ln(o,t))}function Un(e){e.__vd_match=!1,e.children.forEach(Un)}function yt(e,t){const n=String(e.re).match(Hs);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(c=>yt(c,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const r=e.record.path.toLowerCase(),i=Ie(r);return!t.startsWith("/")&&(i.includes(t)||r.includes(t))||i.startsWith(t)||r.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(c=>yt(c,t))}function Ws(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function Fs(e){const t=rs(e.routes,e),n=e.parseQuery||Ss,o=e.stringifyQuery||Cn,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=Oe(),c=Oe(),a=Oe(),l=s.shallowRef(ie);let d=ie;Z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=at.bind(null,m=>""+m),f=at.bind(null,ks),p=at.bind(null,Ie);function h(m,v){let w,E;return mn(m)?(w=t.getRecordMatcher(m),E=v):E=m,t.addRoute(E,w)}function g(m){const v=t.getRecordMatcher(m);v?t.removeRoute(v):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function b(m){return!!t.getRecordMatcher(m)}function S(m,v){if(v=x({},v||l.value),typeof m=="string"){const O=ct(n,m,v.path),D=t.resolve({path:O.path},v),fe=r.createHref(O.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?P(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):D.matched.length||P(`No match found for location with path "${m}"`)),x(O,D,{params:p(D.params),hash:Ie(O.hash),redirectedFrom:void 0,href:fe})}let w;if("path"in m)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=x({},m,{path:ct(n,m.path,v.path).path});else{const O=x({},m.params);for(const D in O)O[D]==null&&delete O[D];w=x({},m,{params:f(O)}),v.params=f(v.params)}const E=t.resolve(w,v),$=m.hash||"";process.env.NODE_ENV!=="production"&&$&&!$.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${$}" with "#${$}".`),E.params=u(p(E.params));const T=$r(o,x({},m,{hash:_s($),path:E.path})),C=r.createHref(T);return process.env.NODE_ENV!=="production"&&(C.startsWith("//")?P(`Location "${m}" resolved to "${C}". A resolved location cannot start with multiple slashes.`):E.matched.length||P(`No match found for location with path "${"path"in m?m.path:m}"`)),x({fullPath:T,hash:$,query:o===Cn?Ns(m.query):m.query||{}},E,{redirectedFrom:void 0,href:C})}function I(m){return typeof m=="string"?ct(n,m,l.value.path):x({},m)}function A(m,v){if(d!==m)return ge(8,{from:v,to:m})}function j(m){return N(m)}function G(m){return j(x(I(m),{replace:!0}))}function K(m){const v=m.matched[m.matched.length-1];if(v&&v.redirect){const{redirect:w}=v;let E=typeof w=="function"?w(m):w;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=I(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&!("path"in E)&&!("name"in E))throw P(`Invalid redirect found:
37
+ </router-view>`)}}function Ce(e,t){const n=P({},e,{matched:e.matched.map(o=>os(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Fe(e){return{_custom:{display:e}}}let Ha=0;function Ja(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Ha++;rt({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},r=>{typeof r.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."),r.on.inspectComponent((p,u)=>{p.instanceData&&p.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:p,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;p.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:zn})}z(u.__vrl_devtools)&&(u.__devtoolsApi=r,u.__vrl_devtools.forEach(f=>{let h=f.route.path,g=Hn,y="",$=0;f.error?(h=f.error,g=Za,$=es):f.isExactActive?(g=Gn,y="This is exactly active"):f.isActive&&(g=qn,y="This link is active"),p.tags.push({label:h,textColor:$,tooltip:y,backgroundColor:g})}))}),a.watch(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(i),r.sendInspectorState(i)});const s="router:navigations:"+o;r.addTimelineLayer({id:s,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((p,u)=>{r.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:r.now(),data:{error:p},groupId:u.meta.__navigationId}})});let c=0;t.beforeEach((p,u)=>{const f={guard:Fe("beforeEach"),from:Ce(u,"Current Location during this navigation"),to:Ce(p,"Target location")};Object.defineProperty(p.meta,"__navigationId",{value:c++}),r.addTimelineEvent({layerId:s,event:{time:r.now(),title:"Start of navigation",subtitle:p.fullPath,data:f,groupId:p.meta.__navigationId}})}),t.afterEach((p,u,f)=>{const h={guard:Fe("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Fe("❌")):h.status=Fe("✅"),h.from=Ce(u,"Current Location during this navigation"),h.to=Ce(p,"Target location"),r.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:p.fullPath,time:r.now(),data:h,logType:f?"warning":"default",groupId:p.meta.__navigationId}})});const i="router-inspector:"+o;r.addInspector({id:i,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const p=d;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(Qn),p.filter&&(u=u.filter(f=>vt(f,p.filter.toLowerCase()))),u.forEach(f=>Kn(f,t.currentRoute.value)),p.rootNodes=u.map(Jn)}let d;r.on.getInspectorTree(p=>{d=p,p.app===e&&p.inspectorId===i&&l()}),r.on.getInspectorState(p=>{if(p.app===e&&p.inspectorId===i){const u=n.getRoutes().find(f=>f.record.__vd_id===p.nodeId);u&&(p.state={options:Qa(u)})}}),r.sendInspectorTree(i),r.sendInspectorState(i)})}function Ka(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Qa(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}${Ka(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 zn=15485081,qn=2450411,Gn=8702998,Ya=2282478,Hn=16486972,Xa=6710886,Za=16704226,es=12131356;function Jn(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:Hn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:zn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Gn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:qn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Xa});let o=n.__vd_id;return o==null&&(o=String(ts++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(Jn)}}let ts=0;const ns=/^\/(.*)\/([a-z]*)$/;function Kn(e,t){const n=t.matched.length&&se(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>se(o,e.record))),e.children.forEach(o=>Kn(o,t))}function Qn(e){e.__vd_match=!1,e.children.forEach(Qn)}function vt(e,t){const n=String(e.re).match(ns);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(s=>vt(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),r=ge(o);return!t.startsWith("/")&&(r.includes(t)||o.includes(t))||r.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>vt(s,t))}function os(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function rs(e){const t=xa(e.routes,e),n=e.parseQuery||Ra,o=e.stringifyQuery||Tn,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const s=Ne(),c=Ne(),i=Ne(),l=a.shallowRef(ie);let d=ie;ee&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=ut.bind(null,m=>""+m),u=ut.bind(null,Xr),f=ut.bind(null,ge);function h(m,b){let w,E;return Nn(m)?(w=t.getRecordMatcher(m),process.env.NODE_ENV!=="production"&&!w&&S(`Parent route "${String(m)}" not found when adding child route`,b),E=b):E=m,t.addRoute(E,w)}function g(m){const b=t.getRecordMatcher(m);b?t.removeRoute(b):process.env.NODE_ENV!=="production"&&S(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function $(m){return!!t.getRecordMatcher(m)}function C(m,b){if(b=P({},b||l.value),typeof m=="string"){const x=ft(n,m,b.path),A=t.resolve({path:x.path},b),fe=r.createHref(x.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?S(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):A.matched.length||S(`No match found for location with path "${m}"`)),P(x,A,{params:f(A.params),hash:ge(x.hash),redirectedFrom:void 0,href:fe})}if(process.env.NODE_ENV!=="production"&&!We(m))return S(`router.resolve() was passed an invalid location. This will fail in production.
38
+ - Location:`,m),C({});let w;if(m.path!=null)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&S(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=P({},m,{path:ft(n,m.path,b.path).path});else{const x=P({},m.params);for(const A in x)x[A]==null&&delete x[A];w=P({},m,{params:u(x)}),b.params=u(b.params)}const E=t.resolve(w,b),D=m.hash||"";process.env.NODE_ENV!=="production"&&D&&!D.startsWith("#")&&S(`A \`hash\` should always start with the character "#". Replace "${D}" with "#${D}".`),E.params=p(f(E.params));const R=ta(o,P({},m,{hash:Kr(D),path:E.path})),O=r.createHref(R);return process.env.NODE_ENV!=="production"&&(O.startsWith("//")?S(`Location "${m}" resolved to "${O}". A resolved location cannot start with multiple slashes.`):E.matched.length||S(`No match found for location with path "${m.path!=null?m.path:m}"`)),P({fullPath:R,hash:D,query:o===Tn?ja(m.query):m.query||{}},E,{redirectedFrom:void 0,href:O})}function N(m){return typeof m=="string"?ft(n,m,l.value.path):P({},m)}function I(m,b){if(d!==m)return ye(8,{from:b,to:m})}function B(m){return k(m)}function U(m){return B(P(N(m),{replace:!0}))}function K(m){const b=m.matched[m.matched.length-1];if(b&&b.redirect){const{redirect:w}=b;let E=typeof w=="function"?w(m):w;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=N(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&E.path==null&&!("name"in E))throw S(`Invalid redirect found:
33
39
  ${JSON.stringify(E,null,2)}
34
- when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return x({query:m.query,hash:m.hash,params:"path"in E?{}:m.params},E)}}function N(m,v){const w=d=S(m),E=l.value,$=m.state,T=m.force,C=m.replace===!0,O=K(w);if(O)return N(x(I(O),{state:typeof O=="object"?x({},$,O.state):$,force:T,replace:C}),v||w);const D=w;D.redirectedFrom=v;let fe;return!T&&ln(o,E,w)&&(fe=ge(16,{to:D,from:E}),Ao(E,E,!0,!1)),(fe?Promise.resolve(fe):k(D,E)).catch(H=>ee(H)?ee(H,2)?H:Bt(H):U(H,D,E)).then(H=>{if(H){if(ee(H,2))return process.env.NODE_ENV!=="production"&&ln(o,S(H.to),D)&&v&&(v._count=v._count?v._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${D.fullPath}". Aborting to avoid a Stack Overflow.
35
- 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"))):N(x({replace:C},I(H.to),{state:typeof H.to=="object"?x({},$,H.to.state):$,force:T}),v||D)}else H=R(D,E,!0,C,$);return _(D,E,H),H})}function Ro(m,v){const w=A(m,v);return w?Promise.reject(w):Promise.resolve()}function J(m){const v=Je.values().next().value;return v&&typeof v.runWithContext=="function"?v.runWithContext(m):m()}function k(m,v){let w;const[E,$,T]=zs(m,v);w=gt(E.reverse(),"beforeRouteLeave",m,v);for(const O of E)O.leaveGuards.forEach(D=>{w.push(ae(D,m,v))});const C=Ro.bind(null,m,v);return w.push(C),we(w).then(()=>{w=[];for(const O of i.list())w.push(ae(O,m,v));return w.push(C),we(w)}).then(()=>{w=gt($,"beforeRouteUpdate",m,v);for(const O of $)O.updateGuards.forEach(D=>{w.push(ae(D,m,v))});return w.push(C),we(w)}).then(()=>{w=[];for(const O of T)if(O.beforeEnter)if(W(O.beforeEnter))for(const D of O.beforeEnter)w.push(ae(D,m,v));else w.push(ae(O.beforeEnter,m,v));return w.push(C),we(w)}).then(()=>(m.matched.forEach(O=>O.enterCallbacks={}),w=gt(T,"beforeRouteEnter",m,v),w.push(C),we(w))).then(()=>{w=[];for(const O of c.list())w.push(ae(O,m,v));return w.push(C),we(w)}).catch(O=>ee(O,8)?O:Promise.reject(O))}function _(m,v,w){a.list().forEach(E=>J(()=>E(m,v,w)))}function R(m,v,w,E,$){const T=A(m,v);if(T)return T;const C=v===ie,O=Z?history.state:{};w&&(E||C?r.replace(m.fullPath,x({scroll:C&&O&&O.scroll},$)):r.push(m.fullPath,$)),l.value=m,Ao(m,v,w,C),Bt()}let V;function de(){V||(V=r.listen((m,v,w)=>{const E=S(m),$=K(E);if($){N(x($,{replace:!0}),E).catch(ke);return}d=E;const T=l.value;Z&&jr(fn(T.fullPath,w.delta),je()),k(E,T).catch(C=>ee(C,12)?C:ee(C,2)?(N(C.to,E).then(O=>{ee(O,20)&&!w.delta&&w.type===Se.pop&&r.go(-1,!1)}).catch(ke),Promise.reject()):(w.delta&&r.go(-w.delta,!1),U(C,E,T))).then(C=>{C=C||R(E,T,!1),C&&(w.delta&&!ee(C,8)?r.go(-w.delta,!1):w.type===Se.pop&&ee(C,20)&&r.go(-1,!1)),_(E,T,C)}).catch(ke)}))}let Re=Oe(),qe=Oe(),Q;function U(m,v,w){Bt(m);const E=qe.list();return E.length?E.forEach($=>$(m,v,w)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function za(){return Q&&l.value!==ie?Promise.resolve():new Promise((m,v)=>{Re.add([m,v])})}function Bt(m){return Q||(Q=!m,de(),Re.list().forEach(([v,w])=>m?w(m):v()),Re.reset()),m}function Ao(m,v,w,E){const{scrollBehavior:$}=e;if(!Z||!$)return Promise.resolve();const T=!w&&Lr(fn(m.fullPath,0))||(E||!w)&&history.state&&history.state.scroll||null;return s.nextTick().then(()=>$(m,v,T)).then(C=>C&&Mr(C)).catch(C=>U(C,m,v))}const Mt=m=>r.go(m);let jt;const Je=new Set,Ga={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,hasRoute:b,getRoutes:y,resolve:S,options:e,push:j,replace:G,go:Mt,back:()=>Mt(-1),forward:()=>Mt(1),beforeEach:i.add,beforeResolve:c.add,afterEach:a.add,onError:qe.add,isReady:za,install(m){const v=this;m.component("RouterLink",Ps),m.component("RouterView",As),m.config.globalProperties.$router=v,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>s.unref(l)}),Z&&!jt&&l.value===ie&&(jt=!0,j(r.location).catch($=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",$)}));const w={};for(const $ in ie)Object.defineProperty(w,$,{get:()=>l.value[$],enumerable:!0});m.provide(ht,v),m.provide(xn,s.shallowReactive(w)),m.provide(mt,l);const E=m.unmount;Je.add(m),m.unmount=function(){Je.delete(m),Je.size<1&&(d=ie,V&&V(),V=null,l.value=ie,jt=!1,Q=!1),E()},process.env.NODE_ENV!=="production"&&Z&&Vs(m,v,t)}};function we(m){return m.reduce((v,w)=>v.then(()=>J(w)),Promise.resolve())}return Ga}function zs(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let c=0;c<i;c++){const a=t.matched[c];a&&(e.matched.find(d=>se(d,a))?o.push(a):n.push(a));const l=e.matched[c];l&&(t.matched.find(d=>se(d,l))||r.push(l))}return[n,o,r]}Fs({history:Fr(),routes:[]});function Gs(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var ue=Promise.resolve();function Hn(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Ks(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function wt(){return Math.random().toString(36).substring(2)}var Wn=0,vt=0;function Ue(){var e=new Date().getTime();return e===Wn?(vt++,e*1e3+vt):(Wn=e,vt=0,e*1e3)}var qs=Ue,Js="native";function Ys(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Qs(e){e.bc.close(),e.subFns=[]}function Xs(e,t){try{return e.bc.postMessage(t,!1),ue}catch(n){return Promise.reject(n)}}function Zs(e,t){e.messagesCallback=t}function ei(){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 ti(){return 150}var ni={create:Ys,close:Qs,onMessage:Zs,postMessage:Xs,canBeUsed:ei,type:Js,averageResponseTime:ti,microSeconds:qs},Fn=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,zn()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,oi(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function oi(e){for(var t=zn()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var r=o[0],i=o[1];if(i<t)e.map.delete(r);else return}}function zn(){return new Date().getTime()}function _t(){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 ri=Ue,si="pubkey.broadcast-channel-0-",te="messages",He={durability:"relaxed"},ii="idb";function Gn(){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 bt(e){e.commit&&e.commit()}function ai(e){var t=Gn(),n=si+e,o=t.open(n);return o.onupgradeneeded=function(r){var i=r.target.result;i.createObjectStore(te,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,i){o.onerror=function(c){return i(c)},o.onsuccess=function(){r(o.result)}})}function ci(e,t,n){var o=new Date().getTime(),r={uuid:t,time:o,data:n},i=e.transaction([te],"readwrite",He);return new Promise(function(c,a){i.oncomplete=function(){return c()},i.onerror=function(d){return a(d)};var l=i.objectStore(te);l.add(r),bt(i)})}function li(e,t){var n=e.transaction(te,"readonly",He),o=n.objectStore(te),r=[],i=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var c=o.getAll(i);return new Promise(function(l,d){c.onerror=function(u){return d(u)},c.onsuccess=function(u){l(u.target.result)}})}function a(){try{return i=IDBKeyRange.bound(t+1,1/0),o.openCursor(i)}catch{return o.openCursor()}}return new Promise(function(l,d){var u=a();u.onerror=function(f){return d(f)},u.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(r.push(p.value),p.continue()):(bt(n),l(r))}})}function ui(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(te,"readwrite",He),o=n.objectStore(te);return Promise.all(t.map(function(r){var i=o.delete(r);return new Promise(function(c){i.onsuccess=function(){return c()}})}))}function di(e,t){var n=new Date().getTime()-t,o=e.transaction(te,"readonly",He),r=o.objectStore(te),i=[];return new Promise(function(c){r.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var d=l.value;d.time<n?(i.push(d),l.continue()):(bt(o),c(i))}else c(i)}})}function fi(e){return di(e.db,e.options.idb.ttl).then(function(t){return ui(e,t.map(function(n){return n.id}))})}function pi(e,t){return t=_t(t),ai(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:wt(),eMIs:new Fn(t.idb.ttl*2),writeBlockPromise:ue,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},Kn(o),o})}function Kn(e){e.closed||qn(e).then(function(){return Hn(e.options.idb.fallbackInterval)}).then(function(){return Kn(e)})}function hi(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function qn(e){return e.closed||!e.messagesCallback?ue:li(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 hi(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),ue})}function mi(e){e.closed=!0,e.db.close()}function gi(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return ci(e.db,e.uuid,t)}).then(function(){Ks(0,10)===0&&fi(e)}),e.writeBlockPromise}function yi(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,qn(e)}function wi(){return!!Gn()}function vi(e){return e.idb.fallbackInterval*2}var _i={create:pi,close:mi,onMessage:yi,postMessage:gi,canBeUsed:wi,type:ii,averageResponseTime:vi,microSeconds:ri},bi=Ue,Ei="pubkey.broadcastChannel-",ki="localstorage";function Jn(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Yn(e){return Ei+e}function Si(e,t){return new Promise(function(n){Hn().then(function(){var o=Yn(e.channelName),r={token:wt(),time:new Date().getTime(),data:t,uuid:e.uuid},i=JSON.stringify(r);Jn().setItem(o,i);var c=document.createEvent("Event");c.initEvent("storage",!0,!0),c.key=o,c.newValue=i,window.dispatchEvent(c),n()})})}function Ni(e,t){var n=Yn(e),o=function(i){i.key===n&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",o),o}function Ii(e){window.removeEventListener("storage",e)}function Oi(e,t){if(t=_t(t),!Qn())throw new Error("BroadcastChannel: localstorage cannot be used");var n=wt(),o=new Fn(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ni(e,function(i){r.messagesCallback&&i.uuid!==n&&(!i.token||o.has(i.token)||i.data.time&&i.data.time<r.messagesCallbackTime||(o.add(i.token),r.messagesCallback(i.data)))}),r}function Ci(e){Ii(e.listener)}function Pi(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function Qn(){var e=Jn();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function xi(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var $i={create:Oi,close:Ci,onMessage:Pi,postMessage:Si,canBeUsed:Qn,type:ki,averageResponseTime:xi,microSeconds:bi},Ri=Ue,Ai="simulate",Et=new Set;function Di(e){var t={name:e,messagesCallback:null};return Et.add(t),t}function Ti(e){Et.delete(e)}function Vi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Et);o.filter(function(r){return r.name===e.name}).filter(function(r){return r!==e}).filter(function(r){return!!r.messagesCallback}).forEach(function(r){return r.messagesCallback(t)}),n()},5)})}function Bi(e,t){e.messagesCallback=t}function Mi(){return!0}function ji(){return 5}var Li={create:Di,close:Ti,onMessage:Bi,postMessage:Vi,canBeUsed:Mi,type:Ai,averageResponseTime:ji,microSeconds:Ri},Xn=[ni,_i,$i];function Ui(e){var t=[].concat(e.methods,Xn).filter(Boolean);if(e.type){if(e.type==="simulate")return Li;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(Xn.map(function(r){return r.type})))}var Zn=new Set,Hi=0,kt=function(t,n){this.id=Hi++,Zn.add(this),this.name=t,this.options=_t(n),this.method=Ui(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Wi(this)};kt._pubkey=!0,kt.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return eo(this,"message",t)},postInternal:function(t){return eo(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};oo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,no(this,"message",n)):this._onML=null},addEventListener:function(t,n){var o=this.method.microSeconds(),r={time:o,fn:n};no(this,t,r)},removeEventListener:function(t,n){var o=this._addEL[t].find(function(r){return r.fn===n});oo(this,t,o)},close:function(){var t=this;if(!this.closed){Zn.delete(this),this.closed=!0;var n=this._prepP?this._prepP:ue;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(o){return o()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function eo(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},i=e._prepP?e._prepP:ue;return i.then(function(){var c=e.method.postMessage(e._state,r);return e._uMP.add(c),c.catch().then(function(){return e._uMP.delete(c)}),c})}function Wi(e){var t=e.method.create(e.name,e.options);Gs(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function to(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function no(e,t,n){e._addEL[t].push(n),Fi(e)}function oo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),zi(e)}function Fi(e){if(!e._iL&&to(e)){var t=function(r){e._addEL[r.type].forEach(function(i){var c=1e5,a=i.time-c;r.time>=a&&i.fn(r.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 zi(e){if(e._iL&&!to(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}class St extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}}function ro(e){return Object(e)!==e}const Gi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ki(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===Gi}function qi(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ji(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
36
- `: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 ye(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const i=e[r],c=Ji(i);c&&(t+=e.slice(n,r)+c,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}const Nt=-1,so=-2,io=-3,ao=-4,co=-5,It=-6;function lo(e,t){return Yi(JSON.parse(e),t)}function Yi(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function r(i,c=!1){if(i===Nt)return;if(i===io)return NaN;if(i===ao)return 1/0;if(i===co)return-1/0;if(i===It)return-0;if(c)throw new Error("Invalid input");if(i in o)return o[i];const a=n[i];if(!a||typeof a!="object")o[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],d=t==null?void 0:t[l];if(d)return o[i]=d(r(a[1]));switch(l){case"Date":o[i]=new Date(a[1]);break;case"Set":const u=new Set;o[i]=u;for(let h=1;h<a.length;h+=1)u.add(r(a[h]));break;case"Map":const f=new Map;o[i]=f;for(let h=1;h<a.length;h+=2)f.set(r(a[h]),r(a[h+1]));break;case"RegExp":o[i]=new RegExp(a[1],a[2]);break;case"Object":o[i]=Object(a[1]);break;case"BigInt":o[i]=BigInt(a[1]);break;case"null":const p=Object.create(null);o[i]=p;for(let h=1;h<a.length;h+=2)p[a[h]]=r(a[h+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);o[i]=l;for(let d=0;d<a.length;d+=1){const u=a[d];u!==so&&(l[d]=r(u))}}else{const l={};o[i]=l;for(const d in a){const u=a[d];l[d]=r(u)}}return o[i]}return r(0)}function uo(e,t){const n=[],o=new Map,r=[];for(const d in t)r.push({key:d,fn:t[d]});const i=[];let c=0;function a(d){if(typeof d=="function")throw new St("Cannot stringify a function",i);if(o.has(d))return o.get(d);if(d===void 0)return Nt;if(Number.isNaN(d))return io;if(d===1/0)return ao;if(d===-1/0)return co;if(d===0&&1/d<0)return It;const u=c++;o.set(d,u);for(const{key:p,fn:h}of r){const g=h(d);if(g)return n[u]=`["${p}",${a(g)}]`,u}let f="";if(ro(d))f=Ot(d);else switch(qi(d)){case"Number":case"String":case"Boolean":f=`["Object",${Ot(d)}]`;break;case"BigInt":f=`["BigInt",${d}]`;break;case"Date":f=`["Date","${d.toISOString()}"]`;break;case"RegExp":const{source:h,flags:g}=d;f=g?`["RegExp",${ye(h)},"${g}"]`:`["RegExp",${ye(h)}]`;break;case"Array":f="[";for(let y=0;y<d.length;y+=1)y>0&&(f+=","),y in d?(i.push(`[${y}]`),f+=a(d[y]),i.pop()):f+=so;f+="]";break;case"Set":f='["Set"';for(const y of d)f+=`,${a(y)}`;f+="]";break;case"Map":f='["Map"';for(const[y,b]of d)i.push(`.get(${ro(y)?Ot(y):"..."})`),f+=`,${a(y)},${a(b)}`;f+="]";break;default:if(!Ki(d))throw new St("Cannot stringify arbitrary non-POJOs",i);if(Object.getOwnPropertySymbols(d).length>0)throw new St("Cannot stringify POJOs with symbolic keys",i);if(Object.getPrototypeOf(d)===null){f='["null"';for(const y in d)i.push(`.${y}`),f+=`,${ye(y)},${a(d[y])}`,i.pop();f+="]"}else{f="{";let y=!1;for(const b in d)y&&(f+=","),y=!0,i.push(`.${b}`),f+=`${ye(b)}:${a(d[b])}`,i.pop();f+="}"}}return n[u]=f,u}const l=a(e);return l<0?`${l}`:`[${n.join(",")}]`}function Ot(e){const t=typeof e;return t==="string"?ye(e):e instanceof String?ye(e.toString()):e===void 0?Nt.toString():e===0&&1/e<0?It.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Qi(e,t,{initialize:n,type:o}){let r=`${t.$id}-${e.toString()}`,i=new kt(r,{type:o}),c=!1,a=0;s.watch(()=>t[e],u=>{c||(a=Date.now(),i.postMessage({timestamp:a,state:lo(uo(u))})),c=!1},{deep:!0}),i.onmessage=u=>{if(u===void 0){i.postMessage({timestamp:a,state:lo(uo(t[e]))});return}u.timestamp<=a||(c=!0,a=u.timestamp,t[e]=u.state)};let l=()=>i.postMessage(void 0),d=()=>i.close();return n&&l(),{sync:l,unshare:d}}var Xi=(e,t)=>Object.keys(t).includes(e),Zi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:r})=>{var i,c;let a=((i=r==null?void 0:r.share)==null?void 0:i.enable)??t,l=((c=r==null?void 0:r.share)==null?void 0:c.omit)??[];!a||Object.keys(o.$state).forEach(d=>{var u;l.includes(d)||!Xi(d,o.$state)||Qi(d,o,{initialize:((u=r==null?void 0:r.share)==null?void 0:u.initialize)??e,type:n})})};Er().use(Zi({enable:!0,initialize:!0}));const fo=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=an(),o=s.ref([]);return s.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((i,c)=>{const l=t.value.store.record[i.fieldname];r[c].value=l}),o.value=r}}),(r,i)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Qo),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c)},null,8,["modelValue"])):s.createCommentVNode("",!0)}});function ea(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function po(e){return typeof e=="function"?e():s.unref(e)}const ta=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const na=Object.prototype.toString,oa=e=>na.call(e)==="[object Object]",ra=()=>{};function We(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ct=ta?window:void 0;function Pt(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Ct):[t,n,o,r]=e,!t)return ra;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],c=()=>{i.forEach(u=>u()),i.length=0},a=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),l=s.watch(()=>[We(t),po(r)],([u,f])=>{if(c(),!u)return;const p=oa(f)?{...f}:f;i.push(...n.flatMap(h=>o.map(g=>a(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return ea(d),d}function sa(e={}){var t;const{window:n=Ct,deep:o=!0}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var l;let d=r==null?void 0:r.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(l=d==null?void 0:d.shadowRoot)==null?void 0:l.activeElement;return d},c=s.ref(),a=()=>{c.value=i()};return n&&(Pt(n,"blur",l=>{l.relatedTarget===null&&a()},!0),Pt(n,"focus",a,!0)),a(),c}function ia(e,t={}){const n=sa(t),o=s.computed(()=>We(e));return{focused:s.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function aa(e,{window:t=Ct,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const i=t.document,c=We(e);if(!c)o.value=!1;else{const a=c.getBoundingClientRect();o.value=a.top<=(t.innerHeight||i.documentElement.clientHeight)&&a.left<=(t.innerWidth||i.documentElement.clientWidth)&&a.bottom>=0&&a.right>=0}};return s.watch(()=>We(e),()=>r(),{immediate:!0,flush:"post"}),t&&Pt(n||t,"scroll",r,{capture:!1,passive:!0}),o}const ne=e=>{let t=aa(e).value;return t=t&&e.offsetHeight>0,t},oe=e=>e.tabIndex>=0,ho=e=>{const t=e.target;return xt(t)},xt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?xt(n):n},ca=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.firstElementChild.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.firstElementChild;i&&(o=i)}}return o&&(!oe(o)||!ne(o))?$t(o):o},mo=e=>{const t=e.target;return $t(t)},$t=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?$t(n):n},la=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.lastElementChild.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.lastElementChild;i&&(o=i)}}return o&&(!oe(o)||!ne(o))?xt(o):o},go=e=>{const t=e.target;return Rt(t)},Rt=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&&(!oe(n)||!ne(n))?Rt(n):n},yo=e=>{const t=e.target;return At(t)},At=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&&(!oe(n)||!ne(n))?At(n):n},wo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!oe(t)||!ne(t))?At(t):t},vo=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!oe(t)||!ne(t))?Rt(t):t},Fe=["alt","control","shift","meta"],ua={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Dt={"keydown.up":e=>{const t=ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=mo(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=yo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=ca(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=la(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=wo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=vo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=vo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=mo(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=ho(e);t&&t.focus()}},"keydown.home":e=>{const t=wo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=yo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function _o(e){const t=c=>{let a=null;return c.parent&&(typeof c.parent=="string"?a=document.querySelector(c.parent):c.parent instanceof HTMLElement?a=c.parent:a=c.parent.value),a},n=c=>{const a=t(c);let l=[];if(typeof c.selectors=="string")l=a?Array.from(a.querySelectorAll(c.selectors)):Array.from(document.querySelectorAll(c.selectors));else if(Array.isArray(c.selectors))for(const d of c.selectors)d instanceof HTMLElement?l.push(d):l.push(d.$el);else if(c.selectors instanceof HTMLElement)l.push(c.selectors);else if(Array.isArray(c.selectors.value))for(const d of c.selectors.value)d instanceof HTMLElement?l.push(d):l.push(d.$el);else l.push(c.selectors.value);return l},o=c=>{const a=t(c);let l=[];return c.selectors?l=n(c):a&&(l=Array.from(a.children).filter(d=>oe(d)&&ne(d))),l},r=c=>a=>{const l=ua[a.key]||a.key.toLowerCase();if(Fe.includes(l))return;const d=c.handlers||Dt;for(const u of Object.keys(d)){const[f,...p]=u.split(".");if(f==="keydown"&&p.includes(l)){const h=d[u],g=p.filter(b=>Fe.includes(b)),y=Fe.some(b=>{const S=b.charAt(0).toUpperCase()+b.slice(1);return a.getModifierState(S)});if(g.length>0){if(y){for(const b of Fe)if(p.includes(b)){const S=b.charAt(0).toUpperCase()+b.slice(1);a.getModifierState(S)&&h(a)}}}else y||h(a)}}},i=[];s.onMounted(()=>{for(const c of e){const a=t(c),l=o(c),d=r(c),u=a?[a]:l;for(const f of u){const{focused:p}=ia(s.ref(f)),h=s.watch(p,g=>{g?f.addEventListener("keydown",d):f.removeEventListener("keydown",d)});i.push(h)}}}),s.onBeforeUnmount(()=>{for(const c of i)c()})}const da=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],fa={key:1},pa=s.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0}},setup(e){var t;const n=e,o=s.inject(n.tableid),r=s.ref(null),i=s.ref(""),c=s.ref(!1),a=s.computed(()=>{const y=o.cellData(n.colIndex,n.rowIndex);if(o.columns[n.colIndex].format){const b=o.columns[n.colIndex].format;return typeof b=="function"?b(y):typeof b=="string"?Function(`"use strict";return (${b})`)()(y):y}else return y}),l=y=>{if(o.columns[n.colIndex].mask,o.columns[n.colIndex].modalComponent){const b=r.value.getBoundingClientRect();o.modal.visible=!0,o.modal.colIndex=n.colIndex,o.modal.rowIndex=n.rowIndex,o.modal.parent=r.value,o.modal.top=b.top+b.height,o.modal.left=b.left,o.modal.width=u.value,o.modal.component=o.columns[n.colIndex].modalComponent,o.modal.componentProps=o.columns[n.colIndex].modalComponentProps}};if(n.addNavigation){let y={...Dt,"keydown.f2":l,"keydown.alt.up":l,"keydown.alt.down":l,"keydown.alt.left":l,"keydown.alt.right":l};typeof n.addNavigation=="object"&&(y={...y,...n.addNavigation}),_o([{selectors:r,handlers:y}])}const d=s.computed(()=>o.columns[n.colIndex].align||"center"),u=s.computed(()=>o.columns[n.colIndex].width||"40ch"),f=()=>{r.value&&(i.value=r.value.textContent)},p=()=>{r.value&&r.value.textContent!==i.value&&(i.value=r.value.textContent,r.value.dispatchEvent(new Event("change")),c.value=!0,o.columns[n.colIndex].format||o.setCellData(n.rowIndex,n.colIndex,i.value))},h=(y,b)=>b&&y===0&&b>0?`${b}ch`:"inherit",g={textAlign:d.value,width:u.value,backgroundColor:c.value?"var(--cell-modified-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:h(n.colIndex,(t=o.display[n.rowIndex])==null?void 0:t.indent)};return(y,b)=>(s.openBlock(),s.createElementBlock("td",{ref_key:"cell",ref:r,"data-colindex":y.colIndex,"data-rowindex":y.rowIndex,"data-editable":s.unref(o).columns[y.colIndex].edit,contenteditable:s.unref(o).columns[y.colIndex].edit,tabindex:y.tabIndex,spellcheck:!1,style:g,onFocus:f,onPaste:p,onBlur:p,onInput:p,onClick:l,onMousedown:l,class:"atable__cell"},[s.unref(o).columns[y.colIndex].cellComponent?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(o).columns[y.colIndex].cellComponent),s.mergeProps({key:0,value:a.value},s.unref(o).columns[y.colIndex].cellComponentProps),null,16,["value"])):(s.openBlock(),s.createElementBlock("span",fa,s.toDisplayString(a.value),1))],40,da))}}),ha=["tabindex"],ma={key:0,tabIndex:-1,class:"list-index"},ga=s.defineComponent({__name:"ARow",props:{row:{},rowIndex:{},tableid:{},tabIndex:{default:-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=e,n=s.inject(t.tableid),o=s.ref(null);n.numberedRowWidth.value;const r=s.computed(()=>n.config.view!=="tree"||n.display[t.rowIndex].isRoot||n.display[t.rowIndex].open),i=s.computed(()=>n.config.view!=="tree"?"":n.display[t.rowIndex].isRoot||n.display[t.rowIndex].isParent?n.display[t.rowIndex].childrenOpen?"-":"+":""),c=a=>{n.toggleRowExpand(a)};if(t.addNavigation){let a=Dt;typeof t.addNavigation=="object"&&(a={...a,...t.addNavigation}),_o([{selectors:o,handlers:a}])}return(a,l)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref_key:"rowEl",ref:o,tabindex:a.tabIndex,class:"table-row"},[s.renderSlot(a.$slots,"index",{},()=>[s.unref(n).config.view==="list"?(s.openBlock(),s.createElementBlock("td",ma,s.toDisplayString(a.rowIndex+1),1)):s.unref(n).config.view==="tree"?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:"tree-index",onClick:l[0]||(l[0]=d=>c(a.rowIndex))},s.toDisplayString(i.value),1)):s.createCommentVNode("",!0)]),s.renderSlot(a.$slots,"default")],8,ha)),[[s.vShow,r.value]])}});function bo(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function Pe(e){return typeof e=="function"?e():s.unref(e)}const Eo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ya=Object.prototype.toString,wa=e=>ya.call(e)==="[object Object]",xe=()=>{},Tt=va();function va(){var e,t;return Eo&&((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 ko={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function _a(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:xe}))):s.ref(t)}function $e(e){var t;const n=Pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const So=Eo?window:void 0;function ze(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=So):[t,n,o,r]=e,!t)return xe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],c=()=>{i.forEach(u=>u()),i.length=0},a=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),l=s.watch(()=>[$e(t),Pe(r)],([u,f])=>{if(c(),!u)return;const p=wa(f)?{...f}:f;i.push(...n.flatMap(h=>o.map(g=>a(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return bo(d),d}let No=!1;function Io(e,t,n={}){const{window:o=So,ignore:r=[],capture:i=!0,detectIframe:c=!1}=n;if(!o)return xe;Tt&&!No&&(No=!0,Array.from(o.document.body.children).forEach(u=>u.addEventListener("click",xe)),o.document.documentElement.addEventListener("click",xe));let a=!0;const l=u=>r.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(p=>p===u.target||u.composedPath().includes(p));{const p=$e(f);return p&&(u.target===p||u.composedPath().includes(p))}}),d=[ze(o,"click",u=>{const f=$e(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}t(u)}},{passive:!0,capture:i}),ze(o,"pointerdown",u=>{const f=$e(e);a=!l(u)&&!!(f&&!u.composedPath().includes(f))},{passive:!0}),c&&ze(o,"blur",u=>{setTimeout(()=>{var f;const p=$e(e);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const ba={[ko.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Io(e,t.value,{capture:n});else{const[o,r]=t.value;e.__onClickOutside_stop=Io(e,o,Object.assign({capture:n},r))}},[ko.unmounted](e){e.__onClickOutside_stop()}};function Vt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Oo(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:Oo(n)}}function Ea(e){const t=e||window.event,n=t.target;return Oo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Ge=new WeakMap;function ka(e,t=!1){const n=s.ref(t);let o=null;s.watch(_a(e),c=>{const a=Vt(Pe(c));if(a){const l=a;Ge.get(l)||Ge.set(l,l.style.overflow),n.value&&(l.style.overflow="hidden")}},{immediate:!0});const r=()=>{const c=Vt(Pe(e));!c||n.value||(Tt&&(o=ze(c,"touchmove",a=>{Ea(a)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{var c;const a=Vt(Pe(e));!a||!n.value||(Tt&&(o==null||o()),a.style.overflow=(c=Ge.get(a))!=null?c:"",Ge.delete(a),n.value=!1)};return bo(i),s.computed({get(){return n.value},set(c){c?r():i()}})}function Sa(){let e=!1;const t=s.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=ka(n,o.value);s.watch(t,i=>r.value=i)}}Sa();let Ke;const Na=new Uint8Array(16);function Ia(){if(!Ke&&(Ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ke(Na)}const M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));function Oa(e,t=0){return M[e[t+0]]+M[e[t+1]]+M[e[t+2]]+M[e[t+3]]+"-"+M[e[t+4]]+M[e[t+5]]+"-"+M[e[t+6]]+M[e[t+7]]+"-"+M[e[t+8]]+M[e[t+9]]+"-"+M[e[t+10]]+M[e[t+11]]+M[e[t+12]]+M[e[t+13]]+M[e[t+14]]+M[e[t+15]]}const Ca=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Co={randomUUID:Ca};function Pa(e,t,n){if(Co.randomUUID&&!t&&!e)return Co.randomUUID();e=e||{};const o=e.random||(e.rng||Ia)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=o[r];return t}return Oa(o)}class xa{constructor(t,n,o,r,i,c){this.id=t||Pa(),this.rows=o,this.columns=s.reactive(n),this.config=s.reactive(r),this.table=i||s.reactive(this.createTableObject()),this.display=this.createDisplayObject(c),this.modal=s.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[r,i]of this.rows.entries())t[`${n}:${r}`]=i[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let r=this.rows.length-1;r>=0;r--){const i=this.rows[r];i.parent&&o.add(i.parent),n[r]={childrenOpen:!1,expanded:!1,indent:i.indent||null,isParent:o.has(r),isRoot:i.parent===null||i.parent===void 0,modified:!1,open:i.parent===null||i.parent===void 0,parent:i.parent}}return s.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return s.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const r=this.columns[n];return this.rows[t][r.name]=o,this.table[`${n}:${t}`]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const $a={key:0,id:"resizable"},Ra={class:"atable-header-row",tabindex:"-1"},Aa={key:0,id:"header-index"},Da=s.defineComponent({__name:"ATableHeader",props:{columns:{},config:{},tableid:{}},setup(e){const t=s.inject(e.tableid);t.numberedRowWidth.value;const n=o=>({minWidth:o.width||"40ch",textAlign:o.align||"center",width:t.config.fullWidth?"auto":null});return(o,r)=>o.columns.length?(s.openBlock(),s.createElementBlock("thead",$a,[s.createElementVNode("tr",Ra,[s.unref(t).zeroColumn?(s.openBlock(),s.createElementBlock("th",Aa)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.columns,(i,c)=>(s.openBlock(),s.createElementBlock("th",{key:i.name,tabindex:"-1",style:s.normalizeStyle(n(i))},[s.renderSlot(o.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(i.label||String.fromCharCode(c+97).toUpperCase()),1)])],4))),128))])])):s.createCommentVNode("",!0)}}),Ta=s.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(s.openBlock(),s.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",onClick:t,onInput:t},[s.renderSlot(n.$slots,"default")],544))}}),Va=s.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object},tableid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let r=n.modelValue?n.modelValue:n.rows,i=new xa(n.id,n.columns,r,n.config);s.provide(i.id,i),s.watch(()=>i.rows,a=>{o("update:modelValue",a)},{deep:!0});const c=a=>{var l;a.target instanceof Node&&(l=i.modal.parent)!=null&&l.contains(a.target)||i.modal.visible&&(i.modal.visible=!1)};return window.addEventListener("keydown",async a=>{if(a.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const l=i.modal.parent;l&&(await s.nextTick(),l.focus())}}),(a,l)=>s.withDirectives((s.openBlock(),s.createElementBlock("table",{class:"atable",style:s.normalizeStyle({width:s.unref(i).config.fullWidth?"100%":"auto"})},[s.renderSlot(a.$slots,"header",{data:s.unref(i)},()=>[s.createVNode(Da,{columns:s.unref(i).columns,config:s.unref(i).config,tableid:s.unref(i).id},null,8,["columns","config","tableid"])]),s.createElementVNode("tbody",null,[s.renderSlot(a.$slots,"body",{data:s.unref(i)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).rows,(d,u)=>(s.openBlock(),s.createBlock(ga,{key:d.id,row:d,rowIndex:u,tableid:s.unref(i).id},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).columns,(f,p)=>(s.openBlock(),s.createBlock(pa,{key:f.name,tableid:s.unref(i).id,col:f,spellcheck:"false",rowIndex:u,colIndex:p+(s.unref(i).zeroColumn?0:-1),component:f.cellComponent,style:s.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:s.unref(i).config.fullWidth?"auto":null})},null,8,["tableid","col","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),s.renderSlot(a.$slots,"footer",{data:s.unref(i)}),s.renderSlot(a.$slots,"modal",{data:s.unref(i)},()=>[s.withDirectives(s.createVNode(Ta,{colIndex:s.unref(i).modal.colIndex,rowIndex:s.unref(i).modal.rowIndex,tableid:s.unref(i).id,style:s.normalizeStyle({left:s.unref(i).modal.left+"px",top:s.unref(i).modal.top+"px",maxWidth:s.unref(i).modal.width+"px"})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(i).modal.component),s.mergeProps({key:`${s.unref(i).modal.rowIndex}:${s.unref(i).modal.colIndex}`,colIndex:s.unref(i).modal.colIndex,rowIndex:s.unref(i).modal.rowIndex,tableid:s.unref(i).id},s.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[s.vShow,s.unref(i).modal.visible]])])],4)),[[s.unref(ba),c]])}}),Po=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=an(),o={view:"list"};return(r,i)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Va),{key:0,columns:s.unref(t).schema.schema.toArray(),rows:s.unref(t).store.records,config:o},null,8,["columns","rows"])):s.createCommentVNode("",!0)}}),xo=e=>(s.pushScopeId("data-v-4f7a2d32"),e=e(),s.popScopeId(),e),Ba={class:"tabs"},Ma={tabindex:"0"},ja={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"},La=[xo(()=>s.createElementVNode("g",null,[s.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
40
+ when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return P({query:m.query,hash:m.hash,params:E.path!=null?{}:m.params},E)}}function k(m,b){const w=d=C(m),E=l.value,D=m.state,R=m.force,O=m.replace===!0,x=K(w);if(x)return k(P(N(x),{state:typeof x=="object"?P({},D,x.state):D,force:R,replace:O}),b||w);const A=w;A.redirectedFrom=b;let fe;return!R&&En(o,E,w)&&(fe=ye(16,{to:A,from:E}),Uo(E,E,!0,!1)),(fe?Promise.resolve(fe):v(A,E)).catch(W=>te(W)?te(W,2)?W:zt(W):Ft(W,A,E)).then(W=>{if(W){if(te(W,2))return process.env.NODE_ENV!=="production"&&En(o,C(W.to),A)&&b&&(b._count=b._count?b._count+1:1)>30?(S(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${A.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"))):k(P({replace:O},N(W.to),{state:typeof W.to=="object"?P({},D,W.to.state):D,force:R}),b||A)}else W=F(A,E,!0,O,D);return V(A,E,W),W})}function X(m,b){const w=I(m,b);return w?Promise.reject(w):Promise.resolve()}function _(m){const b=Qe.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[E,D,R]=as(m,b);w=bt(E.reverse(),"beforeRouteLeave",m,b);for(const x of E)x.leaveGuards.forEach(A=>{w.push(ce(A,m,b))});const O=X.bind(null,m,b);return w.push(O),ve(w).then(()=>{w=[];for(const x of s.list())w.push(ce(x,m,b));return w.push(O),ve(w)}).then(()=>{w=bt(D,"beforeRouteUpdate",m,b);for(const x of D)x.updateGuards.forEach(A=>{w.push(ce(A,m,b))});return w.push(O),ve(w)}).then(()=>{w=[];for(const x of R)if(x.beforeEnter)if(z(x.beforeEnter))for(const A of x.beforeEnter)w.push(ce(A,m,b));else w.push(ce(x.beforeEnter,m,b));return w.push(O),ve(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=bt(R,"beforeRouteEnter",m,b,_),w.push(O),ve(w))).then(()=>{w=[];for(const x of c.list())w.push(ce(x,m,b));return w.push(O),ve(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function V(m,b,w){i.list().forEach(E=>_(()=>E(m,b,w)))}function F(m,b,w,E,D){const R=I(m,b);if(R)return R;const O=b===ie,x=ee?history.state:{};w&&(E||O?r.replace(m.fullPath,P({scroll:O&&x&&x.scroll},D)):r.push(m.fullPath,D)),l.value=m,Uo(m,b,w,O),zt()}let Q;function Wt(){Q||(Q=r.listen((m,b,w)=>{const E=C(m),D=K(E);if(D){k(P(D,{replace:!0}),E).catch(Se);return}d=E;const R=l.value;ee&&la(Sn(R.fullPath,w.delta),Ue()),v(E,R).catch(O=>te(O,12)?O:te(O,2)?(k(O.to,E).then(x=>{te(x,20)&&!w.delta&&w.type===xe.pop&&r.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&r.go(-w.delta,!1),Ft(O,E,R))).then(O=>{O=O||F(E,R,!1),O&&(w.delta&&!te(O,8)?r.go(-w.delta,!1):w.type===xe.pop&&te(O,20)&&r.go(-1,!1)),V(E,R,O)}).catch(Se)}))}let Ae=Ne(),le=Ne(),L;function Ft(m,b,w){zt(m);const E=le.list();return E.length?E.forEach(D=>D(m,b,w)):(process.env.NODE_ENV!=="production"&&S("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function uc(){return L&&l.value!==ie?Promise.resolve():new Promise((m,b)=>{Ae.add([m,b])})}function zt(m){return L||(L=!m,Wt(),Ae.list().forEach(([b,w])=>m?w(m):b()),Ae.reset()),m}function Uo(m,b,w,E){const{scrollBehavior:D}=e;if(!ee||!D)return Promise.resolve();const R=!w&&ua(Sn(m.fullPath,0))||(E||!w)&&history.state&&history.state.scroll||null;return a.nextTick().then(()=>D(m,b,R)).then(O=>O&&ca(O)).catch(O=>Ft(O,m,b))}const qt=m=>r.go(m);let Gt;const Qe=new Set,dc={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:y,resolve:C,options:e,push:B,replace:U,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:s.add,beforeResolve:c.add,afterEach:i.add,onError:le.add,isReady:uc,install(m){const b=this;m.component("RouterLink",Ua),m.component("RouterView",qa),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>a.unref(l)}),ee&&!Gt&&l.value===ie&&(Gt=!0,B(r.location).catch(D=>{process.env.NODE_ENV!=="production"&&S("Unexpected error when starting the router:",D)}));const w={};for(const D in ie)Object.defineProperty(w,D,{get:()=>l.value[D],enumerable:!0});m.provide(yt,b),m.provide(Ln,a.shallowReactive(w)),m.provide(wt,l);const E=m.unmount;Qe.add(m),m.unmount=function(){Qe.delete(m),Qe.size<1&&(d=ie,Q&&Q(),Q=null,l.value=ie,Gt=!1,L=!1),E()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function ve(m){return m.reduce((b,w)=>b.then(()=>_(w)),Promise.resolve())}return dc}function as(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let c=0;c<s;c++){const i=t.matched[c];i&&(e.matched.find(d=>se(d,i))?o.push(i):n.push(i));const l=e.matched[c];l&&(t.matched.find(d=>se(d,l))||r.push(l))}return[n,o,r]}rs({history:ha(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function Yn(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function is(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function _t(){return Math.random().toString(36).substring(2)}var Xn=0,Et=0;function ze(){var e=new Date().getTime();return e===Xn?(Et++,e*1e3+Et):(Xn=e,Et=0,e*1e3)}var cs=ze,ls="native";function us(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ds(e){e.bc.close(),e.subFns=[]}function ps(e,t){try{return e.bc.postMessage(t,!1),we}catch(n){return Promise.reject(n)}}function fs(e,t){e.messagesCallback=t}function hs(){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 ms(){return 150}var gs={create:us,close:ds,onMessage:fs,postMessage:ps,canBeUsed:hs,type:ls,averageResponseTime:ms,microSeconds:cs},Zn=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,eo()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ys(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ys(e){for(var t=eo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var r=o[0],s=o[1];if(s<t)e.map.delete(r);else return}}function eo(){return new Date().getTime()}function kt(){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 ws=ze,bs="pubkey.broadcast-channel-0-",ne="messages",qe={durability:"relaxed"},vs="idb";function to(){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 $t(e){e.commit&&e.commit()}function _s(e){var t=to(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(r){var s=r.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,s){o.onerror=function(c){return s(c)},o.onsuccess=function(){r(o.result)}})}function Es(e,t,n){var o=new Date().getTime(),r={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",qe);return new Promise(function(c,i){s.oncomplete=function(){return c()},s.onerror=function(d){return i(d)};var l=s.objectStore(ne);l.add(r),$t(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",qe),o=n.objectStore(ne),r=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var c=o.getAll(s);return new Promise(function(l,d){c.onerror=function(p){return d(p)},c.onsuccess=function(p){l(p.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(l,d){var p=i();p.onerror=function(u){return d(u)},p.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(r.push(f.value),f.continue()):($t(n),l(r))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",qe),o=n.objectStore(ne);return Promise.all(t.map(function(r){var s=o.delete(r);return new Promise(function(c){s.onsuccess=function(){return c()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",qe),r=o.objectStore(ne),s=[];return new Promise(function(c){r.openCursor().onsuccess=function(i){var l=i.target.result;if(l){var d=l.value;d.time<n?(s.push(d),l.continue()):($t(o),c(s))}else c(s)}})}function xs(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Os(e,t){return t=kt(t),_s(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:_t(),eMIs:new Zn(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},no(o),o})}function no(e){e.closed||oo(e).then(function(){return Yn(e.options.idb.fallbackInterval)}).then(function(){return no(e)})}function Ns(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function oo(e){return e.closed||!e.messagesCallback?we:ks(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 Ns(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),we})}function Cs(e){e.closed=!0,e.db.close()}function Is(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return Es(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&xs(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,oo(e)}function Ds(){return!!to()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Os,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Rs=ze,js="pubkey.broadcastChannel-",Ts="localstorage";function ro(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function ao(e){return js+e}function Bs(e,t){return new Promise(function(n){Yn().then(function(){var o=ao(e.channelName),r={token:_t(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(r);ro().setItem(o,s);var c=document.createEvent("Event");c.initEvent("storage",!0,!0),c.key=o,c.newValue=s,window.dispatchEvent(c),n()})})}function Ls(e,t){var n=ao(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Us(e,t){if(t=kt(t),!so())throw new Error("BroadcastChannel: localstorage cannot be used");var n=_t(),o=new Zn(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ls(e,function(s){r.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<r.messagesCallbackTime||(o.add(s.token),r.messagesCallback(s.data)))}),r}function Ws(e){Ms(e.listener)}function Fs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function so(){var e=ro();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function zs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var qs={create:Us,close:Ws,onMessage:Fs,postMessage:Bs,canBeUsed:so,type:Ts,averageResponseTime:zs,microSeconds:Rs},Gs=ze,Hs="simulate",St=new Set;function Js(e){var t={name:e,messagesCallback:null};return St.add(t),t}function Ks(e){St.delete(e)}function Qs(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(St);o.filter(function(r){return r.name===e.name}).filter(function(r){return r!==e}).filter(function(r){return!!r.messagesCallback}).forEach(function(r){return r.messagesCallback(t)}),n()},5)})}function Ys(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Ys,postMessage:Qs,canBeUsed:Xs,type:Hs,averageResponseTime:Zs,microSeconds:Gs},io=[gs,As,qs];function ti(e){var t=[].concat(e.methods,io).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(io.map(function(r){return r.type})))}var co=new Set,ni=0,xt=function(e,t){this.id=ni++,co.add(this),this.name=e,this.options=kt(t),this.method=ti(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oi(this)};xt._pubkey=!0,xt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return lo(this,"message",e)},postInternal:function(e){return lo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};fo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,po(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};po(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});fo(this,e,n)},close:function(){var e=this;if(!this.closed){co.delete(this),this.closed=!0;var t=this._prepP?this._prepP:we;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 lo(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var c=e.method.postMessage(e._state,r);return e._uMP.add(c),c.catch().then(function(){return e._uMP.delete(c)}),c})}function oi(e){var t=e.method.create(e.name,e.options);ss(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function uo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function po(e,t,n){e._addEL[t].push(n),ri(e)}function fo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&uo(e)){var t=function(o){e._addEL[o.type].forEach(function(r){var s=1e5,c=r.time-s;o.time>=c&&r.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 ai(e){if(e._iL&&!uo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ot=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function ho(e){return Object(e)!==e}const si=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===si}function ci(e){return Object.prototype.toString.call(e).slice(8,-1)}function li(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 be(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const s=e[r],c=li(s);c&&(t+=e.slice(n,r)+c,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}const Nt=-1,mo=-2,go=-3,yo=-4,wo=-5,Ct=-6;function bo(e,t){return ui(JSON.parse(e),t)}function ui(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function r(s,c=!1){if(s===Nt)return;if(s===go)return NaN;if(s===yo)return 1/0;if(s===wo)return-1/0;if(s===Ct)return-0;if(c)throw new Error("Invalid input");if(s in o)return o[s];const i=n[s];if(!i||typeof i!="object")o[s]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],d=t==null?void 0:t[l];if(d)return o[s]=d(r(i[1]));switch(l){case"Date":o[s]=new Date(i[1]);break;case"Set":const p=new Set;o[s]=p;for(let h=1;h<i.length;h+=1)p.add(r(i[h]));break;case"Map":const u=new Map;o[s]=u;for(let h=1;h<i.length;h+=2)u.set(r(i[h]),r(i[h+1]));break;case"RegExp":o[s]=new RegExp(i[1],i[2]);break;case"Object":o[s]=Object(i[1]);break;case"BigInt":o[s]=BigInt(i[1]);break;case"null":const f=Object.create(null);o[s]=f;for(let h=1;h<i.length;h+=2)f[i[h]]=r(i[h+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(i.length);o[s]=l;for(let d=0;d<i.length;d+=1){const p=i[d];p!==mo&&(l[d]=r(p))}}else{const l={};o[s]=l;for(const d in i){const p=i[d];l[d]=r(p)}}return o[s]}return r(0)}function vo(e,t){const n=[],o=new Map,r=[];for(const d in t)r.push({key:d,fn:t[d]});const s=[];let c=0;function i(d){if(typeof d=="function")throw new Ot("Cannot stringify a function",s);if(o.has(d))return o.get(d);if(d===void 0)return Nt;if(Number.isNaN(d))return go;if(d===1/0)return yo;if(d===-1/0)return wo;if(d===0&&1/d<0)return Ct;const p=c++;o.set(d,p);for(const{key:f,fn:h}of r){const g=h(d);if(g)return n[p]=`["${f}",${i(g)}]`,p}let u="";if(ho(d))u=It(d);else switch(ci(d)){case"Number":case"String":case"Boolean":u=`["Object",${It(d)}]`;break;case"BigInt":u=`["BigInt",${d}]`;break;case"Date":u=`["Date","${d.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=d;u=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":u="[";for(let g=0;g<d.length;g+=1)g>0&&(u+=","),g in d?(s.push(`[${g}]`),u+=i(d[g]),s.pop()):u+=mo;u+="]";break;case"Set":u='["Set"';for(const g of d)u+=`,${i(g)}`;u+="]";break;case"Map":u='["Map"';for(const[g,y]of d)s.push(`.get(${ho(g)?It(g):"..."})`),u+=`,${i(g)},${i(y)}`;u+="]";break;default:if(!ii(d))throw new Ot("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(d).length>0)throw new Ot("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(d)===null){u='["null"';for(const g in d)s.push(`.${g}`),u+=`,${be(g)},${i(d[g])}`,s.pop();u+="]"}else{u="{";let g=!1;for(const y in d)g&&(u+=","),g=!0,s.push(`.${y}`),u+=`${be(y)}:${i(d[y])}`,s.pop();u+="}"}}return n[p]=u,p}const l=i(e);return l<0?`${l}`:`[${n.join(",")}]`}function It(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?Nt.toString():e===0&&1/e<0?Ct.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let r=`${t.$id}-${e.toString()}`,s=new xt(r,{type:o}),c=!1,i=0;a.watch(()=>t[e],p=>{c||(i=Date.now(),s.postMessage({timestamp:i,state:bo(vo(p))})),c=!1},{deep:!0}),s.onmessage=p=>{if(p===void 0){s.postMessage({timestamp:i,state:bo(vo(t[e]))});return}p.timestamp<=i||(c=!0,i=p.timestamp,t[e]=p.state)};let l=()=>s.postMessage(void 0),d=()=>s.close();return n&&l(),{sync:l,unshare:d}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:r})=>{var s,c;let i=((s=r==null?void 0:r.share)==null?void 0:s.enable)??t,l=((c=r==null?void 0:r.share)==null?void 0:c.omit)??[];!i||Object.keys(o.$state).forEach(d=>{var p;l.includes(d)||!pi(d,o.$state)||di(d,o,{initialize:((p=r==null?void 0:r.share)==null?void 0:p.initialize)??e,type:n})})};Vr().use(fi({enable:!0,initialize:!0}));const _o=a.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=mn(),o=a.ref([]);return a.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((s,c)=>{const l=t.value.store.record[s.fieldname];r[c].value=l}),o.value=r}}),(r,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.unref(ar),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=c=>o.value=c)},null,8,["modelValue"])):a.createCommentVNode("",!0)}});var hi=Object.defineProperty,mi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t,n)=>mi(e,typeof t!="symbol"?t+"":t,n);function Eo(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Pt(e){return typeof e=="function"?e():a.unref(e)}const gi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yi=e=>e!=null,wi=Object.prototype.toString,bi=e=>wi.call(e)==="[object Object]",vi=()=>{};function Ie(e){var t;const n=Pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ge=gi?window:void 0;function Dt(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Ge):[t,n,o,r]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},i=(p,u,f,h)=>(p.addEventListener(u,f,h),()=>p.removeEventListener(u,f,h)),l=a.watch(()=>[Ie(t),Pt(r)],([p,u])=>{if(c(),!p)return;const f=bi(u)?{...u}:u;s.push(...n.flatMap(h=>o.map(g=>i(p,h,g,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return Eo(d),d}function _i(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function Ei(e){const t=_i();return a.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ge,...r}=n;let s;const c=Ei(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},l=a.computed(()=>{const f=Pt(e),h=(Array.isArray(f)?f:[f]).map(Ie).filter(yi);return new Set(h)}),d=a.watch(()=>l.value,f=>{i(),c.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,r)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),u=()=>{i(),d()};return Eo(u),{isSupported:c,stop:u,takeRecords:p}}function $i(e={}){var t;const{window:n=Ge,deep:o=!0,triggerOnRemoval:r=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,c=()=>{var d;let p=s==null?void 0:s.activeElement;if(o)for(;p!=null&&p.shadowRoot;)p=(d=p==null?void 0:p.shadowRoot)==null?void 0:d.activeElement;return p},i=a.ref(),l=()=>{i.value=c()};return n&&(Dt(n,"blur",d=>{d.relatedTarget===null&&l()},!0),Dt(n,"focus",l,!0)),r&&ki(s,d=>{d.filter(p=>p.removedNodes.length).map(p=>Array.from(p.removedNodes)).flat().forEach(p=>{p===i.value&&l()})},{childList:!0,subtree:!0}),l(),i}function Si(e,t={}){const n=$i(t),o=a.computed(()=>Ie(e));return{focused:a.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function xi(e,{window:t=Ge,scrollTarget:n}={}){const o=a.ref(!1),r=()=>{if(!t)return;const s=t.document,c=Ie(e);if(!c)o.value=!1;else{const i=c.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return a.watch(()=>Ie(e),()=>r(),{immediate:!0,flush:"post"}),t&&Dt(n||t,"scroll",r,{capture:!1,passive:!0}),o}const oe=e=>{let t=xi(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,ko=e=>{const t=e.target;return Vt(t)},Vt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Vt(n):n},Oi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const s=r.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},$o=e=>{const t=e.target;return At(t)},At=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ni=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const s=r.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Vt(o):o},So=e=>{const t=e.target;return Rt(t)},Rt=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&&(!re(n)||!oe(n))?Rt(n):n},xo=e=>{const t=e.target;return jt(t)},jt=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&&(!re(n)||!oe(n))?jt(n):n},Oo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},No=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},He=["alt","control","shift","meta"],Ci={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Tt={"keydown.up":e=>{const t=ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=$o(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=So(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Oi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ni(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=$o(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=ko(e);t&&t.focus()}},"keydown.home":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=So(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Co(e){const t=c=>{let i=null;return c.parent&&(typeof c.parent=="string"?i=document.querySelector(c.parent):c.parent instanceof HTMLElement?i=c.parent:i=c.parent.value),i},n=c=>{const i=t(c);let l=[];if(typeof c.selectors=="string")l=i?Array.from(i.querySelectorAll(c.selectors)):Array.from(document.querySelectorAll(c.selectors));else if(Array.isArray(c.selectors))for(const d of c.selectors)d instanceof HTMLElement?l.push(d):l.push(d.$el);else if(c.selectors instanceof HTMLElement)l.push(c.selectors);else if(Array.isArray(c.selectors.value))for(const d of c.selectors.value)d instanceof HTMLElement?l.push(d):l.push(d.$el);else l.push(c.selectors.value);return l},o=c=>{const i=t(c);let l=[];return c.selectors?l=n(c):i&&(l=Array.from(i.children).filter(d=>re(d)&&oe(d))),l},r=c=>i=>{const l=Ci[i.key]||i.key.toLowerCase();if(He.includes(l))return;const d=c.handlers||Tt;for(const p of Object.keys(d)){const[u,...f]=p.split(".");if(u==="keydown"&&f.includes(l)){const h=d[p],g=f.filter($=>He.includes($)),y=He.some($=>{const C=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(C)});if(g.length>0){if(y){for(const $ of He)if(f.includes($)){const C=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(C)&&h(i)}}}else y||h(i)}}},s=[];a.onMounted(()=>{for(const c of e){const i=t(c),l=o(c),d=r(c),p=i?[i]:l;for(const u of p){const{focused:f}=Si(a.ref(u)),h=a.watch(f,g=>{g?u.addEventListener("keydown",d):u.removeEventListener("keydown",d)});s.push(h)}}}),a.onBeforeUnmount(()=>{for(const c of s)c()})}const Ii=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Pi={key:1},Di=a.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0}},setup(e){var t;const n=e,o=a.inject(n.tableid),r=a.ref(null),s=a.ref(""),c=a.ref(!1),i=a.computed(()=>{const y=o.cellData(n.colIndex,n.rowIndex);if(o.columns[n.colIndex].format){const $=o.columns[n.colIndex].format;return typeof $=="function"?$(y):typeof $=="string"?Function(`"use strict";return (${$})`)()(y):y}else return y}),l=()=>{if(o.columns[n.colIndex].mask,o.columns[n.colIndex].modalComponent){const y=r.value.getBoundingClientRect();o.modal.visible=!0,o.modal.colIndex=n.colIndex,o.modal.rowIndex=n.rowIndex,o.modal.parent=r.value,o.modal.top=y.top+y.height,o.modal.left=y.left,o.modal.width=p.value,o.modal.component=o.columns[n.colIndex].modalComponent,o.modal.componentProps=o.columns[n.colIndex].modalComponentProps}};if(n.addNavigation){let y={...Tt,"keydown.f2":l,"keydown.alt.up":l,"keydown.alt.down":l,"keydown.alt.left":l,"keydown.alt.right":l};typeof n.addNavigation=="object"&&(y={...y,...n.addNavigation}),Co([{selectors:r,handlers:y}])}const d=a.computed(()=>o.columns[n.colIndex].align||"center"),p=a.computed(()=>o.columns[n.colIndex].width||"40ch"),u=()=>{r.value&&(s.value=r.value.textContent)},f=()=>{r.value&&r.value.textContent!==s.value&&(s.value=r.value.textContent,r.value.dispatchEvent(new Event("change")),c.value=!0,o.columns[n.colIndex].format||o.setCellData(n.rowIndex,n.colIndex,s.value))},h=(y,$)=>$&&y===0&&$>0?`${$}ch`:"inherit",g={textAlign:d.value,width:p.value,backgroundColor:c.value?"var(--cell-modified-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:h(n.colIndex,(t=o.display[n.rowIndex])==null?void 0:t.indent)};return(y,$)=>(a.openBlock(),a.createElementBlock("td",{ref_key:"cell",ref:r,"data-colindex":y.colIndex,"data-rowindex":y.rowIndex,"data-editable":a.unref(o).columns[y.colIndex].edit,contenteditable:a.unref(o).columns[y.colIndex].edit,tabindex:y.tabIndex,spellcheck:!1,style:g,onFocus:u,onPaste:f,onBlur:f,onInput:f,onClick:l,onMousedown:l,class:"atable__cell"},[a.unref(o).columns[y.colIndex].cellComponent?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(o).columns[y.colIndex].cellComponent),a.mergeProps({key:0,value:i.value},a.unref(o).columns[y.colIndex].cellComponentProps),null,16,["value"])):(a.openBlock(),a.createElementBlock("span",Pi,a.toDisplayString(i.value),1))],40,Ii))}}),Vi=["tabindex"],Ai={key:0,tabIndex:-1,class:"list-index"},Ri=a.defineComponent({__name:"ARow",props:{row:{},rowIndex:{},tableid:{},tabIndex:{default:-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=e,n=a.inject(t.tableid),o=a.ref(null),r=a.computed(()=>n.config.view!=="tree"||n.display[t.rowIndex].isRoot||n.display[t.rowIndex].open),s=a.computed(()=>n.config.view!=="tree"?"":n.display[t.rowIndex].isRoot||n.display[t.rowIndex].isParent?n.display[t.rowIndex].childrenOpen?"-":"+":""),c=i=>{n.toggleRowExpand(i)};if(t.addNavigation){let i=Tt;typeof t.addNavigation=="object"&&(i={...i,...t.addNavigation}),Co([{selectors:o,handlers:i}])}return(i,l)=>a.withDirectives((a.openBlock(),a.createElementBlock("tr",{ref_key:"rowEl",ref:o,tabindex:i.tabIndex,class:"table-row"},[a.renderSlot(i.$slots,"index",{},()=>[a.unref(n).config.view==="list"?(a.openBlock(),a.createElementBlock("td",Ai,a.toDisplayString(i.rowIndex+1),1)):a.unref(n).config.view==="tree"?(a.openBlock(),a.createElementBlock("td",{key:1,tabIndex:-1,class:"tree-index",onClick:l[0]||(l[0]=d=>c(i.rowIndex))},a.toDisplayString(s.value),1)):a.createCommentVNode("",!0)]),a.renderSlot(i.$slots,"default")],8,Vi)),[[a.vShow,r.value]])}});function Io(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Pe(e){return typeof e=="function"?e():a.unref(e)}const Po=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ji=Object.prototype.toString,Ti=e=>ji.call(e)==="[object Object]",De=()=>{},Bt=Bi();function Bi(){var e,t;return Po&&((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 Do={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Li(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:De}))):a.ref(t)}function Ve(e){var t;const n=Pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vo=Po?window:void 0;function Je(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Vo):[t,n,o,r]=e,!t)return De;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},i=(p,u,f,h)=>(p.addEventListener(u,f,h),()=>p.removeEventListener(u,f,h)),l=a.watch(()=>[Ve(t),Pe(r)],([p,u])=>{if(c(),!p)return;const f=Ti(u)?{...u}:u;s.push(...n.flatMap(h=>o.map(g=>i(p,h,g,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return Io(d),d}let Ao=!1;function Ro(e,t,n={}){const{window:o=Vo,ignore:r=[],capture:s=!0,detectIframe:c=!1}=n;if(!o)return De;Bt&&!Ao&&(Ao=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",De)),o.document.documentElement.addEventListener("click",De));let i=!0;const l=p=>r.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===p.target||p.composedPath().includes(f));{const f=Ve(u);return f&&(p.target===f||p.composedPath().includes(f))}}),d=[Je(o,"click",p=>{const u=Ve(e);if(!(!u||u===p.target||p.composedPath().includes(u))){if(p.detail===0&&(i=!l(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:s}),Je(o,"pointerdown",p=>{const u=Ve(e);i=!l(p)&&!!(u&&!p.composedPath().includes(u))},{passive:!0}),c&&Je(o,"blur",p=>{setTimeout(()=>{var u;const f=Ve(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}const Mi={[Do.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Ro(e,t.value,{capture:n});else{const[o,r]=t.value;e.__onClickOutside_stop=Ro(e,o,Object.assign({capture:n},r))}},[Do.unmounted](e){e.__onClickOutside_stop()}};function Lt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function jo(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:jo(n)}}function Ui(e){const t=e||window.event,n=t.target;return jo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Mt=new WeakMap;function Wi(e,t=!1){const n=a.ref(t);let o=null,r="";a.watch(Li(e),i=>{const l=Lt(Pe(i));if(l){const d=l;if(Mt.get(d)||Mt.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(r=d.style.overflow),d.style.overflow==="hidden")return n.value=!0;if(n.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Lt(Pe(e));!i||n.value||(Bt&&(o=Je(i,"touchmove",l=>{Ui(l)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},c=()=>{const i=Lt(Pe(e));!i||!n.value||(Bt&&(o==null||o()),i.style.overflow=r,Mt.delete(i),n.value=!1)};return Io(c),a.computed({get(){return n.value},set(i){i?s():c()}})}function Fi(){let e=!1;const t=a.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=Wi(n,o.value);a.watch(t,s=>r.value=s)}}Fi();for(var T=[],Ut=0;Ut<256;++Ut)T.push((Ut+256).toString(16).slice(1));function zi(e,t=0){return(T[e[t+0]]+T[e[t+1]]+T[e[t+2]]+T[e[t+3]]+"-"+T[e[t+4]]+T[e[t+5]]+"-"+T[e[t+6]]+T[e[t+7]]+"-"+T[e[t+8]]+T[e[t+9]]+"-"+T[e[t+10]]+T[e[t+11]]+T[e[t+12]]+T[e[t+13]]+T[e[t+14]]+T[e[t+15]]).toLowerCase()}var Ke,qi=new Uint8Array(16);function Gi(){if(!Ke&&(Ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ke(qi)}var Hi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const To={randomUUID:Hi};function Ji(e,t,n){if(To.randomUUID&&!t&&!e)return To.randomUUID();e=e||{};var o=e.random||(e.rng||Gi)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return zi(o)}class Ki{constructor(t,n,o,r,s,c){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||Ji(),this.rows=o,this.columns=a.reactive(n),this.config=a.reactive(r),this.table=s||a.reactive(this.createTableObject()),this.display=this.createDisplayObject(c),this.modal=a.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[r,s]of this.rows.entries())t[`${n}:${r}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let r=this.rows.length-1;r>=0;r--){const s=this.rows[r];s.parent&&o.add(s.parent),n[r]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(r),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return a.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return a.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const r=this.columns[n];return this.rows[t][r.name]=o,this.table[`${n}:${t}`]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const Qi={key:0,id:"resizable"},Yi={class:"atable-header-row",tabindex:"-1"},Xi={key:0,id:"header-index"},Zi=a.defineComponent({__name:"ATableHeader",props:{columns:{},config:{},tableid:{}},setup(e){const t=a.inject(e.tableid),n=o=>({minWidth:o.width||"40ch",textAlign:o.align||"center",width:t.config.fullWidth?"auto":null});return(o,r)=>o.columns.length?(a.openBlock(),a.createElementBlock("thead",Qi,[a.createElementVNode("tr",Yi,[a.unref(t).zeroColumn?(a.openBlock(),a.createElementBlock("th",Xi)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.columns,(s,c)=>(a.openBlock(),a.createElementBlock("th",{key:s.name,tabindex:"-1",style:a.normalizeStyle(n(s))},[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.label||String.fromCharCode(c+97).toUpperCase()),1)])],4))),128))])])):a.createCommentVNode("",!0)}}),ec=a.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(a.openBlock(),a.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",onClick:t,onInput:t},[a.renderSlot(n.$slots,"default")],544))}}),tc=a.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object},tableid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let r=n.modelValue?n.modelValue:n.rows,s=new Ki(n.id,n.columns,r,n.config);a.provide(s.id,s),a.watch(()=>s.rows,i=>{o("update:modelValue",i)},{deep:!0});const c=i=>{var l;i.target instanceof Node&&(l=s.modal.parent)!=null&&l.contains(i.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",i=>{if(i.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const l=s.modal.parent;l&&a.nextTick().then(()=>{l.focus()})}}),(i,l)=>a.withDirectives((a.openBlock(),a.createElementBlock("table",{class:"atable",style:a.normalizeStyle({width:a.unref(s).config.fullWidth?"100%":"auto"})},[a.renderSlot(i.$slots,"header",{data:a.unref(s)},()=>[a.createVNode(Zi,{columns:a.unref(s).columns,config:a.unref(s).config,tableid:a.unref(s).id},null,8,["columns","config","tableid"])]),a.createElementVNode("tbody",null,[a.renderSlot(i.$slots,"body",{data:a.unref(s)},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s).rows,(d,p)=>(a.openBlock(),a.createBlock(Ri,{key:d.id,row:d,rowIndex:p,tableid:a.unref(s).id},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s).columns,(u,f)=>(a.openBlock(),a.createBlock(Di,{key:u.name,tableid:a.unref(s).id,col:u,spellcheck:"false",rowIndex:p,colIndex:f+(a.unref(s).zeroColumn?0:-1),component:u.cellComponent,style:a.normalizeStyle({textAlign:(u==null?void 0:u.align)||"center",minWidth:(u==null?void 0:u.width)||"40ch",width:a.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),a.renderSlot(i.$slots,"footer",{data:a.unref(s)}),a.renderSlot(i.$slots,"modal",{data:a.unref(s)},()=>[a.withDirectives(a.createVNode(ec,{colIndex:a.unref(s).modal.colIndex,rowIndex:a.unref(s).modal.rowIndex,tableid:a.unref(s).id,style:a.normalizeStyle({left:a.unref(s).modal.left+"px",top:a.unref(s).modal.top+"px",maxWidth:a.unref(s).modal.width+"px"})},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s).modal.component),a.mergeProps({key:`${a.unref(s).modal.rowIndex}:${a.unref(s).modal.colIndex}`,colIndex:a.unref(s).modal.colIndex,rowIndex:a.unref(s).modal.rowIndex,tableid:a.unref(s).id},a.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[a.vShow,a.unref(s).modal.visible]])])],4)),[[a.unref(Mi),c]])}}),Bo=a.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=mn(),o={view:"list"};return(r,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.unref(tc),{key:0,columns:a.unref(t).schema.schema.toArray(),rows:a.unref(t).store.records,config:o},null,8,["columns","rows"])):a.createCommentVNode("",!0)}}),Lo=e=>(a.pushScopeId("data-v-4f7a2d32"),e=e(),a.popScopeId(),e),nc={class:"tabs"},oc={tabindex:"0"},rc={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"},ac=[Lo(()=>a.createElementVNode("g",null,[a.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
37
43
  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
38
44
  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
39
45
  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
@@ -41,5 +47,5 @@ ${JSON.stringify(E,null,2)}
41
47
  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
42
48
  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
43
49
  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
44
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1))],Ua={tabindex:"0"},Ha={style:{width:"11pt"}},Wa=[xo(()=>s.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[s.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))],$o=Qe(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=s.ref(!0),n=s.ref(!1),o=s.ref(""),r=s.ref(null),i=s.computed(()=>t.value?"unrotated":"rotated"),c=()=>{t.value=!t.value},a=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},l=f=>{f.preventDefault(),f.stopPropagation()},d=async f=>{f.preventDefault(),f.stopPropagation(),await a()},u=()=>{};return(f,p)=>{const h=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",Ba,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:c,onKeydown:s.withKeys(c,["enter"])},[s.createElementVNode("a",Ma,[s.createElementVNode("div",{class:s.normalizeClass(i.value)},"×",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:u,onKeydown:s.withKeys(u,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(h,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",ja,La))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:a,onKeydown:s.withKeys(a,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createElementVNode("a",Ua,[s.createElementVNode("span",{style:s.normalizeStyle({display:n.value?"none":"block"})},[(s.openBlock(),s.createElementBlock("svg",Ha,Wa))],4),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=g=>o.value=g),ref_key:"searchinput",ref:r,style:s.normalizeStyle({display:n.value?"block":"none"}),onClick:p[1]||(p[1]=g=>l(g)),onInput:p[2]||(p[2]=g=>l(g)),onBlur:p[3]||(p[3]=g=>d(g)),onKeydown:p[4]||(p[4]=s.withKeys(g=>d(g),["enter"])),type:"text"},null,36),[[s.vModelText,o.value]])])],36),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.breadcrumbs,g=>(s.openBlock(),s.createElementBlock("li",{key:g.title,style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(h,{tabindex:"0",to:g.to},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-4f7a2d32"]]),Fa={install:e=>{e.component("ActionSet",Lt),e.component("CommandPalette",Ut),e.component("Doctype",fo),e.component("Records",Po),e.component("SheetNav",$o)}};F.ActionSet=Lt,F.CommandPalette=Ut,F.Doctype=fo,F.Records=Po,F.SheetNav=$o,F.StonecropDesktop=Fa,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
50
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1))],sc={tabindex:"0"},ic={style:{width:"11pt"}},cc=[Lo(()=>a.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[a.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))],Mo=et(a.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=a.ref(!0),n=a.ref(!1),o=a.ref(""),r=a.ref(null),s=a.computed(()=>t.value?"unrotated":"rotated"),c=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await a.nextTick(()=>{r.value.focus()})},l=u=>{u.preventDefault(),u.stopPropagation()},d=async u=>{u.preventDefault(),u.stopPropagation(),await i()},p=()=>{};return(u,f)=>{const h=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("footer",null,[a.createElementVNode("ul",nc,[a.createElementVNode("li",{class:"hidebreadcrumbs",onClick:c,onKeydown:a.withKeys(c,["enter"])},[a.createElementVNode("a",oc,[a.createElementVNode("div",{class:a.normalizeClass(s.value)},"×",2)])],32),a.createElementVNode("li",{class:"hometab",onClick:p,onKeydown:a.withKeys(p,["enter"]),style:a.normalizeStyle({display:t.value?"block":"none"})},[a.createVNode(h,{to:"/home",tabindex:"0"},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("svg",rc,ac))]),_:1})],36),a.createElementVNode("li",{class:"searchtab",onClick:i,onKeydown:a.withKeys(i,["enter"]),style:a.normalizeStyle({display:t.value?"block":"none"})},[a.createElementVNode("a",sc,[a.createElementVNode("span",{style:a.normalizeStyle({display:n.value?"none":"block"})},[(a.openBlock(),a.createElementBlock("svg",ic,cc))],4),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),ref_key:"searchinput",ref:r,style:a.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=g=>l(g)),onInput:f[2]||(f[2]=g=>l(g)),onBlur:f[3]||(f[3]=g=>d(g)),onKeydown:f[4]||(f[4]=a.withKeys(g=>d(g),["enter"])),type:"text"},null,36),[[a.vModelText,o.value]])])],36),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.breadcrumbs,g=>(a.openBlock(),a.createElementBlock("li",{key:g.title,style:a.normalizeStyle({display:t.value?"block":"none"})},[a.createVNode(h,{tabindex:"0",to:g.to},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-4f7a2d32"]]),lc={install:e=>{e.component("ActionSet",Ht),e.component("CommandPalette",Jt),e.component("Doctype",_o),e.component("Records",Bo),e.component("SheetNav",Mo)}};q.ActionSet=Ht,q.CommandPalette=Jt,q.Doctype=_o,q.Records=Bo,q.SheetNav=Mo,q.StonecropDesktop=lc,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
45
51
  //# sourceMappingURL=desktop.umd.cjs.map