@stonecrop/desktop 0.4.21 → 0.4.23
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.css +1 -1
- package/dist/desktop.js +2079 -2074
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +10 -10
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/desktop.umd.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(K,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(K=typeof globalThis<"u"?globalThis:K||self,s(K["@stonecrop/desktop"]={},K.Vue))})(this,function(K,s){"use strict";const Hr={class:"action-menu-icon"},Kr=["onclick"],Fr={key:1},Wr=["onClick"],Gr={class:"dropdown-container"},Yr={class:"dropdown"},qr=["onclick"],Jr=["href"],Xr={class:"dropdown-item"},Zr=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=s.ref(e.elements),n=s.ref(!1),o=s.ref(null),r=s.ref(!1),i=s.ref(!1);s.onMounted(()=>{a()});const a=()=>{for(const d of t.value)d.type==="dropdown"&&(d.show=!1)},l=()=>{r.value=!0,o.value=setTimeout(()=>{r.value&&(n.value=!0)},500)},c=()=>{r.value=!1,i.value=!1,clearTimeout(o.value),n.value=!1},u=d=>{const f=!t.value[d].show;a(),t.value[d].show=f};return(d,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":n.value,"hovered-and-closed":i.value},"action-set collapse"]),onMouseover:l,onMouseleave:c},[s.createElementVNode("div",Hr,[s.createElementVNode("div",{id:"chevron",onClick:f[0]||(f[0]=p=>i.value=!i.value)},f[1]||(f[1]=[s.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),s.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),f[2]||(f[2]=s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.value,(p,g)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:p.label},[p.type=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:p.action,class:"button-default"},s.toDisplayString(p.label),9,Kr)):s.createCommentVNode("",!0),p.type=="dropdown"?(s.openBlock(),s.createElementBlock("div",Fr,[s.createElementVNode("button",{class:"button-default",onClick:h=>u(g)},s.toDisplayString(p.label),9,Wr),s.withDirectives(s.createElementVNode("div",Gr,[s.createElementVNode("div",Yr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.actions,h=>(s.openBlock(),s.createElementBlock("div",{key:h.label},[h.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:h.action,class:"dropdown-item"},s.toDisplayString(h.label),9,qr)):h.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:h.link},[s.createElementVNode("button",Xr,s.toDisplayString(h.label),1)],8,Jr)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,p.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),un=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},dn=un(Zr,[["__scopeId","data-v-38e7af34"]]),Qr={class:"command-palette-header"},es=["placeholder"],ts={key:0,class:"command-palette-results"},ns=["onClick","onMouseover"],os={class:"result-title"},rs={class:"result-content"},ss={key:1,class:"command-palette-no-results"},fn=s.defineComponent({__name:"CommandPalette",props:{search:{type:Function},isOpen:{type:Boolean,default:!1},placeholder:{default:"Type a command or search..."},maxResults:{default:10}},emits:["select","close"],setup(e,{emit:t}){const n=t,o=s.ref(""),r=s.ref(0),i=s.useTemplateRef("input"),a=s.computed(()=>o.value?e.search(o.value).slice(0,e.maxResults):[]);s.watch(()=>e.isOpen,async d=>{var f;d&&(o.value="",r.value=0,await s.nextTick(),(f=i.value)==null||f.focus())}),s.watch(a,()=>{r.value=0});const l=()=>{n("close")},c=d=>{switch(d.key){case"Escape":l();break;case"ArrowDown":d.preventDefault(),a.value.length&&(r.value=(r.value+1)%a.value.length);break;case"ArrowUp":d.preventDefault(),a.value.length&&(r.value=(r.value-1+a.value.length)%a.value.length);break;case"Enter":a.value.length&&r.value>=0&&u(a.value[r.value]);break}},u=d=>{n("select",d),l()};return(d,f)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[d.isOpen?(s.openBlock(),s.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:l},[s.createElementVNode("div",{class:"command-palette",onClick:f[1]||(f[1]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Qr,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":f[0]||(f[0]=p=>o.value=p),type:"text",class:"command-palette-input",placeholder:d.placeholder,autofocus:"",onKeydown:c},null,40,es),[[s.vModelText,o.value]])]),a.value.length?(s.openBlock(),s.createElementBlock("div",ts,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(p,g)=>(s.openBlock(),s.createElementBlock("div",{key:g,class:s.normalizeClass(["command-palette-result",{selected:g===r.value}]),onClick:h=>u(p),onMouseover:h=>r.value=g},[s.createElementVNode("div",os,[s.renderSlot(d.$slots,"title",{result:p})]),s.createElementVNode("div",rs,[s.renderSlot(d.$slots,"content",{result:p})])],42,ns))),128))])):o.value&&!a.value.length?(s.openBlock(),s.createElementBlock("div",ss,[s.renderSlot(d.$slots,"empty",{},()=>[s.createTextVNode(' No results found for "'+s.toDisplayString(o.value)+'" ',1)])])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)]),_:3})]))}}),as=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function pn(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const hn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const is=Object.prototype.toString,ls=e=>is.call(e)==="[object Object]",cs=()=>{},mn=us();function us(){var e,t;return hn&&((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))}function ds(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:cs}))):s.ref(t)}function ct(e){return Array.isArray(e)?e:[e]}function fs(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const ps=hn?window:void 0;function hs(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ms(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=ct(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=fs(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>hs(u)))!=null?c:[ps].filter(u=>u!=null),ct(s.toValue(r.value?e[1]:e[0])),ct(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const f=ls(d)?{...d}:d;t.push(...l.flatMap(p=>c.flatMap(g=>u.map(h=>o(p,g,h,f)))))},{flush:"post"}),a=()=>{i(),n()};return pn(n),a}function ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function _n(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:_n(n)}}function _s(e){const t=e||window.event,n=t.target;return _n(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const dt=new WeakMap;function gs(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(ds(e),l=>{const c=ut(s.toValue(l));if(c){const u=c;if(dt.get(u)||dt.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=ut(s.toValue(e));!l||n.value||(mn&&(o=ms(l,"touchmove",c=>{_s(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},a=()=>{const l=ut(s.toValue(e));!l||!n.value||(mn&&(o==null||o()),l.style.overflow=r,dt.delete(l),n.value=!1)};return pn(a),s.computed({get(){return n.value},set(l){l?i():a()}})}function ys(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=gs(n,o.value);s.watch(t,i=>r.value=i)}}ys(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Es={class:"aform"},ws=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=s.ref(e.data||{}),r=a=>{let l={};for(const[c,u]of Object.entries(a))["component","fieldtype"].includes(c)||(l[c]=u),c==="rows"&&u&&u.length===0&&(l.rows=o.value[a.fieldname]);return l},i=s.computed({get:()=>e.modelValue.map((a,l)=>s.computed({get(){return a.value},set:c=>{e.modelValue[l].value=c,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(a,l)=>(s.openBlock(),s.createElementBlock("form",Es,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.modelValue,(c,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c.component),s.mergeProps({key:u,schema:c,modelValue:i.value[u].value,"onUpdate:modelValue":d=>i.value[u].value=d,data:o.value[c.fieldname],readonly:a.readonly},{ref_for:!0},r(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),bs=as(ws,[["__scopeId","data-v-68845234"]]);var vs=Object.defineProperty,ks=(e,t,n)=>t in e?vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t,n)=>ks(e,typeof t!="symbol"?t+"":t,n);function ft(e){this.message=e||""}ft.prototype=Object.create(Error.prototype,{constructor:{value:ft},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const gn=class it{constructor(t,n,o,r,i){if(U(this,"name","Stonecrop"),U(this,"registry"),U(this,"store"),U(this,"schema"),U(this,"workflow"),U(this,"actions"),it._root)return it._root;it._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=i}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ft(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){var r;const i=(r=this.registry.registry[t.slug].actions)==null?void 0:r.get(n);if(this.workflow){const{initialState:a}=this.workflow;this.workflow.transition(a,{type:n}),i&&i.length>0&&i.forEach(l=>{new Function(l)(o)})}}};U(gn,"_root");let Os=gn;var Ss=Object.create,yn=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,pt=Object.getOwnPropertyNames,Is=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty,Cs=(e,t)=>function(){return e&&(t=(0,e[pt(e)[0]])(e=0)),t},Ns=(e,t)=>function(){return t||(0,e[pt(e)[0]])((t={exports:{}}).exports,t),t.exports},Ps=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pt(t))!Vs.call(e,r)&&r!==n&&yn(e,r,{get:()=>t[r],enumerable:!(o=Ts(t,r))||o.enumerable});return e},Rs=(e,t,n)=>(n=e!=null?Ss(Is(e)):{},Ps(yn(n,"default",{value:e,enumerable:!0}),e)),Ce=Cs({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Ds=Ns({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Ce(),t.exports=o;function n(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function o(i){if(i=i||{},i.circles)return r(i);const a=new Map;if(a.set(Date,f=>new Date(f)),a.set(Map,(f,p)=>new Map(c(Array.from(f),p))),a.set(Set,(f,p)=>new Set(c(Array.from(f),p))),i.constructorHandlers)for(const f of i.constructorHandlers)a.set(f[0],f[1]);let l=null;return i.proto?d:u;function c(f,p){const g=Object.keys(f),h=new Array(g.length);for(let b=0;b<g.length;b++){const _=g[b],v=f[_];typeof v!="object"||v===null?h[_]=v:v.constructor!==Object&&(l=a.get(v.constructor))?h[_]=l(v,p):ArrayBuffer.isView(v)?h[_]=n(v):h[_]=p(v)}return h}function u(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return c(f,u);if(f.constructor!==Object&&(l=a.get(f.constructor)))return l(f,u);const p={};for(const g in f){if(Object.hasOwnProperty.call(f,g)===!1)continue;const h=f[g];typeof h!="object"||h===null?p[g]=h:h.constructor!==Object&&(l=a.get(h.constructor))?p[g]=l(h,u):ArrayBuffer.isView(h)?p[g]=n(h):p[g]=u(h)}return p}function d(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return c(f,d);if(f.constructor!==Object&&(l=a.get(f.constructor)))return l(f,d);const p={};for(const g in f){const h=f[g];typeof h!="object"||h===null?p[g]=h:h.constructor!==Object&&(l=a.get(h.constructor))?p[g]=l(h,d):ArrayBuffer.isView(h)?p[g]=n(h):p[g]=d(h)}return p}}function r(i){const a=[],l=[],c=new Map;if(c.set(Date,g=>new Date(g)),c.set(Map,(g,h)=>new Map(d(Array.from(g),h))),c.set(Set,(g,h)=>new Set(d(Array.from(g),h))),i.constructorHandlers)for(const g of i.constructorHandlers)c.set(g[0],g[1]);let u=null;return i.proto?p:f;function d(g,h){const b=Object.keys(g),_=new Array(b.length);for(let v=0;v<b.length;v++){const T=b[v],N=g[T];if(typeof N!="object"||N===null)_[T]=N;else if(N.constructor!==Object&&(u=c.get(N.constructor)))_[T]=u(N,h);else if(ArrayBuffer.isView(N))_[T]=n(N);else{const A=a.indexOf(N);A!==-1?_[T]=l[A]:_[T]=h(N)}}return _}function f(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return d(g,f);if(g.constructor!==Object&&(u=c.get(g.constructor)))return u(g,f);const h={};a.push(g),l.push(h);for(const b in g){if(Object.hasOwnProperty.call(g,b)===!1)continue;const _=g[b];if(typeof _!="object"||_===null)h[b]=_;else if(_.constructor!==Object&&(u=c.get(_.constructor)))h[b]=u(_,f);else if(ArrayBuffer.isView(_))h[b]=n(_);else{const v=a.indexOf(_);v!==-1?h[b]=l[v]:h[b]=f(_)}}return a.pop(),l.pop(),h}function p(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return d(g,p);if(g.constructor!==Object&&(u=c.get(g.constructor)))return u(g,p);const h={};a.push(g),l.push(h);for(const b in g){const _=g[b];if(typeof _!="object"||_===null)h[b]=_;else if(_.constructor!==Object&&(u=c.get(_.constructor)))h[b]=u(_,p);else if(ArrayBuffer.isView(_))h[b]=n(_);else{const v=a.indexOf(_);v!==-1?h[b]=l[v]:h[b]=p(_)}}return a.pop(),l.pop(),h}}}});Ce(),Ce(),Ce();var En=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,En&&(O.self,O.top);var wn;typeof navigator<"u"&&((wn=navigator.userAgent)==null||wn.toLowerCase().includes("electron")),Ce();var As=Rs(Ds()),xs=/(?:^|[-_/])(\w)/g;function $s(e,t){return t?t.toUpperCase():""}function Ls(e){return e&&`${e}`.replace(xs,$s)}function js(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const i=r.lastIndexOf(t);return r.substring(0,i)}}var bn=(0,As.default)({circles:!0});const Ms={trailing:!0};function me(e,t=25,n={}){if(n={...Ms,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,i=[],a,l;const c=(u,d)=>(a=Us(e,u,d),a.finally(()=>{if(a=null,n.trailing&&l&&!r){const f=c(u,l);return l=null,f}}),a);return function(...u){return a?(n.trailing&&(l=u),a):new Promise(d=>{const f=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const p=n.leading?o:c(this,u);for(const g of i)g(p);i=[]},t),f?(o=c(this,u),d(o)):i.push(d)})}}async function Us(e,t,n){return await e.apply(t,n)}function ht(e,t={},n){for(const o in e){const r=e[o],i=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?ht(r,t,i):typeof r=="function"&&(t[i]=r)}return t}const Bs={run:e=>e()},zs=()=>Bs,vn=typeof console.createTask<"u"?console.createTask:zs;function Hs(e,t){const n=t.shift(),o=vn(n);return e.reduce((r,i)=>r.then(()=>o.run(()=>i(...t))),Promise.resolve())}function Ks(e,t){const n=t.shift(),o=vn(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function mt(e,t){for(const n of[...e])n(t)}class Fs{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!o.allowDeprecated){let a=i.message;a||(a=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...i)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...i));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ht(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=ht(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Hs,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ks,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&mt(this._before,r);const i=t(n in this._hooks?[...this._hooks[n]]:[],o);return i instanceof Promise?i.finally(()=>{this._after&&r&&mt(this._after,r)}):(this._after&&r&&mt(this._after,r),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function kn(){return new Fs}var Ws=Object.create,On=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,_t=Object.getOwnPropertyNames,Ys=Object.getPrototypeOf,qs=Object.prototype.hasOwnProperty,Js=(e,t)=>function(){return e&&(t=(0,e[_t(e)[0]])(e=0)),t},Sn=(e,t)=>function(){return t||(0,e[_t(e)[0]])((t={exports:{}}).exports,t),t.exports},Xs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of _t(t))!qs.call(e,r)&&r!==n&&On(e,r,{get:()=>t[r],enumerable:!(o=Gs(t,r))||o.enumerable});return e},Zs=(e,t,n)=>(n=e!=null?Ws(Ys(e)):{},Xs(On(n,"default",{value:e,enumerable:!0}),e)),w=Js({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Qs=Sn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){w(),function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],i={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},l={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),u=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),f=function(b,_){var v="-",T="",N="",A=!0,R={},q,k,L,y,m,E,S,I,j,z,V,G,C,x,ae="";if(typeof b!="string")return"";if(typeof _=="string"&&(v=_),S=l.en,I=a.en,typeof _=="object"){q=_.maintainCase||!1,R=_.custom&&typeof _.custom=="object"?_.custom:R,L=+_.truncate>1&&_.truncate||!1,y=_.uric||!1,m=_.uricNoSlash||!1,E=_.mark||!1,A=!(_.symbols===!1||_.lang===!1),v=_.separator||v,y&&(ae+=c),m&&(ae+=u),E&&(ae+=d),S=_.lang&&l[_.lang]&&A?l[_.lang]:A?l.en:{},I=_.lang&&a[_.lang]?a[_.lang]:_.lang===!1||_.lang===!0?{}:a.en,_.titleCase&&typeof _.titleCase.length=="number"&&Array.prototype.toString.call(_.titleCase)?(_.titleCase.forEach(function(J){R[J+""]=J+""}),k=!0):k=!!_.titleCase,_.custom&&typeof _.custom.length=="number"&&Array.prototype.toString.call(_.custom)&&_.custom.forEach(function(J){R[J+""]=J+""}),Object.keys(R).forEach(function(J){var He;J.length>1?He=new RegExp("\\b"+g(J)+"\\b","gi"):He=new RegExp(g(J),"gi"),b=b.replace(He,R[J])});for(V in R)ae+=V}for(ae+=v,ae=g(ae),b=b.replace(/(^\s+|\s+$)/g,""),C=!1,x=!1,z=0,G=b.length;z<G;z++)V=b[z],h(V,R)?C=!1:I[V]?(V=C&&I[V].match(/[A-Za-z0-9]/)?" "+I[V]:I[V],C=!1):V in o?(z+1<G&&r.indexOf(b[z+1])>=0?(N+=V,V=""):x===!0?(V=i[N]+o[V],N=""):V=C&&o[V].match(/[A-Za-z0-9]/)?" "+o[V]:o[V],C=!1,x=!1):V in i?(N+=V,V="",z===G-1&&(V=i[N]),x=!0):S[V]&&!(y&&c.indexOf(V)!==-1)&&!(m&&u.indexOf(V)!==-1)?(V=C||T.substr(-1).match(/[A-Za-z0-9]/)?v+S[V]:S[V],V+=b[z+1]!==void 0&&b[z+1].match(/[A-Za-z0-9]/)?v:"",C=!0):(x===!0?(V=i[N]+V,N="",x=!1):C&&(/[A-Za-z0-9]/.test(V)||T.substr(-1).match(/A-Za-z0-9]/))&&(V=" "+V),C=!1),T+=V.replace(new RegExp("[^\\w\\s"+ae+"_-]","g"),v);return k&&(T=T.replace(/(\w)(\S*)/g,function(J,He,zr){var cn=He.toUpperCase()+(zr!==null?zr:"");return Object.keys(R).indexOf(cn.toLowerCase())<0?cn:cn.toLowerCase()})),T=T.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),L&&T.length>L&&(j=T.charAt(L)===v,T=T.slice(0,L),j||(T=T.slice(0,T.lastIndexOf(v)))),!q&&!k&&(T=T.toLowerCase()),T},p=function(b){return function(_){return f(_,b)}},g=function(b){return b.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},h=function(b,_){for(var v in _)if(_[v]===b)return!0};if(typeof t<"u"&&t.exports)t.exports=f,t.exports.createSlug=p;else if(typeof define<"u"&&define.amd)define([],function(){return f});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=f,n.createSlug=p}catch{}}(e)}}),ea=Sn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){w(),t.exports=Qs()}});w(),w(),w(),w(),w(),w(),w(),w();function ta(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&(t=e.__file)!=null&&t.endsWith("index.vue")?"":n}function na(e){const t=e.__file;if(t)return Ls(js(t,".vue"))}function Tn(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function gt(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function In(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=gt(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function Ke(e){var t,n,o;const r=ta((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const a in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[a]===(e==null?void 0:e.type))return Tn(e,a);for(const a in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[a]===(e==null?void 0:e.type))return Tn(e,a);return na((e==null?void 0:e.type)||{})||"Anonymous Component"}function oa(e){var t,n,o;const r=(o=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,i=e===(e==null?void 0:e.root)?"root":e.uid;return`${r}:${i}`}function yt(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function ra(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Fe;function sa(e){return Fe||(Fe=document.createRange()),Fe.selectNode(e),Fe.getBoundingClientRect()}function aa(e){const t=ra();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const r=e.children[n];let i;if(r.component)i=ie(r.component);else if(r.el){const a=r.el;a.nodeType===1||a.getBoundingClientRect?i=a.getBoundingClientRect():a.nodeType===3&&a.data.trim()&&(i=sa(a))}i&&ia(t,i)}return t}function ia(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var Vn={top:0,left:0,right:0,bottom:0,width:0,height:0};function ie(e){const t=e.subTree.el;return typeof window>"u"?Vn:In(e)?aa(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?ie(e.subTree.component):Vn}w();function Et(e){return In(e)?la(e.subTree):e.subTree?[e.subTree.el]:[]}function la(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...Et(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Cn="__vue-devtools-component-inspector__",Nn="__vue-devtools-component-inspector__card__",Pn="__vue-devtools-component-inspector__name__",Rn="__vue-devtools-component-inspector__indicator__",Dn={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ca={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},ua={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function _e(){return document.getElementById(Cn)}function da(){return document.getElementById(Nn)}function fa(){return document.getElementById(Rn)}function pa(){return document.getElementById(Pn)}function wt(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function bt(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Cn,Object.assign(n.style,{...Dn,...wt(e.bounds),...e.style});const o=document.createElement("span");o.id=Nn,Object.assign(o.style,{...ca,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Pn,r.innerHTML=`<${e.name}> `;const i=document.createElement("i");return i.id=Rn,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,ua),o.appendChild(r),o.appendChild(i),n.appendChild(o),document.body.appendChild(n),n}function vt(e){const t=_e(),n=da(),o=pa(),r=fa();t&&(Object.assign(t.style,{...Dn,...wt(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`<${e.name}> `,r.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function ha(e){const t=ie(e);if(!t.width&&!t.height)return;const n=Ke(e);_e()?vt({bounds:t,name:n}):bt({bounds:t,name:n})}function An(){const e=_e();e&&(e.style.display="none")}var kt=null;function Ot(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(kt=n,n.vnode.el)){const o=ie(n),r=Ke(n);_e()?vt({bounds:o,name:r}):bt({bounds:o,name:r})}}}function ma(e,t){if(e.preventDefault(),e.stopPropagation(),kt){const n=oa(kt);t(n)}}var We=null;function _a(){An(),window.removeEventListener("mouseover",Ot),window.removeEventListener("click",We,!0),We=null}function ga(){return window.addEventListener("mouseover",Ot),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),ma(n,o=>{window.removeEventListener("click",t,!0),We=null,window.removeEventListener("mouseover",Ot);const r=_e();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}We=t,window.addEventListener("click",t,!0)})}function ya(e){const t=yt(B.value,e.id);if(t){const[n]=Et(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=ie(t),r=document.createElement("div"),i={...wt(o),position:"absolute"};Object.assign(r.style,i),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=ie(t);if(o.width||o.height){const r=Ke(t),i=_e();i?vt({...e,name:r,bounds:o}):bt({...e,name:r,bounds:o}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}w();var xn;(xn=O).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(xn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Ea(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function wa(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ba(){return new Promise(e=>{function t(){wa(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():Ea(()=>{t()})})}w(),w();function va(e){return!!(e&&e.__v_isReadonly)}function $n(e){return va(e)?$n(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isRef===!0)}function Ne(e){const t=e&&e.__v_raw;return t?Ne(t):e}var ka=class{constructor(){this.refEditor=new Oa}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const l=r.shift();e instanceof Map?e=e.get(l):e instanceof Set?e=Array.from(e.values())[l]:e=e[l],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const i=r[0],a=this.refEditor.get(e)[i];o?o(e,i,n):this.refEditor.isRef(a)?this.refEditor.set(a,n):e[i]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e instanceof Map?e=e.get(n[o]):e=e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){const i=o.shift();e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Ne(t)instanceof Map?t.delete(n):Ne(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Ne(t)instanceof Map?t.set(e.newKey||n,o):Ne(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},Oa=class{set(e,t){if(St(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(r=>e.add(r));return}const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());n.forEach(i=>{e.set(i,Reflect.get(t,i)),r.delete(i)}),r.forEach(i=>e.delete(i));return}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return St(e)?e.value:e}isRef(e){return St(e)||$n(e)}};w(),w(),w();var Sa="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ta(){if(!En||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Sa);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}w(),w(),w();var Ln;(Ln=O).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Ln.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Ia=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Va(e,t){D.timelineLayersState[t.id]=!1,Ia.push({...e,descriptorId:t.id,appRecord:gt(t.app)})}var jn;(jn=O).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(jn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Tt=new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Mn=me(()=>{ye.hooks.callHook("sendInspectorToClient",Un())});function Ca(e,t){var n,o;Tt.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:gt(t.app)}),Mn()}function Un(){return Tt.filter(e=>e.descriptor.app===B.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o==null?void 0:o.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Ge(e,t){return Tt.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Na(){const e=kn();e.hook("addInspector",({inspector:o,plugin:r})=>{Ca(o,r.descriptor)});const t=me(async({inspectorId:o,plugin:r})=>{var i;if(!o||!((i=r==null?void 0:r.descriptor)!=null&&i.app)||D.highPerfModeEnabled)return;const a=Ge(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,filter:(a==null?void 0:a.treeFilter)||"",rootNodes:[]};await new Promise(c=>{e.callHookWith(async u=>{await Promise.all(u.map(d=>d(l))),c()},"getInspectorTree")}),e.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:l.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=me(async({inspectorId:o,plugin:r})=>{var i;if(!o||!((i=r==null?void 0:r.descriptor)!=null&&i.app)||D.highPerfModeEnabled)return;const a=Ge(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,nodeId:(a==null?void 0:a.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};l.nodeId&&await new Promise(u=>{e.callHookWith(async d=>{await Promise.all(d.map(f=>f(l,c))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(d=>d({inspectorId:o,nodeId:l.nodeId,state:l.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:i})=>{const a=Ge(o,i.descriptor.app);a&&(a.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{Va(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var i;const a=["performance","component-event","keyboard","mouse"];D.highPerfModeEnabled||!((i=D.timelineLayersState)!=null&&i[r.descriptor.id])&&!a.includes(o.layerId)||e.callHookWith(async l=>{await Promise.all(l.map(c=>c(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const i=r.id.toString();return[...r.instanceMap].filter(([a])=>a.split(":")[0]===i).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:o})=>ie(o)),e.hook("getComponentName",({instance:o})=>Ke(o)),e.hook("componentHighlight",({uid:o})=>{const r=B.value.instanceMap.get(o);r&&ha(r)}),e.hook("componentUnhighlight",()=>{An()}),e}var Bn;(Bn=O).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(Bn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var zn;(zn=O).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(zn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Hn;(Hn=O).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(Hn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Kn;(Kn=O).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Kn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Fn;(Fn=O).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Fn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var le="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Pa(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ta()}}var Wn;(Wn=O)[le]!=null||(Wn[le]=Pa());var Ra=me(e=>{ye.hooks.callHook("devtoolsStateUpdated",{state:e})});me((e,t)=>{ye.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Ye=new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_APP_RECORDS__:O.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),B=new Proxy(O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Gn(){Ra({...O[le],appRecords:Ye.value,activeAppRecordId:B.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Da(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Gn()}function Aa(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Gn()}var D=new Proxy(O[le],{get(e,t){return t==="appRecords"?Ye:t==="activeAppRecordId"?B.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[le][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[le]},e[t]=n,O[le][t]=n,!0}});function xa(e={}){var t,n,o;const{file:r,host:i,baseUrl:a=window.location.origin,line:l=0,column:c=0}=e;if(r){if(i==="chrome-extension"){const u=r.replace(/\\/g,"\\\\"),d=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${d}__open-in-editor?file=${encodeURI(r)}`).then(f=>{if(!f.ok){const p=`Opening component ${u} failed`;console.log(`%c${p}`,"color:red")}})}else if(D.vitePluginDetected){const u=(o=O.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:a;O.__VUE_INSPECTOR__.openInEditor(u,r,l,c)}}}w(),w(),w(),w(),w();var Yn;(Yn=O).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Yn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var It=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Vt(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Ct(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function $a(e){var t,n,o;const r=(n=(t=It.find(i=>{var a;return i[0].id===e&&!!((a=i[0])!=null&&a.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function qn(e,t){var n,o,r;const i=Ct(e);if(i){const a=localStorage.getItem(i);if(a)return JSON.parse(a)}if(e){const a=(o=(n=It.find(l=>l[0].id===e))==null?void 0:n[0])!=null?o:null;return Vt((r=a==null?void 0:a.settings)!=null?r:{})}return Vt(t)}function La(e,t){const n=Ct(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Vt(t)))}function ja(e,t,n){const o=Ct(e),r=localStorage.getItem(o),i=JSON.parse(r||"{}"),a={...i,[t]:n};localStorage.setItem(o,JSON.stringify(a)),ye.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:e,key:t,oldValue:i[t],newValue:n,settings:a}))},"setPluginSettings")}w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w();var Jn,Xn,H=(Xn=(Jn=O).__VUE_DEVTOOLS_HOOK)!=null?Xn:Jn.__VUE_DEVTOOLS_HOOK=kn(),Ma={vueAppInit(e){H.hook("app:init",e)},vueAppUnmount(e){H.hook("app:unmount",e)},vueAppConnected(e){H.hook("app:connected",e)},componentAdded(e){return H.hook("component:added",e)},componentEmit(e){return H.hook("component:emit",e)},componentUpdated(e){return H.hook("component:updated",e)},componentRemoved(e){return H.hook("component:removed",e)},setupDevtoolsPlugin(e){H.hook("devtools-plugin:setup",e)},perfStart(e){return H.hook("perf:start",e)},perfEnd(e){return H.hook("perf:end",e)}},Zn={on:Ma,setupDevToolsPlugin(e,t){return H.callHook("devtools-plugin:setup",e,t)}},Ua=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(D.highPerfModeEnabled)return;const n=Un().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];H.callHook("component:updated",...o)}else H.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&La(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){D.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){D.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return D.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){D.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return qn(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Ba=Ua;w(),w(),w(),w();var za="__vue_devtool_undefined__",Ha="__vue_devtool_infinity__",Ka="__vue_devtool_negative_infinity__",Fa="__vue_devtool_nan__";w(),w();var Wa={[za]:"undefined",[Fa]:"NaN",[Ha]:"Infinity",[Ka]:"-Infinity"};Object.entries(Wa).reduce((e,[t,n])=>(e[n]=t,e),{}),w(),w(),w(),w(),w();var Qn;(Qn=O).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(Qn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function eo(e,t){return Zn.setupDevToolsPlugin(e,t)}function Ga(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Ba({plugin:{setupFn:o,descriptor:n},ctx:ye});n.packageName==="vuex"&&r.on.editInspectorState(i=>{r.sendInspectorState(i.inspectorId)}),o(r)}function to(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||D.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),It.forEach(n=>{Ga(n,e)}))}w(),w();var Pe="__VUE_DEVTOOLS_ROUTER__",ge="__VUE_DEVTOOLS_ROUTER_INFO__",no;(no=O)[ge]!=null||(no[ge]={currentRoute:null,routes:[]});var oo;(oo=O)[Pe]!=null||(oo[Pe]={}),new Proxy(O[ge],{get(e,t){return O[ge][t]}}),new Proxy(O[Pe],{get(e,t){if(t==="value")return O[Pe]}});function Ya(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nt(e){return e.map(t=>{let{path:n,name:o,children:r,meta:i}=t;return r!=null&&r.length&&(r=Nt(r)),{path:n,name:o,children:r,meta:i}})}function qa(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:i,matched:a,params:l,query:c}=e;return{fullPath:t,hash:n,href:o,path:r,name:i,params:l,query:c,matched:Nt(a)}}return e}function Ja(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,i=qa(r==null?void 0:r.currentRoute.value),a=Nt(Ya(r)),l=console.warn;console.warn=()=>{},O[ge]={currentRoute:i?bn(i):{},routes:bn(a)},O[Pe]=r,console.warn=l}n(),Zn.on.componentUpdated(me(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!D.highPerfModeEnabled&&ye.hooks.callHook("routerInfoUpdated",{state:O[ge]}))},200))}function Xa(e){return{async getInspectorTree(t){const n={...t,app:B.value.app,rootNodes:[]};return await new Promise(o=>{e.callHookWith(async r=>{await Promise.all(r.map(i=>i(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:B.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async i=>{await Promise.all(i.map(a=>a(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new ka,o={...t,app:B.value.app,set:(r,i=t.path,a=t.state.value,l)=>{n.set(r,i,a,l||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(i=>i(o))},"editInspectorState")},sendInspectorState(t){const n=Ge(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ga()},cancelInspectComponentInspector(){return _a()},getComponentRenderCode(t){const n=yt(B.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return ya({id:t})},openInEditor:xa,getVueInspector:ba,toggleApp(t,n){const o=Ye.value.find(r=>r.id===t);o&&(Aa(t),Da(o),Ja(o,B),Mn(),to(o.app,n))},inspectDOM(t){const n=yt(B.value,t);if(n){const[o]=Et(n);o&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){ja(t,n,o)},getPluginSettings(t){return{options:$a(t),values:qn(t)}}}}w();var ro;(ro=O).__VUE_DEVTOOLS_ENV__!=null||(ro.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var so=Na(),ao;(ao=O).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ao.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:so,get state(){return{...D,activeAppRecordId:B.id,activeAppRecord:B.value,appRecords:Ye.value}},api:Xa(so)});var ye=O.__VUE_DEVTOOLS_KIT_CONTEXT__;w(),Zs(ea());var io;(io=O).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(io.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),w(),w();function Za(e){D.highPerfModeEnabled=e??!D.highPerfModeEnabled,!e&&B.value&&to(B.value.app)}w(),w(),w();function Qa(e){D.devtoolsClientDetected={...D.devtoolsClientDetected,...e};const t=Object.values(D.devtoolsClientDetected).some(Boolean);Za(!t)}var lo;(lo=O).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(lo.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Qa),w(),w(),w(),w(),w(),w(),w();var ei=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},co=class{constructor(e){this.generateIdentifier=e,this.kv=new ei}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},ti=class extends co{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};w(),w();function ni(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function oi(e,t){const n=ni(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const i=o[r];if(t(i))return i}}function Ee(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function qe(e,t){return e.indexOf(t)!==-1}function uo(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var ri=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return oi(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};w(),w();var si=e=>Object.prototype.toString.call(e).slice(8,-1),fo=e=>typeof e>"u",ai=e=>e===null,Re=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Pt=e=>Re(e)&&Object.keys(e).length===0,oe=e=>Array.isArray(e),ii=e=>typeof e=="string",li=e=>typeof e=="number"&&!isNaN(e),ci=e=>typeof e=="boolean",ui=e=>e instanceof RegExp,De=e=>e instanceof Map,Ae=e=>e instanceof Set,po=e=>si(e)==="Symbol",di=e=>e instanceof Date&&!isNaN(e.valueOf()),fi=e=>e instanceof Error,ho=e=>typeof e=="number"&&isNaN(e),pi=e=>ci(e)||ai(e)||fo(e)||li(e)||ii(e)||po(e),hi=e=>typeof e=="bigint",mi=e=>e===1/0||e===-1/0,_i=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),gi=e=>e instanceof URL;w();var mo=e=>e.replace(/\./g,"\\."),Rt=e=>e.map(String).map(mo).join("."),xe=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const o=n;return t.push(o),t};w();function X(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var _o=[X(fo,"undefined",()=>null,()=>{}),X(hi,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),X(di,"Date",e=>e.toISOString(),e=>new Date(e)),X(fi,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),X(ui,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),X(Ae,"set",e=>[...e.values()],e=>new Set(e)),X(De,"map",e=>[...e.entries()],e=>new Map(e)),X(e=>ho(e)||mi(e),"number",e=>ho(e)?"NaN":e>0?"Infinity":"-Infinity",Number),X(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),X(gi,"URL",e=>e.toString(),e=>new URL(e))];function Je(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var go=Je((e,t)=>po(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),yi=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),yo=Je(_i,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=yi[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Eo(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var wo=Je(Eo,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),bo=Je((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Ei=[wo,go,bo,yo],vo=(e,t)=>{const n=uo(Ei,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=uo(_o,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},ko={};_o.forEach(e=>{ko[e.annotation]=e});var wi=(e,t,n)=>{if(oe(t))switch(t[0]){case"symbol":return go.untransform(e,t,n);case"class":return wo.untransform(e,t,n);case"custom":return bo.untransform(e,t,n);case"typed-array":return yo.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=ko[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};w();var we=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Oo(e){if(qe(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(qe(e,"prototype"))throw new Error("prototype is not allowed as a property");if(qe(e,"constructor"))throw new Error("constructor is not allowed as a property")}var bi=(e,t)=>{Oo(t);for(let n=0;n<t.length;n++){const o=t[n];if(Ae(e))e=we(e,+o);else if(De(e)){const r=+o,i=+t[++n]==0?"key":"value",a=we(e,r);switch(i){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[o]}return e},Dt=(e,t,n)=>{if(Oo(t),t.length===0)return n(e);let o=e;for(let i=0;i<t.length-1;i++){const a=t[i];if(oe(o)){const l=+a;o=o[l]}else if(Re(o))o=o[a];else if(Ae(o)){const l=+a;o=we(o,l)}else if(De(o)){if(i===t.length-2)break;const l=+a,c=+t[++i]==0?"key":"value",u=we(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=t[t.length-1];if(oe(o)?o[+r]=n(o[+r]):Re(o)&&(o[r]=n(o[r])),Ae(o)){const i=we(o,+r),a=n(i);i!==a&&(o.delete(i),o.add(a))}if(De(o)){const i=+t[t.length-2],a=we(o,i);switch(+r==0?"key":"value"){case"key":{const l=n(a);o.set(l,o.get(a)),l!==a&&o.delete(a);break}case"value":{o.set(a,n(o.get(a)));break}}}return e};function At(e,t,n=[]){if(!e)return;if(!oe(e)){Ee(e,(i,a)=>At(i,t,[...n,...xe(a)]));return}const[o,r]=e;r&&Ee(r,(i,a)=>{At(i,t,[...n,...xe(a)])}),t(o,n)}function vi(e,t,n){return At(t,(o,r)=>{e=Dt(e,r,i=>wi(i,o,n))}),e}function ki(e,t){function n(o,r){const i=bi(e,xe(r));o.map(xe).forEach(a=>{e=Dt(e,a,()=>i)})}if(oe(t)){const[o,r]=t;o.forEach(i=>{e=Dt(e,xe(i),()=>e)}),r&&Ee(r,n)}else Ee(t,n);return e}var Oi=(e,t)=>Re(e)||oe(e)||De(e)||Ae(e)||Eo(e,t);function Si(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function Ti(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(l=>l.map(String)).sort((l,c)=>l.length-c.length));const[i,...a]=r;i.length===0?o=a.map(Rt):n[Rt(i)]=a.map(Rt)}),o?Pt(n)?[o]:[o,n]:Pt(n)?void 0:n}var So=(e,t,n,o,r=[],i=[],a=new Map)=>{var l;const c=pi(e);if(!c){Si(e,r,t);const h=a.get(e);if(h)return o?{transformedValue:null}:h}if(!Oi(e,n)){const h=vo(e,n),b=h?{transformedValue:h.value,annotations:[h.type]}:{transformedValue:e};return c||a.set(e,b),b}if(qe(i,e))return{transformedValue:null};const u=vo(e,n),d=(l=u==null?void 0:u.value)!=null?l:e,f=oe(d)?[]:{},p={};Ee(d,(h,b)=>{if(b==="__proto__"||b==="constructor"||b==="prototype")throw new Error(`Detected property ${b}. This is a prototype pollution risk, please remove it from your object.`);const _=So(h,t,n,o,[...r,b],[...i,e],a);f[b]=_.transformedValue,oe(_.annotations)?p[b]=_.annotations:Re(_.annotations)&&Ee(_.annotations,(v,T)=>{p[mo(b)+"."+T]=v})});const g=Pt(p)?{transformedValue:f,annotations:u?[u.type]:void 0}:{transformedValue:f,annotations:u?[u.type,p]:p};return c||a.set(e,g),g};w(),w();function To(e){return Object.prototype.toString.call(e).slice(8,-1)}function Io(e){return To(e)==="Array"}function Ii(e){if(To(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Vi(e,t,n,o,r){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),r&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function xt(e,t={}){if(Io(e))return e.map(r=>xt(r,t));if(!Ii(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,i)=>{if(Io(t.props)&&!t.props.includes(i))return r;const a=e[i],l=xt(a,t);return Vi(r,i,l,e,t.nonenumerable),r},{})}var P=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ti,this.symbolRegistry=new co(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new ri,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=So(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=Ti(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=xt(t);return n!=null&&n.values&&(o=vi(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=ki(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};P.defaultInstance=new P,P.serialize=P.defaultInstance.serialize.bind(P.defaultInstance),P.deserialize=P.defaultInstance.deserialize.bind(P.defaultInstance),P.stringify=P.defaultInstance.stringify.bind(P.defaultInstance),P.parse=P.defaultInstance.parse.bind(P.defaultInstance),P.registerClass=P.defaultInstance.registerClass.bind(P.defaultInstance),P.registerSymbol=P.defaultInstance.registerSymbol.bind(P.defaultInstance),P.registerCustom=P.defaultInstance.registerCustom.bind(P.defaultInstance),P.allowErrorProps=P.defaultInstance.allowErrorProps.bind(P.defaultInstance),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w();var Vo;(Vo=O).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Vo.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Co;(Co=O).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Co.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var No;(No=O).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(No.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Po;(Po=O).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Po.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Ro;(Ro=O).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Ro.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Do;(Do=O).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(Do.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),w(),w(),w(),w(),w(),w(),w();/*!
|
|
1
|
+
(function(K,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(K=typeof globalThis<"u"?globalThis:K||self,s(K["@stonecrop/desktop"]={},K.Vue))})(this,function(K,s){"use strict";const Hr={class:"action-menu-icon"},Kr=["onclick"],Fr={key:1},Wr=["onClick"],Gr={class:"dropdown-container"},Yr={class:"dropdown"},qr=["onclick"],Jr=["href"],Xr={class:"dropdown-item"},Zr=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=s.ref(e.elements),n=s.ref(!1),o=s.ref(null),r=s.ref(!1),a=s.ref(!1);s.onMounted(()=>{i()});const i=()=>{for(const f of t.value)f.type==="dropdown"&&(f.show=!1)},l=()=>{r.value=!0,o.value=setTimeout(()=>{r.value&&(n.value=!0)},500)},c=()=>{r.value=!1,a.value=!1,clearTimeout(o.value),n.value=!1},u=f=>{const d=!t.value[f].show;i(),t.value[f].show=d};return(f,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:l,onMouseleave:c},[s.createElementVNode("div",Hr,[s.createElementVNode("div",{id:"chevron",onClick:d[0]||(d[0]=p=>a.value=!a.value)},d[1]||(d[1]=[s.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),s.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),d[2]||(d[2]=s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.value,(p,_)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:p.label},[p.type=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:p.action,class:"button-default"},s.toDisplayString(p.label),9,Kr)):s.createCommentVNode("",!0),p.type=="dropdown"?(s.openBlock(),s.createElementBlock("div",Fr,[s.createElementVNode("button",{class:"button-default",onClick:g=>u(_)},s.toDisplayString(p.label),9,Wr),s.withDirectives(s.createElementVNode("div",Gr,[s.createElementVNode("div",Yr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.actions,g=>(s.openBlock(),s.createElementBlock("div",{key:g.label},[g.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:g.action,class:"dropdown-item"},s.toDisplayString(g.label),9,qr)):g.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:g.link},[s.createElementVNode("button",Xr,s.toDisplayString(g.label),1)],8,Jr)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,p.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),un=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},dn=un(Zr,[["__scopeId","data-v-38e7af34"]]),Qr={class:"command-palette-header"},es=["placeholder"],ts={key:0,class:"command-palette-results"},ns=["onClick","onMouseover"],os={class:"result-title"},rs={class:"result-content"},ss={key:1,class:"command-palette-no-results"},fn=s.defineComponent({__name:"CommandPalette",props:{search:{type:Function},isOpen:{type:Boolean,default:!1},placeholder:{default:"Type a command or search..."},maxResults:{default:10}},emits:["select","close"],setup(e,{emit:t}){const n=t,o=s.ref(""),r=s.ref(0),a=s.useTemplateRef("input"),i=s.computed(()=>o.value?e.search(o.value).slice(0,e.maxResults):[]);s.watch(()=>e.isOpen,async f=>{var d;f&&(o.value="",r.value=0,await s.nextTick(),(d=a.value)==null||d.focus())}),s.watch(i,()=>{r.value=0});const l=()=>{n("close")},c=f=>{switch(f.key){case"Escape":l();break;case"ArrowDown":f.preventDefault(),i.value.length&&(r.value=(r.value+1)%i.value.length);break;case"ArrowUp":f.preventDefault(),i.value.length&&(r.value=(r.value-1+i.value.length)%i.value.length);break;case"Enter":i.value.length&&r.value>=0&&u(i.value[r.value]);break}},u=f=>{n("select",f),l()};return(f,d)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[f.isOpen?(s.openBlock(),s.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:l},[s.createElementVNode("div",{class:"command-palette",onClick:d[1]||(d[1]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Qr,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":d[0]||(d[0]=p=>o.value=p),type:"text",class:"command-palette-input",placeholder:f.placeholder,autofocus:"",onKeydown:c},null,40,es),[[s.vModelText,o.value]])]),i.value.length?(s.openBlock(),s.createElementBlock("div",ts,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(p,_)=>(s.openBlock(),s.createElementBlock("div",{key:_,class:s.normalizeClass(["command-palette-result",{selected:_===r.value}]),onClick:g=>u(p),onMouseover:g=>r.value=_},[s.createElementVNode("div",os,[s.renderSlot(f.$slots,"title",{result:p})]),s.createElementVNode("div",rs,[s.renderSlot(f.$slots,"content",{result:p})])],42,ns))),128))])):o.value&&!i.value.length?(s.openBlock(),s.createElementBlock("div",ss,[s.renderSlot(f.$slots,"empty",{},()=>[s.createTextVNode(' No results found for "'+s.toDisplayString(o.value)+'" ',1)])])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)]),_:3})]))}}),as=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function pn(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const hn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const is=Object.prototype.toString,ls=e=>is.call(e)==="[object Object]",cs=()=>{},mn=us();function us(){var e,t;return hn&&((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))}function ds(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:cs}))):s.ref(t)}function ct(e){return Array.isArray(e)?e:[e]}function fs(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const ps=hn?window:void 0;function hs(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ms(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),r=s.computed(()=>{const l=ct(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),a=fs(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>hs(u)))!=null?c:[ps].filter(u=>u!=null),ct(s.toValue(r.value?e[1]:e[0])),ct(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=ls(f)?{...f}:f;t.push(...l.flatMap(p=>c.flatMap(_=>u.map(g=>o(p,_,g,d)))))},{flush:"post"}),i=()=>{a(),n()};return pn(n),i}function ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function _n(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:_n(n)}}function _s(e){const t=e||window.event,n=t.target;return _n(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const dt=new WeakMap;function gs(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(ds(e),l=>{const c=ut(s.toValue(l));if(c){const u=c;if(dt.get(u)||dt.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const a=()=>{const l=ut(s.toValue(e));!l||n.value||(mn&&(o=ms(l,"touchmove",c=>{_s(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=ut(s.toValue(e));!l||!n.value||(mn&&(o==null||o()),l.style.overflow=r,dt.delete(l),n.value=!1)};return pn(i),s.computed({get(){return n.value},set(l){l?a():i()}})}function ys(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=gs(n,o.value);s.watch(t,a=>r.value=a)}}ys(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Es={class:"aform"},ws=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=s.ref(e.data||{}),r=i=>{let l={};for(const[c,u]of Object.entries(i))["component","fieldtype"].includes(c)||(l[c]=u),c==="rows"&&u&&u.length===0&&(l.rows=o.value[i.fieldname]);return l},a=s.computed({get:()=>e.modelValue.map((i,l)=>s.computed({get(){return i.value},set:c=>{e.modelValue[l].value=c,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(i,l)=>(s.openBlock(),s.createElementBlock("form",Es,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.modelValue,(c,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c.component),s.mergeProps({key:u,schema:c,modelValue:a.value[u].value,"onUpdate:modelValue":f=>a.value[u].value=f,data:o.value[c.fieldname],readonly:i.readonly},{ref_for:!0},r(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),bs=as(ws,[["__scopeId","data-v-68845234"]]);var vs=Object.defineProperty,ks=(e,t,n)=>t in e?vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t,n)=>ks(e,typeof t!="symbol"?t+"":t,n);function ft(e){this.message=e||""}ft.prototype=Object.create(Error.prototype,{constructor:{value:ft},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const gn=class it{constructor(t,n,o,r,a){if(U(this,"name","Stonecrop"),U(this,"registry"),U(this,"store"),U(this,"schema"),U(this,"workflow"),U(this,"actions"),it._root)return it._root;it._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,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 ft(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){var r;const a=(r=this.registry.registry[t.slug].actions)==null?void 0:r.get(n);if(this.workflow){const{initialState:i}=this.workflow;this.workflow.transition(i,{type:n}),a&&a.length>0&&a.forEach(l=>{new Function(l)(o)})}}};U(gn,"_root");let Os=gn;var Ss=Object.create,yn=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,pt=Object.getOwnPropertyNames,Is=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty,Cs=(e,t)=>function(){return e&&(t=(0,e[pt(e)[0]])(e=0)),t},Ns=(e,t)=>function(){return t||(0,e[pt(e)[0]])((t={exports:{}}).exports,t),t.exports},Ps=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pt(t))!Vs.call(e,r)&&r!==n&&yn(e,r,{get:()=>t[r],enumerable:!(o=Ts(t,r))||o.enumerable});return e},Rs=(e,t,n)=>(n=e!=null?Ss(Is(e)):{},Ps(yn(n,"default",{value:e,enumerable:!0}),e)),Ce=Cs({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Ds=Ns({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Ce(),t.exports=o;function n(a){return a instanceof Buffer?Buffer.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function o(a){if(a=a||{},a.circles)return r(a);const i=new Map;if(i.set(Date,d=>new Date(d)),i.set(Map,(d,p)=>new Map(c(Array.from(d),p))),i.set(Set,(d,p)=>new Set(c(Array.from(d),p))),a.constructorHandlers)for(const d of a.constructorHandlers)i.set(d[0],d[1]);let l=null;return a.proto?f:u;function c(d,p){const _=Object.keys(d),g=new Array(_.length);for(let w=0;w<_.length;w++){const m=_[w],v=d[m];typeof v!="object"||v===null?g[m]=v:v.constructor!==Object&&(l=i.get(v.constructor))?g[m]=l(v,p):ArrayBuffer.isView(v)?g[m]=n(v):g[m]=p(v)}return g}function u(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,u);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,u);const p={};for(const _ in d){if(Object.hasOwnProperty.call(d,_)===!1)continue;const g=d[_];typeof g!="object"||g===null?p[_]=g:g.constructor!==Object&&(l=i.get(g.constructor))?p[_]=l(g,u):ArrayBuffer.isView(g)?p[_]=n(g):p[_]=u(g)}return p}function f(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,f);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,f);const p={};for(const _ in d){const g=d[_];typeof g!="object"||g===null?p[_]=g:g.constructor!==Object&&(l=i.get(g.constructor))?p[_]=l(g,f):ArrayBuffer.isView(g)?p[_]=n(g):p[_]=f(g)}return p}}function r(a){const i=[],l=[],c=new Map;if(c.set(Date,_=>new Date(_)),c.set(Map,(_,g)=>new Map(f(Array.from(_),g))),c.set(Set,(_,g)=>new Set(f(Array.from(_),g))),a.constructorHandlers)for(const _ of a.constructorHandlers)c.set(_[0],_[1]);let u=null;return a.proto?p:d;function f(_,g){const w=Object.keys(_),m=new Array(w.length);for(let v=0;v<w.length;v++){const S=w[v],C=_[S];if(typeof C!="object"||C===null)m[S]=C;else if(C.constructor!==Object&&(u=c.get(C.constructor)))m[S]=u(C,g);else if(ArrayBuffer.isView(C))m[S]=n(C);else{const A=i.indexOf(C);A!==-1?m[S]=l[A]:m[S]=g(C)}}return m}function d(_){if(typeof _!="object"||_===null)return _;if(Array.isArray(_))return f(_,d);if(_.constructor!==Object&&(u=c.get(_.constructor)))return u(_,d);const g={};i.push(_),l.push(g);for(const w in _){if(Object.hasOwnProperty.call(_,w)===!1)continue;const m=_[w];if(typeof m!="object"||m===null)g[w]=m;else if(m.constructor!==Object&&(u=c.get(m.constructor)))g[w]=u(m,d);else if(ArrayBuffer.isView(m))g[w]=n(m);else{const v=i.indexOf(m);v!==-1?g[w]=l[v]:g[w]=d(m)}}return i.pop(),l.pop(),g}function p(_){if(typeof _!="object"||_===null)return _;if(Array.isArray(_))return f(_,p);if(_.constructor!==Object&&(u=c.get(_.constructor)))return u(_,p);const g={};i.push(_),l.push(g);for(const w in _){const m=_[w];if(typeof m!="object"||m===null)g[w]=m;else if(m.constructor!==Object&&(u=c.get(m.constructor)))g[w]=u(m,p);else if(ArrayBuffer.isView(m))g[w]=n(m);else{const v=i.indexOf(m);v!==-1?g[w]=l[v]:g[w]=p(m)}}return i.pop(),l.pop(),g}}}});Ce(),Ce(),Ce();var En=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,En&&(O.self,O.top);var wn;typeof navigator<"u"&&((wn=navigator.userAgent)==null||wn.toLowerCase().includes("electron")),Ce();var As=Rs(Ds()),xs=/(?:^|[-_/])(\w)/g;function $s(e,t){return t?t.toUpperCase():""}function Ls(e){return e&&`${e}`.replace(xs,$s)}function js(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const a=r.lastIndexOf(t);return r.substring(0,a)}}var bn=(0,As.default)({circles:!0});const Ms={trailing:!0};function me(e,t=25,n={}){if(n={...Ms,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,a=[],i,l;const c=(u,f)=>(i=Us(e,u,f),i.finally(()=>{if(i=null,n.trailing&&l&&!r){const d=c(u,l);return l=null,d}}),i);return function(...u){return i?(n.trailing&&(l=u),i):new Promise(f=>{const d=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const p=n.leading?o:c(this,u);for(const _ of a)_(p);a=[]},t),d?(o=c(this,u),f(o)):a.push(f)})}}async function Us(e,t,n){return await e.apply(t,n)}function ht(e,t={},n){for(const o in e){const r=e[o],a=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?ht(r,t,a):typeof r=="function"&&(t[a]=r)}return t}const Bs={run:e=>e()},zs=()=>Bs,vn=typeof console.createTask<"u"?console.createTask:zs;function Hs(e,t){const n=t.shift(),o=vn(n);return e.reduce((r,a)=>r.then(()=>o.run(()=>a(...t))),Promise.resolve())}function Ks(e,t){const n=t.shift(),o=vn(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function mt(e,t){for(const n of[...e])n(t)}class Fs{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let a;for(;this._deprecatedHooks[t];)a=this._deprecatedHooks[t],t=a.to;if(a&&!o.allowDeprecated){let i=a.message;i||(i=`${r} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...a)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...a));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ht(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=ht(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Hs,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ks,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&mt(this._before,r);const a=t(n in this._hooks?[...this._hooks[n]]:[],o);return a instanceof Promise?a.finally(()=>{this._after&&r&&mt(this._after,r)}):(this._after&&r&&mt(this._after,r),a)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function kn(){return new Fs}var Ws=Object.create,On=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,_t=Object.getOwnPropertyNames,Ys=Object.getPrototypeOf,qs=Object.prototype.hasOwnProperty,Js=(e,t)=>function(){return e&&(t=(0,e[_t(e)[0]])(e=0)),t},Sn=(e,t)=>function(){return t||(0,e[_t(e)[0]])((t={exports:{}}).exports,t),t.exports},Xs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of _t(t))!qs.call(e,r)&&r!==n&&On(e,r,{get:()=>t[r],enumerable:!(o=Gs(t,r))||o.enumerable});return e},Zs=(e,t,n)=>(n=e!=null?Ws(Ys(e)):{},Xs(On(n,"default",{value:e,enumerable:!0}),e)),b=Js({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Qs=Sn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){b(),function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],a={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},l={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),u=[";","?",":","@","&","=","+","$",","].join(""),f=[".","!","~","*","'","(",")"].join(""),d=function(w,m){var v="-",S="",C="",A=!0,R={},q,k,L,y,h,E,T,I,j,z,V,G,N,x,ae="";if(typeof w!="string")return"";if(typeof m=="string"&&(v=m),T=l.en,I=i.en,typeof m=="object"){q=m.maintainCase||!1,R=m.custom&&typeof m.custom=="object"?m.custom:R,L=+m.truncate>1&&m.truncate||!1,y=m.uric||!1,h=m.uricNoSlash||!1,E=m.mark||!1,A=!(m.symbols===!1||m.lang===!1),v=m.separator||v,y&&(ae+=c),h&&(ae+=u),E&&(ae+=f),T=m.lang&&l[m.lang]&&A?l[m.lang]:A?l.en:{},I=m.lang&&i[m.lang]?i[m.lang]:m.lang===!1||m.lang===!0?{}:i.en,m.titleCase&&typeof m.titleCase.length=="number"&&Array.prototype.toString.call(m.titleCase)?(m.titleCase.forEach(function(J){R[J+""]=J+""}),k=!0):k=!!m.titleCase,m.custom&&typeof m.custom.length=="number"&&Array.prototype.toString.call(m.custom)&&m.custom.forEach(function(J){R[J+""]=J+""}),Object.keys(R).forEach(function(J){var He;J.length>1?He=new RegExp("\\b"+_(J)+"\\b","gi"):He=new RegExp(_(J),"gi"),w=w.replace(He,R[J])});for(V in R)ae+=V}for(ae+=v,ae=_(ae),w=w.replace(/(^\s+|\s+$)/g,""),N=!1,x=!1,z=0,G=w.length;z<G;z++)V=w[z],g(V,R)?N=!1:I[V]?(V=N&&I[V].match(/[A-Za-z0-9]/)?" "+I[V]:I[V],N=!1):V in o?(z+1<G&&r.indexOf(w[z+1])>=0?(C+=V,V=""):x===!0?(V=a[C]+o[V],C=""):V=N&&o[V].match(/[A-Za-z0-9]/)?" "+o[V]:o[V],N=!1,x=!1):V in a?(C+=V,V="",z===G-1&&(V=a[C]),x=!0):T[V]&&!(y&&c.indexOf(V)!==-1)&&!(h&&u.indexOf(V)!==-1)?(V=N||S.substr(-1).match(/[A-Za-z0-9]/)?v+T[V]:T[V],V+=w[z+1]!==void 0&&w[z+1].match(/[A-Za-z0-9]/)?v:"",N=!0):(x===!0?(V=a[C]+V,C="",x=!1):N&&(/[A-Za-z0-9]/.test(V)||S.substr(-1).match(/A-Za-z0-9]/))&&(V=" "+V),N=!1),S+=V.replace(new RegExp("[^\\w\\s"+ae+"_-]","g"),v);return k&&(S=S.replace(/(\w)(\S*)/g,function(J,He,zr){var cn=He.toUpperCase()+(zr!==null?zr:"");return Object.keys(R).indexOf(cn.toLowerCase())<0?cn:cn.toLowerCase()})),S=S.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),L&&S.length>L&&(j=S.charAt(L)===v,S=S.slice(0,L),j||(S=S.slice(0,S.lastIndexOf(v)))),!q&&!k&&(S=S.toLowerCase()),S},p=function(w){return function(m){return d(m,w)}},_=function(w){return w.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},g=function(w,m){for(var v in m)if(m[v]===w)return!0};if(typeof t<"u"&&t.exports)t.exports=d,t.exports.createSlug=p;else if(typeof define<"u"&&define.amd)define([],function(){return d});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=d,n.createSlug=p}catch{}}(e)}}),ea=Sn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){b(),t.exports=Qs()}});b(),b(),b(),b(),b(),b(),b(),b();function ta(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&(t=e.__file)!=null&&t.endsWith("index.vue")?"":n}function na(e){const t=e.__file;if(t)return Ls(js(t,".vue"))}function Tn(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function gt(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function In(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=gt(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function Ke(e){var t,n,o;const r=ta((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return Tn(e,i);for(const i in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return Tn(e,i);return na((e==null?void 0:e.type)||{})||"Anonymous Component"}function oa(e){var t,n,o;const r=(o=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,a=e===(e==null?void 0:e.root)?"root":e.uid;return`${r}:${a}`}function yt(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function ra(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Fe;function sa(e){return Fe||(Fe=document.createRange()),Fe.selectNode(e),Fe.getBoundingClientRect()}function aa(e){const t=ra();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const r=e.children[n];let a;if(r.component)a=ie(r.component);else if(r.el){const i=r.el;i.nodeType===1||i.getBoundingClientRect?a=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(a=sa(i))}a&&ia(t,a)}return t}function ia(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var Vn={top:0,left:0,right:0,bottom:0,width:0,height:0};function ie(e){const t=e.subTree.el;return typeof window>"u"?Vn:In(e)?aa(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?ie(e.subTree.component):Vn}b();function Et(e){return In(e)?la(e.subTree):e.subTree?[e.subTree.el]:[]}function la(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...Et(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Cn="__vue-devtools-component-inspector__",Nn="__vue-devtools-component-inspector__card__",Pn="__vue-devtools-component-inspector__name__",Rn="__vue-devtools-component-inspector__indicator__",Dn={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ca={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},ua={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function _e(){return document.getElementById(Cn)}function da(){return document.getElementById(Nn)}function fa(){return document.getElementById(Rn)}function pa(){return document.getElementById(Pn)}function wt(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function bt(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Cn,Object.assign(n.style,{...Dn,...wt(e.bounds),...e.style});const o=document.createElement("span");o.id=Nn,Object.assign(o.style,{...ca,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Pn,r.innerHTML=`<${e.name}> `;const a=document.createElement("i");return a.id=Rn,a.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(a.style,ua),o.appendChild(r),o.appendChild(a),n.appendChild(o),document.body.appendChild(n),n}function vt(e){const t=_e(),n=da(),o=pa(),r=fa();t&&(Object.assign(t.style,{...Dn,...wt(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`<${e.name}> `,r.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function ha(e){const t=ie(e);if(!t.width&&!t.height)return;const n=Ke(e);_e()?vt({bounds:t,name:n}):bt({bounds:t,name:n})}function An(){const e=_e();e&&(e.style.display="none")}var kt=null;function Ot(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(kt=n,n.vnode.el)){const o=ie(n),r=Ke(n);_e()?vt({bounds:o,name:r}):bt({bounds:o,name:r})}}}function ma(e,t){if(e.preventDefault(),e.stopPropagation(),kt){const n=oa(kt);t(n)}}var We=null;function _a(){An(),window.removeEventListener("mouseover",Ot),window.removeEventListener("click",We,!0),We=null}function ga(){return window.addEventListener("mouseover",Ot),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),ma(n,o=>{window.removeEventListener("click",t,!0),We=null,window.removeEventListener("mouseover",Ot);const r=_e();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}We=t,window.addEventListener("click",t,!0)})}function ya(e){const t=yt(B.value,e.id);if(t){const[n]=Et(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=ie(t),r=document.createElement("div"),a={...wt(o),position:"absolute"};Object.assign(r.style,a),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=ie(t);if(o.width||o.height){const r=Ke(t),a=_e();a?vt({...e,name:r,bounds:o}):bt({...e,name:r,bounds:o}),setTimeout(()=>{a&&(a.style.display="none")},1500)}},1200)}}b();var xn;(xn=O).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(xn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Ea(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function wa(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ba(){return new Promise(e=>{function t(){wa(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():Ea(()=>{t()})})}b(),b();function va(e){return!!(e&&e.__v_isReadonly)}function $n(e){return va(e)?$n(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isRef===!0)}function Ne(e){const t=e&&e.__v_raw;return t?Ne(t):e}var ka=class{constructor(){this.refEditor=new Oa}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const l=r.shift();e instanceof Map?e=e.get(l):e instanceof Set?e=Array.from(e.values())[l]:e=e[l],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const a=r[0],i=this.refEditor.get(e)[a];o?o(e,a,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[a]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e instanceof Map?e=e.get(n[o]):e=e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){const a=o.shift();e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Ne(t)instanceof Map?t.delete(n):Ne(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Ne(t)instanceof Map?t.set(e.newKey||n,o):Ne(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},Oa=class{set(e,t){if(St(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(r=>e.add(r));return}const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());n.forEach(a=>{e.set(a,Reflect.get(t,a)),r.delete(a)}),r.forEach(a=>e.delete(a));return}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return St(e)?e.value:e}isRef(e){return St(e)||$n(e)}};b(),b(),b();var Sa="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ta(){if(!En||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Sa);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}b(),b(),b();var Ln;(Ln=O).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Ln.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Ia=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Va(e,t){D.timelineLayersState[t.id]=!1,Ia.push({...e,descriptorId:t.id,appRecord:gt(t.app)})}var jn;(jn=O).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(jn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Tt=new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Mn=me(()=>{ye.hooks.callHook("sendInspectorToClient",Un())});function Ca(e,t){var n,o;Tt.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:gt(t.app)}),Mn()}function Un(){return Tt.filter(e=>e.descriptor.app===B.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o==null?void 0:o.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Ge(e,t){return Tt.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Na(){const e=kn();e.hook("addInspector",({inspector:o,plugin:r})=>{Ca(o,r.descriptor)});const t=me(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||D.highPerfModeEnabled)return;const i=Ge(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(c=>{e.callHookWith(async u=>{await Promise.all(u.map(f=>f(l))),c()},"getInspectorTree")}),e.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:l.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=me(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||D.highPerfModeEnabled)return;const i=Ge(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};l.nodeId&&await new Promise(u=>{e.callHookWith(async f=>{await Promise.all(f.map(d=>d(l,c))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(f=>f({inspectorId:o,nodeId:l.nodeId,state:l.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:a})=>{const i=Ge(o,a.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{Va(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var a;const i=["performance","component-event","keyboard","mouse"];D.highPerfModeEnabled||!((a=D.timelineLayersState)!=null&&a[r.descriptor.id])&&!i.includes(o.layerId)||e.callHookWith(async l=>{await Promise.all(l.map(c=>c(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const a=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===a).map(([,i])=>i)}),e.hook("getComponentBounds",async({instance:o})=>ie(o)),e.hook("getComponentName",({instance:o})=>Ke(o)),e.hook("componentHighlight",({uid:o})=>{const r=B.value.instanceMap.get(o);r&&ha(r)}),e.hook("componentUnhighlight",()=>{An()}),e}var Bn;(Bn=O).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(Bn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var zn;(zn=O).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(zn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Hn;(Hn=O).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(Hn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Kn;(Kn=O).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Kn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Fn;(Fn=O).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Fn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var le="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Pa(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ta()}}var Wn;(Wn=O)[le]!=null||(Wn[le]=Pa());var Ra=me(e=>{ye.hooks.callHook("devtoolsStateUpdated",{state:e})});me((e,t)=>{ye.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Ye=new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_APP_RECORDS__:O.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),B=new Proxy(O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Gn(){Ra({...O[le],appRecords:Ye.value,activeAppRecordId:B.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Da(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Gn()}function Aa(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Gn()}var D=new Proxy(O[le],{get(e,t){return t==="appRecords"?Ye:t==="activeAppRecordId"?B.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[le][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[le]},e[t]=n,O[le][t]=n,!0}});function xa(e={}){var t,n,o;const{file:r,host:a,baseUrl:i=window.location.origin,line:l=0,column:c=0}=e;if(r){if(a==="chrome-extension"){const u=r.replace(/\\/g,"\\\\"),f=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${f}__open-in-editor?file=${encodeURI(r)}`).then(d=>{if(!d.ok){const p=`Opening component ${u} failed`;console.log(`%c${p}`,"color:red")}})}else if(D.vitePluginDetected){const u=(o=O.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;O.__VUE_INSPECTOR__.openInEditor(u,r,l,c)}}}b(),b(),b(),b(),b();var Yn;(Yn=O).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Yn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var It=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Vt(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Ct(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function $a(e){var t,n,o;const r=(n=(t=It.find(a=>{var i;return a[0].id===e&&!!((i=a[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function qn(e,t){var n,o,r;const a=Ct(e);if(a){const i=localStorage.getItem(a);if(i)return JSON.parse(i)}if(e){const i=(o=(n=It.find(l=>l[0].id===e))==null?void 0:n[0])!=null?o:null;return Vt((r=i==null?void 0:i.settings)!=null?r:{})}return Vt(t)}function La(e,t){const n=Ct(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Vt(t)))}function ja(e,t,n){const o=Ct(e),r=localStorage.getItem(o),a=JSON.parse(r||"{}"),i={...a,[t]:n};localStorage.setItem(o,JSON.stringify(i)),ye.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:i}))},"setPluginSettings")}b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var Jn,Xn,H=(Xn=(Jn=O).__VUE_DEVTOOLS_HOOK)!=null?Xn:Jn.__VUE_DEVTOOLS_HOOK=kn(),Ma={vueAppInit(e){H.hook("app:init",e)},vueAppUnmount(e){H.hook("app:unmount",e)},vueAppConnected(e){H.hook("app:connected",e)},componentAdded(e){return H.hook("component:added",e)},componentEmit(e){return H.hook("component:emit",e)},componentUpdated(e){return H.hook("component:updated",e)},componentRemoved(e){return H.hook("component:removed",e)},setupDevtoolsPlugin(e){H.hook("devtools-plugin:setup",e)},perfStart(e){return H.hook("perf:start",e)},perfEnd(e){return H.hook("perf:end",e)}},Zn={on:Ma,setupDevToolsPlugin(e,t){return H.callHook("devtools-plugin:setup",e,t)}},Ua=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(D.highPerfModeEnabled)return;const n=Un().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];H.callHook("component:updated",...o)}else H.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&La(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){D.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){D.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return D.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){D.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return qn(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Ba=Ua;b(),b(),b(),b();var za="__vue_devtool_undefined__",Ha="__vue_devtool_infinity__",Ka="__vue_devtool_negative_infinity__",Fa="__vue_devtool_nan__";b(),b();var Wa={[za]:"undefined",[Fa]:"NaN",[Ha]:"Infinity",[Ka]:"-Infinity"};Object.entries(Wa).reduce((e,[t,n])=>(e[n]=t,e),{}),b(),b(),b(),b(),b();var Qn;(Qn=O).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(Qn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function eo(e,t){return Zn.setupDevToolsPlugin(e,t)}function Ga(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Ba({plugin:{setupFn:o,descriptor:n},ctx:ye});n.packageName==="vuex"&&r.on.editInspectorState(a=>{r.sendInspectorState(a.inspectorId)}),o(r)}function to(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||D.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),It.forEach(n=>{Ga(n,e)}))}b(),b();var Pe="__VUE_DEVTOOLS_ROUTER__",ge="__VUE_DEVTOOLS_ROUTER_INFO__",no;(no=O)[ge]!=null||(no[ge]={currentRoute:null,routes:[]});var oo;(oo=O)[Pe]!=null||(oo[Pe]={}),new Proxy(O[ge],{get(e,t){return O[ge][t]}}),new Proxy(O[Pe],{get(e,t){if(t==="value")return O[Pe]}});function Ya(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nt(e){return e.map(t=>{let{path:n,name:o,children:r,meta:a}=t;return r!=null&&r.length&&(r=Nt(r)),{path:n,name:o,children:r,meta:a}})}function qa(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:a,matched:i,params:l,query:c}=e;return{fullPath:t,hash:n,href:o,path:r,name:a,params:l,query:c,matched:Nt(i)}}return e}function Ja(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,a=qa(r==null?void 0:r.currentRoute.value),i=Nt(Ya(r)),l=console.warn;console.warn=()=>{},O[ge]={currentRoute:a?bn(a):{},routes:bn(i)},O[Pe]=r,console.warn=l}n(),Zn.on.componentUpdated(me(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!D.highPerfModeEnabled&&ye.hooks.callHook("routerInfoUpdated",{state:O[ge]}))},200))}function Xa(e){return{async getInspectorTree(t){const n={...t,app:B.value.app,rootNodes:[]};return await new Promise(o=>{e.callHookWith(async r=>{await Promise.all(r.map(a=>a(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:B.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async a=>{await Promise.all(a.map(i=>i(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new ka,o={...t,app:B.value.app,set:(r,a=t.path,i=t.state.value,l)=>{n.set(r,a,i,l||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(a=>a(o))},"editInspectorState")},sendInspectorState(t){const n=Ge(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ga()},cancelInspectComponentInspector(){return _a()},getComponentRenderCode(t){const n=yt(B.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return ya({id:t})},openInEditor:xa,getVueInspector:ba,toggleApp(t,n){const o=Ye.value.find(r=>r.id===t);o&&(Aa(t),Da(o),Ja(o,B),Mn(),to(o.app,n))},inspectDOM(t){const n=yt(B.value,t);if(n){const[o]=Et(n);o&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){ja(t,n,o)},getPluginSettings(t){return{options:$a(t),values:qn(t)}}}}b();var ro;(ro=O).__VUE_DEVTOOLS_ENV__!=null||(ro.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var so=Na(),ao;(ao=O).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ao.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:so,get state(){return{...D,activeAppRecordId:B.id,activeAppRecord:B.value,appRecords:Ye.value}},api:Xa(so)});var ye=O.__VUE_DEVTOOLS_KIT_CONTEXT__;b(),Zs(ea());var io;(io=O).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(io.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),b(),b();function Za(e){D.highPerfModeEnabled=e??!D.highPerfModeEnabled,!e&&B.value&&to(B.value.app)}b(),b(),b();function Qa(e){D.devtoolsClientDetected={...D.devtoolsClientDetected,...e};const t=Object.values(D.devtoolsClientDetected).some(Boolean);Za(!t)}var lo;(lo=O).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(lo.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Qa),b(),b(),b(),b(),b(),b(),b();var ei=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},co=class{constructor(e){this.generateIdentifier=e,this.kv=new ei}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},ti=class extends co{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};b(),b();function ni(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function oi(e,t){const n=ni(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const a=o[r];if(t(a))return a}}function Ee(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function qe(e,t){return e.indexOf(t)!==-1}function uo(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var ri=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return oi(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};b(),b();var si=e=>Object.prototype.toString.call(e).slice(8,-1),fo=e=>typeof e>"u",ai=e=>e===null,Re=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Pt=e=>Re(e)&&Object.keys(e).length===0,oe=e=>Array.isArray(e),ii=e=>typeof e=="string",li=e=>typeof e=="number"&&!isNaN(e),ci=e=>typeof e=="boolean",ui=e=>e instanceof RegExp,De=e=>e instanceof Map,Ae=e=>e instanceof Set,po=e=>si(e)==="Symbol",di=e=>e instanceof Date&&!isNaN(e.valueOf()),fi=e=>e instanceof Error,ho=e=>typeof e=="number"&&isNaN(e),pi=e=>ci(e)||ai(e)||fo(e)||li(e)||ii(e)||po(e),hi=e=>typeof e=="bigint",mi=e=>e===1/0||e===-1/0,_i=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),gi=e=>e instanceof URL;b();var mo=e=>e.replace(/\./g,"\\."),Rt=e=>e.map(String).map(mo).join("."),xe=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let a=e.charAt(r);if(a==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}if(a==="."){t.push(n),n="";continue}n+=a}const o=n;return t.push(o),t};b();function X(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var _o=[X(fo,"undefined",()=>null,()=>{}),X(hi,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),X(di,"Date",e=>e.toISOString(),e=>new Date(e)),X(fi,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),X(ui,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),X(Ae,"set",e=>[...e.values()],e=>new Set(e)),X(De,"map",e=>[...e.entries()],e=>new Map(e)),X(e=>ho(e)||mi(e),"number",e=>ho(e)?"NaN":e>0?"Infinity":"-Infinity",Number),X(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),X(gi,"URL",e=>e.toString(),e=>new URL(e))];function Je(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var go=Je((e,t)=>po(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),yi=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),yo=Je(_i,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=yi[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Eo(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var wo=Je(Eo,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),bo=Je((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Ei=[wo,go,bo,yo],vo=(e,t)=>{const n=uo(Ei,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=uo(_o,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},ko={};_o.forEach(e=>{ko[e.annotation]=e});var wi=(e,t,n)=>{if(oe(t))switch(t[0]){case"symbol":return go.untransform(e,t,n);case"class":return wo.untransform(e,t,n);case"custom":return bo.untransform(e,t,n);case"typed-array":return yo.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=ko[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};b();var we=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Oo(e){if(qe(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(qe(e,"prototype"))throw new Error("prototype is not allowed as a property");if(qe(e,"constructor"))throw new Error("constructor is not allowed as a property")}var bi=(e,t)=>{Oo(t);for(let n=0;n<t.length;n++){const o=t[n];if(Ae(e))e=we(e,+o);else if(De(e)){const r=+o,a=+t[++n]==0?"key":"value",i=we(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[o]}return e},Dt=(e,t,n)=>{if(Oo(t),t.length===0)return n(e);let o=e;for(let a=0;a<t.length-1;a++){const i=t[a];if(oe(o)){const l=+i;o=o[l]}else if(Re(o))o=o[i];else if(Ae(o)){const l=+i;o=we(o,l)}else if(De(o)){if(a===t.length-2)break;const l=+i,c=+t[++a]==0?"key":"value",u=we(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=t[t.length-1];if(oe(o)?o[+r]=n(o[+r]):Re(o)&&(o[r]=n(o[r])),Ae(o)){const a=we(o,+r),i=n(a);a!==i&&(o.delete(a),o.add(i))}if(De(o)){const a=+t[t.length-2],i=we(o,a);switch(+r==0?"key":"value"){case"key":{const l=n(i);o.set(l,o.get(i)),l!==i&&o.delete(i);break}case"value":{o.set(i,n(o.get(i)));break}}}return e};function At(e,t,n=[]){if(!e)return;if(!oe(e)){Ee(e,(a,i)=>At(a,t,[...n,...xe(i)]));return}const[o,r]=e;r&&Ee(r,(a,i)=>{At(a,t,[...n,...xe(i)])}),t(o,n)}function vi(e,t,n){return At(t,(o,r)=>{e=Dt(e,r,a=>wi(a,o,n))}),e}function ki(e,t){function n(o,r){const a=bi(e,xe(r));o.map(xe).forEach(i=>{e=Dt(e,i,()=>a)})}if(oe(t)){const[o,r]=t;o.forEach(a=>{e=Dt(e,xe(a),()=>e)}),r&&Ee(r,n)}else Ee(t,n);return e}var Oi=(e,t)=>Re(e)||oe(e)||De(e)||Ae(e)||Eo(e,t);function Si(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function Ti(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(l=>l.map(String)).sort((l,c)=>l.length-c.length));const[a,...i]=r;a.length===0?o=i.map(Rt):n[Rt(a)]=i.map(Rt)}),o?Pt(n)?[o]:[o,n]:Pt(n)?void 0:n}var So=(e,t,n,o,r=[],a=[],i=new Map)=>{var l;const c=pi(e);if(!c){Si(e,r,t);const g=i.get(e);if(g)return o?{transformedValue:null}:g}if(!Oi(e,n)){const g=vo(e,n),w=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return c||i.set(e,w),w}if(qe(a,e))return{transformedValue:null};const u=vo(e,n),f=(l=u==null?void 0:u.value)!=null?l:e,d=oe(f)?[]:{},p={};Ee(f,(g,w)=>{if(w==="__proto__"||w==="constructor"||w==="prototype")throw new Error(`Detected property ${w}. This is a prototype pollution risk, please remove it from your object.`);const m=So(g,t,n,o,[...r,w],[...a,e],i);d[w]=m.transformedValue,oe(m.annotations)?p[w]=m.annotations:Re(m.annotations)&&Ee(m.annotations,(v,S)=>{p[mo(w)+"."+S]=v})});const _=Pt(p)?{transformedValue:d,annotations:u?[u.type]:void 0}:{transformedValue:d,annotations:u?[u.type,p]:p};return c||i.set(e,_),_};b(),b();function To(e){return Object.prototype.toString.call(e).slice(8,-1)}function Io(e){return To(e)==="Array"}function Ii(e){if(To(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Vi(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";a==="enumerable"&&(e[t]=n),r&&a==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function xt(e,t={}){if(Io(e))return e.map(r=>xt(r,t));if(!Ii(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,a)=>{if(Io(t.props)&&!t.props.includes(a))return r;const i=e[a],l=xt(i,t);return Vi(r,a,l,e,t.nonenumerable),r},{})}var P=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ti,this.symbolRegistry=new co(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new ri,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=So(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=Ti(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=xt(t);return n!=null&&n.values&&(o=vi(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=ki(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};P.defaultInstance=new P,P.serialize=P.defaultInstance.serialize.bind(P.defaultInstance),P.deserialize=P.defaultInstance.deserialize.bind(P.defaultInstance),P.stringify=P.defaultInstance.stringify.bind(P.defaultInstance),P.parse=P.defaultInstance.parse.bind(P.defaultInstance),P.registerClass=P.defaultInstance.registerClass.bind(P.defaultInstance),P.registerSymbol=P.defaultInstance.registerSymbol.bind(P.defaultInstance),P.registerCustom=P.defaultInstance.registerCustom.bind(P.defaultInstance),P.allowErrorProps=P.defaultInstance.allowErrorProps.bind(P.defaultInstance),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var Vo;(Vo=O).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Vo.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Co;(Co=O).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Co.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var No;(No=O).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(No.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Po;(Po=O).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Po.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Ro;(Ro=O).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Ro.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Do;(Do=O).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(Do.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),b(),b(),b(),b(),b(),b(),b();/*!
|
|
2
2
|
* pinia v3.0.3
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let $e;const Le=e=>$e=e,Ao=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Z;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Z||(Z={}));const re=typeof window<"u",xo=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 Ci(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 $t(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){jo(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function $o(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Xe(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}const Ze=typeof navigator=="object"?navigator:{userAgent:""},Lo=/Macintosh/.test(Ze.userAgent)&&/AppleWebKit/.test(Ze.userAgent)&&!/Safari/.test(Ze.userAgent),jo=re?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Lo?Ni:"msSaveOrOpenBlob"in Ze?Pi:Ri:()=>{};function Ni(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?$o(o.href)?$t(e,t,n):(o.target="_blank",Xe(o)):Xe(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Xe(o)},0))}function Pi(e,t="download",n){if(typeof e=="string")if($o(e))$t(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Xe(o)})}else navigator.msSaveOrOpenBlob(Ci(e,n),t)}function Ri(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return $t(e,t,n);const r=e.type==="application/octet-stream",
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
5
|
+
*/let $e;const Le=e=>$e=e,Ao=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Z;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Z||(Z={}));const re=typeof window<"u",xo=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 Ci(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 $t(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){jo(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function $o(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Xe(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}const Ze=typeof navigator=="object"?navigator:{userAgent:""},Lo=/Macintosh/.test(Ze.userAgent)&&/AppleWebKit/.test(Ze.userAgent)&&!/Safari/.test(Ze.userAgent),jo=re?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Lo?Ni:"msSaveOrOpenBlob"in Ze?Pi:Ri:()=>{};function Ni(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?$o(o.href)?$t(e,t,n):(o.target="_blank",Xe(o)):Xe(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Xe(o)},0))}function Pi(e,t="download",n){if(typeof e=="string")if($o(e))$t(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Xe(o)})}else navigator.msSaveOrOpenBlob(Ci(e,n),t)}function Ri(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return $t(e,t,n);const r=e.type==="application/octet-stream",a=/constructor/i.test(String(xo.HTMLElement))||"safari"in xo,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||r&&a||Lo)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function $(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 Lt(e){return"_a"in e&&"install"in e}function Mo(){if(!("clipboard"in navigator))return $("Your browser doesn't support the Clipboard API","error"),!0}function Uo(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?($('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Di(e){if(!Mo())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),$("Global state copied to clipboard.")}catch(t){if(Uo(t))return;$("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ai(e){if(!Mo())try{Bo(e,JSON.parse(await navigator.clipboard.readText())),$("Global state pasted from clipboard.")}catch(t){if(Uo(t))return;$("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function xi(e){try{jo(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){$("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Q;function $i(){Q||(Q=document.createElement("input"),Q.type="file",Q.accept=".json");function e(){return new Promise((t,n)=>{Q.onchange=async()=>{const o=Q.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},Q.oncancel=()=>t(null),Q.onerror=n,Q.click()})}return e}async function Li(e){try{const t=await $i()();if(!t)return;const{text:n,file:o}=t;Bo(e,JSON.parse(n)),$(`Global state imported from "${o.name}".`)}catch(t){$("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Bo(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 Y(e){return{_custom:{display:e}}}const zo="🍍 Pinia (root)",Qe="_root";function ji(e){return Lt(e)?{id:Qe,label:zo}:{id:e.$id,label:e.$id}}function Mi(e){if(Lt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(r=>({editable:!0,key:r,value:e.state.value[r]})),getters:n.filter(r=>o.get(r)._getters).map(r=>{const a=o.get(r);return{editable:!1,key:r,value:a._getters.reduce((i,l)=>(i[l]=a[l],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 Ui(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:Y(e.type),key:Y(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Bi(e){switch(e){case Z.direct:return"mutation";case Z.patchFunction:return"$patch";case Z.patchObject:return"$patch";default:return"unknown"}}let be=!0;const et=[],ue="pinia:mutations",M="pinia",{assign:zi}=Object,tt=e=>"🍍 "+e;function Hi(e,t){eo({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:et,app:e},n=>{typeof n.now!="function"&&$("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:ue,label:"Pinia 🍍",color:15064968}),n.addInspector({id:M,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Di(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ai(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{xi(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Li(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?$(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),$(`Store "${o}" reset.`)):$(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(o=>{const r=o.componentInstance&&o.componentInstance.proxy;if(r&&r._pStores){const a=o.componentInstance.proxy._pStores;Object.values(a).forEach(i=>{o.instanceData.state.push({type:tt(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:s.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,c)=>(l[c]=i.$state[c],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:tt(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,c)=>{try{l[c]=i[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===M){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):zo.toLowerCase().includes(o.filter.toLowerCase())):r).map(ji)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===M){const r=o.nodeId===Qe?t:t._s.get(o.nodeId);if(!r)return;r&&(o.nodeId!==Qe&&(globalThis.$store=s.toRaw(r)),o.state=Mi(r))}}),n.on.editInspectorState(o=>{if(o.app===e&&o.inspectorId===M){const r=o.nodeId===Qe?t:t._s.get(o.nodeId);if(!r)return $(`store "${o.nodeId}" not found`,"error");const{path:a}=o;Lt(r)?a.unshift("state"):(a.length!==1||!r._customProperties.has(a[0])||a[0]in r.$state)&&a.unshift("$state"),be=!1,o.set(r,a,o.state.value),be=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const r=o.type.replace(/^🍍\s*/,""),a=t._s.get(r);if(!a)return $(`store "${r}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return $(`Invalid path for store "${r}":
|
|
6
|
+
${i}
|
|
7
|
+
Only state can be modified.`);i[0]="$state",be=!1,o.set(a,i,o.state.value),be=!0}})})}function Ki(e,t){et.includes(tt(t.$id))||et.push(tt(t.$id)),eo({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:et,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:l,name:c,args:u})=>{const f=Ho++;n.addTimelineEvent({layerId:ue,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:Y(t.$id),action:Y(c),args:u},groupId:f}}),i(d=>{se=void 0,n.addTimelineEvent({layerId:ue,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:Y(t.$id),action:Y(c),args:u,result:d},groupId:f}})}),l(d=>{se=void 0,n.addTimelineEvent({layerId:ue,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Y(t.$id),action:Y(c),args:u,error:d},groupId:f}})})},!0),t._customProperties.forEach(i=>{s.watch(()=>s.unref(t[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(M),be&&n.addTimelineEvent({layerId:ue,event:{time:o(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:se}})},{deep:!0})}),t.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(M),!be)return;const u={time:o(),title:Bi(l),data:zi({store:Y(t.$id)},Ui(i)),groupId:se};l===Z.patchFunction?u.subtitle="⤵️":l===Z.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:ue,event:u})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=s.markRaw(i=>{r(i),n.addTimelineEvent({layerId:ue,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Y(t.$id),info:Y("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&$(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&$(`"${t.$id}" store installed 🆕`)})}let Ho=0,se;function Ko(e,t,n){const o=t.reduce((r,a)=>(r[a]=s.toRaw(e)[a],r),{});for(const r in o)e[r]=function(){const a=Ho,i=n?new Proxy(e,{get(...c){return se=a,Reflect.get(...c)},set(...c){return se=a,Reflect.set(...c)}}):e;se=a;const l=o[r].apply(i,arguments);return se=void 0,l}}function Fi({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Ko(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;s.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),Ko(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)}}Ki(e,t)}}function Wi(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],o=[];const r=s.markRaw({install(a){Le(r),r._a=a,a.provide(Ao,r),a.config.globalProperties.$pinia=r,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&re&&Hi(a,r),o.forEach(i=>n.push(i)),o=[]},use(a){return this._a?n.push(a):o.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"&&re&&typeof Proxy<"u"&&r.use(Fi),r}function Fo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ce(r)&&ce(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=Fo(r,o):e[n]=o}return e}const Wo=()=>{};function Go(e,t,n,o=Wo){e.push(t);const r=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function ve(e,...t){e.slice().forEach(n=>{n(...t)})}const Gi=e=>e(),Yo=Symbol(),jt=Symbol();function Mt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];ce(r)&&ce(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=Mt(r,o):e[n]=o}return e}const Yi=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function qi(e){return!ce(e)||!Object.prototype.hasOwnProperty.call(e,Yi)}const{assign:F}=Object;function qo(e){return!!(s.isRef(e)&&e.effect)}function Jo(e,t,n,o){const{state:r,actions:a,getters:i}=t,l=n.state.value[e];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const f=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return F(f,a,Object.keys(i||{}).reduce((d,p)=>(process.env.NODE_ENV!=="production"&&p in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),d[p]=s.markRaw(s.computed(()=>{Le(n);const _=n._s.get(e);return i[p].call(_,_)})),d),{}))}return c=Ut(e,u,t,n,o,!0),c}function Ut(e,t,n={},o,r,a){let i;const l=F({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=y=>{u?_=y:u==!1&&!k._hotUpdating&&(Array.isArray(_)?_.push(y):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,f,d=[],p=[],_;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const w=s.ref({});let m;function v(y){let h;u=f=!1,process.env.NODE_ENV!=="production"&&(_=[]),typeof y=="function"?(y(o.state.value[e]),h={type:Z.patchFunction,storeId:e,events:_}):(Mt(o.state.value[e],y),h={type:Z.patchObject,payload:y,storeId:e,events:_});const E=m=Symbol();s.nextTick().then(()=>{m===E&&(u=!0)}),f=!0,ve(d,h,o.state.value[e])}const S=a?function(){const{state:y}=n,h=y?y():{};this.$patch(E=>{F(E,h)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Wo;function C(){i.stop(),d=[],p=[],o._s.delete(e)}const A=(y,h="")=>{if(Yo in y)return y[jt]=h,y;const E=function(){Le(o);const T=Array.from(arguments),I=[],j=[];function z(N){I.push(N)}function V(N){j.push(N)}ve(p,{args:T,name:E[jt],store:k,after:z,onError:V});let G;try{G=y.apply(this&&this.$id===e?this:k,T)}catch(N){throw ve(j,N),N}return G instanceof Promise?G.then(N=>(ve(I,N),N)).catch(N=>(ve(j,N),Promise.reject(N))):(ve(I,G),G)};return E[Yo]=!0,E[jt]=h,E},R=s.markRaw({actions:{},getters:{},state:[],hotState:w}),q={_p:o,$id:e,$onAction:Go.bind(null,p),$patch:v,$reset:S,$subscribe(y,h={}){const E=Go(d,y,h.detached,()=>T()),T=i.run(()=>s.watch(()=>o.state.value[e],I=>{(h.flush==="sync"?f:u)&&y({storeId:e,type:Z.direct,events:_},I)},F({},c,h)));return E},$dispose:C},k=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&re?F({_hmrPayload:R,_customProperties:s.markRaw(new Set)},q):q);o._s.set(e,k);const L=(o._a&&o._a.runWithContext||Gi)(()=>o._e.run(()=>(i=s.effectScope()).run(()=>t({action:A}))));for(const y in L){const h=L[y];if(s.isRef(h)&&!qo(h)||s.isReactive(h))process.env.NODE_ENV!=="production"&&r?w.value[y]=s.toRef(L,y):a||(g&&qi(h)&&(s.isRef(h)?h.value=g[y]:Mt(h,g[y])),o.state.value[e][y]=h),process.env.NODE_ENV!=="production"&&R.state.push(y);else if(typeof h=="function"){const E=process.env.NODE_ENV!=="production"&&r?h:A(h,y);L[y]=E,process.env.NODE_ENV!=="production"&&(R.actions[y]=h),l.actions[y]=h}else process.env.NODE_ENV!=="production"&&qo(h)&&(R.getters[y]=a?n.getters[y]:h,re&&(L._getters||(L._getters=s.markRaw([]))).push(y))}if(F(k,L),F(s.toRaw(k),L),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?w.value:o.state.value[e],set:y=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");v(h=>{F(h,y)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=s.markRaw(y=>{k._hotUpdating=!0,y._hmrPayload.state.forEach(h=>{if(h in k.$state){const E=y.$state[h],T=k.$state[h];typeof E=="object"&&ce(E)&&ce(T)?Fo(E,T):y.$state[h]=T}k[h]=s.toRef(y.$state,h)}),Object.keys(k.$state).forEach(h=>{h in y.$state||delete k[h]}),u=!1,f=!1,o.state.value[e]=s.toRef(y._hmrPayload,"hotState"),f=!0,s.nextTick().then(()=>{u=!0});for(const h in y._hmrPayload.actions){const E=y[h];k[h]=A(E,h)}for(const h in y._hmrPayload.getters){const E=y._hmrPayload.getters[h],T=a?s.computed(()=>(Le(o),E.call(k,k))):E;k[h]=T}Object.keys(k._hmrPayload.getters).forEach(h=>{h in y._hmrPayload.getters||delete k[h]}),Object.keys(k._hmrPayload.actions).forEach(h=>{h in y._hmrPayload.actions||delete k[h]}),k._hmrPayload=y._hmrPayload,k._getters=y._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&re){const y={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(h=>{Object.defineProperty(k,h,F({value:k[h]},y))})}return o._p.forEach(y=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&re){const h=i.run(()=>y({store:k,app:o._a,pinia:o,options:l}));Object.keys(h||{}).forEach(E=>k._customProperties.add(E)),F(k,h)}else F(k,i.run(()=>y({store:k,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${k.$id}".`),
|
|
9
|
+
Found in store "${k.$id}".`),g&&a&&n.hydrate&&n.hydrate(k.$state,g),u=!0,f=!0,k}/*! #__NO_SIDE_EFFECTS__ */function Ji(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function a(i,l){const c=s.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&$e&&$e._testing?null:i)||(c?s.inject(Ao,null):null),i&&Le(i),process.env.NODE_ENV!=="production"&&!$e)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);a=$e,a._s.has(e)||(r?Ut(e,t,o,a):Jo(e,o,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(e);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+e,f=r?Ut(d,t,o,a,!0):Jo(d,F({},o),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(process.env.NODE_ENV!=="production"&&re){const d=s.getCurrentInstance();if(d&&d.proxy&&!l){const f=d.proxy,p="_pStores"in f?f._pStores:f._pStores={};p[e]=u}}return u}return i.$id=e,i}const Xi=Ji("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function Xo(e){const t=s.ref();return s.onMounted(async()=>{var n,o,r;e||(e=s.inject("$registry"));let i;try{i=Xi()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new Os(e,i),!e||!e.router)return;const a=e.router.currentRoute.value,l=(n=a.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=a.params.record)==null?void 0:o.toString().toLowerCase();if(!l&&!c)return;const u=await((r=e.getMeta)==null?void 0:r.call(e,l));u&&(e.addDoctype(u),t.value.setup(u),l&&(c?await t.value.getRecord(u,c):await t.value.getRecords(u)),t.value.runAction(u,"LOAD",c?[c]:void 0))}),{stonecrop:t}}U(class lt{constructor(t,n){if(U(this,"name"),U(this,"registry"),U(this,"router"),U(this,"getMeta"),lt._root)return lt._root;lt._root=this,this.name="Registry",this.registry={},this.router=t,this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),t.component&&this.router&&!this.router.hasRoute(t.doctype)&&this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");function Zi(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var ke=Promise.resolve();function Zo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Qi(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Bt(){return Math.random().toString(36).substring(2)}var zt=0;function je(){var e=Date.now()*1e3;return e<=zt&&(e=zt+1),zt=e,e}var el=je,tl="native";function nl(e){var t={time:je(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ol(e){e.bc.close(),e.subFns=[]}function rl(e,t){try{return e.bc.postMessage(t,!1),ke}catch(n){return Promise.reject(n)}}function sl(e,t){e.messagesCallback=t}function al(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&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 il(){return 150}var ll={create:nl,close:ol,onMessage:sl,postMessage:rl,canBeUsed:al,type:tl,averageResponseTime:il,microSeconds:el};class Qo{constructor(t){U(this,"ttl"),U(this,"map",new Map),U(this,"_to",!1),this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,er()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,cl(this)},0))}clear(){this.map.clear()}}function cl(e){const t=er()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const r=o[0];if(o[1]<t)e.map.delete(r);else return}}function er(){return Date.now()}function Ht(){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 ul=je,dl="pubkey.broadcast-channel-0-",ee="messages",nt={durability:"relaxed"},fl="idb";function tr(){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 Kt(e){e.commit&&e.commit()}function pl(e){var t=tr(),n=dl+e,o=t.open(n);return o.onupgradeneeded=function(r){var i=r.target.result;i.createObjectStore(ee,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,i){o.onerror=function(a){return i(a)},o.onsuccess=function(){r(o.result)}})}function hl(e,t,n){var o=Date.now(),r={uuid:t,time:o,data:n},i=e.transaction([ee],"readwrite",nt);return new Promise(function(a,l){i.oncomplete=function(){return a()},i.onerror=function(u){return l(u)};var c=i.objectStore(ee);c.add(r),Kt(i)})}function ml(e,t){var n=e.transaction(ee,"readonly",nt),o=n.objectStore(ee),r=[],i=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var a=o.getAll(i);return new Promise(function(c,u){a.onerror=function(d){return u(d)},a.onsuccess=function(d){c(d.target.result)}})}function l(){try{return i=IDBKeyRange.bound(t+1,1/0),o.openCursor(i)}catch{return o.openCursor()}}return new Promise(function(c,u){var d=l();d.onerror=function(f){return u(f)},d.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(r.push(p.value),p.continue()):(Kt(n),c(r))}})}function _l(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ee,"readwrite",nt),o=n.objectStore(ee);return Promise.all(t.map(function(r){var i=o.delete(r);return new Promise(function(a){i.onsuccess=function(){return a()}})}))}function gl(e,t){var n=Date.now()-t,o=e.transaction(ee,"readonly",nt),r=o.objectStore(ee),i=[];return new Promise(function(a){r.openCursor().onsuccess=function(l){var c=l.target.result;if(c){var u=c.value;u.time<n?(i.push(u),c.continue()):(Kt(o),a(i))}else a(i)}})}function yl(e){return gl(e.db,e.options.idb.ttl).then(function(t){return _l(e,t.map(function(n){return n.id}))})}function El(e,t){return t=Ht(t),pl(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Bt(),eMIs:new Qo(t.idb.ttl*2),writeBlockPromise:ke,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},nr(o),o})}function nr(e){e.closed||or(e).then(function(){return Zo(e.options.idb.fallbackInterval)}).then(function(){return nr(e)})}function wl(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function or(e){return e.closed||!e.messagesCallback?ke:ml(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 wl(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),ke})}function bl(e){e.closed=!0,e.db.close()}function vl(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return hl(e.db,e.uuid,t)}).then(function(){Qi(0,10)===0&&yl(e)}),e.writeBlockPromise}function kl(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,or(e)}function Ol(){return!!tr()}function Sl(e){return e.idb.fallbackInterval*2}var Tl={create:El,close:bl,onMessage:kl,postMessage:vl,canBeUsed:Ol,type:fl,averageResponseTime:Sl,microSeconds:ul},Il=je,Vl="pubkey.broadcastChannel-",Cl="localstorage";function rr(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function sr(e){return Vl+e}function Nl(e,t){return new Promise(function(n){Zo().then(function(){var o=sr(e.channelName),r={token:Bt(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(r);rr().setItem(o,i);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=o,a.newValue=i,window.dispatchEvent(a),n()})})}function Pl(e,t){var n=sr(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function Rl(e){window.removeEventListener("storage",e)}function Dl(e,t){if(t=Ht(t),!ar())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Bt(),o=new Qo(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Pl(e,function(i){r.messagesCallback&&i.uuid!==n&&(!i.token||o.has(i.token)||i.data.time&&i.data.time<r.messagesCallbackTime||(o.add(i.token),r.messagesCallback(i.data)))}),r}function Al(e){Rl(e.listener)}function xl(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function ar(){var e=rr();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function $l(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Ll={create:Dl,close:Al,onMessage:xl,postMessage:Nl,canBeUsed:ar,type:Cl,averageResponseTime:$l,microSeconds:Il},ir=je,jl="simulate",Ft=new Set;function Ml(e){var t={time:ir(),name:e,messagesCallback:null};return Ft.add(t),t}function Ul(e){Ft.delete(e)}var lr=5;function Bl(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Ft);o.forEach(function(r){r.name===e.name&&r!==e&&r.messagesCallback&&r.time<t.time&&r.messagesCallback(t)}),n()},lr)})}function zl(e,t){e.messagesCallback=t}function Hl(){return!0}function Kl(){return lr}var Fl={create:Ml,close:Ul,onMessage:zl,postMessage:Bl,canBeUsed:Hl,type:jl,averageResponseTime:Kl,microSeconds:ir},cr=[ll,Tl,Ll];function Wl(e){var t=[].concat(e.methods,cr).filter(Boolean);if(e.type){if(e.type==="simulate")return Fl;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(cr.map(function(r){return r.type})))}var ur=new Set,Gl=0,Wt=function(e,t){this.id=Gl++,ur.add(this),this.name=e,this.options=Ht(t),this.method=Wl(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Yl(this)};Wt._pubkey=!0,Wt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return dr(this,"message",e)},postInternal:function(e){return dr(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};hr(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,pr(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};pr(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});hr(this,e,n)},close:function(){var e=this;if(!this.closed){ur.delete(this),this.closed=!0;var t=this._prepP?this._prepP:ke;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 dr(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},i=e._prepP?e._prepP:ke;return i.then(function(){var a=e.method.postMessage(e._state,r);return e._uMP.add(a),a.catch().then(function(){return e._uMP.delete(a)}),a})}function Yl(e){var t=e.method.create(e.name,e.options);Zi(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function fr(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function pr(e,t,n){e._addEL[t].push(n),ql(e)}function hr(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),Jl(e)}function ql(e){if(!e._iL&&fr(e)){var t=function(o){e._addEL[o.type].forEach(function(r){o.time>=r.time&&r.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function Jl(e){if(e._iL&&!fr(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function mr(e,t={serialize:JSON.stringify,deserialize:JSON.parse}){return t.deserialize(t.serialize(e))}function Xl(e,t){return Object.keys(t).includes(e)}function Zl({enable:e=!0,initialize:t=!0,type:n,serializer:o}){return({store:r,options:i})=>{var a,l,c;const u=((a=i==null?void 0:i.share)==null?void 0:a.enable)??e,d=((l=i==null?void 0:i.share)==null?void 0:l.omit)??[];if(!u)return;const f=new Wt(r.$id,{type:n});let p=0,g=!1;const h=Object.keys(r.$state).filter(b=>!d.includes(b)&&Xl(b,r.$state));f.onmessage=b=>{if(b===void 0){f.postMessage({timestamp:p,state:mr(r.$state,o)});return}b.timestamp<=p||(g=!0,p=b.timestamp,r.$patch(_=>{h.forEach(v=>{_[v]=b.state[v]})}))},(((c=i==null?void 0:i.share)==null?void 0:c.initialize)??t)&&f.postMessage(void 0),r.$subscribe((b,_)=>{g||(p=Date.now(),f.postMessage({timestamp:p,state:mr(_,o)})),g=!1})}}Wi().use(Zl({enable:!0,initialize:!0}));const _r=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=Xo(),o=s.ref([]);return s.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((i,a)=>{const c=t.value.store.record[i.fieldname];r[a].value=c}),o.value=r}}),(r,i)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(bs),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=a=>o.value=a)},null,8,["modelValue"])):s.createCommentVNode("",!0)}});/*!
|
|
11
|
+
This will fail in production.`);i=$e,i._s.has(e)||(r?Ut(e,t,o,i):Jo(e,o,i),process.env.NODE_ENV!=="production"&&(a._pinia=i));const u=i._s.get(e);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+e,d=r?Ut(f,t,o,i,!0):Jo(f,F({},o),i,!0);l._hotUpdate(d),delete i.state.value[f],i._s.delete(f)}if(process.env.NODE_ENV!=="production"&&re){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const d=f.proxy,p="_pStores"in d?d._pStores:d._pStores={};p[e]=u}}return u}return a.$id=e,a}const Xi=Ji("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function Xo(e){const t=s.ref();return s.onMounted(async()=>{var n,o,r;e||(e=s.inject("$registry"));let a;try{a=Xi()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new Os(e,a),!e||!e.router)return;const i=e.router.currentRoute.value,l=(n=i.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=i.params.record)==null?void 0:o.toString().toLowerCase();if(!l&&!c)return;const u=await((r=e.getMeta)==null?void 0:r.call(e,l));u&&(e.addDoctype(u),t.value.setup(u),l&&(c?await t.value.getRecord(u,c):await t.value.getRecords(u)),t.value.runAction(u,"LOAD",c?[c]:void 0))}),{stonecrop:t}}U(class lt{constructor(t,n){if(U(this,"name"),U(this,"registry"),U(this,"router"),U(this,"getMeta"),lt._root)return lt._root;lt._root=this,this.name="Registry",this.registry={},this.router=t,this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),t.component&&this.router&&!this.router.hasRoute(t.doctype)&&this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");function Zi(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var ke=Promise.resolve();function Zo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Qi(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Bt(){return Math.random().toString(36).substring(2)}var zt=0;function je(){var e=Date.now()*1e3;return e<=zt&&(e=zt+1),zt=e,e}var el=je,tl="native";function nl(e){var t={time:je(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ol(e){e.bc.close(),e.subFns=[]}function rl(e,t){try{return e.bc.postMessage(t,!1),ke}catch(n){return Promise.reject(n)}}function sl(e,t){e.messagesCallback=t}function al(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&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 il(){return 150}var ll={create:nl,close:ol,onMessage:sl,postMessage:rl,canBeUsed:al,type:tl,averageResponseTime:il,microSeconds:el};class Qo{constructor(t){U(this,"ttl"),U(this,"map",new Map),U(this,"_to",!1),this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,er()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,cl(this)},0))}clear(){this.map.clear()}}function cl(e){const t=er()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const r=o[0];if(o[1]<t)e.map.delete(r);else return}}function er(){return Date.now()}function Ht(){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 ul=je,dl="pubkey.broadcast-channel-0-",ee="messages",nt={durability:"relaxed"},fl="idb";function tr(){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 Kt(e){e.commit&&e.commit()}function pl(e){var t=tr(),n=dl+e,o=t.open(n);return o.onupgradeneeded=function(r){var a=r.target.result;a.createObjectStore(ee,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,a){o.onerror=function(i){return a(i)},o.onsuccess=function(){r(o.result)}})}function hl(e,t,n){var o=Date.now(),r={uuid:t,time:o,data:n},a=e.transaction([ee],"readwrite",nt);return new Promise(function(i,l){a.oncomplete=function(){return i()},a.onerror=function(u){return l(u)};var c=a.objectStore(ee);c.add(r),Kt(a)})}function ml(e,t){var n=e.transaction(ee,"readonly",nt),o=n.objectStore(ee),r=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var i=o.getAll(a);return new Promise(function(c,u){i.onerror=function(f){return u(f)},i.onsuccess=function(f){c(f.target.result)}})}function l(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(c,u){var f=l();f.onerror=function(d){return u(d)},f.onsuccess=function(d){var p=d.target.result;p?p.value.id<t+1?p.continue(t+1):(r.push(p.value),p.continue()):(Kt(n),c(r))}})}function _l(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ee,"readwrite",nt),o=n.objectStore(ee);return Promise.all(t.map(function(r){var a=o.delete(r);return new Promise(function(i){a.onsuccess=function(){return i()}})}))}function gl(e,t){var n=Date.now()-t,o=e.transaction(ee,"readonly",nt),r=o.objectStore(ee),a=[];return new Promise(function(i){r.openCursor().onsuccess=function(l){var c=l.target.result;if(c){var u=c.value;u.time<n?(a.push(u),c.continue()):(Kt(o),i(a))}else i(a)}})}function yl(e){return gl(e.db,e.options.idb.ttl).then(function(t){return _l(e,t.map(function(n){return n.id}))})}function El(e,t){return t=Ht(t),pl(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Bt(),eMIs:new Qo(t.idb.ttl*2),writeBlockPromise:ke,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},nr(o),o})}function nr(e){e.closed||or(e).then(function(){return Zo(e.options.idb.fallbackInterval)}).then(function(){return nr(e)})}function wl(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function or(e){return e.closed||!e.messagesCallback?ke:ml(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 wl(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),ke})}function bl(e){e.closed=!0,e.db.close()}function vl(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return hl(e.db,e.uuid,t)}).then(function(){Qi(0,10)===0&&yl(e)}),e.writeBlockPromise}function kl(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,or(e)}function Ol(){return!!tr()}function Sl(e){return e.idb.fallbackInterval*2}var Tl={create:El,close:bl,onMessage:kl,postMessage:vl,canBeUsed:Ol,type:fl,averageResponseTime:Sl,microSeconds:ul},Il=je,Vl="pubkey.broadcastChannel-",Cl="localstorage";function rr(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function sr(e){return Vl+e}function Nl(e,t){return new Promise(function(n){Zo().then(function(){var o=sr(e.channelName),r={token:Bt(),time:Date.now(),data:t,uuid:e.uuid},a=JSON.stringify(r);rr().setItem(o,a);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=a,window.dispatchEvent(i),n()})})}function Pl(e,t){var n=sr(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function Rl(e){window.removeEventListener("storage",e)}function Dl(e,t){if(t=Ht(t),!ar())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Bt(),o=new Qo(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Pl(e,function(a){r.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<r.messagesCallbackTime||(o.add(a.token),r.messagesCallback(a.data)))}),r}function Al(e){Rl(e.listener)}function xl(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function ar(){var e=rr();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function $l(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Ll={create:Dl,close:Al,onMessage:xl,postMessage:Nl,canBeUsed:ar,type:Cl,averageResponseTime:$l,microSeconds:Il},ir=je,jl="simulate",Ft=new Set;function Ml(e){var t={time:ir(),name:e,messagesCallback:null};return Ft.add(t),t}function Ul(e){Ft.delete(e)}var lr=5;function Bl(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Ft);o.forEach(function(r){r.name===e.name&&r!==e&&r.messagesCallback&&r.time<t.time&&r.messagesCallback(t)}),n()},lr)})}function zl(e,t){e.messagesCallback=t}function Hl(){return!0}function Kl(){return lr}var Fl={create:Ml,close:Ul,onMessage:zl,postMessage:Bl,canBeUsed:Hl,type:jl,averageResponseTime:Kl,microSeconds:ir},cr=[ll,Tl,Ll];function Wl(e){var t=[].concat(e.methods,cr).filter(Boolean);if(e.type){if(e.type==="simulate")return Fl;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(cr.map(function(r){return r.type})))}var ur=new Set,Gl=0,Wt=function(e,t){this.id=Gl++,ur.add(this),this.name=e,this.options=Ht(t),this.method=Wl(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Yl(this)};Wt._pubkey=!0,Wt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return dr(this,"message",e)},postInternal:function(e){return dr(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};hr(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,pr(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};pr(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});hr(this,e,n)},close:function(){var e=this;if(!this.closed){ur.delete(this),this.closed=!0;var t=this._prepP?this._prepP:ke;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 dr(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},a=e._prepP?e._prepP:ke;return a.then(function(){var i=e.method.postMessage(e._state,r);return e._uMP.add(i),i.catch().then(function(){return e._uMP.delete(i)}),i})}function Yl(e){var t=e.method.create(e.name,e.options);Zi(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function fr(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function pr(e,t,n){e._addEL[t].push(n),ql(e)}function hr(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),Jl(e)}function ql(e){if(!e._iL&&fr(e)){var t=function(o){e._addEL[o.type].forEach(function(r){o.time>=r.time&&r.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function Jl(e){if(e._iL&&!fr(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function mr(e,t={serialize:JSON.stringify,deserialize:JSON.parse}){return t.deserialize(t.serialize(e))}function Xl(e,t){return Object.keys(t).includes(e)}function Zl({enable:e=!0,initialize:t=!0,type:n,serializer:o}){return({store:r,options:a})=>{var i,l,c;const u=((i=a==null?void 0:a.share)==null?void 0:i.enable)??e,f=((l=a==null?void 0:a.share)==null?void 0:l.omit)??[];if(!u)return;const d=new Wt(r.$id,{type:n});let p=0,_=!1;const g=Object.keys(r.$state).filter(w=>!f.includes(w)&&Xl(w,r.$state));d.onmessage=w=>{if(w===void 0){d.postMessage({timestamp:p,state:mr(r.$state,o)});return}w.timestamp<=p||(_=!0,p=w.timestamp,r.$patch(m=>{g.forEach(v=>{m[v]=w.state[v]})}))},(((c=a==null?void 0:a.share)==null?void 0:c.initialize)??t)&&d.postMessage(void 0),r.$subscribe((w,m)=>{_||(p=Date.now(),d.postMessage({timestamp:p,state:mr(m,o)})),_=!1})}}Wi().use(Zl({enable:!0,initialize:!0}));const _r=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=Xo(),o=s.ref([]);return s.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((a,i)=>{const c=t.value.store.record[a.fieldname];r[i].value=c}),o.value=r}}),(r,a)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(bs),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i)},null,8,["modelValue"])):s.createCommentVNode("",!0)}});/*!
|
|
12
12
|
* pinia v3.0.3
|
|
13
13
|
* (c) 2025 Eduardo San Martin Morote
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/let Me;const ot=e=>Me=e,Ql=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function de(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ue;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ue||(Ue={}));const Be=typeof window<"u";function gr(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];de(r)&&de(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=gr(r,o):e[n]=o}return e}const yr=()=>{};function Er(e,t,n,o=yr){e.push(t);const r=()=>{const
|
|
15
|
+
*/let Me;const ot=e=>Me=e,Ql=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function de(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ue;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ue||(Ue={}));const Be=typeof window<"u";function gr(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];de(r)&&de(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=gr(r,o):e[n]=o}return e}const yr=()=>{};function Er(e,t,n,o=yr){e.push(t);const r=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function Oe(e,...t){e.slice().forEach(n=>{n(...t)})}const ec=e=>e(),wr=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],r=e[n];de(r)&&de(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=Yt(r,o):e[n]=o}return e}const tc=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function nc(e){return!de(e)||!Object.prototype.hasOwnProperty.call(e,tc)}const{assign:W}=Object;function br(e){return!!(s.isRef(e)&&e.effect)}function vr(e,t,n,o){const{state:r,actions:a,getters:i}=t,l=n.state.value[e];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const f=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return W(f,a,Object.keys(i||{}).reduce((d,p)=>(process.env.NODE_ENV!=="production"&&p in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),d[p]=s.markRaw(s.computed(()=>{ot(n);const _=n._s.get(e);return i[p].call(_,_)})),d),{}))}return c=qt(e,u,t,n,o,!0),c}function qt(e,t,n={},o,r,a){let i;const l=W({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=h=>{u?_=h:u==!1&&!k._hotUpdating&&(Array.isArray(_)?_.push(h):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,f,d=[],p=[],_;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const w=s.ref({});let m;function v(h){let E;u=f=!1,process.env.NODE_ENV!=="production"&&(_=[]),typeof h=="function"?(h(o.state.value[e]),E={type:Ue.patchFunction,storeId:e,events:_}):(Yt(o.state.value[e],h),E={type:Ue.patchObject,payload:h,storeId:e,events:_});const T=m=Symbol();s.nextTick().then(()=>{m===T&&(u=!0)}),f=!0,Oe(d,E,o.state.value[e])}const S=a?function(){const{state:E}=n,T=E?E():{};this.$patch(I=>{W(I,T)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:yr;function C(){i.stop(),d=[],p=[],o._s.delete(e)}const A=(h,E="")=>{if(wr in h)return h[Gt]=E,h;const T=function(){ot(o);const I=Array.from(arguments),j=[],z=[];function V(x){j.push(x)}function G(x){z.push(x)}Oe(p,{args:I,name:T[Gt],store:k,after:V,onError:G});let N;try{N=h.apply(this&&this.$id===e?this:k,I)}catch(x){throw Oe(z,x),x}return N instanceof Promise?N.then(x=>(Oe(j,x),x)).catch(x=>(Oe(z,x),Promise.reject(x))):(Oe(j,N),N)};return T[wr]=!0,T[Gt]=E,T},R=s.markRaw({actions:{},getters:{},state:[],hotState:w}),q={_p:o,$id:e,$onAction:Er.bind(null,p),$patch:v,$reset:S,$subscribe(h,E={}){const T=Er(d,h,E.detached,()=>I()),I=i.run(()=>s.watch(()=>o.state.value[e],j=>{(E.flush==="sync"?f:u)&&h({storeId:e,type:Ue.direct,events:_},j)},W({},c,E)));return T},$dispose:C},k=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be?W({_hmrPayload:R,_customProperties:s.markRaw(new Set)},q):q);o._s.set(e,k);const y=(o._a&&o._a.runWithContext||ec)(()=>o._e.run(()=>(i=s.effectScope()).run(()=>t({action:A}))));for(const h in y){const E=y[h];if(s.isRef(E)&&!br(E)||s.isReactive(E))process.env.NODE_ENV!=="production"&&r?w.value[h]=s.toRef(y,h):a||(g&&nc(E)&&(s.isRef(E)?E.value=g[h]:Yt(E,g[h])),o.state.value[e][h]=E),process.env.NODE_ENV!=="production"&&R.state.push(h);else if(typeof E=="function"){const T=process.env.NODE_ENV!=="production"&&r?E:A(E,h);y[h]=T,process.env.NODE_ENV!=="production"&&(R.actions[h]=E),l.actions[h]=E}else process.env.NODE_ENV!=="production"&&br(E)&&(R.getters[h]=a?n.getters[h]:E,Be&&(y._getters||(y._getters=s.markRaw([]))).push(h))}if(W(k,y),W(s.toRaw(k),y),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?w.value:o.state.value[e],set:h=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");v(E=>{W(E,h)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=s.markRaw(h=>{k._hotUpdating=!0,h._hmrPayload.state.forEach(E=>{if(E in k.$state){const T=h.$state[E],I=k.$state[E];typeof T=="object"&&de(T)&&de(I)?gr(T,I):h.$state[E]=I}k[E]=s.toRef(h.$state,E)}),Object.keys(k.$state).forEach(E=>{E in h.$state||delete k[E]}),u=!1,f=!1,o.state.value[e]=s.toRef(h._hmrPayload,"hotState"),f=!0,s.nextTick().then(()=>{u=!0});for(const E in h._hmrPayload.actions){const T=h[E];k[E]=A(T,E)}for(const E in h._hmrPayload.getters){const T=h._hmrPayload.getters[E],I=a?s.computed(()=>(ot(o),T.call(k,k))):T;k[E]=I}Object.keys(k._hmrPayload.getters).forEach(E=>{E in h._hmrPayload.getters||delete k[E]}),Object.keys(k._hmrPayload.actions).forEach(E=>{E in h._hmrPayload.actions||delete k[E]}),k._hmrPayload=h._hmrPayload,k._getters=h._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be){const h={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(E=>{Object.defineProperty(k,E,W({value:k[E]},h))})}return o._p.forEach(h=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Be){const E=i.run(()=>h({store:k,app:o._a,pinia:o,options:l}));Object.keys(E||{}).forEach(T=>k._customProperties.add(T)),W(k,E)}else W(k,i.run(()=>h({store:k,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
16
16
|
state: () => new MyClass()
|
|
17
|
-
Found in store "${k.$id}".`),
|
|
17
|
+
Found in store "${k.$id}".`),g&&a&&n.hydrate&&n.hydrate(k.$state,g),u=!0,f=!0,k}/*! #__NO_SIDE_EFFECTS__ */function oc(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function a(i,l){const c=s.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Me&&Me._testing?null:i)||(c?s.inject(Ql,null):null),i&&ot(i),process.env.NODE_ENV!=="production"&&!Me)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
18
18
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
19
|
-
This will fail in production.`);a=Me,a._s.has(e)||(r?qt(e,t,o,a):vr(e,o,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(e);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+e,f=r?qt(d,t,o,a,!0):vr(d,W({},o),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Be){const d=s.getCurrentInstance();if(d&&d.proxy&&!l){const f=d.proxy,p="_pStores"in f?f._pStores:f._pStores={};p[e]=u}}return u}return i.$id=e,i}function Jt(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const rc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const sc=e=>e!=null,ac=Object.prototype.toString,ic=e=>ac.call(e)==="[object Object]",lc=()=>{};function rt(e){return Array.isArray(e)?e:[e]}function cc(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const Se=rc?window:void 0;function Te(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ze(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=rt(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=cc(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Te(u)))!=null?c:[Se].filter(u=>u!=null),rt(s.toValue(r.value?e[1]:e[0])),rt(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const f=ic(d)?{...d}:d;t.push(...l.flatMap(p=>c.flatMap(g=>u.map(h=>o(p,g,h,f)))))},{flush:"post"}),a=()=>{i(),n()};return Jt(n),a}function uc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function dc(e){const t=uc();return s.computed(()=>(t.value,!!e()))}function fc(e,t,n={}){const{window:o=Se,...r}=n;let i;const a=dc(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const p=s.toValue(e),g=rt(p).map(Te).filter(sc);return new Set(g)}),u=s.watch(()=>c.value,p=>{l(),a.value&&p.size&&(i=new MutationObserver(t),p.forEach(g=>i.observe(g,r)))},{immediate:!0,flush:"post"}),d=()=>i==null?void 0:i.takeRecords(),f=()=>{u(),l()};return Jt(f),{isSupported:a,stop:f,takeRecords:d}}function pc(e,t,n={}){const{window:o=Se,document:r=o==null?void 0:o.document,flush:i="sync"}=n;if(!o||!r)return lc;let a;const l=d=>{a==null||a(),a=d},c=s.watchEffect(()=>{const d=Te(e);if(d){const{stop:f}=fc(r,p=>{p.map(g=>[...g.removedNodes]).flat().some(g=>g===d||g.contains(d))&&t(p)},{window:o,childList:!0,subtree:!0});l(f)}},{flush:i}),u=()=>{c(),l()};return Jt(u),u}function hc(e={}){var t;const{window:n=Se,deep:o=!0,triggerOnRemoval:r=!1}=e,i=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var u;let d=i==null?void 0:i.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(u=d==null?void 0:d.shadowRoot)==null?void 0:u.activeElement;return d},l=s.shallowRef(),c=()=>{l.value=a()};if(n){const u={capture:!0,passive:!0};ze(n,"blur",d=>{d.relatedTarget===null&&c()},u),ze(n,"focus",c,u)}return r&&pc(l,c,{document:i}),c(),l}const mc="focusin",_c="focusout",gc=":focus-within";function yc(e,t={}){const{window:n=Se}=t,o=s.computed(()=>Te(e)),r=s.shallowRef(!1),i=s.computed(()=>r.value),a=hc(t);if(!n||!a.value)return{focused:i};const l={passive:!0};return ze(o,mc,()=>r.value=!0,l),ze(o,_c,()=>{var c,u,d;return r.value=(d=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,gc))!=null?d:!1},l),{focused:i}}function Ec(e,{window:t=Se,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const i=t.document,a=Te(e);if(!a)o.value=!1;else{const l=a.getBoundingClientRect();o.value=l.top<=(t.innerHeight||i.documentElement.clientHeight)&&l.left<=(t.innerWidth||i.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return s.watch(()=>Te(e),()=>r(),{immediate:!0,flush:"post"}),t&&ze(n||t,"scroll",r,{capture:!1,passive:!0}),o}const te=e=>{let t=Ec(e).value;return t=t&&e.offsetHeight>0,t},ne=e=>e.tabIndex>=0,kr=e=>{const t=e.target;return Xt(t)},Xt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!ne(n)||!te(n))?Xt(n):n},wc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.firstElementChild,a=i==null?void 0:i.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.firstElementChild;i&&(o=i)}}return o&&(!ne(o)||!te(o))?Zt(o):o},Or=e=>{const t=e.target;return Zt(t)},Zt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!ne(n)||!te(n))?Zt(n):n},bc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.lastElementChild,a=i==null?void 0:i.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.lastElementChild;i&&(o=i)}}return o&&(!ne(o)||!te(o))?Xt(o):o},Sr=e=>{const t=e.target;return Qt(t)},Qt=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&&(!ne(n)||!te(n))?Qt(n):n},Tr=e=>{const t=e.target;return en(t)},en=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&&(!ne(n)||!te(n))?en(n):n},Ir=e=>{const t=e.target.parentElement,n=t==null?void 0:t.firstElementChild;return n&&(!ne(n)||!te(n))?en(n):n},Vr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.lastElementChild;return n&&(!ne(n)||!te(n))?Qt(n):n},st=["alt","control","shift","meta"],vc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Cr={"keydown.up":e=>{const t=kr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Or(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Sr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Tr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=wc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=bc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Or(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=kr(e);t&&t.focus()}},"keydown.home":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Tr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Sr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function kc(e){const t=a=>{let l=null;return a.parent&&(typeof a.parent=="string"?l=document.querySelector(a.parent):a.parent instanceof HTMLElement?l=a.parent:l=a.parent.value),l},n=a=>{var l;const c=t(a);let u=[];if(typeof a.selectors=="string")u=c?Array.from(c.querySelectorAll(a.selectors)):Array.from(document.querySelectorAll(a.selectors));else if(Array.isArray(a.selectors))for(const d of a.selectors)d instanceof HTMLElement?u.push(d):u.push(d.$el);else if(a.selectors instanceof HTMLElement)u.push(a.selectors);else if((l=a.selectors)!=null&&l.value)if(Array.isArray(a.selectors.value))for(const d of a.selectors.value)d instanceof HTMLElement?u.push(d):u.push(d.$el);else u.push(a.selectors.value);return u},o=a=>{const l=t(a);let c=[];return a.selectors?c=n(a):l&&(c=Array.from(l.children).filter(u=>ne(u)&&te(u))),c},r=a=>l=>{const c=vc[l.key]||l.key.toLowerCase();if(st.includes(c))return;const u=a.handlers||Cr;for(const d of Object.keys(u)){const[f,...p]=d.split(".");if(f==="keydown"&&p.includes(c)){const g=u[d],h=p.filter(_=>st.includes(_)),b=st.some(_=>{const v=_.charAt(0).toUpperCase()+_.slice(1);return l.getModifierState(v)});if(h.length>0){if(b){for(const _ of st)if(p.includes(_)){const v=_.charAt(0).toUpperCase()+_.slice(1);l.getModifierState(v)&&g(l)}}}else b||g(l)}}},i=[];s.onMounted(()=>{for(const a of e){const l=t(a),c=o(a),u=r(a),d=l?[l]:c;for(const f of d){const{focused:p}=yc(s.ref(f)),g=s.watch(p,h=>{h?f.addEventListener("keydown",u):f.removeEventListener("keydown",u)});i.push(g)}}}),s.onBeforeUnmount(()=>{for(const a of i)a()})}function Ie(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const tn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Oc=e=>e!=null,Sc=Object.prototype.toString,Nr=e=>Sc.call(e)==="[object Object]",fe=()=>{},nn=Tc();function Tc(){var e,t;return tn&&((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))}function Ic(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:fe}))):s.ref(t)}function pe(e){return Array.isArray(e)?e:[e]}function Vc(e){return s.getCurrentInstance()}function Cc(e,t=!0,n){Vc()?s.onMounted(e,n):t?e():s.nextTick(e)}function Pr(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const on=tn?window:void 0;function Ve(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Rr(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=pe(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Pr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Ve(u)))!=null?c:[on].filter(u=>u!=null),pe(s.toValue(r.value?e[1]:e[0])),pe(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const f=Nr(d)?{...d}:d;t.push(...l.flatMap(p=>c.flatMap(g=>u.map(h=>o(p,g,h,f)))))},{flush:"post"}),a=()=>{i(),n()};return Ie(n),a}function Nc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Dr(e){const t=Nc();return s.computed(()=>(t.value,!!e()))}function Ar(e,t,n={}){const{window:o=on,...r}=n;let i;const a=Dr(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const p=s.toValue(e),g=pe(p).map(Ve).filter(Oc);return new Set(g)}),u=s.watch(()=>c.value,p=>{l(),a.value&&p.size&&(i=new MutationObserver(t),p.forEach(g=>i.observe(g,r)))},{immediate:!0,flush:"post"}),d=()=>i==null?void 0:i.takeRecords(),f=()=>{u(),l()};return Ie(f),{isSupported:a,stop:f,takeRecords:d}}function Pc(e,t,n={}){const{window:o=on,...r}=n;let i;const a=Dr(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const f=s.toValue(e);return Array.isArray(f)?f.map(p=>Ve(p)):[Ve(f)]}),u=s.watch(c,f=>{if(l(),a.value&&o){i=new ResizeObserver(t);for(const p of f)p&&i.observe(p,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Ie(d),{isSupported:a,stop:d}}function Rc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:i=!0,updateTiming:a="sync"}=t,l=s.shallowRef(0),c=s.shallowRef(0),u=s.shallowRef(0),d=s.shallowRef(0),f=s.shallowRef(0),p=s.shallowRef(0),g=s.shallowRef(0),h=s.shallowRef(0);function b(){const v=Ve(e);if(!v){n&&(l.value=0,c.value=0,u.value=0,d.value=0,f.value=0,p.value=0,g.value=0,h.value=0);return}const T=v.getBoundingClientRect();l.value=T.height,c.value=T.bottom,u.value=T.left,d.value=T.right,f.value=T.top,p.value=T.width,g.value=T.x,h.value=T.y}function _(){a==="sync"?b():a==="next-frame"&&requestAnimationFrame(()=>b())}return Pc(e,_),s.watch(()=>Ve(e),v=>!v&&_()),Ar(e,_,{attributeFilter:["style","class"]}),r&&Rr("scroll",_,{capture:!0,passive:!0}),o&&Rr("resize",_,{passive:!0}),Cc(()=>{i&&_()}),{height:l,bottom:c,left:u,right:d,top:f,width:p,x:g,y:h,update:_}}const Dc=(e=8)=>Array.from({length:e},()=>Math.floor(Math.random()*16).toString(16)).join(""),xr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ac=["tabindex"],xc=s.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=s.useTemplateRef("rowEl"),n=s.computed(()=>e.store.isRowVisible(e.rowIndex)),o=s.computed(()=>e.store.getRowExpandSymbol(e.rowIndex));if(e.addNavigation){let r=Cr;typeof e.addNavigation=="object"&&(r={...r,...e.addNavigation}),kc([{selectors:t,handlers:r}])}return(r,i)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref:"rowEl",tabindex:r.tabIndex,class:"atable-row"},[r.store.config.view!=="uncounted"?s.renderSlot(r.$slots,"index",{key:0},()=>[r.store.config.view==="list"?(s.openBlock(),s.createElementBlock("td",{key:0,tabIndex:-1,class:s.normalizeClass(["list-index",r.store.hasPinnedColumns?"sticky-index":""])},s.toDisplayString(r.rowIndex+1),3)):r.store.config.view==="tree"?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:s.normalizeClass(["tree-index",r.store.hasPinnedColumns?"sticky-index":""]),onClick:i[0]||(i[0]=a=>r.store.toggleRowExpand(r.rowIndex))},s.toDisplayString(o.value),3)):s.createCommentVNode("",!0)],!0):s.createCommentVNode("",!0),s.renderSlot(r.$slots,"default",{},void 0,!0)],8,Ac)),[[s.vShow,n.value]])}}),$c=xr(xc,[["__scopeId","data-v-4cb4f254"]]),rn=tn?window:void 0;function he(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function at(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=pe(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Pr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>he(u)))!=null?c:[rn].filter(u=>u!=null),pe(s.toValue(r.value?e[1]:e[0])),pe(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const f=Nr(d)?{...d}:d;t.push(...l.flatMap(p=>c.flatMap(g=>u.map(h=>o(p,g,h,f)))))},{flush:"post"}),a=()=>{i(),n()};return Ie(n),a}let $r=!1;function Lr(e,t,n={}){const{window:o=rn,ignore:r=[],capture:i=!0,detectIframe:a=!1,controls:l=!1}=n;if(!o)return l?{stop:fe,cancel:fe,trigger:fe}:fe;if(nn&&!$r){$r=!0;const _={passive:!0};Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",fe,_)),o.document.documentElement.addEventListener("click",fe,_)}let c=!0;const u=_=>s.toValue(r).some(v=>{if(typeof v=="string")return Array.from(o.document.querySelectorAll(v)).some(T=>T===_.target||_.composedPath().includes(T));{const T=he(v);return T&&(_.target===T||_.composedPath().includes(T))}});function d(_){const v=s.toValue(_);return v&&v.$.subTree.shapeFlag===16}function f(_,v){const T=s.toValue(_),N=T.$.subTree&&T.$.subTree.children;return N==null||!Array.isArray(N)?!1:N.some(A=>A.el===v.target||v.composedPath().includes(A.el))}const p=_=>{const v=he(e);if(_.target!=null&&!(!(v instanceof Element)&&d(e)&&f(e,_))&&!(!v||v===_.target||_.composedPath().includes(v))){if("detail"in _&&_.detail===0&&(c=!u(_)),!c){c=!0;return}t(_)}};let g=!1;const h=[at(o,"click",_=>{g||(g=!0,setTimeout(()=>{g=!1},0),p(_))},{passive:!0,capture:i}),at(o,"pointerdown",_=>{const v=he(e);c=!u(_)&&!!(v&&!_.composedPath().includes(v))},{passive:!0}),a&&at(o,"blur",_=>{setTimeout(()=>{var v;const T=he(e);((v=o.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(T!=null&&T.contains(o.document.activeElement))&&t(_)},0)},{passive:!0})].filter(Boolean),b=()=>h.forEach(_=>_());return l?{stop:b,cancel:()=>{c=!1},trigger:_=>{c=!0,p(_),c=!1}}:b}const sn=new WeakMap,Lc={mounted(e,t){const n=!t.modifiers.bubble;let o;if(typeof t.value=="function")o=Lr(e,t.value,{capture:n});else{const[r,i]=t.value;o=Lr(e,r,Object.assign({capture:n},i))}sn.set(e,o)},unmounted(e){const t=sn.get(e);t&&typeof t=="function"?t():t==null||t.stop(),sn.delete(e)}};function jc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Mc(e){const t=jc();return s.computed(()=>(t.value,!!e()))}function jr(e,t,n={}){const{window:o=rn,...r}=n;let i;const a=Mc(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const f=s.toValue(e);return Array.isArray(f)?f.map(p=>he(p)):[he(f)]}),u=s.watch(c,f=>{if(l(),a.value&&o){i=new ResizeObserver(t);for(const p of f)p&&i.observe(p,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Ie(d),{isSupported:a,stop:d}}function an(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Uc={mounted(e,t){typeof t.value=="function"?jr(e,t.value):jr(e,...t.value)}};function Mr(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:Mr(n)}}function Bc(e){const t=e||window.event,n=t.target;return Mr(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ln=new WeakMap;function zc(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(Ic(e),l=>{const c=an(s.toValue(l));if(c){const u=c;if(ln.get(u)||ln.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=an(s.toValue(e));!l||n.value||(nn&&(o=at(l,"touchmove",c=>{Bc(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},a=()=>{const l=an(s.toValue(e));!l||!n.value||(nn&&(o==null||o()),l.style.overflow=r,ln.delete(l),n.value=!1)};return Ie(a),s.computed({get(){return n.value},set(l){l?i():a()}})}function Hc(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=zc(n,o.value);s.watch(t,i=>r.value=i)}}Hc();const Kc={key:0},Fc={class:"atable-header-row",tabindex:"-1"},Wc=["data-colindex"],Gc=s.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){const t=n=>{var o;for(const r of n){if(r.borderBoxSize.length===0)continue;const i=r.borderBoxSize[0].inlineSize,a=Number(r.target.dataset.colindex),l=(o=e.store.columns[a])==null?void 0:o.width;typeof l=="number"&&l!==i&&e.store.resizeColumn(a,i)}};return(n,o)=>n.columns.length?(s.openBlock(),s.createElementBlock("thead",Kc,[s.createElementVNode("tr",Fc,[n.store.zeroColumn?(s.openBlock(),s.createElementBlock("th",{key:0,id:"header-index",class:s.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.config.view==="tree"?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.columns,(r,i)=>s.withDirectives((s.openBlock(),s.createElementBlock("th",{key:r.name,"data-colindex":i,tabindex:"-1",style:s.normalizeStyle(n.store.getHeaderCellStyle(r)),class:s.normalizeClass(r.pinned?"sticky-column":"")},[s.renderSlot(n.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(r.label||String.fromCharCode(i+97).toUpperCase()),1)])],14,Wc)),[[s.unref(Uc),t]])),128))])])):s.createCommentVNode("",!0)}}),Yc=s.defineComponent({__name:"ATableModal",props:{store:{}},setup(e){const t=s.useTemplateRef("amodal"),{width:n,height:o}=Rc(t),r=s.computed(()=>{var i,a,l,c;if(!(e.store.modal.height&&e.store.modal.width&&e.store.modal.left&&e.store.modal.bottom))return;const u=(i=e.store.modal.cell)==null?void 0:i.closest("table"),d=u.offsetHeight||0,f=u.offsetWidth||0;let p=((a=e.store.modal.cell)==null?void 0:a.offsetTop)||0;const g=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;p+=g,p=p+o.value<d?p:p-(o.value+e.store.modal.height);let h=((c=e.store.modal.cell)==null?void 0:c.offsetLeft)||0;return h=h+n.value<=f?h:h-(n.value-e.store.modal.width),{left:`${h}px`,top:`${p}px`}});return(i,a)=>(s.openBlock(),s.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:a[0]||(a[0]=s.withModifiers(()=>{},["stop"])),onInput:a[1]||(a[1]=s.withModifiers(()=>{},["stop"])),style:s.normalizeStyle(r.value)},[s.renderSlot(i.$slots,"default")],36))}}),qc=e=>{const t=e.id||Dc();return oc(`table-${t}`,()=>{const n=()=>{const y={};for(const[m,E]of r.value.entries())for(const[S,I]of i.value.entries())y[`${m}:${S}`]=I[E.name];return y},o=y=>{const m=[Object.assign({},{rowModified:!1})];if(y&&"0:0"in y)return y;const E=new Set;for(let S=i.value.length-1;S>=0;S--){const I=i.value[S];I.parent&&E.add(I.parent),m[S]={childrenOpen:!1,expanded:!1,indent:I.indent||0,isParent:E.has(S),isRoot:I.parent===null||I.parent===void 0,rowModified:!1,open:I.parent===null||I.parent===void 0,parent:I.parent}}return m},r=s.ref(e.columns),i=s.ref(e.rows),a=s.ref(e.config||{}),l=s.ref(e.table||n()),c=s.ref(o(e.display)),u=s.ref(e.modal||{visible:!1}),d=s.ref({}),f=s.computed(()=>r.value.some(y=>y.pinned)),p=s.computed(()=>`${Math.ceil(i.value.length/100+1)}ch`),g=s.computed(()=>a.value.view?["list","tree","list-expansion"].includes(a.value.view):!1),h=(y,m)=>l.value[`${y}:${m}`],b=(y,m,E)=>{const S=`${y}:${m}`,I=r.value[y];l.value[S]!==E&&(c.value[m].rowModified=!0),l.value[S]=E,i.value[m][I.name]=E},_=(y,m,E)=>{const S=`${y}:${m}`;l.value[S]!==E&&(c.value[m].rowModified=!0,d.value[S]=E)},v=y=>{const m=r.value.indexOf(y)===r.value.length-1,E=a.value.fullWidth?y.resizable&&!m:y.resizable;return{width:y.width||"40ch",textAlign:y.align||"center",...E&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},T=(y,m)=>{if(y<0||y>=r.value.length)return;const E=Math.max(m,40);r.value[y]={...r.value[y],width:`${E}px`}},N=y=>{const m=i.value[y];return a.value.view==="gantt"&&m.indent===0},A=y=>a.value.view!=="tree"||c.value[y].isRoot||c.value[y].open,R=y=>a.value.view!=="tree"?"":c.value[y].isRoot||c.value[y].isParent?c.value[y].childrenOpen?"-":"+":"",q=y=>{if(a.value.view==="tree"){c.value[y].childrenOpen=!c.value[y].childrenOpen;for(let m=i.value.length-1;m>=0;m--)c.value[m].parent===y&&(c.value[m].open=!c.value[m].open,c.value[m].childrenOpen&&q(m))}else a.value.view==="list-expansion"&&(c.value[y].expanded=!c.value[y].expanded)},k=(y,m)=>{const E=h(y,m);return L(y,m,E)},L=(y,m,E)=>{const S=r.value[y],I=i.value[m],j=S.format;return j?typeof j=="function"?j(E,{table:l.value,row:I,column:S}):typeof j=="string"?Function(`"use strict";return (${j})`)()(E,{table:l.value,row:I,column:S}):E:E};return{columns:r,config:a,display:c,modal:u,rows:i,table:l,updates:d,hasPinnedColumns:f,numberedRowWidth:p,zeroColumn:g,closeModal:y=>{var m;y.target instanceof Node&&(m=u.value.parent)!=null&&m.contains(y.target)||u.value.visible&&(u.value.visible=!1)},getCellData:h,getCellDisplayValue:k,getFormattedValue:L,getHeaderCellStyle:v,resizeColumn:T,getIndent:(y,m)=>m&&y===0&&m>0?`${m}ch`:"inherit",getRowExpandSymbol:R,isRowGantt:N,isRowVisible:A,setCellData:b,setCellText:_,toggleRowExpand:q,updateGanttBar:y=>{var m;const E=(m=i.value[y.rowIndex])==null?void 0:m.gantt;E&&(y.type==="resize"?y.edge==="start"?(E.startIndex=y.newStart,E.endIndex=y.end,E.colspan=E.endIndex-E.startIndex):y.edge==="end"&&(E.startIndex=y.start,E.endIndex=y.newEnd,E.colspan=E.endIndex-E.startIndex):y.type==="bar"&&(E.startIndex=y.newStart,E.endIndex=y.newEnd,E.colspan=E.endIndex-E.startIndex))}}})()},Jc=s.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate","gantt:drag"],setup(e,{expose:t,emit:n}){const o=n,r=s.useTemplateRef("table"),i=e.modelValue?e.modelValue:e.rows,a=qc({columns:e.columns,rows:i,id:e.id,config:e.config});a.$onAction(({name:d,store:f,args:p,after:g})=>{if(d==="setCellData"||d==="setCellText"){const[h,b,_]=p,v=f.getCellData(h,b);g(()=>{o("cellUpdate",{colIndex:h,rowIndex:b,newValue:_,oldValue:v})})}else if(d==="updateGanttBar"){const[h]=p;let b=!1;h.type==="resize"?b=h.oldColspan!==h.newColspan:h.type==="bar"&&(b=h.oldStart!==h.newStart||h.oldEnd!==h.newEnd),b&&g(()=>{o("gantt:drag",h)})}}),s.watch(()=>a.rows,d=>{o("update:modelValue",d)},{deep:!0}),s.onMounted(()=>{e.columns.some(d=>d.pinned)&&(c(),a.config.view==="tree"&&Ar(r,c,{childList:!0,subtree:!0}))});const l=s.computed(()=>a.columns.filter(d=>d.pinned).length),c=()=>{const d=r.value,f=d==null?void 0:d.rows[0],p=d==null?void 0:d.rows[1],g=f?Array.from(f.cells):[];for(const[h,b]of g.entries()){const _=p==null?void 0:p.cells[h];_&&(b.style.width=`${_.offsetWidth}px`)}for(const h of(d==null?void 0:d.rows)||[]){let b=0;const _=[];for(const v of h.cells)(v.classList.contains("sticky-column")||v.classList.contains("sticky-index"))&&(v.style.left=`${b}px`,b+=v.offsetWidth,_.push(v));_.length>0&&_[_.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",d=>{if(d.key==="Escape"&&a.modal.visible){a.modal.visible=!1;const f=a.modal.parent;f&&s.nextTick().then(()=>{f.focus()})}});const u=d=>{var f;if(d.indent!==0||l.value===0)return a.columns;const p=[];for(let g=0;g<l.value;g++){const h={...a.columns[g]};h.originalIndex=g,p.push(h)}return p.push({...a.columns[l.value],isGantt:!0,colspan:((f=d.gantt)==null?void 0:f.colspan)||a.columns.length-l.value,originalIndex:l.value,width:"auto"}),p};return t({store:a}),(d,f)=>s.withDirectives((s.openBlock(),s.createElementBlock("table",{ref:"table",class:"atable",style:s.normalizeStyle({width:s.unref(a).config.fullWidth?"100%":"auto"})},[s.renderSlot(d.$slots,"header",{data:s.unref(a)},()=>[s.createVNode(Gc,{columns:s.unref(a).columns,store:s.unref(a)},null,8,["columns","store"])],!0),s.createElementVNode("tbody",null,[s.renderSlot(d.$slots,"body",{data:s.unref(a)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(a).rows,(p,g)=>(s.openBlock(),s.createBlock($c,{key:p.id,row:p,rowIndex:g,store:s.unref(a)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u(p),(h,b)=>{var _,v,T;return s.openBlock(),s.createElementBlock(s.Fragment,{key:h.name},[h.isGantt?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(h.ganttComponent||"AGanttCell"),{key:0,store:s.unref(a),columnsCount:s.unref(a).columns.length-l.value,color:(_=p.gantt)==null?void 0:_.color,start:(v=p.gantt)==null?void 0:v.startIndex,end:(T=p.gantt)==null?void 0:T.endIndex,colspan:h.colspan,pinned:h.pinned,rowIndex:g,colIndex:h.originalIndex??b,style:s.normalizeStyle({textAlign:(h==null?void 0:h.align)||"center",minWidth:(h==null?void 0:h.width)||"40ch",width:s.unref(a).config.fullWidth?"auto":null})},null,8,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(h.cellComponent||"ACell"),{key:1,store:s.unref(a),pinned:h.pinned,rowIndex:g,colIndex:b,style:s.normalizeStyle({textAlign:(h==null?void 0:h.align)||"center",width:s.unref(a).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),s.renderSlot(d.$slots,"footer",{data:s.unref(a)},void 0,!0),s.renderSlot(d.$slots,"modal",{data:s.unref(a)},()=>[s.withDirectives(s.createVNode(Yc,{store:s.unref(a)},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(a).modal.component),s.mergeProps({key:`${s.unref(a).modal.rowIndex}:${s.unref(a).modal.colIndex}`,colIndex:s.unref(a).modal.colIndex,rowIndex:s.unref(a).modal.rowIndex,store:s.unref(a)},s.unref(a).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[s.vShow,s.unref(a).modal.visible]])],!0)],4)),[[s.unref(Lc),s.unref(a).closeModal]])}}),Xc=xr(Jc,[["__scopeId","data-v-785e5fa3"]]),Ur=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=Xo(),o={view:"list"};return(r,i)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Xc),{key:0,columns:s.unref(t).schema.schema.toArray(),rows:s.unref(t).store.records,config:o},null,8,["columns","rows"])):s.createCommentVNode("",!0)}}),Zc={class:"tabs"},Qc={tabindex:"0"},eu={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"},tu={tabindex:"0"},nu={style:{width:"11pt"}},Br=un(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=s.ref(!0),n=s.ref(!1),o=s.ref(""),r=s.useTemplateRef("searchinput"),i=s.computed(()=>t.value?"unrotated":"rotated"),a=()=>{t.value=!t.value},l=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},c=f=>{f.preventDefault(),f.stopPropagation()},u=async f=>{f.preventDefault(),f.stopPropagation(),await l()},d=()=>{};return(f,p)=>{const g=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",Zc,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:a,onKeydown:s.withKeys(a,["enter"])},[s.createElementVNode("a",Qc,[s.createElementVNode("div",{class:s.normalizeClass(i.value)},"×",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:s.withKeys(d,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(g,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",eu,p[5]||(p[5]=[s.createElementVNode("g",null,[s.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
19
|
+
This will fail in production.`);i=Me,i._s.has(e)||(r?qt(e,t,o,i):vr(e,o,i),process.env.NODE_ENV!=="production"&&(a._pinia=i));const u=i._s.get(e);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+e,d=r?qt(f,t,o,i,!0):vr(f,W({},o),i,!0);l._hotUpdate(d),delete i.state.value[f],i._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Be){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const d=f.proxy,p="_pStores"in d?d._pStores:d._pStores={};p[e]=u}}return u}return a.$id=e,a}function Jt(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const rc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const sc=e=>e!=null,ac=Object.prototype.toString,ic=e=>ac.call(e)==="[object Object]",lc=()=>{};function rt(e){return Array.isArray(e)?e:[e]}function cc(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const Se=rc?window:void 0;function Te(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ze(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),r=s.computed(()=>{const l=rt(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),a=cc(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Te(u)))!=null?c:[Se].filter(u=>u!=null),rt(s.toValue(r.value?e[1]:e[0])),rt(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=ic(f)?{...f}:f;t.push(...l.flatMap(p=>c.flatMap(_=>u.map(g=>o(p,_,g,d)))))},{flush:"post"}),i=()=>{a(),n()};return Jt(n),i}function uc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function dc(e){const t=uc();return s.computed(()=>(t.value,!!e()))}function fc(e,t,n={}){const{window:o=Se,...r}=n;let a;const i=dc(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const p=s.toValue(e),_=rt(p).map(Te).filter(sc);return new Set(_)}),u=s.watch(()=>c.value,p=>{l(),i.value&&p.size&&(a=new MutationObserver(t),p.forEach(_=>a.observe(_,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),d=()=>{u(),l()};return Jt(d),{isSupported:i,stop:d,takeRecords:f}}function pc(e,t,n={}){const{window:o=Se,document:r=o==null?void 0:o.document,flush:a="sync"}=n;if(!o||!r)return lc;let i;const l=f=>{i==null||i(),i=f},c=s.watchEffect(()=>{const f=Te(e);if(f){const{stop:d}=fc(r,p=>{p.map(_=>[..._.removedNodes]).flat().some(_=>_===f||_.contains(f))&&t(p)},{window:o,childList:!0,subtree:!0});l(d)}},{flush:a}),u=()=>{c(),l()};return Jt(u),u}function hc(e={}){var t;const{window:n=Se,deep:o=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var u;let f=a==null?void 0:a.activeElement;if(o)for(;f!=null&&f.shadowRoot;)f=(u=f==null?void 0:f.shadowRoot)==null?void 0:u.activeElement;return f},l=s.shallowRef(),c=()=>{l.value=i()};if(n){const u={capture:!0,passive:!0};ze(n,"blur",f=>{f.relatedTarget===null&&c()},u),ze(n,"focus",c,u)}return r&&pc(l,c,{document:a}),c(),l}const mc="focusin",_c="focusout",gc=":focus-within";function yc(e,t={}){const{window:n=Se}=t,o=s.computed(()=>Te(e)),r=s.shallowRef(!1),a=s.computed(()=>r.value),i=hc(t);if(!n||!i.value)return{focused:a};const l={passive:!0};return ze(o,mc,()=>r.value=!0,l),ze(o,_c,()=>{var c,u,f;return r.value=(f=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,gc))!=null?f:!1},l),{focused:a}}function Ec(e,{window:t=Se,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const a=t.document,i=Te(e);if(!i)o.value=!1;else{const l=i.getBoundingClientRect();o.value=l.top<=(t.innerHeight||a.documentElement.clientHeight)&&l.left<=(t.innerWidth||a.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return s.watch(()=>Te(e),()=>r(),{immediate:!0,flush:"post"}),t&&ze(n||t,"scroll",r,{capture:!1,passive:!0}),o}const te=e=>{let t=Ec(e).value;return t=t&&e.offsetHeight>0,t},ne=e=>e.tabIndex>=0,kr=e=>{const t=e.target;return Xt(t)},Xt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!ne(n)||!te(n))?Xt(n):n},wc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const a=r.firstElementChild,i=a==null?void 0:a.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.firstElementChild;a&&(o=a)}}return o&&(!ne(o)||!te(o))?Zt(o):o},Or=e=>{const t=e.target;return Zt(t)},Zt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!ne(n)||!te(n))?Zt(n):n},bc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const a=r.lastElementChild,i=a==null?void 0:a.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.lastElementChild;a&&(o=a)}}return o&&(!ne(o)||!te(o))?Xt(o):o},Sr=e=>{const t=e.target;return Qt(t)},Qt=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&&(!ne(n)||!te(n))?Qt(n):n},Tr=e=>{const t=e.target;return en(t)},en=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&&(!ne(n)||!te(n))?en(n):n},Ir=e=>{const t=e.target.parentElement,n=t==null?void 0:t.firstElementChild;return n&&(!ne(n)||!te(n))?en(n):n},Vr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.lastElementChild;return n&&(!ne(n)||!te(n))?Qt(n):n},st=["alt","control","shift","meta"],vc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Cr={"keydown.up":e=>{const t=kr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Or(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Sr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Tr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=wc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=bc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Or(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=kr(e);t&&t.focus()}},"keydown.home":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Tr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Sr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function kc(e){const t=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{var l;const c=t(i);let u=[];if(typeof i.selectors=="string")u=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const f of i.selectors)f instanceof HTMLElement?u.push(f):u.push(f.$el);else if(i.selectors instanceof HTMLElement)u.push(i.selectors);else if((l=i.selectors)!=null&&l.value)if(Array.isArray(i.selectors.value))for(const f of i.selectors.value)f instanceof HTMLElement?u.push(f):u.push(f.$el);else u.push(i.selectors.value);return u},o=i=>{const l=t(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(u=>ne(u)&&te(u))),c},r=i=>l=>{const c=vc[l.key]||l.key.toLowerCase();if(st.includes(c))return;const u=i.handlers||Cr;for(const f of Object.keys(u)){const[d,...p]=f.split(".");if(d==="keydown"&&p.includes(c)){const _=u[f],g=p.filter(m=>st.includes(m)),w=st.some(m=>{const v=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(v)});if(g.length>0){if(w){for(const m of st)if(p.includes(m)){const v=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(v)&&_(l)}}}else w||_(l)}}},a=[];s.onMounted(()=>{for(const i of e){const l=t(i),c=o(i),u=r(i),f=l?[l]:c;for(const d of f){const{focused:p}=yc(s.ref(d)),_=s.watch(p,g=>{g?d.addEventListener("keydown",u):d.removeEventListener("keydown",u)});a.push(_)}}}),s.onBeforeUnmount(()=>{for(const i of a)i()})}function Ie(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const tn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Oc=e=>e!=null,Sc=Object.prototype.toString,Nr=e=>Sc.call(e)==="[object Object]",fe=()=>{},nn=Tc();function Tc(){var e,t;return tn&&((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))}function Ic(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:fe}))):s.ref(t)}function pe(e){return Array.isArray(e)?e:[e]}function Vc(e){return s.getCurrentInstance()}function Cc(e,t=!0,n){Vc()?s.onMounted(e,n):t?e():s.nextTick(e)}function Pr(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const on=tn?window:void 0;function Ve(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Rr(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),r=s.computed(()=>{const l=pe(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),a=Pr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Ve(u)))!=null?c:[on].filter(u=>u!=null),pe(s.toValue(r.value?e[1]:e[0])),pe(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Nr(f)?{...f}:f;t.push(...l.flatMap(p=>c.flatMap(_=>u.map(g=>o(p,_,g,d)))))},{flush:"post"}),i=()=>{a(),n()};return Ie(n),i}function Nc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Dr(e){const t=Nc();return s.computed(()=>(t.value,!!e()))}function Ar(e,t,n={}){const{window:o=on,...r}=n;let a;const i=Dr(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const p=s.toValue(e),_=pe(p).map(Ve).filter(Oc);return new Set(_)}),u=s.watch(()=>c.value,p=>{l(),i.value&&p.size&&(a=new MutationObserver(t),p.forEach(_=>a.observe(_,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),d=()=>{u(),l()};return Ie(d),{isSupported:i,stop:d,takeRecords:f}}function Pc(e,t,n={}){const{window:o=on,...r}=n;let a;const i=Dr(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const d=s.toValue(e);return Array.isArray(d)?d.map(p=>Ve(p)):[Ve(d)]}),u=s.watch(c,d=>{if(l(),i.value&&o){a=new ResizeObserver(t);for(const p of d)p&&a.observe(p,r)}},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Ie(f),{isSupported:i,stop:f}}function Rc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:i="sync"}=t,l=s.shallowRef(0),c=s.shallowRef(0),u=s.shallowRef(0),f=s.shallowRef(0),d=s.shallowRef(0),p=s.shallowRef(0),_=s.shallowRef(0),g=s.shallowRef(0);function w(){const v=Ve(e);if(!v){n&&(l.value=0,c.value=0,u.value=0,f.value=0,d.value=0,p.value=0,_.value=0,g.value=0);return}const S=v.getBoundingClientRect();l.value=S.height,c.value=S.bottom,u.value=S.left,f.value=S.right,d.value=S.top,p.value=S.width,_.value=S.x,g.value=S.y}function m(){i==="sync"?w():i==="next-frame"&&requestAnimationFrame(()=>w())}return Pc(e,m),s.watch(()=>Ve(e),v=>!v&&m()),Ar(e,m,{attributeFilter:["style","class"]}),r&&Rr("scroll",m,{capture:!0,passive:!0}),o&&Rr("resize",m,{passive:!0}),Cc(()=>{a&&m()}),{height:l,bottom:c,left:u,right:f,top:d,width:p,x:_,y:g,update:m}}const Dc=(e=8)=>Array.from({length:e},()=>Math.floor(Math.random()*16).toString(16)).join(""),xr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ac=["tabindex"],xc=s.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=s.useTemplateRef("rowEl"),n=s.computed(()=>e.store.isRowVisible(e.rowIndex)),o=s.computed(()=>e.store.getRowExpandSymbol(e.rowIndex));if(e.addNavigation){let r=Cr;typeof e.addNavigation=="object"&&(r={...r,...e.addNavigation}),kc([{selectors:t,handlers:r}])}return(r,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref:"rowEl",tabindex:r.tabIndex,class:"atable-row"},[r.store.config.view!=="uncounted"?s.renderSlot(r.$slots,"index",{key:0},()=>[r.store.config.view==="list"?(s.openBlock(),s.createElementBlock("td",{key:0,tabIndex:-1,class:s.normalizeClass(["list-index",r.store.hasPinnedColumns?"sticky-index":""])},s.toDisplayString(r.rowIndex+1),3)):r.store.config.view==="tree"?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:s.normalizeClass(["tree-index",r.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>r.store.toggleRowExpand(r.rowIndex))},s.toDisplayString(o.value),3)):s.createCommentVNode("",!0)],!0):s.createCommentVNode("",!0),s.renderSlot(r.$slots,"default",{},void 0,!0)],8,Ac)),[[s.vShow,n.value]])}}),$c=xr(xc,[["__scopeId","data-v-4cb4f254"]]),rn=tn?window:void 0;function he(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function at(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),r=s.computed(()=>{const l=pe(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),a=Pr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>he(u)))!=null?c:[rn].filter(u=>u!=null),pe(s.toValue(r.value?e[1]:e[0])),pe(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Nr(f)?{...f}:f;t.push(...l.flatMap(p=>c.flatMap(_=>u.map(g=>o(p,_,g,d)))))},{flush:"post"}),i=()=>{a(),n()};return Ie(n),i}let $r=!1;function Lr(e,t,n={}){const{window:o=rn,ignore:r=[],capture:a=!0,detectIframe:i=!1,controls:l=!1}=n;if(!o)return l?{stop:fe,cancel:fe,trigger:fe}:fe;if(nn&&!$r){$r=!0;const m={passive:!0};Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",fe,m)),o.document.documentElement.addEventListener("click",fe,m)}let c=!0;const u=m=>s.toValue(r).some(v=>{if(typeof v=="string")return Array.from(o.document.querySelectorAll(v)).some(S=>S===m.target||m.composedPath().includes(S));{const S=he(v);return S&&(m.target===S||m.composedPath().includes(S))}});function f(m){const v=s.toValue(m);return v&&v.$.subTree.shapeFlag===16}function d(m,v){const S=s.toValue(m),C=S.$.subTree&&S.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(A=>A.el===v.target||v.composedPath().includes(A.el))}const p=m=>{const v=he(e);if(m.target!=null&&!(!(v instanceof Element)&&f(e)&&d(e,m))&&!(!v||v===m.target||m.composedPath().includes(v))){if("detail"in m&&m.detail===0&&(c=!u(m)),!c){c=!0;return}t(m)}};let _=!1;const g=[at(o,"click",m=>{_||(_=!0,setTimeout(()=>{_=!1},0),p(m))},{passive:!0,capture:a}),at(o,"pointerdown",m=>{const v=he(e);c=!u(m)&&!!(v&&!m.composedPath().includes(v))},{passive:!0}),i&&at(o,"blur",m=>{setTimeout(()=>{var v;const S=he(e);((v=o.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(S!=null&&S.contains(o.document.activeElement))&&t(m)},0)},{passive:!0})].filter(Boolean),w=()=>g.forEach(m=>m());return l?{stop:w,cancel:()=>{c=!1},trigger:m=>{c=!0,p(m),c=!1}}:w}const sn=new WeakMap,Lc={mounted(e,t){const n=!t.modifiers.bubble;let o;if(typeof t.value=="function")o=Lr(e,t.value,{capture:n});else{const[r,a]=t.value;o=Lr(e,r,Object.assign({capture:n},a))}sn.set(e,o)},unmounted(e){const t=sn.get(e);t&&typeof t=="function"?t():t==null||t.stop(),sn.delete(e)}};function jc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Mc(e){const t=jc();return s.computed(()=>(t.value,!!e()))}function jr(e,t,n={}){const{window:o=rn,...r}=n;let a;const i=Mc(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const d=s.toValue(e);return Array.isArray(d)?d.map(p=>he(p)):[he(d)]}),u=s.watch(c,d=>{if(l(),i.value&&o){a=new ResizeObserver(t);for(const p of d)p&&a.observe(p,r)}},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Ie(f),{isSupported:i,stop:f}}function an(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Uc={mounted(e,t){typeof t.value=="function"?jr(e,t.value):jr(e,...t.value)}};function Mr(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:Mr(n)}}function Bc(e){const t=e||window.event,n=t.target;return Mr(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ln=new WeakMap;function zc(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(Ic(e),l=>{const c=an(s.toValue(l));if(c){const u=c;if(ln.get(u)||ln.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const a=()=>{const l=an(s.toValue(e));!l||n.value||(nn&&(o=at(l,"touchmove",c=>{Bc(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=an(s.toValue(e));!l||!n.value||(nn&&(o==null||o()),l.style.overflow=r,ln.delete(l),n.value=!1)};return Ie(i),s.computed({get(){return n.value},set(l){l?a():i()}})}function Hc(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=zc(n,o.value);s.watch(t,a=>r.value=a)}}Hc();const Kc={key:0},Fc={class:"atable-header-row",tabindex:"-1"},Wc=["data-colindex"],Gc=s.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){const t=n=>{var o;for(const r of n){if(r.borderBoxSize.length===0)continue;const a=r.borderBoxSize[0].inlineSize,i=Number(r.target.dataset.colindex),l=(o=e.store.columns[i])==null?void 0:o.width;typeof l=="number"&&l!==a&&e.store.resizeColumn(i,a)}};return(n,o)=>n.columns.length?(s.openBlock(),s.createElementBlock("thead",Kc,[s.createElementVNode("tr",Fc,[n.store.zeroColumn?(s.openBlock(),s.createElementBlock("th",{key:0,id:"header-index",class:s.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.config.view==="tree"?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.columns,(r,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("th",{key:r.name,"data-colindex":a,tabindex:"-1",style:s.normalizeStyle(n.store.getHeaderCellStyle(r)),class:s.normalizeClass(r.pinned?"sticky-column":"")},[s.renderSlot(n.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(r.label||String.fromCharCode(a+97).toUpperCase()),1)])],14,Wc)),[[s.unref(Uc),t]])),128))])])):s.createCommentVNode("",!0)}}),Yc=s.defineComponent({__name:"ATableModal",props:{store:{}},setup(e){const t=s.useTemplateRef("amodal"),{width:n,height:o}=Rc(t),r=s.computed(()=>{var a,i,l,c;if(!(e.store.modal.height&&e.store.modal.width&&e.store.modal.left&&e.store.modal.bottom))return;const u=(a=e.store.modal.cell)==null?void 0:a.closest("table"),f=u.offsetHeight||0,d=u.offsetWidth||0;let p=((i=e.store.modal.cell)==null?void 0:i.offsetTop)||0;const _=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;p+=_,p=p+o.value<f?p:p-(o.value+e.store.modal.height);let g=((c=e.store.modal.cell)==null?void 0:c.offsetLeft)||0;return g=g+n.value<=d?g:g-(n.value-e.store.modal.width),{left:`${g}px`,top:`${p}px`}});return(a,i)=>(s.openBlock(),s.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:i[0]||(i[0]=s.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=s.withModifiers(()=>{},["stop"])),style:s.normalizeStyle(r.value)},[s.renderSlot(a.$slots,"default")],36))}}),qc=e=>{const t=e.id||Dc();return oc(`table-${t}`,()=>{const n=()=>{const y={};for(const[h,E]of r.value.entries())for(const[T,I]of a.value.entries())y[`${h}:${T}`]=I[E.name];return y},o=y=>{const h=[Object.assign({},{rowModified:!1})];if(y&&"0:0"in y)return y;const E=new Set;for(let T=a.value.length-1;T>=0;T--){const I=a.value[T];I.parent&&E.add(I.parent),h[T]={childrenOpen:!1,expanded:!1,indent:I.indent||0,isParent:E.has(T),isRoot:I.parent===null||I.parent===void 0,rowModified:!1,open:I.parent===null||I.parent===void 0,parent:I.parent}}return h},r=s.ref(e.columns),a=s.ref(e.rows),i=s.ref(e.config||{}),l=s.ref(e.table||n()),c=s.ref(o(e.display)),u=s.ref(e.modal||{visible:!1}),f=s.ref({}),d=s.computed(()=>r.value.some(y=>y.pinned)),p=s.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),_=s.computed(()=>i.value.view?["list","tree","list-expansion"].includes(i.value.view):!1),g=(y,h)=>l.value[`${y}:${h}`],w=(y,h,E)=>{const T=`${y}:${h}`,I=r.value[y];l.value[T]!==E&&(c.value[h].rowModified=!0),l.value[T]=E,a.value[h]={...a.value[h],[I.name]:E}},m=(y,h,E)=>{const T=`${y}:${h}`;l.value[T]!==E&&(c.value[h].rowModified=!0,f.value[T]=E)},v=y=>{const h=r.value.indexOf(y)===r.value.length-1,E=i.value.fullWidth?y.resizable&&!h:y.resizable;return{width:y.width||"40ch",textAlign:y.align||"center",...E&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},S=(y,h)=>{if(y<0||y>=r.value.length)return;const E=Math.max(h,40);r.value[y]={...r.value[y],width:`${E}px`}},C=y=>{const h=a.value[y];return i.value.view==="gantt"&&h.indent===0},A=y=>i.value.view!=="tree"||c.value[y].isRoot||c.value[y].open,R=y=>i.value.view!=="tree"?"":c.value[y].isRoot||c.value[y].isParent?c.value[y].childrenOpen?"-":"+":"",q=y=>{if(i.value.view==="tree"){c.value[y].childrenOpen=!c.value[y].childrenOpen;for(let h=a.value.length-1;h>=0;h--)c.value[h].parent===y&&(c.value[h].open=!c.value[h].open,c.value[h].childrenOpen&&q(h))}else i.value.view==="list-expansion"&&(c.value[y].expanded=!c.value[y].expanded)},k=(y,h)=>{const E=g(y,h);return L(y,h,E)},L=(y,h,E)=>{const T=r.value[y],I=a.value[h],j=T.format;return j?typeof j=="function"?j(E,{table:l.value,row:I,column:T}):typeof j=="string"?Function(`"use strict";return (${j})`)()(E,{table:l.value,row:I,column:T}):E:E};return{columns:r,config:i,display:c,modal:u,rows:a,table:l,updates:f,hasPinnedColumns:d,numberedRowWidth:p,zeroColumn:_,closeModal:y=>{var h;y.target instanceof Node&&(h=u.value.parent)!=null&&h.contains(y.target)||u.value.visible&&(u.value.visible=!1)},getCellData:g,getCellDisplayValue:k,getFormattedValue:L,getHeaderCellStyle:v,resizeColumn:S,getIndent:(y,h)=>h&&y===0&&h>0?`${h}ch`:"inherit",getRowExpandSymbol:R,isRowGantt:C,isRowVisible:A,setCellData:w,setCellText:m,toggleRowExpand:q,updateGanttBar:y=>{var h;const E=(h=a.value[y.rowIndex])==null?void 0:h.gantt;E&&(y.type==="resize"?y.edge==="start"?(E.startIndex=y.newStart,E.endIndex=y.end,E.colspan=E.endIndex-E.startIndex):y.edge==="end"&&(E.startIndex=y.start,E.endIndex=y.newEnd,E.colspan=E.endIndex-E.startIndex):y.type==="bar"&&(E.startIndex=y.newStart,E.endIndex=y.newEnd,E.colspan=E.endIndex-E.startIndex))}}})()},Jc=s.defineComponent({__name:"ATable",props:s.mergeModels({id:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["cellUpdate","gantt:drag"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const o=s.useModel(e,"modelValue"),r=n,a=s.useTemplateRef("table"),i=o.value.length>0?o.value:e.rows,l=qc({columns:e.columns,rows:i,id:e.id,config:e.config});l.$onAction(({name:d,store:p,args:_,after:g})=>{if(d==="setCellData"||d==="setCellText"){const[w,m,v]=_,S=p.getCellData(w,m);g(()=>{o.value=[...p.rows],r("cellUpdate",{colIndex:w,rowIndex:m,newValue:v,oldValue:S})})}else if(d==="updateGanttBar"){const[w]=_;let m=!1;w.type==="resize"?m=w.oldColspan!==w.newColspan:w.type==="bar"&&(m=w.oldStart!==w.newStart||w.oldEnd!==w.newEnd),m&&g(()=>{r("gantt:drag",w)})}}),s.watch(()=>o.value,d=>{JSON.stringify(d)!==JSON.stringify(l.rows)&&(l.rows=[...d])},{deep:!0}),s.onMounted(()=>{e.columns.some(d=>d.pinned)&&(u(),l.config.view==="tree"&&Ar(a,u,{childList:!0,subtree:!0}))});const c=s.computed(()=>l.columns.filter(d=>d.pinned).length),u=()=>{const d=a.value,p=d==null?void 0:d.rows[0],_=d==null?void 0:d.rows[1],g=p?Array.from(p.cells):[];for(const[w,m]of g.entries()){const v=_==null?void 0:_.cells[w];v&&(m.style.width=`${v.offsetWidth}px`)}for(const w of(d==null?void 0:d.rows)||[]){let m=0;const v=[];for(const S of w.cells)(S.classList.contains("sticky-column")||S.classList.contains("sticky-index"))&&(S.style.left=`${m}px`,m+=S.offsetWidth,v.push(S));v.length>0&&v[v.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",d=>{if(d.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const p=l.modal.parent;p&&s.nextTick().then(()=>{p.focus()})}});const f=d=>{var p;if(d.indent!==0||c.value===0)return l.columns;const _=[];for(let g=0;g<c.value;g++){const w={...l.columns[g]};w.originalIndex=g,_.push(w)}return _.push({...l.columns[c.value],isGantt:!0,colspan:((p=d.gantt)==null?void 0:p.colspan)||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),_};return t({store:l}),(d,p)=>s.withDirectives((s.openBlock(),s.createElementBlock("table",{ref:"table",class:"atable",style:s.normalizeStyle({width:s.unref(l).config.fullWidth?"100%":"auto"})},[s.renderSlot(d.$slots,"header",{data:s.unref(l)},()=>[s.createVNode(Gc,{columns:s.unref(l).columns,store:s.unref(l)},null,8,["columns","store"])],!0),s.createElementVNode("tbody",null,[s.renderSlot(d.$slots,"body",{data:s.unref(l)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(l).rows,(_,g)=>(s.openBlock(),s.createBlock($c,{key:_.id,row:_,rowIndex:g,store:s.unref(l)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f(_),(w,m)=>{var v,S,C;return s.openBlock(),s.createElementBlock(s.Fragment,{key:w.name},[w.isGantt?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(w.ganttComponent||"AGanttCell"),{key:0,store:s.unref(l),columnsCount:s.unref(l).columns.length-c.value,color:(v=_.gantt)==null?void 0:v.color,start:(S=_.gantt)==null?void 0:S.startIndex,end:(C=_.gantt)==null?void 0:C.endIndex,colspan:w.colspan,pinned:w.pinned,rowIndex:g,colIndex:w.originalIndex??m,style:s.normalizeStyle({textAlign:(w==null?void 0:w.align)||"center",minWidth:(w==null?void 0:w.width)||"40ch",width:s.unref(l).config.fullWidth?"auto":null})},null,8,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(w.cellComponent||"ACell"),{key:1,store:s.unref(l),pinned:w.pinned,rowIndex:g,colIndex:m,style:s.normalizeStyle({textAlign:(w==null?void 0:w.align)||"center",width:s.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),s.renderSlot(d.$slots,"footer",{data:s.unref(l)},void 0,!0),s.renderSlot(d.$slots,"modal",{data:s.unref(l)},()=>[s.withDirectives(s.createVNode(Yc,{store:s.unref(l)},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(l).modal.component),s.mergeProps({key:`${s.unref(l).modal.rowIndex}:${s.unref(l).modal.colIndex}`,colIndex:s.unref(l).modal.colIndex,rowIndex:s.unref(l).modal.rowIndex,store:s.unref(l)},s.unref(l).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[s.vShow,s.unref(l).modal.visible]])],!0)],4)),[[s.unref(Lc),s.unref(l).closeModal]])}}),Xc=xr(Jc,[["__scopeId","data-v-85571dc2"]]),Ur=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=Xo(),o={view:"list"};return(r,a)=>s.unref(n)?(s.openBlock(),s.createBlock(s.unref(Xc),{key:0,columns:s.unref(t).schema.schema.toArray(),rows:s.unref(t).store.records,config:o},null,8,["columns","rows"])):s.createCommentVNode("",!0)}}),Zc={class:"tabs"},Qc={tabindex:"0"},eu={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"},tu={tabindex:"0"},nu={style:{width:"11pt"}},Br=un(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=s.ref(!0),n=s.ref(!1),o=s.ref(""),r=s.useTemplateRef("searchinput"),a=s.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},l=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},c=d=>{d.preventDefault(),d.stopPropagation()},u=async d=>{d.preventDefault(),d.stopPropagation(),await l()},f=()=>{};return(d,p)=>{const _=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",Zc,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:s.withKeys(i,["enter"])},[s.createElementVNode("a",Qc,[s.createElementVNode("div",{class:s.normalizeClass(a.value)},"×",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:f,onKeydown:s.withKeys(f,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(_,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",eu,p[5]||(p[5]=[s.createElementVNode("g",null,[s.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
20
20
|
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
|
|
21
21
|
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
|
|
22
22
|
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
|
|
@@ -24,5 +24,5 @@ This will fail in production.`);a=Me,a._s.has(e)||(r?qt(e,t,o,a):vr(e,o,a),proce
|
|
|
24
24
|
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
|
|
25
25
|
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
|
|
26
26
|
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
|
|
27
|
-
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:l,onKeydown:s.withKeys(l,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createElementVNode("a",tu,[s.createElementVNode("span",{style:s.normalizeStyle({display:n.value?"none":"block"})},[(s.openBlock(),s.createElementBlock("svg",nu,p[6]||(p[6]=[s.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[s.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=
|
|
27
|
+
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:l,onKeydown:s.withKeys(l,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createElementVNode("a",tu,[s.createElementVNode("span",{style:s.normalizeStyle({display:n.value?"none":"block"})},[(s.openBlock(),s.createElementBlock("svg",nu,p[6]||(p[6]=[s.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[s.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=g=>o.value=g),ref:"searchinput",style:s.normalizeStyle({display:n.value?"block":"none"}),onClick:p[1]||(p[1]=g=>c(g)),onInput:p[2]||(p[2]=g=>c(g)),onBlur:p[3]||(p[3]=g=>u(g)),onKeydown:p[4]||(p[4]=s.withKeys(g=>u(g),["enter"])),type:"text"},null,36),[[s.vModelText,o.value]])])],36),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.breadcrumbs,g=>(s.openBlock(),s.createElementBlock("li",{key:g.title,style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(_,{tabindex:"0",to:g.to},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),ou={install:e=>{e.component("ActionSet",dn),e.component("CommandPalette",fn),e.component("Doctype",_r),e.component("Records",Ur),e.component("SheetNav",Br)}};K.ActionSet=dn,K.CommandPalette=fn,K.Doctype=_r,K.Records=Ur,K.SheetNav=Br,K.StonecropDesktop=ou,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|
|
28
28
|
//# sourceMappingURL=desktop.umd.cjs.map
|