@stonecrop/desktop 0.2.63 → 0.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/desktop.js +2571 -2240
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +31 -23
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/desktop.umd.cjs
CHANGED
|
@@ -1,45 +1,53 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* pinia v2.
|
|
1
|
+
(function(J,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(J=typeof globalThis<"u"?globalThis:J||self,r(J["@stonecrop/desktop"]={},J.Vue))})(this,function(J,r){"use strict";const ur={class:"action-menu-icon"},dr=["onclick"],pr={key:1},fr=["onClick"],mr={class:"dropdown-container"},hr={class:"dropdown"},gr=["onclick"],yr=["href"],wr={class:"dropdown-item"},br=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),s=r.ref(!1),a=r.ref(!1);r.onMounted(()=>{i()});const i=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},c=()=>{s.value=!0,o.value=setTimeout(()=>{s.value&&(n.value=!0)},500)},l=()=>{s.value=!1,a.value=!1,clearTimeout(o.value),n.value=!1},p=d=>{const u=!t.value[d].show;i(),t.value[d].show=u};return(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:c,onMouseleave:l},[r.createElementVNode("div",ur,[r.createElementVNode("div",{id:"chevron",onClick:u[0]||(u[0]=f=>a.value=!a.value)},u[1]||(u[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),u[2]||(u[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,m)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,dr)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",pr,[r.createElementVNode("button",{class:"button-default",onClick:h=>p(m)},r.toDisplayString(f.label),9,fr),r.withDirectives(r.createElementVNode("div",mr,[r.createElementVNode("div",hr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,h=>(r.openBlock(),r.createElementBlock("div",{key:h.label},[h.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:h.action,class:"dropdown-item"},r.toDisplayString(h.label),9,gr)):h.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:h.link},[r.createElementVNode("button",wr,r.toDisplayString(h.label),1)],8,yr)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),lt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},sn=lt(br,[["__scopeId","data-v-4fb5c934"]]),vr={};function Er(e,t){return r.openBlock(),r.createElementBlock("dialog")}const an=lt(vr,[["render",Er]]),_r=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kr={class:"aform"},$r=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),s=i=>{let c={};for(const[l,p]of Object.entries(i))["component","fieldtype"].includes(l)||(c[l]=p),l==="rows"&&p&&p.length===0&&(c.rows=o.value[i.fieldname]);return c},a=r.computed({get:()=>e.modelValue.map((i,c)=>r.computed({get(){return i.value},set:l=>{e.modelValue[c].value=l,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(i,c)=>(r.openBlock(),r.createElementBlock("form",kr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.modelValue,(l,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.component),r.mergeProps({key:p,schema:l,modelValue:a.value[p].value,"onUpdate:modelValue":d=>a.value[p].value=d,data:o.value[l.fieldname],readonly:i.readonly,ref_for:!0},s(l)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),Nr=_r($r,[["__scopeId","data-v-d9ce3008"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Or=Object.defineProperty,Sr=(e,t,n)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Sr(e,typeof t!="symbol"?t+"":t,n);function ut(e){this.message=e||""}ut.prototype=Object.create(Error.prototype,{constructor:{value:ut},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const cn=class it{constructor(t,n,o,s,a){if(K(this,"name","Stonecrop"),K(this,"registry"),K(this,"schema"),K(this,"workflow"),K(this,"actions"),K(this,"store"),it._root)return it._root;it._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=s,this.actions=a}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ut(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const s=this.registry.registry[t.slug].actions.get(n),{initialState:a}=this.workflow;this.workflow.transition(a,{type:n}),s.length>0&&s.forEach(i=>{new Function(i)(o)})}};K(cn,"_root");let xr=cn;var ln=!1;function ze(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function dt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Cr(){return un().__VUE_DEVTOOLS_GLOBAL_HOOK__}function un(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Pr=typeof Proxy=="function",Dr="devtools-plugin:setup",Vr="plugin:settings:set";let Se,pt;function Ir(){var e;return Se!==void 0||(typeof window<"u"&&window.performance?(Se=!0,pt=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(Se=!0,pt=globalThis.perf_hooks.performance):Se=!1),Se}function Rr(){return Ir()?pt.now():Date.now()}class Ar{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const i in t.settings){const c=t.settings[i];o[i]=c.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},o);try{const i=localStorage.getItem(s),c=JSON.parse(i);Object.assign(a,c)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}a=i},now(){return Rr()}},n&&n.on(Vr,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...l)=>{this.onQueue.push({method:c,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...l)=>(this.targetQueue.push({method:c,args:l,resolve:()=>{}}),this.fallbacks[c](...l)):(...l)=>new Promise(p=>{this.targetQueue.push({method:c,args:l,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function ft(e,t){const n=e,o=un(),s=Cr(),a=Pr&&n.enableEarlyProxy;if(s&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))s.emit(Dr,e,t);else{const i=a?new Ar(n,s):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
|
2
|
+
* pinia v2.3.0
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let
|
|
5
|
+
*/let xe;const Ce=e=>xe=e,dn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function pe(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Z;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Z||(Z={}));const ie=typeof window<"u",pn=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function mt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){hn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function fn(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function He(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Ge=typeof navigator=="object"?navigator:{userAgent:""},mn=/Macintosh/.test(Ge.userAgent)&&/AppleWebKit/.test(Ge.userAgent)&&!/Safari/.test(Ge.userAgent),hn=ie?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!mn?jr:"msSaveOrOpenBlob"in Ge?Br:Mr:()=>{};function jr(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?fn(o.href)?mt(e,t,n):(o.target="_blank",He(o)):He(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){He(o)},0))}function Br(e,t="download",n){if(typeof e=="string")if(fn(e))mt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){He(o)})}else navigator.msSaveOrOpenBlob(Tr(e,n),t)}function Mr(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return mt(e,t,n);const s=e.type==="application/octet-stream",a=/constructor/i.test(String(pn.HTMLElement))||"safari"in pn,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&a||mn)&&typeof FileReader<"u"){const c=new FileReader;c.onloadend=function(){let l=c.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},c.readAsDataURL(e)}else{const c=URL.createObjectURL(e);o?o.location.assign(c):location.href=c,o=null,setTimeout(function(){URL.revokeObjectURL(c)},4e4)}}function W(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function ht(e){return"_a"in e&&"install"in e}function gn(){if(!("clipboard"in navigator))return W("Your browser doesn't support the Clipboard API","error"),!0}function yn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(W('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Lr(e){if(!gn())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),W("Global state copied to clipboard.")}catch(t){if(yn(t))return;W("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ur(e){if(!gn())try{wn(e,JSON.parse(await navigator.clipboard.readText())),W("Global state pasted from clipboard.")}catch(t){if(yn(t))return;W("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Wr(e){try{hn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){W("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ee;function Fr(){ee||(ee=document.createElement("input"),ee.type="file",ee.accept=".json");function e(){return new Promise((t,n)=>{ee.onchange=async()=>{const o=ee.files;if(!o)return t(null);const s=o.item(0);return t(s?{text:await s.text(),file:s}:null)},ee.oncancel=()=>t(null),ee.onerror=n,ee.click()})}return e}async function zr(e){try{const t=await Fr()();if(!t)return;const{text:n,file:o}=t;wn(e,JSON.parse(n)),W(`Global state imported from "${o.name}".`)}catch(t){W("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function wn(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function X(e){return{_custom:{display:e}}}const bn="🍍 Pinia (root)",qe="_root";function Hr(e){return ht(e)?{id:qe,label:bn}:{id:e.$id,label:e.$id}}function Gr(e){if(ht(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>o.get(s)._getters).map(s=>{const a=o.get(s);return{editable:!1,key:s,value:a._getters.reduce((i,c)=>(i[c]=a[c],i),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function qr(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:X(e.type),key:X(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Jr(e){switch(e){case Z.direct:return"mutation";case Z.patchFunction:return"$patch";case Z.patchObject:return"$patch";default:return"unknown"}}let ye=!0;const Je=[],fe="pinia:mutations",z="pinia",{assign:Kr}=Object,Ke=e=>"🍍 "+e;function Yr(e,t){ft({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Je,app:e},n=>{typeof n.now!="function"&&W("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:fe,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Lr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ur(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Wr(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await zr(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=t._s.get(o);s?typeof s.$reset!="function"?W(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),W(`Store "${o}" reset.`)):W(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,s)=>{const a=o.componentInstance&&o.componentInstance.proxy;if(a&&a._pStores){const i=o.componentInstance.proxy._pStores;Object.values(i).forEach(c=>{o.instanceData.state.push({type:Ke(c.$id),key:"state",editable:!0,value:c._isOptionsAPI?{_custom:{value:r.toRaw(c.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>c.$reset()}]}}:Object.keys(c.$state).reduce((l,p)=>(l[p]=c.$state[p],l),{})}),c._getters&&c._getters.length&&o.instanceData.state.push({type:Ke(c.$id),key:"getters",editable:!1,value:c._getters.reduce((l,p)=>{try{l[p]=c[p]}catch(d){l[p]=d}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===z){let s=[t];s=s.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?s.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):bn.toLowerCase().includes(o.filter.toLowerCase())):s).map(Hr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const s=o.nodeId===qe?t:t._s.get(o.nodeId);if(!s)return;s&&(o.nodeId!==qe&&(globalThis.$store=r.toRaw(s)),o.state=Gr(s))}}),n.on.editInspectorState((o,s)=>{if(o.app===e&&o.inspectorId===z){const a=o.nodeId===qe?t:t._s.get(o.nodeId);if(!a)return W(`store "${o.nodeId}" not found`,"error");const{path:i}=o;ht(a)?i.unshift("state"):(i.length!==1||!a._customProperties.has(i[0])||i[0]in a.$state)&&i.unshift("$state"),ye=!1,o.set(a,i,o.state.value),ye=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const s=o.type.replace(/^🍍\s*/,""),a=t._s.get(s);if(!a)return W(`store "${s}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return W(`Invalid path for store "${s}":
|
|
6
6
|
${i}
|
|
7
|
-
Only state can be modified.`);i[0]="$state",
|
|
7
|
+
Only state can be modified.`);i[0]="$state",ye=!1,o.set(a,i,o.state.value),ye=!0}})})}function Qr(e,t){Je.includes(Ke(t.$id))||Je.push(Ke(t.$id)),ft({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Je,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:c,name:l,args:p})=>{const d=vn++;n.addTimelineEvent({layerId:fe,event:{time:o(),title:"🛫 "+l,subtitle:"start",data:{store:X(t.$id),action:X(l),args:p},groupId:d}}),i(u=>{ce=void 0,n.addTimelineEvent({layerId:fe,event:{time:o(),title:"🛬 "+l,subtitle:"end",data:{store:X(t.$id),action:X(l),args:p,result:u},groupId:d}})}),c(u=>{ce=void 0,n.addTimelineEvent({layerId:fe,event:{time:o(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:X(t.$id),action:X(l),args:p,error:u},groupId:d}})})},!0),t._customProperties.forEach(i=>{r.watch(()=>r.unref(t[i]),(c,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),ye&&n.addTimelineEvent({layerId:fe,event:{time:o(),title:"Change",subtitle:i,data:{newValue:c,oldValue:l},groupId:ce}})},{deep:!0})}),t.$subscribe(({events:i,type:c},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!ye)return;const p={time:o(),title:Jr(c),data:Kr({store:X(t.$id)},qr(i)),groupId:ce};c===Z.patchFunction?p.subtitle="⤵️":c===Z.patchObject?p.subtitle="🧩":i&&!Array.isArray(i)&&(p.subtitle=i.type),i&&(p.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:fe,event:p})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=r.markRaw(i=>{s(i),n.addTimelineEvent({layerId:fe,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:X(t.$id),info:X("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&W(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&W(`"${t.$id}" store installed 🆕`)})}let vn=0,ce;function En(e,t,n){const o=t.reduce((s,a)=>(s[a]=r.toRaw(e)[a],s),{});for(const s in o)e[s]=function(){const a=vn,i=n?new Proxy(e,{get(...l){return ce=a,Reflect.get(...l)},set(...l){return ce=a,Reflect.set(...l)}}):e;ce=a;const c=o[s].apply(i,arguments);return ce=void 0,c}}function Xr({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){En(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(s){o.apply(this,arguments),En(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)}}Qr(e,t)}}function Zr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const s=r.markRaw({install(a){Ce(s),s._a=a,a.provide(dn,s),a.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie&&Yr(a,s),o.forEach(i=>n.push(i)),o=[]},use(a){return!this._a&&!ln?o.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie&&typeof Proxy<"u"&&s.use(Xr),s}function _n(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];pe(s)&&pe(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=_n(s,o):e[n]=o}return e}const kn=()=>{};function $n(e,t,n,o=kn){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function we(e,...t){e.slice().forEach(n=>{n(...t)})}const es=e=>e(),Nn=Symbol(),gt=Symbol();function yt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];pe(s)&&pe(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=yt(s,o):e[n]=o}return e}const ts=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ns(e){return!pe(e)||!e.hasOwnProperty(ts)}const{assign:Y}=Object;function On(e){return!!(r.isRef(e)&&e.effect)}function Sn(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return Y(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{Ce(n);const m=n._s.get(e);return i[f].call(m,m)})),u),{}))}return l=wt(e,p,t,n,o,!0),l}function wt(e,t,n={},o,s,a){let i;const c=Y({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!ln&&(l.onTrigger=g=>{p?m=g:p==!1&&!b._hotUpdating&&(Array.isArray(m)?m.push(g):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],m;const h=o.state.value[e];!a&&!h&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const v=r.ref({});let N;function k(g){let y;p=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof g=="function"?(g(o.state.value[e]),y={type:Z.patchFunction,storeId:e,events:m}):(yt(o.state.value[e],g),y={type:Z.patchObject,payload:g,storeId:e,events:m});const x=N=Symbol();r.nextTick().then(()=>{N===x&&(p=!0)}),d=!0,we(u,y,o.state.value[e])}const S=a?function(){const{state:g}=n,y=g?g():{};this.$patch(x=>{Y(x,y)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:kn;function V(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(g,y="")=>{if(Nn in g)return g[gt]=y,g;const x=function(){Ce(o);const M=Array.from(arguments),F=[],ae=[];function he(j){F.push(j)}function Ne(j){ae.push(j)}we(f,{args:M,name:x[gt],store:b,after:he,onError:Ne});let H;try{H=g.apply(this&&this.$id===e?this:b,M)}catch(j){throw we(ae,j),j}return H instanceof Promise?H.then(j=>(we(F,j),j)).catch(j=>(we(ae,j),Promise.reject(j))):(we(F,H),H)};return x[Nn]=!0,x[gt]=y,x},$=r.markRaw({actions:{},getters:{},state:[],hotState:v}),C={_p:o,$id:e,$onAction:$n.bind(null,f),$patch:k,$reset:S,$subscribe(g,y={}){const x=$n(u,g,y.detached,()=>M()),M=i.run(()=>r.watch(()=>o.state.value[e],F=>{(y.flush==="sync"?d:p)&&g({storeId:e,type:Z.direct,events:m},F)},Y({},l,y)));return x},$dispose:V},b=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie?Y({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,b);const R=(o._a&&o._a.runWithContext||es)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const g in R){const y=R[g];if(r.isRef(y)&&!On(y)||r.isReactive(y))process.env.NODE_ENV!=="production"&&s?ze(v.value,g,r.toRef(R,g)):a||(h&&ns(y)&&(r.isRef(y)?y.value=h[g]:yt(y,h[g])),o.state.value[e][g]=y),process.env.NODE_ENV!=="production"&&$.state.push(g);else if(typeof y=="function"){const x=process.env.NODE_ENV!=="production"&&s?y:B(y,g);R[g]=x,process.env.NODE_ENV!=="production"&&($.actions[g]=y),c.actions[g]=y}else process.env.NODE_ENV!=="production"&&On(y)&&($.getters[g]=a?n.getters[g]:y,ie&&(R._getters||(R._getters=r.markRaw([]))).push(g))}if(Y(b,R),Y(r.toRaw(b),R),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?v.value:o.state.value[e],set:g=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");k(y=>{Y(y,g)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=r.markRaw(g=>{b._hotUpdating=!0,g._hmrPayload.state.forEach(y=>{if(y in b.$state){const x=g.$state[y],M=b.$state[y];typeof x=="object"&&pe(x)&&pe(M)?_n(x,M):g.$state[y]=M}ze(b,y,r.toRef(g.$state,y))}),Object.keys(b.$state).forEach(y=>{y in g.$state||dt(b,y)}),p=!1,d=!1,o.state.value[e]=r.toRef(g._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const y in g._hmrPayload.actions){const x=g[y];ze(b,y,B(x,y))}for(const y in g._hmrPayload.getters){const x=g._hmrPayload.getters[y],M=a?r.computed(()=>(Ce(o),x.call(b,b))):x;ze(b,y,M)}Object.keys(b._hmrPayload.getters).forEach(y=>{y in g._hmrPayload.getters||dt(b,y)}),Object.keys(b._hmrPayload.actions).forEach(y=>{y in g._hmrPayload.actions||dt(b,y)}),b._hmrPayload=g._hmrPayload,b._getters=g._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(y=>{Object.defineProperty(b,y,Y({value:b[y]},g))})}return o._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const y=i.run(()=>g({store:b,app:o._a,pinia:o,options:c}));Object.keys(y||{}).forEach(x=>b._customProperties.add(x)),Y(b,y)}else Y(b,i.run(()=>g({store:b,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${
|
|
9
|
+
Found in store "${b.$id}".`),h&&a&&n.hydrate&&n.hydrate(b.$state,h),p=!0,d=!0,b}/*! #__NO_SIDE_EFFECTS__ */function os(e,t,n){let o,s;const a=typeof t=="function";o=e,s=a?n:t;function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&xe&&xe._testing?null:c)||(p?r.inject(dn,null):null),c&&Ce(c),process.env.NODE_ENV!=="production"&&!xe)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);c=
|
|
11
|
+
This will fail in production.`);c=xe,c._s.has(o)||(a?wt(o,t,s,c):Sn(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?wt(u,t,s,c,!0):Sn(u,Y({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&ie){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[o]=d}}return d}return i.$id=o,i}const rs=os("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function xn(e){e||(e=r.inject("$registry"));const t=rs(),n=r.ref(new xr(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var s,a;const i=e.router.currentRoute.value,c=(s=i.params.records)==null?void 0:s.toString().toLowerCase(),l=(a=i.params.record)==null?void 0:a.toString().toLowerCase();if(!c&&!l)return;const p=await e.getMeta(c);e.addDoctype(p),n.value.setup(p),c&&(l?await n.value.getRecord(p,l):await n.value.getRecords(p)),n.value.runAction(p,"LOAD",l?[l]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}K(class ct{constructor(t,n){if(K(this,"name"),K(this,"router"),K(this,"registry"),K(this,"getMeta"),ct._root)return ct._root;ct._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
|
|
12
12
|
* vue-router v4.4.5
|
|
13
13
|
* (c) 2024 Eduardo San Martin Morote
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/const
|
|
15
|
+
*/const te=typeof document<"u";function Cn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ss(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cn(e.default)}const A=Object.assign;function bt(e,t){const n={};for(const o in t){const s=t[o];n[o]=q(s)?s.map(e):e(s)}return n}const Pe=()=>{},q=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Pn=/#/g,as=/&/g,is=/\//g,cs=/=/g,ls=/\?/g,Dn=/\+/g,us=/%5B/g,ds=/%5D/g,Vn=/%5E/g,ps=/%60/g,In=/%7B/g,fs=/%7C/g,Rn=/%7D/g,ms=/%20/g;function vt(e){return encodeURI(""+e).replace(fs,"|").replace(us,"[").replace(ds,"]")}function hs(e){return vt(e).replace(In,"{").replace(Rn,"}").replace(Vn,"^")}function Et(e){return vt(e).replace(Dn,"%2B").replace(ms,"+").replace(Pn,"%23").replace(as,"%26").replace(ps,"`").replace(In,"{").replace(Rn,"}").replace(Vn,"^")}function gs(e){return Et(e).replace(cs,"%3D")}function ys(e){return vt(e).replace(Pn,"%23").replace(ls,"%3F")}function ws(e){return e==null?"":ys(e).replace(is,"%2F")}function be(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}const bs=/\/$/,vs=e=>e.replace(bs,"");function _t(e,t,n="/"){let o,s={},a="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c<l&&c>=0&&(l=-1),l>-1&&(o=t.slice(0,l),a=t.slice(l+1,c>-1?c:t.length),s=e(a)),c>-1&&(o=o||t.slice(0,c),i=t.slice(c,t.length)),o=ks(o??t,n),{fullPath:o+(a&&"?")+a+i,path:o,query:s,hash:be(i)}}function Es(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function An(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tn(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&le(t.matched[o],n.matched[s])&&jn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function le(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_s(e[n],t[n]))return!1;return!0}function _s(e,t){return q(e)?Bn(e,t):q(t)?Bn(t,e):e===t}function Bn(e,t){return q(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function ks(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let a=n.length-1,i,c;for(i=0;i<o.length;i++)if(c=o[i],c!==".")if(c==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}const ue={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var De;(function(e){e.pop="pop",e.push="push"})(De||(De={}));var Ve;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ve||(Ve={}));function $s(e){if(!e)if(te){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vs(e)}const Ns=/^[^#]+#/;function Os(e,t){return e.replace(Ns,"#")+t}function Ss(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ye=()=>({left:window.scrollX,top:window.scrollY});function xs(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const a=document.querySelector(e.el);if(o&&a){P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=Ss(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mn(e,t){return(history.state?history.state.position-t:-1)+e}const kt=new Map;function Cs(e,t){kt.set(e,t)}function Ps(e){const t=kt.get(e);return kt.delete(e),t}let Ds=()=>location.protocol+"//"+location.host;function Ln(e,t){const{pathname:n,search:o,hash:s}=t,a=e.indexOf("#");if(a>-1){let i=s.includes(e.slice(a))?e.slice(a).length:1,c=s.slice(i);return c[0]!=="/"&&(c="/"+c),An(c,"")}return An(n,e)+o+s}function Vs(e,t,n,o){let s=[],a=[],i=null;const c=({state:f})=>{const m=Ln(e,location),h=n.value,v=t.value;let N=0;if(f){if(n.value=m,t.value=f,i&&i===h){i=null;return}N=v?f.position-v.position:0}else o(m);s.forEach(k=>{k(n.value,h,{delta:N,type:De.pop,direction:N?N>0?Ve.forward:Ve.back:Ve.unknown})})};function l(){i=n.value}function p(f){s.push(f);const m=()=>{const h=s.indexOf(f);h>-1&&s.splice(h,1)};return a.push(m),m}function d(){const{history:f}=window;f.state&&f.replaceState(A({},f.state,{scroll:Ye()}),"")}function u(){for(const f of a)f();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:p,destroy:u}}function Un(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?Ye():null}}function Is(e){const{history:t,location:n}=window,o={value:Ln(e,n)},s={value:t.state};s.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,p,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:Ds()+e+l;try{t[d?"replaceState":"pushState"](p,"",f),s.value=p}catch(m){process.env.NODE_ENV!=="production"?P("Error with push/replace State",m):console.error(m),n[d?"replace":"assign"](f)}}function i(l,p){const d=A({},t.state,Un(s.value.back,l,s.value.forward,!0),p,{position:s.value.position});a(l,d,!0),o.value=l}function c(l,p){const d=A({},s.value,t.state,{forward:l,scroll:Ye()});process.env.NODE_ENV!=="production"&&!t.state&&P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
16
16
|
|
|
17
17
|
history.replaceState(history.state, '', url)
|
|
18
18
|
|
|
19
|
-
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),
|
|
19
|
+
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),a(d.current,d,!0);const u=A({},Un(o.value,l,null),{position:d.position+1},p);a(l,u,!1),o.value=l}return{location:o,state:s,push:c,replace:i}}function Rs(e){e=$s(e);const t=Is(e),n=Vs(e,t.state,t.location,t.replace);function o(a,i=!0){i||n.pauseListeners(),history.go(a)}const s=A({location:"",base:e,go:o,createHref:Os.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Qe(e){return typeof e=="string"||e&&typeof e=="object"}function Wn(e){return typeof e=="string"||typeof e=="symbol"}const $t=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Fn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fn||(Fn={}));const As={1({location:e,currentLocation:t}){return`No match for
|
|
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 "${
|
|
23
|
-
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=
|
|
22
|
+
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${js(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ve(e,t){return process.env.NODE_ENV!=="production"?A(new Error(As[e](t)),{type:e,[$t]:!0},t):A(new Error,{type:e,[$t]:!0},t)}function ne(e,t){return e instanceof Error&&$t in e&&(t==null||!!(e.type&t))}const Ts=["params","query","hash"];function js(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ts)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const zn="[^/]+?",Bs={sensitive:!1,strict:!1,start:!0,end:!0},Ms=/[.+*?^${}()[\]/\\]/g;function Ls(e,t){const n=A({},Bs,t),o=[];let s=n.start?"^":"";const a=[];for(const p of e){const d=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let u=0;u<p.length;u++){const f=p[u];let m=40+(n.sensitive?.25:0);if(f.type===0)u||(s+="/"),s+=f.value.replace(Ms,"\\$&"),m+=40;else if(f.type===1){const{value:h,repeatable:v,optional:N,regexp:k}=f;a.push({name:h,repeatable:v,optional:N});const S=k||zn;if(S!==zn){m+=10;try{new RegExp(`(${S})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${h}" (${S}): `+B.message)}}let V=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;u||(V=N&&p.length<2?`(?:/${V})`:"/"+V),N&&(V+="?"),s+=V,m+=20,N&&(m+=-8),v&&(m+=-20),S===".*"&&(m+=-50)}d.push(m)}o.push(d)}if(n.strict&&n.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function c(p){const d=p.match(i),u={};if(!d)return null;for(let f=1;f<d.length;f++){const m=d[f]||"",h=a[f-1];u[h.name]=m&&h.repeatable?m.split("/"):m}return u}function l(p){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const m of f)if(m.type===0)d+=m.value;else if(m.type===1){const{value:h,repeatable:v,optional:N}=m,k=h in p?p[h]:"";if(q(k)&&!v)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const S=q(k)?k.join("/"):k;if(!S)if(N)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${h}"`);d+=S}}return d||"/"}return{re:i,score:o,keys:a,parse:c,stringify:l}}function Us(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Hn(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const a=Us(o[n],s[n]);if(a)return a;n++}if(Math.abs(s.length-o.length)===1){if(Gn(o))return 1;if(Gn(s))return-1}return s.length-o.length}function Gn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ws={type:0,value:""},Fs=/[a-zA-Z0-9_]/;function zs(e){if(!e)return[[]];if(e==="/")return[[Ws]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${p}": ${m}`)}let n=0,o=n;const s=[];let a;function i(){a&&s.push(a),a=[]}let c=0,l,p="",d="";function u(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function f(){p+=l}for(;c<e.length;){if(l=e[c++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(p&&u(),i()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:Fs.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&c--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),u(),i(),s}function Hs(e,t,n){const o=Ls(zs(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const i of o.keys)a.has(i.name)&&P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(i.name)}const s=A(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Gs(e,t){const n=[],o=new Map;t=Yn({strict:!1,end:!0,sensitive:!1},t);function s(u){return o.get(u)}function a(u,f,m){const h=!m,v=Jn(u);process.env.NODE_ENV!=="production"&&Ys(v,f),v.aliasOf=m&&m.record;const N=Yn(t,u),k=[v];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const $ of B)k.push(Jn(A({},v,{components:m?m.record.components:v.components,path:$,aliasOf:m?m.record:v})))}let S,V;for(const B of k){const{path:$}=B;if(f&&$[0]!=="/"){const C=f.record.path,b=C[C.length-1]==="/"?"":"/";B.path=f.record.path+($&&b+$)}if(process.env.NODE_ENV!=="production"&&B.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
23
|
+
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=Hs(B,f,N),process.env.NODE_ENV!=="production"&&f&&$[0]==="/"&&Qs(S,f),m?(m.alias.push(S),process.env.NODE_ENV!=="production"&&Ks(m,S)):(V=V||S,V!==S&&V.alias.push(S),h&&u.name&&!Kn(S)&&i(u.name)),Qn(S)&&l(S),v.children){const C=v.children;for(let b=0;b<C.length;b++)a(C[b],S,m&&m.children[b])}m=m||S}return V?()=>{i(V)}:Pe}function i(u){if(Wn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){const f=Xs(u,n);n.splice(f,0,u),u.record.name&&!Kn(u)&&o.set(u.record.name,u)}function p(u,f){let m,h={},v,N;if("name"in u&&u.name){if(m=o.get(u.name),!m)throw ve(1,{location:u});if(process.env.NODE_ENV!=="production"){const V=Object.keys(u.params||{}).filter(B=>!m.keys.find($=>$.name===B));V.length&&P(`Discarded invalid param(s) "${V.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}N=m.record.name,h=A(qn(f.params,m.keys.filter(V=>!V.optional).concat(m.parent?m.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),u.params&&qn(u.params,m.keys.map(V=>V.name))),v=m.stringify(h)}else if(u.path!=null)v=u.path,process.env.NODE_ENV!=="production"&&!v.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),m=n.find(V=>V.re.test(v)),m&&(h=m.parse(v),N=m.record.name);else{if(m=f.name?o.get(f.name):n.find(V=>V.re.test(f.path)),!m)throw ve(1,{location:u,currentLocation:f});N=m.record.name,h=A({},f.params,u.params),v=m.stringify(h)}const k=[];let S=m;for(;S;)k.unshift(S.record),S=S.parent;return{name:N,path:v,params:h,matched:k,meta:Js(k)}}e.forEach(u=>a(u));function d(){n.length=0,o.clear()}return{addRoute:a,resolve:p,removeRoute:i,clearRoutes:d,getRoutes:c,getRecordMatcher:s}}function qn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Jn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:qs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function qs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Kn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Js(e){return e.reduce((t,n)=>A(t,n.meta),{})}function Yn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Nt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ks(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Nt.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Nt.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Ys(e,t){t&&t.record.name&&!e.name&&!e.path&&P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Qs(e,t){for(const n of t.keys)if(!e.keys.find(Nt.bind(null,n)))return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Xs(e,t){let n=0,o=t.length;for(;n!==o;){const a=n+o>>1;Hn(e,t[a])<0?o=a:n=a+1}const s=Zs(e);return s&&(o=t.lastIndexOf(s,o-1),process.env.NODE_ENV!=="production"&&o<0&&P(`Finding ancestor route "${s.record.path}" failed for "${e.record.path}"`)),o}function Zs(e){let t=e;for(;t=t.parent;)if(Qn(t)&&Hn(e,t)===0)return t}function Qn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ea(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const s=n[o].replace(Dn," "),a=s.indexOf("="),i=be(a<0?s:s.slice(0,a)),c=a<0?null:be(s.slice(a+1));if(i in t){let l=t[i];q(l)||(l=t[i]=[l]),l.push(c)}else t[i]=c}return t}function Xn(e){let t="";for(let n in e){const o=e[n];if(n=gs(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(q(o)?o.map(s=>s&&Et(s)):[o&&Et(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function ta(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=q(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const na=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Zn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Ot=Symbol(process.env.NODE_ENV!=="production"?"router":""),eo=Symbol(process.env.NODE_ENV!=="production"?"route location":""),St=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ie(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function de(e,t,n,o,s,a=i=>i()){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const p=f=>{f===!1?l(ve(4,{from:n,to:t})):f instanceof Error?l(f):Qe(f)?l(ve(2,{from:t,to:f})):(i&&o.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),c())},d=a(()=>e.call(o&&o.instances[s],t,n,process.env.NODE_ENV!=="production"?oa(p,t,n):p));let u=Promise.resolve(d);if(e.length<3&&(u=u.then(p)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
|
|
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
|
|
26
|
-
- to:`,
|
|
27
|
-
- previous to:`,
|
|
28
|
-
- props:`,e):
|
|
29
|
-
- to:`,
|
|
30
|
-
- props:`,e)),
|
|
25
|
+
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof d=="object"&&"then"in d)u=u.then(m=>p._called?m:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!p._called){P(f),l(new Error("Invalid navigation guard"));return}}u.catch(f=>l(f))})}function oa(e,t,n){let o=0;return function(){o++===1&&P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function xt(e,t,n,o,s=a=>a()){const a=[];for(const i of e){process.env.NODE_ENV!=="production"&&!i.components&&!i.children.length&&P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const c in i.components){let l=i.components[c];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){P(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const p=l;l=()=>p}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,P(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(Cn(l)){const p=(l.__vccOpts||l)[t];p&&a.push(de(p,n,o,i,c,s))}else{let p=l();process.env.NODE_ENV!=="production"&&!("catch"in p)&&(P(`Component "${c}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),p=Promise.resolve(p)),a.push(()=>p.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);const u=ss(d)?d.default:d;i.mods[c]=d,i.components[c]=u;const f=(u.__vccOpts||u)[t];return f&&de(f,n,o,i,c,s)()}))}}}return a}function to(e){const t=r.inject(Ot),n=r.inject(eo);let o=!1,s=null;const a=r.computed(()=>{const d=r.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||d!==s)&&(Qe(d)||(o?P(`Invalid value for prop "to" in useLink()
|
|
26
|
+
- to:`,d,`
|
|
27
|
+
- previous to:`,s,`
|
|
28
|
+
- props:`,e):P(`Invalid value for prop "to" in useLink()
|
|
29
|
+
- to:`,d,`
|
|
30
|
+
- props:`,e)),s=d,o=!0),t.resolve(d)}),i=r.computed(()=>{const{matched:d}=a.value,{length:u}=d,f=d[u-1],m=n.matched;if(!f||!m.length)return-1;const h=m.findIndex(le.bind(null,f));if(h>-1)return h;const v=no(d[u-2]);return u>1&&no(f)===v&&m[m.length-1].path!==v?m.findIndex(le.bind(null,d[u-2])):h}),c=r.computed(()=>i.value>-1&&ia(n.params,a.value.params)),l=r.computed(()=>i.value>-1&&i.value===n.matched.length-1&&jn(n.params,a.value.params));function p(d={}){return aa(d)?t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Pe):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&te){const d=r.getCurrentInstance();if(d){const u={route:a.value,isActive:c.value,isExactActive:l.value,error:null};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(u),r.watchEffect(()=>{u.route=a.value,u.isActive=c.value,u.isExactActive=l.value,u.error=Qe(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:a,href:r.computed(()=>a.value.href),isActive:c,isExactActive:l,navigate:p}}const ra=r.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:to,setup(e,{slots:t}){const n=r.reactive(to(e)),{options:o}=r.inject(Ot),s=r.computed(()=>({[oo(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[oo(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},a)}}}),sa=ra;function aa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ia(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!q(s)||s.length!==o.length||o.some((a,i)=>a!==s[i]))return!1}return!0}function no(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const oo=(e,t,n)=>e??t??n,ca=r.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&ua();const o=r.inject(St),s=r.computed(()=>e.route||o.value),a=r.inject(Zn,0),i=r.computed(()=>{let p=r.unref(a);const{matched:d}=s.value;let u;for(;(u=d[p])&&!u.components;)p++;return p}),c=r.computed(()=>s.value.matched[i.value]);r.provide(Zn,r.computed(()=>i.value+1)),r.provide(na,c),r.provide(St,s);const l=r.ref();return r.watch(()=>[l.value,c.value,e.name],([p,d,u],[f,m,h])=>{d&&(d.instances[u]=p,m&&m!==d&&p&&p===f&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),p&&d&&(!m||!le(d,m)||!f)&&(d.enterCallbacks[u]||[]).forEach(v=>v(p))},{flush:"post"}),()=>{const p=s.value,d=e.name,u=c.value,f=u&&u.components[d];if(!f)return ro(n.default,{Component:f,route:p});const m=u.props[d],h=m?m===!0?p.params:typeof m=="function"?m(p):m:null,v=r.h(f,A({},h,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(u.instances[d]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&te&&v.ref){const N={depth:i.value,name:u.name,path:u.path,meta:u.meta};(q(v.ref)?v.ref.map(k=>k.i):[v.ref.i]).forEach(k=>{k.__vrv_devtools=N})}return ro(n.default,{Component:v,route:p})||v}}});function ro(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const la=ca;function ua(){const e=r.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
31
31
|
Use slot props instead:
|
|
32
32
|
|
|
33
33
|
<router-view v-slot="{ Component }">
|
|
34
34
|
<${o}>
|
|
35
35
|
<component :is="Component" />
|
|
36
36
|
</${o}>
|
|
37
|
-
</router-view>`)}}function
|
|
38
|
-
- Location:`,
|
|
39
|
-
${JSON.stringify(
|
|
40
|
-
when navigating to "${
|
|
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"))):$(D({replace:P},S(U.to),{state:typeof U.to=="object"?D({},V,U.to.state):V,force:B}),b||R)}else U=F(R,k,!0,P,V);return A(R,k,U),U})}function Q(m,b){const w=C(m,b);return w?Promise.reject(w):Promise.resolve()}function E(m){const b=Ze.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[k,V,B]=as(m,b);w=Et(k.reverse(),"beforeRouteLeave",m,b);for(const x of k)x.leaveGuards.forEach(R=>{w.push(ce(R,m,b))});const P=Q.bind(null,m,b);return w.push(P),Ee(w).then(()=>{w=[];for(const x of s.list())w.push(ce(x,m,b));return w.push(P),Ee(w)}).then(()=>{w=Et(V,"beforeRouteUpdate",m,b);for(const x of V)x.updateGuards.forEach(R=>{w.push(ce(R,m,b))});return w.push(P),Ee(w)}).then(()=>{w=[];for(const x of B)if(x.beforeEnter)if(z(x.beforeEnter))for(const R of x.beforeEnter)w.push(ce(R,m,b));else w.push(ce(x.beforeEnter,m,b));return w.push(P),Ee(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=Et(B,"beforeRouteEnter",m,b,E),w.push(P),Ee(w))).then(()=>{w=[];for(const x of i.list())w.push(ce(x,m,b));return w.push(P),Ee(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function A(m,b,w){c.list().forEach(k=>E(()=>k(m,b,w)))}function F(m,b,w,k,V){const B=C(m,b);if(B)return B;const P=b===ie,x=ee?history.state:{};w&&(k||P?a.replace(m.fullPath,D({scroll:P&&x&&x.scroll},V)):a.push(m.fullPath,V)),p.value=m,Ho(m,b,w,P),Ft()}let K;function Re(){K||(K=a.listen((m,b,w)=>{const k=O(m),V=T(k);if(V){$(D(V,{replace:!0}),k).catch(Se);return}l=k;const B=p.value;ee&&da(Nn(B.fullPath,w.delta),Fe()),v(k,B).catch(P=>te(P,12)?P:te(P,2)?($(P.to,k).then(x=>{te(x,20)&&!w.delta&&w.type===Oe.pop&&a.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&a.go(-w.delta,!1),W(P,k,B))).then(P=>{P=P||F(k,B,!1),P&&(w.delta&&!te(P,8)?a.go(-w.delta,!1):w.type===Oe.pop&&te(P,20)&&a.go(-1,!1)),A(k,B,P)}).catch(Se)}))}let je=xe(),Xe=xe(),X;function W(m,b,w){Ft(m);const k=Xe.list();return k.length?k.forEach(V=>V(m,b,w)):(process.env.NODE_ENV!=="production"&&N("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function yc(){return X&&p.value!==ie?Promise.resolve():new Promise((m,b)=>{je.add([m,b])})}function Ft(m){return X||(X=!m,Re(),je.list().forEach(([b,w])=>m?w(m):b()),je.reset()),m}function Ho(m,b,w,k){const{scrollBehavior:V}=e;if(!ee||!V)return Promise.resolve();const B=!w&&pa(Nn(m.fullPath,0))||(k||!w)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>V(m,b,B)).then(P=>P&&ua(P)).catch(P=>W(P,m,b))}const Ht=m=>a.go(m);let qt;const Ze=new Set,wc={currentRoute:p,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:y,resolve:O,options:e,push:j,replace:I,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:s.add,beforeResolve:i.add,afterEach:c.add,onError:Xe.add,isReady:yc,install(m){const b=this;m.component("RouterLink",Wa),m.component("RouterView",Ha),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(p)}),ee&&!qt&&p.value===ie&&(qt=!0,j(a.location).catch(V=>{process.env.NODE_ENV!=="production"&&N("Unexpected error when starting the router:",V)}));const w={};for(const V in ie)Object.defineProperty(w,V,{get:()=>p.value[V],enumerable:!0});m.provide(bt,b),m.provide(Un,r.shallowReactive(w)),m.provide(vt,p);const k=m.unmount;Ze.add(m),m.unmount=function(){Ze.delete(m),Ze.size<1&&(l=ie,K&&K(),K=null,p.value=ie,qt=!1,X=!1),k()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function Ee(m){return m.reduce((b,w)=>b.then(()=>E(w)),Promise.resolve())}return wc}function as(e,t){const n=[],o=[],a=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const c=t.matched[i];c&&(e.matched.find(l=>se(l,c))?o.push(c):n.push(c));const p=e.matched[i];p&&(t.matched.find(l=>se(l,p))||a.push(p))}return[n,o,a]}rs({history:ga(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function eo(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 kt(){return Math.random().toString(36).substring(2)}var to=0,$t=0;function Ge(){var e=new Date().getTime();return e===to?($t++,e*1e3+$t):(to=e,$t=0,e*1e3)}var cs=Ge,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},no=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,oo()),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=oo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var a=o[0],s=o[1];if(s<t)e.map.delete(a);else return}}function oo(){return new Date().getTime()}function St(){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=Ge,bs="pubkey.broadcast-channel-0-",ne="messages",Je={durability:"relaxed"},vs="idb";function ro(){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 Ot(e){e.commit&&e.commit()}function Es(e){var t=ro(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(a){var s=a.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(a,s){o.onerror=function(i){return s(i)},o.onsuccess=function(){a(o.result)}})}function _s(e,t,n){var o=new Date().getTime(),a={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",Je);return new Promise(function(i,c){s.oncomplete=function(){return i()},s.onerror=function(l){return c(l)};var p=s.objectStore(ne);p.add(a),Ot(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",Je),o=n.objectStore(ne),a=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(s);return new Promise(function(p,l){i.onerror=function(u){return l(u)},i.onsuccess=function(u){p(u.target.result)}})}function c(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(p,l){var u=c();u.onerror=function(d){return l(d)},u.onsuccess=function(d){var f=d.target.result;f?f.value.id<t+1?f.continue(t+1):(a.push(f.value),f.continue()):(Ot(n),p(a))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",Je),o=n.objectStore(ne);return Promise.all(t.map(function(a){var s=o.delete(a);return new Promise(function(i){s.onsuccess=function(){return i()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",Je),a=o.objectStore(ne),s=[];return new Promise(function(i){a.openCursor().onsuccess=function(c){var p=c.target.result;if(p){var l=p.value;l.time<n?(s.push(l),p.continue()):(Ot(o),i(s))}else i(s)}})}function Os(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Ns(e,t){return t=St(t),Es(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:kt(),eMIs:new no(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},ao(o),o})}function ao(e){e.closed||so(e).then(function(){return eo(e.options.idb.fallbackInterval)}).then(function(){return ao(e)})}function xs(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function so(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 xs(o,e)}).sort(function(o,a){return o.time-a.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 _s(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&Os(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,so(e)}function Ds(){return!!ro()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Ns,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Ts=Ge,Rs="pubkey.broadcastChannel-",js="localstorage";function io(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function co(e){return Rs+e}function Bs(e,t){return new Promise(function(n){eo().then(function(){var o=co(e.channelName),a={token:kt(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(a);io().setItem(o,s);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=s,window.dispatchEvent(i),n()})})}function Ls(e,t){var n=co(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Ws(e,t){if(t=St(t),!lo())throw new Error("BroadcastChannel: localstorage cannot be used");var n=kt(),o=new no(t.localstorage.removeTimeout),a={channelName:e,uuid:n,eMIs:o};return a.listener=Ls(e,function(s){a.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<a.messagesCallbackTime||(o.add(s.token),a.messagesCallback(s.data)))}),a}function Us(e){Ms(e.listener)}function zs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function lo(){var e=io();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Fs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Hs={create:Ws,close:Us,onMessage:zs,postMessage:Bs,canBeUsed:lo,type:js,averageResponseTime:Fs,microSeconds:Ts},qs=Ge,Gs="simulate",Nt=new Set;function Js(e){var t={name:e,messagesCallback:null};return Nt.add(t),t}function Ks(e){Nt.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Nt);o.filter(function(a){return a.name===e.name}).filter(function(a){return a!==e}).filter(function(a){return!!a.messagesCallback}).forEach(function(a){return a.messagesCallback(t)}),n()},5)})}function Qs(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Qs,postMessage:Ys,canBeUsed:Xs,type:Gs,averageResponseTime:Zs,microSeconds:qs},uo=[gs,As,Hs];function ti(e){var t=[].concat(e.methods,uo).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(a){return a.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(a){return a.type!=="idb"}));var o=t.find(function(a){return a.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(uo.map(function(a){return a.type})))}var po=new Set,ni=0,xt=function(e,t){this.id=ni++,po.add(this),this.name=e,this.options=St(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 fo(this,"message",e)},postInternal:function(e){return fo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};go(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mo(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mo(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});go(this,e,n)},close:function(){var e=this;if(!this.closed){po.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 fo(e,t,n){var o=e.method.microSeconds(),a={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var i=e.method.postMessage(e._state,a);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}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 ho(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mo(e,t,n){e._addEL[t].push(n),ri(e)}function go(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&ho(e)){var t=function(o){e._addEL[o.type].forEach(function(a){var s=1e5,i=a.time-s;o.time>=i&&a.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&&!ho(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ct=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function yo(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 a=0;a<o;a+=1){const s=e[a],i=li(s);i&&(t+=e.slice(n,a)+i,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}const It=-1,wo=-2,bo=-3,vo=-4,Eo=-5,Pt=-6;function _o(e,t){return ui(JSON.parse(e))}function ui(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function a(s,i=!1){if(s===It)return;if(s===bo)return NaN;if(s===vo)return 1/0;if(s===Eo)return-1/0;if(s===Pt)return-0;if(i)throw new Error("Invalid input");if(s in o)return o[s];const c=n[s];if(!c||typeof c!="object")o[s]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const p=c[0];switch(p){case"Date":o[s]=new Date(c[1]);break;case"Set":const l=new Set;o[s]=l;for(let f=1;f<c.length;f+=1)l.add(a(c[f]));break;case"Map":const u=new Map;o[s]=u;for(let f=1;f<c.length;f+=2)u.set(a(c[f]),a(c[f+1]));break;case"RegExp":o[s]=new RegExp(c[1],c[2]);break;case"Object":o[s]=Object(c[1]);break;case"BigInt":o[s]=BigInt(c[1]);break;case"null":const d=Object.create(null);o[s]=d;for(let f=1;f<c.length;f+=2)d[c[f]]=a(c[f+1]);break;default:throw new Error(`Unknown type ${p}`)}}else{const p=new Array(c.length);o[s]=p;for(let l=0;l<c.length;l+=1){const u=c[l];u!==wo&&(p[l]=a(u))}}else{const p={};o[s]=p;for(const l in c){const u=c[l];p[l]=a(u)}}return o[s]}return a(0)}function ko(e,t){const n=[],o=new Map,a=[];for(const l in t)a.push({key:l,fn:t[l]});const s=[];let i=0;function c(l){if(typeof l=="function")throw new Ct("Cannot stringify a function",s);if(o.has(l))return o.get(l);if(l===void 0)return It;if(Number.isNaN(l))return bo;if(l===1/0)return vo;if(l===-1/0)return Eo;if(l===0&&1/l<0)return Pt;const u=i++;o.set(l,u);for(const{key:f,fn:h}of a){const g=h(l);if(g)return n[u]=`["${f}",${c(g)}]`,u}let d="";if(yo(l))d=Dt(l);else switch(ci(l)){case"Number":case"String":case"Boolean":d=`["Object",${Dt(l)}]`;break;case"BigInt":d=`["BigInt",${l}]`;break;case"Date":d=`["Date","${isNaN(l.getDate())?"":l.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=l;d=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":d="[";for(let g=0;g<l.length;g+=1)g>0&&(d+=","),g in l?(s.push(`[${g}]`),d+=c(l[g]),s.pop()):d+=wo;d+="]";break;case"Set":d='["Set"';for(const g of l)d+=`,${c(g)}`;d+="]";break;case"Map":d='["Map"';for(const[g,y]of l)s.push(`.get(${yo(g)?Dt(g):"..."})`),d+=`,${c(g)},${c(y)}`,s.pop();d+="]";break;default:if(!ii(l))throw new Ct("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(l).length>0)throw new Ct("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(l)===null){d='["null"';for(const g in l)s.push(`.${g}`),d+=`,${be(g)},${c(l[g])}`,s.pop();d+="]"}else{d="{";let g=!1;for(const y in l)g&&(d+=","),g=!0,s.push(`.${y}`),d+=`${be(y)}:${c(l[y])}`,s.pop();d+="}"}}return n[u]=d,u}const p=c(e);return p<0?`${p}`:`[${n.join(",")}]`}function Dt(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?It.toString():e===0&&1/e<0?Pt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let a=`${t.$id}-${e.toString()}`,s=new xt(a,{type:o}),i=!1,c=0;r.watch(()=>t[e],u=>{i||(c=Date.now(),s.postMessage({timestamp:c,state:_o(ko(u))})),i=!1},{deep:!0}),s.onmessage=u=>{if(u===void 0){s.postMessage({timestamp:c,state:_o(ko(t[e]))});return}u.timestamp<=c||(i=!0,c=u.timestamp,t[e]=u.state)};let p=()=>s.postMessage(void 0),l=()=>s.close();return n&&p(),{sync:p,unshare:l}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:a})=>{var s,i;let c=((s=a==null?void 0:a.share)==null?void 0:s.enable)??t,p=((i=a==null?void 0:a.share)==null?void 0:i.omit)??[];!c||Object.keys(o.$state).forEach(l=>{var u;p.includes(l)||!pi(l,o.$state)||di(l,o,{initialize:((u=a==null?void 0:a.share)==null?void 0:u.initialize)??e,type:n})})};Tr().use(fi({enable:!0,initialize:!0}));const $o=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=gn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let a=t.value.schema.schema.toArray();a.forEach((s,i)=>{const p=t.value.store.record[s.fieldname];a[i].value=p}),o.value=a}}),(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ir),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i)},null,8,["modelValue"])):r.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 So(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Vt(e){return typeof e=="function"?e():r.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=()=>{},Ie=gi?window:void 0;function Pe(e){var t;const n=Vt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function De(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Ie):[t,n,o,a]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},c=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),p=r.watch(()=>[Pe(t),Vt(a)],([u,d])=>{if(i(),!u)return;const f=bi(d)?{...d}:d;s.push(...n.flatMap(h=>o.map(g=>c(u,h,g,f))))},{immediate:!0,flush:"post"}),l=()=>{p(),i()};return So(l),l}function Ei(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function _i(e){const t=Ei();return r.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ie,...a}=n;let s;const i=_i(()=>o&&"MutationObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},p=r.computed(()=>{const f=Vt(e),h=(Array.isArray(f)?f:[f]).map(Pe).filter(yi);return new Set(h)}),l=r.watch(()=>p.value,f=>{c(),i.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),d=()=>{l(),c()};return So(d),{isSupported:i,stop:d,takeRecords:u}}function $i(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:a=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var l;let u=s==null?void 0:s.activeElement;if(o)for(;u!=null&&u.shadowRoot;)u=(l=u==null?void 0:u.shadowRoot)==null?void 0:l.activeElement;return u},c=r.ref(),p=()=>{c.value=i()};return n&&(De(n,"blur",l=>{l.relatedTarget===null&&p()},!0),De(n,"focus",p,!0)),a&&ki(s,l=>{l.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===c.value&&p()})},{childList:!0,subtree:!0}),p(),c}const Si="focusin",Oi="focusout";function Ni(e,t={}){const{window:n=Ie}=t,o=r.computed(()=>Pe(e)),a=r.ref(!1),s=r.computed(()=>a.value),i=$i(t);return!n||!i.value?{focused:s}:(De(o,Si,()=>a.value=!0),De(o,Oi,()=>a.value=!1),{focused:s})}function xi(e,{window:t=Ie,scrollTarget:n}={}){const o=r.ref(!1),a=()=>{if(!t)return;const s=t.document,i=Pe(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||s.documentElement.clientHeight)&&c.left<=(t.innerWidth||s.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Pe(e),()=>a(),{immediate:!0,flush:"post"}),t&&De(n||t,"scroll",a,{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,Oo=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.previousElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ci=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Tt(o):o},No=e=>{const t=e.target;return Tt(t)},Tt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Tt(n):n},Ii=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},xo=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},Co=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},Io=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},Po=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},Ke=["alt","control","shift","meta"],Pi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Bt={"keydown.up":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Co(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Ci(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ii(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=No(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Oo(e);t&&t.focus()}},"keydown.home":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Co(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Do(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let p=[];if(typeof i.selectors=="string")p=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const l of i.selectors)l instanceof HTMLElement?p.push(l):p.push(l.$el);else if(i.selectors instanceof HTMLElement)p.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const l of i.selectors.value)l instanceof HTMLElement?p.push(l):p.push(l.$el);else p.push(i.selectors.value);return p},o=i=>{const c=t(i);let p=[];return i.selectors?p=n(i):c&&(p=Array.from(c.children).filter(l=>re(l)&&oe(l))),p},a=i=>c=>{const p=Pi[c.key]||c.key.toLowerCase();if(Ke.includes(p))return;const l=i.handlers||Bt;for(const u of Object.keys(l)){const[d,...f]=u.split(".");if(d==="keydown"&&f.includes(p)){const h=l[u],g=f.filter(_=>Ke.includes(_)),y=Ke.some(_=>{const O=_.charAt(0).toUpperCase()+_.slice(1);return c.getModifierState(O)});if(g.length>0){if(y){for(const _ of Ke)if(f.includes(_)){const O=_.charAt(0).toUpperCase()+_.slice(1);c.getModifierState(O)&&h(c)}}}else y||h(c)}}},s=[];r.onMounted(()=>{for(const i of e){const c=t(i),p=o(i),l=a(i),u=c?[c]:p;for(const d of u){const{focused:f}=Ni(r.ref(d)),h=r.watch(f,g=>{g?d.addEventListener("keydown",l):d.removeEventListener("keydown",l)});s.push(h)}}}),r.onBeforeUnmount(()=>{for(const i of s)i()})}function Lt(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ye(e){return typeof e=="function"?e():r.unref(e)}const Di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vi=e=>e!=null,Ai=Object.prototype.toString,Ti=e=>Ai.call(e)==="[object Object]",Ri=()=>{};function ji(e){return r.getCurrentInstance()}function Bi(e,t=!0,n){ji()?r.onMounted(e,n):t?e():r.nextTick(e)}const Mt=Di?window:void 0;function ve(e){var t;const n=Ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vo(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Mt):[t,n,o,a]=e,!t)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},c=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),p=r.watch(()=>[ve(t),Ye(a)],([u,d])=>{if(i(),!u)return;const f=Ti(d)?{...d}:d;s.push(...n.flatMap(h=>o.map(g=>c(u,h,g,f))))},{immediate:!0,flush:"post"}),l=()=>{p(),i()};return Lt(l),l}function Li(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Ao(e){const t=Li();return r.computed(()=>(t.value,!!e()))}function To(e,t,n={}){const{window:o=Mt,...a}=n;let s;const i=Ao(()=>o&&"MutationObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},p=r.computed(()=>{const f=Ye(e),h=(Array.isArray(f)?f:[f]).map(ve).filter(Vi);return new Set(h)}),l=r.watch(()=>p.value,f=>{c(),i.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),d=()=>{l(),c()};return Lt(d),{isSupported:i,stop:d,takeRecords:u}}function Mi(e,t,n={}){const{window:o=Mt,...a}=n;let s;const i=Ao(()=>o&&"ResizeObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},p=r.computed(()=>{const d=Ye(e);return Array.isArray(d)?d.map(f=>ve(f)):[ve(d)]}),l=r.watch(p,d=>{if(c(),i.value&&o){s=new ResizeObserver(t);for(const f of d)f&&s.observe(f,a)}},{immediate:!0,flush:"post"}),u=()=>{c(),l()};return Lt(u),{isSupported:i,stop:u}}function Wi(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:s=!0,updateTiming:i="sync"}=t,c=r.ref(0),p=r.ref(0),l=r.ref(0),u=r.ref(0),d=r.ref(0),f=r.ref(0),h=r.ref(0),g=r.ref(0);function y(){const O=ve(e);if(!O){n&&(c.value=0,p.value=0,l.value=0,u.value=0,d.value=0,f.value=0,h.value=0,g.value=0);return}const S=O.getBoundingClientRect();c.value=S.height,p.value=S.bottom,l.value=S.left,u.value=S.right,d.value=S.top,f.value=S.width,h.value=S.x,g.value=S.y}function _(){i==="sync"?y():i==="next-frame"&&requestAnimationFrame(()=>y())}return Mi(e,_),r.watch(()=>ve(e),O=>!O&&_()),To(e,_,{attributeFilter:["style","class"]}),a&&Vo("scroll",_,{capture:!0,passive:!0}),o&&Vo("resize",_,{passive:!0}),Bi(()=>{s&&_()}),{height:c,bottom:p,left:l,right:u,top:d,width:f,x:h,y:g,update:_}}const Ui=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},zi=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Fi=["innerHTML"],Hi={key:2},qi=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("cell"),{bottom:o,left:a}=Wi(n),s=t.cellData(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),p=t.table,l=t.columns[e.colIndex],u=t.rows[e.rowIndex],d=l.align||"center",f=l.width||"40ch",h=r.computed(()=>typeof y.value=="string"?Ui(y.value):!1),g=r.computed(()=>{var I;return{textAlign:d,width:f,backgroundColor:c.value?"var(--sc-cell-modified)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:j(e.colIndex,(I=t.display[e.rowIndex])==null?void 0:I.indent)}}),y=r.computed(()=>{const I=t.cellData(e.colIndex,e.rowIndex);return _(I)}),_=I=>{const T=l.format;return T?typeof T=="function"?T(I,{table:p,row:u,column:l}):typeof T=="string"?Function(`"use strict";return (${T})`)()(I,{table:p,row:u,column:l}):I:I},O=()=>{l.mask,l.modalComponent&&(t.modal.visible=!0,t.modal.colIndex=e.colIndex,t.modal.rowIndex=e.rowIndex,t.modal.parent=n.value,t.modal.top=o.value,t.modal.left=a.value,t.modal.width=f,typeof l.modalComponent=="function"?t.modal.component=l.modalComponent({table:p,row:u,column:l}):t.modal.component=l.modalComponent,t.modal.componentProps=l.modalComponentExtraProps)};if(e.addNavigation){let I={...Bt,"keydown.f2":O,"keydown.alt.up":O,"keydown.alt.down":O,"keydown.alt.left":O,"keydown.alt.right":O};typeof e.addNavigation=="object"&&(I={...I,...e.addNavigation}),Do([{selectors:n,handlers:I}])}const S=()=>{n.value&&(i.value=n.value.textContent)},C=()=>{n.value&&(l.format?c.value=n.value.textContent!==_(s):c.value=n.value.textContent!==s,n.value.textContent!==i.value&&(i.value=n.value.textContent,n.value.dispatchEvent(new Event("change")),l.format||t.setCellData(e.rowIndex,e.colIndex,i.value)))},j=(I,T)=>T&&I===0&&T>0?`${T}ch`:"inherit";return(I,T)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":I.colIndex,"data-rowindex":I.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:I.tabIndex,spellcheck:!1,style:r.normalizeStyle(g.value),onFocus:S,onPaste:C,onBlur:C,onInput:C,onClick:O,onMousedown:O,class:r.normalizeClass(["atable-cell",I.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:y.value},r.unref(l).cellComponentProps),null,16,["value"])):h.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:y.value},null,8,Fi)):(r.openBlock(),r.createElementBlock("span",Hi,r.toDisplayString(y.value),1))],46,zi))}}),Gi=["tabindex"],Ji=r.defineComponent({__name:"ARow",props:{rowIndex:{},tableid:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("rowEl"),o=r.computed(()=>t.columns.some(c=>c.pinned)),a=r.computed(()=>t.config.view!=="tree"||t.display[e.rowIndex].isRoot||t.display[e.rowIndex].open),s=r.computed(()=>t.config.view!=="tree"?"":t.display[e.rowIndex].isRoot||t.display[e.rowIndex].isParent?t.display[e.rowIndex].childrenOpen?"-":"+":""),i=c=>{t.toggleRowExpand(c)};if(e.addNavigation){let c=Bt;typeof e.addNavigation=="object"&&(c={...c,...e.addNavigation}),Do([{selectors:n,handlers:c}])}return(c,p)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:c.tabIndex,class:"table-row"},[r.unref(t).config.view!=="uncounted"?r.renderSlot(c.$slots,"index",{key:0},()=>[r.unref(t).config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",o.value?"sticky-index":""])},r.toDisplayString(c.rowIndex+1),3)):r.unref(t).config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",o.value?"sticky-index":""]),onClick:p[0]||(p[0]=l=>i(c.rowIndex))},r.toDisplayString(s.value),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(c.$slots,"default")],8,Gi)),[[r.vShow,a.value]])}});function Ro(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ve(e){return typeof e=="function"?e():r.unref(e)}const jo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ki=Object.prototype.toString,Yi=e=>Ki.call(e)==="[object Object]",Ae=()=>{},Wt=Qi();function Qi(){var e,t;return jo&&((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 Bo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xi(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Ae}))):r.ref(t)}function Te(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lo=jo?window:void 0;function Qe(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Lo):[t,n,o,a]=e,!t)return Ae;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},c=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),p=r.watch(()=>[Te(t),Ve(a)],([u,d])=>{if(i(),!u)return;const f=Yi(d)?{...d}:d;s.push(...n.flatMap(h=>o.map(g=>c(u,h,g,f))))},{immediate:!0,flush:"post"}),l=()=>{p(),i()};return Ro(l),l}let Mo=!1;function Wo(e,t,n={}){const{window:o=Lo,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return Ae;Wt&&!Mo&&(Mo=!0,Array.from(o.document.body.children).forEach(u=>u.addEventListener("click",Ae)),o.document.documentElement.addEventListener("click",Ae));let c=!0;const p=u=>a.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(f=>f===u.target||u.composedPath().includes(f));{const f=Te(d);return f&&(u.target===f||u.composedPath().includes(f))}}),l=[Qe(o,"click",u=>{const d=Te(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(c=!p(u)),!c){c=!0;return}t(u)}},{passive:!0,capture:s}),Qe(o,"pointerdown",u=>{const d=Te(e);c=!p(u)&&!!(d&&!u.composedPath().includes(d))},{passive:!0}),i&&Qe(o,"blur",u=>{setTimeout(()=>{var d;const f=Te(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(u)},0)})].filter(Boolean);return()=>l.forEach(u=>u())}const Zi={[Bo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Wo(e,t.value,{capture:n});else{const[o,a]=t.value;e.__onClickOutside_stop=Wo(e,o,Object.assign({capture:n},a))}},[Bo.unmounted](e){e.__onClickOutside_stop()}};function Ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Uo(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:Uo(n)}}function ec(e){const t=e||window.event,n=t.target;return Uo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function tc(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(Xi(e),c=>{const p=Ut(Ve(c));if(p){const l=p;if(zt.get(l)||zt.set(l,l.style.overflow),l.style.overflow!=="hidden"&&(a=l.style.overflow),l.style.overflow==="hidden")return n.value=!0;if(n.value)return l.style.overflow="hidden"}},{immediate:!0});const s=()=>{const c=Ut(Ve(e));!c||n.value||(Wt&&(o=Qe(c,"touchmove",p=>{ec(p)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Ut(Ve(e));!c||!n.value||(Wt&&(o==null||o()),c.style.overflow=a,zt.delete(c),n.value=!1)};return Ro(i),r.computed({get(){return n.value},set(c){c?s():i()}})}function nc(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const a=tc(n,o.value);r.watch(t,s=>a.value=s)}}nc();class oc{constructor(t,n,o,a,s,i){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||crypto.randomUUID(),this.rows=o,this.columns=r.reactive(n),this.config=r.reactive(a),this.table=s||r.reactive(this.createTableObject()),this.display=this.createDisplayObject(i),this.modal=r.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[a,s]of this.rows.entries())t[`${n}:${a}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{rowModified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let a=this.rows.length-1;a>=0;a--){const s=this.rows[a];s.parent&&o.add(s.parent),n[a]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(a),isRoot:s.parent===null||s.parent===void 0,rowModified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return r.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return r.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){const a=`${n}:${t}`,s=this.columns[n];return this.table[a]!==o&&(this.display[t].rowModified=!0),this.table[a]=o,this.rows[t][s.name]=o,this.table[a]}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 rc={key:0,id:"resizable"},ac={class:"atable-header-row",tabindex:"-1"},sc=r.defineComponent({__name:"ATableHeader",props:{columns:{},tableid:{}},setup(e){const t=r.inject(e.tableid),n=r.computed(()=>t.columns.some(a=>a.pinned)),o=a=>({minWidth:a.width||"40ch",textAlign:a.align||"center",width:t.config.fullWidth?"auto":null});return(a,s)=>a.columns.length?(r.openBlock(),r.createElementBlock("thead",rc,[r.createElementVNode("tr",ac,[r.unref(t).zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[n.value?"sticky-index":"",r.unref(t).config.view==="tree"?"tree-index":"",r.unref(t).config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.columns,(i,c)=>(r.openBlock(),r.createElementBlock("th",{key:i.name,tabindex:"-1",style:r.normalizeStyle(o(i)),class:r.normalizeClass(i.pinned?"sticky-column":"")},[r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(i.label||String.fromCharCode(c+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),ic=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),cc=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=n,a=r.useTemplateRef("table"),s=e.modelValue?e.modelValue:e.rows,i=new oc(e.id,e.columns,s,e.config);r.provide(i.id,i),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&To(a,c,{childList:!0,subtree:!0}))});const c=()=>{const l=a.value,u=l.rows[0],d=l.rows[1],f=u?Array.from(u.cells):[];for(const[h,g]of f.entries()){const y=d.cells[h];y&&(g.style.width=`${y.offsetWidth}px`)}for(const h of l.rows){let g=0;const y=[];for(const _ of h.cells)(_.classList.contains("sticky-column")||_.classList.contains("sticky-index"))&&(_.style.left=`${g}px`,g+=_.offsetWidth,y.push(_));y.length>0&&y[y.length-1].classList.add("sticky-column-edge")}},p=l=>{var u;l.target instanceof Node&&(u=i.modal.parent)!=null&&u.contains(l.target)||i.modal.visible&&(i.modal.visible=!1)};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const u=i.modal.parent;u&&r.nextTick().then(()=>{u.focus()})}}),t({tableData:i}),(l,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(sc,{columns:r.unref(i).columns,tableid:r.unref(i).id},null,8,["columns","tableid"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(d,f)=>(r.openBlock(),r.createBlock(Ji,{key:d.id,row:d,rowIndex:f,tableid:r.unref(i).id},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(h,g)=>(r.openBlock(),r.createBlock(qi,{key:h.name,tableid:r.unref(i).id,col:h,spellcheck:"false",pinned:h.pinned,rowIndex:f,colIndex:g,component:h.cellComponent,style:r.normalizeStyle({textAlign:(h==null?void 0:h.align)||"center",minWidth:(h==null?void 0:h.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["tableid","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(ic,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,tableid:r.unref(i).id,style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,tableid:r.unref(i).id},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4)),[[r.unref(Zi),p]])}}),lc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},uc=lc(cc,[["__scopeId","data-v-183c4dd3"]]),zo=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=gn(),o={view:"list"};return(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(uc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),dc={class:"tabs"},pc={tabindex:"0"},fc={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"},hc={tabindex:"0"},mc={style:{width:"11pt"}},Fo=nt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),a=r.useTemplateRef("searchinput"),s=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{a.value.focus()})},p=d=>{d.preventDefault(),d.stopPropagation()},l=async d=>{d.preventDefault(),d.stopPropagation(),await c()},u=()=>{};return(d,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",dc,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",pc,[r.createElementVNode("div",{class:r.normalizeClass(s.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:u,onKeydown:r.withKeys(u,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",fc,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
37
|
+
</router-view>`)}}function Re(e,t){const n=A({},e,{matched:e.matched.map(o=>Ea(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Xe(e){return{_custom:{display:e}}}let da=0;function pa(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=da++;ft({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((d,u)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Re(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:d,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:so})}q(u.__vrl_devtools)&&(u.__devtoolsApi=s,u.__vrl_devtools.forEach(f=>{let m=f.route.path,h=co,v="",N=0;f.error?(m=f.error,h=ya,N=wa):f.isExactActive?(h=io,v="This is exactly active"):f.isActive&&(h=ao,v="This link is active"),d.tags.push({label:m,textColor:N,tooltip:v,backgroundColor:h})}))}),r.watch(t.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(c),s.sendInspectorState(c)});const a="router:navigations:"+o;s.addTimelineLayer({id:a,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((d,u)=>{s.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:s.now(),data:{error:d},groupId:u.meta.__navigationId}})});let i=0;t.beforeEach((d,u)=>{const f={guard:Xe("beforeEach"),from:Re(u,"Current Location during this navigation"),to:Re(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:i++}),s.addTimelineEvent({layerId:a,event:{time:s.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,u,f)=>{const m={guard:Xe("afterEach")};f?(m.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},m.status=Xe("❌")):m.status=Xe("✅"),m.from=Re(u,"Current Location during this navigation"),m.to=Re(d,"Target location"),s.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:d.fullPath,time:s.now(),data:m,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const c="router-inspector:"+o;s.addInspector({id:c,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!p)return;const d=p;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(po),d.filter&&(u=u.filter(f=>Ct(f,d.filter.toLowerCase()))),u.forEach(f=>uo(f,t.currentRoute.value)),d.rootNodes=u.map(lo)}let p;s.on.getInspectorTree(d=>{p=d,d.app===e&&d.inspectorId===c&&l()}),s.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===c){const u=n.getRoutes().find(f=>f.record.__vd_id===d.nodeId);u&&(d.state={options:ma(u)})}}),s.sendInspectorTree(c),s.sendInspectorState(c)})}function fa(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function ma(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${fa(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const so=15485081,ao=2450411,io=8702998,ha=2282478,co=16486972,ga=6710886,ya=16704226,wa=12131356;function lo(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:ha}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:co}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:so}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:io}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:ao}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:ga});let o=n.__vd_id;return o==null&&(o=String(ba++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(lo)}}let ba=0;const va=/^\/(.*)\/([a-z]*)$/;function uo(e,t){const n=t.matched.length&&le(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>le(o,e.record))),e.children.forEach(o=>uo(o,t))}function po(e){e.__vd_match=!1,e.children.forEach(po)}function Ct(e,t){const n=String(e.re).match(va);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(a=>Ct(a,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),s=be(o);return!t.startsWith("/")&&(s.includes(t)||o.includes(t))||s.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Ct(a,t))}function Ea(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function _a(e){const t=Gs(e.routes,e),n=e.parseQuery||ea,o=e.stringifyQuery||Xn,s=e.history;if(process.env.NODE_ENV!=="production"&&!s)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const a=Ie(),i=Ie(),c=Ie(),l=r.shallowRef(ue);let p=ue;te&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bt.bind(null,w=>""+w),u=bt.bind(null,ws),f=bt.bind(null,be);function m(w,_){let E,O;return Wn(w)?(E=t.getRecordMatcher(w),process.env.NODE_ENV!=="production"&&!E&&P(`Parent route "${String(w)}" not found when adding child route`,_),O=_):O=w,t.addRoute(O,E)}function h(w){const _=t.getRecordMatcher(w);_?t.removeRoute(_):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(w)}"`)}function v(){return t.getRoutes().map(w=>w.record)}function N(w){return!!t.getRecordMatcher(w)}function k(w,_){if(_=A({},_||l.value),typeof w=="string"){const D=_t(n,w,_.path),L=t.resolve({path:D.path},_),ge=s.createHref(D.fullPath);return process.env.NODE_ENV!=="production"&&(ge.startsWith("//")?P(`Location "${w}" resolved to "${ge}". A resolved location cannot start with multiple slashes.`):L.matched.length||P(`No match found for location with path "${w}"`)),A(D,L,{params:f(L.params),hash:be(D.hash),redirectedFrom:void 0,href:ge})}if(process.env.NODE_ENV!=="production"&&!Qe(w))return P(`router.resolve() was passed an invalid location. This will fail in production.
|
|
38
|
+
- Location:`,w),k({});let E;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&P(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),E=A({},w,{path:_t(n,w.path,_.path).path});else{const D=A({},w.params);for(const L in D)D[L]==null&&delete D[L];E=A({},w,{params:u(D)}),_.params=u(_.params)}const O=t.resolve(E,_),T=w.hash||"";process.env.NODE_ENV!=="production"&&T&&!T.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`),O.params=d(f(O.params));const U=Es(o,A({},w,{hash:hs(T),path:O.path})),I=s.createHref(U);return process.env.NODE_ENV!=="production"&&(I.startsWith("//")?P(`Location "${w}" resolved to "${I}". A resolved location cannot start with multiple slashes.`):O.matched.length||P(`No match found for location with path "${w.path!=null?w.path:w}"`)),A({fullPath:U,hash:T,query:o===Xn?ta(w.query):w.query||{}},O,{redirectedFrom:void 0,href:I})}function S(w){return typeof w=="string"?_t(n,w,l.value.path):A({},w)}function V(w,_){if(p!==w)return ve(8,{from:_,to:w})}function B(w){return b(w)}function $(w){return B(A(S(w),{replace:!0}))}function C(w){const _=w.matched[w.matched.length-1];if(_&&_.redirect){const{redirect:E}=_;let O=typeof E=="function"?E(w):E;if(typeof O=="string"&&(O=O.includes("?")||O.includes("#")?O=S(O):{path:O},O.params={}),process.env.NODE_ENV!=="production"&&O.path==null&&!("name"in O))throw P(`Invalid redirect found:
|
|
39
|
+
${JSON.stringify(O,null,2)}
|
|
40
|
+
when navigating to "${w.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return A({query:w.query,hash:w.hash,params:O.path!=null?{}:w.params},O)}}function b(w,_){const E=p=k(w),O=l.value,T=w.state,U=w.force,I=w.replace===!0,D=C(E);if(D)return b(A(S(D),{state:typeof D=="object"?A({},T,D.state):T,force:U,replace:I}),_||E);const L=E;L.redirectedFrom=_;let ge;return!U&&Tn(o,O,E)&&(ge=ve(16,{to:L,from:O}),lr(O,O,!0,!1)),(ge?Promise.resolve(ge):y(L,O)).catch(G=>ne(G)?ne(G,2)?G:nn(G):j(G,L,O)).then(G=>{if(G){if(ne(G,2))return process.env.NODE_ENV!=="production"&&Tn(o,k(G.to),L)&&_&&(_._count=_._count?_._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${O.fullPath}" to "${L.fullPath}". Aborting to avoid a Stack Overflow.
|
|
41
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):b(A({replace:I},S(G.to),{state:typeof G.to=="object"?A({},T,G.to.state):T,force:U}),_||L)}else G=M(L,O,!0,I,T);return x(L,O,G),G})}function R(w,_){const E=V(w,_);return E?Promise.reject(E):Promise.resolve()}function g(w){const _=at.values().next().value;return _&&typeof _.runWithContext=="function"?_.runWithContext(w):w()}function y(w,_){let E;const[O,T,U]=ka(w,_);E=xt(O.reverse(),"beforeRouteLeave",w,_);for(const D of O)D.leaveGuards.forEach(L=>{E.push(de(L,w,_))});const I=R.bind(null,w,_);return E.push(I),Oe(E).then(()=>{E=[];for(const D of a.list())E.push(de(D,w,_));return E.push(I),Oe(E)}).then(()=>{E=xt(T,"beforeRouteUpdate",w,_);for(const D of T)D.updateGuards.forEach(L=>{E.push(de(L,w,_))});return E.push(I),Oe(E)}).then(()=>{E=[];for(const D of U)if(D.beforeEnter)if(q(D.beforeEnter))for(const L of D.beforeEnter)E.push(de(L,w,_));else E.push(de(D.beforeEnter,w,_));return E.push(I),Oe(E)}).then(()=>(w.matched.forEach(D=>D.enterCallbacks={}),E=xt(U,"beforeRouteEnter",w,_,g),E.push(I),Oe(E))).then(()=>{E=[];for(const D of i.list())E.push(de(D,w,_));return E.push(I),Oe(E)}).catch(D=>ne(D,8)?D:Promise.reject(D))}function x(w,_,E){c.list().forEach(O=>g(()=>O(w,_,E)))}function M(w,_,E,O,T){const U=V(w,_);if(U)return U;const I=_===ue,D=te?history.state:{};E&&(O||I?s.replace(w.fullPath,A({scroll:I&&D&&D.scroll},T)):s.push(w.fullPath,T)),l.value=w,lr(w,_,E,I),nn()}let F;function ae(){F||(F=s.listen((w,_,E)=>{const O=k(w),T=C(O);if(T){b(A(T,{replace:!0}),O).catch(Pe);return}p=O;const U=l.value;te&&Cs(Mn(U.fullPath,E.delta),Ye()),y(O,U).catch(I=>ne(I,12)?I:ne(I,2)?(b(I.to,O).then(D=>{ne(D,20)&&!E.delta&&E.type===De.pop&&s.go(-1,!1)}).catch(Pe),Promise.reject()):(E.delta&&s.go(-E.delta,!1),j(I,O,U))).then(I=>{I=I||M(O,U,!1),I&&(E.delta&&!ne(I,8)?s.go(-E.delta,!1):E.type===De.pop&&ne(I,20)&&s.go(-1,!1)),x(O,U,I)}).catch(Pe)}))}let he=Ie(),Ne=Ie(),H;function j(w,_,E){nn(w);const O=Ne.list();return O.length?O.forEach(T=>T(w,_,E)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(w)),Promise.reject(w)}function Mc(){return H&&l.value!==ue?Promise.resolve():new Promise((w,_)=>{he.add([w,_])})}function nn(w){return H||(H=!w,ae(),he.list().forEach(([_,E])=>w?E(w):_()),he.reset()),w}function lr(w,_,E,O){const{scrollBehavior:T}=e;if(!te||!T)return Promise.resolve();const U=!E&&Ps(Mn(w.fullPath,0))||(O||!E)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>T(w,_,U)).then(I=>I&&xs(I)).catch(I=>j(I,w,_))}const on=w=>s.go(w);let rn;const at=new Set,Lc={currentRoute:l,listening:!0,addRoute:m,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:v,resolve:k,options:e,push:B,replace:$,go:on,back:()=>on(-1),forward:()=>on(1),beforeEach:a.add,beforeResolve:i.add,afterEach:c.add,onError:Ne.add,isReady:Mc,install(w){const _=this;w.component("RouterLink",sa),w.component("RouterView",la),w.config.globalProperties.$router=_,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(l)}),te&&!rn&&l.value===ue&&(rn=!0,B(s.location).catch(T=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",T)}));const E={};for(const T in ue)Object.defineProperty(E,T,{get:()=>l.value[T],enumerable:!0});w.provide(Ot,_),w.provide(eo,r.shallowReactive(E)),w.provide(St,l);const O=w.unmount;at.add(w),w.unmount=function(){at.delete(w),at.size<1&&(p=ue,F&&F(),F=null,l.value=ue,rn=!1,H=!1),O()},process.env.NODE_ENV!=="production"&&te&&pa(w,_,t)}};function Oe(w){return w.reduce((_,E)=>_.then(()=>g(E)),Promise.resolve())}return Lc}function ka(e,t){const n=[],o=[],s=[],a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const c=t.matched[i];c&&(e.matched.find(p=>le(p,c))?o.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(p=>le(p,l))||s.push(l))}return[n,o,s]}_a({history:Rs(),routes:[]});function $a(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Ee=Promise.resolve();function fo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Na(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Pt(){return Math.random().toString(36).substring(2)}var mo=0,Dt=0;function Ze(){var e=new Date().getTime();return e===mo?(Dt++,e*1e3+Dt):(mo=e,Dt=0,e*1e3)}var Oa=Ze,Sa="native";function xa(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Ca(e){e.bc.close(),e.subFns=[]}function Pa(e,t){try{return e.bc.postMessage(t,!1),Ee}catch(n){return Promise.reject(n)}}function Da(e,t){e.messagesCallback=t}function Va(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Ia(){return 150}var Ra={create:xa,close:Ca,onMessage:Da,postMessage:Pa,canBeUsed:Va,type:Sa,averageResponseTime:Ia,microSeconds:Oa},ho=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,go()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,Aa(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function Aa(e){for(var t=go()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var s=o[0],a=o[1];if(a<t)e.map.delete(s);else return}}function go(){return new Date().getTime()}function Vt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var Ta=Ze,ja="pubkey.broadcast-channel-0-",oe="messages",et={durability:"relaxed"},Ba="idb";function yo(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function It(e){e.commit&&e.commit()}function Ma(e){var t=yo(),n=ja+e,o=t.open(n);return o.onupgradeneeded=function(s){var a=s.target.result;a.createObjectStore(oe,{keyPath:"id",autoIncrement:!0})},new Promise(function(s,a){o.onerror=function(i){return a(i)},o.onsuccess=function(){s(o.result)}})}function La(e,t,n){var o=new Date().getTime(),s={uuid:t,time:o,data:n},a=e.transaction([oe],"readwrite",et);return new Promise(function(i,c){a.oncomplete=function(){return i()},a.onerror=function(p){return c(p)};var l=a.objectStore(oe);l.add(s),It(a)})}function Ua(e,t){var n=e.transaction(oe,"readonly",et),o=n.objectStore(oe),s=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(a);return new Promise(function(l,p){i.onerror=function(d){return p(d)},i.onsuccess=function(d){l(d.target.result)}})}function c(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(l,p){var d=c();d.onerror=function(u){return p(u)},d.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(s.push(f.value),f.continue()):(It(n),l(s))}})}function Wa(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(oe,"readwrite",et),o=n.objectStore(oe);return Promise.all(t.map(function(s){var a=o.delete(s);return new Promise(function(i){a.onsuccess=function(){return i()}})}))}function Fa(e,t){var n=new Date().getTime()-t,o=e.transaction(oe,"readonly",et),s=o.objectStore(oe),a=[];return new Promise(function(i){s.openCursor().onsuccess=function(c){var l=c.target.result;if(l){var p=l.value;p.time<n?(a.push(p),l.continue()):(It(o),i(a))}else i(a)}})}function za(e){return Fa(e.db,e.options.idb.ttl).then(function(t){return Wa(e,t.map(function(n){return n.id}))})}function Ha(e,t){return t=Vt(t),Ma(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Pt(),eMIs:new ho(t.idb.ttl*2),writeBlockPromise:Ee,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},wo(o),o})}function wo(e){e.closed||bo(e).then(function(){return fo(e.options.idb.fallbackInterval)}).then(function(){return wo(e)})}function Ga(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function bo(e){return e.closed||!e.messagesCallback?Ee:Ua(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return Ga(o,e)}).sort(function(o,s){return o.time-s.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),Ee})}function qa(e){e.closed=!0,e.db.close()}function Ja(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return La(e.db,e.uuid,t)}).then(function(){Na(0,10)===0&&za(e)}),e.writeBlockPromise}function Ka(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,bo(e)}function Ya(){return!!yo()}function Qa(e){return e.idb.fallbackInterval*2}var Xa={create:Ha,close:qa,onMessage:Ka,postMessage:Ja,canBeUsed:Ya,type:Ba,averageResponseTime:Qa,microSeconds:Ta},Za=Ze,ei="pubkey.broadcastChannel-",ti="localstorage";function vo(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Eo(e){return ei+e}function ni(e,t){return new Promise(function(n){fo().then(function(){var o=Eo(e.channelName),s={token:Pt(),time:new Date().getTime(),data:t,uuid:e.uuid},a=JSON.stringify(s);vo().setItem(o,a);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=a,window.dispatchEvent(i),n()})})}function oi(e,t){var n=Eo(e),o=function(s){s.key===n&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",o),o}function ri(e){window.removeEventListener("storage",e)}function si(e,t){if(t=Vt(t),!_o())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Pt(),o=new ho(t.localstorage.removeTimeout),s={channelName:e,uuid:n,eMIs:o};return s.listener=oi(e,function(a){s.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<s.messagesCallbackTime||(o.add(a.token),s.messagesCallback(a.data)))}),s}function ai(e){ri(e.listener)}function ii(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function _o(){var e=vo();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function ci(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var li={create:si,close:ai,onMessage:ii,postMessage:ni,canBeUsed:_o,type:ti,averageResponseTime:ci,microSeconds:Za},ui=Ze,di="simulate",Rt=new Set;function pi(e){var t={name:e,messagesCallback:null};return Rt.add(t),t}function fi(e){Rt.delete(e)}function mi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Rt);o.filter(function(s){return s.name===e.name}).filter(function(s){return s!==e}).filter(function(s){return!!s.messagesCallback}).forEach(function(s){return s.messagesCallback(t)}),n()},5)})}function hi(e,t){e.messagesCallback=t}function gi(){return!0}function yi(){return 5}var wi={create:pi,close:fi,onMessage:hi,postMessage:mi,canBeUsed:gi,type:di,averageResponseTime:yi,microSeconds:ui},ko=[Ra,Xa,li];function bi(e){var t=[].concat(e.methods,ko).filter(Boolean);if(e.type){if(e.type==="simulate")return wi;var n=t.find(function(s){return s.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(s){return s.type!=="idb"}));var o=t.find(function(s){return s.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(ko.map(function(s){return s.type})))}var $o=new Set,vi=0,At=function(e,t){this.id=vi++,$o.add(this),this.name=e,this.options=Vt(t),this.method=bi(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Ei(this)};At._pubkey=!0,At.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return No(this,"message",e)},postInternal:function(e){return No(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};xo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,So(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};So(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});xo(this,e,n)},close:function(){var e=this;if(!this.closed){$o.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Ee;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function No(e,t,n){var o=e.method.microSeconds(),s={time:o,type:t,data:n},a=e._prepP?e._prepP:Ee;return a.then(function(){var i=e.method.postMessage(e._state,s);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}function Ei(e){var t=e.method.create(e.name,e.options);$a(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function Oo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function So(e,t,n){e._addEL[t].push(n),_i(e)}function xo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ki(e)}function _i(e){if(!e._iL&&Oo(e)){var t=function(o){e._addEL[o.type].forEach(function(s){var a=1e5,i=s.time-a;o.time>=i&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ki(e){if(e._iL&&!Oo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Tt=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function Co(e){return Object(e)!==e}const $i=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ni(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===$i}function Oi(e){return Object.prototype.toString.call(e).slice(8,-1)}function Si(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
42
|
+
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function _e(e){let t="",n=0;const o=e.length;for(let s=0;s<o;s+=1){const a=e[s],i=Si(a);i&&(t+=e.slice(n,s)+i,n=s+1)}return`"${n===0?e:t+e.slice(n)}"`}const jt=-1,Po=-2,Do=-3,Vo=-4,Io=-5,Bt=-6;function Ro(e,t){return xi(JSON.parse(e))}function xi(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function s(a,i=!1){if(a===jt)return;if(a===Do)return NaN;if(a===Vo)return 1/0;if(a===Io)return-1/0;if(a===Bt)return-0;if(i)throw new Error("Invalid input");if(a in o)return o[a];const c=n[a];if(!c||typeof c!="object")o[a]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0];switch(l){case"Date":o[a]=new Date(c[1]);break;case"Set":const p=new Set;o[a]=p;for(let f=1;f<c.length;f+=1)p.add(s(c[f]));break;case"Map":const d=new Map;o[a]=d;for(let f=1;f<c.length;f+=2)d.set(s(c[f]),s(c[f+1]));break;case"RegExp":o[a]=new RegExp(c[1],c[2]);break;case"Object":o[a]=Object(c[1]);break;case"BigInt":o[a]=BigInt(c[1]);break;case"null":const u=Object.create(null);o[a]=u;for(let f=1;f<c.length;f+=2)u[c[f]]=s(c[f+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(c.length);o[a]=l;for(let p=0;p<c.length;p+=1){const d=c[p];d!==Po&&(l[p]=s(d))}}else{const l={};o[a]=l;for(const p in c){const d=c[p];l[p]=s(d)}}return o[a]}return s(0)}function Ao(e,t){const n=[],o=new Map,s=[];for(const p in t)s.push({key:p,fn:t[p]});const a=[];let i=0;function c(p){if(typeof p=="function")throw new Tt("Cannot stringify a function",a);if(o.has(p))return o.get(p);if(p===void 0)return jt;if(Number.isNaN(p))return Do;if(p===1/0)return Vo;if(p===-1/0)return Io;if(p===0&&1/p<0)return Bt;const d=i++;o.set(p,d);for(const{key:f,fn:m}of s){const h=m(p);if(h)return n[d]=`["${f}",${c(h)}]`,d}let u="";if(Co(p))u=Mt(p);else switch(Oi(p)){case"Number":case"String":case"Boolean":u=`["Object",${Mt(p)}]`;break;case"BigInt":u=`["BigInt",${p}]`;break;case"Date":u=`["Date","${isNaN(p.getDate())?"":p.toISOString()}"]`;break;case"RegExp":const{source:f,flags:m}=p;u=m?`["RegExp",${_e(f)},"${m}"]`:`["RegExp",${_e(f)}]`;break;case"Array":u="[";for(let h=0;h<p.length;h+=1)h>0&&(u+=","),h in p?(a.push(`[${h}]`),u+=c(p[h]),a.pop()):u+=Po;u+="]";break;case"Set":u='["Set"';for(const h of p)u+=`,${c(h)}`;u+="]";break;case"Map":u='["Map"';for(const[h,v]of p)a.push(`.get(${Co(h)?Mt(h):"..."})`),u+=`,${c(h)},${c(v)}`,a.pop();u+="]";break;default:if(!Ni(p))throw new Tt("Cannot stringify arbitrary non-POJOs",a);if(Object.getOwnPropertySymbols(p).length>0)throw new Tt("Cannot stringify POJOs with symbolic keys",a);if(Object.getPrototypeOf(p)===null){u='["null"';for(const h in p)a.push(`.${h}`),u+=`,${_e(h)},${c(p[h])}`,a.pop();u+="]"}else{u="{";let h=!1;for(const v in p)h&&(u+=","),h=!0,a.push(`.${v}`),u+=`${_e(v)}:${c(p[v])}`,a.pop();u+="}"}}return n[d]=u,d}const l=c(e);return l<0?`${l}`:`[${n.join(",")}]`}function Mt(e){const t=typeof e;return t==="string"?_e(e):e instanceof String?_e(e.toString()):e===void 0?jt.toString():e===0&&1/e<0?Bt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function Ci(e,t,{initialize:n,type:o}){let s=`${t.$id}-${e.toString()}`,a=new At(s,{type:o}),i=!1,c=0;r.watch(()=>t[e],d=>{i||(c=Date.now(),a.postMessage({timestamp:c,state:Ro(Ao(d))})),i=!1},{deep:!0}),a.onmessage=d=>{if(d===void 0){a.postMessage({timestamp:c,state:Ro(Ao(t[e]))});return}d.timestamp<=c||(i=!0,c=d.timestamp,t[e]=d.state)};let l=()=>a.postMessage(void 0),p=()=>a.close();return n&&l(),{sync:l,unshare:p}}var Pi=(e,t)=>Object.keys(t).includes(e),Di=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:s})=>{var a,i;let c=((a=s==null?void 0:s.share)==null?void 0:a.enable)??t,l=((i=s==null?void 0:s.share)==null?void 0:i.omit)??[];!c||Object.keys(o.$state).forEach(p=>{var d;l.includes(p)||!Pi(p,o.$state)||Ci(p,o,{initialize:((d=s==null?void 0:s.share)==null?void 0:d.initialize)??e,type:n})})};Zr().use(Di({enable:!0,initialize:!0}));const To=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=xn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let s=t.value.schema.schema.toArray();s.forEach((a,i)=>{const l=t.value.store.record[a.fieldname];s[i].value=l}),o.value=s}}),(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Nr),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var Vi=!1;function tt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Lt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
43
|
+
* pinia v2.3.0
|
|
44
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
45
|
+
* @license MIT
|
|
46
|
+
*/let Ae;const nt=e=>Ae=e,Ii=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function me(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Te;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Te||(Te={}));const je=typeof window<"u",Ut=typeof navigator=="object"?navigator:{userAgent:""};/Macintosh/.test(Ut.userAgent)&&/AppleWebKit/.test(Ut.userAgent)&&/Safari/.test(Ut.userAgent);function jo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];me(s)&&me(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=jo(s,o):e[n]=o}return e}const Bo=()=>{};function Mo(e,t,n,o=Bo){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function ke(e,...t){e.slice().forEach(n=>{n(...t)})}const Ri=e=>e(),Lo=Symbol(),Wt=Symbol();function Ft(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];me(s)&&me(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Ft(s,o):e[n]=o}return e}const Ai=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ti(e){return!me(e)||!e.hasOwnProperty(Ai)}const{assign:Q}=Object;function Uo(e){return!!(r.isRef(e)&&e.effect)}function Wo(e,t,n,o){const{state:s,actions:a,getters:i}=t,c=n.state.value[e];let l;function p(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return Q(d,a,Object.keys(i||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=r.markRaw(r.computed(()=>{nt(n);const m=n._s.get(e);return i[f].call(m,m)})),u),{}))}return l=zt(e,p,t,n,o,!0),l}function zt(e,t,n={},o,s,a){let i;const c=Q({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Vi&&(l.onTrigger=g=>{p?m=g:p==!1&&!b._hotUpdating&&(Array.isArray(m)?m.push(g):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,d,u=[],f=[],m;const h=o.state.value[e];!a&&!h&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const v=r.ref({});let N;function k(g){let y;p=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof g=="function"?(g(o.state.value[e]),y={type:Te.patchFunction,storeId:e,events:m}):(Ft(o.state.value[e],g),y={type:Te.patchObject,payload:g,storeId:e,events:m});const x=N=Symbol();r.nextTick().then(()=>{N===x&&(p=!0)}),d=!0,ke(u,y,o.state.value[e])}const S=a?function(){const{state:g}=n,y=g?g():{};this.$patch(x=>{Q(x,y)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Bo;function V(){i.stop(),u=[],f=[],o._s.delete(e)}const B=(g,y="")=>{if(Lo in g)return g[Wt]=y,g;const x=function(){nt(o);const M=Array.from(arguments),F=[],ae=[];function he(j){F.push(j)}function Ne(j){ae.push(j)}ke(f,{args:M,name:x[Wt],store:b,after:he,onError:Ne});let H;try{H=g.apply(this&&this.$id===e?this:b,M)}catch(j){throw ke(ae,j),j}return H instanceof Promise?H.then(j=>(ke(F,j),j)).catch(j=>(ke(ae,j),Promise.reject(j))):(ke(F,H),H)};return x[Lo]=!0,x[Wt]=y,x},$=r.markRaw({actions:{},getters:{},state:[],hotState:v}),C={_p:o,$id:e,$onAction:Mo.bind(null,f),$patch:k,$reset:S,$subscribe(g,y={}){const x=Mo(u,g,y.detached,()=>M()),M=i.run(()=>r.watch(()=>o.state.value[e],F=>{(y.flush==="sync"?d:p)&&g({storeId:e,type:Te.direct,events:m},F)},Q({},l,y)));return x},$dispose:V},b=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&je?Q({_hmrPayload:$,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,b);const R=(o._a&&o._a.runWithContext||Ri)(()=>o._e.run(()=>(i=r.effectScope()).run(()=>t({action:B}))));for(const g in R){const y=R[g];if(r.isRef(y)&&!Uo(y)||r.isReactive(y))process.env.NODE_ENV!=="production"&&s?tt(v.value,g,r.toRef(R,g)):a||(h&&Ti(y)&&(r.isRef(y)?y.value=h[g]:Ft(y,h[g])),o.state.value[e][g]=y),process.env.NODE_ENV!=="production"&&$.state.push(g);else if(typeof y=="function"){const x=process.env.NODE_ENV!=="production"&&s?y:B(y,g);R[g]=x,process.env.NODE_ENV!=="production"&&($.actions[g]=y),c.actions[g]=y}else process.env.NODE_ENV!=="production"&&Uo(y)&&($.getters[g]=a?n.getters[g]:y,je&&(R._getters||(R._getters=r.markRaw([]))).push(g))}if(Q(b,R),Q(r.toRaw(b),R),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?v.value:o.state.value[e],set:g=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");k(y=>{Q(y,g)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=r.markRaw(g=>{b._hotUpdating=!0,g._hmrPayload.state.forEach(y=>{if(y in b.$state){const x=g.$state[y],M=b.$state[y];typeof x=="object"&&me(x)&&me(M)?jo(x,M):g.$state[y]=M}tt(b,y,r.toRef(g.$state,y))}),Object.keys(b.$state).forEach(y=>{y in g.$state||Lt(b,y)}),p=!1,d=!1,o.state.value[e]=r.toRef(g._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{p=!0});for(const y in g._hmrPayload.actions){const x=g[y];tt(b,y,B(x,y))}for(const y in g._hmrPayload.getters){const x=g._hmrPayload.getters[y],M=a?r.computed(()=>(nt(o),x.call(b,b))):x;tt(b,y,M)}Object.keys(b._hmrPayload.getters).forEach(y=>{y in g._hmrPayload.getters||Lt(b,y)}),Object.keys(b._hmrPayload.actions).forEach(y=>{y in g._hmrPayload.actions||Lt(b,y)}),b._hmrPayload=g._hmrPayload,b._getters=g._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&je){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(y=>{Object.defineProperty(b,y,Q({value:b[y]},g))})}return o._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&je){const y=i.run(()=>g({store:b,app:o._a,pinia:o,options:c}));Object.keys(y||{}).forEach(x=>b._customProperties.add(x)),Q(b,y)}else Q(b,i.run(()=>g({store:b,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
47
|
+
state: () => new MyClass()
|
|
48
|
+
Found in store "${b.$id}".`),h&&a&&n.hydrate&&n.hydrate(b.$state,h),p=!0,d=!0,b}/*! #__NO_SIDE_EFFECTS__ */function ji(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(c,l){const p=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Ae&&Ae._testing?null:c)||(p?r.inject(Ii,null):null),c&&nt(c),process.env.NODE_ENV!=="production"&&!Ae)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
49
|
+
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
50
|
+
This will fail in production.`);c=Ae,c._s.has(o)||(a?zt(o,t,s,c):Wo(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const d=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=a?zt(u,t,s,c,!0):Wo(u,Q({},s),c,!0);l._hotUpdate(f),delete c.state.value[u],c._s.delete(u)}if(process.env.NODE_ENV!=="production"&&je){const u=r.getCurrentInstance();if(u&&u.proxy&&!l){const f=u.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[o]=d}}return d}return i.$id=o,i}function Fo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ht(e){return typeof e=="function"?e():r.unref(e)}const Bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mi=e=>e!=null,Li=Object.prototype.toString,Ui=e=>Li.call(e)==="[object Object]",Wi=()=>{},Be=Bi?window:void 0;function Me(e){var t;const n=Ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Le(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=Be):[t,n,o,s]=e,!t)return Wi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),l=r.watch(()=>[Me(t),Ht(s)],([d,u])=>{if(i(),!d)return;const f=Ui(u)?{...u}:u;a.push(...n.flatMap(m=>o.map(h=>c(d,m,h,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Fo(p),p}function Fi(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function zi(e){const t=Fi();return r.computed(()=>(t.value,!!e()))}function Hi(e,t,n={}){const{window:o=Be,...s}=n;let a;const i=zi(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=Ht(e),m=(Array.isArray(f)?f:[f]).map(Me).filter(Mi);return new Set(m)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(m=>a.observe(m,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return Fo(u),{isSupported:i,stop:u,takeRecords:d}}function Gi(e={}){var t;const{window:n=Be,deep:o=!0,triggerOnRemoval:s=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var p;let d=a==null?void 0:a.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(p=d==null?void 0:d.shadowRoot)==null?void 0:p.activeElement;return d},c=r.ref(),l=()=>{c.value=i()};return n&&(Le(n,"blur",p=>{p.relatedTarget===null&&l()},!0),Le(n,"focus",l,!0)),s&&Hi(a,p=>{p.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}const qi="focusin",Ji="focusout";function Ki(e,t={}){const{window:n=Be}=t,o=r.computed(()=>Me(e)),s=r.ref(!1),a=r.computed(()=>s.value),i=Gi(t);return!n||!i.value?{focused:a}:(Le(o,qi,()=>s.value=!0),Le(o,Ji,()=>s.value=!1),{focused:a})}function Yi(e,{window:t=Be,scrollTarget:n}={}){const o=r.ref(!1),s=()=>{if(!t)return;const a=t.document,i=Me(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||a.documentElement.clientHeight)&&c.left<=(t.innerWidth||a.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Me(e),()=>s(),{immediate:!0,flush:"post"}),t&&Le(n||t,"scroll",s,{capture:!1,passive:!0}),o}const re=e=>{let t=Yi(e).value;return t=t&&e.offsetHeight>0,t},se=e=>e.tabIndex>=0,zo=e=>{const t=e.target;return Gt(t)},Gt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!se(n)||!re(n))?Gt(n):n},Qi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.firstElementChild;a&&(o=a)}}return o&&(!se(o)||!re(o))?qt(o):o},Ho=e=>{const t=e.target;return qt(t)},qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!se(n)||!re(n))?qt(n):n},Xi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.lastElementChild;a&&(o=a)}}return o&&(!se(o)||!re(o))?Gt(o):o},Go=e=>{const t=e.target;return Jt(t)},Jt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!se(n)||!re(n))?Jt(n):n},qo=e=>{const t=e.target;return Kt(t)},Kt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!se(n)||!re(n))?Kt(n):n},Jo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!se(t)||!re(t))?Kt(t):t},Ko=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!se(t)||!re(t))?Jt(t):t},ot=["alt","control","shift","meta"],Zi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Yt={"keydown.up":e=>{const t=zo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=qo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Qi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Xi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ho(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=zo(e);t&&t.focus()}},"keydown.home":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=qo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Yo(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let l=[];if(typeof i.selectors=="string")l=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const p of i.selectors)p instanceof HTMLElement?l.push(p):l.push(p.$el);else if(i.selectors instanceof HTMLElement)l.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const p of i.selectors.value)p instanceof HTMLElement?l.push(p):l.push(p.$el);else l.push(i.selectors.value);return l},o=i=>{const c=t(i);let l=[];return i.selectors?l=n(i):c&&(l=Array.from(c.children).filter(p=>se(p)&&re(p))),l},s=i=>c=>{const l=Zi[c.key]||c.key.toLowerCase();if(ot.includes(l))return;const p=i.handlers||Yt;for(const d of Object.keys(p)){const[u,...f]=d.split(".");if(u==="keydown"&&f.includes(l)){const m=p[d],h=f.filter(N=>ot.includes(N)),v=ot.some(N=>{const k=N.charAt(0).toUpperCase()+N.slice(1);return c.getModifierState(k)});if(h.length>0){if(v){for(const N of ot)if(f.includes(N)){const k=N.charAt(0).toUpperCase()+N.slice(1);c.getModifierState(k)&&m(c)}}}else v||m(c)}}},a=[];r.onMounted(()=>{for(const i of e){const c=t(i),l=o(i),p=s(i),d=c?[c]:l;for(const u of d){const{focused:f}=Ki(r.ref(u)),m=r.watch(f,h=>{h?u.addEventListener("keydown",p):u.removeEventListener("keydown",p)});a.push(m)}}}),r.onBeforeUnmount(()=>{for(const i of a)i()})}function Qo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ue(e){return typeof e=="function"?e():r.unref(e)}const Xo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ec=Object.prototype.toString,tc=e=>ec.call(e)==="[object Object]",We=()=>{},Qt=nc();function nc(){var e,t;return Xo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Zo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function oc(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:We}))):r.ref(t)}function Fe(e){var t;const n=Ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const er=Xo?window:void 0;function rt(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=er):[t,n,o,s]=e,!t)return We;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),l=r.watch(()=>[Fe(t),Ue(s)],([d,u])=>{if(i(),!d)return;const f=tc(u)?{...u}:u;a.push(...n.flatMap(m=>o.map(h=>c(d,m,h,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return Qo(p),p}let tr=!1;function nr(e,t,n={}){const{window:o=er,ignore:s=[],capture:a=!0,detectIframe:i=!1}=n;if(!o)return We;Qt&&!tr&&(tr=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",We)),o.document.documentElement.addEventListener("click",We));let c=!0;const l=d=>s.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===d.target||d.composedPath().includes(f));{const f=Fe(u);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[rt(o,"click",d=>{const u=Fe(e);if(!(!u||u===d.target||d.composedPath().includes(u))){if(d.detail===0&&(c=!l(d)),!c){c=!0;return}t(d)}},{passive:!0,capture:a}),rt(o,"pointerdown",d=>{const u=Fe(e);c=!l(d)&&!!(u&&!d.composedPath().includes(u))},{passive:!0}),i&&rt(o,"blur",d=>{setTimeout(()=>{var u;const f=Fe(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>p.forEach(d=>d())}const rc={[Zo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=nr(e,t.value,{capture:n});else{const[o,s]=t.value;e.__onClickOutside_stop=nr(e,o,Object.assign({capture:n},s))}},[Zo.unmounted](e){e.__onClickOutside_stop()}};function Xt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function or(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:or(n)}}function sc(e){const t=e||window.event,n=t.target;return or(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Zt=new WeakMap;function ac(e,t=!1){const n=r.ref(t);let o=null,s="";r.watch(oc(e),c=>{const l=Xt(Ue(c));if(l){const p=l;if(Zt.get(p)||Zt.set(p,p.style.overflow),p.style.overflow!=="hidden"&&(s=p.style.overflow),p.style.overflow==="hidden")return n.value=!0;if(n.value)return p.style.overflow="hidden"}},{immediate:!0});const a=()=>{const c=Xt(Ue(e));!c||n.value||(Qt&&(o=rt(c,"touchmove",l=>{sc(l)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=Xt(Ue(e));!c||!n.value||(Qt&&(o==null||o()),c.style.overflow=s,Zt.delete(c),n.value=!1)};return Qo(i),r.computed({get(){return n.value},set(c){c?a():i()}})}function ic(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const s=ac(n,o.value);r.watch(t,a=>s.value=a)}}ic();function en(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function st(e){return typeof e=="function"?e():r.unref(e)}const cc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const lc=e=>e!=null,uc=Object.prototype.toString,dc=e=>uc.call(e)==="[object Object]",pc=()=>{};function fc(e){return r.getCurrentInstance()}function mc(e,t=!0,n){fc()?r.onMounted(e,n):t?e():r.nextTick(e)}const tn=cc?window:void 0;function $e(e){var t;const n=st(e);return(t=n==null?void 0:n.$el)!=null?t:n}function rr(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=tn):[t,n,o,s]=e,!t)return pc;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),l=r.watch(()=>[$e(t),st(s)],([d,u])=>{if(i(),!d)return;const f=dc(u)?{...u}:u;a.push(...n.flatMap(m=>o.map(h=>c(d,m,h,f))))},{immediate:!0,flush:"post"}),p=()=>{l(),i()};return en(p),p}function hc(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function sr(e){const t=hc();return r.computed(()=>(t.value,!!e()))}function ar(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const f=st(e),m=(Array.isArray(f)?f:[f]).map($e).filter(lc);return new Set(m)}),p=r.watch(()=>l.value,f=>{c(),i.value&&f.size&&(a=new MutationObserver(t),f.forEach(m=>a.observe(m,s)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),u=()=>{p(),c()};return en(u),{isSupported:i,stop:u,takeRecords:d}}function gc(e,t,n={}){const{window:o=tn,...s}=n;let a;const i=sr(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const u=st(e);return Array.isArray(u)?u.map(f=>$e(f)):[$e(u)]}),p=r.watch(l,u=>{if(c(),i.value&&o){a=new ResizeObserver(t);for(const f of u)f&&a.observe(f,s)}},{immediate:!0,flush:"post"}),d=()=>{c(),p()};return en(d),{isSupported:i,stop:d}}function yc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:a=!0,updateTiming:i="sync"}=t,c=r.ref(0),l=r.ref(0),p=r.ref(0),d=r.ref(0),u=r.ref(0),f=r.ref(0),m=r.ref(0),h=r.ref(0);function v(){const k=$e(e);if(!k){n&&(c.value=0,l.value=0,p.value=0,d.value=0,u.value=0,f.value=0,m.value=0,h.value=0);return}const S=k.getBoundingClientRect();c.value=S.height,l.value=S.bottom,p.value=S.left,d.value=S.right,u.value=S.top,f.value=S.width,m.value=S.x,h.value=S.y}function N(){i==="sync"?v():i==="next-frame"&&requestAnimationFrame(()=>v())}return gc(e,N),r.watch(()=>$e(e),k=>!k&&N()),ar(e,N,{attributeFilter:["style","class"]}),s&&rr("scroll",N,{capture:!0,passive:!0}),o&&rr("resize",N,{passive:!0}),mc(()=>{a&&N()}),{height:c,bottom:l,left:p,right:d,top:u,width:f,x:m,y:h,update:N}}const wc=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},bc=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],vc=["innerHTML"],Ec={key:2},_c=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.useTemplateRef("cell"),{bottom:n,left:o}=yc(t),s=e.store.getCellData(e.colIndex,e.rowIndex),a=e.store.getCellDisplayValue(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),l=e.store.columns[e.colIndex],p=e.store.rows[e.rowIndex],d=l.align||"center",u=l.width||"40ch",f=r.computed(()=>typeof a=="string"?wc(a):!1),m=r.computed(()=>{var k;return{textAlign:d,width:u,backgroundColor:c.value?"var(--sc-cell-modified)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:e.store.getIndent(e.colIndex,(k=e.store.display[e.rowIndex])==null?void 0:k.indent)}}),h=()=>{l.mask,l.modalComponent&&e.store.$patch(k=>{k.modal.visible=!0,k.modal.colIndex=e.colIndex,k.modal.rowIndex=e.rowIndex,k.modal.parent=t.value,k.modal.top=n.value,k.modal.left=o.value,k.modal.width=u,typeof l.modalComponent=="function"?k.modal.component=l.modalComponent({table:k.table,row:p,column:l}):k.modal.component=l.modalComponent,k.modal.componentProps=l.modalComponentExtraProps})};if(e.addNavigation){let k={...Yt,"keydown.f2":h,"keydown.alt.up":h,"keydown.alt.down":h,"keydown.alt.left":h,"keydown.alt.right":h};typeof e.addNavigation=="object"&&(k={...k,...e.addNavigation}),Yo([{selectors:t,handlers:k}])}const v=()=>{t.value&&(i.value=t.value.textContent)},N=()=>{t.value&&(l.format?c.value=t.value.textContent!==e.store.getFormattedValue(e.colIndex,e.rowIndex,s):c.value=t.value.textContent!==s,t.value.textContent!==i.value&&(i.value=t.value.textContent,t.value.dispatchEvent(new Event("change")),l.format||e.store.setCellData(e.colIndex,e.rowIndex,i.value)))};return(k,S)=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":k.colIndex,"data-rowindex":k.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:k.tabIndex,spellcheck:!1,style:r.normalizeStyle(m.value),onFocus:v,onPaste:N,onBlur:N,onInput:N,onClick:h,class:r.normalizeClass(["atable-cell",k.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:r.unref(a)},r.unref(l).cellComponentProps),null,16,["value"])):f.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:r.unref(a)},null,8,vc)):(r.openBlock(),r.createElementBlock("span",Ec,r.toDisplayString(r.unref(a)),1))],46,bc)),[[r.unref(rc),k.store.closeModal]])}}),kc=["tabindex"],$c=r.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.useTemplateRef("rowEl"),n=e.store.isRowVisible(e.rowIndex),o=e.store.getRowExpandSymbol(e.rowIndex);if(e.addNavigation){let s=Yt;typeof e.addNavigation=="object"&&(s={...s,...e.addNavigation}),Yo([{selectors:t,handlers:s}])}return(s,a)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"table-row"},[s.store.config.view!=="uncounted"?r.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},r.toDisplayString(s.rowIndex+1),3)):s.store.config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>s.store.toggleRowExpand(s.rowIndex))},r.toDisplayString(r.unref(o)),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"default")],8,kc)),[[r.vShow,r.unref(n)]])}}),Nc={key:0,id:"resizable"},Oc={class:"atable-header-row",tabindex:"-1"},Sc=r.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){return(t,n)=>t.columns.length?(r.openBlock(),r.createElementBlock("thead",Nc,[r.createElementVNode("tr",Oc,[t.store.zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.config.view==="tree"?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,(o,s)=>(r.openBlock(),r.createElementBlock("th",{key:o.name,tabindex:"-1",style:r.normalizeStyle(t.store.getHeaderCellStyle(o)),class:r.normalizeClass(o.pinned?"sticky-column":"")},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.label||String.fromCharCode(s+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),xc=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},store:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),Cc=e=>{const t=e.id||crypto.randomUUID();return ji(`table-${t}`,()=>{const n=()=>{const $={};for(const[C,b]of s.value.entries())for(const[R,g]of a.value.entries())$[`${C}:${R}`]=g[b.name];return $},o=$=>{const C=[Object.assign({},{rowModified:!1})];if($&&"0:0"in $)return $;const b=new Set;for(let R=a.value.length-1;R>=0;R--){const g=a.value[R];g.parent&&b.add(g.parent),C[R]={childrenOpen:!1,expanded:!1,indent:g.indent||null,isParent:b.has(R),isRoot:g.parent===null||g.parent===void 0,rowModified:!1,open:g.parent===null||g.parent===void 0,parent:g.parent}}return C},s=r.ref(e.columns),a=r.ref(e.rows),i=r.ref(e.config||{}),c=r.ref(e.table||n()),l=r.ref(o(e.display)),p=r.ref(e.modal||{visible:!1}),d=r.computed(()=>s.value.some($=>$.pinned)),u=r.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),f=r.computed(()=>["list","tree","list-expansion"].includes(i.value.view)),m=($,C)=>c.value[`${$}:${C}`],h=($,C,b)=>{const R=`${$}:${C}`,g=s.value[$];c.value[R]!==b&&(l.value[C].rowModified=!0),c.value[R]=b,a.value[C][g.name]=b},v=$=>({minWidth:$.width||"40ch",textAlign:$.align||"center",width:i.value.fullWidth?"auto":null}),N=$=>i.value.view!=="tree"||l.value[$].isRoot||l.value[$].open,k=$=>i.value.view!=="tree"?"":l.value[$].isRoot||l.value[$].isParent?l.value[$].childrenOpen?"-":"+":"",S=$=>{if(i.value.view==="tree"){l.value[$].childrenOpen=!l.value[$].childrenOpen;for(let C=a.value.length-1;C>=0;C--)l.value[C].parent===$&&(l.value[C].open=!l.value[C].open,l.value[C].childrenOpen&&S(C))}else i.value.view==="list-expansion"&&(l.value[$].expanded=!l.value[$].expanded)},V=($,C)=>{const b=m($,C);return B($,C,b)},B=($,C,b)=>{const R=s.value[$],g=a.value[C],y=R.format;return y?typeof y=="function"?y(b,{table:c.value,row:g,column:R}):typeof y=="string"?Function(`"use strict";return (${y})`)()(b,{table:c.value,row:g,column:R}):b:b};return{columns:s,rows:a,config:i,table:c,display:l,modal:p,hasPinnedColumns:d,numberedRowWidth:u,zeroColumn:f,closeModal:$=>{var C;$.target instanceof Node&&(C=p.value.parent)!=null&&C.contains($.target)||p.value.visible&&(p.value.visible=!1)},getCellData:m,getCellDisplayValue:V,getFormattedValue:B,getHeaderCellStyle:v,getIndent:($,C)=>C&&$===0&&C>0?`${C}ch`:"inherit",getRowExpandSymbol:k,isRowVisible:N,setCellData:h,toggleRowExpand:S}})()},Pc=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate"],setup(e,{expose:t,emit:n}){const o=n,s=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,i=Cc({columns:e.columns,rows:a,id:e.id,config:e.config});i.$onAction(({name:l,store:p,args:d})=>{if(l==="setCellData"){const[u,f,m]=d,h=p.getCellData(u,f);o("cellUpdate",[u,f,m,h])}}),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&ar(s,c,{childList:!0,subtree:!0}))});const c=()=>{const l=s.value,p=l.rows[0],d=l.rows[1],u=p?Array.from(p.cells):[];for(const[f,m]of u.entries()){const h=d.cells[f];h&&(m.style.width=`${h.offsetWidth}px`)}for(const f of l.rows){let m=0;const h=[];for(const v of f.cells)(v.classList.contains("sticky-column")||v.classList.contains("sticky-index"))&&(v.style.left=`${m}px`,m+=v.offsetWidth,h.push(v));h.length>0&&h[h.length-1].classList.add("sticky-column-edge")}};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const p=i.modal.parent;p&&r.nextTick().then(()=>{p.focus()})}}),t({store:i}),(l,p)=>(r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(Sc,{columns:r.unref(i).columns,store:r.unref(i)},null,8,["columns","store"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(d,u)=>(r.openBlock(),r.createBlock($c,{key:d.id,row:d,rowIndex:u,store:r.unref(i)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(f,m)=>(r.openBlock(),r.createBlock(_c,{key:f.name,store:r.unref(i),col:f,spellcheck:"false",pinned:f.pinned,rowIndex:u,colIndex:m,component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["store","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(xc,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i),style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i)},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["colIndex","rowIndex","store","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4))}}),Dc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Vc=Dc(Pc,[["__scopeId","data-v-20244978"]]),ir=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=xn(),o={view:"list"};return(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Vc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),Ic={class:"tabs"},Rc={tabindex:"0"},Ac={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},Tc={tabindex:"0"},jc={style:{width:"11pt"}},cr=lt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),s=r.useTemplateRef("searchinput"),a=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{s.value.focus()})},l=u=>{u.preventDefault(),u.stopPropagation()},p=async u=>{u.preventDefault(),u.stopPropagation(),await c()},d=()=>{};return(u,f)=>{const m=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",Ic,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",Rc,[r.createElementVNode("div",{class:r.normalizeClass(a.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(m,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",Ac,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
43
51
|
c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
|
|
44
52
|
c2.414,0.39,4.511,1.845,5.731,3.942l47.43,47.43V58.499c0-4.487,3.633-8.129,8.129-8.129h47.755c4.495,0,8.129,3.642,8.129,8.129
|
|
45
53
|
v79.156l91.39,91.398c2.325,2.325,3.024,5.828,1.764,8.868c-1.26,3.032-4.227,5.007-7.511,5.007c-0.008,0-0.008,0-0.016,0
|
|
@@ -47,5 +55,5 @@ ${JSON.stringify(k,null,2)}
|
|
|
47
55
|
c0-2.162,0.854-4.235,2.39-5.755c1.528-1.52,3.585-2.374,5.739-2.374c0.008,0,0.008,0,0.016,0l45.105,0.089l-79.855-79.863
|
|
48
56
|
c-1.528-1.528-2.382-3.593-2.382-5.747V66.628h-31.498v26.645c0,3.284-1.975,6.251-5.015,7.511
|
|
49
57
|
c-3.032,1.268-6.527,0.569-8.86-1.764l-57.038-57.038l-183.95,183.95l45.203,0.089c4.487,0.008,8.112,3.642,8.112,8.129
|
|
50
|
-
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:c,onKeydown:r.withKeys(c,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",
|
|
58
|
+
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:c,onKeydown:r.withKeys(c,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",Tc,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",jc,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=h=>l(h)),onInput:f[2]||(f[2]=h=>l(h)),onBlur:f[3]||(f[3]=h=>p(h)),onKeydown:f[4]||(f[4]=r.withKeys(h=>p(h),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.breadcrumbs,h=>(r.openBlock(),r.createElementBlock("li",{key:h.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(m,{tabindex:"0",to:h.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Bc={install:e=>{e.component("ActionSet",sn),e.component("CommandPalette",an),e.component("Doctype",To),e.component("Records",ir),e.component("SheetNav",cr)}};J.ActionSet=sn,J.CommandPalette=an,J.Doctype=To,J.Records=ir,J.SheetNav=cr,J.StonecropDesktop=Bc,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|
|
51
59
|
//# sourceMappingURL=desktop.umd.cjs.map
|