@stonecrop/desktop 0.4.28 → 0.4.30
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 +5798 -3734
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +12 -10
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +6 -6
package/dist/desktop.umd.cjs
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
(function(q,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(q=typeof globalThis<"u"?globalThis:q||self,s(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,s){"use strict";const Kr={class:"action-menu-icon"},Fr=["onclick"],Wr={key:1},Gr=["onClick"],Yr={class:"dropdown-container"},qr={class:"dropdown"},Jr=["onclick"],Xr=["href"],Zr={class:"dropdown-item"},Qr=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(()=>{l()});const l=()=>{for(const d of t.value)d.type==="dropdown"&&(d.show=!1)},i=()=>{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=d=>{const p=!t.value[d].show;l(),t.value[d].show=p};return(d,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:i,onMouseleave:c},[s.createElementVNode("div",Kr,[s.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=h=>a.value=!a.value)},p[1]||(p[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)]))]),p[2]||(p[2]=s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.value,(h,f)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:h.label},[h.type=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},s.toDisplayString(h.label),9,Fr)):s.createCommentVNode("",!0),h.type=="dropdown"?(s.openBlock(),s.createElementBlock("div",Wr,[s.createElementVNode("button",{class:"button-default",onClick:_=>u(f)},s.toDisplayString(h.label),9,Gr),s.withDirectives(s.createElementVNode("div",Yr,[s.createElementVNode("div",qr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.actions,_=>(s.openBlock(),s.createElementBlock("div",{key:_.label},[_.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:_.action,class:"dropdown-item"},s.toDisplayString(_.label),9,Jr)):_.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:_.link},[s.createElementVNode("button",Zr,s.toDisplayString(_.label),1)],8,Xr)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,h.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),pn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},hn=pn(Qr,[["__scopeId","data-v-38e7af34"]]),es={class:"command-palette-header"},ts=["placeholder"],ns={key:0,class:"command-palette-results"},os=["onClick","onMouseover"],rs={class:"result-title"},ss={class:"result-content"},as={key:1,class:"command-palette-no-results"},mn=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"),l=s.computed(()=>o.value?e.search(o.value).slice(0,e.maxResults):[]);s.watch(()=>e.isOpen,async d=>{var p;d&&(o.value="",r.value=0,await s.nextTick(),(p=a.value)==null||p.focus())}),s.watch(l,()=>{r.value=0});const i=()=>{n("close")},c=d=>{switch(d.key){case"Escape":i();break;case"ArrowDown":d.preventDefault(),l.value.length&&(r.value=(r.value+1)%l.value.length);break;case"ArrowUp":d.preventDefault(),l.value.length&&(r.value=(r.value-1+l.value.length)%l.value.length);break;case"Enter":l.value.length&&r.value>=0&&u(l.value[r.value]);break}},u=d=>{n("select",d),i()};return(d,p)=>(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:i},[s.createElementVNode("div",{class:"command-palette",onClick:p[1]||(p[1]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",es,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":p[0]||(p[0]=h=>o.value=h),type:"text",class:"command-palette-input",placeholder:d.placeholder,autofocus:"",onKeydown:c},null,40,ts),[[s.vModelText,o.value]])]),l.value.length?(s.openBlock(),s.createElementBlock("div",ns,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(h,f)=>(s.openBlock(),s.createElementBlock("div",{key:f,class:s.normalizeClass(["command-palette-result",{selected:f===r.value}]),onClick:_=>u(h),onMouseover:_=>r.value=f},[s.createElementVNode("div",rs,[s.renderSlot(d.$slots,"title",{result:h})]),s.createElementVNode("div",ss,[s.renderSlot(d.$slots,"content",{result:h})])],42,os))),128))])):o.value&&!l.value.length?(s.openBlock(),s.createElementBlock("div",as,[s.renderSlot(d.$slots,"empty",{},()=>[s.createTextVNode(' No results found for "'+s.toDisplayString(o.value)+'" ',1)])])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)]),_:3})]))}}),ls=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function _n(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const gn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const is=Object.prototype.toString,cs=e=>is.call(e)==="[object Object]",us=()=>{},yn=ds();function ds(){var e,t;return gn&&((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 fs(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:us}))):s.ref(t)}function dt(e){return Array.isArray(e)?e:[e]}function ps(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const hs=gn?window:void 0;function ms(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function _s(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=dt(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=ps(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>ms(u)))!=null?c:[hs].filter(u=>u!=null),dt(s.toValue(r.value?e[1]:e[0])),dt(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=cs(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return _n(n),l}function ft(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function En(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:En(n)}}function gs(e){const t=e||window.event,n=t.target;return En(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const pt=new WeakMap;function ys(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(fs(e),i=>{const c=ft(s.toValue(i));if(c){const u=c;if(pt.get(u)||pt.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 i=ft(s.toValue(e));!i||n.value||(yn&&(o=_s(i,"touchmove",c=>{gs(c)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=ft(s.toValue(e));!i||!n.value||(yn&&(o==null||o()),i.style.overflow=r,pt.delete(i),n.value=!1)};return _n(l),s.computed({get(){return n.value},set(i){i?a():l()}})}function Es(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=ys(n,o.value);s.watch(t,a=>r.value=a)}}Es(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ws={class:"aform"},bs=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=l=>{let i={};for(const[c,u]of Object.entries(l))["component","fieldtype"].includes(c)||(i[c]=u),c==="rows"&&u&&u.length===0&&(i.rows=o.value[l.fieldname]);return i},a=s.computed({get:()=>e.modelValue.map((l,i)=>s.computed({get(){return l.value},set:c=>{e.modelValue[i].value=c,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(l,i)=>(s.openBlock(),s.createElementBlock("form",ws,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.modelValue,(c,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c.component),s.mergeProps({key:u,schema:c,modelValue:a.value[u].value,"onUpdate:modelValue":d=>a.value[u].value=d,data:o.value[c.fieldname],readonly:l.readonly},{ref_for:!0},r(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),vs=ls(bs,[["__scopeId","data-v-68845234"]]);var ks=Object.defineProperty,Os=(e,t,n)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Os(e,typeof t!="symbol"?t+"":t,n);function ht(e){this.message=e||""}ht.prototype=Object.create(Error.prototype,{constructor:{value:ht},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const wn=class ct{constructor(t,n,o,r,a){if(K(this,"name","Stonecrop"),K(this,"registry"),K(this,"store"),K(this,"schema"),K(this,"workflow"),K(this,"actions"),ct._root)return ct._root;ct._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 ht(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:l}=this.workflow;this.workflow.transition(l,{type:n}),a&&a.length>0&&a.forEach(i=>{new Function(i)(o)})}}};K(wn,"_root");let Ss=wn;var Is=Object.create,bn=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,mt=Object.getOwnPropertyNames,Vs=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty,Ns=(e,t)=>function(){return e&&(t=(0,e[mt(e)[0]])(e=0)),t},Ps=(e,t)=>function(){return t||(0,e[mt(e)[0]])((t={exports:{}}).exports,t),t.exports},Rs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mt(t))!Cs.call(e,r)&&r!==n&&bn(e,r,{get:()=>t[r],enumerable:!(o=Ts(t,r))||o.enumerable});return e},xs=(e,t,n)=>(n=e!=null?Is(Vs(e)):{},Rs(bn(n,"default",{value:e,enumerable:!0}),e)),Pe=Ns({"../../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=Ps({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Pe(),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 l=new Map;if(l.set(Date,p=>new Date(p)),l.set(Map,(p,h)=>new Map(c(Array.from(p),h))),l.set(Set,(p,h)=>new Set(c(Array.from(p),h))),a.constructorHandlers)for(const p of a.constructorHandlers)l.set(p[0],p[1]);let i=null;return a.proto?d:u;function c(p,h){const f=Object.keys(p),_=new Array(f.length);for(let v=0;v<f.length;v++){const m=f[v],g=p[m];typeof g!="object"||g===null?_[m]=g:g.constructor!==Object&&(i=l.get(g.constructor))?_[m]=i(g,h):ArrayBuffer.isView(g)?_[m]=n(g):_[m]=h(g)}return _}function u(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return c(p,u);if(p.constructor!==Object&&(i=l.get(p.constructor)))return i(p,u);const h={};for(const f in p){if(Object.hasOwnProperty.call(p,f)===!1)continue;const _=p[f];typeof _!="object"||_===null?h[f]=_:_.constructor!==Object&&(i=l.get(_.constructor))?h[f]=i(_,u):ArrayBuffer.isView(_)?h[f]=n(_):h[f]=u(_)}return h}function d(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return c(p,d);if(p.constructor!==Object&&(i=l.get(p.constructor)))return i(p,d);const h={};for(const f in p){const _=p[f];typeof _!="object"||_===null?h[f]=_:_.constructor!==Object&&(i=l.get(_.constructor))?h[f]=i(_,d):ArrayBuffer.isView(_)?h[f]=n(_):h[f]=d(_)}return h}}function r(a){const l=[],i=[],c=new Map;if(c.set(Date,f=>new Date(f)),c.set(Map,(f,_)=>new Map(d(Array.from(f),_))),c.set(Set,(f,_)=>new Set(d(Array.from(f),_))),a.constructorHandlers)for(const f of a.constructorHandlers)c.set(f[0],f[1]);let u=null;return a.proto?h:p;function d(f,_){const v=Object.keys(f),m=new Array(v.length);for(let g=0;g<v.length;g++){const I=v[g],C=f[I];if(typeof C!="object"||C===null)m[I]=C;else if(C.constructor!==Object&&(u=c.get(C.constructor)))m[I]=u(C,_);else if(ArrayBuffer.isView(C))m[I]=n(C);else{const x=l.indexOf(C);x!==-1?m[I]=i[x]:m[I]=_(C)}}return m}function p(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return d(f,p);if(f.constructor!==Object&&(u=c.get(f.constructor)))return u(f,p);const _={};l.push(f),i.push(_);for(const v in f){if(Object.hasOwnProperty.call(f,v)===!1)continue;const m=f[v];if(typeof m!="object"||m===null)_[v]=m;else if(m.constructor!==Object&&(u=c.get(m.constructor)))_[v]=u(m,p);else if(ArrayBuffer.isView(m))_[v]=n(m);else{const g=l.indexOf(m);g!==-1?_[v]=i[g]:_[v]=p(m)}}return l.pop(),i.pop(),_}function h(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return d(f,h);if(f.constructor!==Object&&(u=c.get(f.constructor)))return u(f,h);const _={};l.push(f),i.push(_);for(const v in f){const m=f[v];if(typeof m!="object"||m===null)_[v]=m;else if(m.constructor!==Object&&(u=c.get(m.constructor)))_[v]=u(m,h);else if(ArrayBuffer.isView(m))_[v]=n(m);else{const g=l.indexOf(m);g!==-1?_[v]=i[g]:_[v]=h(m)}}return l.pop(),i.pop(),_}}}});Pe(),Pe(),Pe();var vn=typeof navigator<"u",V=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof V.chrome<"u"&&V.chrome.devtools,vn&&(V.self,V.top);var kn;typeof navigator<"u"&&((kn=navigator.userAgent)==null||kn.toLowerCase().includes("electron")),Pe();var As=xs(Ds()),$s=/(?:^|[-_/])(\w)/g;function Ls(e,t){return t?t.toUpperCase():""}function js(e){return e&&`${e}`.replace($s,Ls)}function Ms(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 On=(0,As.default)({circles:!0});const Bs={trailing:!0};function _e(e,t=25,n={}){if(n={...Bs,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,a=[],l,i;const c=(u,d)=>(l=Us(e,u,d),l.finally(()=>{if(l=null,n.trailing&&i&&!r){const p=c(u,i);return i=null,p}}),l);return function(...u){return l?(n.trailing&&(i=u),l):new Promise(d=>{const p=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const h=n.leading?o:c(this,u);for(const f of a)f(h);a=[]},t),p?(o=c(this,u),d(o)):a.push(d)})}}async function Us(e,t,n){return await e.apply(t,n)}function _t(e,t={},n){for(const o in e){const r=e[o],a=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?_t(r,t,a):typeof r=="function"&&(t[a]=r)}return t}const Hs={run:e=>e()},zs=()=>Hs,Sn=typeof console.createTask<"u"?console.createTask:zs;function Ks(e,t){const n=t.shift(),o=Sn(n);return e.reduce((r,a)=>r.then(()=>o.run(()=>a(...t))),Promise.resolve())}function Fs(e,t){const n=t.shift(),o=Sn(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function gt(e,t){for(const n of[...e])n(t)}class Ws{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 l=a.message;l||(l=`${r} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(l)||(console.warn(l),this._deprecatedMessages.add(l))}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=_t(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=_t(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(Ks,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Fs,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&>(this._before,r);const a=t(n in this._hooks?[...this._hooks[n]]:[],o);return a instanceof Promise?a.finally(()=>{this._after&&r&>(this._after,r)}):(this._after&&r&>(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 In(){return new Ws}var Gs=Object.create,Tn=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,yt=Object.getOwnPropertyNames,qs=Object.getPrototypeOf,Js=Object.prototype.hasOwnProperty,Xs=(e,t)=>function(){return e&&(t=(0,e[yt(e)[0]])(e=0)),t},Vn=(e,t)=>function(){return t||(0,e[yt(e)[0]])((t={exports:{}}).exports,t),t.exports},Zs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of yt(t))!Js.call(e,r)&&r!==n&&Tn(e,r,{get:()=>t[r],enumerable:!(o=Ys(t,r))||o.enumerable});return e},Qs=(e,t,n)=>(n=e!=null?Gs(qs(e)):{},Zs(Tn(n,"default",{value:e,enumerable:!0}),e)),b=Xs({"../../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"(){}}),ea=Vn({"../../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"},l={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},i={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),u=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),p=function(v,m){var g="-",I="",C="",x=!0,D={},Y,O,j,T,y,S,N,A,W,H,P,E,w,k,R="";if(typeof v!="string")return"";if(typeof m=="string"&&(g=m),N=i.en,A=l.en,typeof m=="object"){Y=m.maintainCase||!1,D=m.custom&&typeof m.custom=="object"?m.custom:D,j=+m.truncate>1&&m.truncate||!1,T=m.uric||!1,y=m.uricNoSlash||!1,S=m.mark||!1,x=!(m.symbols===!1||m.lang===!1),g=m.separator||g,T&&(R+=c),y&&(R+=u),S&&(R+=d),N=m.lang&&i[m.lang]&&x?i[m.lang]:x?i.en:{},A=m.lang&&l[m.lang]?l[m.lang]:m.lang===!1||m.lang===!0?{}:l.en,m.titleCase&&typeof m.titleCase.length=="number"&&Array.prototype.toString.call(m.titleCase)?(m.titleCase.forEach(function($){D[$+""]=$+""}),O=!0):O=!!m.titleCase,m.custom&&typeof m.custom.length=="number"&&Array.prototype.toString.call(m.custom)&&m.custom.forEach(function($){D[$+""]=$+""}),Object.keys(D).forEach(function($){var B;$.length>1?B=new RegExp("\\b"+f($)+"\\b","gi"):B=new RegExp(f($),"gi"),v=v.replace(B,D[$])});for(P in D)R+=P}for(R+=g,R=f(R),v=v.replace(/(^\s+|\s+$)/g,""),w=!1,k=!1,H=0,E=v.length;H<E;H++)P=v[H],_(P,D)?w=!1:A[P]?(P=w&&A[P].match(/[A-Za-z0-9]/)?" "+A[P]:A[P],w=!1):P in o?(H+1<E&&r.indexOf(v[H+1])>=0?(C+=P,P=""):k===!0?(P=a[C]+o[P],C=""):P=w&&o[P].match(/[A-Za-z0-9]/)?" "+o[P]:o[P],w=!1,k=!1):P in a?(C+=P,P="",H===E-1&&(P=a[C]),k=!0):N[P]&&!(T&&c.indexOf(P)!==-1)&&!(y&&u.indexOf(P)!==-1)?(P=w||I.substr(-1).match(/[A-Za-z0-9]/)?g+N[P]:N[P],P+=v[H+1]!==void 0&&v[H+1].match(/[A-Za-z0-9]/)?g:"",w=!0):(k===!0?(P=a[C]+P,C="",k=!1):w&&(/[A-Za-z0-9]/.test(P)||I.substr(-1).match(/A-Za-z0-9]/))&&(P=" "+P),w=!1),I+=P.replace(new RegExp("[^\\w\\s"+R+"_-]","g"),g);return O&&(I=I.replace(/(\w)(\S*)/g,function($,B,Ne){var fn=B.toUpperCase()+(Ne!==null?Ne:"");return Object.keys(D).indexOf(fn.toLowerCase())<0?fn:fn.toLowerCase()})),I=I.replace(/\s+/g,g).replace(new RegExp("\\"+g+"+","g"),g).replace(new RegExp("(^\\"+g+"+|\\"+g+"+$)","g"),""),j&&I.length>j&&(W=I.charAt(j)===g,I=I.slice(0,j),W||(I=I.slice(0,I.lastIndexOf(g)))),!Y&&!O&&(I=I.toLowerCase()),I},h=function(v){return function(m){return p(m,v)}},f=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},_=function(v,m){for(var g in m)if(m[g]===v)return!0};if(typeof t<"u"&&t.exports)t.exports=p,t.exports.createSlug=h;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=p,n.createSlug=h}catch{}}(e)}}),ta=Vn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){b(),t.exports=ea()}});b(),b(),b(),b(),b(),b(),b(),b();function na(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 oa(e){const t=e.__file;if(t)return js(Ms(t,".vue"))}function Cn(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Et(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 Nn(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=Et(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function Fe(e){var t,n,o;const r=na((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const l in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[l]===(e==null?void 0:e.type))return Cn(e,l);for(const l in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[l]===(e==null?void 0:e.type))return Cn(e,l);return oa((e==null?void 0:e.type)||{})||"Anonymous Component"}function ra(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 wt(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function sa(){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 We;function aa(e){return We||(We=document.createRange()),We.selectNode(e),We.getBoundingClientRect()}function la(e){const t=sa();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 l=r.el;l.nodeType===1||l.getBoundingClientRect?a=l.getBoundingClientRect():l.nodeType===3&&l.data.trim()&&(a=aa(l))}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 Pn={top:0,left:0,right:0,bottom:0,width:0,height:0};function ie(e){const t=e.subTree.el;return typeof window>"u"?Pn:Nn(e)?la(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?ie(e.subTree.component):Pn}b();function bt(e){return Nn(e)?ca(e.subTree):e.subTree?[e.subTree.el]:[]}function ca(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...bt(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Rn="__vue-devtools-component-inspector__",xn="__vue-devtools-component-inspector__card__",Dn="__vue-devtools-component-inspector__name__",An="__vue-devtools-component-inspector__indicator__",$n={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ua={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)"},da={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ge(){return document.getElementById(Rn)}function fa(){return document.getElementById(xn)}function pa(){return document.getElementById(An)}function ha(){return document.getElementById(Dn)}function vt(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 kt(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Rn,Object.assign(n.style,{...$n,...vt(e.bounds),...e.style});const o=document.createElement("span");o.id=xn,Object.assign(o.style,{...ua,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Dn,r.innerHTML=`<${e.name}> `;const a=document.createElement("i");return a.id=An,a.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(a.style,da),o.appendChild(r),o.appendChild(a),n.appendChild(o),document.body.appendChild(n),n}function Ot(e){const t=ge(),n=fa(),o=ha(),r=pa();t&&(Object.assign(t.style,{...$n,...vt(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 ma(e){const t=ie(e);if(!t.width&&!t.height)return;const n=Fe(e);ge()?Ot({bounds:t,name:n}):kt({bounds:t,name:n})}function Ln(){const e=ge();e&&(e.style.display="none")}var St=null;function It(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(St=n,n.vnode.el)){const o=ie(n),r=Fe(n);ge()?Ot({bounds:o,name:r}):kt({bounds:o,name:r})}}}function _a(e,t){if(e.preventDefault(),e.stopPropagation(),St){const n=ra(St);t(n)}}var Ge=null;function ga(){Ln(),window.removeEventListener("mouseover",It),window.removeEventListener("click",Ge,!0),Ge=null}function ya(){return window.addEventListener("mouseover",It),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),_a(n,o=>{window.removeEventListener("click",t,!0),Ge=null,window.removeEventListener("mouseover",It);const r=ge();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}Ge=t,window.addEventListener("click",t,!0)})}function Ea(e){const t=wt(F.value,e.id);if(t){const[n]=bt(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=ie(t),r=document.createElement("div"),a={...vt(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=Fe(t),a=ge();a?Ot({...e,name:r,bounds:o}):kt({...e,name:r,bounds:o}),setTimeout(()=>{a&&(a.style.display="none")},1500)}},1200)}}b();var jn;(jn=V).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(jn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function wa(e){let t=0;const n=setInterval(()=>{V.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function ba(){const e=V.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function va(){return new Promise(e=>{function t(){ba(),e(V.__VUE_INSPECTOR__)}V.__VUE_INSPECTOR__?t():wa(()=>{t()})})}b(),b();function ka(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return ka(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isRef===!0)}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}var Oa=class{constructor(){this.refEditor=new Sa}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const i=r.shift();e instanceof Map?e=e.get(i):e instanceof Set?e=Array.from(e.values())[i]:e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const a=r[0],l=this.refEditor.get(e)[a];o?o(e,a,n):this.refEditor.isRef(l)?this.refEditor.set(l,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):Re(t)instanceof Map?t.delete(n):Re(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):Re(t)instanceof Map?t.set(e.newKey||n,o):Re(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},Sa=class{set(e,t){if(Tt(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 Tt(e)?e.value:e}isRef(e){return Tt(e)||Mn(e)}};b(),b(),b();var Ia="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ta(){if(!vn||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Ia);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}b(),b(),b();var Bn;(Bn=V).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Bn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Va=new Proxy(V.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Ca(e,t){M.timelineLayersState[t.id]=!1,Va.push({...e,descriptorId:t.id,appRecord:Et(t.app)})}var Un;(Un=V).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(Un.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Vt=new Proxy(V.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Hn=_e(()=>{Ee.hooks.callHook("sendInspectorToClient",zn())});function Na(e,t){var n,o;Vt.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Et(t.app)}),Hn()}function zn(){return Vt.filter(e=>e.descriptor.app===F.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 Ye(e,t){return Vt.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Pa(){const e=In();e.hook("addInspector",({inspector:o,plugin:r})=>{Na(o,r.descriptor)});const t=_e(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||M.highPerfModeEnabled)return;const l=Ye(o,r.descriptor.app),i={app:r.descriptor.app,inspectorId:o,filter:(l==null?void 0:l.treeFilter)||"",rootNodes:[]};await new Promise(c=>{e.callHookWith(async u=>{await Promise.all(u.map(d=>d(i))),c()},"getInspectorTree")}),e.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:i.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=_e(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||M.highPerfModeEnabled)return;const l=Ye(o,r.descriptor.app),i={app:r.descriptor.app,inspectorId:o,nodeId:(l==null?void 0:l.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};i.nodeId&&await new Promise(u=>{e.callHookWith(async d=>{await Promise.all(d.map(p=>p(i,c))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(d=>d({inspectorId:o,nodeId:i.nodeId,state:i.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:a})=>{const l=Ye(o,a.descriptor.app);l&&(l.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{Ca(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var a;const l=["performance","component-event","keyboard","mouse"];M.highPerfModeEnabled||!((a=M.timelineLayersState)!=null&&a[r.descriptor.id])&&!l.includes(o.layerId)||e.callHookWith(async i=>{await Promise.all(i.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(([l])=>l.split(":")[0]===a).map(([,l])=>l)}),e.hook("getComponentBounds",async({instance:o})=>ie(o)),e.hook("getComponentName",({instance:o})=>Fe(o)),e.hook("componentHighlight",({uid:o})=>{const r=F.value.instanceMap.get(o);r&&ma(r)}),e.hook("componentUnhighlight",()=>{Ln()}),e}var Kn;(Kn=V).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(Kn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Fn;(Fn=V).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(Fn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Wn;(Wn=V).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(Wn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Gn;(Gn=V).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Gn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Yn;(Yn=V).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Yn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var ce="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Ra(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ta()}}var qn;(qn=V)[ce]!=null||(qn[ce]=Ra());var xa=_e(e=>{Ee.hooks.callHook("devtoolsStateUpdated",{state:e})});_e((e,t)=>{Ee.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var qe=new Proxy(V.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?V.__VUE_DEVTOOLS_KIT_APP_RECORDS__:V.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),F=new Proxy(V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Jn(){xa({...V[ce],appRecords:qe.value,activeAppRecordId:F.id,tabs:V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Da(e){V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Jn()}function Aa(e){V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Jn()}var M=new Proxy(V[ce],{get(e,t){return t==="appRecords"?qe:t==="activeAppRecordId"?F.id:t==="tabs"?V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:V[ce][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...V[ce]},e[t]=n,V[ce][t]=n,!0}});function $a(e={}){var t,n,o;const{file:r,host:a,baseUrl:l=window.location.origin,line:i=0,column:c=0}=e;if(r){if(a==="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(p=>{if(!p.ok){const h=`Opening component ${u} failed`;console.log(`%c${h}`,"color:red")}})}else if(M.vitePluginDetected){const u=(o=V.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:l;V.__VUE_INSPECTOR__.openInEditor(u,r,i,c)}}}b(),b(),b(),b(),b();var Xn;(Xn=V).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Xn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Ct=new Proxy(V.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Nt(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Pt(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function La(e){var t,n,o;const r=(n=(t=Ct.find(a=>{var l;return a[0].id===e&&!!((l=a[0])!=null&&l.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function Zn(e,t){var n,o,r;const a=Pt(e);if(a){const l=localStorage.getItem(a);if(l)return JSON.parse(l)}if(e){const l=(o=(n=Ct.find(i=>i[0].id===e))==null?void 0:n[0])!=null?o:null;return Nt((r=l==null?void 0:l.settings)!=null?r:{})}return Nt(t)}function ja(e,t){const n=Pt(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Nt(t)))}function Ma(e,t,n){const o=Pt(e),r=localStorage.getItem(o),a=JSON.parse(r||"{}"),l={...a,[t]:n};localStorage.setItem(o,JSON.stringify(l)),Ee.hooks.callHookWith(i=>{i.forEach(c=>c({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:l}))},"setPluginSettings")}b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var Qn,eo,G=(eo=(Qn=V).__VUE_DEVTOOLS_HOOK)!=null?eo:Qn.__VUE_DEVTOOLS_HOOK=In(),Ba={vueAppInit(e){G.hook("app:init",e)},vueAppUnmount(e){G.hook("app:unmount",e)},vueAppConnected(e){G.hook("app:connected",e)},componentAdded(e){return G.hook("component:added",e)},componentEmit(e){return G.hook("component:emit",e)},componentUpdated(e){return G.hook("component:updated",e)},componentRemoved(e){return G.hook("component:removed",e)},setupDevtoolsPlugin(e){G.hook("devtools-plugin:setup",e)},perfStart(e){return G.hook("perf:start",e)},perfEnd(e){return G.hook("perf:end",e)}},to={on:Ba,setupDevToolsPlugin(e,t){return G.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(M.highPerfModeEnabled)return;const n=zn().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];G.callHook("component:updated",...o)}else G.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&&ja(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){M.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 M.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){M.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Zn(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")}},Ha=Ua;b(),b(),b(),b();var za="__vue_devtool_undefined__",Ka="__vue_devtool_infinity__",Fa="__vue_devtool_negative_infinity__",Wa="__vue_devtool_nan__";b(),b();var Ga={[za]:"undefined",[Wa]:"NaN",[Ka]:"Infinity",[Fa]:"-Infinity"};Object.entries(Ga).reduce((e,[t,n])=>(e[n]=t,e),{}),b(),b(),b(),b(),b();var no;(no=V).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(no.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function oo(e,t){return to.setupDevToolsPlugin(e,t)}function Ya(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Ha({plugin:{setupFn:o,descriptor:n},ctx:Ee});n.packageName==="vuex"&&r.on.editInspectorState(a=>{r.sendInspectorState(a.inspectorId)}),o(r)}function ro(e,t){V.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||M.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(V.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Ct.forEach(n=>{Ya(n,e)}))}b(),b();var xe="__VUE_DEVTOOLS_ROUTER__",ye="__VUE_DEVTOOLS_ROUTER_INFO__",so;(so=V)[ye]!=null||(so[ye]={currentRoute:null,routes:[]});var ao;(ao=V)[xe]!=null||(ao[xe]={}),new Proxy(V[ye],{get(e,t){return V[ye][t]}}),new Proxy(V[xe],{get(e,t){if(t==="value")return V[xe]}});function qa(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Rt(e){return e.map(t=>{let{path:n,name:o,children:r,meta:a}=t;return r!=null&&r.length&&(r=Rt(r)),{path:n,name:o,children:r,meta:a}})}function Ja(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:a,matched:l,params:i,query:c}=e;return{fullPath:t,hash:n,href:o,path:r,name:a,params:i,query:c,matched:Rt(l)}}return e}function Xa(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,a=Ja(r==null?void 0:r.currentRoute.value),l=Rt(qa(r)),i=console.warn;console.warn=()=>{},V[ye]={currentRoute:a?On(a):{},routes:On(l)},V[xe]=r,console.warn=i}n(),to.on.componentUpdated(_e(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!M.highPerfModeEnabled&&Ee.hooks.callHook("routerInfoUpdated",{state:V[ye]}))},200))}function Za(e){return{async getInspectorTree(t){const n={...t,app:F.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:F.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async a=>{await Promise.all(a.map(l=>l(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new Oa,o={...t,app:F.value.app,set:(r,a=t.path,l=t.state.value,i)=>{n.set(r,a,l,i||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(a=>a(o))},"editInspectorState")},sendInspectorState(t){const n=Ye(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ya()},cancelInspectComponentInspector(){return ga()},getComponentRenderCode(t){const n=wt(F.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Ea({id:t})},openInEditor:$a,getVueInspector:va,toggleApp(t,n){const o=qe.value.find(r=>r.id===t);o&&(Aa(t),Da(o),Xa(o,F),Hn(),ro(o.app,n))},inspectDOM(t){const n=wt(F.value,t);if(n){const[o]=bt(n);o&&(V.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){Ma(t,n,o)},getPluginSettings(t){return{options:La(t),values:Zn(t)}}}}b();var lo;(lo=V).__VUE_DEVTOOLS_ENV__!=null||(lo.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var io=Pa(),co;(co=V).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(co.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:io,get state(){return{...M,activeAppRecordId:F.id,activeAppRecord:F.value,appRecords:qe.value}},api:Za(io)});var Ee=V.__VUE_DEVTOOLS_KIT_CONTEXT__;b(),Qs(ta());var uo;(uo=V).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(uo.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),b(),b();function Qa(e){M.highPerfModeEnabled=e??!M.highPerfModeEnabled,!e&&F.value&&ro(F.value.app)}b(),b(),b();function el(e){M.devtoolsClientDetected={...M.devtoolsClientDetected,...e};const t=Object.values(M.devtoolsClientDetected).some(Boolean);Qa(!t)}var fo;(fo=V).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(fo.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=el),b(),b(),b(),b(),b(),b(),b();var tl=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},po=class{constructor(e){this.generateIdentifier=e,this.kv=new tl}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)}},nl=class extends po{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};b(),b();function ol(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 rl(e,t){const n=ol(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 we(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function Je(e,t){return e.indexOf(t)!==-1}function ho(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var sl=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return rl(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};b(),b();var al=e=>Object.prototype.toString.call(e).slice(8,-1),mo=e=>typeof e>"u",ll=e=>e===null,De=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,xt=e=>De(e)&&Object.keys(e).length===0,se=e=>Array.isArray(e),il=e=>typeof e=="string",cl=e=>typeof e=="number"&&!isNaN(e),ul=e=>typeof e=="boolean",dl=e=>e instanceof RegExp,Ae=e=>e instanceof Map,$e=e=>e instanceof Set,_o=e=>al(e)==="Symbol",fl=e=>e instanceof Date&&!isNaN(e.valueOf()),pl=e=>e instanceof Error,go=e=>typeof e=="number"&&isNaN(e),hl=e=>ul(e)||ll(e)||mo(e)||cl(e)||il(e)||_o(e),ml=e=>typeof e=="bigint",_l=e=>e===1/0||e===-1/0,gl=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),yl=e=>e instanceof URL;b();var yo=e=>e.replace(/\./g,"\\."),Dt=e=>e.map(String).map(yo).join("."),Le=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 Q(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Eo=[Q(mo,"undefined",()=>null,()=>{}),Q(ml,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),Q(fl,"Date",e=>e.toISOString(),e=>new Date(e)),Q(pl,"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}),Q(dl,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Q($e,"set",e=>[...e.values()],e=>new Set(e)),Q(Ae,"map",e=>[...e.entries()],e=>new Map(e)),Q(e=>go(e)||_l(e),"number",e=>go(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Q(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Q(yl,"URL",e=>e.toString(),e=>new URL(e))];function Xe(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var wo=Xe((e,t)=>_o(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}),El=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),bo=Xe(gl,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=El[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function vo(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var ko=Xe(vo,(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)}),Oo=Xe((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)}),wl=[ko,wo,Oo,bo],So=(e,t)=>{const n=ho(wl,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=ho(Eo,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},Io={};Eo.forEach(e=>{Io[e.annotation]=e});var bl=(e,t,n)=>{if(se(t))switch(t[0]){case"symbol":return wo.untransform(e,t,n);case"class":return ko.untransform(e,t,n);case"custom":return Oo.untransform(e,t,n);case"typed-array":return bo.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=Io[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};b();var be=(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 To(e){if(Je(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Je(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Je(e,"constructor"))throw new Error("constructor is not allowed as a property")}var vl=(e,t)=>{To(t);for(let n=0;n<t.length;n++){const o=t[n];if($e(e))e=be(e,+o);else if(Ae(e)){const r=+o,a=+t[++n]==0?"key":"value",l=be(e,r);switch(a){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[o]}return e},At=(e,t,n)=>{if(To(t),t.length===0)return n(e);let o=e;for(let a=0;a<t.length-1;a++){const l=t[a];if(se(o)){const i=+l;o=o[i]}else if(De(o))o=o[l];else if($e(o)){const i=+l;o=be(o,i)}else if(Ae(o)){if(a===t.length-2)break;const i=+l,c=+t[++a]==0?"key":"value",u=be(o,i);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=t[t.length-1];if(se(o)?o[+r]=n(o[+r]):De(o)&&(o[r]=n(o[r])),$e(o)){const a=be(o,+r),l=n(a);a!==l&&(o.delete(a),o.add(l))}if(Ae(o)){const a=+t[t.length-2],l=be(o,a);switch(+r==0?"key":"value"){case"key":{const i=n(l);o.set(i,o.get(l)),i!==l&&o.delete(l);break}case"value":{o.set(l,n(o.get(l)));break}}}return e};function $t(e,t,n=[]){if(!e)return;if(!se(e)){we(e,(a,l)=>$t(a,t,[...n,...Le(l)]));return}const[o,r]=e;r&&we(r,(a,l)=>{$t(a,t,[...n,...Le(l)])}),t(o,n)}function kl(e,t,n){return $t(t,(o,r)=>{e=At(e,r,a=>bl(a,o,n))}),e}function Ol(e,t){function n(o,r){const a=vl(e,Le(r));o.map(Le).forEach(l=>{e=At(e,l,()=>a)})}if(se(t)){const[o,r]=t;o.forEach(a=>{e=At(e,Le(a),()=>e)}),r&&we(r,n)}else we(t,n);return e}var Sl=(e,t)=>De(e)||se(e)||Ae(e)||$e(e)||vo(e,t);function Il(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function Tl(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,c)=>i.length-c.length));const[a,...l]=r;a.length===0?o=l.map(Dt):n[Dt(a)]=l.map(Dt)}),o?xt(n)?[o]:[o,n]:xt(n)?void 0:n}var Vo=(e,t,n,o,r=[],a=[],l=new Map)=>{var i;const c=hl(e);if(!c){Il(e,r,t);const _=l.get(e);if(_)return o?{transformedValue:null}:_}if(!Sl(e,n)){const _=So(e,n),v=_?{transformedValue:_.value,annotations:[_.type]}:{transformedValue:e};return c||l.set(e,v),v}if(Je(a,e))return{transformedValue:null};const u=So(e,n),d=(i=u==null?void 0:u.value)!=null?i:e,p=se(d)?[]:{},h={};we(d,(_,v)=>{if(v==="__proto__"||v==="constructor"||v==="prototype")throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);const m=Vo(_,t,n,o,[...r,v],[...a,e],l);p[v]=m.transformedValue,se(m.annotations)?h[v]=m.annotations:De(m.annotations)&&we(m.annotations,(g,I)=>{h[yo(v)+"."+I]=g})});const f=xt(h)?{transformedValue:p,annotations:u?[u.type]:void 0}:{transformedValue:p,annotations:u?[u.type,h]:h};return c||l.set(e,f),f};b(),b();function Co(e){return Object.prototype.toString.call(e).slice(8,-1)}function No(e){return Co(e)==="Array"}function Vl(e){if(Co(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Cl(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 Lt(e,t={}){if(No(e))return e.map(r=>Lt(r,t));if(!Vl(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,a)=>{if(No(t.props)&&!t.props.includes(a))return r;const l=e[a],i=Lt(l,t);return Cl(r,a,i,e,t.nonenumerable),r},{})}var L=class{constructor({dedupe:e=!1}={}){this.classRegistry=new nl,this.symbolRegistry=new po(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new sl,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Vo(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=Tl(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=Lt(t);return n!=null&&n.values&&(o=kl(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=Ol(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)}};L.defaultInstance=new L,L.serialize=L.defaultInstance.serialize.bind(L.defaultInstance),L.deserialize=L.defaultInstance.deserialize.bind(L.defaultInstance),L.stringify=L.defaultInstance.stringify.bind(L.defaultInstance),L.parse=L.defaultInstance.parse.bind(L.defaultInstance),L.registerClass=L.defaultInstance.registerClass.bind(L.defaultInstance),L.registerSymbol=L.defaultInstance.registerSymbol.bind(L.defaultInstance),L.registerCustom=L.defaultInstance.registerCustom.bind(L.defaultInstance),L.allowErrorProps=L.defaultInstance.allowErrorProps.bind(L.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 Po;(Po=V).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Po.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Ro;(Ro=V).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Ro.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var xo;(xo=V).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(xo.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Do;(Do=V).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Do.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Ao;(Ao=V).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Ao.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var $o;($o=V).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||($o.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),b(),b(),b(),b(),b(),b(),b();/*!
|
|
1
|
+
(function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,a){"use strict";const ri={class:"action-menu-icon"},ii=["onclick"],ai={key:1},li=["onClick"],ci={class:"dropdown-container"},ui={class:"dropdown"},di=["onclick"],fi=["href"],pi={class:"dropdown-item"},hi=a.defineComponent({__name:"ActionSet",props:{elements:{}},setup(t){const e=a.ref(t.elements),n=a.ref(!1),o=a.ref(null),s=a.ref(!1),r=a.ref(!1);a.onMounted(()=>{i()});const i=()=>{for(const p of e.value)p.type==="dropdown"&&(p.show=!1)},l=()=>{s.value=!0,o.value=setTimeout(()=>{s.value&&(n.value=!0)},500)},c=()=>{s.value=!1,r.value=!1,clearTimeout(o.value),n.value=!1},u=p=>{const d=!e.value[p].show;i(),e.value[p].show=d};return(p,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"open-set":n.value,"hovered-and-closed":r.value},"action-set collapse"]),onMouseover:l,onMouseleave:c},[a.createElementVNode("div",ri,[a.createElementVNode("div",{id:"chevron",onClick:d[0]||(d[0]=f=>r.value=!r.value)},d[1]||(d[1]=[a.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),a.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),d[2]||(d[2]=a.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"action-element",key:f.label},[f.type=="button"?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},a.toDisplayString(f.label),9,ii)):a.createCommentVNode("",!0),f.type=="dropdown"?(a.openBlock(),a.createElementBlock("div",ai,[a.createElementVNode("button",{class:"button-default",onClick:m=>u(h)},a.toDisplayString(f.label),9,li),a.withDirectives(a.createElementVNode("div",ci,[a.createElementVNode("div",ui,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.actions,m=>(a.openBlock(),a.createElementBlock("div",{key:m.label},[m.action!=null?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:m.action,class:"dropdown-item"},a.toDisplayString(m.label),9,di)):m.link!=null?(a.openBlock(),a.createElementBlock("a",{key:1,href:m.link},[a.createElementVNode("button",pi,a.toDisplayString(m.label),1)],8,fi)):a.createCommentVNode("",!0)]))),128))])],512),[[a.vShow,f.show]])])):a.createCommentVNode("",!0)]))),128))],34))}}),Xn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},Zn=Xn(hi,[["__scopeId","data-v-38e7af34"]]),mi={class:"command-palette-header"},gi=["placeholder"],_i={key:0,class:"command-palette-results"},yi=["onClick","onMouseover"],vi={class:"result-title"},wi={class:"result-content"},Ei={key:1,class:"command-palette-no-results"},Qn=a.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(t,{emit:e}){const n=e,o=a.ref(""),s=a.ref(0),r=a.useTemplateRef("input"),i=a.computed(()=>o.value?t.search(o.value).slice(0,t.maxResults):[]);a.watch(()=>t.isOpen,async p=>{var d;p&&(o.value="",s.value=0,await a.nextTick(),(d=r.value)==null||d.focus())}),a.watch(i,()=>{s.value=0});const l=()=>{n("close")},c=p=>{switch(p.key){case"Escape":l();break;case"ArrowDown":p.preventDefault(),i.value.length&&(s.value=(s.value+1)%i.value.length);break;case"ArrowUp":p.preventDefault(),i.value.length&&(s.value=(s.value-1+i.value.length)%i.value.length);break;case"Enter":i.value.length&&s.value>=0&&u(i.value[s.value]);break}},u=p=>{n("select",p),l()};return(p,d)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[p.isOpen?(a.openBlock(),a.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:l},[a.createElementVNode("div",{class:"command-palette",onClick:d[1]||(d[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",mi,[a.withDirectives(a.createElementVNode("input",{ref:"input","onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"command-palette-input",placeholder:p.placeholder,autofocus:"",onKeydown:c},null,40,gi),[[a.vModelText,o.value]])]),i.value.length?(a.openBlock(),a.createElementBlock("div",_i,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["command-palette-result",{selected:h===s.value}]),onClick:m=>u(f),onMouseover:m=>s.value=h},[a.createElementVNode("div",vi,[a.renderSlot(p.$slots,"title",{result:f})]),a.createElementVNode("div",wi,[a.renderSlot(p.$slots,"content",{result:f})])],42,yi))),128))])):o.value&&!i.value.length?(a.openBlock(),a.createElementBlock("div",Ei,[a.renderSlot(p.$slots,"empty",{},()=>[a.createTextVNode(' No results found for "'+a.toDisplayString(o.value)+'" ',1)])])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]),_:3})]))}}),bi=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n};function to(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const eo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ki=Object.prototype.toString,Si=t=>ki.call(t)==="[object Object]",Oi=()=>{},no=Ii();function Ii(){var t,e;return eo&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ti(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:Oi}))):a.ref(e)}function Pe(t){return Array.isArray(t)?t:[t]}function xi(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Vi=eo?window:void 0;function Ci(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ni(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=Pe(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=xi(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>Ci(u)))!=null?c:[Vi].filter(u=>u!=null),Pe(a.toValue(s.value?t[1]:t[0])),Pe(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Si(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return to(n),i}function Re(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function oo(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:oo(n)}}function $i(t){const e=t||window.event,n=e.target;return oo(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const De=new WeakMap;function Pi(t,e=!1){const n=a.shallowRef(e);let o=null,s="";a.watch(Ti(t),l=>{const c=Re(a.toValue(l));if(c){const u=c;if(De.get(u)||De.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Re(a.toValue(t));!l||n.value||(no&&(o=Ni(l,"touchmove",c=>{$i(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Re(a.toValue(t));!l||!n.value||(no&&(o==null||o()),l.style.overflow=s,De.delete(l),n.value=!1)};return to(i),a.computed({get(){return n.value},set(l){l?r():i()}})}function Ri(){let t=!1;const e=a.shallowRef(!1);return(n,o)=>{if(e.value=o.value,t)return;t=!0;const s=Pi(n,o.value);a.watch(e,r=>s.value=r)}}Ri(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Di={class:"aform"},Ai=a.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,o=a.ref(t.data||{}),s=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},r=a.computed({get:()=>t.modelValue.map((i,l)=>a.computed({get(){return i.value},set:c=>{t.modelValue[l].value=c,n("update:modelValue",t.modelValue)}})),set:()=>{}});return(i,l)=>(a.openBlock(),a.createElementBlock("form",Di,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.modelValue,(c,u)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.component),a.mergeProps({key:u,schema:c,modelValue:r.value[u].value,"onUpdate:modelValue":p=>r.value[u].value=p,data:o.value[c.fieldname],readonly:i.readonly},{ref_for:!0},s(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ji=bi(Ai,[["__scopeId","data-v-68845234"]]);var Li=Object.defineProperty,Mi=(t,e,n)=>e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X=(t,e,n)=>Mi(t,typeof e!="symbol"?e+"":e,n);function Bi(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Ui(){const t=Bi();if(t.__xstate__)return t.__xstate__}const zi=t=>{if(typeof window>"u")return;const e=Ui();e&&e.register(t)};class so{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){const n={value:e,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const e=this._current;this._process(e.value),this._current=e.next}this._last=null}}const ro=".",Hi="",io="",Ki="#",Fi="*",ao="xstate.init",Ae="xstate.stop";function Wi(t,e){return{type:`xstate.after.${t}.${e}`}}function je(t,e){return{type:`xstate.done.state.${t}`,output:e}}function Gi(t,e){return{type:`xstate.done.actor.${t}`,output:e,actorId:t}}function Ji(t,e){return{type:`xstate.error.actor.${t}`,error:e,actorId:t}}function lo(t){return{type:ao,input:t}}function ot(t){setTimeout(()=>{throw t})}const Yi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function co(t,e){const n=uo(t),o=uo(e);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(s=>s in o?co(n[s],o[s]):!1)}function Le(t){if(ho(t))return t;const e=[];let n="";for(let o=0;o<t.length;o++){switch(t.charCodeAt(o)){case 92:n+=t[o+1],o++;continue;case 46:e.push(n),n="";continue}n+=t[o]}return e.push(n),e}function uo(t){if(Va(t))return t.value;if(typeof t!="string")return t;const e=Le(t);return qi(e)}function qi(t){if(t.length===1)return t[0];const e={};let n=e;for(let o=0;o<t.length-1;o++)if(o===t.length-2)n[t[o]]=t[o+1];else{const s=n;n={},s[t[o]]=n}return e}function fo(t,e){const n={},o=Object.keys(t);for(let s=0;s<o.length;s++){const r=o[s];n[r]=e(t[r],r,t,s)}return n}function po(t){return ho(t)?t:[t]}function lt(t){return t===void 0?[]:po(t)}function Me(t,e,n,o){return typeof t=="function"?t({context:e,event:n,self:o}):t}function ho(t){return Array.isArray(t)}function Xi(t){return t.type.startsWith("xstate.error.actor")}function Ot(t){return po(t).map(e=>typeof e>"u"||typeof e=="string"?{target:e}:e)}function mo(t){if(!(t===void 0||t===Hi))return lt(t)}function Be(t,e,n){var o,s,r;const i=typeof t=="object",l=i?t:void 0;return{next:(o=i?t.next:t)==null?void 0:o.bind(l),error:(s=i?t.error:e)==null?void 0:s.bind(l),complete:(r=i?t.complete:n)==null?void 0:r.bind(l)}}function go(t,e){return`${e}.${t}`}function Ue(t,e){const n=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return t.implementations.actors[e];const[,o,s]=n,r=t.getStateNodeById(s).config.invoke;return(Array.isArray(r)?r[o]:r).src}function _o(t,e){return`${t.sessionId}.${e}`}let Zi=0;function Qi(t,e){const n=new Map,o=new Map,s=new WeakMap,r=new Set,i={},{clock:l,logger:c}=e,u={schedule:(f,h,m,_,g=Math.random().toString(36).slice(2))=>{const v={source:f,target:h,event:m,delay:_,id:g,startedAt:Date.now()},I=_o(f,g);d._snapshot._scheduledEvents[I]=v;const V=l.setTimeout(()=>{delete i[I],delete d._snapshot._scheduledEvents[I],d._relay(f,h,m)},_);i[I]=V},cancel:(f,h)=>{const m=_o(f,h),_=i[m];delete i[m],delete d._snapshot._scheduledEvents[m],_!==void 0&&l.clearTimeout(_)},cancelAll:f=>{for(const h in d._snapshot._scheduledEvents){const m=d._snapshot._scheduledEvents[h];m.source===f&&u.cancel(f,m.id)}}},p=f=>{if(!r.size)return;const h={...f,rootId:t.sessionId};r.forEach(m=>{var _;return(_=m.next)==null?void 0:_.call(m,h)})},d={_snapshot:{_scheduledEvents:((e==null?void 0:e.snapshot)&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${Zi++}`,_register:(f,h)=>(n.set(f,h),f),_unregister:f=>{n.delete(f.sessionId);const h=s.get(f);h!==void 0&&(o.delete(h),s.delete(f))},get:f=>o.get(f),_set:(f,h)=>{const m=o.get(f);if(m&&m!==h)throw new Error(`Actor with system ID '${f}' already exists.`);o.set(f,h),s.set(h,f)},inspect:f=>{const h=Be(f);return r.add(h),{unsubscribe(){r.delete(h)}}},_sendInspectionEvent:p,_relay:(f,h,m)=>{d._sendInspectionEvent({type:"@xstate.event",sourceRef:f,actorRef:h,event:m}),h._send(m)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...d._snapshot._scheduledEvents}}),start:()=>{const f=d._snapshot._scheduledEvents;d._snapshot._scheduledEvents={};for(const h in f){const{source:m,target:_,event:g,delay:v,id:I}=f[h];u.schedule(m,_,g,v,I)}},_clock:l,_logger:c};return d}let ze=!1;const He=1;let W=function(t){return t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped",t}({});const ta={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class ea{constructor(e,n){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new so(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=W.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...ta,...n},{clock:s,logger:r,parent:i,syncSnapshot:l,id:c,systemId:u,inspect:p}=o;this.system=i?i.system:Qi(this,{clock:s,logger:r}),p&&!i&&this.system.inspect(Be(p)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=(n==null?void 0:n.logger)??this.system._logger,this.clock=(n==null?void 0:n.clock)??this.system._clock,this._parent=i,this._syncSnapshot=l,this.options=o,this.src=o.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:d=>{this._deferred.push(d)},system:this.system,stopChild:d=>{if(d._parent!==this)throw new Error(`Cannot stop child actor ${d.id} of ${this.id} because it is not a child`);d._stop()},emit:d=>{const f=this.eventListeners.get(d.type),h=this.eventListeners.get("*");if(!f&&!h)return;const m=[...f?f.values():[],...h?h.values():[]];for(const _ of m)_(d)},actionExecutor:d=>{const f=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:d.type,params:d.params}}),!d.exec)return;const h=ze;try{ze=!0,d.exec(d.info,d.params)}finally{ze=h}};this._processingStatus===W.Running?f():this._deferred.push(f)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this._systemId=u,this.system._set(u,this)),this._initState((n==null?void 0:n.snapshot)??(n==null?void 0:n.state)),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(e){var n;try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,(n=this.options)==null?void 0:n.input)}catch(o){this._snapshot={status:"error",output:void 0,error:o}}}update(e,n){var o,s;this._snapshot=e;let r;for(;r=this._deferred.shift();)try{r()}catch(i){this._deferred.length=0,this._snapshot={...e,status:"error",error:i}}switch(this._snapshot.status){case"active":for(const i of this.observers)try{(o=i.next)==null||o.call(i,e)}catch(l){ot(l)}break;case"done":for(const i of this.observers)try{(s=i.next)==null||s.call(i,e)}catch(l){ot(l)}this._stopProcedure(),this._complete(),this._doneEvent=Gi(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:e})}subscribe(e,n,o){var s;const r=Be(e,n,o);if(this._processingStatus!==W.Stopped)this.observers.add(r);else switch(this._snapshot.status){case"done":try{(s=r.complete)==null||s.call(r)}catch(i){ot(i)}break;case"error":{const i=this._snapshot.error;if(!r.error)ot(i);else try{r.error(i)}catch(l){ot(l)}break}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,n){let o=this.eventListeners.get(e);o||(o=new Set,this.eventListeners.set(e,o));const s=n.bind(void 0);return o.add(s),{unsubscribe:()=>{o.delete(s)}}}start(){if(this._processingStatus===W.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=W.Running;const e=lo(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let n,o;try{n=this.logic.transition(this._snapshot,e,this._actorScope)}catch(s){o={err:s}}if(o){const{err:s}=o;this._snapshot={...this._snapshot,status:"error",error:s},this._error(s);return}this.update(n,e),e.type===Ae&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===W.Stopped?this:(this.mailbox.clear(),this._processingStatus===W.NotStarted?(this._processingStatus=W.Stopped,this):(this.mailbox.enqueue({type:Ae}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){var e;for(const n of this.observers)try{(e=n.complete)==null||e.call(n)}catch(o){ot(o)}this.observers.clear()}_reportError(e){if(!this.observers.size){this._parent||ot(e);return}let n=!1;for(const o of this.observers){const s=o.error;n||(n=!s);try{s==null||s(e)}catch(r){ot(r)}}this.observers.clear(),n&&ot(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,Ji(this.id,e))}_stopProcedure(){return this._processingStatus!==W.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new so(this._process.bind(this)),this._processingStatus=W.Stopped,this.system._unregister(this),this)}_send(e){this._processingStatus!==W.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){const{devTools:e}=this.options;e&&(typeof e=="function"?e:zi)(this)}toJSON(){return{xstate$$type:He,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[Yi](){return this}getSnapshot(){return this._snapshot}}function Ft(t,...[e]){return new ea(t,e)}function na(t,e,n,o,{sendId:s}){const r=typeof s=="function"?s(n,o):s;return[e,{sendId:r},void 0]}function oa(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e.sendId)})}function sa(t){function e(n,o){}return e.type="xstate.cancel",e.sendId=t,e.resolve=na,e.execute=oa,e}function ra(t,e,n,o,{id:s,systemId:r,src:i,input:l,syncSnapshot:c}){const u=typeof i=="string"?Ue(e.machine,i):i,p=typeof s=="function"?s(n):s;let d,f;return u&&(f=typeof l=="function"?l({context:e.context,event:n.event,self:t.self}):l,d=Ft(u,{id:p,src:i,parent:t.self,syncSnapshot:c,systemId:r,input:f})),[mt(e,{children:{...e.children,[p]:d}}),{id:s,systemId:r,actorRef:d,src:i,input:f},void 0]}function ia(t,{actorRef:e}){e&&t.defer(()=>{e._processingStatus!==W.Stopped&&e.start()})}function aa(...[t,{id:e,systemId:n,input:o,syncSnapshot:s=!1}={}]){function r(i,l){}return r.type="xstate.spawnChild",r.id=e,r.systemId=n,r.src=t,r.input=o,r.syncSnapshot=s,r.resolve=ra,r.execute=ia,r}function la(t,e,n,o,{actorRef:s}){const r=typeof s=="function"?s(n,o):s,i=typeof r=="string"?e.children[r]:r;let l=e.children;return i&&(l={...l},delete l[i.id]),[mt(e,{children:l}),i,void 0]}function ca(t,e){if(e){if(t.system._unregister(e),e._processingStatus!==W.Running){t.stopChild(e);return}t.defer(()=>{t.stopChild(e)})}}function yo(t){function e(n,o){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=la,e.execute=ca,e}function Ke(t,e,n,o){const{machine:s}=o,r=typeof t=="function",i=r?t:s.implementations.guards[typeof t=="string"?t:t.type];if(!r&&!i)throw new Error(`Guard '${typeof t=="string"?t:t.type}' is not implemented.'.`);if(typeof i!="function")return Ke(i,e,n,o);const l={context:e,event:n},c=r||typeof t=="string"?void 0:"params"in t?typeof t.params=="function"?t.params({context:e,event:n}):t.params:void 0;return"check"in i?i.check(o,l,i):i(l,c)}const Fe=t=>t.type==="atomic"||t.type==="final";function It(t){return Object.values(t.states).filter(e=>e.type!=="history")}function Wt(t,e){const n=[];if(e===t)return n;let o=t.parent;for(;o&&o!==e;)n.push(o),o=o.parent;return n}function le(t){const e=new Set(t),n=wo(e);for(const o of e)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))ko(o).forEach(s=>e.add(s));else if(o.type==="parallel"){for(const s of It(o))if(s.type!=="history"&&!e.has(s)){const r=ko(s);for(const i of r)e.add(i)}}for(const o of e){let s=o.parent;for(;s;)e.add(s),s=s.parent}return e}function vo(t,e){const n=e.get(t);if(!n)return{};if(t.type==="compound"){const s=n[0];if(s){if(Fe(s))return s.key}else return{}}const o={};for(const s of n)o[s.key]=vo(s,e);return o}function wo(t){const e=new Map;for(const n of t)e.has(n)||e.set(n,[]),n.parent&&(e.has(n.parent)||e.set(n.parent,[]),e.get(n.parent).push(n));return e}function Eo(t,e){const n=le(e);return vo(t,wo(n))}function We(t,e){return e.type==="compound"?It(e).some(n=>n.type==="final"&&t.has(n)):e.type==="parallel"?It(e).every(n=>We(t,n)):e.type==="final"}const ce=t=>t[0]===Ki;function ua(t,e){return t.transitions.get(e)||[...t.transitions.keys()].filter(n=>{if(n===Fi)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),s=e.split(".");for(let r=0;r<o.length;r++){const i=o[r],l=s[r];if(i==="*")return r===o.length-1;if(i!==l)return!1}return!0}).sort((n,o)=>o.length-n.length).flatMap(n=>t.transitions.get(n))}function da(t){const e=t.config.after;if(!e)return[];const n=o=>{const s=Wi(o,t.id),r=s.type;return t.entry.push(Ma(s,{id:r,delay:o})),t.exit.push(sa(r)),r};return Object.keys(e).flatMap(o=>{const s=e[o],r=typeof s=="string"?{target:s}:s,i=Number.isNaN(+o)?o:+o,l=n(i);return lt(r).map(c=>({...c,event:l,delay:i}))}).map(o=>{const{delay:s}=o;return{...pt(t,o.event,o),delay:s}})}function pt(t,e,n){const o=mo(n.target),s=n.reenter??!1,r=ha(t,o),i={...n,actions:lt(n.actions),guard:n.guard,target:r,source:t,reenter:s,eventType:e,toJSON:()=>({...i,source:`#${t.id}`,target:r?r.map(l=>`#${l.id}`):void 0})};return i}function fa(t){const e=new Map;if(t.config.on)for(const n of Object.keys(t.config.on)){if(n===io)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=t.config.on[n];e.set(n,Ot(o).map(s=>pt(t,n,s)))}if(t.config.onDone){const n=`xstate.done.state.${t.id}`;e.set(n,Ot(t.config.onDone).map(o=>pt(t,n,o)))}for(const n of t.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;e.set(o,Ot(n.onDone).map(s=>pt(t,o,s)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;e.set(o,Ot(n.onError).map(s=>pt(t,o,s)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;e.set(o,Ot(n.onSnapshot).map(s=>pt(t,o,s)))}}for(const n of t.after){let o=e.get(n.eventType);o||(o=[],e.set(n.eventType,o)),o.push(n)}return e}function pa(t,e){const n=typeof e=="string"?t.states[e]:e?t.states[e.target]:void 0;if(!n&&e)throw new Error(`Initial state node "${e}" not found on parent state node #${t.id}`);const o={source:t,actions:!e||typeof e=="string"?[]:lt(e.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${t.id}`,target:n?[`#${n.id}`]:[]})};return o}function ha(t,e){if(e!==void 0)return e.map(n=>{if(typeof n!="string")return n;if(ce(n))return t.machine.getStateNodeById(n);const o=n[0]===ro;if(o&&!t.parent)return ue(t,n.slice(1));const s=o?t.key+n:n;if(t.parent)try{return ue(t.parent,s)}catch(r){throw new Error(`Invalid transition definition for state node '${t.id}':
|
|
2
|
+
${r.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function bo(t){const e=mo(t.config.target);return e?{target:e.map(n=>typeof n=="string"?ue(t.parent,n):n)}:t.parent.initial}function ht(t){return t.type==="history"}function ko(t){const e=So(t);for(const n of e)for(const o of Wt(n,t))e.add(o);return e}function So(t){const e=new Set;function n(o){if(!e.has(o)){if(e.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const s of It(o))n(s)}}return n(t),e}function Tt(t,e){if(ce(e))return t.machine.getStateNodeById(e);if(!t.states)throw new Error(`Unable to retrieve child state '${e}' from '${t.id}'; no child states exist.`);const n=t.states[e];if(!n)throw new Error(`Child state '${e}' does not exist on '${t.id}'`);return n}function ue(t,e){if(typeof e=="string"&&ce(e))try{return t.machine.getStateNodeById(e)}catch{}const n=Le(e).slice();let o=t;for(;n.length;){const s=n.shift();if(!s.length)break;o=Tt(o,s)}return o}function de(t,e){if(typeof e=="string"){const s=t.states[e];if(!s)throw new Error(`State '${e}' does not exist on '${t.id}'`);return[t,s]}const n=Object.keys(e),o=n.map(s=>Tt(t,s)).filter(Boolean);return[t.machine.root,t].concat(o,n.reduce((s,r)=>{const i=Tt(t,r);if(!i)return s;const l=de(i,e[r]);return s.concat(l)},[]))}function ma(t,e,n,o){const s=Tt(t,e).next(n,o);return!s||!s.length?t.next(n,o):s}function ga(t,e,n,o){const s=Object.keys(e),r=Tt(t,s[0]),i=Ge(r,e[s[0]],n,o);return!i||!i.length?t.next(n,o):i}function _a(t,e,n,o){const s=[];for(const r of Object.keys(e)){const i=e[r];if(!i)continue;const l=Tt(t,r),c=Ge(l,i,n,o);c&&s.push(...c)}return s.length?s:t.next(n,o)}function Ge(t,e,n,o){return typeof e=="string"?ma(t,e,n,o):Object.keys(e).length===1?ga(t,e,n,o):_a(t,e,n,o)}function ya(t){return Object.keys(t.states).map(e=>t.states[e]).filter(e=>e.type==="history")}function ct(t,e){let n=t;for(;n.parent&&n.parent!==e;)n=n.parent;return n.parent===e}function va(t,e){const n=new Set(t),o=new Set(e);for(const s of n)if(o.has(s))return!0;for(const s of o)if(n.has(s))return!0;return!1}function Oo(t,e,n){const o=new Set;for(const s of t){let r=!1;const i=new Set;for(const l of o)if(va(Ye([s],e,n),Ye([l],e,n)))if(ct(s.source,l.source))i.add(l);else{r=!0;break}if(!r){for(const l of i)o.delete(l);o.add(s)}}return Array.from(o)}function wa(t){const[e,...n]=t;for(const o of Wt(e,void 0))if(n.every(s=>ct(s,o)))return o}function Je(t,e){if(!t.target)return[];const n=new Set;for(const o of t.target)if(ht(o))if(e[o.id])for(const s of e[o.id])n.add(s);else for(const s of Je(bo(o),e))n.add(s);else n.add(o);return[...n]}function Io(t,e){const n=Je(t,e);if(!n)return;if(!t.reenter&&n.every(s=>s===t.source||ct(s,t.source)))return t.source;const o=wa(n.concat(t.source));if(o)return o;if(!t.reenter)return t.source.machine.root}function Ye(t,e,n){var o;const s=new Set;for(const r of t)if((o=r.target)!=null&&o.length){const i=Io(r,n);r.reenter&&r.source===i&&s.add(i);for(const l of e)ct(l,i)&&s.add(l)}return[...s]}function Ea(t,e){if(t.length!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function qe(t,e,n,o,s,r){if(!t.length)return e;const i=new Set(e._nodes);let l=e.historyValue;const c=Oo(t,i,l);let u=e;s||([u,l]=Oa(u,o,n,c,i,l,r,n.actionExecutor)),u=Vt(u,o,n,c.flatMap(d=>d.actions),r,void 0),u=ka(u,o,n,c,i,r,l,s);const p=[...i];u.status==="done"&&(u=Vt(u,o,n,p.sort((d,f)=>f.order-d.order).flatMap(d=>d.exit),r,void 0));try{return l===e.historyValue&&Ea(e._nodes,i)?u:mt(u,{_nodes:p,historyValue:l})}catch(d){throw d}}function ba(t,e,n,o,s){if(o.output===void 0)return;const r=je(s.id,s.output!==void 0&&s.parent?Me(s.output,t.context,e,n.self):void 0);return Me(o.output,t.context,r,n.self)}function ka(t,e,n,o,s,r,i,l){let c=t;const u=new Set,p=new Set;Sa(o,i,p,u),l&&p.add(t.machine.root);const d=new Set;for(const f of[...u].sort((h,m)=>h.order-m.order)){s.add(f);const h=[];h.push(...f.entry);for(const m of f.invoke)h.push(aa(m.src,{...m,syncSnapshot:!!m.onSnapshot}));if(p.has(f)){const m=f.initial.actions;h.push(...m)}if(c=Vt(c,e,n,h,r,f.invoke.map(m=>m.id)),f.type==="final"){const m=f.parent;let _=(m==null?void 0:m.type)==="parallel"?m:m==null?void 0:m.parent,g=_||f;for((m==null?void 0:m.type)==="compound"&&r.push(je(m.id,f.output!==void 0?Me(f.output,c.context,e,n.self):void 0));(_==null?void 0:_.type)==="parallel"&&!d.has(_)&&We(s,_);)d.add(_),r.push(je(_.id)),g=_,_=_.parent;if(_)continue;c=mt(c,{status:"done",output:ba(c,e,n,c.machine.root,g)})}}return c}function Sa(t,e,n,o){for(const s of t){const r=Io(s,e);for(const l of s.target||[])!ht(l)&&(s.source!==l||s.source!==r||s.reenter)&&(o.add(l),n.add(l)),xt(l,e,n,o);const i=Je(s,e);for(const l of i){const c=Wt(l,r);(r==null?void 0:r.type)==="parallel"&&c.push(r),To(o,e,n,c,!s.source.parent&&s.reenter?void 0:r)}}}function xt(t,e,n,o){var s;if(ht(t))if(e[t.id]){const r=e[t.id];for(const i of r)o.add(i),xt(i,e,n,o);for(const i of r)Xe(i,t.parent,o,e,n)}else{const r=bo(t);for(const i of r.target)o.add(i),r===((s=t.parent)==null?void 0:s.initial)&&n.add(t.parent),xt(i,e,n,o);for(const i of r.target)Xe(i,t.parent,o,e,n)}else if(t.type==="compound"){const[r]=t.initial.target;ht(r)||(o.add(r),n.add(r)),xt(r,e,n,o),Xe(r,t,o,e,n)}else if(t.type==="parallel")for(const r of It(t).filter(i=>!ht(i)))[...o].some(i=>ct(i,r))||(ht(r)||(o.add(r),n.add(r)),xt(r,e,n,o))}function To(t,e,n,o,s){for(const r of o)if((!s||ct(r,s))&&t.add(r),r.type==="parallel")for(const i of It(r).filter(l=>!ht(l)))[...t].some(l=>ct(l,i))||(t.add(i),xt(i,e,n,t))}function Xe(t,e,n,o,s){To(n,o,s,Wt(t,e))}function Oa(t,e,n,o,s,r,i,l){let c=t;const u=Ye(o,s,r);u.sort((d,f)=>f.order-d.order);let p;for(const d of u)for(const f of ya(d)){let h;f.history==="deep"?h=m=>Fe(m)&&ct(m,d):h=m=>m.parent===d,p??(p={...r}),p[f.id]=Array.from(s).filter(h)}for(const d of u)c=Vt(c,e,n,[...d.exit,...d.invoke.map(f=>yo(f.id))],i,void 0),s.delete(d);return[c,p||r]}function Ia(t,e){return t.implementations.actions[e]}function xo(t,e,n,o,s,r){const{machine:i}=t;let l=t;for(const c of o){const u=typeof c=="function",p=u?c:Ia(i,typeof c=="string"?c:c.type),d={context:l.context,event:e,self:n.self,system:n.system},f=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:l.context,event:e}):c.params:void 0;if(!p||!("resolve"in p)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:d,params:f,exec:p});continue}const h=p,[m,_,g]=h.resolve(n,l,d,f,p,s);l=m,"retryResolve"in h&&(r==null||r.push([h,_])),"execute"in h&&n.actionExecutor({type:h.type,info:d,params:_,exec:h.execute.bind(null,n,_)}),g&&(l=xo(l,e,n,g,s,r))}return l}function Vt(t,e,n,o,s,r){const i=r?[]:void 0,l=xo(t,e,n,o,{internalQueue:s,deferredActorIds:r},i);return i==null||i.forEach(([c,u])=>{c.retryResolve(n,l,u)}),l}function Ze(t,e,n,o){let s=t;const r=[];function i(u,p,d){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:p,snapshot:u,_transitions:d}),r.push(u)}if(e.type===Ae)return s=mt(Vo(s,e,n),{status:"stopped"}),i(s,e,[]),{snapshot:s,microstates:r};let l=e;if(l.type!==ao){const u=l,p=Xi(u),d=Co(u,s);if(p&&!d.length)return s=mt(t,{status:"error",error:u.error}),i(s,u,[]),{snapshot:s,microstates:r};s=qe(d,t,n,l,!1,o),i(s,u,d)}let c=!0;for(;s.status==="active";){let u=c?Ta(s,l):[];const p=u.length?s:void 0;if(!u.length){if(!o.length)break;l=o.shift(),u=Co(l,s)}s=qe(u,s,n,l,!1,o),c=s!==p,i(s,l,u)}return s.status!=="active"&&Vo(s,l,n),{snapshot:s,microstates:r}}function Vo(t,e,n){return Vt(t,e,n,Object.values(t.children).map(o=>yo(o)),[],void 0)}function Co(t,e){return e.machine.getTransitionData(e,t)}function Ta(t,e){const n=new Set,o=t._nodes.filter(Fe);for(const s of o)t:for(const r of[s].concat(Wt(s,void 0)))if(r.always){for(const i of r.always)if(i.guard===void 0||Ke(i.guard,t.context,e,t)){n.add(i);break t}}return Oo(Array.from(n),new Set(t._nodes),t.historyValue)}function xa(t,e){const n=le(de(t,e));return Eo(t,[...n])}function Va(t){return!!t&&typeof t=="object"&&"machine"in t&&"value"in t}const Ca=function(t){return co(t,this.value)},Na=function(t){return this.tags.has(t)},$a=function(t){const e=this.machine.getTransitionData(this,t);return!!(e!=null&&e.length)&&e.some(n=>n.target!==void 0||n.actions.length)},Pa=function(){const{_nodes:t,tags:e,machine:n,getMeta:o,toJSON:s,can:r,hasTag:i,matches:l,...c}=this;return{...c,tags:Array.from(e)}},Ra=function(){return this._nodes.reduce((t,e)=>(e.meta!==void 0&&(t[e.id]=e.meta),t),{})};function fe(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:Eo(e.root,t._nodes),tags:new Set(t._nodes.flatMap(n=>n.tags)),children:t.children,historyValue:t.historyValue||{},matches:Ca,hasTag:Na,can:$a,getMeta:Ra,toJSON:Pa}}function mt(t,e={}){return fe({...t,...e},t.machine)}function Da(t){if(typeof t!="object"||t===null)return{};const e={};for(const n in t){const o=t[n];Array.isArray(o)&&(e[n]=o.map(s=>({id:s.id})))}return e}function Aa(t,e){const{_nodes:n,tags:o,machine:s,children:r,context:i,can:l,hasTag:c,matches:u,getMeta:p,toJSON:d,...f}=t,h={};for(const m in r){const _=r[m];h[m]={snapshot:_.getPersistedSnapshot(e),src:_.src,systemId:_._systemId,syncSnapshot:_._syncSnapshot}}return{...f,context:No(i),children:h,historyValue:Da(f.historyValue)}}function No(t){let e;for(const n in t){const o=t[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)e??(e=Array.isArray(t)?t.slice():{...t}),e[n]={xstate$$type:He,id:o.id};else{const s=No(o);s!==o&&(e??(e=Array.isArray(t)?t.slice():{...t}),e[n]=s)}}return e??t}function ja(t,e,n,o,{event:s,id:r,delay:i},{internalQueue:l}){const c=e.machine.implementations.delays;if(typeof s=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${s}" }) instead`);const u=typeof s=="function"?s(n,o):s;let p;if(typeof i=="string"){const d=c&&c[i];p=typeof d=="function"?d(n,o):d}else p=typeof i=="function"?i(n,o):i;return typeof p!="number"&&l.push(u),[e,{event:u,id:r,delay:p},void 0]}function La(t,e){const{event:n,delay:o,id:s}=e;if(typeof o=="number"){t.defer(()=>{const r=t.self;t.system.scheduler.schedule(r,r,n,o,s)});return}}function Ma(t,e){function n(o,s){}return n.type="xstate.raise",n.event=t,n.id=e==null?void 0:e.id,n.delay=e==null?void 0:e.delay,n.resolve=ja,n.execute=La,n}function Ba(t,{machine:e,context:n},o,s){const r=(i,l)=>{if(typeof i=="string"){const c=Ue(e,i);if(!c)throw new Error(`Actor logic '${i}' not implemented in machine '${e.id}'`);const u=Ft(c,{id:l==null?void 0:l.id,parent:t.self,syncSnapshot:l==null?void 0:l.syncSnapshot,input:typeof(l==null?void 0:l.input)=="function"?l.input({context:n,event:o,self:t.self}):l==null?void 0:l.input,src:i,systemId:l==null?void 0:l.systemId});return s[u.id]=u,u}else return Ft(i,{id:l==null?void 0:l.id,parent:t.self,syncSnapshot:l==null?void 0:l.syncSnapshot,input:l==null?void 0:l.input,src:i,systemId:l==null?void 0:l.systemId})};return(i,l)=>{const c=r(i,l);return s[c.id]=c,t.defer(()=>{c._processingStatus!==W.Stopped&&c.start()}),c}}function Ua(t,e,n,o,{assignment:s}){if(!e.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const r={},i={context:e.context,event:n.event,spawn:Ba(t,e,n.event,r),self:t.self,system:t.system};let l={};if(typeof s=="function")l=s(i,o);else for(const u of Object.keys(s)){const p=s[u];l[u]=typeof p=="function"?p(i,o):p}const c=Object.assign({},e.context,l);return[mt(e,{context:c,children:Object.keys(r).length?{...e.children,...r}:e.children}),void 0,void 0]}function za(t){function e(n,o){}return e.type="xstate.assign",e.assignment=t,e.resolve=Ua,e}const $o=new WeakMap;function Ct(t,e,n){let o=$o.get(t);return o?e in o||(o[e]=n()):(o={[e]:n()},$o.set(t,o)),o[e]}const Ha={},Gt=t=>typeof t=="string"?{type:t}:typeof t=="function"?"resolve"in t?{type:t.type}:{type:t.name}:t;let Po=class oi{constructor(e,n){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(ro),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?fo(this.config.states,(o,s)=>new oi(o,{_parent:this,_key:s,_machine:this.machine})):Ha,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=lt(this.config.entry).slice(),this.exit=lt(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=lt(e.tags).slice()}_initialize(){this.transitions=fa(this),this.config.always&&(this.always=Ot(this.config.always).map(e=>pt(this,io,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(Gt),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(Gt),eventType:null})}:void 0,history:this.history,states:fo(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(Gt)})),entry:this.entry.map(Gt),exit:this.exit.map(Gt),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return Ct(this,"invoke",()=>lt(this.config.invoke).map((e,n)=>{const{src:o,systemId:s}=e,r=e.id??go(this.id,n),i=typeof o=="string"?o:`xstate.invoke.${go(this.id,n)}`;return{...e,src:i,id:r,systemId:s,toJSON(){const{onDone:l,onError:c,...u}=e;return{...u,type:"xstate.invoke",src:i,id:r}}}}))}get on(){return Ct(this,"on",()=>[...this.transitions].flatMap(([e,n])=>n.map(o=>[e,o])).reduce((e,[n,o])=>(e[n]=e[n]||[],e[n].push(o),e),{}))}get after(){return Ct(this,"delayedTransitions",()=>da(this))}get initial(){return Ct(this,"initial",()=>pa(this,this.config.initial))}next(e,n){const o=n.type,s=[];let r;const i=Ct(this,`candidates-${o}`,()=>ua(this,o));for(const l of i){const{guard:c}=l,u=e.context;let p=!1;try{p=!c||Ke(c,u,n,e)}catch(d){const f=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${f?`'${f}' `:""}in transition for event '${o}' in state node '${this.id}':
|
|
3
|
+
${d.message}`)}if(p){s.push(...l.actions),r=l;break}}return r?[r]:void 0}get events(){return Ct(this,"events",()=>{const{states:e}=this,n=new Set(this.ownEvents);if(e)for(const o of Object.keys(e)){const s=e[o];if(s.states)for(const r of s.events)n.add(`${r}`)}return Array.from(n)})}get ownEvents(){const e=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(e)}};const Ka="#";let Fa=class si{constructor(e,n){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:(n==null?void 0:n.actors)??{},actions:(n==null?void 0:n.actions)??{},delays:(n==null?void 0:n.delays)??{},guards:(n==null?void 0:n.guards)??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new Po(e,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(e){const{actions:n,guards:o,actors:s,delays:r}=this.implementations;return new si(this.config,{actions:{...n,...e.actions},guards:{...o,...e.guards},actors:{...s,...e.actors},delays:{...r,...e.delays}})}resolveState(e){const n=xa(this.root,e.value),o=le(de(this.root,n));return fe({_nodes:[...o],context:e.context||{},children:{},status:We(o,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,n,o){return Ze(e,n,o,[]).snapshot}microstep(e,n,o){return Ze(e,n,o,[]).microstates}getTransitionData(e,n){return Ge(this.root,e.value,e,n)||[]}getPreInitialState(e,n,o){const{context:s}=this.config,r=fe({context:typeof s!="function"&&s?s:{},_nodes:[this.root],children:{},status:"active"},this);return typeof s=="function"?Vt(r,n,e,[za(({spawn:i,event:l,self:c})=>s({spawn:i,input:l.input,self:c}))],o,void 0):r}getInitialSnapshot(e,n){const o=lo(n),s=[],r=this.getPreInitialState(e,o,s),i=qe([{target:[...So(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],r,e,o,!0,s),{snapshot:l}=Ze(i,o,e,s);return l}start(e){Object.values(e.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(e){const n=Le(e),o=n.slice(1),s=ce(n[0])?n[0].slice(Ka.length):n[0],r=this.idMap.get(s);if(!r)throw new Error(`Child state node '#${s}' does not exist on machine '${this.id}'`);return ue(r,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,n){return Aa(e,n)}restoreSnapshot(e,n){const o={},s=e.children;Object.keys(s).forEach(d=>{const f=s[d],h=f.snapshot,m=f.src,_=typeof m=="string"?Ue(this,m):m;if(!_)return;const g=Ft(_,{id:d,parent:n.self,syncSnapshot:f.syncSnapshot,snapshot:h,src:m,systemId:f.systemId});o[d]=g});function r(d,f){if(f instanceof Po)return f;try{return d.machine.getStateNodeById(f.id)}catch{}}function i(d,f){if(!f||typeof f!="object")return{};const h={};for(const m in f){const _=f[m];for(const g of _){const v=r(d,g);v&&(h[m]??(h[m]=[]),h[m].push(v))}}return h}const l=i(this.root,e.historyValue),c=fe({...e,children:o,_nodes:Array.from(le(de(this.root,e.value))),historyValue:l},this),u=new Set;function p(d,f){if(!u.has(d)){u.add(d);for(const h in d){const m=d[h];if(m&&typeof m=="object"){if("xstate$$type"in m&&m.xstate$$type===He){d[h]=f[m.id];continue}p(m,f)}}}}return p(c.context,o),c}};function Wa(t,e){return new Fa(t,e)}function Qe(t){this.message=t||""}Qe.prototype=Object.create(Error.prototype,{constructor:{value:Qe},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Ro=class Ne{constructor(e,n){if(X(this,"name","Stonecrop"),X(this,"registry"),X(this,"store"),Ne._root)return Ne._root;Ne._root=this,this.registry=e,this.store=n}setup(e){this.getMeta(e.doctype)}async getMeta(e){if(!this.registry.getMeta)throw new Qe(`getMeta function is not implemented for ${e} in the registry`);return await this.registry.getMeta(e)}async getRecords(e,n){this.store.$patch({records:[]});const o=await(await fetch(`/${e.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(e,n){this.store.$patch({record:{}});const o=await(await fetch(`/${e.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(e,n,o){var s;const r=this.registry.registry[e.slug],i=(s=r.actions)==null?void 0:s.get(n),l=r.workflow;if(l){const c=Wa(l),u=Ft(c);u.start(),u.send({type:n,id:o}),i&&i.length>0&&i.forEach(p=>{new Function(p)(o)})}}};X(Ro,"_root");let Ga=Ro;var Ja=Object.create,Do=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,qa=Object.getPrototypeOf,Xa=Object.prototype.hasOwnProperty,Za=(t,e)=>function(){return t&&(e=(0,t[tn(t)[0]])(t=0)),e},Qa=(t,e)=>function(){return e||(0,t[tn(t)[0]])((e={exports:{}}).exports,e),e.exports},tl=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of tn(e))!Xa.call(t,s)&&s!==n&&Do(t,s,{get:()=>e[s],enumerable:!(o=Ya(e,s))||o.enumerable});return t},el=(t,e,n)=>(n=t!=null?Ja(qa(t)):{},tl(Do(n,"default",{value:t,enumerable:!0}),t)),Jt=Za({"../../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"(){}}),nl=Qa({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,e){Jt(),e.exports=o;function n(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function o(r){if(r=r||{},r.circles)return s(r);const i=new Map;if(i.set(Date,d=>new Date(d)),i.set(Map,(d,f)=>new Map(c(Array.from(d),f))),i.set(Set,(d,f)=>new Set(c(Array.from(d),f))),r.constructorHandlers)for(const d of r.constructorHandlers)i.set(d[0],d[1]);let l=null;return r.proto?p:u;function c(d,f){const h=Object.keys(d),m=new Array(h.length);for(let _=0;_<h.length;_++){const g=h[_],v=d[g];typeof v!="object"||v===null?m[g]=v:v.constructor!==Object&&(l=i.get(v.constructor))?m[g]=l(v,f):ArrayBuffer.isView(v)?m[g]=n(v):m[g]=f(v)}return m}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 f={};for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const m=d[h];typeof m!="object"||m===null?f[h]=m:m.constructor!==Object&&(l=i.get(m.constructor))?f[h]=l(m,u):ArrayBuffer.isView(m)?f[h]=n(m):f[h]=u(m)}return f}function p(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,p);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,p);const f={};for(const h in d){const m=d[h];typeof m!="object"||m===null?f[h]=m:m.constructor!==Object&&(l=i.get(m.constructor))?f[h]=l(m,p):ArrayBuffer.isView(m)?f[h]=n(m):f[h]=p(m)}return f}}function s(r){const i=[],l=[],c=new Map;if(c.set(Date,h=>new Date(h)),c.set(Map,(h,m)=>new Map(p(Array.from(h),m))),c.set(Set,(h,m)=>new Set(p(Array.from(h),m))),r.constructorHandlers)for(const h of r.constructorHandlers)c.set(h[0],h[1]);let u=null;return r.proto?f:d;function p(h,m){const _=Object.keys(h),g=new Array(_.length);for(let v=0;v<_.length;v++){const I=_[v],V=h[I];if(typeof V!="object"||V===null)g[I]=V;else if(V.constructor!==Object&&(u=c.get(V.constructor)))g[I]=u(V,m);else if(ArrayBuffer.isView(V))g[I]=n(V);else{const P=i.indexOf(V);P!==-1?g[I]=l[P]:g[I]=m(V)}}return g}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return p(h,d);if(h.constructor!==Object&&(u=c.get(h.constructor)))return u(h,d);const m={};i.push(h),l.push(m);for(const _ in h){if(Object.hasOwnProperty.call(h,_)===!1)continue;const g=h[_];if(typeof g!="object"||g===null)m[_]=g;else if(g.constructor!==Object&&(u=c.get(g.constructor)))m[_]=u(g,d);else if(ArrayBuffer.isView(g))m[_]=n(g);else{const v=i.indexOf(g);v!==-1?m[_]=l[v]:m[_]=d(g)}}return i.pop(),l.pop(),m}function f(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return p(h,f);if(h.constructor!==Object&&(u=c.get(h.constructor)))return u(h,f);const m={};i.push(h),l.push(m);for(const _ in h){const g=h[_];if(typeof g!="object"||g===null)m[_]=g;else if(g.constructor!==Object&&(u=c.get(g.constructor)))m[_]=u(g,f);else if(ArrayBuffer.isView(g))m[_]=n(g);else{const v=i.indexOf(g);v!==-1?m[_]=l[v]:m[_]=f(g)}}return i.pop(),l.pop(),m}}}});Jt(),Jt(),Jt();var Ao=typeof navigator<"u",x=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof x.chrome<"u"&&x.chrome.devtools,Ao&&(x.self,x.top);var jo;typeof navigator<"u"&&((jo=navigator.userAgent)==null||jo.toLowerCase().includes("electron")),Jt();var ol=el(nl()),sl=/(?:^|[-_/])(\w)/g;function rl(t,e){return e?e.toUpperCase():""}function il(t){return t&&`${t}`.replace(sl,rl)}function al(t,e){let n=t.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${e}`)&&(n=n.replace(`/index${e}`,e));const o=n.lastIndexOf("/"),s=n.substring(o+1);{const r=s.lastIndexOf(e);return s.substring(0,r)}}var Lo=(0,ol.default)({circles:!0});const ll={trailing:!0};function Nt(t,e=25,n={}){if(n={...ll,...n},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let o,s,r=[],i,l;const c=(u,p)=>(i=cl(t,u,p),i.finally(()=>{if(i=null,n.trailing&&l&&!s){const d=c(u,l);return l=null,d}}),i);return function(...u){return i?(n.trailing&&(l=u),i):new Promise(p=>{const d=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const f=n.leading?o:c(this,u);for(const h of r)h(f);r=[]},e),d?(o=c(this,u),p(o)):r.push(p)})}}async function cl(t,e,n){return await t.apply(e,n)}function en(t,e={},n){for(const o in t){const s=t[o],r=n?`${n}:${o}`:o;typeof s=="object"&&s!==null?en(s,e,r):typeof s=="function"&&(e[r]=s)}return e}const ul={run:t=>t()},dl=()=>ul,Mo=typeof console.createTask<"u"?console.createTask:dl;function fl(t,e){const n=e.shift(),o=Mo(n);return t.reduce((s,r)=>s.then(()=>o.run(()=>r(...e))),Promise.resolve())}function pl(t,e){const n=e.shift(),o=Mo(n);return Promise.all(t.map(s=>o.run(()=>s(...e))))}function nn(t,e){for(const n of[...t])n(e)}class hl{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,o={}){if(!e||typeof n!="function")return()=>{};const s=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!o.allowDeprecated){let i=r.message;i||(i=`${s} hook has been deprecated`+(r.to?`, please use ${r.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:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let o,s=(...r)=>(typeof o=="function"&&o(),o=void 0,s=void 0,n(...r));return o=this.hook(e,s),o}removeHook(e,n){if(this._hooks[e]){const o=this._hooks[e].indexOf(n);o!==-1&&this._hooks[e].splice(o,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const o=this._hooks[e]||[];delete this._hooks[e];for(const s of o)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=en(e),o=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of o.splice(0,o.length))s()}}removeHooks(e){const n=en(e);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(fl,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(pl,e,...n)}callHookWith(e,n,...o){const s=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&nn(this._before,s);const r=e(n in this._hooks?[...this._hooks[n]]:[],o);return r instanceof Promise?r.finally(()=>{this._after&&s&&nn(this._after,s)}):(this._after&&s&&nn(this._after,s),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Bo(){return new hl}var ml=Object.create,Uo=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,on=Object.getOwnPropertyNames,_l=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty,vl=(t,e)=>function(){return t&&(e=(0,t[on(t)[0]])(t=0)),e},zo=(t,e)=>function(){return e||(0,t[on(t)[0]])((e={exports:{}}).exports,e),e.exports},wl=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of on(e))!yl.call(t,s)&&s!==n&&Uo(t,s,{get:()=>e[s],enumerable:!(o=gl(e,s))||o.enumerable});return t},El=(t,e,n)=>(n=t!=null?ml(_l(t)):{},wl(Uo(n,"default",{value:t,enumerable:!0}),t)),b=vl({"../../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"(){}}),bl=zo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,e){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"},s=["်","ް"],r={"ာ":"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(""),p=[".","!","~","*","'","(",")"].join(""),d=function(_,g){var v="-",I="",V="",P=!0,R={},Y,k,j,T,w,S,C,D,G,U,$,F,y,E,O="";if(typeof _!="string")return"";if(typeof g=="string"&&(v=g),C=l.en,D=i.en,typeof g=="object"){Y=g.maintainCase||!1,R=g.custom&&typeof g.custom=="object"?g.custom:R,j=+g.truncate>1&&g.truncate||!1,T=g.uric||!1,w=g.uricNoSlash||!1,S=g.mark||!1,P=!(g.symbols===!1||g.lang===!1),v=g.separator||v,T&&(O+=c),w&&(O+=u),S&&(O+=p),C=g.lang&&l[g.lang]&&P?l[g.lang]:P?l.en:{},D=g.lang&&i[g.lang]?i[g.lang]:g.lang===!1||g.lang===!0?{}:i.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(N){R[N+""]=N+""}),k=!0):k=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(N){R[N+""]=N+""}),Object.keys(R).forEach(function(N){var L;N.length>1?L=new RegExp("\\b"+h(N)+"\\b","gi"):L=new RegExp(h(N),"gi"),_=_.replace(L,R[N])});for($ in R)O+=$}for(O+=v,O=h(O),_=_.replace(/(^\s+|\s+$)/g,""),y=!1,E=!1,U=0,F=_.length;U<F;U++)$=_[U],m($,R)?y=!1:D[$]?($=y&&D[$].match(/[A-Za-z0-9]/)?" "+D[$]:D[$],y=!1):$ in o?(U+1<F&&s.indexOf(_[U+1])>=0?(V+=$,$=""):E===!0?($=r[V]+o[$],V=""):$=y&&o[$].match(/[A-Za-z0-9]/)?" "+o[$]:o[$],y=!1,E=!1):$ in r?(V+=$,$="",U===F-1&&($=r[V]),E=!0):C[$]&&!(T&&c.indexOf($)!==-1)&&!(w&&u.indexOf($)!==-1)?($=y||I.substr(-1).match(/[A-Za-z0-9]/)?v+C[$]:C[$],$+=_[U+1]!==void 0&&_[U+1].match(/[A-Za-z0-9]/)?v:"",y=!0):(E===!0?($=r[V]+$,V="",E=!1):y&&(/[A-Za-z0-9]/.test($)||I.substr(-1).match(/A-Za-z0-9]/))&&($=" "+$),y=!1),I+=$.replace(new RegExp("[^\\w\\s"+O+"_-]","g"),v);return k&&(I=I.replace(/(\w)(\S*)/g,function(N,L,H){var St=L.toUpperCase()+(H!==null?H:"");return Object.keys(R).indexOf(St.toLowerCase())<0?St:St.toLowerCase()})),I=I.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),j&&I.length>j&&(G=I.charAt(j)===v,I=I.slice(0,j),G||(I=I.slice(0,I.lastIndexOf(v)))),!Y&&!k&&(I=I.toLowerCase()),I},f=function(_){return function(g){return d(g,_)}},h=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},m=function(_,g){for(var v in g)if(g[v]===_)return!0};if(typeof e<"u"&&e.exports)e.exports=d,e.exports.createSlug=f;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=f}catch{}}(t)}}),kl=zo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,e){b(),e.exports=bl()}});b(),b(),b(),b(),b(),b(),b(),b();function Sl(t){var e;const n=t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name;return n==="index"&&(e=t.__file)!=null&&e.endsWith("index.vue")?"":n}function Ol(t){const e=t.__file;if(e)return il(al(e,".vue"))}function Ho(t,e){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=e,e}function sn(t){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Ko(t){var e,n;const o=(e=t.subTree)==null?void 0:e.type,s=sn(t);return s?((n=s==null?void 0:s.types)==null?void 0:n.Fragment)===o:!1}function pe(t){var e,n,o;const s=Sl((t==null?void 0:t.type)||{});if(s)return s;if((t==null?void 0:t.root)===t)return"Root";for(const i in(n=(e=t.parent)==null?void 0:e.type)==null?void 0:n.components)if(t.parent.type.components[i]===(t==null?void 0:t.type))return Ho(t,i);for(const i in(o=t.appContext)==null?void 0:o.components)if(t.appContext.components[i]===(t==null?void 0:t.type))return Ho(t,i);return Ol((t==null?void 0:t.type)||{})||"Anonymous Component"}function Il(t){var e,n,o;const s=(o=(n=(e=t==null?void 0:t.appContext)==null?void 0:e.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,r=t===(t==null?void 0:t.root)?"root":t.uid;return`${s}:${r}`}function rn(t,e){return e=e||`${t.id}:root`,t.instanceMap.get(e)||t.instanceMap.get(":root")}function Tl(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var he;function xl(t){return he||(he=document.createRange()),he.selectNode(t),he.getBoundingClientRect()}function Vl(t){const e=Tl();if(!t.children)return e;for(let n=0,o=t.children.length;n<o;n++){const s=t.children[n];let r;if(s.component)r=gt(s.component);else if(s.el){const i=s.el;i.nodeType===1||i.getBoundingClientRect?r=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(r=xl(i))}r&&Cl(e,r)}return e}function Cl(t,e){return(!t.top||e.top<t.top)&&(t.top=e.top),(!t.bottom||e.bottom>t.bottom)&&(t.bottom=e.bottom),(!t.left||e.left<t.left)&&(t.left=e.left),(!t.right||e.right>t.right)&&(t.right=e.right),t}var Fo={top:0,left:0,right:0,bottom:0,width:0,height:0};function gt(t){const e=t.subTree.el;return typeof window>"u"?Fo:Ko(t)?Vl(t.subTree):(e==null?void 0:e.nodeType)===1?e==null?void 0:e.getBoundingClientRect():t.subTree.component?gt(t.subTree.component):Fo}b();function an(t){return Ko(t)?Nl(t.subTree):t.subTree?[t.subTree.el]:[]}function Nl(t){if(!t.children)return[];const e=[];return t.children.forEach(n=>{n.component?e.push(...an(n.component)):n!=null&&n.el&&e.push(n.el)}),e}var Wo="__vue-devtools-component-inspector__",Go="__vue-devtools-component-inspector__card__",Jo="__vue-devtools-component-inspector__name__",Yo="__vue-devtools-component-inspector__indicator__",qo={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},$l={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)"},Pl={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function $t(){return document.getElementById(Wo)}function Rl(){return document.getElementById(Go)}function Dl(){return document.getElementById(Yo)}function Al(){return document.getElementById(Jo)}function ln(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function cn(t){var e;const n=document.createElement("div");n.id=(e=t.elementId)!=null?e:Wo,Object.assign(n.style,{...qo,...ln(t.bounds),...t.style});const o=document.createElement("span");o.id=Go,Object.assign(o.style,{...$l,top:t.bounds.top<35?0:"-35px"});const s=document.createElement("span");s.id=Jo,s.innerHTML=`<${t.name}> `;const r=document.createElement("i");return r.id=Yo,r.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(r.style,Pl),o.appendChild(s),o.appendChild(r),n.appendChild(o),document.body.appendChild(n),n}function un(t){const e=$t(),n=Rl(),o=Al(),s=Dl();e&&(Object.assign(e.style,{...qo,...ln(t.bounds)}),Object.assign(n.style,{top:t.bounds.top<35?0:"-35px"}),o.innerHTML=`<${t.name}> `,s.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function jl(t){const e=gt(t);if(!e.width&&!e.height)return;const n=pe(t);$t()?un({bounds:e,name:n}):cn({bounds:e,name:n})}function Xo(){const t=$t();t&&(t.style.display="none")}var dn=null;function fn(t){const e=t.target;if(e){const n=e.__vueParentComponent;if(n&&(dn=n,n.vnode.el)){const o=gt(n),s=pe(n);$t()?un({bounds:o,name:s}):cn({bounds:o,name:s})}}}function Ll(t,e){if(t.preventDefault(),t.stopPropagation(),dn){const n=Il(dn);e(n)}}var me=null;function Ml(){Xo(),window.removeEventListener("mouseover",fn),window.removeEventListener("click",me,!0),me=null}function Bl(){return window.addEventListener("mouseover",fn),new Promise(t=>{function e(n){n.preventDefault(),n.stopPropagation(),Ll(n,o=>{window.removeEventListener("click",e,!0),me=null,window.removeEventListener("mouseover",fn);const s=$t();s&&(s.style.display="none"),t(JSON.stringify({id:o}))})}me=e,window.addEventListener("click",e,!0)})}function Ul(t){const e=rn(K.value,t.id);if(e){const[n]=an(e);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=gt(e),s=document.createElement("div"),r={...ln(o),position:"absolute"};Object.assign(s.style,r),document.body.appendChild(s),s.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(s)},2e3)}setTimeout(()=>{const o=gt(e);if(o.width||o.height){const s=pe(e),r=$t();r?un({...t,name:s,bounds:o}):cn({...t,name:s,bounds:o}),setTimeout(()=>{r&&(r.style.display="none")},1500)}},1200)}}b();var Zo;(Zo=x).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(Zo.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function zl(t){let e=0;const n=setInterval(()=>{x.__VUE_INSPECTOR__&&(clearInterval(n),e+=30,t()),e>=5e3&&clearInterval(n)},30)}function Hl(){const t=x.__VUE_INSPECTOR__,e=t.openInEditor;t.openInEditor=async(...n)=>{t.disable(),e(...n)}}function Kl(){return new Promise(t=>{function e(){Hl(),t(x.__VUE_INSPECTOR__)}x.__VUE_INSPECTOR__?e():zl(()=>{e()})})}b(),b();function Fl(t){return!!(t&&t.__v_isReadonly)}function Qo(t){return Fl(t)?Qo(t.__v_raw):!!(t&&t.__v_isReactive)}function pn(t){return!!(t&&t.__v_isRef===!0)}function Yt(t){const e=t&&t.__v_raw;return e?Yt(e):t}var Wl=class{constructor(){this.refEditor=new Gl}set(t,e,n,o){const s=Array.isArray(e)?e:e.split(".");for(;s.length>1;){const l=s.shift();t instanceof Map?t=t.get(l):t instanceof Set?t=Array.from(t.values())[l]:t=t[l],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const r=s[0],i=this.refEditor.get(t)[r];o?o(t,r,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):t[r]=n}get(t,e){const n=Array.isArray(e)?e:e.split(".");for(let o=0;o<n.length;o++)if(t instanceof Map?t=t.get(n[o]):t=t[n[o]],this.refEditor.isRef(t)&&(t=this.refEditor.get(t)),!t)return;return t}has(t,e,n=!1){if(typeof t>"u")return!1;const o=Array.isArray(e)?e.slice():e.split("."),s=n?2:1;for(;t&&o.length>s;){const r=o.shift();t=t[r],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,o[0])}createDefaultSetCallback(t){return(e,n,o)=>{if((t.remove||t.newKey)&&(Array.isArray(e)?e.splice(n,1):Yt(e)instanceof Map?e.delete(n):Yt(e)instanceof Set?e.delete(Array.from(e.values())[n]):Reflect.deleteProperty(e,n)),!t.remove){const s=e[t.newKey||n];this.refEditor.isRef(s)?this.refEditor.set(s,o):Yt(e)instanceof Map?e.set(t.newKey||n,o):Yt(e)instanceof Set?e.add(o):e[t.newKey||n]=o}}}},Gl=class{set(t,e){if(pn(t))t.value=e;else{if(t instanceof Set&&Array.isArray(e)){t.clear(),e.forEach(s=>t.add(s));return}const n=Object.keys(e);if(t instanceof Map){const s=new Set(t.keys());n.forEach(r=>{t.set(r,Reflect.get(e,r)),s.delete(r)}),s.forEach(r=>t.delete(r));return}const o=new Set(Object.keys(t));n.forEach(s=>{Reflect.set(t,s,Reflect.get(e,s)),o.delete(s)}),o.forEach(s=>Reflect.deleteProperty(t,s))}}get(t){return pn(t)?t.value:t}isRef(t){return pn(t)||Qo(t)}};b(),b(),b();var Jl="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Yl(){if(!Ao||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(Jl);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}b(),b(),b();var ts;(ts=x).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(ts.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var ql=new Proxy(x.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,e,n){return Reflect.get(t,e,n)}});function Xl(t,e){M.timelineLayersState[e.id]=!1,ql.push({...t,descriptorId:e.id,appRecord:sn(e.app)})}var es;(es=x).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(es.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var hn=new Proxy(x.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,e,n){return Reflect.get(t,e,n)}}),ns=Nt(()=>{Rt.hooks.callHook("sendInspectorToClient",os())});function Zl(t,e){var n,o;hn.push({options:t,descriptor:e,treeFilterPlaceholder:(n=t.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=t.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:sn(e.app)}),ns()}function os(){return hn.filter(t=>t.descriptor.app===K.value.app).filter(t=>t.descriptor.id!=="components").map(t=>{var e;const n=t.descriptor,o=t.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(e=o==null?void 0:o.icon)==null?void 0:e.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function ge(t,e){return hn.find(n=>n.options.id===t&&(e?n.descriptor.app===e:!0))}function Ql(){const t=Bo();t.hook("addInspector",({inspector:o,plugin:s})=>{Zl(o,s.descriptor)});const e=Nt(async({inspectorId:o,plugin:s})=>{var r;if(!o||!((r=s==null?void 0:s.descriptor)!=null&&r.app)||M.highPerfModeEnabled)return;const i=ge(o,s.descriptor.app),l={app:s.descriptor.app,inspectorId:o,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(c=>{t.callHookWith(async u=>{await Promise.all(u.map(p=>p(l))),c()},"getInspectorTree")}),t.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:l.rootNodes})))},"sendInspectorTreeToClient")},120);t.hook("sendInspectorTree",e);const n=Nt(async({inspectorId:o,plugin:s})=>{var r;if(!o||!((r=s==null?void 0:s.descriptor)!=null&&r.app)||M.highPerfModeEnabled)return;const i=ge(o,s.descriptor.app),l={app:s.descriptor.app,inspectorId:o,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};l.nodeId&&await new Promise(u=>{t.callHookWith(async p=>{await Promise.all(p.map(d=>d(l,c))),u()},"getInspectorState")}),t.callHookWith(async u=>{await Promise.all(u.map(p=>p({inspectorId:o,nodeId:l.nodeId,state:l.state})))},"sendInspectorStateToClient")},120);return t.hook("sendInspectorState",n),t.hook("customInspectorSelectNode",({inspectorId:o,nodeId:s,plugin:r})=>{const i=ge(o,r.descriptor.app);i&&(i.selectedNodeId=s)}),t.hook("timelineLayerAdded",({options:o,plugin:s})=>{Xl(o,s.descriptor)}),t.hook("timelineEventAdded",({options:o,plugin:s})=>{var r;const i=["performance","component-event","keyboard","mouse"];M.highPerfModeEnabled||!((r=M.timelineLayersState)!=null&&r[s.descriptor.id])&&!i.includes(o.layerId)||t.callHookWith(async l=>{await Promise.all(l.map(c=>c(o)))},"sendTimelineEventToClient")}),t.hook("getComponentInstances",async({app:o})=>{const s=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!s)return null;const r=s.id.toString();return[...s.instanceMap].filter(([i])=>i.split(":")[0]===r).map(([,i])=>i)}),t.hook("getComponentBounds",async({instance:o})=>gt(o)),t.hook("getComponentName",({instance:o})=>pe(o)),t.hook("componentHighlight",({uid:o})=>{const s=K.value.instanceMap.get(o);s&&jl(s)}),t.hook("componentUnhighlight",()=>{Xo()}),t}var ss;(ss=x).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(ss.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var rs;(rs=x).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(rs.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var is;(is=x).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(is.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var as;(as=x).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(as.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var ls;(ls=x).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(ls.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var _t="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function tc(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Yl()}}var cs;(cs=x)[_t]!=null||(cs[_t]=tc());var ec=Nt(t=>{Rt.hooks.callHook("devtoolsStateUpdated",{state:t})});Nt((t,e)=>{Rt.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:e})});var _e=new Proxy(x.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,e,n){return e==="value"?x.__VUE_DEVTOOLS_KIT_APP_RECORDS__:x.__VUE_DEVTOOLS_KIT_APP_RECORDS__[e]}}),K=new Proxy(x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,e,n){return e==="value"?x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:e==="id"?x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[e]}});function us(){ec({...x[_t],appRecords:_e.value,activeAppRecordId:K.id,tabs:x.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:x.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function nc(t){x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,us()}function oc(t){x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,us()}var M=new Proxy(x[_t],{get(t,e){return e==="appRecords"?_e:e==="activeAppRecordId"?K.id:e==="tabs"?x.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:e==="commands"?x.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:x[_t][e]},deleteProperty(t,e){return delete t[e],!0},set(t,e,n){return{...x[_t]},t[e]=n,x[_t][e]=n,!0}});function sc(t={}){var e,n,o;const{file:s,host:r,baseUrl:i=window.location.origin,line:l=0,column:c=0}=t;if(s){if(r==="chrome-extension"){const u=s.replace(/\\/g,"\\\\"),p=(n=(e=window.VUE_DEVTOOLS_CONFIG)==null?void 0:e.openInEditorHost)!=null?n:"/";fetch(`${p}__open-in-editor?file=${encodeURI(s)}`).then(d=>{if(!d.ok){const f=`Opening component ${u} failed`;console.log(`%c${f}`,"color:red")}})}else if(M.vitePluginDetected){const u=(o=x.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;x.__VUE_INSPECTOR__.openInEditor(u,s,l,c)}}}b(),b(),b(),b(),b();var ds;(ds=x).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(ds.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var mn=new Proxy(x.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,e,n){return Reflect.get(t,e,n)}});function gn(t){const e={};return Object.keys(t).forEach(n=>{e[n]=t[n].defaultValue}),e}function _n(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function rc(t){var e,n,o;const s=(n=(e=mn.find(r=>{var i;return r[0].id===t&&!!((i=r[0])!=null&&i.settings)}))==null?void 0:e[0])!=null?n:null;return(o=s==null?void 0:s.settings)!=null?o:null}function fs(t,e){var n,o,s;const r=_n(t);if(r){const i=localStorage.getItem(r);if(i)return JSON.parse(i)}if(t){const i=(o=(n=mn.find(l=>l[0].id===t))==null?void 0:n[0])!=null?o:null;return gn((s=i==null?void 0:i.settings)!=null?s:{})}return gn(e)}function ic(t,e){const n=_n(t);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(gn(e)))}function ac(t,e,n){const o=_n(t),s=localStorage.getItem(o),r=JSON.parse(s||"{}"),i={...r,[e]:n};localStorage.setItem(o,JSON.stringify(i)),Rt.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:t,key:e,oldValue:r[e],newValue:n,settings:i}))},"setPluginSettings")}b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var ps,hs,J=(hs=(ps=x).__VUE_DEVTOOLS_HOOK)!=null?hs:ps.__VUE_DEVTOOLS_HOOK=Bo(),lc={vueAppInit(t){J.hook("app:init",t)},vueAppUnmount(t){J.hook("app:unmount",t)},vueAppConnected(t){J.hook("app:connected",t)},componentAdded(t){return J.hook("component:added",t)},componentEmit(t){return J.hook("component:emit",t)},componentUpdated(t){return J.hook("component:updated",t)},componentRemoved(t){return J.hook("component:removed",t)},setupDevtoolsPlugin(t){J.hook("devtools-plugin:setup",t)},perfStart(t){return J.hook("perf:start",t)},perfEnd(t){return J.hook("perf:end",t)}},ms={on:lc,setupDevToolsPlugin(t,e){return J.callHook("devtools-plugin:setup",t,e)}},cc=class{constructor({plugin:t,ctx:e}){this.hooks=e.hooks,this.plugin=t}get on(){return{visitComponentTree:t=>{this.hooks.hook("visitComponentTree",t)},inspectComponent:t=>{this.hooks.hook("inspectComponent",t)},editComponentState:t=>{this.hooks.hook("editComponentState",t)},getInspectorTree:t=>{this.hooks.hook("getInspectorTree",t)},getInspectorState:t=>{this.hooks.hook("getInspectorState",t)},editInspectorState:t=>{this.hooks.hook("editInspectorState",t)},inspectTimelineEvent:t=>{this.hooks.hook("inspectTimelineEvent",t)},timelineCleared:t=>{this.hooks.hook("timelineCleared",t)},setPluginSettings:t=>{this.hooks.hook("setPluginSettings",t)}}}notifyComponentUpdate(t){var e;if(M.highPerfModeEnabled)return;const n=os().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(t){const o=[t.appContext.app,t.uid,(e=t.parent)==null?void 0:e.uid,t];J.callHook("component:updated",...o)}else J.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(t){this.hooks.callHook("addInspector",{inspector:t,plugin:this.plugin}),this.plugin.descriptor.settings&&ic(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:t,plugin:this.plugin})}selectInspectorNode(t,e){this.hooks.callHook("customInspectorSelectNode",{inspectorId:t,nodeId:e,plugin:this.plugin})}visitComponentTree(t){return this.hooks.callHook("visitComponentTree",t)}now(){return M.highPerfModeEnabled?0:Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){M.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return fs(t??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(t){return this.hooks.callHook("getComponentInstances",{app:t})}getComponentBounds(t){return this.hooks.callHook("getComponentBounds",{instance:t})}getComponentName(t){return this.hooks.callHook("getComponentName",{instance:t})}highlightElement(t){const e=t.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:e})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},uc=cc;b(),b(),b(),b();var dc="__vue_devtool_undefined__",fc="__vue_devtool_infinity__",pc="__vue_devtool_negative_infinity__",hc="__vue_devtool_nan__";b(),b();var mc={[dc]:"undefined",[hc]:"NaN",[fc]:"Infinity",[pc]:"-Infinity"};Object.entries(mc).reduce((t,[e,n])=>(t[n]=e,t),{}),b(),b(),b(),b(),b();var gs;(gs=x).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(gs.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function _s(t,e){return ms.setupDevToolsPlugin(t,e)}function gc(t,e){const[n,o]=t;if(n.app!==e)return;const s=new uc({plugin:{setupFn:o,descriptor:n},ctx:Rt});n.packageName==="vuex"&&s.on.editInspectorState(r=>{s.sendInspectorState(r.inspectorId)}),o(s)}function ys(t,e){x.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||M.highPerfModeEnabled&&!(e!=null&&e.inspectingComponent)||(x.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),mn.forEach(n=>{gc(n,t)}))}b(),b();var qt="__VUE_DEVTOOLS_ROUTER__",Pt="__VUE_DEVTOOLS_ROUTER_INFO__",vs;(vs=x)[Pt]!=null||(vs[Pt]={currentRoute:null,routes:[]});var ws;(ws=x)[qt]!=null||(ws[qt]={}),new Proxy(x[Pt],{get(t,e){return x[Pt][e]}}),new Proxy(x[qt],{get(t,e){if(e==="value")return x[qt]}});function _c(t){const e=new Map;return((t==null?void 0:t.getRoutes())||[]).filter(n=>!e.has(n.path)&&e.set(n.path,1))}function yn(t){return t.map(e=>{let{path:n,name:o,children:s,meta:r}=e;return s!=null&&s.length&&(s=yn(s)),{path:n,name:o,children:s,meta:r}})}function yc(t){if(t){const{fullPath:e,hash:n,href:o,path:s,name:r,matched:i,params:l,query:c}=t;return{fullPath:e,hash:n,href:o,path:s,name:r,params:l,query:c,matched:yn(i)}}return t}function vc(t,e){function n(){var o;const s=(o=t.app)==null?void 0:o.config.globalProperties.$router,r=yc(s==null?void 0:s.currentRoute.value),i=yn(_c(s)),l=console.warn;console.warn=()=>{},x[Pt]={currentRoute:r?Lo(r):{},routes:Lo(i)},x[qt]=s,console.warn=l}n(),ms.on.componentUpdated(Nt(()=>{var o;((o=e.value)==null?void 0:o.app)===t.app&&(n(),!M.highPerfModeEnabled&&Rt.hooks.callHook("routerInfoUpdated",{state:x[Pt]}))},200))}function wc(t){return{async getInspectorTree(e){const n={...e,app:K.value.app,rootNodes:[]};return await new Promise(o=>{t.callHookWith(async s=>{await Promise.all(s.map(r=>r(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(e){const n={...e,app:K.value.app,state:null},o={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(s=>{t.callHookWith(async r=>{await Promise.all(r.map(i=>i(n,o))),s()},"getInspectorState")}),n.state},editInspectorState(e){const n=new Wl,o={...e,app:K.value.app,set:(s,r=e.path,i=e.state.value,l)=>{n.set(s,r,i,l||n.createDefaultSetCallback(e.state))}};t.callHookWith(s=>{s.forEach(r=>r(o))},"editInspectorState")},sendInspectorState(e){const n=ge(e);t.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Bl()},cancelInspectComponentInspector(){return Ml()},getComponentRenderCode(e){const n=rn(K.value,e);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(e){return Ul({id:e})},openInEditor:sc,getVueInspector:Kl,toggleApp(e,n){const o=_e.value.find(s=>s.id===e);o&&(oc(e),nc(o),vc(o,K),ns(),ys(o.app,n))},inspectDOM(e){const n=rn(K.value,e);if(n){const[o]=an(n);o&&(x.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(e,n,o){ac(e,n,o)},getPluginSettings(e){return{options:rc(e),values:fs(e)}}}}b();var Es;(Es=x).__VUE_DEVTOOLS_ENV__!=null||(Es.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var bs=Ql(),ks;(ks=x).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ks.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:bs,get state(){return{...M,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:_e.value}},api:wc(bs)});var Rt=x.__VUE_DEVTOOLS_KIT_CONTEXT__;b(),El(kl());var Ss;(Ss=x).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(Ss.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),b(),b();function Ec(t){M.highPerfModeEnabled=t??!M.highPerfModeEnabled,!t&&K.value&&ys(K.value.app)}b(),b(),b();function bc(t){M.devtoolsClientDetected={...M.devtoolsClientDetected,...t};const e=Object.values(M.devtoolsClientDetected).some(Boolean);Ec(!e)}var Os;(Os=x).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(Os.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=bc),b(),b(),b(),b(),b(),b(),b();var kc=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,e){this.keyToValue.set(t,e),this.valueToKey.set(e,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Is=class{constructor(t){this.generateIdentifier=t,this.kv=new kc}register(t,e){this.kv.getByValue(t)||(e||(e=this.generateIdentifier(t)),this.kv.set(e,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}},Sc=class extends Is{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,e){typeof e=="object"?(e.allowProps&&this.classToAllowedProps.set(t,e.allowProps),super.register(t,e.identifier)):super.register(t,e)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};b(),b();function Oc(t){if("values"in Object)return Object.values(t);const e=[];for(const n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e}function Ic(t,e){const n=Oc(t);if("find"in n)return n.find(e);const o=n;for(let s=0;s<o.length;s++){const r=o[s];if(e(r))return r}}function Dt(t,e){Object.entries(t).forEach(([n,o])=>e(o,n))}function ye(t,e){return t.indexOf(e)!==-1}function Ts(t,e){for(let n=0;n<t.length;n++){const o=t[n];if(e(o))return o}}var Tc=class{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return Ic(this.transfomers,e=>e.isApplicable(t))}findByName(t){return this.transfomers[t]}};b(),b();var xc=t=>Object.prototype.toString.call(t).slice(8,-1),xs=t=>typeof t>"u",Vc=t=>t===null,Xt=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,vn=t=>Xt(t)&&Object.keys(t).length===0,ut=t=>Array.isArray(t),Cc=t=>typeof t=="string",Nc=t=>typeof t=="number"&&!isNaN(t),$c=t=>typeof t=="boolean",Pc=t=>t instanceof RegExp,Zt=t=>t instanceof Map,Qt=t=>t instanceof Set,Vs=t=>xc(t)==="Symbol",Rc=t=>t instanceof Date&&!isNaN(t.valueOf()),Dc=t=>t instanceof Error,Cs=t=>typeof t=="number"&&isNaN(t),Ac=t=>$c(t)||Vc(t)||xs(t)||Nc(t)||Cc(t)||Vs(t),jc=t=>typeof t=="bigint",Lc=t=>t===1/0||t===-1/0,Mc=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),Bc=t=>t instanceof URL;b();var Ns=t=>t.replace(/\./g,"\\."),wn=t=>t.map(String).map(Ns).join("."),te=t=>{const e=[];let n="";for(let s=0;s<t.length;s++){let r=t.charAt(s);if(r==="\\"&&t.charAt(s+1)==="."){n+=".",s++;continue}if(r==="."){e.push(n),n="";continue}n+=r}const o=n;return e.push(o),e};b();function et(t,e,n,o){return{isApplicable:t,annotation:e,transform:n,untransform:o}}var $s=[et(xs,"undefined",()=>null,()=>{}),et(jc,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),et(Rc,"Date",t=>t.toISOString(),t=>new Date(t)),et(Dc,"Error",(t,e)=>{const n={name:t.name,message:t.message};return e.allowedErrorProps.forEach(o=>{n[o]=t[o]}),n},(t,e)=>{const n=new Error(t.message);return n.name=t.name,n.stack=t.stack,e.allowedErrorProps.forEach(o=>{n[o]=t[o]}),n}),et(Pc,"regexp",t=>""+t,t=>{const e=t.slice(1,t.lastIndexOf("/")),n=t.slice(t.lastIndexOf("/")+1);return new RegExp(e,n)}),et(Qt,"set",t=>[...t.values()],t=>new Set(t)),et(Zt,"map",t=>[...t.entries()],t=>new Map(t)),et(t=>Cs(t)||Lc(t),"number",t=>Cs(t)?"NaN":t>0?"Infinity":"-Infinity",Number),et(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),et(Bc,"URL",t=>t.toString(),t=>new URL(t))];function ve(t,e,n,o){return{isApplicable:t,annotation:e,transform:n,untransform:o}}var Ps=ve((t,e)=>Vs(t)?!!e.symbolRegistry.getIdentifier(t):!1,(t,e)=>["symbol",e.symbolRegistry.getIdentifier(t)],t=>t.description,(t,e,n)=>{const o=n.symbolRegistry.getValue(e[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Uc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,e)=>(t[e.name]=e,t),{}),Rs=ve(Mc,t=>["typed-array",t.constructor.name],t=>[...t],(t,e)=>{const n=Uc[e[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(t)});function Ds(t,e){return t!=null&&t.constructor?!!e.classRegistry.getIdentifier(t.constructor):!1}var As=ve(Ds,(t,e)=>["class",e.classRegistry.getIdentifier(t.constructor)],(t,e)=>{const n=e.classRegistry.getAllowedProps(t.constructor);if(!n)return{...t};const o={};return n.forEach(s=>{o[s]=t[s]}),o},(t,e,n)=>{const o=n.classRegistry.getValue(e[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${e[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),t)}),js=ve((t,e)=>!!e.customTransformerRegistry.findApplicable(t),(t,e)=>["custom",e.customTransformerRegistry.findApplicable(t).name],(t,e)=>e.customTransformerRegistry.findApplicable(t).serialize(t),(t,e,n)=>{const o=n.customTransformerRegistry.findByName(e[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(t)}),zc=[As,Ps,js,Rs],Ls=(t,e)=>{const n=Ts(zc,s=>s.isApplicable(t,e));if(n)return{value:n.transform(t,e),type:n.annotation(t,e)};const o=Ts($s,s=>s.isApplicable(t,e));if(o)return{value:o.transform(t,e),type:o.annotation}},Ms={};$s.forEach(t=>{Ms[t.annotation]=t});var Hc=(t,e,n)=>{if(ut(e))switch(e[0]){case"symbol":return Ps.untransform(t,e,n);case"class":return As.untransform(t,e,n);case"custom":return js.untransform(t,e,n);case"typed-array":return Rs.untransform(t,e,n);default:throw new Error("Unknown transformation: "+e)}else{const o=Ms[e];if(!o)throw new Error("Unknown transformation: "+e);return o.untransform(t,n)}};b();var At=(t,e)=>{if(e>t.size)throw new Error("index out of bounds");const n=t.keys();for(;e>0;)n.next(),e--;return n.next().value};function Bs(t){if(ye(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ye(t,"prototype"))throw new Error("prototype is not allowed as a property");if(ye(t,"constructor"))throw new Error("constructor is not allowed as a property")}var Kc=(t,e)=>{Bs(e);for(let n=0;n<e.length;n++){const o=e[n];if(Qt(t))t=At(t,+o);else if(Zt(t)){const s=+o,r=+e[++n]==0?"key":"value",i=At(t,s);switch(r){case"key":t=i;break;case"value":t=t.get(i);break}}else t=t[o]}return t},En=(t,e,n)=>{if(Bs(e),e.length===0)return n(t);let o=t;for(let r=0;r<e.length-1;r++){const i=e[r];if(ut(o)){const l=+i;o=o[l]}else if(Xt(o))o=o[i];else if(Qt(o)){const l=+i;o=At(o,l)}else if(Zt(o)){if(r===e.length-2)break;const l=+i,c=+e[++r]==0?"key":"value",u=At(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const s=e[e.length-1];if(ut(o)?o[+s]=n(o[+s]):Xt(o)&&(o[s]=n(o[s])),Qt(o)){const r=At(o,+s),i=n(r);r!==i&&(o.delete(r),o.add(i))}if(Zt(o)){const r=+e[e.length-2],i=At(o,r);switch(+s==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 t};function bn(t,e,n=[]){if(!t)return;if(!ut(t)){Dt(t,(r,i)=>bn(r,e,[...n,...te(i)]));return}const[o,s]=t;s&&Dt(s,(r,i)=>{bn(r,e,[...n,...te(i)])}),e(o,n)}function Fc(t,e,n){return bn(e,(o,s)=>{t=En(t,s,r=>Hc(r,o,n))}),t}function Wc(t,e){function n(o,s){const r=Kc(t,te(s));o.map(te).forEach(i=>{t=En(t,i,()=>r)})}if(ut(e)){const[o,s]=e;o.forEach(r=>{t=En(t,te(r),()=>t)}),s&&Dt(s,n)}else Dt(e,n);return t}var Gc=(t,e)=>Xt(t)||ut(t)||Zt(t)||Qt(t)||Ds(t,e);function Jc(t,e,n){const o=n.get(t);o?o.push(e):n.set(t,[e])}function Yc(t,e){const n={};let o;return t.forEach(s=>{if(s.length<=1)return;e||(s=s.map(l=>l.map(String)).sort((l,c)=>l.length-c.length));const[r,...i]=s;r.length===0?o=i.map(wn):n[wn(r)]=i.map(wn)}),o?vn(n)?[o]:[o,n]:vn(n)?void 0:n}var Us=(t,e,n,o,s=[],r=[],i=new Map)=>{var l;const c=Ac(t);if(!c){Jc(t,s,e);const m=i.get(t);if(m)return o?{transformedValue:null}:m}if(!Gc(t,n)){const m=Ls(t,n),_=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:t};return c||i.set(t,_),_}if(ye(r,t))return{transformedValue:null};const u=Ls(t,n),p=(l=u==null?void 0:u.value)!=null?l:t,d=ut(p)?[]:{},f={};Dt(p,(m,_)=>{if(_==="__proto__"||_==="constructor"||_==="prototype")throw new Error(`Detected property ${_}. This is a prototype pollution risk, please remove it from your object.`);const g=Us(m,e,n,o,[...s,_],[...r,t],i);d[_]=g.transformedValue,ut(g.annotations)?f[_]=g.annotations:Xt(g.annotations)&&Dt(g.annotations,(v,I)=>{f[Ns(_)+"."+I]=v})});const h=vn(f)?{transformedValue:d,annotations:u?[u.type]:void 0}:{transformedValue:d,annotations:u?[u.type,f]:f};return c||i.set(t,h),h};b(),b();function zs(t){return Object.prototype.toString.call(t).slice(8,-1)}function Hs(t){return zs(t)==="Array"}function qc(t){if(zs(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return!!e&&e.constructor===Object&&e===Object.prototype}function Xc(t,e,n,o,s){const r={}.propertyIsEnumerable.call(o,e)?"enumerable":"nonenumerable";r==="enumerable"&&(t[e]=n),s&&r==="nonenumerable"&&Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kn(t,e={}){if(Hs(t))return t.map(s=>kn(s,e));if(!qc(t))return t;const n=Object.getOwnPropertyNames(t),o=Object.getOwnPropertySymbols(t);return[...n,...o].reduce((s,r)=>{if(Hs(e.props)&&!e.props.includes(r))return s;const i=t[r],l=kn(i,e);return Xc(s,r,l,t,e.nonenumerable),s},{})}var A=class{constructor({dedupe:t=!1}={}){this.classRegistry=new Sc,this.symbolRegistry=new Is(e=>{var n;return(n=e.description)!=null?n:""}),this.customTransformerRegistry=new Tc,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const e=new Map,n=Us(t,e,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const s=Yc(e,this.dedupe);return s&&(o.meta={...o.meta,referentialEqualities:s}),o}deserialize(t){const{json:e,meta:n}=t;let o=kn(e);return n!=null&&n.values&&(o=Fc(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=Wc(o,n.referentialEqualities)),o}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,e){this.classRegistry.register(t,e)}registerSymbol(t,e){this.symbolRegistry.register(t,e)}registerCustom(t,e){this.customTransformerRegistry.register({name:e,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};A.defaultInstance=new A,A.serialize=A.defaultInstance.serialize.bind(A.defaultInstance),A.deserialize=A.defaultInstance.deserialize.bind(A.defaultInstance),A.stringify=A.defaultInstance.stringify.bind(A.defaultInstance),A.parse=A.defaultInstance.parse.bind(A.defaultInstance),A.registerClass=A.defaultInstance.registerClass.bind(A.defaultInstance),A.registerSymbol=A.defaultInstance.registerSymbol.bind(A.defaultInstance),A.registerCustom=A.defaultInstance.registerCustom.bind(A.defaultInstance),A.allowErrorProps=A.defaultInstance.allowErrorProps.bind(A.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 Ks;(Ks=x).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Ks.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Fs;(Fs=x).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Fs.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Ws;(Ws=x).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(Ws.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Gs;(Gs=x).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Gs.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Js;(Js=x).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Js.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Ys;(Ys=x).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(Ys.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),b(),b(),b(),b(),b(),b(),b();/*!
|
|
2
4
|
* pinia v3.0.3
|
|
3
5
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
6
|
* @license MIT
|
|
5
|
-
*/let
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
7
|
+
*/let ee;const ne=t=>ee=t,qs=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function yt(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var nt;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(nt||(nt={}));const dt=typeof window<"u",Xs=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 Zc(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Sn(t,e,n){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){tr(o.response,e,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Zs(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function we(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const e=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});t.dispatchEvent(e)}}const Ee=typeof navigator=="object"?navigator:{userAgent:""},Qs=/Macintosh/.test(Ee.userAgent)&&/AppleWebKit/.test(Ee.userAgent)&&!/Safari/.test(Ee.userAgent),tr=dt?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Qs?Qc:"msSaveOrOpenBlob"in Ee?tu:eu:()=>{};function Qc(t,e="download",n){const o=document.createElement("a");o.download=e,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?Zs(o.href)?Sn(t,e,n):(o.target="_blank",we(o)):we(o)):(o.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){we(o)},0))}function tu(t,e="download",n){if(typeof t=="string")if(Zs(t))Sn(t,e,n);else{const o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){we(o)})}else navigator.msSaveOrOpenBlob(Zc(t,n),e)}function eu(t,e,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof t=="string")return Sn(t,e,n);const s=t.type==="application/octet-stream",r=/constructor/i.test(String(Xs.HTMLElement))||"safari"in Xs,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&r||Qs)&&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(t)}else{const l=URL.createObjectURL(t);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function B(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function On(t){return"_a"in t&&"install"in t}function er(){if(!("clipboard"in navigator))return B("Your browser doesn't support the Clipboard API","error"),!0}function nr(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function nu(t){if(!er())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),B("Global state copied to clipboard.")}catch(e){if(nr(e))return;B("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function ou(t){if(!er())try{or(t,JSON.parse(await navigator.clipboard.readText())),B("Global state pasted from clipboard.")}catch(e){if(nr(e))return;B("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function su(t){try{tr(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){B("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let st;function ru(){st||(st=document.createElement("input"),st.type="file",st.accept=".json");function t(){return new Promise((e,n)=>{st.onchange=async()=>{const o=st.files;if(!o)return e(null);const s=o.item(0);return e(s?{text:await s.text(),file:s}:null)},st.oncancel=()=>e(null),st.onerror=n,st.click()})}return t}async function iu(t){try{const e=await ru()();if(!e)return;const{text:n,file:o}=e;or(t,JSON.parse(n)),B(`Global state imported from "${o.name}".`)}catch(e){B("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function or(t,e){for(const n in e){const o=t.state.value[n];o?Object.assign(o,e[n]):t.state.value[n]=e[n]}}function tt(t){return{_custom:{display:t}}}const sr="🍍 Pinia (root)",be="_root";function au(t){return On(t)?{id:be,label:sr}:{id:t.$id,label:t.$id}}function lu(t){if(On(t)){const n=Array.from(t._s.keys()),o=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>o.get(s)._getters).map(s=>{const r=o.get(s);return{editable:!1,key:s,value:r._getters.reduce((i,l)=>(i[l]=r[l],i),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function cu(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:tt(t.type),key:tt(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function uu(t){switch(t){case nt.direct:return"mutation";case nt.patchFunction:return"$patch";case nt.patchObject:return"$patch";default:return"unknown"}}let jt=!0;const ke=[],vt="pinia:mutations",z="pinia",{assign:du}=Object,Se=t=>"🍍 "+t;function fu(t,e){_s({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ke,app:t},n=>{typeof n.now!="function"&&B("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:vt,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{nu(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await ou(e),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{su(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await iu(e),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=e._s.get(o);s?typeof s.$reset!="function"?B(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),B(`Store "${o}" reset.`)):B(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(o=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const r=o.componentInstance.proxy._pStores;Object.values(r).forEach(i=>{o.instanceData.state.push({type:Se(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:a.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,c)=>(l[c]=i.$state[c],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:Se(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===t&&o.inspectorId===z){let s=[e];s=s.concat(Array.from(e._s.values())),o.rootNodes=(o.filter?s.filter(r=>"$id"in r?r.$id.toLowerCase().includes(o.filter.toLowerCase()):sr.toLowerCase().includes(o.filter.toLowerCase())):s).map(au)}}),globalThis.$pinia=e,n.on.getInspectorState(o=>{if(o.app===t&&o.inspectorId===z){const s=o.nodeId===be?e:e._s.get(o.nodeId);if(!s)return;s&&(o.nodeId!==be&&(globalThis.$store=a.toRaw(s)),o.state=lu(s))}}),n.on.editInspectorState(o=>{if(o.app===t&&o.inspectorId===z){const s=o.nodeId===be?e:e._s.get(o.nodeId);if(!s)return B(`store "${o.nodeId}" not found`,"error");const{path:r}=o;On(s)?r.unshift("state"):(r.length!==1||!s._customProperties.has(r[0])||r[0]in s.$state)&&r.unshift("$state"),jt=!1,o.set(s,r,o.state.value),jt=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const s=o.type.replace(/^🍍\s*/,""),r=e._s.get(s);if(!r)return B(`store "${s}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return B(`Invalid path for store "${s}":
|
|
8
|
+
${i}
|
|
9
|
+
Only state can be modified.`);i[0]="$state",jt=!1,o.set(r,i,o.state.value),jt=!0}})})}function pu(t,e){ke.includes(Se(e.$id))||ke.push(Se(e.$id)),_s({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ke,app:t,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;e.$onAction(({after:i,onError:l,name:c,args:u})=>{const p=rr++;n.addTimelineEvent({layerId:vt,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:tt(e.$id),action:tt(c),args:u},groupId:p}}),i(d=>{ft=void 0,n.addTimelineEvent({layerId:vt,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:tt(e.$id),action:tt(c),args:u,result:d},groupId:p}})}),l(d=>{ft=void 0,n.addTimelineEvent({layerId:vt,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:tt(e.$id),action:tt(c),args:u,error:d},groupId:p}})})},!0),e._customProperties.forEach(i=>{a.watch(()=>a.unref(e[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),jt&&n.addTimelineEvent({layerId:vt,event:{time:o(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:ft}})},{deep:!0})}),e.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!jt)return;const u={time:o(),title:uu(l),data:du({store:tt(e.$id)},cu(i)),groupId:ft};l===nt.patchFunction?u.subtitle="⤵️":l===nt.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:vt,event:u})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=a.markRaw(i=>{s(i),n.addTimelineEvent({layerId:vt,event:{time:o(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:tt(e.$id),info:tt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:r}=e;e.$dispose=()=>{r(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&B(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&B(`"${e.$id}" store installed 🆕`)})}let rr=0,ft;function ir(t,e,n){const o=e.reduce((s,r)=>(s[r]=a.toRaw(t)[r],s),{});for(const s in o)t[s]=function(){const r=rr,i=n?new Proxy(t,{get(...c){return ft=r,Reflect.get(...c)},set(...c){return ft=r,Reflect.set(...c)}}):t;ft=r;const l=o[s].apply(i,arguments);return ft=void 0,l}}function hu({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!n.state,!e._p._testing){ir(e,Object.keys(n.actions),e._isOptionsAPI);const o=e._hotUpdate;a.toRaw(e)._hotUpdate=function(s){o.apply(this,arguments),ir(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)}}pu(t,e)}}function mu(){const t=a.effectScope(!0),e=t.run(()=>a.ref({}));let n=[],o=[];const s=a.markRaw({install(r){ne(s),s._a=r,r.provide(qs,s),r.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt&&fu(r,s),o.forEach(i=>n.push(i)),o=[]},use(r){return this._a?n.push(r):o.push(r),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt&&typeof Proxy<"u"&&s.use(hu),s}function ar(t,e){for(const n in e){const o=e[n];if(!(n in t))continue;const s=t[n];yt(s)&&yt(o)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=ar(s,o):t[n]=o}return t}const lr=()=>{};function cr(t,e,n,o=lr){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(s),s}function Lt(t,...e){t.slice().forEach(n=>{n(...e)})}const gu=t=>t(),ur=Symbol(),In=Symbol();function Tn(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,o)=>t.set(o,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],s=t[n];yt(s)&&yt(o)&&t.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=Tn(s,o):t[n]=o}return t}const _u=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function yu(t){return!yt(t)||!Object.prototype.hasOwnProperty.call(t,_u)}const{assign:Z}=Object;function dr(t){return!!(a.isRef(t)&&t.effect)}function fr(t,e,n,o){const{state:s,actions:r,getters:i}=e,l=n.state.value[t];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[t]=s?s():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(s?s():{}).value):a.toRefs(n.state.value[t]);return Z(p,r,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=a.markRaw(a.computed(()=>{ne(n);const h=n._s.get(t);return i[f].call(h,h)})),d),{}))}return c=xn(t,u,e,n,o,!0),c}function xn(t,e,n={},o,s,r){let i;const l=Z({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=T=>{u?h=T:u==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,p,d=[],f=[],h;const m=o.state.value[t];!r&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[t]={});const _=a.ref({});let g;function v(T){let w;u=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof T=="function"?(T(o.state.value[t]),w={type:nt.patchFunction,storeId:t,events:h}):(Tn(o.state.value[t],T),w={type:nt.patchObject,payload:T,storeId:t,events:h});const S=g=Symbol();a.nextTick().then(()=>{g===S&&(u=!0)}),p=!0,Lt(d,w,o.state.value[t])}const I=r?function(){const{state:T}=n,w=T?T():{};this.$patch(S=>{Z(S,w)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:lr;function V(){i.stop(),d=[],f=[],o._s.delete(t)}const P=(T,w="")=>{if(ur in T)return T[In]=w,T;const S=function(){ne(o);const C=Array.from(arguments),D=[],G=[];function U(y){D.push(y)}function $(y){G.push(y)}Lt(f,{args:C,name:S[In],store:k,after:U,onError:$});let F;try{F=T.apply(this&&this.$id===t?this:k,C)}catch(y){throw Lt(G,y),y}return F instanceof Promise?F.then(y=>(Lt(D,y),y)).catch(y=>(Lt(G,y),Promise.reject(y))):(Lt(D,F),F)};return S[ur]=!0,S[In]=w,S},R=a.markRaw({actions:{},getters:{},state:[],hotState:_}),Y={_p:o,$id:t,$onAction:cr.bind(null,f),$patch:v,$reset:I,$subscribe(T,w={}){const S=cr(d,T,w.detached,()=>C()),C=i.run(()=>a.watch(()=>o.state.value[t],D=>{(w.flush==="sync"?p:u)&&T({storeId:t,type:nt.direct,events:h},D)},Z({},c,w)));return S},$dispose:V},k=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt?Z({_hmrPayload:R,_customProperties:a.markRaw(new Set)},Y):Y);o._s.set(t,k);const j=(o._a&&o._a.runWithContext||gu)(()=>o._e.run(()=>(i=a.effectScope()).run(()=>e({action:P}))));for(const T in j){const w=j[T];if(a.isRef(w)&&!dr(w)||a.isReactive(w))process.env.NODE_ENV!=="production"&&s?_.value[T]=a.toRef(j,T):r||(m&&yu(w)&&(a.isRef(w)?w.value=m[T]:Tn(w,m[T])),o.state.value[t][T]=w),process.env.NODE_ENV!=="production"&&R.state.push(T);else if(typeof w=="function"){const S=process.env.NODE_ENV!=="production"&&s?w:P(w,T);j[T]=S,process.env.NODE_ENV!=="production"&&(R.actions[T]=w),l.actions[T]=w}else process.env.NODE_ENV!=="production"&&dr(w)&&(R.getters[T]=r?n.getters[T]:w,dt&&(j._getters||(j._getters=a.markRaw([]))).push(T))}if(Z(k,j),Z(a.toRaw(k),j),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:o.state.value[t],set:T=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");v(w=>{Z(w,T)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(T=>{k._hotUpdating=!0,T._hmrPayload.state.forEach(w=>{if(w in k.$state){const S=T.$state[w],C=k.$state[w];typeof S=="object"&&yt(S)&&yt(C)?ar(S,C):T.$state[w]=C}k[w]=a.toRef(T.$state,w)}),Object.keys(k.$state).forEach(w=>{w in T.$state||delete k[w]}),u=!1,p=!1,o.state.value[t]=a.toRef(T._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{u=!0});for(const w in T._hmrPayload.actions){const S=T[w];k[w]=P(S,w)}for(const w in T._hmrPayload.getters){const S=T._hmrPayload.getters[w],C=r?a.computed(()=>(ne(o),S.call(k,k))):S;k[w]=C}Object.keys(k._hmrPayload.getters).forEach(w=>{w in T._hmrPayload.getters||delete k[w]}),Object.keys(k._hmrPayload.actions).forEach(w=>{w in T._hmrPayload.actions||delete k[w]}),k._hmrPayload=T._hmrPayload,k._getters=T._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt){const T={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(w=>{Object.defineProperty(k,w,Z({value:k[w]},T))})}return o._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt){const w=i.run(()=>T({store:k,app:o._a,pinia:o,options:l}));Object.keys(w||{}).forEach(S=>k._customProperties.add(S)),Z(k,w)}else Z(k,i.run(()=>T({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
10
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${
|
|
11
|
+
Found in store "${k.$id}".`),m&&r&&n.hydrate&&n.hydrate(k.$state,m),u=!0,p=!0,k}/*! #__NO_SIDE_EFFECTS__ */function vu(t,e,n){let o;const s=typeof e=="function";o=s?n:e;function r(i,l){const c=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&ee&&ee._testing?null:i)||(c?a.inject(qs,null):null),i&&ne(i),process.env.NODE_ENV!=="production"&&!ee)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
12
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);l=je,l._s.has(e)||(r?Ht(e,t,o,l):Qo(e,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const u=l._s.get(e);if(process.env.NODE_ENV!=="production"&&i){const d="__hot:"+e,p=r?Ht(d,t,o,l,!0):Qo(d,J({},o),l,!0);i._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ae){const d=s.getCurrentInstance();if(d&&d.proxy&&!i){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[e]=u}}return u}return a.$id=e,a}const Zl=Xl("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function er(e){const t=s.ref();return s.onMounted(async()=>{var n,o,r;e||(e=s.inject("$registry"));let a;try{a=Zl()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new Ss(e,a),!e||!e.router)return;const l=e.router.currentRoute.value,i=(n=l.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=l.params.record)==null?void 0:o.toString().toLowerCase();if(!i&&!c)return;const u=await((r=e.getMeta)==null?void 0:r.call(e,i));u&&(e.addDoctype(u),t.value.setup(u),i&&(c?await t.value.getRecord(u,c):await t.value.getRecords(u)),t.value.runAction(u,"LOAD",c?[c]:void 0))}),{stonecrop:t}}K(class ut{constructor(t,n){if(K(this,"name"),K(this,"registry"),K(this,"router"),K(this,"getMeta"),ut._root)return ut._root;ut._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 Ql(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Oe=Promise.resolve();function tr(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function ei(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function zt(){return Math.random().toString(36).substring(2)}var Kt=0;function Be(){var e=Date.now()*1e3;return e<=Kt&&(e=Kt+1),Kt=e,e}var ti=Be,ni="native";function oi(e){var t={time:Be(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ri(e){e.bc.close(),e.subFns=[]}function si(e,t){try{return e.bc.postMessage(t,!1),Oe}catch(n){return Promise.reject(n)}}function ai(e,t){e.messagesCallback=t}function li(){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 ii(){return 150}var ci={create:oi,close:ri,onMessage:ai,postMessage:si,canBeUsed:li,type:ni,averageResponseTime:ii,microSeconds:ti};class nr{constructor(t){K(this,"ttl"),K(this,"map",new Map),K(this,"_to",!1),this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,or()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,ui(this)},0))}clear(){this.map.clear()}}function ui(e){const t=or()-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 or(){return Date.now()}function Ft(){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 di=Be,fi="pubkey.broadcast-channel-0-",ne="messages",ot={durability:"relaxed"},pi="idb";function rr(){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 Wt(e){e.commit&&e.commit()}function hi(e){var t=rr(),n=fi+e,o=t.open(n);return o.onupgradeneeded=function(r){var a=r.target.result;a.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,a){o.onerror=function(l){return a(l)},o.onsuccess=function(){r(o.result)}})}function mi(e,t,n){var o=Date.now(),r={uuid:t,time:o,data:n},a=e.transaction([ne],"readwrite",ot);return new Promise(function(l,i){a.oncomplete=function(){return l()},a.onerror=function(u){return i(u)};var c=a.objectStore(ne);c.add(r),Wt(a)})}function _i(e,t){var n=e.transaction(ne,"readonly",ot),o=n.objectStore(ne),r=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var l=o.getAll(a);return new Promise(function(c,u){l.onerror=function(d){return u(d)},l.onsuccess=function(d){c(d.target.result)}})}function i(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(c,u){var d=i();d.onerror=function(p){return u(p)},d.onsuccess=function(p){var h=p.target.result;h?h.value.id<t+1?h.continue(t+1):(r.push(h.value),h.continue()):(Wt(n),c(r))}})}function gi(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",ot),o=n.objectStore(ne);return Promise.all(t.map(function(r){var a=o.delete(r);return new Promise(function(l){a.onsuccess=function(){return l()}})}))}function yi(e,t){var n=Date.now()-t,o=e.transaction(ne,"readonly",ot),r=o.objectStore(ne),a=[];return new Promise(function(l){r.openCursor().onsuccess=function(i){var c=i.target.result;if(c){var u=c.value;u.time<n?(a.push(u),c.continue()):(Wt(o),l(a))}else l(a)}})}function Ei(e){return yi(e.db,e.options.idb.ttl).then(function(t){return gi(e,t.map(function(n){return n.id}))})}function wi(e,t){return t=Ft(t),hi(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:zt(),eMIs:new nr(t.idb.ttl*2),writeBlockPromise:Oe,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},sr(o),o})}function sr(e){e.closed||ar(e).then(function(){return tr(e.options.idb.fallbackInterval)}).then(function(){return sr(e)})}function bi(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function ar(e){return e.closed||!e.messagesCallback?Oe:_i(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 bi(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))}),Oe})}function vi(e){e.closed=!0,e.db.close()}function ki(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return mi(e.db,e.uuid,t)}).then(function(){ei(0,10)===0&&Ei(e)}),e.writeBlockPromise}function Oi(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,ar(e)}function Si(){return!!rr()}function Ii(e){return e.idb.fallbackInterval*2}var Ti={create:wi,close:vi,onMessage:Oi,postMessage:ki,canBeUsed:Si,type:pi,averageResponseTime:Ii,microSeconds:di},Vi=Be,Ci="pubkey.broadcastChannel-",Ni="localstorage";function lr(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function ir(e){return Ci+e}function Pi(e,t){return new Promise(function(n){tr().then(function(){var o=ir(e.channelName),r={token:zt(),time:Date.now(),data:t,uuid:e.uuid},a=JSON.stringify(r);lr().setItem(o,a);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=o,l.newValue=a,window.dispatchEvent(l),n()})})}function Ri(e,t){var n=ir(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function xi(e){window.removeEventListener("storage",e)}function Di(e,t){if(t=Ft(t),!cr())throw new Error("BroadcastChannel: localstorage cannot be used");var n=zt(),o=new nr(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ri(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 Ai(e){xi(e.listener)}function $i(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function cr(){var e=lr();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Li(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var ji={create:Di,close:Ai,onMessage:$i,postMessage:Pi,canBeUsed:cr,type:Ni,averageResponseTime:Li,microSeconds:Vi},ur=Be,Mi="simulate",Gt=new Set;function Bi(e){var t={time:ur(),name:e,messagesCallback:null};return Gt.add(t),t}function Ui(e){Gt.delete(e)}var dr=5;function Hi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Gt);o.forEach(function(r){r.name===e.name&&r!==e&&r.messagesCallback&&r.time<t.time&&r.messagesCallback(t)}),n()},dr)})}function zi(e,t){e.messagesCallback=t}function Ki(){return!0}function Fi(){return dr}var Wi={create:Bi,close:Ui,onMessage:zi,postMessage:Hi,canBeUsed:Ki,type:Mi,averageResponseTime:Fi,microSeconds:ur},fr=[ci,Ti,ji];function Gi(e){var t=[].concat(e.methods,fr).filter(Boolean);if(e.type){if(e.type==="simulate")return Wi;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(fr.map(function(r){return r.type})))}var pr=new Set,Yi=0,Yt=function(e,t){this.id=Yi++,pr.add(this),this.name=e,this.options=Ft(t),this.method=Gi(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,qi(this)};Yt._pubkey=!0,Yt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return hr(this,"message",e)},postInternal:function(e){return hr(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};gr(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,_r(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};_r(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});gr(this,e,n)},close:function(){var e=this;if(!this.closed){pr.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Oe;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 hr(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},a=e._prepP?e._prepP:Oe;return a.then(function(){var l=e.method.postMessage(e._state,r);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}function qi(e){var t=e.method.create(e.name,e.options);Ql(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function mr(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function _r(e,t,n){e._addEL[t].push(n),Ji(e)}function gr(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),Xi(e)}function Ji(e){if(!e._iL&&mr(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 Xi(e){if(e._iL&&!mr(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function yr(e,t={serialize:JSON.stringify,deserialize:JSON.parse}){return t.deserialize(t.serialize(e))}function Zi(e,t){return Object.keys(t).includes(e)}function Qi({enable:e=!0,initialize:t=!0,type:n,serializer:o}){return({store:r,options:a})=>{var l,i,c;const u=((l=a==null?void 0:a.share)==null?void 0:l.enable)??e,d=((i=a==null?void 0:a.share)==null?void 0:i.omit)??[];if(!u)return;const p=new Yt(r.$id,{type:n});let h=0,f=!1;const _=Object.keys(r.$state).filter(v=>!d.includes(v)&&Zi(v,r.$state));p.onmessage=v=>{if(v===void 0){p.postMessage({timestamp:h,state:yr(r.$state,o)});return}v.timestamp<=h||(f=!0,h=v.timestamp,r.$patch(m=>{_.forEach(g=>{m[g]=v.state[g]})}))},(((c=a==null?void 0:a.share)==null?void 0:c.initialize)??t)&&p.postMessage(void 0),r.$subscribe((v,m)=>{f||(h=Date.now(),p.postMessage({timestamp:h,state:yr(m,o)})),f=!1})}}Gl().use(Qi({enable:!0,initialize:!0}));const Er=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t}=er(),n=s.ref([]);return s.watch(t,()=>{var o;if(t.value){let r=(o=t.value.schema)==null?void 0:o.schema.toArray();r||(r=[]),r.forEach((a,l)=>{var u;const i=(u=t.value)==null?void 0:u.store.record,c=i==null?void 0:i[a.fieldname];r[l].value=c}),n.value=r}}),(o,r)=>(s.openBlock(),s.createBlock(s.unref(vs),{class:"aform-main",modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},null,8,["modelValue"]))}});/*!
|
|
13
|
+
This will fail in production.`);i=ee,i._s.has(t)||(s?xn(t,e,o,i):fr(t,o,i),process.env.NODE_ENV!=="production"&&(r._pinia=i));const u=i._s.get(t);if(process.env.NODE_ENV!=="production"&&l){const p="__hot:"+t,d=s?xn(p,e,o,i,!0):fr(p,Z({},o),i,!0);l._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&dt){const p=a.getCurrentInstance();if(p&&p.proxy&&!l){const d=p.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[t]=u}}return u}return r.$id=t,r}const wu=vu("data",()=>{const t=a.ref([]),e=a.ref({});return{records:t,record:e}});function pr(t){const e=a.ref();return a.onMounted(async()=>{var n,o,s;if(t||(t=a.inject("$registry")),!t||!t.router)return;let r;try{r=wu()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}e.value=new Ga(t,r);const i=t.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((s=t.getMeta)==null?void 0:s.call(t,l));u&&(t.addDoctype(u),e.value.setup(u),l&&(c?await e.value.getRecord(u,c):await e.value.getRecords(u)),e.value.runAction(u,"load",c?[c]:void 0))}),{stonecrop:e}}X(class $e{constructor(e,n){if(X(this,"name"),X(this,"registry"),X(this,"router"),X(this,"getMeta"),$e._root)return $e._root;$e._root=this,this.name="Registry",this.registry={},this.router=e,this.getMeta=n}addDoctype(e){e.doctype in Object.keys(this.registry)||(this.registry[e.slug]=e),e.component&&this.router&&!this.router.hasRoute(e.doctype)&&this.router.addRoute({path:`/${e.slug}`,name:e.slug,component:e.component})}},"_root");function Eu(t){return t&&typeof t.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Mt=Promise.resolve();function hr(t,e){return t||(t=0),new Promise(function(n){return setTimeout(function(){return n(e)},t)})}function bu(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Vn(){return Math.random().toString(36).substring(2)}var Cn=0;function oe(){var t=Date.now()*1e3;return t<=Cn&&(t=Cn+1),Cn=t,t}var ku=oe,Su="native";function Ou(t){var e={time:oe(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(n){e.messagesCallback&&e.messagesCallback(n.data)},e}function Iu(t){t.bc.close(),t.subFns=[]}function Tu(t,e){try{return t.bc.postMessage(e,!1),Mt}catch(n){return Promise.reject(n)}}function xu(t,e){t.messagesCallback=e}function Vu(){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 Cu(){return 150}var Nu={create:Ou,close:Iu,onMessage:xu,postMessage:Tu,canBeUsed:Vu,type:Su,averageResponseTime:Cu,microSeconds:ku};class mr{constructor(e){X(this,"ttl"),X(this,"map",new Map),X(this,"_to",!1),this.ttl=e}has(e){return this.map.has(e)}add(e){this.map.set(e,gr()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,$u(this)},0))}clear(){this.map.clear()}}function $u(t){const e=gr()-t.ttl,n=t.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const s=o[0];if(o[1]<e)t.map.delete(s);else return}}function gr(){return Date.now()}function Nn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var Pu=oe,Ru="pubkey.broadcast-channel-0-",rt="messages",Oe={durability:"relaxed"},Du="idb";function _r(){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 $n(t){t.commit&&t.commit()}function Au(t){var e=_r(),n=Ru+t,o=e.open(n);return o.onupgradeneeded=function(s){var r=s.target.result;r.createObjectStore(rt,{keyPath:"id",autoIncrement:!0})},new Promise(function(s,r){o.onerror=function(i){return r(i)},o.onsuccess=function(){s(o.result)}})}function ju(t,e,n){var o=Date.now(),s={uuid:e,time:o,data:n},r=t.transaction([rt],"readwrite",Oe);return new Promise(function(i,l){r.oncomplete=function(){return i()},r.onerror=function(u){return l(u)};var c=r.objectStore(rt);c.add(s),$n(r)})}function Lu(t,e){var n=t.transaction(rt,"readonly",Oe),o=n.objectStore(rt),s=[],r=IDBKeyRange.bound(e+1,1/0);if(o.getAll){var i=o.getAll(r);return new Promise(function(c,u){i.onerror=function(p){return u(p)},i.onsuccess=function(p){c(p.target.result)}})}function l(){try{return r=IDBKeyRange.bound(e+1,1/0),o.openCursor(r)}catch{return o.openCursor()}}return new Promise(function(c,u){var p=l();p.onerror=function(d){return u(d)},p.onsuccess=function(d){var f=d.target.result;f?f.value.id<e+1?f.continue(e+1):(s.push(f.value),f.continue()):($n(n),c(s))}})}function Mu(t,e){if(t.closed)return Promise.resolve([]);var n=t.db.transaction(rt,"readwrite",Oe),o=n.objectStore(rt);return Promise.all(e.map(function(s){var r=o.delete(s);return new Promise(function(i){r.onsuccess=function(){return i()}})}))}function Bu(t,e){var n=Date.now()-e,o=t.transaction(rt,"readonly",Oe),s=o.objectStore(rt),r=[];return new Promise(function(i){s.openCursor().onsuccess=function(l){var c=l.target.result;if(c){var u=c.value;u.time<n?(r.push(u),c.continue()):($n(o),i(r))}else i(r)}})}function Uu(t){return Bu(t.db,t.options.idb.ttl).then(function(e){return Mu(t,e.map(function(n){return n.id}))})}function zu(t,e){return e=Nn(e),Au(t).then(function(n){var o={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Vn(),eMIs:new mr(e.idb.ttl*2),writeBlockPromise:Mt,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,e.idb.onclose&&e.idb.onclose()},yr(o),o})}function yr(t){t.closed||vr(t).then(function(){return hr(t.options.idb.fallbackInterval)}).then(function(){return yr(t)})}function Hu(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function vr(t){return t.closed||!t.messagesCallback?Mt:Lu(t.db,t.lastCursorId).then(function(e){var n=e.filter(function(o){return!!o}).map(function(o){return o.id>t.lastCursorId&&(t.lastCursorId=o.id),o}).filter(function(o){return Hu(o,t)}).sort(function(o,s){return o.time-s.time});return n.forEach(function(o){t.messagesCallback&&(t.eMIs.add(o.id),t.messagesCallback(o.data))}),Mt})}function Ku(t){t.closed=!0,t.db.close()}function Fu(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return ju(t.db,t.uuid,e)}).then(function(){bu(0,10)===0&&Uu(t)}),t.writeBlockPromise}function Wu(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e,vr(t)}function Gu(){return!!_r()}function Ju(t){return t.idb.fallbackInterval*2}var Yu={create:zu,close:Ku,onMessage:Wu,postMessage:Fu,canBeUsed:Gu,type:Du,averageResponseTime:Ju,microSeconds:Pu},qu=oe,Xu="pubkey.broadcastChannel-",Zu="localstorage";function wr(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function Er(t){return Xu+t}function Qu(t,e){return new Promise(function(n){hr().then(function(){var o=Er(t.channelName),s={token:Vn(),time:Date.now(),data:e,uuid:t.uuid},r=JSON.stringify(s);wr().setItem(o,r);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=r,window.dispatchEvent(i),n()})})}function td(t,e){var n=Er(t),o=function(s){s.key===n&&e(JSON.parse(s.newValue))};return window.addEventListener("storage",o),o}function ed(t){window.removeEventListener("storage",t)}function nd(t,e){if(e=Nn(e),!br())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Vn(),o=new mr(e.localstorage.removeTimeout),s={channelName:t,uuid:n,eMIs:o};return s.listener=td(t,function(r){s.messagesCallback&&r.uuid!==n&&(!r.token||o.has(r.token)||r.data.time&&r.data.time<s.messagesCallbackTime||(o.add(r.token),s.messagesCallback(r.data)))}),s}function od(t){ed(t.listener)}function sd(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e}function br(){var t=wr();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function rd(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var id={create:nd,close:od,onMessage:sd,postMessage:Qu,canBeUsed:br,type:Zu,averageResponseTime:rd,microSeconds:qu},kr=oe,ad="simulate",Pn=new Set;function ld(t){var e={time:kr(),name:t,messagesCallback:null};return Pn.add(e),e}function cd(t){Pn.delete(t)}var Sr=5;function ud(t,e){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Pn);o.forEach(function(s){s.name===t.name&&s!==t&&s.messagesCallback&&s.time<e.time&&s.messagesCallback(e)}),n()},Sr)})}function dd(t,e){t.messagesCallback=e}function fd(){return!0}function pd(){return Sr}var hd={create:ld,close:cd,onMessage:dd,postMessage:ud,canBeUsed:fd,type:ad,averageResponseTime:pd,microSeconds:kr},Or=[Nu,Yu,id];function md(t){var e=[].concat(t.methods,Or).filter(Boolean);if(t.type){if(t.type==="simulate")return hd;var n=e.find(function(s){return s.type===t.type});if(n)return n;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||(e=e.filter(function(s){return s.type!=="idb"}));var o=e.find(function(s){return s.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(Or.map(function(s){return s.type})))}var Ir=new Set,gd=0,Rn=function(t,e){this.id=gd++,Ir.add(this),this.name=t,this.options=Nn(e),this.method=md(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,_d(this)};Rn._pubkey=!0,Rn.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Tr(this,"message",t)},postInternal:function(t){return Tr(this,"internal",t)},set onmessage(t){var e=this.method.microSeconds(),n={time:e,fn:t};Cr(this,"message",this._onML),t&&typeof t=="function"?(this._onML=n,Vr(this,"message",n)):this._onML=null},addEventListener:function(t,e){var n=this.method.microSeconds(),o={time:n,fn:e};Vr(this,t,o)},removeEventListener:function(t,e){var n=this._addEL[t].find(function(o){return o.fn===e});Cr(this,t,n)},close:function(){var t=this;if(!this.closed){Ir.delete(this),this.closed=!0;var e=this._prepP?this._prepP:Mt;return this._onML=null,this._addEL.message=[],e.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Tr(t,e,n){var o=t.method.microSeconds(),s={time:o,type:e,data:n},r=t._prepP?t._prepP:Mt;return r.then(function(){var i=t.method.postMessage(t._state,s);return t._uMP.add(i),i.catch().then(function(){return t._uMP.delete(i)}),i})}function _d(t){var e=t.method.create(t.name,t.options);Eu(e)?(t._prepP=e,e.then(function(n){t._state=n})):t._state=e}function xr(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function Vr(t,e,n){t._addEL[e].push(n),yd(t)}function Cr(t,e,n){t._addEL[e]=t._addEL[e].filter(function(o){return o!==n}),vd(t)}function yd(t){if(!t._iL&&xr(t)){var e=function(o){t._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},n=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,n)}):(t._iL=!0,t.method.onMessage(t._state,e,n))}}function vd(t){if(t._iL&&!xr(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}function Nr(t,e={serialize:JSON.stringify,deserialize:JSON.parse}){return e.deserialize(e.serialize(t))}function wd(t,e){return Object.keys(e).includes(t)}function Ed({enable:t=!0,initialize:e=!0,type:n,serializer:o}){return({store:s,options:r})=>{var i,l,c;const u=((i=r==null?void 0:r.share)==null?void 0:i.enable)??t,p=((l=r==null?void 0:r.share)==null?void 0:l.omit)??[];if(!u)return;const d=new Rn(s.$id,{type:n});let f=0,h=!1;const m=Object.keys(s.$state).filter(_=>!p.includes(_)&&wd(_,s.$state));d.onmessage=_=>{if(_===void 0){d.postMessage({timestamp:f,state:Nr(s.$state,o)});return}_.timestamp<=f||(h=!0,f=_.timestamp,s.$patch(g=>{m.forEach(v=>{g[v]=_.state[v]})}))},(((c=r==null?void 0:r.share)==null?void 0:c.initialize)??e)&&d.postMessage(void 0),s.$subscribe((_,g)=>{h||(f=Date.now(),d.postMessage({timestamp:f,state:Nr(g,o)})),h=!1})}}mu().use(Ed({enable:!0,initialize:!0}));const $r=a.defineComponent({__name:"Doctype",setup(t){const{stonecrop:e}=pr(),n=a.ref([]);return a.watch(e,()=>{var o;if(e.value){let s=(o=e.value.schema)==null?void 0:o.schema.toArray();s||(s=[]),s.forEach((r,i)=>{var u;const l=(u=e.value)==null?void 0:u.store.record,c=l==null?void 0:l[r.fieldname];s[i].value=c}),n.value=s}}),(o,s)=>(a.openBlock(),a.createBlock(a.unref(ji),{class:"aform-main",modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=r=>n.value=r)},null,8,["modelValue"]))}});/*!
|
|
12
14
|
* pinia v3.0.3
|
|
13
15
|
* (c) 2025 Eduardo San Martin Morote
|
|
14
16
|
* @license MIT
|
|
15
|
-
*/let
|
|
17
|
+
*/let se;const Ie=t=>se=t,bd=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function wt(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var re;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(re||(re={}));const ie=typeof window<"u";function Pr(t,e){for(const n in e){const o=e[n];if(!(n in t))continue;const s=t[n];wt(s)&&wt(o)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=Pr(s,o):t[n]=o}return t}const Rr=()=>{};function Dr(t,e,n,o=Rr){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(s),s}function Bt(t,...e){t.slice().forEach(n=>{n(...e)})}const kd=t=>t(),Ar=Symbol(),Dn=Symbol();function An(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,o)=>t.set(o,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],s=t[n];wt(s)&&wt(o)&&t.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=An(s,o):t[n]=o}return t}const Sd=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Od(t){return!wt(t)||!Object.prototype.hasOwnProperty.call(t,Sd)}const{assign:Q}=Object;function jr(t){return!!(a.isRef(t)&&t.effect)}function Lr(t,e,n,o){const{state:s,actions:r,getters:i}=e,l=n.state.value[t];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[t]=s?s():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(s?s():{}).value):a.toRefs(n.state.value[t]);return Q(p,r,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=a.markRaw(a.computed(()=>{Ie(n);const h=n._s.get(t);return i[f].call(h,h)})),d),{}))}return c=jn(t,u,e,n,o,!0),c}function jn(t,e,n={},o,s,r){let i;const l=Q({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=w=>{u?h=w:u==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(w):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,p,d=[],f=[],h;const m=o.state.value[t];!r&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[t]={});const _=a.ref({});let g;function v(w){let S;u=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof w=="function"?(w(o.state.value[t]),S={type:re.patchFunction,storeId:t,events:h}):(An(o.state.value[t],w),S={type:re.patchObject,payload:w,storeId:t,events:h});const C=g=Symbol();a.nextTick().then(()=>{g===C&&(u=!0)}),p=!0,Bt(d,S,o.state.value[t])}const I=r?function(){const{state:S}=n,C=S?S():{};this.$patch(D=>{Q(D,C)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Rr;function V(){i.stop(),d=[],f=[],o._s.delete(t)}const P=(w,S="")=>{if(Ar in w)return w[Dn]=S,w;const C=function(){Ie(o);const D=Array.from(arguments),G=[],U=[];function $(E){G.push(E)}function F(E){U.push(E)}Bt(f,{args:D,name:C[Dn],store:k,after:$,onError:F});let y;try{y=w.apply(this&&this.$id===t?this:k,D)}catch(E){throw Bt(U,E),E}return y instanceof Promise?y.then(E=>(Bt(G,E),E)).catch(E=>(Bt(U,E),Promise.reject(E))):(Bt(G,y),y)};return C[Ar]=!0,C[Dn]=S,C},R=a.markRaw({actions:{},getters:{},state:[],hotState:_}),Y={_p:o,$id:t,$onAction:Dr.bind(null,f),$patch:v,$reset:I,$subscribe(w,S={}){const C=Dr(d,w,S.detached,()=>D()),D=i.run(()=>a.watch(()=>o.state.value[t],G=>{(S.flush==="sync"?p:u)&&w({storeId:t,type:re.direct,events:h},G)},Q({},c,S)));return C},$dispose:V},k=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie?Q({_hmrPayload:R,_customProperties:a.markRaw(new Set)},Y):Y);o._s.set(t,k);const T=(o._a&&o._a.runWithContext||kd)(()=>o._e.run(()=>(i=a.effectScope()).run(()=>e({action:P}))));for(const w in T){const S=T[w];if(a.isRef(S)&&!jr(S)||a.isReactive(S))process.env.NODE_ENV!=="production"&&s?_.value[w]=a.toRef(T,w):r||(m&&Od(S)&&(a.isRef(S)?S.value=m[w]:An(S,m[w])),o.state.value[t][w]=S),process.env.NODE_ENV!=="production"&&R.state.push(w);else if(typeof S=="function"){const C=process.env.NODE_ENV!=="production"&&s?S:P(S,w);T[w]=C,process.env.NODE_ENV!=="production"&&(R.actions[w]=S),l.actions[w]=S}else process.env.NODE_ENV!=="production"&&jr(S)&&(R.getters[w]=r?n.getters[w]:S,ie&&(T._getters||(T._getters=a.markRaw([]))).push(w))}if(Q(k,T),Q(a.toRaw(k),T),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:o.state.value[t],set:w=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");v(S=>{Q(S,w)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(w=>{k._hotUpdating=!0,w._hmrPayload.state.forEach(S=>{if(S in k.$state){const C=w.$state[S],D=k.$state[S];typeof C=="object"&&wt(C)&&wt(D)?Pr(C,D):w.$state[S]=D}k[S]=a.toRef(w.$state,S)}),Object.keys(k.$state).forEach(S=>{S in w.$state||delete k[S]}),u=!1,p=!1,o.state.value[t]=a.toRef(w._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{u=!0});for(const S in w._hmrPayload.actions){const C=w[S];k[S]=P(C,S)}for(const S in w._hmrPayload.getters){const C=w._hmrPayload.getters[S],D=r?a.computed(()=>(Ie(o),C.call(k,k))):C;k[S]=D}Object.keys(k._hmrPayload.getters).forEach(S=>{S in w._hmrPayload.getters||delete k[S]}),Object.keys(k._hmrPayload.actions).forEach(S=>{S in w._hmrPayload.actions||delete k[S]}),k._hmrPayload=w._hmrPayload,k._getters=w._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const w={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(S=>{Object.defineProperty(k,S,Q({value:k[S]},w))})}return o._p.forEach(w=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const S=i.run(()=>w({store:k,app:o._a,pinia:o,options:l}));Object.keys(S||{}).forEach(C=>k._customProperties.add(C)),Q(k,S)}else Q(k,i.run(()=>w({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
18
|
state: () => new MyClass()
|
|
17
|
-
Found in store "${
|
|
19
|
+
Found in store "${k.$id}".`),m&&r&&n.hydrate&&n.hydrate(k.$state,m),u=!0,p=!0,k}/*! #__NO_SIDE_EFFECTS__ */function Id(t,e,n){let o;const s=typeof e=="function";o=s?n:e;function r(i,l){const c=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&se&&se._testing?null:i)||(c?a.inject(bd,null):null),i&&Ie(i),process.env.NODE_ENV!=="production"&&!se)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
20
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
19
|
-
This will fail in production.`);l=Ue,l._s.has(e)||(r?Xt(e,t,o,l):Sr(e,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const u=l._s.get(e);if(process.env.NODE_ENV!=="production"&&i){const d="__hot:"+e,p=r?Xt(d,t,o,l,!0):Sr(d,X({},o),l,!0);i._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ze){const d=s.getCurrentInstance();if(d&&d.proxy&&!i){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[e]=u}}return u}return a.$id=e,a}function Zt(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const sc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ac=e=>e!=null,lc=Object.prototype.toString,ic=e=>lc.call(e)==="[object Object]",cc=()=>{};function st(e){return Array.isArray(e)?e:[e]}function uc(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const Ie=sc?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 Ke(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=st(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=uc(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>Te(u)))!=null?c:[Ie].filter(u=>u!=null),st(s.toValue(r.value?e[1]:e[0])),st(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=ic(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return Zt(n),l}function dc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function fc(e){const t=dc();return s.computed(()=>(t.value,!!e()))}function pc(e,t,n={}){const{window:o=Ie,...r}=n;let a;const l=fc(()=>o&&"MutationObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const h=s.toValue(e),f=st(h).map(Te).filter(ac);return new Set(f)}),u=s.watch(()=>c.value,h=>{i(),l.value&&h.size&&(a=new MutationObserver(t),h.forEach(f=>a.observe(f,r)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),p=()=>{u(),i()};return Zt(p),{isSupported:l,stop:p,takeRecords:d}}function hc(e,t,n={}){const{window:o=Ie,document:r=o==null?void 0:o.document,flush:a="sync"}=n;if(!o||!r)return cc;let l;const i=d=>{l==null||l(),l=d},c=s.watchEffect(()=>{const d=Te(e);if(d){const{stop:p}=pc(r,h=>{h.map(f=>[...f.removedNodes]).flat().some(f=>f===d||f.contains(d))&&t(h)},{window:o,childList:!0,subtree:!0});i(p)}},{flush:a}),u=()=>{c(),i()};return Zt(u),u}function mc(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var u;let d=a==null?void 0:a.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(u=d==null?void 0:d.shadowRoot)==null?void 0:u.activeElement;return d},i=s.shallowRef(),c=()=>{i.value=l()};if(n){const u={capture:!0,passive:!0};Ke(n,"blur",d=>{d.relatedTarget===null&&c()},u),Ke(n,"focus",c,u)}return r&&hc(i,c,{document:a}),c(),i}const _c="focusin",gc="focusout",yc=":focus-within";function Ec(e,t={}){const{window:n=Ie}=t,o=s.computed(()=>Te(e)),r=s.shallowRef(!1),a=s.computed(()=>r.value),l=mc(t);if(!n||!l.value)return{focused:a};const i={passive:!0};return Ke(o,_c,()=>r.value=!0,i),Ke(o,gc,()=>{var c,u,d;return r.value=(d=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,yc))!=null?d:!1},i),{focused:a}}function wc(e,{window:t=Ie,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const a=t.document,l=Te(e);if(!l)o.value=!1;else{const i=l.getBoundingClientRect();o.value=i.top<=(t.innerHeight||a.documentElement.clientHeight)&&i.left<=(t.innerWidth||a.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return s.watch(()=>Te(e),()=>r(),{immediate:!0,flush:"post"}),t&&Ke(n||t,"scroll",r,{capture:!1,passive:!0}),o}const oe=e=>{let t=wc(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,Ir=e=>{const t=e.target;return Qt(t)},Qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Qt(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.firstElementChild,l=a==null?void 0:a.children[n.cellIndex];l&&(o=l)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.firstElementChild;a&&(o=a)}}return o&&(!re(o)||!oe(o))?en(o):o},Tr=e=>{const t=e.target;return en(t)},en=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?en(n):n},vc=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,l=a==null?void 0:a.children[n.cellIndex];l&&(o=l)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.lastElementChild;a&&(o=a)}}return o&&(!re(o)||!oe(o))?Qt(o):o},Vr=e=>{const t=e.target;return tn(t)},tn=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?tn(n):n},Cr=e=>{const t=e.target;return nn(t)},nn=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?nn(n):n},Nr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.firstElementChild;return n&&(!re(n)||!oe(n))?nn(n):n},Pr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.lastElementChild;return n&&(!re(n)||!oe(n))?tn(n):n},at=["alt","control","shift","meta"],kc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Rr={"keydown.up":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Tr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Vr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Cr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=bc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=vc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Nr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Pr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Pr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Tr(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ir(e);t&&t.focus()}},"keydown.home":e=>{const t=Nr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Cr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Oc(e){const t=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{var i;const c=t(l);let u=[];if(typeof l.selectors=="string")u=c?Array.from(c.querySelectorAll(l.selectors)):Array.from(document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const d of l.selectors)d instanceof HTMLElement?u.push(d):u.push(d.$el);else if(l.selectors instanceof HTMLElement)u.push(l.selectors);else if((i=l.selectors)!=null&&i.value)if(Array.isArray(l.selectors.value))for(const d of l.selectors.value)d instanceof HTMLElement?u.push(d):u.push(d.$el);else u.push(l.selectors.value);return u},o=l=>{const i=t(l);let c=[];return l.selectors?c=n(l):i&&(c=Array.from(i.children).filter(u=>re(u)&&oe(u))),c},r=l=>i=>{const c=kc[i.key]||i.key.toLowerCase();if(at.includes(c))return;const u=l.handlers||Rr;for(const d of Object.keys(u)){const[p,...h]=d.split(".");if(p==="keydown"&&h.includes(c)){const f=u[d],_=h.filter(m=>at.includes(m)),v=at.some(m=>{const g=m.charAt(0).toUpperCase()+m.slice(1);return i.getModifierState(g)});if(_.length>0){if(v){for(const m of at)if(h.includes(m)){const g=m.charAt(0).toUpperCase()+m.slice(1);i.getModifierState(g)&&f(i)}}}else v||f(i)}}},a=[];s.onMounted(()=>{for(const l of e){const i=t(l),c=o(l),u=r(l),d=i?[i]:c;for(const p of d){const{focused:h}=Ec(s.ref(p)),f=s.watch(h,_=>{_?p.addEventListener("keydown",u):p.removeEventListener("keydown",u)});a.push(f)}}}),s.onBeforeUnmount(()=>{for(const l of a)l()})}function Ve(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const on=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Sc=e=>e!=null,Ic=Object.prototype.toString,xr=e=>Ic.call(e)==="[object Object]",pe=()=>{},rn=Tc();function Tc(){var e,t;return on&&((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 Vc(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:pe}))):s.ref(t)}function he(e){return Array.isArray(e)?e:[e]}function Cc(e){return s.getCurrentInstance()}function Nc(e,t=!0,n){Cc()?s.onMounted(e,n):t?e():s.nextTick(e)}function Dr(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const sn=on?window:void 0;function Ce(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ar(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=he(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=Dr(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>Ce(u)))!=null?c:[sn].filter(u=>u!=null),he(s.toValue(r.value?e[1]:e[0])),he(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=xr(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return Ve(n),l}function Pc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function $r(e){const t=Pc();return s.computed(()=>(t.value,!!e()))}function Lr(e,t,n={}){const{window:o=sn,...r}=n;let a;const l=$r(()=>o&&"MutationObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const h=s.toValue(e),f=he(h).map(Ce).filter(Sc);return new Set(f)}),u=s.watch(()=>c.value,h=>{i(),l.value&&h.size&&(a=new MutationObserver(t),h.forEach(f=>a.observe(f,r)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),p=()=>{u(),i()};return Ve(p),{isSupported:l,stop:p,takeRecords:d}}function Rc(e,t,n={}){const{window:o=sn,...r}=n;let a;const l=$r(()=>o&&"ResizeObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const p=s.toValue(e);return Array.isArray(p)?p.map(h=>Ce(h)):[Ce(p)]}),u=s.watch(c,p=>{if(i(),l.value&&o){a=new ResizeObserver(t);for(const h of p)h&&a.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{i(),u()};return Ve(d),{isSupported:l,stop:d}}function xc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:l="sync"}=t,i=s.shallowRef(0),c=s.shallowRef(0),u=s.shallowRef(0),d=s.shallowRef(0),p=s.shallowRef(0),h=s.shallowRef(0),f=s.shallowRef(0),_=s.shallowRef(0);function v(){const g=Ce(e);if(!g){n&&(i.value=0,c.value=0,u.value=0,d.value=0,p.value=0,h.value=0,f.value=0,_.value=0);return}const I=g.getBoundingClientRect();i.value=I.height,c.value=I.bottom,u.value=I.left,d.value=I.right,p.value=I.top,h.value=I.width,f.value=I.x,_.value=I.y}function m(){l==="sync"?v():l==="next-frame"&&requestAnimationFrame(()=>v())}return Rc(e,m),s.watch(()=>Ce(e),g=>!g&&m()),Lr(e,m,{attributeFilter:["style","class"]}),r&&Ar("scroll",m,{capture:!0,passive:!0}),o&&Ar("resize",m,{passive:!0}),Nc(()=>{a&&m()}),{height:i,bottom:c,left:u,right:d,top:p,width:h,x:f,y:_,update:m}}const Dc=(e=8)=>Array.from({length:e},()=>Math.floor(Math.random()*16).toString(16)).join(""),an=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ac=["tabindex"],$c=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=Rr;typeof e.addNavigation=="object"&&(r={...r,...e.addNavigation}),Oc([{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.isTreeView?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:s.normalizeClass(["tree-index",r.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=l=>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]])}}),Lc=an($c,[["__scopeId","data-v-c554ee0f"]]),ln=on?window:void 0;function me(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function lt(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=he(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=Dr(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>me(u)))!=null?c:[ln].filter(u=>u!=null),he(s.toValue(r.value?e[1]:e[0])),he(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=xr(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return Ve(n),l}let jr=!1;function Mr(e,t,n={}){const{window:o=ln,ignore:r=[],capture:a=!0,detectIframe:l=!1,controls:i=!1}=n;if(!o)return i?{stop:pe,cancel:pe,trigger:pe}:pe;if(rn&&!jr){jr=!0;const m={passive:!0};Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",pe,m)),o.document.documentElement.addEventListener("click",pe,m)}let c=!0;const u=m=>s.toValue(r).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(I=>I===m.target||m.composedPath().includes(I));{const I=me(g);return I&&(m.target===I||m.composedPath().includes(I))}});function d(m){const g=s.toValue(m);return g&&g.$.subTree.shapeFlag===16}function p(m,g){const I=s.toValue(m),C=I.$.subTree&&I.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(x=>x.el===g.target||g.composedPath().includes(x.el))}const h=m=>{const g=me(e);if(m.target!=null&&!(!(g instanceof Element)&&d(e)&&p(e,m))&&!(!g||g===m.target||m.composedPath().includes(g))){if("detail"in m&&m.detail===0&&(c=!u(m)),!c){c=!0;return}t(m)}};let f=!1;const _=[lt(o,"click",m=>{f||(f=!0,setTimeout(()=>{f=!1},0),h(m))},{passive:!0,capture:a}),lt(o,"pointerdown",m=>{const g=me(e);c=!u(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),l&<(o,"blur",m=>{setTimeout(()=>{var g;const I=me(e);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&t(m)},0)},{passive:!0})].filter(Boolean),v=()=>_.forEach(m=>m());return i?{stop:v,cancel:()=>{c=!1},trigger:m=>{c=!0,h(m),c=!1}}:v}const cn=new WeakMap,jc={mounted(e,t){const n=!t.modifiers.bubble;let o;if(typeof t.value=="function")o=Mr(e,t.value,{capture:n});else{const[r,a]=t.value;o=Mr(e,r,Object.assign({capture:n},a))}cn.set(e,o)},unmounted(e){const t=cn.get(e);t&&typeof t=="function"?t():t==null||t.stop(),cn.delete(e)}};function Mc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Bc(e){const t=Mc();return s.computed(()=>(t.value,!!e()))}function Br(e,t,n={}){const{window:o=ln,...r}=n;let a;const l=Bc(()=>o&&"ResizeObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const p=s.toValue(e);return Array.isArray(p)?p.map(h=>me(h)):[me(p)]}),u=s.watch(c,p=>{if(i(),l.value&&o){a=new ResizeObserver(t);for(const h of p)h&&a.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{i(),u()};return Ve(d),{isSupported:l,stop:d}}function un(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"?Br(e,t.value):Br(e,...t.value)}};function Ur(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:Ur(n)}}function Hc(e){const t=e||window.event,n=t.target;return Ur(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const dn=new WeakMap;function zc(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(Vc(e),i=>{const c=un(s.toValue(i));if(c){const u=c;if(dn.get(u)||dn.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 i=un(s.toValue(e));!i||n.value||(rn&&(o=lt(i,"touchmove",c=>{Hc(c)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=un(s.toValue(e));!i||!n.value||(rn&&(o==null||o()),i.style.overflow=r,dn.delete(i),n.value=!1)};return Ve(l),s.computed({get(){return n.value},set(i){i?a():l()}})}function Kc(){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)}}Kc();const Fc={class:"gantt-connection-overlay"},Wc={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},Gc=["d","stroke-width","onDblclick"],Yc=["d","stroke","stroke-width","id","onDblclick"],qc=.25,it=16,Jc=s.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(e,{emit:t}){const n=t,o=s.computed(()=>e.store.connectionPaths.filter(l=>{const i=e.store.ganttBars.find(u=>u.id===l.from.barId),c=e.store.ganttBars.find(u=>u.id===l.to.barId);return i&&c})),r=(l,i=!1)=>{const c=e.store.connectionHandles.find(j=>j.barId===l.from.barId&&j.side===l.from.side),u=e.store.connectionHandles.find(j=>j.barId===l.to.barId&&j.side===l.to.side);if(!c||!u)return"";const d=c.position.x+it/2,p=c.position.y+it/2,h=u.position.x+it/2,f=u.position.y+it/2,_=Math.abs(h-d),v=Math.max(_*qc,50),m=d+(l.from.side==="left"?-v:v),g=h+(l.to.side==="left"?-v:v),I={x:.5*d+.5*m,y:.5*p+.5*p},C={x:.5*m+.5*g,y:.5*p+.5*f},x={x:.5*g+.5*h,y:.5*f+.5*f},D={x:.5*I.x+.5*C.x,y:.5*I.y+.5*C.y},Y={x:.5*C.x+.5*x.x,y:.5*C.y+.5*x.y},O={x:.5*D.x+.5*Y.x,y:.5*D.y+.5*Y.y};return`M ${d} ${p} Q ${m} ${p}, ${O.x} ${O.y} Q ${g} ${f}, ${h} ${f}`},a=l=>{e.store.deleteConnection(l.id)&&n("connection:delete",l)};return(l,i)=>(s.openBlock(),s.createElementBlock("div",Fc,[(s.openBlock(),s.createElementBlock("svg",Wc,[i[0]||(i[0]=s.createElementVNode("defs",null,[s.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),s.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[s.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u;return s.openBlock(),s.createElementBlock("path",{key:`${c.id}-hitbox`,d:r(c),stroke:"transparent","stroke-width":(((u=c.style)==null?void 0:u.width)||2)+10,fill:"none",class:"connection-hitbox",onDblclick:d=>a(c)},null,40,Gc)}),128)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u,d;return s.openBlock(),s.createElementBlock("path",{key:c.id,d:r(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((d=c.style)==null?void 0:d.width)||2,fill:"none","marker-mid":"url(#arrowhead-marker)",id:c.id,class:"connection-path animated-path",onDblclick:p=>a(c)},null,40,Yc)}),128))]))]))}}),Xc=an(Jc,[["__scopeId","data-v-955111b6"]]),Zc={key:0},Qc={class:"atable-header-row",tabindex:"-1"},eu=["data-colindex"],tu=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,l=Number(r.target.dataset.colindex),i=(o=e.store.columns[l])==null?void 0:o.width;typeof i=="number"&&i!==a&&e.store.resizeColumn(l,a)}};return(n,o)=>n.columns.length?(s.openBlock(),s.createElementBlock("thead",Zc,[s.createElementVNode("tr",Qc,[n.store.zeroColumn?(s.openBlock(),s.createElementBlock("th",{key:0,id:"header-index",class:s.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.isTreeView?"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,eu)),[[s.unref(Uc),t]])),128))])])):s.createCommentVNode("",!0)}}),nu=s.defineComponent({__name:"ATableModal",props:{store:{}},setup(e){const t=s.useTemplateRef("amodal"),{width:n,height:o}=xc(t),r=s.computed(()=>{var a,l,i,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"),d=u.offsetHeight||0,p=u.offsetWidth||0;let h=((l=e.store.modal.cell)==null?void 0:l.offsetTop)||0;const f=((i=u.querySelector("thead"))==null?void 0:i.offsetHeight)||0;h+=f,h=h+o.value<d?h:h-(o.value+e.store.modal.height);let _=((c=e.store.modal.cell)==null?void 0:c.offsetLeft)||0;return _=_+n.value<=p?_:_-(n.value-e.store.modal.width),{left:`${_}px`,top:`${h}px`}});return(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:l[0]||(l[0]=s.withModifiers(()=>{},["stop"])),onInput:l[1]||(l[1]=s.withModifiers(()=>{},["stop"])),style:s.normalizeStyle(r.value)},[s.renderSlot(a.$slots,"default")],36))}}),ou=e=>{const t=e.id||Dc();return rc(`table-${t}`,()=>{const n=()=>{const E=[Object.assign({},{rowModified:!1})],w=new Set;for(let k=0;k<r.value.length;k++){const R=r.value[k];R.parent!==null&&R.parent!==void 0&&w.add(R.parent)}for(let k=0;k<r.value.length;k++){const R=r.value[k];E[k]={childrenOpen:!1,expanded:!1,indent:R.indent||0,isParent:w.has(k),isRoot:R.parent===null||R.parent===void 0,rowModified:!1,open:R.parent===null||R.parent===void 0,parent:R.parent}}return E},o=s.ref(e.columns),r=s.ref(e.rows),a=s.ref(e.config||{}),l=s.ref({}),i=s.ref({}),c=s.computed(()=>{const E={};for(const[w,k]of o.value.entries())for(const[R,$]of r.value.entries())E[`${w}:${R}`]=$[k.name];return E}),u=s.computed({get:()=>{const E=n();for(let w=0;w<E.length;w++)l.value[w]&&(E[w].rowModified=l.value[w]),i.value[w]&&(i.value[w].childrenOpen!==void 0&&(E[w].childrenOpen=i.value[w].childrenOpen),i.value[w].expanded!==void 0&&(E[w].expanded=i.value[w].expanded));if(g.value){const w=(k,R)=>{const $=R[k];if($.isRoot||$.parent===null||$.parent===void 0)return!0;const B=$.parent;return B<0||B>=R.length?!1:(R[B].childrenOpen||!1)&&w(B,R)};for(let k=0;k<E.length;k++)E[k].isRoot||(E[k].open=w(k,E))}return E},set:E=>{JSON.stringify(E)!==JSON.stringify(u.value)&&(u.value=E)}}),d=s.ref(e.modal||{visible:!1}),p=s.ref({}),h=s.ref([]),f=s.ref([]),_=s.ref([]),v=s.computed(()=>o.value.some(E=>E.pinned)),m=s.computed(()=>a.value.view==="gantt"||a.value.view==="tree-gantt"),g=s.computed(()=>a.value.view==="tree"||a.value.view==="tree-gantt"),I=s.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),C=s.computed(()=>a.value.view?["list","tree","tree-gantt","list-expansion"].includes(a.value.view):!1),x=(E,w)=>c.value[`${E}:${w}`],D=(E,w,k)=>{const R=`${E}:${w}`,$=o.value[E];c.value[R]!==k&&(l.value[w]=!0),c.value[R]=k,r.value[w]={...r.value[w],[$.name]:k}},Y=E=>{r.value=E},O=(E,w,k)=>{const R=`${E}:${w}`;c.value[R]!==k&&(l.value[w]=!0,p.value[R]=k)},j=E=>{const w=o.value.indexOf(E)===o.value.length-1,k=a.value.fullWidth?E.resizable&&!w:E.resizable;return{width:E.width||"40ch",textAlign:E.align||"center",...k&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},T=(E,w)=>{if(E<0||E>=o.value.length)return;const k=Math.max(w,40);o.value[E]={...o.value[E],width:`${k}px`}},y=E=>{const w=r.value[E];return m.value&&w.gantt!==void 0},S=E=>!g.value||u.value[E].isRoot||u.value[E].open,N=E=>!g.value&&a.value.view!=="list-expansion"?"":g.value&&(u.value[E].isRoot||u.value[E].isParent)?u.value[E].childrenOpen?"▼":"►":a.value.view==="list-expansion"?u.value[E].expanded?"▼":"►":"",A=E=>{if(g.value){const w=i.value[E]||{},k=!(w.childrenOpen??u.value[E].childrenOpen);i.value[E]={...w,childrenOpen:k},k||W(E)}else if(a.value.view==="list-expansion"){const w=i.value[E]||{},k=w.expanded??u.value[E].expanded;i.value[E]={...w,expanded:!k}}},W=E=>{for(let w=0;w<r.value.length;w++)if(u.value[w].parent===E){const k=i.value[w]||{};i.value[w]={...k,childrenOpen:!1},W(w)}},H=(E,w)=>{const k=x(E,w);return P(E,w,k)},P=(E,w,k)=>{const R=o.value[E],$=r.value[w],B=R.format;return B?typeof B=="function"?B(k,{table:c.value,row:$,column:R}):typeof B=="string"?Function(`"use strict";return (${B})`)()(k,{table:c.value,row:$,column:R}):k:k};return{columns:o,config:a,connectionHandles:f,connectionPaths:_,display:u,ganttBars:h,modal:d,rows:r,table:c,updates:p,hasPinnedColumns:v,isGanttView:m,isTreeView:g,numberedRowWidth:I,zeroColumn:C,closeModal:E=>{var w;E.target instanceof Node&&(w=d.value.parent)!=null&&w.contains(E.target)||d.value.visible&&(d.value.visible=!1)},createConnection:(E,w,k)=>{const R=f.value.find(Ne=>Ne.id===E),$=f.value.find(Ne=>Ne.id===w);if(!R||!$)return console.warn("Cannot create connection: handle not found"),null;const B={id:`connection-${E}-${w}`,from:{barId:R.barId,side:R.side},to:{barId:$.barId,side:$.side},style:k==null?void 0:k.style,label:k==null?void 0:k.label};return _.value.push(B),B},deleteConnection:E=>{const w=_.value.findIndex(k=>k.id===E);return w>=0?(_.value.splice(w,1),!0):!1},getCellData:x,getCellDisplayValue:H,getConnectionsForBar:E=>_.value.filter(w=>w.from.barId===E||w.to.barId===E),getFormattedValue:P,getHandlesForBar:E=>f.value.filter(w=>w.barId===E),getHeaderCellStyle:j,getIndent:(E,w)=>w&&E===0&&w>0?`${w}ch`:"inherit",getRowExpandSymbol:N,isRowGantt:y,isRowVisible:S,registerConnectionHandle:E=>{const w=f.value.findIndex(k=>k.id===E.id);w>=0?f.value[w]=E:f.value.push(E)},registerGanttBar:E=>{const w=h.value.findIndex(k=>k.id===E.id);w>=0?h.value[w]=E:h.value.push(E)},resizeColumn:T,setCellData:D,setCellText:O,toggleRowExpand:A,unregisterConnectionHandle:E=>{const w=f.value.findIndex(k=>k.id===E);w>=0&&f.value.splice(w,1)},unregisterGanttBar:E=>{const w=h.value.findIndex(k=>k.id===E);w>=0&&h.value.splice(w,1)},updateGanttBar:E=>{var w;const k=(w=r.value[E.rowIndex])==null?void 0:w.gantt;k&&(E.type==="resize"?E.edge==="start"?(k.startIndex=E.newStart,k.endIndex=E.end,k.colspan=k.endIndex-k.startIndex):E.edge==="end"&&(k.startIndex=E.start,k.endIndex=E.newEnd,k.colspan=k.endIndex-k.startIndex):E.type==="bar"&&(k.startIndex=E.newStart,k.endIndex=E.newEnd,k.colspan=k.endIndex-k.startIndex))},updateRows:Y}})()},ru={class:"atable-container",style:{position:"relative"}},su=s.defineComponent({__name:"ATable",props:s.mergeModels({id:{},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:s.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update"],["update:rows","update:columns"]),setup(e,{expose:t,emit:n}){const o=s.useModel(e,"rows"),r=s.useModel(e,"columns"),a=n,l=s.useTemplateRef("table"),i=ou({columns:r.value,rows:o.value,id:e.id,config:e.config});i.$onAction(({name:f,store:_,args:v,after:m})=>{if(f==="setCellData"||f==="setCellText"){const[g,I,C]=v,x=_.getCellData(g,I);m(()=>{o.value=[..._.rows],a("cellUpdate",{colIndex:g,rowIndex:I,newValue:C,oldValue:x})})}else if(f==="updateGanttBar"){const[g]=v;let I=!1;g.type==="resize"?I=g.oldColspan!==g.newColspan:g.type==="bar"&&(I=g.oldStart!==g.newStart||g.oldEnd!==g.newEnd),I&&m(()=>{a("gantt:drag",g)})}else f==="resizeColumn"&&m(()=>{r.value=[..._.columns],a("columns:update",[..._.columns])})}),s.watch(()=>o.value,f=>{JSON.stringify(f)!==JSON.stringify(i.rows)&&(i.rows=[...f])},{deep:!0}),s.watch(r,f=>{JSON.stringify(f)!==JSON.stringify(i.columns)&&(i.columns=[...f],a("columns:update",[...f]))},{deep:!0}),s.onMounted(()=>{r.value.some(f=>f.pinned)&&(u(),i.isTreeView&&Lr(l,u,{childList:!0,subtree:!0}))});const c=s.computed(()=>i.columns.filter(f=>f.pinned).length),u=()=>{const f=l.value,_=f==null?void 0:f.rows[0],v=f==null?void 0:f.rows[1],m=_?Array.from(_.cells):[];for(const[g,I]of m.entries()){const C=v==null?void 0:v.cells[g];C&&(I.style.width=`${C.offsetWidth}px`)}for(const g of(f==null?void 0:f.rows)||[]){let I=0;const C=[];for(const x of g.cells)(x.classList.contains("sticky-column")||x.classList.contains("sticky-index"))&&(x.style.left=`${I}px`,I+=x.offsetWidth,C.push(x));C.length>0&&C[C.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",f=>{if(f.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const _=i.modal.parent;_&&s.nextTick().then(()=>{_.focus()})}});const d=f=>{var _;if(!f.gantt||c.value===0)return i.columns;const v=[];for(let m=0;m<c.value;m++){const g={...i.columns[m]};g.originalIndex=m,v.push(g)}return v.push({...i.columns[c.value],isGantt:!0,colspan:((_=f.gantt)==null?void 0:_.colspan)||i.columns.length-c.value,originalIndex:c.value,width:"auto"}),v},p=f=>{a("connection:event",{type:"create",connection:f})},h=f=>{a("connection:event",{type:"delete",connection:f})};return t({store:i,createConnection:i.createConnection,deleteConnection:i.deleteConnection,getConnectionsForBar:i.getConnectionsForBar,getHandlesForBar:i.getHandlesForBar}),(f,_)=>(s.openBlock(),s.createElementBlock("div",ru,[s.withDirectives((s.openBlock(),s.createElementBlock("table",{ref:"table",class:"atable",style:s.normalizeStyle({width:s.unref(i).config.fullWidth?"100%":"auto"})},[s.renderSlot(f.$slots,"header",{data:s.unref(i)},()=>[s.createVNode(tu,{columns:s.unref(i).columns,store:s.unref(i)},null,8,["columns","store"])],!0),s.createElementVNode("tbody",null,[s.renderSlot(f.$slots,"body",{data:s.unref(i)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).rows,(v,m)=>(s.openBlock(),s.createBlock(Lc,{key:v.id,row:v,rowIndex:m,store:s.unref(i)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d(v),(g,I)=>{var C,x,D;return s.openBlock(),s.createElementBlock(s.Fragment,{key:g.name},[g.isGantt?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(g.ganttComponent||"AGanttCell"),{key:0,store:s.unref(i),columnsCount:s.unref(i).columns.length-c.value,color:(C=v.gantt)==null?void 0:C.color,start:(x=v.gantt)==null?void 0:x.startIndex,end:(D=v.gantt)==null?void 0:D.endIndex,colspan:g.colspan,pinned:g.pinned,rowIndex:m,colIndex:g.originalIndex??I,style:s.normalizeStyle({textAlign:(g==null?void 0:g.align)||"center",minWidth:(g==null?void 0:g.width)||"40ch",width:s.unref(i).config.fullWidth?"auto":null}),"onConnection:create":p},null,40,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(g.cellComponent||"ACell"),{key:1,store:s.unref(i),pinned:g.pinned,rowIndex:m,colIndex:I,style:s.normalizeStyle({textAlign:(g==null?void 0:g.align)||"center",width:s.unref(i).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),s.renderSlot(f.$slots,"footer",{data:s.unref(i)},void 0,!0),s.renderSlot(f.$slots,"modal",{data:s.unref(i)},()=>[s.withDirectives(s.createVNode(nu,{store:s.unref(i)},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(i).modal.component),s.mergeProps({key:`${s.unref(i).modal.rowIndex}:${s.unref(i).modal.colIndex}`,colIndex:s.unref(i).modal.colIndex,rowIndex:s.unref(i).modal.rowIndex,store:s.unref(i)},s.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[s.vShow,s.unref(i).modal.visible]])],!0)],4)),[[s.unref(jc),s.unref(i).closeModal]]),s.unref(i).isGanttView?(s.openBlock(),s.createBlock(Xc,{key:0,store:s.unref(i),"onConnection:delete":h},null,8,["store"])):s.createCommentVNode("",!0)]))}}),au=an(su,[["__scopeId","data-v-7b5f2870"]]),Hr=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t}=er(),n=s.computed(()=>{var a;return(a=t.value)==null?void 0:a.store.records}),o=s.computed(()=>{var a,l,i;return(i=(l=(a=t.value)==null?void 0:a.schema)==null?void 0:l.schema)==null?void 0:i.toArray()}),r={view:"list"};return(a,l)=>(s.openBlock(),s.createBlock(s.unref(au),{rows:n.value,"onUpdate:rows":l[0]||(l[0]=i=>n.value=i),columns:o.value,"onUpdate:columns":l[1]||(l[1]=i=>o.value=i),config:r},null,8,["rows","columns"]))}}),lu={class:"tabs"},iu={tabindex:"0"},cu={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"},uu={tabindex:"0"},du={style:{width:"11pt"}},zr=pn(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"),l=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},c=p=>{p.preventDefault(),p.stopPropagation()},u=async p=>{p.preventDefault(),p.stopPropagation(),await i()},d=()=>{};return(p,h)=>{const f=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",lu,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:s.withKeys(l,["enter"])},[s.createElementVNode("a",iu,[s.createElementVNode("div",{class:s.normalizeClass(a.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(f,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",cu,h[5]||(h[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
|
|
21
|
+
This will fail in production.`);i=se,i._s.has(t)||(s?jn(t,e,o,i):Lr(t,o,i),process.env.NODE_ENV!=="production"&&(r._pinia=i));const u=i._s.get(t);if(process.env.NODE_ENV!=="production"&&l){const p="__hot:"+t,d=s?jn(p,e,o,i,!0):Lr(p,Q({},o),i,!0);l._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&ie){const p=a.getCurrentInstance();if(p&&p.proxy&&!l){const d=p.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[t]=u}}return u}return r.$id=t,r}function Ln(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const Td=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xd=t=>t!=null,Vd=Object.prototype.toString,Cd=t=>Vd.call(t)==="[object Object]",Nd=()=>{};function Te(t){return Array.isArray(t)?t:[t]}function $d(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Ut=Td?window:void 0;function zt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function ae(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=Te(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=$d(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>zt(u)))!=null?c:[Ut].filter(u=>u!=null),Te(a.toValue(s.value?t[1]:t[0])),Te(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Cd(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return Ln(n),i}function Pd(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function Rd(t){const e=Pd();return a.computed(()=>(e.value,!!t()))}function Dd(t,e,n={}){const{window:o=Ut,...s}=n;let r;const i=Rd(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const f=a.toValue(t),h=Te(f).map(zt).filter(xd);return new Set(h)}),u=a.watch(()=>c.value,f=>{l(),i.value&&f.size&&(r=new MutationObserver(e),f.forEach(h=>r.observe(h,s)))},{immediate:!0,flush:"post"}),p=()=>r==null?void 0:r.takeRecords(),d=()=>{u(),l()};return Ln(d),{isSupported:i,stop:d,takeRecords:p}}function Ad(t,e,n={}){const{window:o=Ut,document:s=o==null?void 0:o.document,flush:r="sync"}=n;if(!o||!s)return Nd;let i;const l=p=>{i==null||i(),i=p},c=a.watchEffect(()=>{const p=zt(t);if(p){const{stop:d}=Dd(s,f=>{f.map(h=>[...h.removedNodes]).flat().some(h=>h===p||h.contains(p))&&e(f)},{window:o,childList:!0,subtree:!0});l(d)}},{flush:r}),u=()=>{c(),l()};return Ln(u),u}function jd(t={}){var e;const{window:n=Ut,deep:o=!0,triggerOnRemoval:s=!1}=t,r=(e=t.document)!=null?e:n==null?void 0:n.document,i=()=>{var u;let p=r==null?void 0:r.activeElement;if(o)for(;p!=null&&p.shadowRoot;)p=(u=p==null?void 0:p.shadowRoot)==null?void 0:u.activeElement;return p},l=a.shallowRef(),c=()=>{l.value=i()};if(n){const u={capture:!0,passive:!0};ae(n,"blur",p=>{p.relatedTarget===null&&c()},u),ae(n,"focus",c,u)}return s&&Ad(l,c,{document:r}),c(),l}const Ld="focusin",Md="focusout",Bd=":focus-within";function Ud(t,e={}){const{window:n=Ut}=e,o=a.computed(()=>zt(t)),s=a.shallowRef(!1),r=a.computed(()=>s.value),i=jd(e);if(!n||!i.value)return{focused:r};const l={passive:!0};return ae(o,Ld,()=>s.value=!0,l),ae(o,Md,()=>{var c,u,p;return s.value=(p=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,Bd))!=null?p:!1},l),{focused:r}}function zd(t,{window:e=Ut,scrollTarget:n}={}){const o=a.ref(!1),s=()=>{if(!e)return;const r=e.document,i=zt(t);if(!i)o.value=!1;else{const l=i.getBoundingClientRect();o.value=l.top<=(e.innerHeight||r.documentElement.clientHeight)&&l.left<=(e.innerWidth||r.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return a.watch(()=>zt(t),()=>s(),{immediate:!0,flush:"post"}),e&&ae(n||e,"scroll",s,{capture:!1,passive:!0}),o}const it=t=>{let e=zd(t).value;return e=e&&t.offsetHeight>0,e},at=t=>t.tabIndex>=0,Mr=t=>{const e=t.target;return Mn(e)},Mn=t=>{var e;let n;if(t instanceof HTMLTableCellElement){const o=(e=t.parentElement)==null?void 0:e.previousElementSibling;if(o){const s=Array.from(o.children)[t.cellIndex];s&&(n=s)}}else if(t instanceof HTMLTableRowElement){const o=t.previousElementSibling;o&&(n=o)}return n&&(!at(n)||!it(n))?Mn(n):n},Hd=t=>{var e;const n=t.target;let o;if(n instanceof HTMLTableCellElement){const s=(e=n.parentElement)==null?void 0:e.parentElement;if(s){const r=s.firstElementChild,i=r==null?void 0:r.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const r=s.firstElementChild;r&&(o=r)}}return o&&(!at(o)||!it(o))?Bn(o):o},Br=t=>{const e=t.target;return Bn(e)},Bn=t=>{var e;let n;if(t instanceof HTMLTableCellElement){const o=(e=t.parentElement)==null?void 0:e.nextElementSibling;if(o){const s=Array.from(o.children)[t.cellIndex];s&&(n=s)}}else if(t instanceof HTMLTableRowElement){const o=t.nextElementSibling;o&&(n=o)}return n&&(!at(n)||!it(n))?Bn(n):n},Kd=t=>{var e;const n=t.target;let o;if(n instanceof HTMLTableCellElement){const s=(e=n.parentElement)==null?void 0:e.parentElement;if(s){const r=s.lastElementChild,i=r==null?void 0:r.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const r=s.lastElementChild;r&&(o=r)}}return o&&(!at(o)||!it(o))?Mn(o):o},Ur=t=>{const e=t.target;return Un(e)},Un=t=>{var e;let n;if(t.previousElementSibling)n=t.previousElementSibling;else{const o=(e=t.parentElement)==null?void 0:e.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!at(n)||!it(n))?Un(n):n},zr=t=>{const e=t.target;return zn(e)},zn=t=>{var e;let n;if(t.nextElementSibling)n=t.nextElementSibling;else{const o=(e=t.parentElement)==null?void 0:e.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!at(n)||!it(n))?zn(n):n},Hr=t=>{const e=t.target.parentElement,n=e==null?void 0:e.firstElementChild;return n&&(!at(n)||!it(n))?zn(n):n},Kr=t=>{const e=t.target.parentElement,n=e==null?void 0:e.lastElementChild;return n&&(!at(n)||!it(n))?Un(n):n},xe=["alt","control","shift","meta"],Fd={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Fr={"keydown.up":t=>{const e=Mr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.down":t=>{const e=Br(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.left":t=>{const e=Ur(t);t.preventDefault(),t.stopPropagation(),e&&e.focus()},"keydown.right":t=>{const e=zr(t);t.preventDefault(),t.stopPropagation(),e&&e.focus()},"keydown.control.up":t=>{const e=Hd(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.down":t=>{const e=Kd(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.left":t=>{const e=Hr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.right":t=>{const e=Kr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.end":t=>{const e=Kr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const e=Br(t);e&&e.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const e=Mr(t);e&&e.focus()}},"keydown.home":t=>{const e=Hr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.tab":t=>{const e=zr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.shift.tab":t=>{const e=Ur(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())}};function Wd(t){const e=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=e(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 p of i.selectors)p instanceof HTMLElement?u.push(p):u.push(p.$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 p of i.selectors.value)p instanceof HTMLElement?u.push(p):u.push(p.$el);else u.push(i.selectors.value);return u},o=i=>{const l=e(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(u=>at(u)&&it(u))),c},s=i=>l=>{const c=Fd[l.key]||l.key.toLowerCase();if(xe.includes(c))return;const u=i.handlers||Fr;for(const p of Object.keys(u)){const[d,...f]=p.split(".");if(d==="keydown"&&f.includes(c)){const h=u[p],m=f.filter(g=>xe.includes(g)),_=xe.some(g=>{const v=g.charAt(0).toUpperCase()+g.slice(1);return l.getModifierState(v)});if(m.length>0){if(_){for(const g of xe)if(f.includes(g)){const v=g.charAt(0).toUpperCase()+g.slice(1);l.getModifierState(v)&&h(l)}}}else _||h(l)}}},r=[];a.onMounted(()=>{for(const i of t){const l=e(i),c=o(i),u=s(i),p=l?[l]:c;for(const d of p){const{focused:f}=Ud(a.ref(d)),h=a.watch(f,m=>{m?d.addEventListener("keydown",u):d.removeEventListener("keydown",u)});r.push(h)}}}),a.onBeforeUnmount(()=>{for(const i of r)i()})}function Ht(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const Hn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gd=t=>t!=null,Jd=Object.prototype.toString,Wr=t=>Jd.call(t)==="[object Object]",Et=()=>{},Kn=Yd();function Yd(){var t,e;return Hn&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function qd(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:Et}))):a.ref(e)}function bt(t){return Array.isArray(t)?t:[t]}function Xd(t){return a.getCurrentInstance()}function Zd(t,e=!0,n){Xd()?a.onMounted(t,n):e?t():a.nextTick(t)}function Gr(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Fn=Hn?window:void 0;function Kt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Jr(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=bt(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=Gr(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>Kt(u)))!=null?c:[Fn].filter(u=>u!=null),bt(a.toValue(s.value?t[1]:t[0])),bt(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Wr(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return Ht(n),i}function Qd(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function Yr(t){const e=Qd();return a.computed(()=>(e.value,!!t()))}function qr(t,e,n={}){const{window:o=Fn,...s}=n;let r;const i=Yr(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const f=a.toValue(t),h=bt(f).map(Kt).filter(Gd);return new Set(h)}),u=a.watch(()=>c.value,f=>{l(),i.value&&f.size&&(r=new MutationObserver(e),f.forEach(h=>r.observe(h,s)))},{immediate:!0,flush:"post"}),p=()=>r==null?void 0:r.takeRecords(),d=()=>{u(),l()};return Ht(d),{isSupported:i,stop:d,takeRecords:p}}function tf(t,e,n={}){const{window:o=Fn,...s}=n;let r;const i=Yr(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const d=a.toValue(t);return Array.isArray(d)?d.map(f=>Kt(f)):[Kt(d)]}),u=a.watch(c,d=>{if(l(),i.value&&o){r=new ResizeObserver(e);for(const f of d)f&&r.observe(f,s)}},{immediate:!0,flush:"post"}),p=()=>{l(),u()};return Ht(p),{isSupported:i,stop:p}}function ef(t,e={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:i="sync"}=e,l=a.shallowRef(0),c=a.shallowRef(0),u=a.shallowRef(0),p=a.shallowRef(0),d=a.shallowRef(0),f=a.shallowRef(0),h=a.shallowRef(0),m=a.shallowRef(0);function _(){const v=Kt(t);if(!v){n&&(l.value=0,c.value=0,u.value=0,p.value=0,d.value=0,f.value=0,h.value=0,m.value=0);return}const I=v.getBoundingClientRect();l.value=I.height,c.value=I.bottom,u.value=I.left,p.value=I.right,d.value=I.top,f.value=I.width,h.value=I.x,m.value=I.y}function g(){i==="sync"?_():i==="next-frame"&&requestAnimationFrame(()=>_())}return tf(t,g),a.watch(()=>Kt(t),v=>!v&&g()),qr(t,g,{attributeFilter:["style","class"]}),s&&Jr("scroll",g,{capture:!0,passive:!0}),o&&Jr("resize",g,{passive:!0}),Zd(()=>{r&&g()}),{height:l,bottom:c,left:u,right:p,top:d,width:f,x:h,y:m,update:g}}const nf=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Wn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},of=["tabindex"],sf=a.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(t){const e=a.useTemplateRef("rowEl"),n=a.computed(()=>t.store.isRowVisible(t.rowIndex)),o=a.computed(()=>t.store.getRowExpandSymbol(t.rowIndex));if(t.addNavigation){let s=Fr;typeof t.addNavigation=="object"&&(s={...s,...t.addNavigation}),Wd([{selectors:e,handlers:s}])}return(s,r)=>a.withDirectives((a.openBlock(),a.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"atable-row"},[s.store.config.view!=="uncounted"?a.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(a.openBlock(),a.createElementBlock("td",{key:0,tabIndex:-1,class:a.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},a.toDisplayString(s.rowIndex+1),3)):s.store.isTreeView?(a.openBlock(),a.createElementBlock("td",{key:1,tabIndex:-1,class:a.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:r[0]||(r[0]=i=>s.store.toggleRowExpand(s.rowIndex))},a.toDisplayString(o.value),3)):a.createCommentVNode("",!0)],!0):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"default",{},void 0,!0)],8,of)),[[a.vShow,n.value]])}}),rf=Wn(sf,[["__scopeId","data-v-c554ee0f"]]),Gn=Hn?window:void 0;function kt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ve(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=bt(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=Gr(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>kt(u)))!=null?c:[Gn].filter(u=>u!=null),bt(a.toValue(s.value?t[1]:t[0])),bt(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Wr(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return Ht(n),i}let Xr=!1;function Zr(t,e,n={}){const{window:o=Gn,ignore:s=[],capture:r=!0,detectIframe:i=!1,controls:l=!1}=n;if(!o)return l?{stop:Et,cancel:Et,trigger:Et}:Et;if(Kn&&!Xr){Xr=!0;const g={passive:!0};Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",Et,g)),o.document.documentElement.addEventListener("click",Et,g)}let c=!0;const u=g=>a.toValue(s).some(v=>{if(typeof v=="string")return Array.from(o.document.querySelectorAll(v)).some(I=>I===g.target||g.composedPath().includes(I));{const I=kt(v);return I&&(g.target===I||g.composedPath().includes(I))}});function p(g){const v=a.toValue(g);return v&&v.$.subTree.shapeFlag===16}function d(g,v){const I=a.toValue(g),V=I.$.subTree&&I.$.subTree.children;return V==null||!Array.isArray(V)?!1:V.some(P=>P.el===v.target||v.composedPath().includes(P.el))}const f=g=>{const v=kt(t);if(g.target!=null&&!(!(v instanceof Element)&&p(t)&&d(t,g))&&!(!v||v===g.target||g.composedPath().includes(v))){if("detail"in g&&g.detail===0&&(c=!u(g)),!c){c=!0;return}e(g)}};let h=!1;const m=[Ve(o,"click",g=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(g))},{passive:!0,capture:r}),Ve(o,"pointerdown",g=>{const v=kt(t);c=!u(g)&&!!(v&&!g.composedPath().includes(v))},{passive:!0}),i&&Ve(o,"blur",g=>{setTimeout(()=>{var v;const I=kt(t);((v=o.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&e(g)},0)},{passive:!0})].filter(Boolean),_=()=>m.forEach(g=>g());return l?{stop:_,cancel:()=>{c=!1},trigger:g=>{c=!0,f(g),c=!1}}:_}const Jn=new WeakMap,af={mounted(t,e){const n=!e.modifiers.bubble;let o;if(typeof e.value=="function")o=Zr(t,e.value,{capture:n});else{const[s,r]=e.value;o=Zr(t,s,Object.assign({capture:n},r))}Jn.set(t,o)},unmounted(t){const e=Jn.get(t);e&&typeof e=="function"?e():e==null||e.stop(),Jn.delete(t)}};function lf(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function cf(t){const e=lf();return a.computed(()=>(e.value,!!t()))}function Qr(t,e,n={}){const{window:o=Gn,...s}=n;let r;const i=cf(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const d=a.toValue(t);return Array.isArray(d)?d.map(f=>kt(f)):[kt(d)]}),u=a.watch(c,d=>{if(l(),i.value&&o){r=new ResizeObserver(e);for(const f of d)f&&r.observe(f,s)}},{immediate:!0,flush:"post"}),p=()=>{l(),u()};return Ht(p),{isSupported:i,stop:p}}function Yn(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const uf={mounted(t,e){typeof e.value=="function"?Qr(t,e.value):Qr(t,...e.value)}};function ti(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:ti(n)}}function df(t){const e=t||window.event,n=e.target;return ti(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const qn=new WeakMap;function ff(t,e=!1){const n=a.shallowRef(e);let o=null,s="";a.watch(qd(t),l=>{const c=Yn(a.toValue(l));if(c){const u=c;if(qn.get(u)||qn.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Yn(a.toValue(t));!l||n.value||(Kn&&(o=Ve(l,"touchmove",c=>{df(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Yn(a.toValue(t));!l||!n.value||(Kn&&(o==null||o()),l.style.overflow=s,qn.delete(l),n.value=!1)};return Ht(i),a.computed({get(){return n.value},set(l){l?r():i()}})}function pf(){let t=!1;const e=a.shallowRef(!1);return(n,o)=>{if(e.value=o.value,t)return;t=!0;const s=ff(n,o.value);a.watch(e,r=>s.value=r)}}pf();const hf={class:"gantt-connection-overlay"},mf={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},gf=["d","stroke-width","onDblclick"],_f=["d","stroke","stroke-width","id","onDblclick"],yf=.25,Ce=16,vf=a.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:e}){const n=e,o=a.computed(()=>t.store.connectionPaths.filter(i=>{const l=t.store.ganttBars.find(u=>u.id===i.from.barId),c=t.store.ganttBars.find(u=>u.id===i.to.barId);return l&&c})),s=(i,l=!1)=>{const c=t.store.connectionHandles.find(j=>j.barId===i.from.barId&&j.side===i.from.side),u=t.store.connectionHandles.find(j=>j.barId===i.to.barId&&j.side===i.to.side);if(!c||!u)return"";const p=c.position.x+Ce/2,d=c.position.y+Ce/2,f=u.position.x+Ce/2,h=u.position.y+Ce/2,m=Math.abs(f-p),_=Math.max(m*yf,50),g=p+(i.from.side==="left"?-_:_),v=f+(i.to.side==="left"?-_:_),I={x:.5*p+.5*g,y:.5*d+.5*d},V={x:.5*g+.5*v,y:.5*d+.5*h},P={x:.5*v+.5*f,y:.5*h+.5*h},R={x:.5*I.x+.5*V.x,y:.5*I.y+.5*V.y},Y={x:.5*V.x+.5*P.x,y:.5*V.y+.5*P.y},k={x:.5*R.x+.5*Y.x,y:.5*R.y+.5*Y.y};return`M ${p} ${d} Q ${g} ${d}, ${k.x} ${k.y} Q ${v} ${h}, ${f} ${h}`},r=i=>{t.store.deleteConnection(i.id)&&n("connection:delete",i)};return(i,l)=>(a.openBlock(),a.createElementBlock("div",hf,[(a.openBlock(),a.createElementBlock("svg",mf,[l[0]||(l[0]=a.createElementVNode("defs",null,[a.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),a.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[a.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>{var u;return a.openBlock(),a.createElementBlock("path",{key:`${c.id}-hitbox`,d:s(c),stroke:"transparent","stroke-width":(((u=c.style)==null?void 0:u.width)||2)+10,fill:"none",class:"connection-hitbox",onDblclick:p=>r(c)},null,40,gf)}),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>{var u,p;return a.openBlock(),a.createElementBlock("path",{key:c.id,d:s(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((p=c.style)==null?void 0:p.width)||2,fill:"none","marker-mid":"url(#arrowhead-marker)",id:c.id,class:"connection-path animated-path",onDblclick:d=>r(c)},null,40,_f)}),128))]))]))}}),wf=Wn(vf,[["__scopeId","data-v-955111b6"]]),Ef={key:0},bf={class:"atable-header-row",tabindex:"-1"},kf=["data-colindex"],Sf=a.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const e=n=>{var o;for(const s of n){if(s.borderBoxSize.length===0)continue;const r=s.borderBoxSize[0].inlineSize,i=Number(s.target.dataset.colindex),l=(o=t.store.columns[i])==null?void 0:o.width;typeof l=="number"&&l!==r&&t.store.resizeColumn(i,r)}};return(n,o)=>n.columns.length?(a.openBlock(),a.createElementBlock("thead",Ef,[a.createElementVNode("tr",bf,[n.store.zeroColumn?(a.openBlock(),a.createElementBlock("th",{key:0,id:"header-index",class:a.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.isTreeView?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,(s,r)=>a.withDirectives((a.openBlock(),a.createElementBlock("th",{key:s.name,"data-colindex":r,tabindex:"-1",style:a.normalizeStyle(n.store.getHeaderCellStyle(s)),class:a.normalizeClass(s.pinned?"sticky-column":"")},[a.renderSlot(n.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.label||String.fromCharCode(r+97).toUpperCase()),1)])],14,kf)),[[a.unref(uf),e]])),128))])])):a.createCommentVNode("",!0)}}),Of=a.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const e=a.useTemplateRef("amodal"),{width:n,height:o}=ef(e),s=a.computed(()=>{var r,i,l,c;if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const u=(r=t.store.modal.cell)==null?void 0:r.closest("table"),p=u.offsetHeight||0,d=u.offsetWidth||0;let f=((i=t.store.modal.cell)==null?void 0:i.offsetTop)||0;const h=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;f+=h,f=f+o.value<p?f:f-(o.value+t.store.modal.height);let m=((c=t.store.modal.cell)==null?void 0:c.offsetLeft)||0;return m=m+n.value<=d?m:m-(n.value-t.store.modal.width),{left:`${m}px`,top:`${f}px`}});return(r,i)=>(a.openBlock(),a.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:i[0]||(i[0]=a.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=a.withModifiers(()=>{},["stop"])),style:a.normalizeStyle(s.value)},[a.renderSlot(r.$slots,"default")],36))}}),If=t=>{const e=t.id||nf();return Id(`table-${e}`,()=>{const n=()=>{const y=[Object.assign({},{rowModified:!1})],E=new Set;for(let O=0;O<s.value.length;O++){const N=s.value[O];N.parent!==null&&N.parent!==void 0&&E.add(N.parent)}for(let O=0;O<s.value.length;O++){const N=s.value[O];y[O]={childrenOpen:!1,expanded:!1,indent:N.indent||0,isParent:E.has(O),isRoot:N.parent===null||N.parent===void 0,rowModified:!1,open:N.parent===null||N.parent===void 0,parent:N.parent}}return y},o=a.ref(t.columns),s=a.ref(t.rows),r=a.ref(t.config||{}),i=a.ref({}),l=a.ref({}),c=a.computed(()=>{const y={};for(const[E,O]of o.value.entries())for(const[N,L]of s.value.entries())y[`${E}:${N}`]=L[O.name];return y}),u=a.computed({get:()=>{const y=n();for(let E=0;E<y.length;E++)i.value[E]&&(y[E].rowModified=i.value[E]),l.value[E]&&(l.value[E].childrenOpen!==void 0&&(y[E].childrenOpen=l.value[E].childrenOpen),l.value[E].expanded!==void 0&&(y[E].expanded=l.value[E].expanded));if(v.value){const E=(O,N)=>{const L=N[O];if(L.isRoot||L.parent===null||L.parent===void 0)return!0;const H=L.parent;return H<0||H>=N.length?!1:(N[H].childrenOpen||!1)&&E(H,N)};for(let O=0;O<y.length;O++)y[O].isRoot||(y[O].open=E(O,y))}return y},set:y=>{JSON.stringify(y)!==JSON.stringify(u.value)&&(u.value=y)}}),p=a.ref(t.modal||{visible:!1}),d=a.ref({}),f=a.ref([]),h=a.ref([]),m=a.ref([]),_=a.computed(()=>o.value.some(y=>y.pinned)),g=a.computed(()=>r.value.view==="gantt"||r.value.view==="tree-gantt"),v=a.computed(()=>r.value.view==="tree"||r.value.view==="tree-gantt"),I=a.computed(()=>r.value.dependencyGraph!==!1),V=a.computed(()=>`${Math.ceil(s.value.length/100+1)}ch`),P=a.computed(()=>r.value.view?["list","tree","tree-gantt","list-expansion"].includes(r.value.view):!1),R=(y,E)=>c.value[`${y}:${E}`],Y=(y,E,O)=>{const N=`${y}:${E}`,L=o.value[y];c.value[N]!==O&&(i.value[E]=!0),c.value[N]=O,s.value[E]={...s.value[E],[L.name]:O}},k=y=>{s.value=y},j=(y,E,O)=>{const N=`${y}:${E}`;c.value[N]!==O&&(i.value[E]=!0,d.value[N]=O)},T=y=>{const E=o.value.indexOf(y)===o.value.length-1,O=r.value.fullWidth?y.resizable&&!E:y.resizable;return{width:y.width||"40ch",textAlign:y.align||"center",...O&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},w=(y,E)=>{if(y<0||y>=o.value.length)return;const O=Math.max(E,40);o.value[y]={...o.value[y],width:`${O}px`}},S=y=>{const E=s.value[y];return g.value&&E.gantt!==void 0},C=y=>!v.value||u.value[y].isRoot||u.value[y].open,D=y=>!v.value&&r.value.view!=="list-expansion"?"":v.value&&(u.value[y].isRoot||u.value[y].isParent)?u.value[y].childrenOpen?"▼":"►":r.value.view==="list-expansion"?u.value[y].expanded?"▼":"►":"",G=y=>{if(v.value){const E=l.value[y]||{},O=!(E.childrenOpen??u.value[y].childrenOpen);l.value[y]={...E,childrenOpen:O},O||U(y)}else if(r.value.view==="list-expansion"){const E=l.value[y]||{},O=E.expanded??u.value[y].expanded;l.value[y]={...E,expanded:!O}}},U=y=>{for(let E=0;E<s.value.length;E++)if(u.value[E].parent===y){const O=l.value[E]||{};l.value[E]={...O,childrenOpen:!1},U(E)}},$=(y,E)=>{const O=R(y,E);return F(y,E,O)},F=(y,E,O)=>{const N=o.value[y],L=s.value[E],H=N.format;return H?typeof H=="function"?H(O,{table:c.value,row:L,column:N}):typeof H=="string"?Function(`"use strict";return (${H})`)()(O,{table:c.value,row:L,column:N}):O:O};return{columns:o,config:r,connectionHandles:h,connectionPaths:m,display:u,ganttBars:f,modal:p,rows:s,table:c,updates:d,hasPinnedColumns:_,isGanttView:g,isTreeView:v,isDependencyGraphEnabled:I,numberedRowWidth:V,zeroColumn:P,closeModal:y=>{var E;y.target instanceof Node&&(E=p.value.parent)!=null&&E.contains(y.target)||p.value.visible&&(p.value.visible=!1)},createConnection:(y,E,O)=>{const N=h.value.find(St=>St.id===y),L=h.value.find(St=>St.id===E);if(!N||!L)return console.warn("Cannot create connection: handle not found"),null;const H={id:`connection-${y}-${E}`,from:{barId:N.barId,side:N.side},to:{barId:L.barId,side:L.side},style:O==null?void 0:O.style,label:O==null?void 0:O.label};return m.value.push(H),H},deleteConnection:y=>{const E=m.value.findIndex(O=>O.id===y);return E>=0?(m.value.splice(E,1),!0):!1},getCellData:R,getCellDisplayValue:$,getConnectionsForBar:y=>m.value.filter(E=>E.from.barId===y||E.to.barId===y),getFormattedValue:F,getHandlesForBar:y=>h.value.filter(E=>E.barId===y),getHeaderCellStyle:T,getIndent:(y,E)=>E&&y===0&&E>0?`${E}ch`:"inherit",getRowExpandSymbol:D,isRowGantt:S,isRowVisible:C,registerConnectionHandle:y=>{const E=h.value.findIndex(O=>O.id===y.id);E>=0?h.value[E]=y:h.value.push(y)},registerGanttBar:y=>{const E=f.value.findIndex(O=>O.id===y.id);E>=0?f.value[E]=y:f.value.push(y)},resizeColumn:w,setCellData:Y,setCellText:j,toggleRowExpand:G,unregisterConnectionHandle:y=>{const E=h.value.findIndex(O=>O.id===y);E>=0&&h.value.splice(E,1)},unregisterGanttBar:y=>{const E=f.value.findIndex(O=>O.id===y);E>=0&&f.value.splice(E,1)},updateGanttBar:y=>{var E;const O=(E=s.value[y.rowIndex])==null?void 0:E.gantt;O&&(y.type==="resize"?y.edge==="start"?(O.startIndex=y.newStart,O.endIndex=y.end,O.colspan=O.endIndex-O.startIndex):y.edge==="end"&&(O.startIndex=y.start,O.endIndex=y.newEnd,O.colspan=O.endIndex-O.startIndex):y.type==="bar"&&(O.startIndex=y.newStart,O.endIndex=y.newEnd,O.colspan=O.endIndex-O.startIndex))},updateRows:k}})()},Tf={class:"atable-container",style:{position:"relative"}},xf=a.defineComponent({__name:"ATable",props:a.mergeModels({id:{},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:a.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update"],["update:rows","update:columns"]),setup(t,{expose:e,emit:n}){const o=a.useModel(t,"rows"),s=a.useModel(t,"columns"),r=n,i=a.useTemplateRef("table"),l=If({columns:s.value,rows:o.value,id:t.id,config:t.config});l.$onAction(({name:h,store:m,args:_,after:g})=>{if(h==="setCellData"||h==="setCellText"){const[v,I,V]=_,P=m.getCellData(v,I);g(()=>{o.value=[...m.rows],r("cellUpdate",{colIndex:v,rowIndex:I,newValue:V,oldValue:P})})}else if(h==="updateGanttBar"){const[v]=_;let I=!1;v.type==="resize"?I=v.oldColspan!==v.newColspan:v.type==="bar"&&(I=v.oldStart!==v.newStart||v.oldEnd!==v.newEnd),I&&g(()=>{r("gantt:drag",v)})}else h==="resizeColumn"&&g(()=>{s.value=[...m.columns],r("columns:update",[...m.columns])})}),a.watch(()=>o.value,h=>{JSON.stringify(h)!==JSON.stringify(l.rows)&&(l.rows=[...h])},{deep:!0}),a.watch(s,h=>{JSON.stringify(h)!==JSON.stringify(l.columns)&&(l.columns=[...h],r("columns:update",[...h]))},{deep:!0}),a.onMounted(()=>{s.value.some(h=>h.pinned)&&(u(),l.isTreeView&&qr(i,u,{childList:!0,subtree:!0}))});const c=a.computed(()=>l.columns.filter(h=>h.pinned).length),u=()=>{const h=i.value,m=h==null?void 0:h.rows[0],_=h==null?void 0:h.rows[1],g=m?Array.from(m.cells):[];for(const[v,I]of g.entries()){const V=_==null?void 0:_.cells[v];V&&(I.style.width=`${V.offsetWidth}px`)}for(const v of(h==null?void 0:h.rows)||[]){let I=0;const V=[];for(const P of v.cells)(P.classList.contains("sticky-column")||P.classList.contains("sticky-index"))&&(P.style.left=`${I}px`,I+=P.offsetWidth,V.push(P));V.length>0&&V[V.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",h=>{if(h.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const m=l.modal.parent;m&&a.nextTick().then(()=>{m.focus()})}});const p=h=>{var m;if(!h.gantt||c.value===0)return l.columns;const _=[];for(let g=0;g<c.value;g++){const v={...l.columns[g]};v.originalIndex=g,_.push(v)}return _.push({...l.columns[c.value],isGantt:!0,colspan:((m=h.gantt)==null?void 0:m.colspan)||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),_},d=h=>{r("connection:event",{type:"create",connection:h})},f=h=>{r("connection:event",{type:"delete",connection:h})};return e({store:l,createConnection:l.createConnection,deleteConnection:l.deleteConnection,getConnectionsForBar:l.getConnectionsForBar,getHandlesForBar:l.getHandlesForBar}),(h,m)=>(a.openBlock(),a.createElementBlock("div",Tf,[a.withDirectives((a.openBlock(),a.createElementBlock("table",{ref:"table",class:"atable",style:a.normalizeStyle({width:a.unref(l).config.fullWidth?"100%":"auto"})},[a.renderSlot(h.$slots,"header",{data:a.unref(l)},()=>[a.createVNode(Sf,{columns:a.unref(l).columns,store:a.unref(l)},null,8,["columns","store"])],!0),a.createElementVNode("tbody",null,[a.renderSlot(h.$slots,"body",{data:a.unref(l)},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l).rows,(_,g)=>(a.openBlock(),a.createBlock(rf,{key:_.id,row:_,rowIndex:g,store:a.unref(l)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p(_),(v,I)=>{var V,P,R;return a.openBlock(),a.createElementBlock(a.Fragment,{key:v.name},[v.isGantt?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.ganttComponent||"AGanttCell"),{key:0,store:a.unref(l),columnsCount:a.unref(l).columns.length-c.value,color:(V=_.gantt)==null?void 0:V.color,start:(P=_.gantt)==null?void 0:P.startIndex,end:(R=_.gantt)==null?void 0:R.endIndex,colspan:v.colspan,pinned:v.pinned,rowIndex:g,colIndex:v.originalIndex??I,style:a.normalizeStyle({textAlign:(v==null?void 0:v.align)||"center",minWidth:(v==null?void 0:v.width)||"40ch",width:a.unref(l).config.fullWidth?"auto":null}),"onConnection:create":d},null,40,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.cellComponent||"ACell"),{key:1,store:a.unref(l),pinned:v.pinned,rowIndex:g,colIndex:I,style:a.normalizeStyle({textAlign:(v==null?void 0:v.align)||"center",width:a.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),a.renderSlot(h.$slots,"footer",{data:a.unref(l)},void 0,!0),a.renderSlot(h.$slots,"modal",{data:a.unref(l)},()=>[a.withDirectives(a.createVNode(Of,{store:a.unref(l)},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(l).modal.component),a.mergeProps({key:`${a.unref(l).modal.rowIndex}:${a.unref(l).modal.colIndex}`,colIndex:a.unref(l).modal.colIndex,rowIndex:a.unref(l).modal.rowIndex,store:a.unref(l)},a.unref(l).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[a.vShow,a.unref(l).modal.visible]])],!0)],4)),[[a.unref(af),a.unref(l).closeModal]]),a.unref(l).isGanttView&&a.unref(l).isDependencyGraphEnabled?(a.openBlock(),a.createBlock(wf,{key:0,store:a.unref(l),"onConnection:delete":f},null,8,["store"])):a.createCommentVNode("",!0)]))}}),Vf=Wn(xf,[["__scopeId","data-v-51a03d16"]]),ei=a.defineComponent({__name:"Records",setup(t){const{stonecrop:e}=pr(),n=a.computed(()=>{var r;return(r=e.value)==null?void 0:r.store.records}),o=a.computed(()=>{var r,i,l;return(l=(i=(r=e.value)==null?void 0:r.schema)==null?void 0:i.schema)==null?void 0:l.toArray()}),s={view:"list"};return(r,i)=>(a.openBlock(),a.createBlock(a.unref(Vf),{rows:n.value,"onUpdate:rows":i[0]||(i[0]=l=>n.value=l),columns:o.value,"onUpdate:columns":i[1]||(i[1]=l=>o.value=l),config:s},null,8,["rows","columns"]))}}),Cf={class:"tabs"},Nf={tabindex:"0"},$f={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"},Pf={tabindex:"0"},Rf={style:{width:"11pt"}},ni=Xn(a.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(t){const e=a.ref(!0),n=a.ref(!1),o=a.ref(""),s=a.useTemplateRef("searchinput"),r=a.computed(()=>e.value?"unrotated":"rotated"),i=()=>{e.value=!e.value},l=async()=>{n.value=!n.value,await a.nextTick(()=>{s.value.focus()})},c=d=>{d.preventDefault(),d.stopPropagation()},u=async d=>{d.preventDefault(),d.stopPropagation(),await l()},p=()=>{};return(d,f)=>{const h=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("footer",null,[a.createElementVNode("ul",Cf,[a.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:a.withKeys(i,["enter"])},[a.createElementVNode("a",Nf,[a.createElementVNode("div",{class:a.normalizeClass(r.value)},"×",2)])],32),a.createElementVNode("li",{class:"hometab",onClick:p,onKeydown:a.withKeys(p,["enter"]),style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createVNode(h,{to:"/home",tabindex:"0"},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("svg",$f,f[5]||(f[5]=[a.createElementVNode("g",null,[a.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
20
22
|
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
23
|
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
24
|
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 +26,5 @@ This will fail in production.`);l=Ue,l._s.has(e)||(r?Xt(e,t,o,l):Sr(e,o,l),proce
|
|
|
24
26
|
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
27
|
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
28
|
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),
|
|
29
|
+
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),a.createElementVNode("li",{class:"searchtab",onClick:l,onKeydown:a.withKeys(l,["enter"]),style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createElementVNode("a",Pf,[a.createElementVNode("span",{style:a.normalizeStyle({display:n.value?"none":"block"})},[(a.openBlock(),a.createElementBlock("svg",Rf,f[6]||(f[6]=[a.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[a.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),ref:"searchinput",style:a.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=m=>c(m)),onInput:f[2]||(f[2]=m=>c(m)),onBlur:f[3]||(f[3]=m=>u(m)),onKeydown:f[4]||(f[4]=a.withKeys(m=>u(m),["enter"])),type:"text"},null,36),[[a.vModelText,o.value]])])],36),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.breadcrumbs,m=>(a.openBlock(),a.createElementBlock("li",{key:m.title,style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createVNode(h,{tabindex:"0",to:m.to},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Df={install:t=>{t.component("ActionSet",Zn),t.component("CommandPalette",Qn),t.component("Doctype",$r),t.component("Records",ei),t.component("SheetNav",ni)}};q.ActionSet=Zn,q.CommandPalette=Qn,q.Doctype=$r,q.Records=ei,q.SheetNav=ni,q.StonecropDesktop=Df,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
|
|
28
30
|
//# sourceMappingURL=desktop.umd.cjs.map
|