voodoojs 0.4.6
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/README.md +77 -0
- package/dist/chunk-234ZLC6W.js +401 -0
- package/dist/chunk-4HQEOXTK.js +10271 -0
- package/dist/chunk-5777LJVW.js +64 -0
- package/dist/chunk-5CKGDARU.js +1845 -0
- package/dist/chunk-A2UOVQBP.js +82 -0
- package/dist/chunk-E27NRARW.js +16 -0
- package/dist/chunk-JZIYRIY6.js +1196 -0
- package/dist/chunk-NNU6WOOU.js +641 -0
- package/dist/chunk-PQZEVFVZ.js +448 -0
- package/dist/chunk-RJUNPXQF.js +946 -0
- package/dist/chunk-U76IRJKH.js +72 -0
- package/dist/essential.cjs +13889 -0
- package/dist/essential.d.cts +24 -0
- package/dist/essential.d.ts +24 -0
- package/dist/essential.js +51 -0
- package/dist/gpu.cjs +2008 -0
- package/dist/gpu.d.cts +68 -0
- package/dist/gpu.d.ts +68 -0
- package/dist/gpu.js +273 -0
- package/dist/http.cjs +467 -0
- package/dist/http.d.cts +148 -0
- package/dist/http.d.ts +148 -0
- package/dist/http.js +7 -0
- package/dist/index-CaLD-0oh.d.cts +608 -0
- package/dist/index-CaLD-0oh.d.ts +608 -0
- package/dist/index-DTllqUtj.d.cts +261 -0
- package/dist/index-DTllqUtj.d.ts +261 -0
- package/dist/index.cjs +23063 -0
- package/dist/index.d.cts +1603 -0
- package/dist/index.d.ts +1603 -0
- package/dist/index.js +6924 -0
- package/dist/query-CKJ4oSpG.d.cts +1595 -0
- package/dist/query-DQFRmu3u.d.ts +1595 -0
- package/dist/reactivity.cjs +676 -0
- package/dist/reactivity.d.cts +188 -0
- package/dist/reactivity.d.ts +188 -0
- package/dist/reactivity.js +4 -0
- package/dist/socket.cjs +2685 -0
- package/dist/socket.d.cts +167 -0
- package/dist/socket.d.ts +167 -0
- package/dist/socket.js +238 -0
- package/dist/style-XEUAGGJK.js +5 -0
- package/dist/utils.cjs +397 -0
- package/dist/utils.d.cts +111 -0
- package/dist/utils.d.ts +111 -0
- package/dist/utils.js +4 -0
- package/dist/voodoo.core.js +8213 -0
- package/dist/voodoo.core.min.js +146 -0
- package/dist/voodoo.full.js +21193 -0
- package/dist/voodoo.full.min.js +1784 -0
- package/dist/voodoo.js +14185 -0
- package/dist/voodoo.min.js +420 -0
- package/package.json +127 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voodoo.js v0.4.6
|
|
3
|
+
* JavaScript feels like magic.
|
|
4
|
+
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var Voodoo=(()=>{var qt=Object.defineProperty;var as=Object.getOwnPropertyDescriptor;var cs=Object.getOwnPropertyNames;var us=Object.prototype.hasOwnProperty;var ls=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ln=(e,t)=>()=>(e&&(t=e(e=0)),t);var _t=(e,t)=>{for(var n in t)qt(e,n,{get:t[n],enumerable:!0})},ds=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cs(t))!us.call(e,o)&&o!==n&&qt(e,o,{get:()=>t[o],enumerable:!(r=as(t,o))||r.enumerable});return e};var fs=e=>ds(qt({},"__esModule",{value:!0}),e);var L=(e,t,n)=>ls(e,typeof t!="symbol"?t+"":t,n);var Zr={};_t(Zr,{EffectScope:()=>ne,ITERATE_KEY:()=>Le,ReactiveEffect:()=>Ge,TriggerType:()=>Gr,computed:()=>xt,effect:()=>te,effectScope:()=>qn,enableTracking:()=>Kr,flushSync:()=>In,getActiveEffect:()=>ms,getActiveScope:()=>gs,handleError:()=>O,hasChanged:()=>wt,isReactive:()=>zn,isRef:()=>Pe,markRaw:()=>Wn,nextTick:()=>Oe,pauseTracking:()=>Qr,queueJob:()=>Kt,queuePostFlush:()=>ke,reactive:()=>F,ref:()=>Tt,resetTracking:()=>Bn,setErrorHandler:()=>jn,shallowRef:()=>Qn,stop:()=>Un,toRaw:()=>K,track:()=>ce,trigger:()=>he,unref:()=>Kn,warn:()=>Gt,watch:()=>ue,watchEffect:()=>Gn});function Oe(e){let t=zt||Hn;return e?t.then(e):t}function Kt(e){e.queued||(e.queued=!0,Qe.push(e),zr())}function ke(e){Vt.push(e),zr()}function zr(){Wt||bt||(bt=!0,zt=Hn.then(Dn))}function Dn(){bt=!1,Wt=!0;let e=new Map;try{for(let t=0;t<Qe.length;t++){let n=Qe[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>ps){Gt("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){O(o,"effect")}}}finally{for(let n of Qe)n.queued=!1;Qe=[],Wt=!1;let t=Vt;Vt=[];for(let n of t)try{n()}catch(r){O(r,"post-flush")}Qe.length||Vt.length?(zt=Hn.then(Dn),bt=!0):zt=null}}function In(){Wt||(bt=!1,Dn())}function jn(e){Pn=e}function O(e,t){if(Pn){Pn(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Gt(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Qr(){Fn.push(Ne),Ne=!1}function Kr(){Fn.push(Ne),Ne=!0}function Bn(){var e;Ne=(e=Fn.pop())!=null?e:!0}function ms(){return Y}function qr(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function te(e,t){let n=new Ge(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Un(e){e instanceof Ge?e.stop():e.effect.stop()}function qn(e=!1){return new ne(e)}function gs(){return xe}function ce(e,t){if(!Ne||!Y)return;let n=Nn.get(e);n||Nn.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Y)||(r.add(Y),Y.deps.push(r))}function he(e,t,n,r){let o=Nn.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let c of a)(c!==Y||t==="clear")&&i.add(c)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?On(n)&&s(o.get("length")):s(o.get(Le));else if(t==="delete")a||s(o.get(Le));else if(a&&n==="length"){let c=Number(r);o.forEach((u,l)=>{(l==="length"||typeof l!="symbol"&&Number(l)>=c)&&s(u)})}}for(let a of i)a.scheduler?a.scheduler():Kt(a)}function On(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Ee(e){return e!==null&&typeof e=="object"}function ys(e){if(!Ee(e)||e[Yr]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return vs.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Wn(e){return Object.defineProperty(e,Yr,{value:!0,enumerable:!1,configurable:!0}),e}function K(e){let t=e&&e[_n];return t?K(t):e}function zn(e){return!!(e&&e[Vn])}function F(e){if(!Ee(e)||zn(e)||!ys(e))return e;let t=_r.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?ws:bs);return _r.set(e,r),r}function wt(e,t){return!Object.is(e,t)}function Pe(e){return!!(e&&e.__v_isRef===!0)}function Wr(e){return Ee(e)?F(e):e}function Xr(e){!Ne||!Y||e.dep.has(Y)||(e.dep.add(Y),Y.deps.push(e.dep))}function Jr(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Kt(t)}function Tt(e){return new Qt(e)}function Qn(e){return new Qt(e,!0)}function Kn(e){return Pe(e)?e.value:e}function xt(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new $n(n,r)}function ue(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(Pe(e)?s=()=>e.value:typeof e=="function"?s=e:zn(e)?s=()=>Ke(e):s=()=>e,o){let d=s;s=()=>Ke(d())}let a,c,u=d=>{c=d},l=()=>{if(!p.effect.active)return;let d=p();(o||wt(d,a))&&(c==null||c(),c=void 0,t(d,a,u),a=d)},p=i==="pre"?te(s,{lazy:!0,scheduler:()=>ke(l)}):te(s,{lazy:!0,scheduler:i==="sync"?l:i==="post"?()=>ke(l):()=>Kt(p.effect)});return a=p(),r&&t(a,void 0,u),()=>p.effect.stop()}function Gn(e){let t,n=o=>{t=o},r=te(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Ke(e,t=new Set){if(!Ee(e)||t.has(e))return e;if(t.add(e),Pe(e))Ke(e.value,t);else if(Array.isArray(e))for(let n of e)Ke(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Ke(n,t));else for(let n of Object.keys(e))Ke(e[n],t);return e}var Hn,Qe,Vt,Wt,bt,zt,ps,Pn,Y,Ne,Fn,hs,Ge,xe,ne,Le,Nn,Gr,_n,Vn,Yr,_r,Vr,vs,bs,ws,Qt,$n,Z=Ln(()=>{"use strict";Hn=Promise.resolve(),Qe=[],Vt=[],Wt=!1,bt=!1,zt=null,ps=100;Pn=null;Ne=!0,Fn=[];hs=0,Ge=class{constructor(t,n){var o;this.fn=t,this.id=hs++,this.active=!0,this.queued=!1,this.deps=[],this.parent=void 0,this.scheduler=n==null?void 0:n.scheduler,this.onStop=n==null?void 0:n.onStop,this.cleanups=[];let r=(o=n==null?void 0:n.scope)!=null?o:xe;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Y;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Y,Y=this,Kr(),qr(this),this.fn()}finally{Bn(),Y=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){O(r,"effect cleanup")}}stop(){var t;this.active&&(qr(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};ne=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&xe&&(this.parent=xe,xe.children.push(this))}run(t){if(!this.active)return;let n=xe;try{return xe=this,t()}finally{xe=n}}onDispose(t){this.cleanups.push(t)}stop(){if(this.active){this.active=!1;for(let t of this.effects)t.stop();for(let t of this.children)t.stop();for(let t of this.cleanups)try{t()}catch(n){O(n,"scope cleanup")}if(this.effects.length=0,this.children.length=0,this.cleanups.length=0,this.parent){let t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1)}}}};Le=Symbol("voodoo:iterate"),Nn=new WeakMap;Gr=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Gr||{});_n=Symbol("voodoo:raw"),Vn=Symbol("voodoo:isReactive"),Yr=Symbol("voodoo:skip"),_r=new WeakMap,Vr=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=K(this);for(let i=0;i<r.length;i++)ce(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(K)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){Qr();try{return K(this)[t].apply(this,n)}finally{Bn()}};return e})();vs=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);bs={get(e,t,n){if(t===_n)return e;if(t===Vn)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Vr,t))return Reflect.get(Vr,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(ce(e,t),Pe(o)?r&&On(t)?o:o.value:Ee(o)?F(o):o)},set(e,t,n,r){let o=e[t];if(n=K(n),!Array.isArray(e)&&Pe(o)&&!Pe(n))return o.value=n,!0;let i=Array.isArray(e)&&On(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===K(r)&&(i?wt(n,o)&&he(e,"set",t,n):he(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&he(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&ce(e,t),n},ownKeys(e){return ce(e,Array.isArray(e)?"length":Le),Reflect.ownKeys(e)}},ws={get(e,t,n){if(t===_n)return e;if(t===Vn)return!0;let r=e;if(t==="size")return ce(r,Le),Reflect.get(r,"size",r);let o={get(s){ce(r,s);let a=r.get(s);return Ee(a)?F(a):a},has(s){return ce(r,s),r.has(s)},add(s){s=K(s);let a=r.has(s);return r.add(s),a||he(r,"add",s,s),n},set(s,a){let c=r.has(s),u=r.get(s);return r.set(s,K(a)),c?wt(a,u)&&he(r,"set",s,a):he(r,"add",s,a),n},delete(s){let a=r.has(s),c=r.delete(s);return a&&he(r,"delete",s),c},clear(){let s=r.size!==0,a=r.clear();return s&&he(r,"clear"),a},forEach(s,a){return ce(r,Le),r.forEach((c,u)=>{s.call(a,Ee(c)?F(c):c,Ee(u)?F(u):u,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){ce(r,Le);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};Qt=class{constructor(t,n=!1){L(this,"shallow",n);L(this,"__v_isRef",!0);L(this,"_value");L(this,"_rawValue");L(this,"dep",new Set);this._rawValue=K(t),this._value=n?t:Wr(t)}get value(){return Xr(this),this._value}set value(t){let n=K(t);wt(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Wr(t),Jr(this))}};$n=class{constructor(t,n){L(this,"setter",n);L(this,"__v_isRef",!0);L(this,"_value");L(this,"_dirty",!0);L(this,"effect");L(this,"dep",new Set);this.effect=new Ge(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Jr(this))}})}get value(){return Xr(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Gt("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function A(e,t,n={}){var r,o;ge.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:B.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function He(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function Jt(e,t,n){lo.has(t)||(lo.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var T,ge,B,z,lo,re=Ln(()=>{"use strict";T={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},ge=new Map,B={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};z=new Map;lo=new Set});var ci={};_t(ci,{BASE_TOKENS:()=>ai,ensureTokens:()=>Ue,injectStyle:()=>Te});function Te(e,t){if(typeof document=="undefined"||!T.injectStyles||si.has(e))return;si.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function Ue(){Te("tokens",ai)}var si,ai,ut=Ln(()=>{"use strict";re();si=new Set;ai=`
|
|
7
|
+
:root{
|
|
8
|
+
--v-primary:#6D3BF5;
|
|
9
|
+
--v-primary-hover:#5A2FD8;
|
|
10
|
+
--v-primary-contrast:#fff;
|
|
11
|
+
--v-accent:#FF3D8B;
|
|
12
|
+
--v-success:#2ED9A5;
|
|
13
|
+
--v-warning:#FFB35C;
|
|
14
|
+
--v-danger:#FF4D4D;
|
|
15
|
+
--v-info:#9B7BFF;
|
|
16
|
+
--v-surface:#fff;
|
|
17
|
+
--v-surface-2:#FBF7F2;
|
|
18
|
+
--v-text:#14111F;
|
|
19
|
+
--v-text-muted:#6B6580;
|
|
20
|
+
--v-border:#E6E0F0;
|
|
21
|
+
--v-radius:12px;
|
|
22
|
+
--v-radius-sm:8px;
|
|
23
|
+
--v-shadow:0 10px 30px rgba(20,17,31,.14);
|
|
24
|
+
--v-z-modal:1000;
|
|
25
|
+
--v-z-drawer:1000;
|
|
26
|
+
--v-z-dropdown:900;
|
|
27
|
+
--v-z-toast:1100;
|
|
28
|
+
--v-z-tooltip:1200;
|
|
29
|
+
--v-ease:cubic-bezier(.22,1,.36,1);
|
|
30
|
+
}
|
|
31
|
+
@media (prefers-color-scheme: dark){
|
|
32
|
+
:root:not([data-theme="light"]){
|
|
33
|
+
--v-surface:#1C1830;
|
|
34
|
+
--v-surface-2:#14111F;
|
|
35
|
+
--v-text:#F4F1FB;
|
|
36
|
+
--v-text-muted:#A9A2C4;
|
|
37
|
+
--v-border:#332C50;
|
|
38
|
+
--v-shadow:0 10px 30px rgba(0,0,0,.45);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
:root[data-theme="dark"]{
|
|
42
|
+
--v-surface:#1C1830;
|
|
43
|
+
--v-surface-2:#14111F;
|
|
44
|
+
--v-text:#F4F1FB;
|
|
45
|
+
--v-text-muted:#A9A2C4;
|
|
46
|
+
--v-border:#332C50;
|
|
47
|
+
--v-shadow:0 10px 30px rgba(0,0,0,.45);
|
|
48
|
+
}
|
|
49
|
+
[v-cloak]{display:none !important}
|
|
50
|
+
`});var Dc={};_t(Dc,{default:()=>Hc});Z();var D=class extends Error{constructor(n,r,o){let i=`${r}
|
|
51
|
+
${" ".repeat(Math.max(0,o))}^`;super(`${n}
|
|
52
|
+
|
|
53
|
+
${i}`);L(this,"source",r);L(this,"position",o);this.name="VoodooSyntaxError"}},Ts=[">>>=","===","!==","**=","...","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","+","-","*","/","%","!","<",">","=","(",")","[","]","{","}",",",".","?",":",";"],xs=/[A-Za-z_$À-]/,Es=/[A-Za-z0-9_$À-]/;function ks(e){return xs.test(e)}function Ss(e){return Es.test(e)}function Yt(e){return e>="0"&&e<="9"}var eo={n:`
|
|
54
|
+
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function Xt(e){var o,i;let t=[],n=0,r=e.length;for(;n<r;){let s=e[n];if(s===" "||s===" "||s===`
|
|
55
|
+
`||s==="\r"||s==="\f"||s==="\v"){n++;continue}if(s==="/"&&e[n+1]==="/"){for(;n<r&&e[n]!==`
|
|
56
|
+
`;)n++;continue}if(s==="/"&&e[n+1]==="*"){let u=e.indexOf("*/",n+2);if(u===-1)throw new D("Unclosed block comment",e,n);n=u+2;continue}let a=n;if(Yt(s)||s==="."&&Yt(e[n+1])){let u="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(u="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)u+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(u="0b",n+=2;n<r&&/[01_]/.test(e[n]);)u+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)u+=e[n++];if(e[n]===".")for(u+=e[n++];n<r&&/[0-9_]/.test(e[n]);)u+=e[n++];if(e[n]==="e"||e[n]==="E")for(u+=e[n++],(e[n]==="+"||e[n]==="-")&&(u+=e[n++]);n<r&&Yt(e[n]);)u+=e[n++]}let l=Number(u.replace(/_/g,""));if(Number.isNaN(l))throw new D("Invalid number",e,a);t.push({type:"num",value:u,parsed:l,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let u="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let l=e[n];if(l==="u")if(e[n+1]==="{"){let f=e.indexOf("}",n);if(f===-1)throw new D("Unclosed Unicode escape",e,a);let p=e.slice(n+2,f);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new D(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);u+=String.fromCodePoint(parseInt(p,16)),n=f+1}else{let f=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(f))throw new D("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);u+=String.fromCharCode(parseInt(f,16)),n+=5}else if(l==="x"){let f=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(f))throw new D("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);u+=String.fromCharCode(parseInt(f,16)),n+=3}else u+=(o=eo[l])!=null?o:l,n++}else u+=e[n++];if(n>=r)throw new D("Unclosed string",e,a);n++,t.push({type:"str",value:u,parsed:u,start:a,end:n});continue}if(s==="`"){n++;let u=[],l=[],f="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];f+=(i=eo[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){u.push(f),f="",n+=2;let p=1,d="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let g=m;for(d+=e[n++];n<r&&e[n]!==g;)e[n]==="\\"&&(d+=e[n++]),d+=e[n++]}d+=e[n++]}if(p!==0)throw new D("Unclosed template interpolation",e,a);n++,l.push(d);continue}f+=e[n++]}if(n>=r)throw new D("Unclosed template literal",e,a);n++,u.push(f),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:u,exprs:l},start:a,end:n});continue}if(ks(s)){let u="";for(;n<r&&Ss(e[n]);)u+=e[n++];t.push({type:"ident",value:u,start:a,end:n});continue}let c;for(let u of Ts)if(e.startsWith(u,n)){if(u==="?."&&Yt(e[n+2]))continue;c=u;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new D(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var to={"??":1,"||":2,"&&":3,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,in:7,instanceof:7,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},As=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),Rs=new Set(["!","-","+","typeof","void"]),no=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),ro=1200,oo=32,Yn=0,Xn=class{constructor(t,n){L(this,"tokens",t);L(this,"source",n);L(this,"pos",0);L(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new D(`Expected "${t}" but found "${n.value||"end of expression"}"`,this.source,n.start)}return this.next()}parseProgram(){let t=[];for(;this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseArrowBody(){if(!this.isPunct("{"))return this.parseAssignment();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseStatement(){if(this.peek().type==="ident"&&this.peek().value==="if"&&this.isPunct("(",1)){this.next(),this.expect("(");let t=this.parseExpression();this.expect(")");let n=this.parseBlockOrStatement(),r=null;return this.peek().type==="ident"&&this.peek().value==="else"&&(this.next(),r=this.parseBlockOrStatement()),{t:"if",test:t,cons:n,alt:r}}return this.parseExpression()}parseBlockOrStatement(){if(!this.isPunct("{"))return this.parseStatement();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseExpression(){return this.parseAssignment()}enterLevel(){if(++this.depth>ro){let t=this.peek();throw new D(`Expression too deeply nested (limit of ${ro} levels)`,this.source,t.start)}}parseAssignment(){this.enterLevel();let t=this.parseAssignmentInternal();return this.depth--,t}parseAssignmentInternal(){if(this.peek().type==="ident"&&this.isPunct("=>",1)){let r=this.next().value;return this.next(),{t:"arrow",params:[r],body:this.parseArrowBody()}}if(this.isPunct("(")){let r=this.tryParseParenArrow();if(r)return r}let t=this.parseConditional(),n=this.peek();if(n.type==="punct"&&As.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new D("Invalid assignment target",this.source,n.start);this.next();let r=this.parseAssignment();return{t:"assign",op:n.value,target:t,value:r}}return t}tryParseParenArrow(){let t=this.pos,n=0,r=this.pos;for(;r<this.tokens.length;r++){let s=this.tokens[r];if(s.type==="punct"&&s.value==="(")n++;else if(s.type==="punct"&&s.value===")"){if(n--,n===0)break}else if(s.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let i=[];for(;!this.isPunct(")");){let s=this.next();if(s.type!=="ident")return this.pos=t,null;i.push(s.value),this.isPunct(",")&&this.next()}return this.expect(")"),this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}parseConditional(){let t=this.parseBinary(0);if(this.isPunct("?")){this.next();let n=this.parseAssignment();this.expect(":");let r=this.parseAssignment();return{t:"cond",test:t,cons:n,alt:r}}return t}parseBinary(t){this.enterLevel();let n=this.parseBinaryInternal(t);return this.depth--,n}parseBinaryInternal(t){let n=this.parseUnary();for(;;){let r=this.peek(),o=r.value;if(!(r.type==="punct"&&o in to||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=to[o];if(s===void 0||s<=t)break;this.next();let a=this.parseBinary(o==="**"?s-1:s);n={t:o==="&&"||o==="||"||o==="??"?"logic":"bin",op:o,l:n,r:a}}return n}parseUnary(){this.enterLevel();let t=this.parseUnaryInternal();return this.depth--,t}parseUnaryInternal(){let t=this.peek();if((t.type==="punct"||t.type==="ident")&&Rs.has(t.value))return this.next(),{t:"unary",op:t.value,a:this.parseUnary()};if(t.type==="punct"&&(t.value==="++"||t.value==="--")){this.next();let o=this.parseUnary();return{t:"update",op:t.value,a:o,prefix:!0}}let n=this.parseCallMember(),r=this.peek();return r.type==="punct"&&(r.value==="++"||r.value==="--")&&(this.next(),n={t:"update",op:r.value,a:n,prefix:!1}),n}parseCallMember(){let t=this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new D("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!1}}else if(this.isPunct("?."))if(this.next(),this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!0};else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!0}}else{let n=this.next();if(n.type!=="ident")throw new D("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!0}}else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!1}}else if(this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!1};else return t}parseArguments(){this.expect("(");let t=[];for(;!this.isPunct(")")&&(this.isPunct("...")?(this.next(),t.push({t:"unary",op:"...",a:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect(")"),t}parsePrimary(){let t=this.peek();if(t.type==="ident"&&t.value==="function"){this.next(),this.peek().type==="ident"&&this.next(),this.expect("(");let n=[];for(;!this.isPunct(")");){let r=this.next();if(r.type!=="ident")throw new D("Expected a parameter name",this.source,r.start);n.push(r.value),this.isPunct(",")&&this.next()}return this.expect(")"),{t:"arrow",params:n,body:this.parseArrowBody()}}if(t.type==="num"||t.type==="str")return this.next(),{t:"lit",v:t.parsed};if(t.type==="tpl"){this.next();let n=t.tpl;if(Yn>=oo)throw new D(`Template literal too deeply nested (limit of ${oo} levels)`,this.source,t.start);Yn++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>le(r))}}finally{Yn--}}if(t.type==="ident")return t.value in no?(this.next(),{t:"lit",v:no[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=this.parseExpression();return this.expect(")"),n}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new D(`Unexpected token "${t.value||"end of expression"}"`,this.source,t.start)}parseArrayLiteral(){this.expect("[");let t=[];for(;!this.isPunct("]")&&(this.isPunct("...")?(this.next(),t.push({spread:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect("]"),{t:"arr",els:t}}parseObjectLiteral(){var n;this.expect("{");let t=[];for(;!this.isPunct("}");){if(this.isPunct("..."))this.next(),t.push({key:null,spread:this.parseAssignment()});else if(this.isPunct("[")){this.next();let r=this.parseAssignment();this.expect("]"),this.expect(":"),t.push({key:null,keyExpr:r,value:this.parseAssignment()})}else{if(this.peek().type==="ident"&&this.peek().value==="get"&&this.peek(1).type==="ident"&&this.isPunct("(",2)){this.next();let i=this.next();this.expect("("),this.expect(")"),t.push({key:String(i.value),getter:!0,value:{t:"method",params:[],body:this.parseArrowBody()}}),this.isPunct(",")&&this.next();continue}let r=this.next();if(r.type!=="ident"&&r.type!=="str"&&r.type!=="num")throw new D("Invalid object key",this.source,r.start);let o=String((n=r.parsed)!=null?n:r.value);if(this.isPunct(":"))this.next(),t.push({key:o,value:this.parseAssignment()});else if(this.isPunct("(")){this.next();let i=[];for(;!this.isPunct(")");){let s=this.next();if(s.type!=="ident")throw new D("Expected a parameter name",this.source,s.start);i.push(s.value),this.isPunct(",")&&this.next()}this.expect(")"),t.push({key:o,value:{t:"method",params:i,body:this.parseArrowBody()}})}else t.push({key:o,value:{t:"id",n:o}})}if(this.isPunct(","))this.next();else break}return this.expect("}"),{t:"obj",props:t}}},Ye=new Map,io=2e3;function le(e){let t=Ye.get(e);if(t)return t;let n=new Xn(Xt(e),e).parseProgram();return Ye.size>=io&&Cs(),Ye.set(e,n),n}function Cs(){let e=Math.floor(io/2),t=0;for(let n of Ye.keys())if(Ye.delete(n),++t>=e)break}function so(){Ye.clear()}var co,Ms=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(co=Object.hasOwn)!=null?co:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Ls=new Set(["eval","Function","window","globalThis","self","top","parent","document","fetch","XMLHttpRequest","importScripts","require","process","Reflect","Proxy","WebAssembly","localStorage","sessionStorage","indexedDB","navigator","location","history","crypto","Worker","SharedWorker","ServiceWorker"]),G={Math,JSON,Date,Number,String,Boolean,Array,Object:Ms,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},W=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
|
+
|
|
58
|
+
Expression: ${r}`:n);L(this,"expression",r);this.name="VoodooRuntimeError"}},Zn=Symbol("spread"),Ps=new Set(["__proto__","constructor","prototype"]);function uo(e){return typeof e=="string"&&Ps.has(e)}function $e(e,t){if(uo(e))throw new W(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function x(e,t){var n,r;switch(e.t){case"lit":return e.v;case"tpl":{let o=(n=e.quasis[0])!=null?n:"";for(let i=0;i<e.exprs.length;i++)o+=Se(x(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{$e(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in G?G[e.n]:void 0}case"member":{let o=x(e.o,t);if(o==null){if(e.opt)return;throw new W(`Could not read "${Jn(e,t)}" from ${o===null?"null":"undefined"}`)}let i=$e(e.computed?x(e.p,t):e.p.v);return o[i]}case"call":{let o,i;if(e.callee.t==="member"){let s=x(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new W(`Could not call "${Jn(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=$e(e.callee.computed?x(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){$e(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=G[e.callee.n]}else i=x(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Jn(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in G)?Ls.has(s)?new W(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new W(`"${s}" was not found. Expressions cannot reach window: expose it with V.config.globals.${s} = ..., or put it in scope with V.data({ ${s} }).`):new W(`"${s}" is not a function`)}return i.apply(o,Ns(e.args,t))}case"unary":{if(e.op==="...")return{[Zn]:x(e.a,t)};if(e.op==="typeof"){if(e.a.t==="id"){if(uo(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:G[e.a.n])}return typeof x(e.a,t)}let o=x(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"void":return}throw new W(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(x(e.a,t)),i=e.op==="++"?o+1:o-1;return ao(e.a,i,t),e.prefix?i:o}case"bin":{let o=x(e.l,t),i=x(e.r,t);switch(e.op){case"+":return o+i;case"-":return o-i;case"*":return o*i;case"/":return o/i;case"%":return o%i;case"**":return o**i;case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case">":return o>i;case"<=":return o<=i;case">=":return o>=i;case"in":return o in i;case"instanceof":return o instanceof i}throw new W(`Unsupported operator: ${e.op}`)}case"logic":{let o=x(e.l,t);return e.op==="&&"?o&&x(e.r,t):e.op==="||"?o||x(e.r,t):o!=null?o:x(e.r,t)}case"cond":return x(e.test,t)?x(e.cons,t):x(e.alt,t);case"assign":{let o;if(e.op==="=")o=x(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=x(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=x(e.value,t)}else{let i=x(e.target,t),s=x(e.value,t);switch(e.op){case"+=":o=i+s;break;case"-=":o=i-s;break;case"*=":o=i*s;break;case"/=":o=i/s;break;case"%=":o=i%s;break;case"**=":o=i**s;break;default:throw new W(`Unsupported assignment: ${e.op}`)}}return ao(e.target,o,t),o}case"if":return x(e.test,t)?x(e.cons,t):e.alt?x(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a={};for(let l=0;l<o.length;l++)a[o[l]]=s[l];let c=this,u=c!==null&&typeof c=="object"?t.child(c):t;return x(i,u.child(a))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>{let a={};for(let c=0;c<o.length;c++)a[o[c]]=s[c];return x(i,t.child(a))}}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,x(i.spread,t));else{let s=$e(i.key!==null?i.key:String(x(i.keyExpr,t)));if(i.getter){let a=x(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=x(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...x(i.spread,t)):o.push(x(i,t));return o}case"seq":{let o;for(let i of e.body)o=x(i,t);return o}}throw new W(`Unknown node: ${e.t}`)}function Ns(e,t){let n=[];for(let r of e){let o=x(r,t);o&&typeof o=="object"&&Zn in o?n.push(...o[Zn]):n.push(o)}return n}function ao(e,t,n){if(e.t==="id"){$e(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=x(e.o,n);if(r==null)throw new W("Could not write to null or undefined");let o=$e(e.computed?x(e.p,n):e.p.v);r[o]=t;return}throw new W("Invalid assignment target")}function Jn(e,t){return e.t==="member"?e.computed?String(x(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Se(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(e instanceof Date)return e.toLocaleString();if(typeof e=="object")try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}re();Z();var Et=new Map;function P(e,t){Et.set(e.startsWith("$")?e:`$${e}`,t)}var De=class e{constructor(t={},n=null,r=null){this.refs={},this.component=null,this.provides=null,this.magicCache=null,this.data=t,this.parent=n,this.el=r}get root(){let t=this;for(;t.parent;)t=t.parent;return t}inject(t,n){let r=this;for(;r;){if(r.provides&&t in r.provides)return r.provides[t];r=r.parent}return n}get owner(){let t=this;for(;t;){if(t.component)return t;t=t.parent}return null}get allRefs(){let t=[],n=this;for(;n;)t.unshift(n),n=n.parent;let r={};for(let o of t)Object.assign(r,o.refs);return r}lookup(t){let n=this;for(;n;){if(t in n.data)return n.data;n=n.parent}if(t.charCodeAt(0)===36&&Et.has(t))return this.magicContainer(t)}has(t){return this.lookup(t)!==void 0}get(t){let n=this.lookup(t);return n?n[t]:void 0}set(t,n){let r=this;for(;r;){if(t in r.data){r.data[t]=n;return}r=r.parent}this.data[t]=n}child(t={},n=null){return new e(t,this,n!=null?n:this.el)}reactiveChild(t,n=null){return new e(F(t),this,n!=null?n:this.el)}magicContainer(t){this.magicCache||(this.magicCache=new Map);let n=this.magicCache.get(t);if(n)return n;let r=Et.get(t),o=this,i={};return Object.defineProperty(i,t,{get:()=>r(o),set:s=>{let a=r(o);a&&typeof a=="object"&&"set"in a&&a.set(s)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},de=new De(F({}));Z();re();re();function ve(){return T.devtools===!0}function ye(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let n=(e.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean);return n.length&&(t+=`.${n.slice(0,2).join(".")}`),`<${t}>`}function Ie(e){ve()&&console.warn(`[Voodoo] ${e}`)}var fo=new Set;function kt(e,t){ve()&&(fo.has(e)||(fo.add(e),console.warn(`[Voodoo] ${t}`)))}var Os=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function po(e,t,n){ve()&&(Os.has(n)||kt(`unknown-directive:${n}`,`unknown directive "${t}" at ${ye(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function mo(e,t){kt(`unknown-component:${t}`,`component "${t}" not registered at ${ye(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function ho(e,t,n,r){if(!ve())return;let o=r instanceof Error?r.message.split(`
|
|
59
|
+
`)[0]:String(r);Ie(`invalid expression in ${t}="${n}" on element ${ye(e)}.
|
|
60
|
+
Reason: ${o}
|
|
61
|
+
Suggestion: attribute expressions accept a single value. If the logic spans more than one line, move it to a component method and call the method here.`)}function go(e,t,n){ve()&&Ie(`duplicate key "${String(t)}" in v-for="${n}" on element ${ye(e)}. Two rows with the same key cause the list to reuse the wrong block when reordering. Use a unique key, like the item id.`)}function vo(e,t,n){ve()&&Ie(`required prop "${n}" missing from component "${t}" at ${ye(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function er(e,t){kt(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var je=new WeakMap,en=new WeakMap,be=new WeakSet,tr=new WeakMap;function sr(e){return be.has(e)}function ar(e){be.add(e)}function et(e){return je.get(e)}function we(e){let t=e;for(;t;){let n=je.get(t);if(n)return n;t=t.parentNode}return de}function Eo(e,t){let n=tr.get(e);n||tr.set(e,n=[]),n.push(t)}var nr=new WeakSet;function cr(e){nr.add(e),e.remove()}function fe(e,t){let n=en.get(e);n||en.set(e,n=[]),n.push(t)}function $(e){if(e.nodeType===1){let n=[];for(let r=e.firstChild;r;r=r.nextSibling)(r.nodeType===1||r.nodeType===3)&&n.push(r);for(let r=n.length-1;r>=0;r--)$(n[r])}let t=en.get(e);if(t){en.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){O(r,"cleanup")}}e.nodeType===1&&Fs(e),je.delete(e),tr.delete(e),be.delete(e)}var Zt=new Map,$s=4e3;function Je(e,t){let n=`${e}\0${t}`,r=Zt.get(n);if(r!==void 0)return r;let o=Hs(e,t);return Zt.size>=$s&&Zt.clear(),Zt.set(n,o),o}function Hs(e,t){let n=T.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let l of o){let f=l.indexOf("=");f>-1?s[l.slice(0,f)]=l.slice(f+1):s[l]=!0}let a=i.indexOf(":"),c=a>-1?i.slice(0,a):i,u=a>-1?i.slice(a+1):void 0;return{raw:e,name:c,arg:u,modifiers:s,expression:t}}function Ds(e){let t=[],n=Ze.get(e);if(n&&n.size)for(let[r,o]of n){let i=Je(r,o);i&&(t.push(i),bo(e,i.name))}else{let r=ko(e);for(let o=0;o<r.length;o++){let i=r[o];if(!js(i))continue;let s=Je(i,e.getAttribute(i));s&&(t.push(s),bo(e,s.name))}}return t.length<2?t:t.sort((r,o)=>yo(o)-yo(r))}var Is=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function ko(e){return Is?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function js(e){return So(e)||e.charCodeAt(0)===46&&e.length>1}function yo(e){var t,n;return(n=(t=ge.get(e.name))==null?void 0:t.priority)!=null?n:0}var rr=new Map,tn=new WeakMap;function bo(e,t){let n=rr.get(t);n||rr.set(t,n=new Set),n.add(e);let r=tn.get(e);r||tn.set(e,r=new Set),r.add(t)}function Fs(e){var n;let t=tn.get(e);if(t){for(let r of t)(n=rr.get(r))==null||n.delete(e);tn.delete(e)}}var Ze=new WeakMap;function So(e){return e.startsWith(T.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Ao(e,t){var r;let n=(r=Ze.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Ro(e,t){let n=Ze.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Bs(e){if(!T.cleanAttributes)return;let t=ko(e),n=Ze.get(e);n||Ze.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];So(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Co(e){let t=Ze.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function Mo(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(T.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function N(e,t,n,r){if(e)try{return x(le(e),t)}catch(o){ve()&&ho(r!=null?r:t.el,n!=null?n:"expression",e,o),O(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Lo=new WeakSet;function Po(e){Lo.add(e)}function wo(e,t,n){let r=ge.get(t.name);if(!r){ve()&&t.raw.startsWith(T.prefix)&&po(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new ne(!0);fe(e,()=>a.stop()),Eo(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return N(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=i();c.run(()=>te(a,{scope:c}))},cleanup(a){fe(e,a)},walk(a,c){j(a,c)}};try{r.setup(s)}catch(a){O(a,`directive ${t.raw}`)}}var or=null;function No(e){or=e}var Us=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function j(e,t){let n=t!=null?t:we(e.parentNode);if(e.nodeType===11){let d=Array.from(e.childNodes);for(let m of d)j(m,n);return}if(e.nodeType===3){Oo(e,n);return}if(e.nodeType!==1)return;let r=e;if(be.has(r))return;let o=r.tagName;if(Us.has(o))return;if(r.hasAttribute(`${T.prefix}ignore`)||r.hasAttribute(`${T.prefix}pre`)){be.add(r);return}let i=n,s=Ds(r),a=z.size===0&&tt.size===0||r.hasAttribute(`${T.prefix}component`)?null:Ks(o);if(s.length===0&&!a){To(r,i);return}be.add(r);for(let d of s){let m=ge.get(d.name);if(m!=null&&m.terminal){wo(r,d,i);return}}let c=s.find(d=>d.name==="data"),u=s.find(d=>d.name==="component"),l=u?u.expression||"":a||"",f=!1;if(l&&or){let d=or(r,l,i);d&&(i=d,f=!0,je.set(r,i))}else if(c||u){let d=c?N(c.expression||"{}",i,"v-data"):{};i=i.reactiveChild(d&&typeof d=="object"?d:{},r),je.set(r,i)}let p=f?n:i;for(let d of s)d.name==="data"||d.name==="component"||wo(r,d,p);Bs(r),Lo.has(r)||To(r,i)}function To(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&Oo(o,t);for(let o of n)j(o,(r=je.get(o))!=null?r:t)}var qs=500,xo=new Map;function _s(e){let t=e.trim();if(!t)return!1;let n=xo.get(t);if(n!==void 0)return n;let r=!0;try{r=le(t).t!=="seq"}catch(o){r=!1}return xo.set(t,r),r}function Vs(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let i=e[o];if(r){i==="\\"?o++:i===r&&(r=null);continue}if(i==='"'||i==="'"||i==="`"){r=i;continue}if(i==="{")n++;else if(i==="}"&&(n--,n===0))return o}return-1}function Ws(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let s=e[i+1]==="{",a=s?e.indexOf("}}",i+2):Vs(e,i);if(a===-1){n+=e[i],r=i+1;continue}let c=s?e.slice(i+2,a):e.slice(i+1,a),u=s?a+2:a+1;if((s||c.length<=qs)&&_s(c)){o(),t.push({expression:c.trim(),raw:e.slice(i,u),explicit:s}),r=u;continue}n+=e[i],r=i+1}return o(),t}var zs=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Qs(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=le(e.expression)}catch(o){return!0}return r.t==="lit"?!0:t!==void 0?!1:r.t==="id"?n.lookup(r.n)===void 0&&!(r.n in G):!1}function Oo(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||be.has(e))return;let r=e.parentElement;for(;r;){if(zs.has(r.tagName)||r.hasAttribute(`${T.prefix}ignore`)||r.hasAttribute(`${T.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Ws(n);if(!o.some(s=>s.expression))return;be.add(e);let i=new ne(!0);fe(e,()=>i.stop()),Eo(e,i),i.run(()=>te(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let c=N(a.expression,t,"interpolation");s+=Qs(a,c,t)?a.raw:Se(c)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function St(e,t){je.set(e,t)}function Ks(e){let t=e.toLowerCase();if(z.has(t))return t;let n=tt.get(t);return n!=null?n:null}var tt=new Map;var ir=!1,Xe=null;function $o(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:T.root)!=null?n:document.body;t&&(Object.assign(G,T.globals),j(t,de),ir||(ir=!0,T.autoDiscover&&Gs(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Gs(e){typeof MutationObserver!="undefined"&&(Xe=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(nr.has(o)){nr.delete(o);continue}o.nodeType===1&&!o.isConnected&&$(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(be.has(o)||j(o,we(o.parentNode)))}}}),Xe.observe(e,{childList:!0,subtree:!0}))}function Ho(){Xe==null||Xe.disconnect(),Xe=null,ir=!1}function Do(e){j(e!=null?e:document.body,e?we(e.parentNode):de)}Z();re();var rn=new Set,Io=new Set;function rt(e,t){let n=He(e);z.set(n,t),tt.set(n.replace(/-/g,""),n),Ys(n)}function Ys(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${T.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=et(s))!=null&&r.component||Xs(s))continue;let a=we(s.parentNode);sr(s)&&($(s),Co(s)),j(s,a)}}}function Xs(e){let t=e.parentElement;for(;t&&t!==document.body;){if(Mo(t)&&!sr(t))return!0;t=t.parentElement}return!1}function Js(e,t){var n,r;if(!t||!t.type||t.type==="any")return e;if(e==null||e==="")return(n=t.default)!=null?n:e;switch(t.type){case"number":{let o=Number(e);return Number.isNaN(o)?(r=t.default)!=null?r:e:o}case"boolean":return e===""||e==="true"||e===!0||e==="1";case"string":return String(e);case"array":return Array.isArray(e)?e:[e];default:return e}}function Zs(e){let t={};if(Array.isArray(e.props))for(let n of e.props)t[n]={type:"any"};else e.props&&Object.assign(t,e.props);return t}function ur(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function ea(e,t,n,r,o){var u;let i=F({}),s=Object.keys(t),a=new Map;for(let l of s)a.set(l.toLowerCase(),l),a.set(He(l),l),a.set(ur(l).toLowerCase(),l);for(let l of s)t[l].default!==void 0&&(i[l]=t[l].default);let c=Array.from(e.attributes);for(let l of c){let f=Je(l.name,l.value);if(f&&f.name==="bind"&&f.arg){let d=(u=a.get(f.arg.toLowerCase()))!=null?u:ur(f.arg);if(s.length&&!a.has(f.arg.toLowerCase()))continue;r.run(()=>te(()=>{i[d]=N(f.expression,n,`:${f.arg}`)}));continue}if(f)continue;let p=a.get(l.name.toLowerCase());p?i[p]=Js(l.value,t[p]):s.length||(i[ur(l.name)]=l.value)}for(let l of s)t[l].required&&i[l]===void 0&&vo(e,o,l);return i}function ta(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var c,u;let a=s.nodeType===1&&(c=s.getAttribute("slot"))!=null?c:null;if(a){s.removeAttribute("slot");let l=(u=o.get(a))!=null?u:[];l.push(s),o.set(a,l)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),c=a?o.get(a):i,u=document.createDocumentFragment();if(c&&c.length)for(let l of c)u.appendChild(l);else for(;s.firstChild;)u.appendChild(s.firstChild);Array.from(u.childNodes).forEach(l=>{l.nodeType===1&&na(l,n)}),s.replaceWith(u)}}var nn=null;function jo(e){nn=e}function na(e,t){nn==null||nn(e,t)}function Fo(e,t,n){var y,I,H,C,V,M,ee,U;let r=t?He(t):"",o=r?(H=(I=z.get(r))!=null?I:z.get((y=tt.get(r))!=null?y:""))!=null?H:{}:{};r&&!z.has(r)&&!tt.has(r)&&mo(e,t);let i=new ne(!0),s=Zs(o),a=ea(e,s,n,i,r||"inline");!o.state&&o.data&&er("data()","state()"),o.destroyed&&er("destroyed()","unmounted()");let c=(C=o.state)!=null?C:o.data,u={},l={},f=o.inheritScope?n:n.root,p=new De({},f,e);p.component=l;try{u=c?(V=c.call(l,a))!=null?V:{}:{}}catch(w){O(w,`state() of component "${t}"`)}let d=e.getAttribute(`${T.prefix}data`);if(d){let w=N(d,n,"v-data");w&&typeof w=="object"&&Object.assign(u,w)}if(o.provide)try{let w=typeof o.provide=="function"?o.provide.call(l):o.provide;w&&typeof w=="object"&&(p.provides={...w})}catch(w){O(w,`provide() of component "${t}"`)}if(o.inject){let w=Array.isArray(o.inject)?o.inject.map(b=>[b,{from:b}]):Object.entries(o.inject).map(([b,R])=>[b,R!=null?R:{}]);for(let[b,R]of w){let Me=(M=R.from)!=null?M:b,Mn=n.inject(Me,R.default);b in u||(u[b]=Mn)}}let m=F(u),g={};if(o.computed)for(let[w,b]of Object.entries(o.computed))g[w]=xt(()=>b.call(l));let h={};if(o.methods)for(let[w,b]of Object.entries(o.methods))h[w]=(...R)=>b.apply(l,R);for(let[w,b]of Object.entries(o))typeof b=="function"&&(ra.has(w)||w==="state"||w==="data"||w in h||(h[w]=(...R)=>b.apply(l,R)));let v=(w,b)=>{let R=new CustomEvent(w,{detail:b,bubbles:!0,cancelable:!0});R.__voodoo=!0,e.dispatchEvent(R)},S={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(U=(ee=n.owner)==null?void 0:ee.component)!=null?U:null,emit:v,$emit:v,$nextTick:w=>Promise.resolve().then(()=>(Z(),Zr)).then(b=>b.nextTick(w)),$watch:(w,b)=>ue(()=>N(w,p),b)},_={get(w,b){if(typeof b!="symbol")return b==="$refs"?p.allRefs:b in S?S[b]:b in g?g[b].value:b in h?h[b]:b in a?a[b]:m[b]},set(w,b,R){return typeof b=="symbol"?!0:b in g?(g[b].value=R,!0):b in a?(a[b]=R,!0):(m[b]=R,!0)},has(w,b){if(typeof b=="symbol")return!1;let R=b;return R==="$refs"||R in S||R in g||R in h||R in a||R in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(h),...Object.keys(g)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},k=new Proxy(l,_);if(p.data=k,Object.setPrototypeOf(l,k),o.watch)for(let[w,b]of Object.entries(o.watch))i.run(()=>ue(()=>k[w],(R,Me)=>b.call(k,R,Me)));if(o.style&&!Io.has(r)){Io.add(r);let w=document.createElement("style");w.setAttribute("data-voodoo-component",r),w.textContent=o.style,document.head.appendChild(w)}if(nt(o,k,"beforeMount"),o.template){let w=document.createDocumentFragment();for(;e.firstChild;)w.appendChild(e.firstChild);e.innerHTML=o.template,ta(e,w,n)}return rn.add(k),ke(()=>{nt(o,k,"mounted"),o.updated&&i.run(()=>te(()=>{for(let w of Object.keys(m))m[w];nt(o,k,"updated")}))}),fe(e,()=>{nt(o,k,"beforeUnmount"),i.stop(),rn.delete(k),nt(o,k,"unmounted"),nt(o,k,"destroyed")}),p}var ra=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function nt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){O(o,`hook ${n}`)}}Z();re();var ot=[],lr=null,on=0,Bo=-1,fr=0,dr=!1;function Uo(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function oa(){if(lr||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(lr=new MutationObserver(()=>{on++}),lr.observe(e,{childList:!0,subtree:!0}))}function qo(){if(dr)return;dr=!0;let e=()=>{dr=!1,ia()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function ia(){var t;on===Bo?fr++:fr=0,Bo=on;let e=Uo();for(let n=ot.length-1;n>=0;n--){let r=ot[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){ot.splice(n,1),r.action(o);continue}e-r.since>1e4&&(ot.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}ot.length&&qo()}function pr(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}oa(),ot.push({...e,since:Uo()}),qo()}function _o(){return typeof document=="undefined"||!document.body?!1:fr>=2}function sa(){return typeof document=="undefined"||!document.body?!1:on===0}function sn(e){typeof document!="undefined"&&pr({ready:()=>_o()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Vo(e){if(typeof document!="undefined"){if(sa()){Promise.resolve().then(e);return}pr({ready:()=>_o()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function an(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&pr({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var aa=0,cn=null;function Wo(e){cn=e}function zo(e={}){let t=`voodoo-app-${++aa}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,c="",u=null,l=[];function f(){if(n)for(let[m,g]of Object.entries(n)){let h=He(m);z.has(h)||(rt(h,g),s.push(h))}}function p(m){var h,v;if(u)return u;a=m,c=m.innerHTML,Object.assign(G,o.globalProperties),f();let g={...r};if(Object.keys(i).length){let S=g.provide;g.provide=()=>({...typeof S=="function"?S():S!=null?S:{},...i})}rt(t,g),m.setAttribute(`${T.prefix}component`,t);try{j(m,de)}catch(S){return O(S,`application mounting "${t}"`),null}if(u=(v=(h=et(m))==null?void 0:h.component)!=null?v:null,u){let S=l;l=[];for(let _ of S)_(u)}return u}let d={name:t,config:o,get instance(){return u},get container(){return a},get isMounted(){return u!==null},component(m,g){var v;let h=He(m);return g===void 0?(v=n&&n[m])!=null?v:z.get(h):(n?n[m]=g:e.components={[m]:g},u&&!z.has(h)&&(rt(h,g),s.push(h)),d)},directive(m,g){return cn==null||cn(m,g),d},use(m,g){return Jt(ca(),m,g),d},provide(m,g){return i[m]=g,d},mount(m){if(u)return u;if(typeof m!="string")return p(m);let g=null;return an(m,h=>{g=p(h)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),g},whenMounted(){return u?Promise.resolve(u):new Promise(m=>l.push(m))},unmount(){if(a){$(a),a.removeAttribute(`${T.prefix}component`),a.innerHTML=c,z.delete(t);for(let m of s)z.delete(m);s.length=0,u=null,a=null}}};return d}var Qo=null;function Ko(e){Qo=e}function ca(){return Qo}Z();Z();var Ae=new Map,mr=Tt(0),hr=new Map;function Go(e,t,n={}){let r=Ae.get(e);if(!t){if(!r){let c=F({});return Ae.set(e,c),c}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let u=JSON.parse(c);for(let[l,f]of Object.entries(u))i[l]&&!("value"in i[l])||(s[l]=f)}}catch(c){}let a=F(s);for(let[c,u]of Object.entries(i)){let l=u.value;typeof l=="function"&&(a[c]=(...f)=>l.apply(a,f))}if(Ae.set(e,a),mr.value++,n.persist&&typeof localStorage!="undefined"){let c=ue(a,()=>{try{localStorage.setItem(o,JSON.stringify(ua(a)))}catch(u){}},{deep:!0});hr.set(e,c)}return a}function ua(e){let t={},n=Object.getOwnPropertyDescriptors(K(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var un=new Proxy({},{get:(e,t)=>(mr.value,Ae.get(t)),has:(e,t)=>(mr.value,Ae.has(t)),ownKeys:()=>[...Ae.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Yo(e){var t;(t=hr.get(e))==null||t(),hr.delete(e),Ae.delete(e)}function Xo(){return[...Ae.keys()]}var yr={};_t(yr,{capitalize:()=>Zo,chunk:()=>ga,clone:()=>At,debounce:()=>Fe,device:()=>Be,escapeHtml:()=>Rt,formatCurrency:()=>Ra,formatDate:()=>Ma,formatFileSize:()=>Pa,formatNumber:()=>Ca,formatPercent:()=>Na,get:()=>ya,groupBy:()=>ma,isBrowser:()=>ln,matchesMedia:()=>it,memoize:()=>pa,merge:()=>Jo,once:()=>fa,parseDuration:()=>q,random:()=>wa,relativeTime:()=>La,sample:()=>Ta,set:()=>ba,setFormatDefaults:()=>Aa,sleep:()=>da,slugify:()=>xa,sortBy:()=>va,stripTags:()=>Sa,throttle:()=>vr,titleCase:()=>ka,truncate:()=>Ea,uid:()=>gr,unique:()=>ha,uuid:()=>la});function la(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function gr(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function da(e){return new Promise(t=>setTimeout(t,e))}function q(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function Fe(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),c&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function vr(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function fa(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function pa(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let i=t(...o);if(n.has(i))return n.get(i);let s=e.apply(this,o);return n.set(i,s),s};return r.cache=n,r}function At(e){if(e===null||typeof e!="object")return e;if(typeof structuredClone=="function")try{return structuredClone(e)}catch(n){}if(Array.isArray(e))return e.map(n=>At(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,At(r)]));if(e instanceof Set)return new Set([...e].map(n=>At(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=At(r);return t}function Jo(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=Jo({...i},o):e[r]=o}return e}function ma(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let i=String(r(o));(n[i]||(n[i]=[])).push(o)}return n}function ha(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:i=>i==null?void 0:i[t],r=new Set,o=[];for(let i of e){let s=n(i);r.has(s)||(r.add(s),o.push(i))}return o}function ga(e,t=10){if(t<1)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function va(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),c=r(s);return a==null&&c==null?0:a==null?1:c==null?-1:typeof a=="string"&&typeof c=="string"?a.localeCompare(c,void 0,{numeric:!0})*o:(a>c?1:a<c?-1:0)*o})}function ya(e,t,n){let r=t.split("."),o=e;for(let i of r){if(o==null)return n;o=o[i]}return o!=null?o:n}function ba(e,t,n){let r=t.split("."),o=e;for(let i=0;i<r.length-1;i++){let s=r[i];(typeof o[s]!="object"||o[s]===null)&&(o[s]=/^\d+$/.test(r[i+1])?[]:{}),o=o[s]}o[r[r.length-1]]=n}function wa(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function Ta(e){return e[Math.floor(Math.random()*e.length)]}function xa(e,t="-"){return String(e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,t).replace(new RegExp(`\\${t}{2,}`,"g"),t).replace(new RegExp(`^\\${t}|\\${t}$`,"g"),"")}function Ea(e,t=100,n="..."){let r=String(e!=null?e:"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length)).trimEnd()+n}function Zo(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function ka(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Zo(t.toLowerCase()))}function Rt(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Sa(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var st="pt-BR",ei="BRL";function Aa(e,t){e&&(st=e),t&&(ei=t)}function Ra(e,t={}){var r,o;let n=typeof e=="string"?parseFloat(e):e;return n==null||Number.isNaN(n)?"":new Intl.NumberFormat((r=t.locale)!=null?r:st,{style:"currency",currency:(o=t.currency)!=null?o:ei}).format(n)}function Ca(e,t={}){let n=typeof e=="string"?parseFloat(e):e;if(n==null||Number.isNaN(n))return"";let{locale:r,...o}=t;return new Intl.NumberFormat(r!=null?r:st,o).format(n)}function Ma(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:st;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let i={short:{day:"2-digit",month:"2-digit",year:"numeric"},long:{day:"2-digit",month:"long",year:"numeric"},full:{dateStyle:"full"},time:{hour:"2-digit",minute:"2-digit"},datetime:{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}};if(i[t])return new Intl.DateTimeFormat(o,i[t]).format(r);let s=a=>String(a).padStart(2,"0");return t.replace(/YYYY/g,String(r.getFullYear())).replace(/YY/g,String(r.getFullYear()).slice(-2)).replace(/MM/g,s(r.getMonth()+1)).replace(/DD/g,s(r.getDate())).replace(/HH/g,s(r.getHours())).replace(/mm/g,s(r.getMinutes())).replace(/ss/g,s(r.getSeconds()))}function La(e,t){let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"";let r=n.getTime()-Date.now(),o=Math.abs(r),i=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],s=new Intl.RelativeTimeFormat(t!=null?t:st,{numeric:"auto"});for(let[a,c]of i)if(o>=c||a==="second")return s.format(Math.round(r/c),a);return""}function Pa(e,t=1){let n=Number(e);if(!n||Number.isNaN(n))return"0 B";let r=["B","KB","MB","GB","TB","PB"],o=Math.min(Math.floor(Math.log(Math.abs(n))/Math.log(1024)),r.length-1);return`${(n/1024**o).toFixed(o===0?0:t)} ${r[o]}`}function Na(e,t=0,n){return new Intl.NumberFormat(n!=null?n:st,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var ln=typeof window!="undefined"&&typeof window.document!="undefined";function it(e){if(!ln||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var Be={get touch(){return ln&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return it("(max-width: 767px)")},get tablet(){return it("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return it("(min-width: 1024px)")},get online(){return!ln||navigator.onLine},get reducedMotion(){return it("(prefers-reduced-motion: reduce)")},get darkMode(){return it("(prefers-color-scheme: dark)")}};var X=class extends Error{constructor(n,r,o,i){super(n);L(this,"response",r);L(this,"config",o);L(this,"cause",i);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},Q={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},dn=[],fn=[],Ct=[],Mt=new Map;function ti(e){var t;return`${(t=e.method)!=null?t:"GET"} ${ct(e)}`}function Oa(e){if(!e){Mt.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Mt.keys()])t(n)&&Mt.delete(n)}var ri="voodoo:offline-queue";function br(){try{return JSON.parse(localStorage.getItem(ri)||"[]")}catch(e){return[]}}function wr(e){try{localStorage.setItem(ri,JSON.stringify(e))}catch(t){}}function $a(e){var n,r;if(typeof localStorage=="undefined")return;let t=br();t.push({url:ct(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),wr(t)}async function oi(){if(typeof localStorage=="undefined")return 0;let e=br();if(!e.length)return 0;wr([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await Lt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=br();wr([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{oi()});function ct(e){let t=e.url,n=Q.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function ii(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${Q.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Ha(e,t){if(e!=null)return typeof FormData!="undefined"&&e instanceof FormData||typeof Blob!="undefined"&&e instanceof Blob||typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer||typeof e=="string"?e:(t["Content-Type"]||(t["Content-Type"]="application/json"),JSON.stringify(e))}async function Da(e,t){if(e.status===204||e.status===205)return null;let n=e.headers.get("content-type")||"";switch(t){case"json":return e.json();case"text":return e.text();case"blob":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();default:if(n.includes("application/json")||n.includes("+json")){let r=await e.text();return r?JSON.parse(r):null}return e.text()}}var Ia=new Set(["GET","HEAD","OPTIONS"]);function ja(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Fa(e,t,n,r){var o;return Ia.has(e)||t.retryUnsafe===!0||ja(n)?!0:(((o=t.retry)!=null?o:0)>0&&kt(`http:retry-unsafe:${e} ${r}`,`retry ignored on ${e} ${r}: retrying a method that changes state may apply the same operation twice if the response is lost in transit. Allow with retryUnsafe: true or send an Idempotency-Key header.`),!1)}async function Lt(e){var l,f,p,d,m;let t={method:"GET",timeout:Q.timeout,retry:Q.retry,retryDelay:Q.retryDelay,credentials:Q.credentials,responseType:"auto",...e,headers:{...Q.headers,...e.headers}};for(let g of dn)t=await g(t);let n=((l=t.method)!=null?l:"GET").toUpperCase();if(t.cache&&n==="GET"){let g=Mt.get(ti(t));if(g&&g.expires>Date.now())return g.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return $a(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let g=ii();g&&!r[Q.csrfHeader]&&(r[Q.csrfHeader]=g)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Ha(t.body,r),i=ct(t),s=Fa(n,t,r,i)?((f=t.retry)!=null?f:0)+1:1,a;for(let g=0;g<s;g++){let h=new AbortController,v=t.signal,S=null;v&&(v.aborted?h.abort(v.reason):(S=()=>h.abort(v.reason),v.addEventListener("abort",S,{once:!0})));let _=()=>{S&&v&&v.removeEventListener("abort",S),S=null},k=t.timeout&&t.timeout>0?setTimeout(()=>h.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let y=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:h.signal});k&&clearTimeout(k),_();let H={data:await Da(y,t.responseType),status:y.status,statusText:y.statusText,headers:y.headers,ok:y.ok,raw:y,config:t};if(!y.ok){if(y.status>=500&&g<s-1){await ni(((p=t.retryDelay)!=null?p:500)*2**g);continue}let C=new X(`Request failed with status ${y.status}`,H,t);for(let V of Ct)V(C);throw C}for(let C of fn)H=await C(H);return t.cache&&n==="GET"&&Mt.set(ti(t),{expires:Date.now()+t.cache,value:H}),H}catch(y){if(k&&clearTimeout(k),_(),y instanceof X)throw y;if(a=y,(y==null?void 0:y.name)==="AbortError"&&((d=t.signal)==null?void 0:d.aborted))break;if(g<s-1){await ni(((m=t.retryDelay)!=null?m:500)*2**g);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,u=new X(c,void 0,t,a);for(let g of Ct)g(u);throw u}function ni(e){return new Promise(t=>setTimeout(t,e))}async function at(e){return(await Lt(e)).data}var oe={defaults:Q,get(e,t={}){return at({...t,url:e,method:"GET"})},post(e,t,n={}){return at({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return at({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return at({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return at({...t,url:e,method:"DELETE"})},head(e,t={}){return at({...t,url:e,method:"HEAD"})},request:Lt,upload(e,t,n={}){return new Promise((r,o)=>{var c,u;let i=new XMLHttpRequest,s=ct({url:e});i.open((c=n.method)!=null?c:"POST",s);for(let[l,f]of Object.entries({...Q.headers,...n.headers}))l.toLowerCase()!=="content-type"&&i.setRequestHeader(l,f);let a=ii();a&&i.setRequestHeader(Q.csrfHeader,a),i.upload.addEventListener("progress",l=>{var f;l.lengthComputable&&((f=n.onProgress)==null||f.call(n,Math.round(l.loaded/l.total*100),l.loaded,l.total))}),i.addEventListener("load",()=>{let l=i.getResponseHeader("content-type")||"",f=i.responseText;if(l.includes("json"))try{f=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(f):o(new X(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new X("Network failure during upload"))),i.addEventListener("abort",()=>o(new X("Upload canceled"))),(u=n.signal)==null||u.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(ct({url:e}));return n.addEventListener("message",r=>{var i;let o=r.data;try{o=JSON.parse(r.data)}catch(s){}(i=t.message)==null||i.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(ct({url:e,params:n.params}),{headers:{...Q.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:c,value:u}=await o.read();if(c)break;s+=i.decode(u,{stream:!0});let l=s.split(`
|
|
62
|
+
`);s=(a=l.pop())!=null?a:"";for(let f of l)f.trim()&&t(f)}s.trim()&&t(s)},interceptors:{request:{use(e){return dn.push(e),()=>{let t=dn.indexOf(e);t>-1&&dn.splice(t,1)}}},response:{use(e){return fn.push(e),()=>{let t=fn.indexOf(e);t>-1&&fn.splice(t,1)}}},error:{use(e){return Ct.push(e),()=>{let t=Ct.indexOf(e);t>-1&&Ct.splice(t,1)}}}},setHeader(e,t){t===null?delete Q.headers[e]:Q.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){Q.baseURL=e},clearCache:Oa,flushOfflineQueue:oi,parseDuration:q};ut();var Ba=`
|
|
63
|
+
.v-toaster{position:fixed;z-index:var(--v-z-toast,1100);display:flex;flex-direction:column;gap:10px;padding:16px;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}
|
|
64
|
+
.v-toaster[data-pos^="top"]{top:0}
|
|
65
|
+
.v-toaster[data-pos^="bottom"]{bottom:0;flex-direction:column-reverse}
|
|
66
|
+
.v-toaster[data-pos$="right"]{right:0;align-items:flex-end}
|
|
67
|
+
.v-toaster[data-pos$="left"]{left:0;align-items:flex-start}
|
|
68
|
+
.v-toaster[data-pos$="center"]{left:50%;transform:translateX(-50%);align-items:center}
|
|
69
|
+
|
|
70
|
+
.v-toast{pointer-events:auto;position:relative;display:flex;gap:12px;align-items:flex-start;
|
|
71
|
+
min-width:280px;max-width:100%;padding:14px 16px;border-radius:var(--v-radius,12px);
|
|
72
|
+
background:var(--v-surface,#fff);color:var(--v-text,#14111F);
|
|
73
|
+
border:1px solid var(--v-border,#E6E0F0);box-shadow:var(--v-shadow,0 10px 30px rgba(20,17,31,.14));
|
|
74
|
+
font:500 14px/1.45 var(--v-font-sans,system-ui,sans-serif);
|
|
75
|
+
opacity:0;transform:translateY(-8px) scale(.98);
|
|
76
|
+
transition:opacity .22s var(--v-ease,ease),transform .22s var(--v-ease,ease)}
|
|
77
|
+
.v-toaster[data-pos^="bottom"] .v-toast{transform:translateY(8px) scale(.98)}
|
|
78
|
+
.v-toast.v-in{opacity:1;transform:none}
|
|
79
|
+
.v-toast.v-out{opacity:0;transform:translateY(-8px) scale(.98)}
|
|
80
|
+
|
|
81
|
+
.v-toast-icon{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
|
|
82
|
+
font-size:12px;font-weight:700;color:#fff;margin-top:1px}
|
|
83
|
+
.v-toast-body{flex:1;min-width:0}
|
|
84
|
+
.v-toast-title{font-weight:650}
|
|
85
|
+
.v-toast-desc{margin-top:2px;font-weight:450;color:var(--v-text-muted,#6B6580);font-size:13px;overflow-wrap:anywhere}
|
|
86
|
+
.v-toast-action{flex:none;background:transparent;border:1px solid var(--v-border,#E6E0F0);
|
|
87
|
+
border-radius:8px;padding:5px 10px;font:600 12px/1 inherit;color:var(--v-primary,#6D3BF5);cursor:pointer}
|
|
88
|
+
.v-toast-action:hover{background:var(--v-surface-2,#FBF7F2)}
|
|
89
|
+
.v-toast-close{flex:none;background:none;border:0;cursor:pointer;color:var(--v-text-muted,#6B6580);
|
|
90
|
+
font-size:18px;line-height:1;padding:0 2px;opacity:.7}
|
|
91
|
+
.v-toast-close:hover{opacity:1}
|
|
92
|
+
|
|
93
|
+
.v-toast-bar{position:absolute;left:0;bottom:0;height:2px;width:100%;transform-origin:left;
|
|
94
|
+
border-radius:0 0 var(--v-radius,12px) var(--v-radius,12px);opacity:.55}
|
|
95
|
+
.v-toast:hover .v-toast-bar{animation-play-state:paused}
|
|
96
|
+
@keyframes v-toast-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
|
|
97
|
+
|
|
98
|
+
.v-toast[data-type="success"] .v-toast-icon,.v-toast[data-type="success"] .v-toast-bar{background:var(--v-success,#2ED9A5)}
|
|
99
|
+
.v-toast[data-type="error"] .v-toast-icon,.v-toast[data-type="error"] .v-toast-bar{background:var(--v-danger,#FF4D4D)}
|
|
100
|
+
.v-toast[data-type="warning"] .v-toast-icon,.v-toast[data-type="warning"] .v-toast-bar{background:var(--v-warning,#FFB35C)}
|
|
101
|
+
.v-toast[data-type="info"] .v-toast-icon,.v-toast[data-type="info"] .v-toast-bar{background:var(--v-info,#9B7BFF)}
|
|
102
|
+
.v-toast[data-type="default"] .v-toast-icon,.v-toast[data-type="default"] .v-toast-bar{background:var(--v-primary,#6D3BF5)}
|
|
103
|
+
.v-toast[data-type="loading"] .v-toast-icon{background:transparent;border:2px solid var(--v-border,#E6E0F0);
|
|
104
|
+
border-top-color:var(--v-primary,#6D3BF5);animation:v-spin .7s linear infinite}
|
|
105
|
+
@keyframes v-spin{to{transform:rotate(360deg)}}
|
|
106
|
+
@media (prefers-reduced-motion: reduce){.v-toast{transition:none}}
|
|
107
|
+
`,Ua={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Pt=new Map,Re={duration:4e3,position:"top-right",max:6};function qa(e){Ue(),Te("toast",Ba);let t=Pt.get(e);return t&&t.isConnected||(t=document.createElement("div"),t.className="v-toaster",t.setAttribute("data-pos",e),t.setAttribute("role","region"),t.setAttribute("aria-label","Notifications"),document.body.appendChild(t),Pt.set(e,t)),t}function qe(e){var p,d,m,g;let t=(p=e.position)!=null?p:Re.position,n=(d=e.type)!=null?d:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Re.duration,o=qa(t),i=gr("toast-"),s=document.createElement("div");s.className="v-toast",s.id=i,s.setAttribute("data-type",n),s.setAttribute("role",n==="error"?"alert":"status"),s.setAttribute("aria-live",n==="error"?"assertive":"polite");let a=!1,c=null,u=()=>{a||(a=!0,c&&clearTimeout(c),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var h;s.remove(),(h=e.onClose)==null||h.call(e),o.children.length||(o.remove(),Pt.delete(t))},220))},l=h=>{var _,k,y,I;let v=(_=h.type)!=null?_:n;if(s.setAttribute("data-type",v),h.html)s.innerHTML=h.html;else{s.textContent="";let H=document.createElement("span");H.className="v-toast-icon",H.setAttribute("aria-hidden","true"),H.textContent=(k=Ua[v])!=null?k:"",s.appendChild(H);let C=document.createElement("div");C.className="v-toast-body";let V=document.createElement("div");if(V.className="v-toast-title",V.textContent=(y=h.title)!=null?y:"",C.appendChild(V),h.description){let M=document.createElement("div");M.className="v-toast-desc",M.textContent=h.description,C.appendChild(M)}if(s.appendChild(C),h.action){let M=document.createElement("button");M.type="button",M.className="v-toast-action",M.textContent=h.action.label,M.addEventListener("click",()=>{var ee;(ee=h.action)==null||ee.onClick(),u()}),s.appendChild(M)}if(h.closable!==!1&&v!=="loading"){let M=document.createElement("button");M.type="button",M.className="v-toast-close",M.setAttribute("aria-label","Close notification"),M.innerHTML="×",M.addEventListener("click",u),s.appendChild(M)}}let S=(I=h.duration)!=null?I:r;if(S>0){let H=document.createElement("div");H.className="v-toast-bar",H.style.animation=`v-toast-bar ${S}ms linear forwards`,s.appendChild(H)}};for(l(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>Re.max;)(g=o.firstElementChild)==null||g.remove();let f=h=>{c&&clearTimeout(c),h>0&&(c=setTimeout(u,h))};return f(r),s.addEventListener("mouseenter",()=>{c&&clearTimeout(c)}),s.addEventListener("mouseleave",()=>f(r)),{id:i,close:u,update(h){var v;l({...e,...h}),h.duration!==void 0?f(h.duration):((v=h.type)!=null?v:n)!=="loading"&&f(Re.duration)}}}function lt(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Ce=Object.assign((e,t={})=>qe({...lt(e,"default"),...t}),{success:(e,t={})=>qe({...lt(e,"success"),...t}),error:(e,t={})=>qe({...lt(e,"error"),...t}),warning:(e,t={})=>qe({...lt(e,"warning"),...t}),info:(e,t={})=>qe({...lt(e,"info"),...t}),loading:(e,t={})=>qe({...lt(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=qe({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let s=await e;return n.update({title:typeof t.success=="function"?t.success(s):(o=t.success)!=null?o:"Done",type:"success",duration:Re.duration}),s}catch(s){throw n.update({title:typeof t.error=="function"?t.error(s):(i=t.error)!=null?i:"Something went wrong",type:"error",duration:Re.duration}),s}},clear(){for(let[e,t]of Pt)t.remove(),Pt.delete(e)},configure(e){Object.assign(Re,e)},settings:Re});function ui(e,t=""){let n=r=>t+r;return{get(r,o){var i;try{let s=(i=e())==null?void 0:i.getItem(n(r));if(s==null)return o;try{return JSON.parse(s)}catch(a){return s}}catch(s){return o}},set(r,o){var i;try{return(i=e())==null||i.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(s){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(i){}},clear(){try{let r=e();if(!r)return;if(!t){r.clear();return}for(let o of Object.keys(r))o.startsWith(t)&&r.removeItem(o)}catch(r){}},has(r){var o;try{return((o=e())==null?void 0:o.getItem(n(r)))!==null}catch(i){return!1}},keys(){try{let r=e();return r?Object.keys(r).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length)):[]}catch(r){return[]}}}}var ie=ui(()=>typeof localStorage!="undefined"?localStorage:void 0),pn=ui(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),mn={get(e){if(typeof document=="undefined")return;let t=`${encodeURIComponent(e)}=`;for(let n of document.cookie.split("; "))if(n.startsWith(t))return decodeURIComponent(n.slice(t.length))},set(e,t,n={}){var o,i;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let s=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${s.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(i=n.sameSite)!=null?i:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},hn={get(e,t){var n;return typeof location=="undefined"?t:(n=new URLSearchParams(location.search).get(e))!=null?n:t},all(){return typeof location=="undefined"?{}:Object.fromEntries(new URLSearchParams(location.search))},set(e,t,n=!0){if(typeof location=="undefined")return;let r=new URL(location.href);t===null||t===""?r.searchParams.delete(e):r.searchParams.set(e,String(t)),history[n?"replaceState":"pushState"]({},"",r.toString())},remove(e,t=!0){this.set(e,null,t)},merge(e,t=!0){if(typeof location=="undefined")return;let n=new URL(location.href);for(let[r,o]of Object.entries(e))o===null||o===""?n.searchParams.delete(r):n.searchParams.set(r,String(o));history[t?"replaceState":"pushState"]({},"",n.toString())}},dt=new Map,gn={set(e,t,n=0){return dt.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=dt.get(e);return n?n.expires<Date.now()?(dt.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){dt.delete(e)},clear(){dt.clear()},async remember(e,t,n){let r=this.get(e);if(r!==void 0)return r;let o=await n();return this.set(e,o,t),o},get size(){return dt.size}},Tr="voodoo:theme",ft={get current(){var e;return(e=ie.get(Tr))!=null?e:"system"},get resolved(){let e=this.current;return e!=="system"?e:typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){ie.set(Tr,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return ie.get(Tr)!=null},apply(){if(typeof document=="undefined"||!this.chosen)return;let e=this.current,t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e),t.style.colorScheme=this.resolved,document.dispatchEvent(new CustomEvent("voodoo:theme",{detail:{theme:e,resolved:this.resolved}}))},init(){typeof document!="undefined"&&(this.apply(),matchMedia==null||matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{this.current==="system"&&this.apply()}))}};var se=F({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function xr(){typeof window!="undefined"&&(se.width=window.innerWidth,se.height=window.innerHeight,se.mobile=window.innerWidth<768,se.tablet=window.innerWidth>=768&&window.innerWidth<1024,se.desktop=window.innerWidth>=1024,se.portrait=window.innerHeight>=window.innerWidth,se.landscape=!se.portrait)}var _e=F({online:!0,type:"unknown",saveData:!1,slow:!1});function vn(){var t;if(typeof navigator=="undefined")return;_e.online=navigator.onLine;let e=navigator.connection;e&&(_e.type=(t=e.effectiveType)!=null?t:"unknown",_e.saveData=!!e.saveData,_e.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var Er={async copy(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}},async read(){try{return await navigator.clipboard.readText()}catch(e){return""}}},li=!1;function di(){var t,n;if(li||(li=!0,P("$el",r=>r.el),P("$refs",r=>r.allRefs),P("$data",r=>r.data),P("$root",r=>r.root.data),P("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),P("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),P("$store",()=>un),P("$http",()=>oe),P("$toast",()=>Ce),P("$clipboard",()=>Er),P("$storage",()=>ie),P("$session",()=>pn),P("$cookie",()=>mn),P("$cache",()=>gn),P("$url",()=>hn),P("$theme",()=>ft),P("$device",()=>Be),P("$screen",()=>se),P("$network",()=>_e),P("$nextTick",()=>Oe),P("$watch",r=>(o,i)=>ue(()=>N(o,r,"$watch"),i)),P("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),P("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;xr(),vn();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(xr)}),window.addEventListener("orientationchange",xr),window.addEventListener("online",vn),window.addEventListener("offline",vn),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",vn)}Z();function kr(e,t){if(!t)return e;let n=e;for(let r of t.split(".")){if(n==null)return;n=n[r]}return n}function Sr(e){var n;let t=(n=e.response)==null?void 0:n.data;if(!t||typeof t!="object")return null;for(let r of["message","error","detail","msg"]){let o=t[r];if(typeof o=="string")return o}return null}function yn(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=F({data:null,loading:!1,error:null,loaded:!1,async reload(){var u,l,f,p,d;let a=n();if(!a)return;o==null||o.abort();let c=o=new AbortController;s.loading=!0,s.error=null;try{let m=await oe.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(u=t.retry)!=null?u:0,timeout:(l=t.timeout)!=null?l:oe.defaults.timeout,signal:c.signal});if(c.signal.aborted)return;s.data=kr(m.data,t.jsonPath),s.loaded=!0,(f=t.onSuccess)==null||f.call(t,s.data)}catch(m){if(c.signal.aborted)return;let g=m instanceof X&&(p=Sr(m))!=null?p:m.message;s.error={name:"ResourceError",message:g},(d=t.onError)==null||d.call(t,m,g)}finally{c.signal.aborted||(s.loading=!1),o===c&&(o=null)}},set(a){s.data=a},stop(){o==null||o.abort(),o=null,s.loading=!1,i!==null&&(clearInterval(i),i=null)}});return t.poll&&t.poll>0&&(i=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&s.reload()},t.poll)),t.manual||s.reload(),s}ut();ut();var fi=`
|
|
108
|
+
.v-fade-enter-active,.v-fade-leave-active{transition:opacity .22s var(--v-ease,ease)}
|
|
109
|
+
.v-fade-enter-from,.v-fade-leave-to{opacity:0}
|
|
110
|
+
|
|
111
|
+
.v-scale-enter-active,.v-scale-leave-active{transition:opacity .22s var(--v-ease,ease),transform .22s var(--v-ease,ease)}
|
|
112
|
+
.v-scale-enter-from,.v-scale-leave-to{opacity:0;transform:scale(.94)}
|
|
113
|
+
|
|
114
|
+
.v-slide-enter-active,.v-slide-leave-active{transition:opacity .24s var(--v-ease,ease),transform .24s var(--v-ease,ease)}
|
|
115
|
+
.v-slide-enter-from,.v-slide-leave-to{opacity:0;transform:translateY(-10px)}
|
|
116
|
+
|
|
117
|
+
.v-slide-up-enter-active,.v-slide-up-leave-active{transition:opacity .24s var(--v-ease,ease),transform .24s var(--v-ease,ease)}
|
|
118
|
+
.v-slide-up-enter-from,.v-slide-up-leave-to{opacity:0;transform:translateY(14px)}
|
|
119
|
+
|
|
120
|
+
.v-slide-right-enter-active,.v-slide-right-leave-active{transition:opacity .24s var(--v-ease,ease),transform .24s var(--v-ease,ease)}
|
|
121
|
+
.v-slide-right-enter-from,.v-slide-right-leave-to{opacity:0;transform:translateX(24px)}
|
|
122
|
+
|
|
123
|
+
.v-blur-enter-active,.v-blur-leave-active{transition:opacity .3s ease,filter .3s ease}
|
|
124
|
+
.v-blur-enter-from,.v-blur-leave-to{opacity:0;filter:blur(8px)}
|
|
125
|
+
|
|
126
|
+
@media (prefers-reduced-motion: reduce){
|
|
127
|
+
[class*="-enter-active"],[class*="-leave-active"]{transition-duration:.01ms !important}
|
|
128
|
+
}
|
|
129
|
+
`;function pi(e){let t=e.name||"v-fade";return{enterFrom:e.enterFrom||`${t}-enter-from`,enterActive:e.enterActive||`${t}-enter-active`,enterTo:e.enterTo||`${t}-enter-to`,leaveFrom:e.leaveFrom||`${t}-leave-from`,leaveActive:e.leaveActive||`${t}-leave-active`,leaveTo:e.leaveTo||`${t}-leave-to`}}function pt(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function mt(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function mi(e){let t=getComputedStyle(e),n=r=>Math.max(0,...r.split(",").map(o=>parseFloat(o)*(o.includes("ms")?1:1e3)||0));return Math.max(n(t.transitionDuration)+n(t.transitionDelay),n(t.animationDuration)+n(t.animationDelay))}function hi(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Nt(e,t={}){Te("transitions",fi);let n=pi(t);return Be.reducedMotion?Promise.resolve():new Promise(r=>{pt(e,n.enterFrom),pt(e,n.enterActive),hi(()=>{var s;mt(e,n.enterFrom),pt(e,n.enterTo);let o=(s=t.duration)!=null?s:mi(e),i=()=>{mt(e,n.enterActive),mt(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Ot(e,t={}){Te("transitions",fi);let n=pi(t);return Be.reducedMotion?Promise.resolve():new Promise(r=>{pt(e,n.leaveFrom),pt(e,n.leaveActive),hi(()=>{var s;mt(e,n.leaveFrom),pt(e,n.leaveTo);let o=(s=t.duration)!=null?s:mi(e),i=()=>{mt(e,n.leaveActive),mt(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function $t(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function Ht(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function bn(e,t=220){return new Promise(n=>{e.style.opacity="0",e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=""),e.style.transition=`opacity ${t}ms ease`,requestAnimationFrame(()=>{e.style.opacity="1"}),setTimeout(()=>{e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function wn(e,t=220){return new Promise(n=>{e.style.transition=`opacity ${t}ms ease`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function gi(e){let t=document;typeof t.startViewTransition=="function"&&!Be.reducedMotion?t.startViewTransition(e):e()}Z();re();function _a(e,t,n){try{let o={t:"assign",op:"=",target:le(e),value:{t:"lit",v:n}};x(o,t)}catch(r){O(r,`assignment in "${e}"`)}}function Ti(e){let t=T.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?q(e.getAttribute(`${t}duration`)):void 0}}A("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Se(n());let r=e.firstChild;r&&r.nodeType===3&&ar(r)})});A("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Po(t),n(()=>{let i=r();for(let s of Array.from(t.children))$(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))j(s,o)})});A("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Ti(e);t(()=>{let s=!!n();if(o){o=!1,e.style.display=s?r:"none";return}if(!i){e.style.display=s?r:"none";return}s?(e.style.display=r,Nt(e,i)):Ot(e,i).then(()=>{e.style.display="none"})})});A("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=T.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(T.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let d of i)cr(d.template),d.template.removeAttribute(`${o}if`),d.template.removeAttribute(`${o}else-if`),d.template.removeAttribute(`${o}else`),ar(d.template);let c=Ti(e),u=-1,l=[],f=()=>{let d=l;if(l=[],!d.length)return;let m=()=>{for(let g of d)$(g),g.remove()};c&&d[0]instanceof HTMLElement?Ot(d[0],c).then(m):m()};r(()=>{let d=-1;for(let h=0;h<i.length;h++){let v=i[h];if(v.expression===null||N(v.expression,t,"v-if")){d=h;break}}if(d===u||(u=d,f(),d===-1))return;let m=i[d].template,g=xi(m,a,t);l=g,c&&g[0]instanceof HTMLElement&&Nt(g[0],c)}),fe(e,f)},{priority:B.IF,terminal:!0});function xi(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let c of a)i.push(c),c.nodeType===1&&(St(c,n),j(c,n))}else{let s=e.cloneNode(!0);i.push(s),St(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),j(s,n))}return i}A("else-if",()=>{},{priority:B.IF,terminal:!0});A("else",()=>{},{priority:B.IF,terminal:!0});var Va=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;A("for",({el:e,scope:t,expression:n,effect:r})=>{var h;let o=Va.exec(n);if(!o){O(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(v=>v.trim()).filter(Boolean),s=o[2],[a,c,u]=i,l=T.prefix,f=e.getAttribute(":key")||e.getAttribute(`${l}bind:key`)||e.getAttribute(`${l}key`),p=document.createComment(T.devtools?` v-for: ${n} `:"");(h=e.parentNode)==null||h.insertBefore(p,e);let d=e.cloneNode(!0);d.removeAttribute(`${l}for`),d.removeAttribute(":key"),d.removeAttribute(`${l}bind:key`),d.removeAttribute(`${l}key`),cr(e);let m=[];fe(p,()=>{for(let v of m)for(let S of v.nodes)$(S),S.remove();m=[]}),r(()=>{var V,M,ee;let v=N(s,t,"v-for"),S=Wa(v,a,c,u),_=new Map;for(let U of m)_.set(U.key,U);let k=[],y=new Set,I={fragment:document.createDocumentFragment(),pending:[]};S.forEach((U,w)=>{let b=f?N(f,t.child(U),":key"):`__index_${w}`;f&&y.has(b)&&go(e,b,n);let R=_.get(b);if(R&&!y.has(b)){y.add(b);for(let[is,ss]of Object.entries(U))R.data[is]=ss;k.push(R);return}let Me=t.reactiveChild(U),Mn=xi(d,p,Me,I);y.add(b),k.push({key:b,scope:Me,nodes:Mn,data:Me.data})}),I.fragment.firstChild&&((V=p.parentNode)==null||V.insertBefore(I.fragment,p));for(let[U,w]of I.pending)j(U,w);let H=new Set(k);for(let U of m)if(!(y.has(U.key)&&H.has(U)))for(let w of U.nodes)$(w),w.remove();let C=p;for(let U=k.length-1;U>=0;U--){let w=k[U],b=w.nodes[w.nodes.length-1];if(b&&b.nextSibling!==C)for(let R of w.nodes)(M=p.parentNode)==null||M.insertBefore(R,C);C=(ee=w.nodes[0])!=null?ee:C}m=k})},{priority:B.FOR,terminal:!0});function Wa(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],c)=>{let u={[t]:a};n&&(u[n]=s),r&&(u[r]=c),o.push(u)}),o)}var za=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Qa=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Ka=/[\s\x00-\x1f]/g;function Ga(e){let t=e.replace(Ka,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function vi(e,t,n,r=!1,o=!1){if(t==="class")return Ei(e,n);if(t==="style")return Ar(e,n);if(T.sanitizeUrls&&!o&&t==="srcdoc"){Ie(`:srcdoc refused in ${ye(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(T.sanitizeUrls&&!r){if(Qa.has(t)&&typeof n=="string"&&Ga(n)){Ie(`value refused in :${t} of ${ye(e)}: "${n.slice(0,60)}" uses a scheme that executes code. Use an http(s) or relative address. To turn off this protection, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(t.length>2&&/^on[a-z]/.test(t)){Ie(`attribute "${t}" refused in ${ye(e)}: linking event by attribute creates an inline handler. Use @${t.slice(2)}="..." instead.`),e.removeAttribute(t);return}}if(r){e[t]=n;return}if(za.has(t)){n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,""),t in e&&(e[t]=!!n);return}if(t==="value"&&"value"in e){e.value=n==null?"":n;return}n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":String(n))}var yi=new WeakMap;function Ei(e,t){let n=yi.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),yi.set(e,n));let r=new Set(n);ki(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function ki(e,t){if(e){if(typeof e=="string"){for(let n of e.split(/\s+/))n&&t.add(n);return}if(Array.isArray(e)){for(let n of e)ki(n,t);return}if(typeof e=="object"){for(let[n,r]of Object.entries(e))if(r)for(let o of n.split(/\s+/))o&&t.add(o)}}}function Ar(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Ar(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}A("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[u,l]of Object.entries(c))vi(e,u,l)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{vi(e,t,o(),s,a)})},{priority:B.BIND});A("class",({el:e,effect:t,evaluate:n})=>{t(()=>Ei(e,n()))});A("style",({el:e,effect:t,evaluate:n})=>{t(()=>Ar(e,n()))});var bi={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Ya=["ctrl","shift","alt","meta"];function wi(e,t,n,r){let o=n.detail,i=n.__voodoo===!0,s=t.child({$event:i?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=le(e),c=x(a,s);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,i?o:n)}catch(a){O(a,`event ${n.type} ("${e}")`)}}var Xa={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Si={hold(e,t,n,r){let o=q(typeof n.duration=="string"&&n.duration||Object.keys(n).find(l=>/^[\d.]+(ms|s)?$/.test(l))||e.getAttribute(`${T.prefix}hold-duration`)||800,800),i=null,s=!1,a=l=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(l)},o)},c=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},u=l=>{s&&(l.preventDefault(),l.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",u,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",u,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(t(new CustomEvent("visible",{detail:c})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])Si[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,c=l=>{a=!0,i=l.clientX,s=l.clientY},u=l=>{if(!a)return;a=!1;let f=l.clientX-i,p=l.clientY-s,d=40;(e==="left"?f<-d&&Math.abs(f)>Math.abs(p):e==="right"?f>d&&Math.abs(f)>Math.abs(p):e==="up"?p<-d&&Math.abs(p)>Math.abs(f):p>d&&Math.abs(p)>Math.abs(f))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:f,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",u),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",u)})};function Ai(e,t,n,r,o,i){var d;let s=(d=Xa[t])!=null?d:t,a=Si[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),wi(n,r,m,e)},o,i);return}let c=o.window?window:o.document||o.outside?document:e,u=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let h of Ya)if(o[h]&&!m[`${h}Key`])return;let g=Object.keys(o).filter(h=>h in bi||/^[a-z0-9]$/.test(h));if(g.length&&!g.some(v=>{let S=bi[v];return S?S.includes(m.key):m.key.toLowerCase()===v}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),wi(n,r,m,e)}},l=o.debounce;l!==void 0&&(u=Fe(u,q(l===!0?250:l,250)));let f=o.throttle;f!==void 0&&(u=vr(u,q(f===!0?250:f,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(s,u,p),i(()=>c.removeEventListener(s,u,p))}A("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&Ai(e,t,n,r,o,i)});var Ja=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Ja)A(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{Ai(t,e,n,r,o,i)});A("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,c=(s.getAttribute("type")||"text").toLowerCase(),u=a==="INPUT"&&c==="checkbox",l=a==="INPUT"&&c==="radio",f=a==="SELECT",p=f&&s.multiple,d=a==="INPUT"&&c==="file",m=c==="number"||c==="range",g=!!r.lazy,h=!!r.number||m,v=!!r.trim,S=r.debounce?q(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${T.prefix}debounce`)?q(e.getAttribute(`${T.prefix}debounce`),250):0,_=g||f||u||l||d?"change":"input",k=()=>{var I,H;let y;if(u){let C=N(t,n,"v-model");if(Array.isArray(C)){let V=s.value,M=[...C],ee=M.indexOf(V);s.checked&&ee===-1?M.push(V):!s.checked&&ee>-1&&M.splice(ee,1),y=M}else y=s.checked}else if(l){if(!s.checked)return;y=s.value}else if(p)y=Array.from(s.selectedOptions).map(C=>C.value);else if(d)y=r.single?(H=(I=s.files)==null?void 0:I[0])!=null?H:null:s.files;else if(y=s.value,v&&typeof y=="string"&&(y=y.trim()),h&&typeof y=="string"){let C=y===""?null:Number(y);y=C===null||Number.isNaN(C)?y:C}_a(t,n,y)};S>0&&(k=Fe(k,S)),s.addEventListener(_,k),i(()=>s.removeEventListener(_,k)),o(()=>{let y=N(t,n,"v-model");if(u){s.checked=Array.isArray(y)?y.includes(s.value):!!y;return}if(l){s.checked=String(y)===s.value;return}if(p){let H=Array.isArray(y)?y.map(String):[];for(let C of Array.from(s.options))C.selected=H.includes(C.value);return}if(d)return;let I=y==null?"":String(y);s.value!==I&&(s.value=I),f&&s.value!==I&&Oe(()=>{s.value!==I&&(s.value=I)})})},{priority:B.MODEL});A("init",({el:e,expression:t,scope:n})=>{ke(()=>{let r=n.child({$el:e}),o=N(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:B.INIT});A("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:B.REF});A("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});A("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${T.prefix}model`),i,s=!0;r(()=>{let a=o?N(o,n,"v-watch"):N(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let c=i;if(i=a,o){let u=n.child({$value:a,$old:c,$el:e}),l=N(t,u,"v-watch");typeof l=="function"&&l.call(n.data,a,c)}})});A("cloak",({el:e})=>{e.removeAttribute(`${T.prefix}cloak`)});A("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Se(r))});A("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){O(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:B.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])A(e,()=>{},{priority:B.TRANSITION});A("data",()=>{},{priority:B.DATA});A("component",()=>{},{priority:B.COMPONENT});Z();re();var Mi=()=>T.prefix;function E(e,t){return Ao(e,`${Mi()}${t}`)}function Mr(e,t){return Ro(e,`${Mi()}${t}`)}function Za(e,t){var s,a,c;let n=E(e,"target"),r=E(e,"loading"),o={},i=E(e,"headers");if(i){let u=N(i,t,"v-headers");u&&typeof u=="object"&&(o=u)}return{target:n?document.querySelector(n):null,swap:E(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:E(e,"loading-class")||"v-loading",disableWhileLoading:Mr(e,"disable-loading"),confirmMessage:E(e,"confirm"),toastSuccess:E(e,"toast-success"),toastError:E(e,"toast-error"),onSuccess:E(e,"on-success"),onError:E(e,"on-error"),onComplete:E(e,"on-complete"),cacheMs:q((s=E(e,"cache"))!=null?s:void 0,0),retry:Number((a=E(e,"retry"))!=null?a:0),timeout:q((c=E(e,"timeout"))!=null?c:void 0,oe.defaults.timeout),storeAs:E(e,"as"),jsonPath:E(e,"json-path"),templateSelector:E(e,"template"),offlineQueue:Mr(e,"offline-queue"),headers:o,redirect:E(e,"redirect"),scrollTo:E(e,"scroll-to")}}function Ri(e,t,n,r){var i,s;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&j(c,r)};switch(n){case"none":return;case"delete":$(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let c=Array.from(a.content.childNodes);$(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let u of Array.from(c.childNodes))u.nodeType===1&&!a.has(u)&&j(u,r);return}case"append":e.insertAdjacentHTML("beforeend",t),o(e.childNodes);return;case"prepend":e.insertAdjacentHTML("afterbegin",t),o(e.childNodes);return;default:{for(let a of Array.from(e.children))$(a);e.innerHTML=t,o(e.childNodes)}}}function Tn(e,t=0){if(e==null)return"";if(typeof e!="object")return Rt(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,c)=>{for(let u of Object.keys(c))a.add(u);return a},new Set)),i=o.map(a=>`<th>${Rt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(c=>`<td>${Tn(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Tn(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${Rt(r)}</dt><dd>${Tn(o,t+1)}</dd>`).join("")}</dl>`:""}function ec(e,t,n,r){let o=document.querySelector(e);if(!o){O(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))$(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let c=o.content.cloneNode(!0),u=Array.from(c.childNodes);r.appendChild(c);let l=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let f of u)f.nodeType===1&&j(f,l)}}var Rr=new WeakMap;async function Dt(e){var f,p,d,m,g;let{el:t,scope:n,method:r}=e,o=Za(t,n),i=ge.has("confirm");if(o.confirmMessage&&!i&&!await tc(o.confirmMessage))return;(f=Rr.get(t))==null||f.abort();let s=new AbortController;Rr.set(t,s);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,u=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let h=c!=null?c:t;"disabled"in h&&(h.disabled=!0)}},l=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let h=c!=null?c:t;"disabled"in h&&(h.disabled=!1)}};u(),ht(t,"voodoo:before-request",{method:r,url:e.url});try{let h=await oe.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:s.signal,offlineQueue:o.offlineQueue}),v=kr(h.data,o.jsonPath);o.storeAs?n.set(o.storeAs,v):o.templateSelector?ec(o.templateSelector,v,n,a):typeof v=="string"?Ri(a,v,o.swap,n):v!=null&&(nc(),Ri(a,Tn(v),o.swap,n)),o.toastSuccess&&Ce.success(o.toastSuccess),o.onSuccess&&Cr(o.onSuccess,n,t,{data:v,response:h}),ht(t,"voodoo:success",{data:v,response:h}),o.scrollTo&&((d=document.querySelector(o.scrollTo))==null||d.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(h){if((h==null?void 0:h.name)==="AbortError")return;let v=h instanceof X?(m=Sr(h))!=null?m:h.message:(g=h==null?void 0:h.message)!=null?g:"Unknown error";o.toastError?Ce.error(o.toastError):o.onError||Ce.error(v),o.onError&&Cr(o.onError,n,t,{error:h,message:v}),ht(t,"voodoo:error",{error:h,message:v}),O(h,`request ${r} ${e.url}`)}finally{l(),Rr.delete(t),o.onComplete&&Cr(o.onComplete,n,t,{}),ht(t,"voodoo:complete",{})}}function ht(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Cr(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=N(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function tc(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Ci=!1;function nc(){Ci||(Ci=!0,Promise.resolve().then(()=>(ut(),ci)).then(({injectStyle:e})=>{e("json-render",`
|
|
130
|
+
.v-json-table{width:100%;border-collapse:collapse;font:14px/1.5 var(--v-font-sans,system-ui,sans-serif)}
|
|
131
|
+
.v-json-table th,.v-json-table td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--v-border,#E6E0F0);vertical-align:top}
|
|
132
|
+
.v-json-table th{font-weight:650;color:var(--v-text-muted,#6B6580);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
|
|
133
|
+
.v-json-list{margin:0;padding-left:18px}
|
|
134
|
+
.v-json-object{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0}
|
|
135
|
+
.v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
|
|
136
|
+
.v-json-object dd{margin:0}
|
|
137
|
+
.v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
|
|
138
|
+
`)}))}function rc(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function oc({el:e,cleanup:t,run:n}){var l,f;let r=E(e,"trigger")||rc(e),[o,...i]=r.split(/[.\s]+/),s=q((l=E(e,"poll"))!=null?l:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(d=>{for(let m of d)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=q((f=E(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=Fe(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var ic=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of ic)A(e,({el:n,scope:r,expression:o,cleanup:i})=>{oc({el:n,scope:r,cleanup:i,run:a=>{let c=It(o,r);if(!c)return;let u=E(n,"body")||E(n,"data-body"),l=u?N(u,r.child({$event:a}),"v-body"):void 0,f=E(n,"params"),p=f?N(f,r,"v-params"):void 0;Dt({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function It(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=N(n,t,"URL");return typeof o=="string"?o:n}A("load",({el:e,scope:t,expression:n})=>{let r=It(n,t);r&&Dt({el:e,scope:t,method:"GET",url:r})});A("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=It(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Dt({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Dt({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});A("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,i=It(n,t),s=E(e,"param")||o.getAttribute("name")||"q",a=q((f=E(e,"debounce"))!=null?f:void 0,300),c=Number((p=E(e,"min-length"))!=null?p:0),u=Fe(()=>{let d=o.value.trim();d.length<c||Dt({el:e,scope:t,method:"GET",url:i,params:{[s]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});A("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),i=E(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=yn(()=>It(s,t),{method:(E(e,"method")||"GET").toUpperCase(),params:()=>E(e,"params")?N(E(e,"params"),t,"v-params"):void 0,cache:q((c=E(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=E(e,"retry"))!=null?u:0),timeout:q((l=E(e,"timeout"))!=null?l:void 0,oe.defaults.timeout),jsonPath:E(e,"json-path"),poll:q((f=E(e,"poll"))!=null?f:void 0,0),manual:Mr(e,"manual"),onSuccess:p=>ht(e,"voodoo:success",{data:p}),onError:(p,d)=>ht(e,"voodoo:error",{error:p,message:d})});t.set(i,a),r(()=>a.stop())},{priority:B.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])A(e,()=>{},{priority:B.TRANSITION});No(Fo);jo(St);Wo(Pi);di();var jt=new Map;function Li(e,t){let n=jt.get(e);return n||jt.set(e,n=new Set),n.add(t),()=>n.delete(t)}function sc(e,t){let n=Li(e,r=>{n(),t(r)});return n}function ac(e,t){let n=jt.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){O(o,`event "${e}"`)}}function cc(e,t){var n;if(!t){jt.delete(e);return}(n=jt.get(e))==null||n.delete(t)}function Pi(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;A(e,i=>{var l,f;let s,a=!1,c=p=>{var d,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(d=i.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?i.expression:i.evaluate();(l=n.created)==null||l.call(n,i.el,c(u)),(f=n.beforeMount)==null||f.call(n,i.el,c(u)),i.effect(()=>{var m,g;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let d=c(p);(g=n.updated)==null||g.call(n,i.el,d),s=p}),i.cleanup(()=>{var d,m;let p=c(s);(d=n.beforeUnmount)==null||d.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:B.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function uc(e){return Object.defineProperties(de.data,Object.getOwnPropertyDescriptors(e)),de.data}var lc="0.4.6",xn={...yr,version:lc,config:T,reactive:F,ref:Tt,shallowRef:Qn,computed:xt,effect:te,watch:ue,watchEffect:Gn,nextTick:Oe,toRaw:K,markRaw:Wn,unref:Kn,stop:Un,effectScope:qn,EffectScope:ne,flushSync:In,data:uc,store:Go,stores:un,removeStore:Yo,storeNames:Xo,scope:de,component:rt,components:z,directive:Pi,directives:ge,magic:P,magics:Et,createApp:zo,start:$o,whenReady:sn,whenElement:an,walk:j,refresh:Do,destroy:$,stopObserving:Ho,getScope:et,findScope:we,addCleanup:fe,parseAttribute:Je,parse:le,tokenize:Xt,evaluate:x,evaluateIn:N,stringify:Se,clearParseCache:so,globals:G,http:oe,request:Lt,HttpError:X,resource:yn,toast:Ce,storage:ie,session:pn,cookie:mn,cache:gn,url:hn,theme:ft,clipboard:Er,screen:se,network:_e,enter:Nt,leave:Ot,fadeIn:bn,fadeOut:wn,slideUp:Ht,slideDown:$t,viewTransition:gi,injectStyle:Te,ensureTokens:Ue,on:Li,once:sc,off:cc,emit:ac,use(e,t){Jt(xn,e,t)},onError(e){jn(e)},instances:rn,Scope:De,PRIORITY:B,VoodooSyntaxError:D,VoodooRuntimeError:W};Ko(xn);Z();var dc=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function Bi(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ae(e){return e.length<2?e:Array.from(new Set(e))}function Ve(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Lr(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function Ui(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function fc(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof pe)return e.toArray();if(typeof e=="string")return We(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=We(e);return t.length?t:typeof document=="undefined"?[]:[document]}function We(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Ui(o))return Lr(o);let i=[];for(let s of fc(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return ae(i)}if(e instanceof pe)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return ae(o)}return[]}function Ni(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Ui(r.trim())?Lr(r):[document.createTextNode(r)]}if(e instanceof pe)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function En(e,t,n){let r=Bi(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!dc.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function pc(e,t){for(let[n,r]of Object.entries(t))En(e,n,r)}function Oi(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function $i(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var qi=new WeakMap;function Hi(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Di(e){e.removeAttribute("hidden");let t=qi.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function Ii(e){let t=e.style.display;t&&t!=="none"&&qi.set(e,t),e.style.display="none"}var ji="input,select,textarea";function Fi(e){return e.matches(ji)?[e]:Array.from(e.querySelectorAll(ji))}function mc(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var kn=new WeakMap;function hc(e){let t=kn.get(e);return t||kn.set(e,t=[]),t}var pe=class e{constructor(t=[]){L(this,"length");L(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(ae(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(ae(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(ae(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(ae(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(ae(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(ae(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(ae(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(ae(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(ae([...this.elements,...We(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))$(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))$(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(s.options))c.selected=a.includes(c.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=Ve(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,c]of Object.entries(i.dataset))s[a]=Oi(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[$i(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=$i(String(n));if(t.length<2){let i=this.elements[0];return i?Oi(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)pc(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Bi(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)En(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)En(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)En(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=Ve(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ve(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ve(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=Ve(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of Ni(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=We(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=We(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Ni(t))r.insertBefore(o,n);$(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=We(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);$(n),n.remove()}}return this}remove(){for(let t of this.elements)$(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))$(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let c of this.elements)for(let u of Ve(t)){let l=f=>{if(!o){i.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||i.call(d,f)};c.addEventListener(u,l,s),hc(c).push({type:u,selector:o,handler:i,wrapped:l,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Ve(t):null;for(let a of this.elements){let c=kn.get(a);if(!c)continue;let u=[];for(let l of c){let f=!s||s.includes(l.type),p=o===null||l.selector===o,d=i===null||l.handler===i;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}kn.set(a,u)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)Di(t);return this}hide(){for(let t of this.elements)Ii(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Hi(n):t)?Di(n):Ii(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),bn(n,t);return this}fadeOut(t=220){for(let n of this.elements)wn(n,t);return this}slideUp(t=240){for(let n of this.elements)Ht(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),$t(n,t);return this}slideToggle(t=240){for(let n of this.elements)Hi(n)?(n.removeAttribute("hidden"),$t(n,t)):Ht(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Fi(t)){if(!mc(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of Fi(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&$(n),j(n,we(n.parentNode));return this}destroy(){for(let t of this.elements)$(t);return this}};function Pr(e,t){if(typeof e=="function"){Nr(e);let n=typeof document!="undefined"?document.documentElement:null;return new pe(n?[n]:[])}return new pe(We(e,t))}function Nr(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Vo(()=>{try{e==null||e()}catch(n){O(n,"V.ready")}t()})})}function _i(e){return new pe(Lr(e))}var Vi=((e,t)=>Pr(e,t));Object.assign(Vi,xn,{query:Pr,ready:Nr,fromHtml:_i,Collection:pe,magic:P});var Or=Vi;re();ut();re();var gc=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,vc=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,yc=/^rgba?\(([^)]+)\)$/i,bc=/^hsla?\(([^)]+)\)$/i;function Wi(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function wc(e,t,n){let r=(e%360+360)%360,o=J(t/100,0,1),i=J(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,u=Math.floor(r/60)%6,l=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function me(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=gc.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=vc.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=yc.exec(t);if(o){let[s,a,c]=Wi(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:J(s,0,255),g:J(a,0,255),b:J(c,0,255)}}let i=bc.exec(t);if(i){let[s,a,c]=Wi(i[1]);return s===void 0||a===void 0||c===void 0?null:wc(s,a,c)}return null}function J(e,t,n){return e<t?t:e>n?n:e}function yt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $r(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Tc(e){let t=yt(e.r),n=yt(e.g),r=yt(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(i),u=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function xc(e){let t=e.l+.3963377774*e.a+.2158037573*e.b,n=e.l-.1055613458*e.a-.0638541728*e.b,r=e.l-.0894841775*e.a-1.291485548*e.b,o=t*t*t,i=n*n*n,s=r*r*r;return{r:$r(4.0767416621*o-3.3077115913*i+.2309699292*s),g:$r(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:$r(-.0041960863*o-.7034186147*i+1.707614701*s)}}function An(e){let t=Tc(e),n=Math.sqrt(t.a*t.a+t.b*t.b),r=Math.atan2(t.b,t.a)*180/Math.PI;return r<0&&(r+=360),{l:t.l,c:n,h:n<1e-5?0:r}}function zi(e){let t=e.h*Math.PI/180;return xc({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function vt(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=zi({l:J(e.l,0,1),c:t,h:e.h});if(o.r>=-.001&&o.r<=1.001&&o.g>=-.001&&o.g<=1.001&&o.b>=-.001&&o.b<=1.001)return{r:Math.round(J(o.r,0,1)*255),g:Math.round(J(o.g,0,1)*255),b:Math.round(J(o.b,0,1)*255)};t*=.92}let n=zi({l:J(e.l,0,1),c:0,h:e.h});return{r:Math.round(J(n.r,0,1)*255),g:Math.round(J(n.g,0,1)*255),b:Math.round(J(n.b,0,1)*255)}}function Hr(e){return J(Math.round(e),0,255).toString(16).padStart(2,"0")}function ze(e){return`#${Hr(e.r)}${Hr(e.g)}${Hr(e.b)}`}function gt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Xi(e){return ze(vt(e))}function Ir(e){return .2126*yt(e.r)+.7152*yt(e.g)+.0722*yt(e.b)}function jr(e,t){let n=typeof e=="string"?me(e):e,r=typeof t=="string"?me(t):t;if(!n||!r)return 1;let o=Ir(n),i=Ir(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var Ji={r:255,g:255,b:255},Rn={r:0,g:0,b:0};function Ft(e){let t=typeof e=="string"?me(e):e;return t?jr(t,Ji)>=jr(t,Rn)?"#ffffff":"#000000":"#ffffff"}var Fr=[50,100,200,300,400,500,600,700,800,900],Zi=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Ec=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],es=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],kc=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function ts(e,t=!1){var a;let n=typeof e=="string"?(a=me(e))!=null?a:Rn:e,r=An(n),o=t?es:Zi,i=t?kc:Ec,s={};return Fr.forEach((c,u)=>{s[String(c)]=Xi({l:o[u],c:r.c*i[u],h:r.h})}),s}var Cn={violeta:{primary:"#6D3BF5",accent:"#FF3D8B",success:"#16A34A",warning:"#D97706",danger:"#E11D48",info:"#7C6BFF"},oceano:{primary:"#0E7BC4",accent:"#0FB5C9",success:"#0F9D6E",warning:"#D08700",danger:"#DC2F3E",info:"#3B82F6"},floresta:{primary:"#1F8A4C",accent:"#7FA80E",success:"#18A05A",warning:"#C97A0A",danger:"#C93A2E",info:"#2C8FA8"},poente:{primary:"#E4632A",accent:"#D62F63",success:"#3E9B52",warning:"#D99000",danger:"#D32F2F",info:"#B45FC0"},grafite:{primary:"#4C5A70",accent:"#2E7FD1",success:"#2F8F60",warning:"#B57A12",danger:"#C2453F",info:"#5B7A99"}},ns=["primary","accent","success","warning","danger","info"],Br="voodoo:palette",Qi="voodoo-palette",Sc="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Ac="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Ki(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Rc=/^([\d.]+)(px|rem|em)$/;function Cc(e){let t=(e||"12px").trim(),n=Rc.exec(t);if(!n)return{"--v-radius":t,"--v-radius-sm":`calc(${t} * 0.6)`,"--v-radius-lg":`calc(${t} * 1.5)`,"--v-radius-xl":`calc(${t} * 2)`,"--v-radius-full":"999px"};let r=parseFloat(n[1]),o=n[2],i=s=>`${Math.round(s*1e3)/1e3}${o}`;return{"--v-radius":i(r),"--v-radius-sm":i(Math.max(r*.55,0)),"--v-radius-lg":i(r*1.5),"--v-radius-xl":i(r*2),"--v-radius-full":"999px"}}function Gi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of ns){let m=(u=me(e[d]))!=null?u:Rn,g=An(m),h=ts(m,t);r[d]=h;for(let M of Fr)n[`--v-${d}-${M}`]=h[String(M)];let v=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,S=t?{l:Math.min(v.l+.07,.94),c:v.c*.95,h:v.h}:{l:Math.max(v.l-.055,.12),c:v.c,h:v.h},_=t?{l:Math.min(v.l+.13,.97),c:v.c*.88,h:v.h}:{l:Math.max(v.l-.105,.1),c:v.c,h:v.h},k=vt(v),y=vt(S),I=vt(_);n[`--v-${d}`]=ze(t?k:m),n[`--v-${d}-hover`]=ze(y),n[`--v-${d}-active`]=ze(I),n[`--v-${d}-contrast`]=Ft(t?k:m),n[`--v-${d}-contrast-hover`]=Ft(y),n[`--v-${d}-contrast-active`]=Ft(I);let H=h[50],C=h[100],V=t?h[800]:h[700];n[`--v-${d}-soft`]=H,n[`--v-${d}-soft-hover`]=C,n[`--v-${d}-soft-text`]=V,n[`--v-${d}-ring`]=gt(k,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let i=(f=me((l=e.neutral)!=null?l:e.primary))!=null?f:Rn,s=An(i).h,a=(d,m)=>Xi({l:d,c:m,h:s}),c={};if(Fr.forEach((d,m)=>{let g=t?es:Zi;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let d=vt({l:.24,c:.028,h:s});n["--v-surface"]=a(1,0),n["--v-surface-2"]=a(.981,.006),n["--v-surface-3"]=a(.955,.009),n["--v-surface-inset"]=a(.968,.008),n["--v-text"]=ze(d),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=gt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${gt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${gt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${gt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Ft((p=me(n["--v-surface"]))!=null?p:Ji),{vars:n,scales:r,contrast:o}}function Dr(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
139
|
+
`);return`${e} {
|
|
140
|
+
${n}
|
|
141
|
+
}`}var Ut=null,Bt=null;function Mc(e){var r,o,i,s,a,c,u,l,f;let t=(r=Cn[e.preset])!=null?r:Cn.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(i=e.accent)!=null?i:t.accent,success:(s=e.success)!=null?s:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(u=e.info)!=null?u:t.info,neutral:(l=e.neutral)!=null?l:t.neutral};for(let p of ns)me(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(f=e.radius)!=null?f:"12px",font:Ki(e.font,Sc),mono:Ki(e.monoFont,Ac)}}function Lc(e){if(typeof document=="undefined"||!T.injectStyles)return;Ue();let t=document.getElementById(Qi);t||(t=document.createElement("style"),t.id=Qi,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function Sn(e={}){let{colors:t,radius:n,font:r,mono:o}=Mc(e),i=Gi(t,!1),s=Gi(t,!0),a={...Cc(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",Dr(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
142
|
+
${Dr(':root:not([data-theme="light"])',s.vars)}
|
|
143
|
+
}`,Dr(':root[data-theme="dark"]',s.vars)].join(`
|
|
144
|
+
`);Lc(c);let u={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:c};if(Ut=u,Bt={...e},e.persist!==!1&&typeof document!="undefined"){let l={...e};delete l.persist,ie.set(Br,l)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:u})),u}var Yi=!1;function Ur(){if(Ut&&Yi)return Ut;Yi=!0;let e=ie.get(Br),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return Sn(t)}function Pc(){Ut||Ur()}function rs(){return Ur()}var Vl=Object.assign(Sn,{presets:Cn,get names(){return Object.keys(Cn)},get current(){return Ut},get options(){return Bt},init:Ur,ensure:Pc,reset(){return ie.remove(Br),Sn({persist:!1})},use(e){return Sn({...Bt!=null?Bt:{},preset:e,primary:void 0,accent:void 0})},scale:ts,contrastText:Ft,contrastRatio:jr,luminance(e){let t=typeof e=="string"?me(e):e;return t?Ir(t):0},convert:{parseColor:me,rgbToOklch:An,oklchToRgb:vt,toHex:ze,toRgba:gt}});function Nc(e){if(window.VOODOO_DEVTOOLS===!0)return!0;for(let t of["devtools","data-devtools"]){if(!e.hasAttribute(t))continue;let n=e.getAttribute(t);return n===null||n===""||n.toLowerCase()!=="false"}return!1}function Oc(){var i;if(typeof document=="undefined")return{manual:!1};let e=(i=document.currentScript)!=null?i:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(T.prefix=n);let r=e.getAttribute("data-base-url");r&&(T.baseURL=r);let o=e.getAttribute("data-locale");return o&&(T.locale=o),Nc(e)&&(T.devtools=!0),e.hasAttribute("data-no-styles")&&(T.injectStyles=!1),e.hasAttribute("data-no-observer")&&(T.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(T.cleanAttributes=!1),{manual:t}}function $c(e){if(typeof e.devtoolsWidget=="function"){e.devtoolsWidget(!0);return}console.info("[Voodoo] devtools requested, but this build does not include the inspector. Use voodoo.full.min.js to get the widget and full devtools panel.")}function os(e){var o;if(typeof window=="undefined")return;let t=Oc(),n=window;if(n.V=e,n.Voodoo=e,G.V=e,G.Voodoo=e,T.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(T.baseURL),t.manual||!T.autoStart)return;sn(()=>{ft.init(),rs(),e.start(),T.devtools&&$c(e)})}os(Or);var Hc=Or;return fs(Dc);})();
|
|
145
|
+
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
146
|
+
//# sourceMappingURL=voodoo.core.min.js.map
|