@stonecrop/stonecrop 0.4.5 → 0.4.7
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/src/tsdoc-metadata.json +1 -1
- package/dist/stonecrop.js +4300 -1180
- package/dist/stonecrop.js.map +1 -1
- package/dist/stonecrop.umd.cjs +8 -9
- package/dist/stonecrop.umd.cjs.map +1 -1
- package/package.json +15 -15
package/dist/stonecrop.umd.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
(function(w,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(w=typeof globalThis<"u"?globalThis:w||self,l(w["@stonecrop/stonecrop"]={},w.Vue))})(this,function(w,l){"use strict";var fr=Object.defineProperty;var dr=(w,l,D)=>l in w?fr(w,l,{enumerable:!0,configurable:!0,writable:!0,value:D}):w[l]=D;var b=(w,l,D)=>dr(w,typeof l!="symbol"?l+"":l,D);function D(e){this.message=e||""}D.prototype=Object.create(Error.prototype,{constructor:{value:D},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const J=class J{constructor(t,r,n,o,s){b(this,"name","Stonecrop");b(this,"registry");b(this,"store");b(this,"schema");b(this,"workflow");b(this,"actions");if(J._root)return J._root;J._root=this,this.registry=t,this.store=r,this.schema=n,this.workflow=o,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new D(t.doctype)}getWorkflow(t){const r=this.registry.registry[t.slug];this.workflow=r.workflow}getActions(t){const r=this.registry.registry[t.slug];this.actions=r.actions}async getRecords(t,r){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,r)).json();this.store.$patch({records:o})}async getRecord(t,r){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${r}`)).json();this.store.$patch({record:o})}runAction(t,r,n){var a;const s=(a=this.registry.registry[t.slug].actions)==null?void 0:a.get(r);if(this.workflow){const{initialState:i}=this.workflow;this.workflow.transition(i,{type:r}),s&&s.length>0&&s.forEach(u=>{new Function(u)(n)})}}};b(J,"_root");let ae=J;var ke=!1;function X(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function ce(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function _t(){return Pe().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Pe(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const bt=typeof Proxy=="function",wt="devtools-plugin:setup",Et="plugin:settings:set";let x,ue;function St(){var e;return x!==void 0||(typeof window<"u"&&window.performance?(x=!0,ue=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(x=!0,ue=globalThis.perf_hooks.performance):x=!1),x}function Ot(){return St()?ue.now():Date.now()}class It{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const a in t.settings){const i=t.settings[a];n[a]=i.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},n);try{const a=localStorage.getItem(o),i=JSON.parse(a);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}s=a},now(){return Ot()}},r&&r.on(Et,(a,i)=>{a===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(a,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(a,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:i,args:u,resolve:c})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function $e(e,t){const r=e,n=Pe(),o=_t(),s=bt&&r.enableEarlyProxy;if(o&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(wt,e,t);else{const a=s?new It(r,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
|
|
2
|
-
* pinia
|
|
3
|
-
* (c)
|
|
1
|
+
(function(V,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],v):(V=typeof globalThis<"u"?globalThis:V||self,v(V["@stonecrop/stonecrop"]={},V.Vue))})(this,function(V,v){"use strict";var Di=Object.defineProperty;var Ii=(V,v,J)=>v in V?Di(V,v,{enumerable:!0,configurable:!0,writable:!0,value:J}):V[v]=J;var k=(V,v,J)=>Ii(V,typeof v!="symbol"?v+"":v,J);function J(e){this.message=e||""}J.prototype=Object.create(Error.prototype,{constructor:{value:J},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Ee=class Ee{constructor(t,n,r,o,s){k(this,"name","Stonecrop");k(this,"registry");k(this,"store");k(this,"schema");k(this,"workflow");k(this,"actions");if(Ee._root)return Ee._root;Ee._root=this,this.registry=t,this.store=n,this.schema=r,this.workflow=o,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new J(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,r){var u;const s=(u=this.registry.registry[t.slug].actions)==null?void 0:u.get(n);if(this.workflow){const{initialState:i}=this.workflow;this.workflow.transition(i,{type:n}),s&&s.length>0&&s.forEach(a=>{new Function(a)(r)})}}};k(Ee,"_root");let Ge=Ee;var Zr=Object.create,Dt=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,We=Object.getOwnPropertyNames,Xr=Object.getPrototypeOf,Qr=Object.prototype.hasOwnProperty,eo=(e,t)=>function(){return e&&(t=(0,e[We(e)[0]])(e=0)),t},to=(e,t)=>function(){return t||(0,e[We(e)[0]])((t={exports:{}}).exports,t),t.exports},no=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of We(t))!Qr.call(e,o)&&o!==n&&Dt(e,o,{get:()=>t[o],enumerable:!(r=Jr(t,o))||r.enumerable});return e},ro=(e,t,n)=>(n=e!=null?Zr(Xr(e)):{},no(Dt(n,"default",{value:e,enumerable:!0}),e)),ye=eo({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),oo=to({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){ye(),t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const u=new Map;if(u.set(Date,f=>new Date(f)),u.set(Map,(f,O)=>new Map(a(Array.from(f),O))),u.set(Set,(f,O)=>new Set(a(Array.from(f),O))),s.constructorHandlers)for(const f of s.constructorHandlers)u.set(f[0],f[1]);let i=null;return s.proto?E:l;function a(f,O){const d=Object.keys(f),p=new Array(d.length);for(let A=0;A<d.length;A++){const _=d[A],g=f[_];typeof g!="object"||g===null?p[_]=g:g.constructor!==Object&&(i=u.get(g.constructor))?p[_]=i(g,O):ArrayBuffer.isView(g)?p[_]=n(g):p[_]=O(g)}return p}function l(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return a(f,l);if(f.constructor!==Object&&(i=u.get(f.constructor)))return i(f,l);const O={};for(const d in f){if(Object.hasOwnProperty.call(f,d)===!1)continue;const p=f[d];typeof p!="object"||p===null?O[d]=p:p.constructor!==Object&&(i=u.get(p.constructor))?O[d]=i(p,l):ArrayBuffer.isView(p)?O[d]=n(p):O[d]=l(p)}return O}function E(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return a(f,E);if(f.constructor!==Object&&(i=u.get(f.constructor)))return i(f,E);const O={};for(const d in f){const p=f[d];typeof p!="object"||p===null?O[d]=p:p.constructor!==Object&&(i=u.get(p.constructor))?O[d]=i(p,E):ArrayBuffer.isView(p)?O[d]=n(p):O[d]=E(p)}return O}}function o(s){const u=[],i=[],a=new Map;if(a.set(Date,d=>new Date(d)),a.set(Map,(d,p)=>new Map(E(Array.from(d),p))),a.set(Set,(d,p)=>new Set(E(Array.from(d),p))),s.constructorHandlers)for(const d of s.constructorHandlers)a.set(d[0],d[1]);let l=null;return s.proto?O:f;function E(d,p){const A=Object.keys(d),_=new Array(A.length);for(let g=0;g<A.length;g++){const w=A[g],T=d[w];if(typeof T!="object"||T===null)_[w]=T;else if(T.constructor!==Object&&(l=a.get(T.constructor)))_[w]=l(T,p);else if(ArrayBuffer.isView(T))_[w]=n(T);else{const B=u.indexOf(T);B!==-1?_[w]=i[B]:_[w]=p(T)}}return _}function f(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return E(d,f);if(d.constructor!==Object&&(l=a.get(d.constructor)))return l(d,f);const p={};u.push(d),i.push(p);for(const A in d){if(Object.hasOwnProperty.call(d,A)===!1)continue;const _=d[A];if(typeof _!="object"||_===null)p[A]=_;else if(_.constructor!==Object&&(l=a.get(_.constructor)))p[A]=l(_,f);else if(ArrayBuffer.isView(_))p[A]=n(_);else{const g=u.indexOf(_);g!==-1?p[A]=i[g]:p[A]=f(_)}}return u.pop(),i.pop(),p}function O(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return E(d,O);if(d.constructor!==Object&&(l=a.get(d.constructor)))return l(d,O);const p={};u.push(d),i.push(p);for(const A in d){const _=d[A];if(typeof _!="object"||_===null)p[A]=_;else if(_.constructor!==Object&&(l=a.get(_.constructor)))p[A]=l(_,O);else if(ArrayBuffer.isView(_))p[A]=n(_);else{const g=u.indexOf(_);g!==-1?p[A]=i[g]:p[A]=O(_)}}return u.pop(),i.pop(),p}}}});ye(),ye(),ye();var It=typeof navigator<"u",h=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof h.chrome<"u"&&h.chrome.devtools,It&&(h.self,h.top);var kt;typeof navigator<"u"&&((kt=navigator.userAgent)==null||kt.toLowerCase().includes("electron")),ye();var so=ro(oo()),uo=/(?:^|[-_/])(\w)/g;function io(e,t){return t?t.toUpperCase():""}function ao(e){return e&&`${e}`.replace(uo,io)}function co(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}var Pt=(0,so.default)({circles:!0});const lo={trailing:!0};function ae(e,t=25,n={}){if(n={...lo,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],u,i;const a=(l,E)=>(u=fo(e,l,E),u.finally(()=>{if(u=null,n.trailing&&i&&!o){const f=a(l,i);return i=null,f}}),u);return function(...l){return u?(n.trailing&&(i=l),u):new Promise(E=>{const f=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const O=n.leading?r:a(this,l);for(const d of s)d(O);s=[]},t),f?(r=a(this,l),E(r)):s.push(E)})}}async function fo(e,t,n){return await e.apply(t,n)}function Ye(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Ye(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const _o={run:e=>e()},po=()=>_o,Rt=typeof console.createTask<"u"?console.createTask:po;function ho(e,t){const n=t.shift(),r=Rt(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Eo(e,t){const n=t.shift(),r=Rt(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function qe(e,t){for(const n of[...e])n(t)}class go{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,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let u=s.message;u||(u=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(u)||(console.warn(u),this._deprecatedMessages.add(u))}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 r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ye(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Ye(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ho,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Eo,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&qe(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&qe(this._after,o)}):(this._after&&o&&qe(this._after,o),s)}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 Nt(){return new go}var mo=Object.create,Vt=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,Ze=Object.getOwnPropertyNames,yo=Object.getPrototypeOf,Oo=Object.prototype.hasOwnProperty,Ao=(e,t)=>function(){return e&&(t=(0,e[Ze(e)[0]])(e=0)),t},xt=(e,t)=>function(){return t||(0,e[Ze(e)[0]])((t={exports:{}}).exports,t),t.exports},bo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ze(t))!Oo.call(e,o)&&o!==n&&Vt(e,o,{get:()=>t[o],enumerable:!(r=vo(t,o))||r.enumerable});return e},So=(e,t,n)=>(n=e!=null?mo(yo(e)):{},bo(Vt(n,"default",{value:e,enumerable:!0}),e)),c=Ao({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),wo=xt({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){c(),function(n){var r={À:"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"},o=["်","ް"],s={"ာ":"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"},u={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"}},a=[";","?",":","@","&","=","+","$",",","/"].join(""),l=[";","?",":","@","&","=","+","$",","].join(""),E=[".","!","~","*","'","(",")"].join(""),f=function(_,g){var w="-",T="",B="",te=!0,$={},b,ke,F,y,m,C,N,j,me,K,S,Y,I,ve,ne="";if(typeof _!="string")return"";if(typeof g=="string"&&(w=g),N=i.en,j=u.en,typeof g=="object"){b=g.maintainCase||!1,$=g.custom&&typeof g.custom=="object"?g.custom:$,F=+g.truncate>1&&g.truncate||!1,y=g.uric||!1,m=g.uricNoSlash||!1,C=g.mark||!1,te=!(g.symbols===!1||g.lang===!1),w=g.separator||w,y&&(ne+=a),m&&(ne+=l),C&&(ne+=E),N=g.lang&&i[g.lang]&&te?i[g.lang]:te?i.en:{},j=g.lang&&u[g.lang]?u[g.lang]:g.lang===!1||g.lang===!0?{}:u.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(z){$[z+""]=z+""}),ke=!0):ke=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(z){$[z+""]=z+""}),Object.keys($).forEach(function(z){var Pe;z.length>1?Pe=new RegExp("\\b"+d(z)+"\\b","gi"):Pe=new RegExp(d(z),"gi"),_=_.replace(Pe,$[z])});for(S in $)ne+=S}for(ne+=w,ne=d(ne),_=_.replace(/(^\s+|\s+$)/g,""),I=!1,ve=!1,K=0,Y=_.length;K<Y;K++)S=_[K],p(S,$)?I=!1:j[S]?(S=I&&j[S].match(/[A-Za-z0-9]/)?" "+j[S]:j[S],I=!1):S in r?(K+1<Y&&o.indexOf(_[K+1])>=0?(B+=S,S=""):ve===!0?(S=s[B]+r[S],B=""):S=I&&r[S].match(/[A-Za-z0-9]/)?" "+r[S]:r[S],I=!1,ve=!1):S in s?(B+=S,S="",K===Y-1&&(S=s[B]),ve=!0):N[S]&&!(y&&a.indexOf(S)!==-1)&&!(m&&l.indexOf(S)!==-1)?(S=I||T.substr(-1).match(/[A-Za-z0-9]/)?w+N[S]:N[S],S+=_[K+1]!==void 0&&_[K+1].match(/[A-Za-z0-9]/)?w:"",I=!0):(ve===!0?(S=s[B]+S,B="",ve=!1):I&&(/[A-Za-z0-9]/.test(S)||T.substr(-1).match(/A-Za-z0-9]/))&&(S=" "+S),I=!1),T+=S.replace(new RegExp("[^\\w\\s"+ne+"_-]","g"),w);return ke&&(T=T.replace(/(\w)(\S*)/g,function(z,Pe,qr){var Ct=Pe.toUpperCase()+(qr!==null?qr:"");return Object.keys($).indexOf(Ct.toLowerCase())<0?Ct:Ct.toLowerCase()})),T=T.replace(/\s+/g,w).replace(new RegExp("\\"+w+"+","g"),w).replace(new RegExp("(^\\"+w+"+|\\"+w+"+$)","g"),""),F&&T.length>F&&(me=T.charAt(F)===w,T=T.slice(0,F),me||(T=T.slice(0,T.lastIndexOf(w)))),!b&&!ke&&(T=T.toLowerCase()),T},O=function(_){return function(w){return f(w,_)}},d=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(A,_){for(var g in _)if(_[g]===A)return!0};if(typeof t<"u"&&t.exports)t.exports=f,t.exports.createSlug=O;else if(typeof define<"u"&&define.amd)define([],function(){return f});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=f,n.createSlug=O}catch{}}(e)}}),To=xt({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){c(),t.exports=wo()}});c(),c(),c(),c(),c(),c(),c(),c();function Co(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 Do(e){const t=e.__file;if(t)return ao(co(t,".vue"))}function Lt(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Je(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 Bt(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,o=Je(e);return o?((n=o==null?void 0:o.types)==null?void 0:n.Fragment)===r:!1}function Re(e){var t,n,r;const o=Co((e==null?void 0:e.type)||{});if(o)return o;if((e==null?void 0:e.root)===e)return"Root";for(const u in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[u]===(e==null?void 0:e.type))return Lt(e,u);for(const u in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[u]===(e==null?void 0:e.type))return Lt(e,u);const s=Do((e==null?void 0:e.type)||{});return s||"Anonymous Component"}function Io(e){var t,n,r;const o=(r=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,s=e===(e==null?void 0:e.root)?"root":e.uid;return`${o}:${s}`}function Xe(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function ko(){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 Ne;function Po(e){return Ne||(Ne=document.createRange()),Ne.selectNode(e),Ne.getBoundingClientRect()}function Ro(e){const t=ko();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=re(o.component);else if(o.el){const u=o.el;u.nodeType===1||u.getBoundingClientRect?s=u.getBoundingClientRect():u.nodeType===3&&u.data.trim()&&(s=Po(u))}s&&No(t,s)}return t}function No(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 Ft={top:0,left:0,right:0,bottom:0,width:0,height:0};function re(e){const t=e.subTree.el;return typeof window>"u"?Ft:Bt(e)?Ro(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?re(e.subTree.component):Ft}c();function Qe(e){return Bt(e)?Vo(e.subTree):e.subTree?[e.subTree.el]:[]}function Vo(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...Qe(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Ut="__vue-devtools-component-inspector__",Mt="__vue-devtools-component-inspector__card__",$t="__vue-devtools-component-inspector__name__",jt="__vue-devtools-component-inspector__indicator__",Ht={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},xo={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)"},Lo={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ce(){return document.getElementById(Ut)}function Bo(){return document.getElementById(Mt)}function Fo(){return document.getElementById(jt)}function Uo(){return document.getElementById($t)}function et(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 tt(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Ut,Object.assign(n.style,{...Ht,...et(e.bounds),...e.style});const r=document.createElement("span");r.id=Mt,Object.assign(r.style,{...xo,top:e.bounds.top<35?0:"-35px"});const o=document.createElement("span");o.id=$t,o.innerHTML=`<${e.name}> `;const s=document.createElement("i");return s.id=jt,s.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(s.style,Lo),r.appendChild(o),r.appendChild(s),n.appendChild(r),document.body.appendChild(n),n}function nt(e){const t=ce(),n=Bo(),r=Uo(),o=Fo();t&&(Object.assign(t.style,{...Ht,...et(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`<${e.name}> `,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function Mo(e){const t=re(e);if(!t.width&&!t.height)return;const n=Re(e);ce()?nt({bounds:t,name:n}):tt({bounds:t,name:n})}function Kt(){const e=ce();e&&(e.style.display="none")}var rt=null;function ot(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(rt=n,n.vnode.el)){const o=re(n),s=Re(n);ce()?nt({bounds:o,name:s}):tt({bounds:o,name:s})}}}function $o(e,t){if(e.preventDefault(),e.stopPropagation(),rt){const n=Io(rt);t(n)}}var Ve=null;function jo(){Kt(),window.removeEventListener("mouseover",ot),window.removeEventListener("click",Ve,!0),Ve=null}function Ho(){return window.addEventListener("mouseover",ot),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),$o(n,r=>{window.removeEventListener("click",t,!0),Ve=null,window.removeEventListener("mouseover",ot);const o=ce();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}Ve=t,window.addEventListener("click",t,!0)})}function Ko(e){const t=Xe(L.value,e.id);if(t){const[n]=Qe(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=re(t),o=document.createElement("div"),s={...et(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=re(t);if(r.width||r.height){const o=Re(t),s=ce();s?nt({...e,name:o,bounds:r}):tt({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}c();var zt,Gt;(Gt=(zt=h).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(zt.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function zo(e){let t=0;const n=setInterval(()=>{h.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Go(){const e=h.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Wo(){return new Promise(e=>{function t(){Go(),e(h.__VUE_INSPECTOR__)}h.__VUE_INSPECTOR__?t():zo(()=>{t()})})}c(),c();function Yo(e){return!!(e&&e.__v_isReadonly)}function Wt(e){return Yo(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}var qo=class{constructor(){this.refEditor=new Zo}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const i=o.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 s=o[0],u=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(u)?this.refEditor.set(u,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],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 r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Oe(t)instanceof Map?t.delete(n):Oe(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Oe(t)instanceof Map?t.set(e.newKey||n,r):Oe(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Zo=class{set(e,t){if(st(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return st(e)?e.value:e}isRef(e){return st(e)||Wt(e)}};c(),c(),c();var Jo="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Xo(){if(!It||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Jo);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}c(),c(),c();var Yt,qt;(qt=(Yt=h).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(Yt.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Qo=new Proxy(h.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function es(e,t){P.timelineLayersState[t.id]=!1,Qo.push({...e,descriptorId:t.id,appRecord:Je(t.app)})}var Zt,Jt;(Jt=(Zt=h).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(Zt.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var ut=new Proxy(h.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Xt=ae(()=>{fe.hooks.callHook("sendInspectorToClient",Qt())});function ts(e,t){var n,r;ut.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Je(t.app)}),Xt()}function Qt(){return ut.filter(e=>e.descriptor.app===L.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r==null?void 0:r.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function xe(e,t){return ut.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function ns(){const e=Nt();e.hook("addInspector",({inspector:r,plugin:o})=>{ts(r,o.descriptor)});const t=ae(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||P.highPerfModeEnabled)return;const u=xe(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,filter:(u==null?void 0:u.treeFilter)||"",rootNodes:[]};await new Promise(a=>{e.callHookWith(async l=>{await Promise.all(l.map(E=>E(i))),a()},"getInspectorTree")}),e.callHookWith(async a=>{await Promise.all(a.map(l=>l({inspectorId:r,rootNodes:i.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=ae(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||P.highPerfModeEnabled)return;const u=xe(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,nodeId:(u==null?void 0:u.selectedNodeId)||"",state:null},a={currentTab:`custom-inspector:${r}`};i.nodeId&&await new Promise(l=>{e.callHookWith(async E=>{await Promise.all(E.map(f=>f(i,a))),l()},"getInspectorState")}),e.callHookWith(async l=>{await Promise.all(l.map(E=>E({inspectorId:r,nodeId:i.nodeId,state:i.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:o,plugin:s})=>{const u=xe(r,s.descriptor.app);u&&(u.selectedNodeId=o)}),e.hook("timelineLayerAdded",({options:r,plugin:o})=>{es(r,o.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:o})=>{var s;const u=["performance","component-event","keyboard","mouse"];P.highPerfModeEnabled||!((s=P.timelineLayersState)!=null&&s[o.descriptor.id])&&!u.includes(r.layerId)||e.callHookWith(async i=>{await Promise.all(i.map(a=>a(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([i])=>i.split(":")[0]===s).map(([,i])=>i)}),e.hook("getComponentBounds",async({instance:r})=>re(r)),e.hook("getComponentName",({instance:r})=>Re(r)),e.hook("componentHighlight",({uid:r})=>{const o=L.value.instanceMap.get(r);o&&Mo(o)}),e.hook("componentUnhighlight",()=>{Kt()}),e}var en,tn;(tn=(en=h).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(en.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var nn,rn;(rn=(nn=h).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(nn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var on,sn;(sn=(on=h).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(on.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var un,an;(an=(un=h).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(un.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var cn,ln;(ln=(cn=h).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(cn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var oe="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function rs(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Xo()}}var fn,dn;(dn=(fn=h)[oe])!=null||(fn[oe]=rs());var os=ae(e=>{fe.hooks.callHook("devtoolsStateUpdated",{state:e})});ae((e,t)=>{fe.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Le=new Proxy(h.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?h.__VUE_DEVTOOLS_KIT_APP_RECORDS__:h.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),L=new Proxy(h.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?h.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?h.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:h.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function _n(){os({...h[oe],appRecords:Le.value,activeAppRecordId:L.id,tabs:h.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:h.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function ss(e){h.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,_n()}function us(e){h.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,_n()}var P=new Proxy(h[oe],{get(e,t){return t==="appRecords"?Le:t==="activeAppRecordId"?L.id:t==="tabs"?h.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?h.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:h[oe][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...h[oe]},e[t]=n,h[oe][t]=n,!0}});function is(e={}){var t,n,r;const{file:o,host:s,baseUrl:u=window.location.origin,line:i=0,column:a=0}=e;if(o){if(s==="chrome-extension"){const l=o.replace(/\\/g,"\\\\"),E=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${E}__open-in-editor?file=${encodeURI(o)}`).then(f=>{if(!f.ok){const O=`Opening component ${l} failed`;console.log(`%c${O}`,"color:red")}})}else if(P.vitePluginDetected){const l=(r=h.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:u;h.__VUE_INSPECTOR__.openInEditor(l,o,i,a)}}}c(),c(),c(),c(),c();var pn,hn;(hn=(pn=h).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(pn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var it=new Proxy(h.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function at(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function ct(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function as(e){var t,n,r;const o=(n=(t=it.find(s=>{var u;return s[0].id===e&&!!((u=s[0])!=null&&u.settings)}))==null?void 0:t[0])!=null?n:null;return(r=o==null?void 0:o.settings)!=null?r:null}function En(e,t){var n,r,o;const s=ct(e);if(s){const u=localStorage.getItem(s);if(u)return JSON.parse(u)}if(e){const u=(r=(n=it.find(i=>i[0].id===e))==null?void 0:n[0])!=null?r:null;return at((o=u==null?void 0:u.settings)!=null?o:{})}return at(t)}function cs(e,t){const n=ct(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(at(t)))}function ls(e,t,n){const r=ct(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),u={...s,[t]:n};localStorage.setItem(r,JSON.stringify(u)),fe.hooks.callHookWith(i=>{i.forEach(a=>a({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:u}))},"setPluginSettings")}c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c();var gn,mn,U=(mn=(gn=h).__VUE_DEVTOOLS_HOOK)!=null?mn:gn.__VUE_DEVTOOLS_HOOK=Nt(),fs={vueAppInit(e){U.hook("app:init",e)},vueAppUnmount(e){U.hook("app:unmount",e)},vueAppConnected(e){U.hook("app:connected",e)},componentAdded(e){return U.hook("component:added",e)},componentEmit(e){return U.hook("component:emit",e)},componentUpdated(e){return U.hook("component:updated",e)},componentRemoved(e){return U.hook("component:removed",e)},setupDevtoolsPlugin(e){U.hook("devtools-plugin:setup",e)},perfStart(e){return U.hook("perf:start",e)},perfEnd(e){return U.hook("perf:end",e)}},vn={on:fs,setupDevToolsPlugin(e,t){return U.callHook("devtools-plugin:setup",e,t)}},ds=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(P.highPerfModeEnabled)return;const n=Qt().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];U.callHook("component:updated",...r)}else U.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&&cs(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){P.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){P.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 P.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){P.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return En(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")}},_s=ds;c(),c(),c(),c();var ps="__vue_devtool_undefined__",hs="__vue_devtool_infinity__",Es="__vue_devtool_negative_infinity__",gs="__vue_devtool_nan__";c(),c();var ms={[ps]:"undefined",[gs]:"NaN",[hs]:"Infinity",[Es]:"-Infinity"};Object.entries(ms).reduce((e,[t,n])=>(e[n]=t,e),{}),c(),c(),c(),c(),c();var yn,On;(On=(yn=h).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(yn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function An(e,t){return vn.setupDevToolsPlugin(e,t)}function vs(e,t){const[n,r]=e;if(n.app!==t)return;const o=new _s({plugin:{setupFn:r,descriptor:n},ctx:fe});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function bn(e,t){h.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||P.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(h.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),it.forEach(n=>{vs(n,e)}))}c(),c();var Ae="__VUE_DEVTOOLS_ROUTER__",le="__VUE_DEVTOOLS_ROUTER_INFO__",Sn,wn;(wn=(Sn=h)[le])!=null||(Sn[le]={currentRoute:null,routes:[]});var Tn,Cn;(Cn=(Tn=h)[Ae])!=null||(Tn[Ae]={}),new Proxy(h[le],{get(e,t){return h[le][t]}}),new Proxy(h[Ae],{get(e,t){if(t==="value")return h[Ae]}});function ys(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function lt(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o!=null&&o.length&&(o=lt(o)),{path:n,name:r,children:o,meta:s}})}function Os(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:u,params:i,query:a}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:i,query:a,matched:lt(u)}}return e}function As(e,t){function n(){var r;const o=(r=e.app)==null?void 0:r.config.globalProperties.$router,s=Os(o==null?void 0:o.currentRoute.value),u=lt(ys(o)),i=console.warn;console.warn=()=>{},h[le]={currentRoute:s?Pt(s):{},routes:Pt(u)},h[Ae]=o,console.warn=i}n(),vn.on.componentUpdated(ae(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!P.highPerfModeEnabled&&fe.hooks.callHook("routerInfoUpdated",{state:h[le]}))},200))}function bs(e){return{async getInspectorTree(t){const n={...t,app:L.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:L.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(u=>u(n,r))),o()},"getInspectorState")}),n.state},editInspectorState(t){const n=new qo,r={...t,app:L.value.app,set:(o,s=t.path,u=t.state.value,i)=>{n.set(o,s,u,i||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},"editInspectorState")},sendInspectorState(t){const n=xe(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ho()},cancelInspectComponentInspector(){return jo()},getComponentRenderCode(t){const n=Xe(L.value,t);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent(t){return Ko({id:t})},openInEditor:is,getVueInspector:Wo,toggleApp(t,n){const r=Le.value.find(o=>o.id===t);r&&(us(t),ss(r),As(r,L),Xt(),bn(r.app,n))},inspectDOM(t){const n=Xe(L.value,t);if(n){const[r]=Qe(n);r&&(h.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){ls(t,n,r)},getPluginSettings(t){return{options:as(t),values:En(t)}}}}c();var Dn,In;(In=(Dn=h).__VUE_DEVTOOLS_ENV__)!=null||(Dn.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var kn=ns(),Pn,Rn;(Rn=(Pn=h).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(Pn.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:kn,get state(){return{...P,activeAppRecordId:L.id,activeAppRecord:L.value,appRecords:Le.value}},api:bs(kn)});var fe=h.__VUE_DEVTOOLS_KIT_CONTEXT__;c(),So(To());var Nn,Vn;(Vn=(Nn=h).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Nn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),c();function Ss(e){P.highPerfModeEnabled=e??!P.highPerfModeEnabled,!e&&L.value&&bn(L.value.app)}c(),c(),c();function ws(e){P.devtoolsClientDetected={...P.devtoolsClientDetected,...e};const t=Object.values(P.devtoolsClientDetected).some(Boolean);Ss(!t)}var xn,Ln;(Ln=(xn=h).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(xn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ws),c(),c(),c(),c(),c(),c(),c();var Ts=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()}},Bn=class{constructor(t){this.generateIdentifier=t,this.kv=new Ts}register(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}},Cs=class extends Bn{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)}};c(),c();function Ds(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 Is(e,t){const n=Ds(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function de(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Be(e,t){return e.indexOf(t)!==-1}function Fn(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var ks=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Is(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};c(),c();var Ps=e=>Object.prototype.toString.call(e).slice(8,-1),Un=e=>typeof e>"u",Rs=e=>e===null,be=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,ft=e=>be(e)&&Object.keys(e).length===0,X=e=>Array.isArray(e),Ns=e=>typeof e=="string",Vs=e=>typeof e=="number"&&!isNaN(e),xs=e=>typeof e=="boolean",Ls=e=>e instanceof RegExp,Se=e=>e instanceof Map,we=e=>e instanceof Set,Mn=e=>Ps(e)==="Symbol",Bs=e=>e instanceof Date&&!isNaN(e.valueOf()),Fs=e=>e instanceof Error,$n=e=>typeof e=="number"&&isNaN(e),Us=e=>xs(e)||Rs(e)||Un(e)||Vs(e)||Ns(e)||Mn(e),Ms=e=>typeof e=="bigint",$s=e=>e===1/0||e===-1/0,js=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Hs=e=>e instanceof URL;c();var jn=e=>e.replace(/\./g,"\\."),dt=e=>e.map(String).map(jn).join("."),Te=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};c();function G(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Hn=[G(Un,"undefined",()=>null,()=>{}),G(Ms,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),G(Bs,"Date",e=>e.toISOString(),e=>new Date(e)),G(Fs,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),G(Ls,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),G(we,"set",e=>[...e.values()],e=>new Set(e)),G(Se,"map",e=>[...e.entries()],e=>new Map(e)),G(e=>$n(e)||$s(e),"number",e=>$n(e)?"NaN":e>0?"Infinity":"-Infinity",Number),G(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),G(Hs,"URL",e=>e.toString(),e=>new URL(e))];function Fe(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Kn=Fe((e,t)=>Mn(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Ks=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),zn=Fe(js,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Ks[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Gn(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Wn=Fe(Gn,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)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(r.prototype),e)}),Yn=Fe((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 r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),zs=[Wn,Kn,Yn,zn],qn=(e,t)=>{const n=Fn(zs,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Fn(Hn,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Zn={};Hn.forEach(e=>{Zn[e.annotation]=e});var Gs=(e,t,n)=>{if(X(t))switch(t[0]){case"symbol":return Kn.untransform(e,t,n);case"class":return Wn.untransform(e,t,n);case"custom":return Yn.untransform(e,t,n);case"typed-array":return zn.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Zn[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};c();var _e=(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 Jn(e){if(Be(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Be(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Be(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Ws=(e,t)=>{Jn(t);for(let n=0;n<t.length;n++){const r=t[n];if(we(e))e=_e(e,+r);else if(Se(e)){const o=+r,s=+t[++n]==0?"key":"value",u=_e(e,o);switch(s){case"key":e=u;break;case"value":e=e.get(u);break}}else e=e[r]}return e},_t=(e,t,n)=>{if(Jn(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const u=t[s];if(X(r)){const i=+u;r=r[i]}else if(be(r))r=r[u];else if(we(r)){const i=+u;r=_e(r,i)}else if(Se(r)){if(s===t.length-2)break;const a=+u,l=+t[++s]==0?"key":"value",E=_e(r,a);switch(l){case"key":r=E;break;case"value":r=r.get(E);break}}}const o=t[t.length-1];if(X(r)?r[+o]=n(r[+o]):be(r)&&(r[o]=n(r[o])),we(r)){const s=_e(r,+o),u=n(s);s!==u&&(r.delete(s),r.add(u))}if(Se(r)){const s=+t[t.length-2],u=_e(r,s);switch(+o==0?"key":"value"){case"key":{const a=n(u);r.set(a,r.get(u)),a!==u&&r.delete(u);break}case"value":{r.set(u,n(r.get(u)));break}}}return e};function pt(e,t,n=[]){if(!e)return;if(!X(e)){de(e,(s,u)=>pt(s,t,[...n,...Te(u)]));return}const[r,o]=e;o&&de(o,(s,u)=>{pt(s,t,[...n,...Te(u)])}),t(r,n)}function Ys(e,t,n){return pt(t,(r,o)=>{e=_t(e,o,s=>Gs(s,r,n))}),e}function qs(e,t){function n(r,o){const s=Ws(e,Te(o));r.map(Te).forEach(u=>{e=_t(e,u,()=>s)})}if(X(t)){const[r,o]=t;r.forEach(s=>{e=_t(e,Te(s),()=>e)}),o&&de(o,n)}else de(t,n);return e}var Zs=(e,t)=>be(e)||X(e)||Se(e)||we(e)||Gn(e,t);function Js(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Xs(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(i=>i.map(String)).sort((i,a)=>i.length-a.length));const[s,...u]=o;s.length===0?r=u.map(dt):n[dt(s)]=u.map(dt)}),r?ft(n)?[r]:[r,n]:ft(n)?void 0:n}var Xn=(e,t,n,r,o=[],s=[],u=new Map)=>{var i;const a=Us(e);if(!a){Js(e,o,t);const p=u.get(e);if(p)return r?{transformedValue:null}:p}if(!Zs(e,n)){const p=qn(e,n),A=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return a||u.set(e,A),A}if(Be(s,e))return{transformedValue:null};const l=qn(e,n),E=(i=l==null?void 0:l.value)!=null?i:e,f=X(E)?[]:{},O={};de(E,(p,A)=>{if(A==="__proto__"||A==="constructor"||A==="prototype")throw new Error(`Detected property ${A}. This is a prototype pollution risk, please remove it from your object.`);const _=Xn(p,t,n,r,[...o,A],[...s,e],u);f[A]=_.transformedValue,X(_.annotations)?O[A]=_.annotations:be(_.annotations)&&de(_.annotations,(g,w)=>{O[jn(A)+"."+w]=g})});const d=ft(O)?{transformedValue:f,annotations:l?[l.type]:void 0}:{transformedValue:f,annotations:l?[l.type,O]:O};return a||u.set(e,d),d};c(),c();function Qn(e){return Object.prototype.toString.call(e).slice(8,-1)}function er(e){return Qn(e)==="Array"}function Qs(e){if(Qn(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function eu(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function ht(e,t={}){if(er(e))return e.map(o=>ht(o,t));if(!Qs(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(er(t.props)&&!t.props.includes(s))return o;const u=e[s],i=ht(u,t);return eu(o,s,i,e,t.nonenumerable),o},{})}var D=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Cs,this.symbolRegistry=new Bn(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new ks,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Xn(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Xs(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=ht(t);return n!=null&&n.values&&(r=Ys(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=qs(r,n.referentialEqualities)),r}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)}};D.defaultInstance=new D,D.serialize=D.defaultInstance.serialize.bind(D.defaultInstance),D.deserialize=D.defaultInstance.deserialize.bind(D.defaultInstance),D.stringify=D.defaultInstance.stringify.bind(D.defaultInstance),D.parse=D.defaultInstance.parse.bind(D.defaultInstance),D.registerClass=D.defaultInstance.registerClass.bind(D.defaultInstance),D.registerSymbol=D.defaultInstance.registerSymbol.bind(D.defaultInstance),D.registerCustom=D.defaultInstance.registerCustom.bind(D.defaultInstance),D.allowErrorProps=D.defaultInstance.allowErrorProps.bind(D.defaultInstance),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c();var tr,nr;(nr=(tr=h).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(tr.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var rr,or;(or=(rr=h).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(rr.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var sr,ur;(ur=(sr=h).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(sr.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var ir,ar;(ar=(ir=h).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(ir.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var cr,lr;(lr=(cr=h).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(cr.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var fr,dr;(dr=(fr=h).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(fr.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),c(),c(),c(),c(),c(),c(),c();/*!
|
|
2
|
+
* pinia v3.0.1
|
|
3
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
5
|
+
*/let Ce;const De=e=>Ce=e,_r=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function se(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var W;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(W||(W={}));const Q=typeof window<"u",pr=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 tu(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Et(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){gr(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function hr(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ue(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Me=typeof navigator=="object"?navigator:{userAgent:""},Er=/Macintosh/.test(Me.userAgent)&&/AppleWebKit/.test(Me.userAgent)&&!/Safari/.test(Me.userAgent),gr=Q?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Er?nu:"msSaveOrOpenBlob"in Me?ru:ou:()=>{};function nu(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?hr(r.href)?Et(e,t,n):(r.target="_blank",Ue(r)):Ue(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ue(r)},0))}function ru(e,t="download",n){if(typeof e=="string")if(hr(e))Et(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Ue(r)})}else navigator.msSaveOrOpenBlob(tu(e,n),t)}function ou(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Et(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(pr.HTMLElement))||"safari"in pr,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&s||Er)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let a=i.result;if(typeof a!="string")throw r=null,new Error("Wrong reader.result type");a=u?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=a:location.assign(a),r=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);r?r.location.assign(i):location.href=i,r=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function R(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function gt(e){return"_a"in e&&"install"in e}function mr(){if(!("clipboard"in navigator))return R("Your browser doesn't support the Clipboard API","error"),!0}function vr(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(R('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function su(e){if(!mr())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),R("Global state copied to clipboard.")}catch(t){if(vr(t))return;R("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function uu(e){if(!mr())try{yr(e,JSON.parse(await navigator.clipboard.readText())),R("Global state pasted from clipboard.")}catch(t){if(vr(t))return;R("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function iu(e){try{gr(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){R("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let q;function au(){q||(q=document.createElement("input"),q.type="file",q.accept=".json");function e(){return new Promise((t,n)=>{q.onchange=async()=>{const r=q.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},q.oncancel=()=>t(null),q.onerror=n,q.click()})}return e}async function cu(e){try{const n=await au()();if(!n)return;const{text:r,file:o}=n;yr(e,JSON.parse(r)),R(`Global state imported from "${o.name}".`)}catch(t){R("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function yr(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function H(e){return{_custom:{display:e}}}const Or="🍍 Pinia (root)",$e="_root";function lu(e){return gt(e)?{id:$e,label:Or}:{id:e.$id,label:e.$id}}function fu(e){if(gt(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const u=r.get(s);return{editable:!1,key:s,value:u._getters.reduce((i,a)=>(i[a]=u[a],i),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function du(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:H(e.type),key:H(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function _u(e){switch(e){case W.direct:return"mutation";case W.patchFunction:return"$patch";case W.patchObject:return"$patch";default:return"unknown"}}let pe=!0;const je=[],ue="pinia:mutations",x="pinia",{assign:pu}=Object,He=e=>"🍍 "+e;function hu(e,t){An({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:je,app:e},n=>{typeof n.now!="function"&&R("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:ue,label:"Pinia 🍍",color:15064968}),n.addInspector({id:x,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{su(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await uu(t),n.sendInspectorTree(x),n.sendInspectorState(x)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{iu(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await cu(t),n.sendInspectorTree(x),n.sendInspectorState(x)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?R(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),R(`Store "${r}" reset.`)):R(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(r=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(u=>{r.instanceData.state.push({type:He(u.$id),key:"state",editable:!0,value:u._isOptionsAPI?{_custom:{value:v.toRaw(u.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>u.$reset()}]}}:Object.keys(u.$state).reduce((i,a)=>(i[a]=u.$state[a],i),{})}),u._getters&&u._getters.length&&r.instanceData.state.push({type:He(u.$id),key:"getters",editable:!1,value:u._getters.reduce((i,a)=>{try{i[a]=u[a]}catch(l){i[a]=l}return i},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===x){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Or.toLowerCase().includes(r.filter.toLowerCase())):o).map(lu)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===x){const o=r.nodeId===$e?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==$e&&(globalThis.$store=v.toRaw(o)),r.state=fu(o))}}),n.on.editInspectorState(r=>{if(r.app===e&&r.inspectorId===x){const o=r.nodeId===$e?t:t._s.get(r.nodeId);if(!o)return R(`store "${r.nodeId}" not found`,"error");const{path:s}=r;gt(o)?s.unshift("state"):(s.length!==1||!o._customProperties.has(s[0])||s[0]in o.$state)&&s.unshift("$state"),pe=!1,r.set(o,s,r.state.value),pe=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return R(`store "${o}" not found`,"error");const{path:u}=r;if(u[0]!=="state")return R(`Invalid path for store "${o}":
|
|
6
|
+
${u}
|
|
7
|
+
Only state can be modified.`);u[0]="$state",pe=!1,r.set(s,u,r.state.value),pe=!0}})})}function Eu(e,t){je.includes(He(t.$id))||je.push(He(t.$id)),An({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:je,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:u,onError:i,name:a,args:l})=>{const E=Ar++;n.addTimelineEvent({layerId:ue,event:{time:r(),title:"🛫 "+a,subtitle:"start",data:{store:H(t.$id),action:H(a),args:l},groupId:E}}),u(f=>{ee=void 0,n.addTimelineEvent({layerId:ue,event:{time:r(),title:"🛬 "+a,subtitle:"end",data:{store:H(t.$id),action:H(a),args:l,result:f},groupId:E}})}),i(f=>{ee=void 0,n.addTimelineEvent({layerId:ue,event:{time:r(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:H(t.$id),action:H(a),args:l,error:f},groupId:E}})})},!0),t._customProperties.forEach(u=>{v.watch(()=>v.unref(t[u]),(i,a)=>{n.notifyComponentUpdate(),n.sendInspectorState(x),pe&&n.addTimelineEvent({layerId:ue,event:{time:r(),title:"Change",subtitle:u,data:{newValue:i,oldValue:a},groupId:ee}})},{deep:!0})}),t.$subscribe(({events:u,type:i},a)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(x),!pe)return;const l={time:r(),title:_u(i),data:pu({store:H(t.$id)},du(u)),groupId:ee};i===W.patchFunction?l.subtitle="⤵️":i===W.patchObject?l.subtitle="🧩":u&&!Array.isArray(u)&&(l.subtitle=u.type),u&&(l.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:u}}),n.addTimelineEvent({layerId:ue,event:l})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=v.markRaw(u=>{o(u),n.addTimelineEvent({layerId:ue,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:H(t.$id),info:H("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x),n.getSettings().logStoreChanges&&R(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x),n.getSettings().logStoreChanges&&R(`"${t.$id}" store installed 🆕`)})}let Ar=0,ee;function br(e,t,n){const r=t.reduce((o,s)=>(o[s]=v.toRaw(e)[s],o),{});for(const o in r)e[o]=function(){const s=Ar,u=n?new Proxy(e,{get(...a){return ee=s,Reflect.get(...a)},set(...a){return ee=s,Reflect.set(...a)}}):e;ee=s;const i=r[o].apply(u,arguments);return ee=void 0,i}}function gu({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){br(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;v.toRaw(t)._hotUpdate=function(o){r.apply(this,arguments),br(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}Eu(e,t)}}function mu(){const e=v.effectScope(!0),t=e.run(()=>v.ref({}));let n=[],r=[];const o=v.markRaw({install(s){De(o),o._a=s,s.provide(_r,o),s.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Q&&hu(s,o),r.forEach(u=>n.push(u)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Q&&typeof Proxy<"u"&&o.use(gu),o}function Sr(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];se(o)&&se(r)&&!v.isRef(r)&&!v.isReactive(r)?e[n]=Sr(o,r):e[n]=r}return e}const wr=()=>{};function Tr(e,t,n,r=wr){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&v.getCurrentScope()&&v.onScopeDispose(o),o}function he(e,...t){e.slice().forEach(n=>{n(...t)})}const vu=e=>e(),Cr=Symbol(),mt=Symbol();function vt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];se(o)&&se(r)&&e.hasOwnProperty(n)&&!v.isRef(r)&&!v.isReactive(r)?e[n]=vt(o,r):e[n]=r}return e}const yu=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ou(e){return!se(e)||!e.hasOwnProperty(yu)}const{assign:M}=Object;function Dr(e){return!!(v.isRef(e)&&e.effect)}function Ir(e,t,n,r){const{state:o,actions:s,getters:u}=t,i=n.state.value[e];let a;function l(){!i&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const E=process.env.NODE_ENV!=="production"&&r?v.toRefs(v.ref(o?o():{}).value):v.toRefs(n.state.value[e]);return M(E,s,Object.keys(u||{}).reduce((f,O)=>(process.env.NODE_ENV!=="production"&&O in E&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${O}" in store "${e}".`),f[O]=v.markRaw(v.computed(()=>{De(n);const d=n._s.get(e);return u[O].call(d,d)})),f),{}))}return a=yt(e,l,t,n,r,!0),a}function yt(e,t,n={},r,o,s){let u;const i=M({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const a={deep:!0};process.env.NODE_ENV!=="production"&&(a.onTrigger=y=>{l?d=y:l==!1&&!b._hotUpdating&&(Array.isArray(d)?d.push(y):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,E,f=[],O=[],d;const p=r.state.value[e];!s&&!p&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const A=v.ref({});let _;function g(y){let m;l=E=!1,process.env.NODE_ENV!=="production"&&(d=[]),typeof y=="function"?(y(r.state.value[e]),m={type:W.patchFunction,storeId:e,events:d}):(vt(r.state.value[e],y),m={type:W.patchObject,payload:y,storeId:e,events:d});const C=_=Symbol();v.nextTick().then(()=>{_===C&&(l=!0)}),E=!0,he(f,m,r.state.value[e])}const w=s?function(){const{state:m}=n,C=m?m():{};this.$patch(N=>{M(N,C)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:wr;function T(){u.stop(),f=[],O=[],r._s.delete(e)}const B=(y,m="")=>{if(Cr in y)return y[mt]=m,y;const C=function(){De(r);const N=Array.from(arguments),j=[],me=[];function K(I){j.push(I)}function S(I){me.push(I)}he(O,{args:N,name:C[mt],store:b,after:K,onError:S});let Y;try{Y=y.apply(this&&this.$id===e?this:b,N)}catch(I){throw he(me,I),I}return Y instanceof Promise?Y.then(I=>(he(j,I),I)).catch(I=>(he(me,I),Promise.reject(I))):(he(j,Y),Y)};return C[Cr]=!0,C[mt]=m,C},te=v.markRaw({actions:{},getters:{},state:[],hotState:A}),$={_p:r,$id:e,$onAction:Tr.bind(null,O),$patch:g,$reset:w,$subscribe(y,m={}){const C=Tr(f,y,m.detached,()=>N()),N=u.run(()=>v.watch(()=>r.state.value[e],j=>{(m.flush==="sync"?E:l)&&y({storeId:e,type:W.direct,events:d},j)},M({},a,m)));return C},$dispose:T},b=v.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Q?M({_hmrPayload:te,_customProperties:v.markRaw(new Set)},$):$);r._s.set(e,b);const F=(r._a&&r._a.runWithContext||vu)(()=>r._e.run(()=>(u=v.effectScope()).run(()=>t({action:B}))));for(const y in F){const m=F[y];if(v.isRef(m)&&!Dr(m)||v.isReactive(m))process.env.NODE_ENV!=="production"&&o?A.value[y]=v.toRef(F,y):s||(p&&Ou(m)&&(v.isRef(m)?m.value=p[y]:vt(m,p[y])),r.state.value[e][y]=m),process.env.NODE_ENV!=="production"&&te.state.push(y);else if(typeof m=="function"){const C=process.env.NODE_ENV!=="production"&&o?m:B(m,y);F[y]=C,process.env.NODE_ENV!=="production"&&(te.actions[y]=m),i.actions[y]=m}else process.env.NODE_ENV!=="production"&&Dr(m)&&(te.getters[y]=s?n.getters[y]:m,Q&&(F._getters||(F._getters=v.markRaw([]))).push(y))}if(M(b,F),M(v.toRaw(b),F),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?A.value:r.state.value[e],set:y=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");g(m=>{M(m,y)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=v.markRaw(y=>{b._hotUpdating=!0,y._hmrPayload.state.forEach(m=>{if(m in b.$state){const C=y.$state[m],N=b.$state[m];typeof C=="object"&&se(C)&&se(N)?Sr(C,N):y.$state[m]=N}b[m]=v.toRef(y.$state,m)}),Object.keys(b.$state).forEach(m=>{m in y.$state||delete b[m]}),l=!1,E=!1,r.state.value[e]=v.toRef(y._hmrPayload,"hotState"),E=!0,v.nextTick().then(()=>{l=!0});for(const m in y._hmrPayload.actions){const C=y[m];b[m]=B(C,m)}for(const m in y._hmrPayload.getters){const C=y._hmrPayload.getters[m],N=s?v.computed(()=>(De(r),C.call(b,b))):C;b[m]=N}Object.keys(b._hmrPayload.getters).forEach(m=>{m in y._hmrPayload.getters||delete b[m]}),Object.keys(b._hmrPayload.actions).forEach(m=>{m in y._hmrPayload.actions||delete b[m]}),b._hmrPayload=y._hmrPayload,b._getters=y._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Q){const y={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(m=>{Object.defineProperty(b,m,M({value:b[m]},y))})}return r._p.forEach(y=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Q){const m=u.run(()=>y({store:b,app:r._a,pinia:r,options:i}));Object.keys(m||{}).forEach(C=>b._customProperties.add(C)),M(b,m)}else M(b,u.run(()=>y({store:b,app:r._a,pinia:r,options:i})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${
|
|
9
|
+
Found in store "${b.$id}".`),p&&s&&n.hydrate&&n.hydrate(b.$state,p),l=!0,E=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Au(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function s(u,i){const a=v.hasInjectionContext();if(u=(process.env.NODE_ENV==="test"&&Ce&&Ce._testing?null:u)||(a?v.inject(_r,null):null),u&&De(u),process.env.NODE_ENV!=="production"&&!Ce)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);i=z,i._s.has(n)||(s?he(n,t,o,i):We(n,o,i),process.env.NODE_ENV!=="production"&&(a._pinia=i));const h=i._s.get(n);if(process.env.NODE_ENV!=="production"&&u){const p="__hot:"+n,g=s?he(p,t,o,i,!0):We(p,O({},o),i,!0);u._hotUpdate(g),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&R){const p=l.getCurrentInstance();if(p&&p.proxy&&!u){const g=p.proxy,S="_pStores"in g?g._pStores:g._pStores={};S[n]=h}}return h}return a.$id=n,a}const Qt=zt("data",()=>{const e=l.ref([]),t=l.ref({});return{records:e,record:t}});function Yt(e){const t=l.ref();return l.onMounted(async()=>{var i,u,c;e||(e=l.inject("$registry"));let r;try{r=Qt()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new ae(e,r),!e||!e.router)return;const n=e.router.currentRoute.value,o=(i=n.params.records)==null?void 0:i.toString().toLowerCase(),s=(u=n.params.record)==null?void 0:u.toString().toLowerCase();if(!o&&!s)return;const a=await((c=e.getMeta)==null?void 0:c.call(e,o));a&&(e.addDoctype(a),t.value.setup(a),o&&(s?await t.value.getRecord(a,s):await t.value.getRecords(a)),t.value.runAction(a,"LOAD",s?[s]:void 0))}),{stonecrop:t}}class qt{constructor(t,r,n,o,s){b(this,"doctype");b(this,"schema");b(this,"workflow");b(this,"actions");b(this,"component");this.doctype=t,this.schema=r,this.workflow=n,this.actions=o,this.component=s}get slug(){return this.doctype.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}}const G=class G{constructor(t,r){b(this,"name");b(this,"registry");b(this,"router");b(this,"getMeta");if(G._root)return G._root;G._root=this,this.name="Registry",this.registry={},this.router=t,this.getMeta=r}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})}};b(G,"_root");let re=G;function Xt(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var B=Promise.resolve();function ze(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function Kt(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function me(){return Math.random().toString(36).substring(2)}var Qe=0,ge=0;function oe(){var e=new Date().getTime();return e===Qe?(ge++,e*1e3+ge):(Qe=e,ge=0,e*1e3)}var Zt=oe,en="native";function tn(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function nn(e){e.bc.close(),e.subFns=[]}function rn(e,t){try{return e.bc.postMessage(t,!1),B}catch(r){return Promise.reject(r)}}function on(e,t){e.messagesCallback=t}function sn(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function an(){return 150}var cn={create:tn,close:nn,onMessage:on,postMessage:rn,canBeUsed:sn,type:en,averageResponseTime:an,microSeconds:Zt},Ye=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var r=this;this.map.set(t,qe()),this._to||(this._to=!0,setTimeout(function(){r._to=!1,un(r)},0))},e.prototype.clear=function(){this.map.clear()},e}();function un(e){for(var t=qe()-e.ttl,r=e.map[Symbol.iterator]();;){var n=r.next().value;if(!n)return;var o=n[0],s=n[1];if(s<t)e.map.delete(o);else return}}function qe(){return new Date().getTime()}function ye(){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 ln=oe,fn="pubkey.broadcast-channel-0-",M="messages",se={durability:"relaxed"},dn="idb";function Xe(){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 ve(e){e.commit&&e.commit()}function pn(e){var t=Xe(),r=fn+e,n=t.open(r);return n.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(M,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){o(n.result)}})}function hn(e,t,r){var n=new Date().getTime(),o={uuid:t,time:n,data:r},s=e.transaction([M],"readwrite",se);return new Promise(function(a,i){s.oncomplete=function(){return a()},s.onerror=function(c){return i(c)};var u=s.objectStore(M);u.add(o),ve(s)})}function mn(e,t){var r=e.transaction(M,"readonly",se),n=r.objectStore(M),o=[],s=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(s);return new Promise(function(u,c){a.onerror=function(h){return c(h)},a.onsuccess=function(h){u(h.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),n.openCursor(s)}catch{return n.openCursor()}}return new Promise(function(u,c){var h=i();h.onerror=function(p){return c(p)},h.onsuccess=function(p){var g=p.target.result;g?g.value.id<t+1?g.continue(t+1):(o.push(g.value),g.continue()):(ve(r),u(o))}})}function gn(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(M,"readwrite",se),n=r.objectStore(M);return Promise.all(t.map(function(o){var s=n.delete(o);return new Promise(function(a){s.onsuccess=function(){return a()}})}))}function yn(e,t){var r=new Date().getTime()-t,n=e.transaction(M,"readonly",se),o=n.objectStore(M),s=[];return new Promise(function(a){o.openCursor().onsuccess=function(i){var u=i.target.result;if(u){var c=u.value;c.time<r?(s.push(c),u.continue()):(ve(n),a(s))}else a(s)}})}function vn(e){return yn(e.db,e.options.idb.ttl).then(function(t){return gn(e,t.map(function(r){return r.id}))})}function _n(e,t){return t=ye(t),pn(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:me(),eMIs:new Ye(t.idb.ttl*2),writeBlockPromise:B,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},Ke(n),n})}function Ke(e){e.closed||Ze(e).then(function(){return ze(e.options.idb.fallbackInterval)}).then(function(){return Ke(e)})}function bn(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function Ze(e){return e.closed||!e.messagesCallback?B:mn(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return bn(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),B})}function wn(e){e.closed=!0,e.db.close()}function En(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return hn(e.db,e.uuid,t)}).then(function(){Kt(0,10)===0&&vn(e)}),e.writeBlockPromise}function Sn(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,Ze(e)}function On(){return!!Xe()}function In(e){return e.idb.fallbackInterval*2}var Nn={create:_n,close:wn,onMessage:Sn,postMessage:En,canBeUsed:On,type:dn,averageResponseTime:In,microSeconds:ln},kn=oe,Pn="pubkey.broadcastChannel-",$n="localstorage";function et(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function tt(e){return Pn+e}function Tn(e,t){return new Promise(function(r){ze().then(function(){var n=tt(e.channelName),o={token:me(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(o);et().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()})})}function Mn(e,t){var r=tt(e),n=function(s){s.key===r&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",n),n}function Dn(e){window.removeEventListener("storage",e)}function Rn(e,t){if(t=ye(t),!nt())throw new Error("BroadcastChannel: localstorage cannot be used");var r=me(),n=new Ye(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=Mn(e,function(s){o.messagesCallback&&s.uuid!==r&&(!s.token||n.has(s.token)||s.data.time&&s.data.time<o.messagesCallbackTime||(n.add(s.token),o.messagesCallback(s.data)))}),o}function Cn(e){Dn(e.listener)}function Ln(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function nt(){var e=et();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function jn(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var An={create:Rn,close:Cn,onMessage:Ln,postMessage:Tn,canBeUsed:nt,type:$n,averageResponseTime:jn,microSeconds:kn},Vn=oe,Bn="simulate",_e=new Set;function xn(e){var t={name:e,messagesCallback:null};return _e.add(t),t}function Un(e){_e.delete(e)}function Fn(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(_e);n.filter(function(o){return o.name===e.name}).filter(function(o){return o!==e}).filter(function(o){return!!o.messagesCallback}).forEach(function(o){return o.messagesCallback(t)}),r()},5)})}function Hn(e,t){e.messagesCallback=t}function Jn(){return!0}function Gn(){return 5}var Wn={create:xn,close:Un,onMessage:Hn,postMessage:Fn,canBeUsed:Jn,type:Bn,averageResponseTime:Gn,microSeconds:Vn},rt=[cn,Nn,An];function zn(e){var t=[].concat(e.methods,rt).filter(Boolean);if(e.type){if(e.type==="simulate")return Wn;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(rt.map(function(o){return o.type})))}var ot=new Set,Qn=0,be=function(t,r){this.id=Qn++,ot.add(this),this.name=t,st&&(r=st),this.options=ye(r),this.method=zn(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Yn(this)};be._pubkey=!0;var st;be.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return it(this,"message",t)},postInternal:function(t){return it(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};ut(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,ct(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};ct(this,t,o)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});ut(this,t,n)},close:function(){var t=this;if(!this.closed){ot.delete(this),this.closed=!0;var r=this._prepP?this._prepP:B;return this._onML=null,this._addEL.message=[],r.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 it(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},s=e._prepP?e._prepP:B;return s.then(function(){var a=e.method.postMessage(e._state,o);return e._uMP.add(a),a.catch().then(function(){return e._uMP.delete(a)}),a})}function Yn(e){var t=e.method.create(e.name,e.options);Xt(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function at(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function ct(e,t,r){e._addEL[t].push(r),qn(e)}function ut(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),Xn(e)}function qn(e){if(!e._iL&&at(e)){var t=function(o){e._addEL[o.type].forEach(function(s){var a=1e5,i=s.time-a;o.time>=i&&s.fn(o.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function Xn(e){if(e._iL&&!at(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}class we extends Error{constructor(t,r){super(t),this.name="DevalueError",this.path=r.join("")}}function lt(e){return Object(e)!==e}const Kn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Zn(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===Kn}function er(e){return Object.prototype.toString.call(e).slice(8,-1)}function tr(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
12
|
-
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function H(e){let t="",r=0;const n=e.length;for(let o=0;o<n;o+=1){const s=e[o],a=tr(s);a&&(t+=e.slice(r,o)+a,r=o+1)}return`"${r===0?e:t+e.slice(r)}"`}const Ee=-1,ft=-2,dt=-3,pt=-4,ht=-5,Se=-6;function mt(e,t){return nr(JSON.parse(e))}function nr(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function o(s,a=!1){if(s===Ee)return;if(s===dt)return NaN;if(s===pt)return 1/0;if(s===ht)return-1/0;if(s===Se)return-0;if(a)throw new Error("Invalid input");if(s in n)return n[s];const i=r[s];if(!i||typeof i!="object")n[s]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const u=i[0];switch(u){case"Date":n[s]=new Date(i[1]);break;case"Set":const c=new Set;n[s]=c;for(let g=1;g<i.length;g+=1)c.add(o(i[g]));break;case"Map":const h=new Map;n[s]=h;for(let g=1;g<i.length;g+=2)h.set(o(i[g]),o(i[g+1]));break;case"RegExp":n[s]=new RegExp(i[1],i[2]);break;case"Object":n[s]=Object(i[1]);break;case"BigInt":n[s]=BigInt(i[1]);break;case"null":const p=Object.create(null);n[s]=p;for(let g=1;g<i.length;g+=2)p[i[g]]=o(i[g+1]);break;default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(i.length);n[s]=u;for(let c=0;c<i.length;c+=1){const h=i[c];h!==ft&&(u[c]=o(h))}}else{const u={};n[s]=u;for(const c in i){const h=i[c];u[c]=o(h)}}return n[s]}return o(0)}function gt(e,t){const r=[],n=new Map,o=[];for(const c in t)o.push({key:c,fn:t[c]});const s=[];let a=0;function i(c){if(typeof c=="function")throw new we("Cannot stringify a function",s);if(n.has(c))return n.get(c);if(c===void 0)return Ee;if(Number.isNaN(c))return dt;if(c===1/0)return pt;if(c===-1/0)return ht;if(c===0&&1/c<0)return Se;const h=a++;n.set(c,h);for(const{key:g,fn:S}of o){const I=S(c);if(I)return r[h]=`["${g}",${i(I)}]`,h}let p="";if(lt(c))p=Oe(c);else switch(er(c)){case"Number":case"String":case"Boolean":p=`["Object",${Oe(c)}]`;break;case"BigInt":p=`["BigInt",${c}]`;break;case"Date":p=`["Date","${!isNaN(c.getDate())?c.toISOString():""}"]`;break;case"RegExp":const{source:I,flags:W}=c;p=W?`["RegExp",${H(I)},"${W}"]`:`["RegExp",${H(I)}]`;break;case"Array":p="[";for(let v=0;v<c.length;v+=1)v>0&&(p+=","),v in c?(s.push(`[${v}]`),p+=i(c[v]),s.pop()):p+=ft;p+="]";break;case"Set":p='["Set"';for(const v of c)p+=`,${i(v)}`;p+="]";break;case"Map":p='["Map"';for(const[v,L]of c)s.push(`.get(${lt(v)?Oe(v):"..."})`),p+=`,${i(v)},${i(L)}`,s.pop();p+="]";break;default:if(!Zn(c))throw new we("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(c).length>0)throw new we("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(c)===null){p='["null"';for(const v in c)s.push(`.${v}`),p+=`,${H(v)},${i(c[v])}`,s.pop();p+="]"}else{p="{";let v=!1;for(const L in c)v&&(p+=","),v=!0,s.push(`.${L}`),p+=`${H(L)}:${i(c[L])}`,s.pop();p+="}"}}return r[h]=p,h}const u=i(e);return u<0?`${u}`:`[${r.join(",")}]`}function Oe(e){const t=typeof e;return t==="string"?H(e):e instanceof String?H(e.toString()):e===void 0?Ee.toString():e===0&&1/e<0?Se.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function rr(e,t,{initialize:r,type:n}){let o=`${t.$id}-${e.toString()}`,s=new be(o,{type:n}),a=!1,i=0;l.watch(()=>t[e],h=>{a||(i=Date.now(),s.postMessage({timestamp:i,state:mt(gt(h))})),a=!1},{deep:!0}),s.onmessage=h=>{if(h===void 0){s.postMessage({timestamp:i,state:mt(gt(t[e]))});return}h.timestamp<=i||(a=!0,i=h.timestamp,t[e]=h.state)};let u=()=>s.postMessage(void 0),c=()=>s.close();return r&&u(),{sync:u,unshare:c}}var or=(e,t)=>Object.keys(t).includes(e),sr=({initialize:e=!0,enable:t=!0,type:r})=>({store:n,options:o})=>{var i,u;let s=((i=o==null?void 0:o.share)==null?void 0:i.enable)??t,a=((u=o==null?void 0:o.share)==null?void 0:u.omit)??[];!s||Object.keys(n.$state).forEach(c=>{var h;a.includes(c)||!or(c,n.$state)||rr(c,n,{initialize:((h=o==null?void 0:o.share)==null?void 0:h.initialize)??e,type:r})})};const yt=Ht();yt.use(sr({enable:!0,initialize:!0}));const ir={install:(e,t)=>{const r=e.config.globalProperties.$router,n=r||(t==null?void 0:t.router),o=new re(n,t==null?void 0:t.getMeta);if(!r&&n&&e.use(n),e.use(yt),e.provide("$registry",o),t!=null&&t.components)for(const[s,a]of Object.entries(t.components))e.component(s,a)}};w.DoctypeMeta=qt,w.Registry=re,w.Stonecrop=ir,w.useStonecrop=Yt,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|
|
11
|
+
This will fail in production.`);u=Ce,u._s.has(e)||(o?yt(e,t,r,u):Ir(e,r,u),process.env.NODE_ENV!=="production"&&(s._pinia=u));const l=u._s.get(e);if(process.env.NODE_ENV!=="production"&&i){const E="__hot:"+e,f=o?yt(E,t,r,u,!0):Ir(E,M({},r),u,!0);i._hotUpdate(f),delete u.state.value[E],u._s.delete(E)}if(process.env.NODE_ENV!=="production"&&Q){const E=v.getCurrentInstance();if(E&&E.proxy&&!i){const f=E.proxy,O="_pStores"in f?f._pStores:f._pStores={};O[e]=l}}return l}return s.$id=e,s}const bu=Au("data",()=>{const e=v.ref([]),t=v.ref({});return{records:e,record:t}});function Su(e){const t=v.ref();return v.onMounted(async()=>{var i,a,l;e||(e=v.inject("$registry"));let n;try{n=bu()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new Ge(e,n),!e||!e.router)return;const r=e.router.currentRoute.value,o=(i=r.params.records)==null?void 0:i.toString().toLowerCase(),s=(a=r.params.record)==null?void 0:a.toString().toLowerCase();if(!o&&!s)return;const u=await((l=e.getMeta)==null?void 0:l.call(e,o));u&&(e.addDoctype(u),t.value.setup(u),o&&(s?await t.value.getRecord(u,s):await t.value.getRecords(u)),t.value.runAction(u,"LOAD",s?[s]:void 0))}),{stonecrop:t}}class wu{constructor(t,n,r,o,s){k(this,"doctype");k(this,"schema");k(this,"workflow");k(this,"actions");k(this,"component");this.doctype=t,this.schema=n,this.workflow=r,this.actions=o,this.component=s}get slug(){return this.doctype.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}}const ge=class ge{constructor(t,n){k(this,"name");k(this,"registry");k(this,"router");k(this,"getMeta");if(ge._root)return ge._root;ge._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})}};k(ge,"_root");let Ke=ge;function Tu(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var ie=Promise.resolve();function kr(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function Cu(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Ot(){return Math.random().toString(36).substring(2)}var At=0;function Ie(){var e=Date.now()*1e3;return e<=At&&(e=At+1),At=e,e}var Du=Ie,Iu="native";function ku(e){var t={time:Ie(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Pu(e){e.bc.close(),e.subFns=[]}function Ru(e,t){try{return e.bc.postMessage(t,!1),ie}catch(n){return Promise.reject(n)}}function Nu(e,t){e.messagesCallback=t}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 xu(){return 150}var Lu={create:ku,close:Pu,onMessage:Nu,postMessage:Ru,canBeUsed:Vu,type:Iu,averageResponseTime:xu,microSeconds:Du};class Pr{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,Rr()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,Bu(this)},0))}clear(){this.map.clear()}}function Bu(e){const t=Rr()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const r=n.next().value;if(!r)return;const o=r[0];if(r[1]<t)e.map.delete(o);else return}}function Rr(){return Date.now()}function bt(){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 Fu=Ie,Uu="pubkey.broadcast-channel-0-",Z="messages",ze={durability:"relaxed"},Mu="idb";function Nr(){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 St(e){e.commit&&e.commit()}function $u(e){var t=Nr(),n=Uu+e,r=t.open(n);return r.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(Z,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){r.onerror=function(u){return s(u)},r.onsuccess=function(){o(r.result)}})}function ju(e,t,n){var r=Date.now(),o={uuid:t,time:r,data:n},s=e.transaction([Z],"readwrite",ze);return new Promise(function(u,i){s.oncomplete=function(){return u()},s.onerror=function(l){return i(l)};var a=s.objectStore(Z);a.add(o),St(s)})}function Hu(e,t){var n=e.transaction(Z,"readonly",ze),r=n.objectStore(Z),o=[],s=IDBKeyRange.bound(t+1,1/0);if(r.getAll){var u=r.getAll(s);return new Promise(function(a,l){u.onerror=function(E){return l(E)},u.onsuccess=function(E){a(E.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),r.openCursor(s)}catch{return r.openCursor()}}return new Promise(function(a,l){var E=i();E.onerror=function(f){return l(f)},E.onsuccess=function(f){var O=f.target.result;O?O.value.id<t+1?O.continue(t+1):(o.push(O.value),O.continue()):(St(n),a(o))}})}function Ku(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(Z,"readwrite",ze),r=n.objectStore(Z);return Promise.all(t.map(function(o){var s=r.delete(o);return new Promise(function(u){s.onsuccess=function(){return u()}})}))}function zu(e,t){var n=Date.now()-t,r=e.transaction(Z,"readonly",ze),o=r.objectStore(Z),s=[];return new Promise(function(u){o.openCursor().onsuccess=function(i){var a=i.target.result;if(a){var l=a.value;l.time<n?(s.push(l),a.continue()):(St(r),u(s))}else u(s)}})}function Gu(e){return zu(e.db,e.options.idb.ttl).then(function(t){return Ku(e,t.map(function(n){return n.id}))})}function Wu(e,t){return t=bt(t),$u(e).then(function(n){var r={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Ot(),eMIs:new Pr(t.idb.ttl*2),writeBlockPromise:ie,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){r.closed=!0,t.idb.onclose&&t.idb.onclose()},Vr(r),r})}function Vr(e){e.closed||xr(e).then(function(){return kr(e.options.idb.fallbackInterval)}).then(function(){return Vr(e)})}function Yu(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function xr(e){return e.closed||!e.messagesCallback?ie:Hu(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(r){return!!r}).map(function(r){return r.id>e.lastCursorId&&(e.lastCursorId=r.id),r}).filter(function(r){return Yu(r,e)}).sort(function(r,o){return r.time-o.time});return n.forEach(function(r){e.messagesCallback&&(e.eMIs.add(r.id),e.messagesCallback(r.data))}),ie})}function qu(e){e.closed=!0,e.db.close()}function Zu(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return ju(e.db,e.uuid,t)}).then(function(){Cu(0,10)===0&&Gu(e)}),e.writeBlockPromise}function Ju(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,xr(e)}function Xu(){return!!Nr()}function Qu(e){return e.idb.fallbackInterval*2}var ei={create:Wu,close:qu,onMessage:Ju,postMessage:Zu,canBeUsed:Xu,type:Mu,averageResponseTime:Qu,microSeconds:Fu},ti=Ie,ni="pubkey.broadcastChannel-",ri="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 Br(e){return ni+e}function oi(e,t){return new Promise(function(n){kr().then(function(){var r=Br(e.channelName),o={token:Ot(),time:Date.now(),data:t,uuid:e.uuid},s=JSON.stringify(o);Lr().setItem(r,s);var u=document.createEvent("Event");u.initEvent("storage",!0,!0),u.key=r,u.newValue=s,window.dispatchEvent(u),n()})})}function si(e,t){var n=Br(e),r=function(s){s.key===n&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",r),r}function ui(e){window.removeEventListener("storage",e)}function ii(e,t){if(t=bt(t),!Fr())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Ot(),r=new Pr(t.localstorage.removeTimeout),o={channelName:e,uuid:n,eMIs:r};return o.listener=si(e,function(s){o.messagesCallback&&s.uuid!==n&&(!s.token||r.has(s.token)||s.data.time&&s.data.time<o.messagesCallbackTime||(r.add(s.token),o.messagesCallback(s.data)))}),o}function ai(e){ui(e.listener)}function ci(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function Fr(){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 fi={create:ii,close:ai,onMessage:ci,postMessage:oi,canBeUsed:Fr,type:ri,averageResponseTime:li,microSeconds:ti},Ur=Ie,di="simulate",wt=new Set;function _i(e){var t={time:Ur(),name:e,messagesCallback:null};return wt.add(t),t}function pi(e){wt.delete(e)}var Mr=5;function hi(e,t){return new Promise(function(n){return setTimeout(function(){var r=Array.from(wt);r.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),n()},Mr)})}function Ei(e,t){e.messagesCallback=t}function gi(){return!0}function mi(){return Mr}var vi={create:_i,close:pi,onMessage:Ei,postMessage:hi,canBeUsed:gi,type:di,averageResponseTime:mi,microSeconds:Ur},$r=[Lu,ei,fi];function yi(e){var t=[].concat(e.methods,$r).filter(Boolean);if(e.type){if(e.type==="simulate")return vi;var n=t.find(function(o){return o.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var r=t.find(function(o){return o.canBeUsed()});if(r)return r;throw new Error("No usable method found in "+JSON.stringify($r.map(function(o){return o.type})))}var jr=new Set,Oi=0,Tt=function(t,n){this.id=Oi++,jr.add(this),this.name=t,this.options=bt(n),this.method=yi(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Ai(this)};Tt._pubkey=!0,Tt.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Hr(this,"message",t)},postInternal:function(t){return Hr(this,"internal",t)},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,zr(this,"message",n)):this._onML=null},addEventListener:function(t,n){var r=this.method.microSeconds(),o={time:r,fn:n};zr(this,t,o)},removeEventListener:function(t,n){var r=this._addEL[t].find(function(o){return o.fn===n});Gr(this,t,r)},close:function(){var t=this;if(!this.closed){jr.delete(this),this.closed=!0;var n=this._prepP?this._prepP:ie;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(r){return r()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Hr(e,t,n){var r=e.method.microSeconds(),o={time:r,type:t,data:n},s=e._prepP?e._prepP:ie;return s.then(function(){var u=e.method.postMessage(e._state,o);return e._uMP.add(u),u.catch().then(function(){return e._uMP.delete(u)}),u})}function Ai(e){var t=e.method.create(e.name,e.options);Tu(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function Kr(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function zr(e,t,n){e._addEL[t].push(n),bi(e)}function Gr(e,t,n){e._addEL[t]=e._addEL[t].filter(function(r){return r!==n}),Si(e)}function bi(e){if(!e._iL&&Kr(e)){var t=function(o){e._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function Si(e){if(e._iL&&!Kr(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function Wr(e,t={serialize:JSON.stringify,deserialize:JSON.parse}){return t.deserialize(t.serialize(e))}function wi(e,t){return Object.keys(t).includes(e)}function Ti({enable:e=!0,initialize:t=!0,type:n,serializer:r}){return({store:o,options:s})=>{var d,p,A;const u=((d=s==null?void 0:s.share)==null?void 0:d.enable)??e,i=((p=s==null?void 0:s.share)==null?void 0:p.omit)??[];if(!u)return;const a=new Tt(o.$id,{type:n});let l=0,E=!1;const f=Object.keys(o.$state).filter(_=>!i.includes(_)&&wi(_,o.$state));a.onmessage=_=>{if(_===void 0){a.postMessage({timestamp:l,state:Wr(o.$state,r)});return}_.timestamp<=l||(E=!0,l=_.timestamp,o.$patch(g=>{f.forEach(w=>{g[w]=_.state[w]})}))},(((A=s==null?void 0:s.share)==null?void 0:A.initialize)??t)&&a.postMessage(void 0),o.$subscribe((_,g)=>{E||(l=Date.now(),a.postMessage({timestamp:l,state:Wr(g,r)})),E=!1})}}const Yr=mu();Yr.use(Ti({enable:!0,initialize:!0}));const Ci={install:(e,t)=>{const n=e.config.globalProperties.$router,r=n||(t==null?void 0:t.router),o=new Ke(r,t==null?void 0:t.getMeta);if(!n&&r&&e.use(r),e.use(Yr),e.provide("$registry",o),t!=null&&t.components)for(const[s,u]of Object.entries(t.components))e.component(s,u)}};V.DoctypeMeta=wu,V.Registry=Ke,V.Stonecrop=Ci,V.useStonecrop=Su,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
13
12
|
//# sourceMappingURL=stonecrop.umd.cjs.map
|