voodoojs 0.12.4 → 0.13.0
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 +1 -1
- package/dist/{chunk-XGZ7SXD3.js → chunk-2LGAXVD7.js} +4 -4
- package/dist/{chunk-XIMSOXWF.js → chunk-4IJE5BWY.js} +5 -5
- package/dist/{chunk-FAWOJTRM.js → chunk-FMDHZ5GI.js} +139 -9
- package/dist/{chunk-OHISQWSW.js → chunk-GE4JWATC.js} +5 -5
- package/dist/{chunk-2GSZT3CX.js → chunk-H2NGDLMD.js} +363 -76
- package/dist/{chunk-AR6WDY7K.js → chunk-IBIZ6OUI.js} +4 -4
- package/dist/{chunk-7XRFOONN.js → chunk-IJQ2PFXU.js} +3 -3
- package/dist/{chunk-ELIX2DRQ.js → chunk-JBUNTP7F.js} +19 -7
- package/dist/{chunk-NKQGUWVF.js → chunk-MV73OSCS.js} +4 -4
- package/dist/{chunk-3MPIJH5X.js → chunk-OIH4BR2H.js} +6 -6
- package/dist/{chunk-FNTYILLW.js → chunk-TEVCUTTC.js} +3 -3
- package/dist/essential.cjs +508 -74
- package/dist/essential.d.cts +1 -1
- package/dist/essential.d.ts +1 -1
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +7 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +556 -122
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -20
- package/dist/reactivity.cjs +138 -5
- package/dist/reactivity.d.cts +32 -1
- package/dist/reactivity.d.ts +32 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +115 -5
- package/dist/socket.d.cts +1 -1
- package/dist/socket.d.ts +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-E22XVZ33.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +572 -72
- package/dist/voodoo.core.min.js +17 -17
- package/dist/voodoo.full.js +621 -121
- package/dist/voodoo.full.min.js +62 -62
- package/dist/voodoo.js +575 -75
- package/dist/voodoo.min.js +26 -26
- package/package.json +1 -1
- package/dist/style-DA6RFLKO.js +0 -5
- package/dist/{query-XooOh4vB.d.cts → query-D_BGQw8m.d.cts} +28 -28
- package/dist/{query-DzHfm8Kg.d.ts → query-Dl6Urlwd.d.ts} +28 -28
package/dist/voodoo.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.13.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Voodoo=(()=>{var rr=Object.defineProperty;var ou=Object.getOwnPropertyDescriptor;var iu=Object.getOwnPropertyNames;var su=Object.prototype.hasOwnProperty;var au=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ko=(e,t)=>()=>(e&&(t=e(e=0)),t);var or=(e,t)=>{for(var n in t)rr(e,n,{get:t[n],enumerable:!0})},lu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iu(t))!su.call(e,o)&&o!==n&&rr(e,o,{get:()=>t[o],enumerable:!(r=ou(t,o))||r.enumerable});return e};var cu=e=>lu(rr({},"__esModule",{value:!0}),e);var S=(e,t,n)=>au(e,typeof t!="symbol"?t+"":t,n);var qs={};or(qs,{EffectScope:()=>Re,ITERATE_KEY:()=>vt,ReactiveEffect:()=>zt,TriggerType:()=>$s,computed:()=>wt,effect:()=>ve,effectScope:()=>Oo,enableTracking:()=>Fs,flushSync:()=>Ho,getActiveEffect:()=>du,getActiveScope:()=>pu,handleError:()=>q,hasChanged:()=>Ln,isReactive:()=>Io,isRef:()=>ht,markRaw:()=>kn,nextTick:()=>bt,pauseTracking:()=>Os,queueJob:()=>cr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>Te,resetTracking:()=>No,setErrorHandler:()=>Do,shallowRef:()=>jo,stop:()=>Ut,toRaw:()=>ie,track:()=>Ie,trigger:()=>Ke,unref:()=>Bo,warn:()=>Y,watch:()=>he,watchEffect:()=>qo});function bt(e){let t=ar||Co;return e?t.then(e):t}function cr(e){e.queued||(e.queued=!0,Bt.push(e),Ns())}function fe(e){ir.push(e),Ns()}function Ns(){sr||Tn||(Tn=!0,ar=Co.then(Ro))}function Ro(){Tn=!1,sr=!0;let e=new Map;try{for(let t=0;t<Bt.length;t++){let n=Bt[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>uu){Y("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){q(o,"effect")}}}finally{for(let n of Bt)n.queued=!1;Bt=[],sr=!1;let t=ir;ir=[];for(let n of t)try{n()}catch(r){q(r,"post-flush")}Bt.length||ir.length?(ar=Co.then(Ro),Tn=!0):ar=null}}function Ho(){sr||(Tn=!1,Ro())}function Do(e){Lo=e}function q(e,t){if(Lo){Lo(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Os(){Po.push(yt),yt=!1}function Fs(){Po.push(yt),yt=!0}function No(){var e;yt=(e=Po.pop())!=null?e:!0}function du(){return ge}function Rs(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function ve(e,t){let n=new zt(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Ut(e){e instanceof zt?e.stop():e.effect.stop()}function Oo(e=!1){return new Re(e)}function pu(){return nt}function Ie(e,t){if(!yt||!ge)return;let n=Ao.get(e);n||Ao.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function Ke(e,t,n,r){let o=Ao.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==ge||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?So(n)&&s(o.get("length")):s(o.get(vt));else if(t==="delete")a||s(o.get(vt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():cr(a)}function So(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function rt(e){return e!==null&&typeof e=="object"}function gu(e){if(!rt(e)||e[Is]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return mu.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function kn(e){return Object.defineProperty(e,Is,{value:!0,enumerable:!1,configurable:!0}),e}function ie(e){let t=e&&e[Fo];return t?ie(t):e}function Io(e){return!!(e&&e[$o])}function V(e){if(!rt(e)||Io(e)||!gu(e))return e;let t=Hs.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?hu:vu);return Hs.set(e,r),r}function Ln(e,t){return!Object.is(e,t)}function ht(e){return!!(e&&e.__v_isRef===!0)}function Ps(e){return rt(e)?V(e):e}function js(e){!yt||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Bs(e){for(let t of[...e.dep])t.scheduler?t.scheduler():cr(t)}function Te(e){return new lr(e)}function jo(e){return new lr(e,!0)}function Bo(e){return ht(e)?e.value:e}function wt(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Mo(n,r)}function he(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(ht(e)?s=()=>e.value:typeof e=="function"?s=e:Io(e)?s=()=>qt(e):s=()=>e,o){let p=s;s=()=>qt(p())}let a,l,c=p=>{l=p},u=()=>{if(!f.effect.active)return;let p=f();(o||Ln(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?ve(s,{lazy:!0,scheduler:()=>fe(u)}):ve(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>cr(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function qo(e){let t,n=o=>{t=o},r=ve(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function qt(e,t=new Set){if(!rt(e)||t.has(e))return e;if(t.add(e),ht(e))qt(e.value,t);else if(Array.isArray(e))for(let n of e)qt(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>qt(n,t));else for(let n of Object.keys(e))qt(e[n],t);return e}var Co,Bt,ir,sr,Tn,ar,uu,Lo,ge,yt,Po,fu,zt,nt,Re,vt,Ao,$s,Fo,$o,Is,Hs,Ds,mu,vu,hu,lr,Mo,X=ko(()=>{"use strict";Co=Promise.resolve(),Bt=[],ir=[],sr=!1,Tn=!1,ar=null,uu=100;Lo=null;yt=!0,Po=[];fu=0,zt=class{constructor(t,n){var o;this.fn=t,this.id=fu++,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:nt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Fs(),Rs(this),this.fn()}finally{No(),ge=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){q(r,"effect cleanup")}}stop(){var t;this.active&&(Rs(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Re=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&nt&&(this.parent=nt,nt.children.push(this))}run(t){if(!this.active)return;let n=nt;try{return nt=this,t()}finally{nt=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){q(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)}}}};vt=Symbol("voodoo:iterate"),Ao=new WeakMap;$s=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))($s||{});Fo=Symbol("voodoo:raw"),$o=Symbol("voodoo:isReactive"),Is=Symbol("voodoo:skip"),Hs=new WeakMap,Ds=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=ie(this);for(let i=0;i<r.length;i++)Ie(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(ie)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){Os();try{return ie(this)[t].apply(this,n)}finally{No()}};return e})();mu=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);vu={get(e,t,n){if(t===Fo)return e;if(t===$o)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Ds,t))return Reflect.get(Ds,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Ie(e,t),ht(o)?r&&So(t)?o:o.value:rt(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=ie(n),!Array.isArray(e)&&ht(o)&&!ht(n))return o.value=n,!0;let i=Array.isArray(e)&&So(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===ie(r)&&(i?Ln(n,o)&&Ke(e,"set",t,n):Ke(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ke(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Ie(e,t),n},ownKeys(e){return Ie(e,Array.isArray(e)?"length":vt),Reflect.ownKeys(e)}},hu={get(e,t,n){if(t===Fo)return e;if(t===$o)return!0;let r=e;if(t==="size")return Ie(r,vt),Reflect.get(r,"size",r);let o={get(s){Ie(r,s);let a=r.get(s);return rt(a)?V(a):a},has(s){return Ie(r,s),r.has(s)},add(s){s=ie(s);let a=r.has(s);return r.add(s),a||Ke(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,ie(a)),l?Ln(a,c)&&Ke(r,"set",s,a):Ke(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&Ke(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&Ke(r,"clear"),a},forEach(s,a){return Ie(r,vt),r.forEach((l,c)=>{s.call(a,rt(l)?V(l):l,rt(c)?V(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Ie(r,vt);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}};lr=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=ie(t),this._value=n?t:Ps(t)}get value(){return js(this),this._value}set value(t){let n=ie(t);Ln(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Ps(t),Bs(this))}};Mo=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new zt(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Bs(this))}})}get value(){return js(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;Ge.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Et(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function pr(e,t,n){na.has(t)||(na.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,Ge,P,ce,na,ee=ko(()=>{"use strict";E={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},Ge=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};ce=new Map;na=new Set});var Ga={};or(Ga,{BASE_TOKENS:()=>Qa,ensureTokens:()=>se,injectStyle:()=>Q});function Q(e,t){if(typeof document=="undefined"||!E.injectStyles||Ya.has(e))return;Ya.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function se(){Q("tokens",Qa)}var Ya,Qa,Ee=ko(()=>{"use strict";ee();Ya=new Set;Qa=`
|
|
6
|
+
"use strict";var Voodoo=(()=>{var Sr=Object.defineProperty;var qu=Object.getOwnPropertyDescriptor;var zu=Object.getOwnPropertyNames;var Uu=Object.prototype.hasOwnProperty;var Vu=(e,t,n)=>t in e?Sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xo=(e,t)=>()=>(e&&(t=e(e=0)),t);var Mr=(e,t)=>{for(var n in t)Sr(e,n,{get:t[n],enumerable:!0})},_u=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zu(t))!Uu.call(e,o)&&o!==n&&Sr(e,o,{get:()=>t[o],enumerable:!(r=qu(t,o))||r.enumerable});return e};var Wu=e=>_u(Sr({},"__esModule",{value:!0}),e);var A=(e,t,n)=>Vu(e,typeof t!="symbol"?t+"":t,n);var wa={};Mr(wa,{ArrayOp:()=>ai,EffectScope:()=>Ye,ITERATE_KEY:()=>Ke,ReactiveEffect:()=>ln,TriggerType:()=>va,arrayVersion:()=>li,computed:()=>It,effect:()=>He,effectScope:()=>si,enableTracking:()=>ga,flushSync:()=>ni,getActiveEffect:()=>Yu,getActiveScope:()=>Gu,handleError:()=>Q,hasChanged:()=>dn,isReactive:()=>fi,isRef:()=>Ot,markRaw:()=>Yn,mutationsSince:()=>ci,nextTick:()=>$t,pauseTracking:()=>ma,queueJob:()=>Kn,queuePostFlush:()=>Me,reactive:()=>ee,ref:()=>Be,resetTracking:()=>ii,setErrorHandler:()=>ri,shallowRef:()=>pi,stop:()=>un,toRaw:()=>se,track:()=>Oe,trigger:()=>dt,unref:()=>mi,warn:()=>oe,watch:()=>Pe,watchEffect:()=>gi});function $t(e){let t=Hr||ei;return e?t.then(e):t}function Kn(e){e.queued||(e.queued=!0,sn.push(e),pa())}function Me(e){Cr.push(e),pa()}function pa(){Rr||Wn||(Wn=!0,Hr=ei.then(ti))}function ti(){Wn=!1,Rr=!0;let e=new Map;try{for(let t=0;t<sn.length;t++){let n=sn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Ku){oe("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){Q(o,"effect")}}}finally{for(let n of sn)n.queued=!1;sn=[],Rr=!1;let t=Cr;Cr=[];for(let n of t)try{n()}catch(r){Q(r,"post-flush")}sn.length||Cr.length?(Hr=ei.then(ti),Wn=!0):Hr=null}}function ni(){Rr||(Wn=!1,ti())}function ri(e){Jo=e}function Q(e,t){if(Jo){Jo(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function oe(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function ma(){oi.push(Ft),Ft=!1}function ga(){oi.push(Ft),Ft=!0}function ii(){var e;Ft=(e=oi.pop())!=null?e:!0}function Yu(){return Se}function aa(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function He(e,t){let n=new ln(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function un(e){e instanceof ln?e.stop():e.effect.stop()}function si(e=!1){return new Ye(e)}function Gu(){return xt}function Oe(e,t){if(!Ft||!Se)return;let n=Pr.get(e);n||Pr.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Se)||(r.add(Se),Se.deps.push(r))}function dt(e,t,n,r){let o=Pr.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Se||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?cn(n)&&s(o.get("length")):s(o.get(Ke));else if(t==="delete")s(o.get(Ke));else if(a&&cn(n))s(o.get(Ke));else if(a&&n==="length"){let l=Number(r);o.forEach((c,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():Kn(a)}function Xu(e,t){let n=Pr.get(e);if(!n)return;let r=new Set,o=i=>{if(i)for(let s of i)s!==Se&&r.add(s)};o(n.get("length")),o(n.get(Ke)),t>=0&&n.forEach((i,s)=>{typeof s=="string"&&cn(s)&&Number(s)>=t&&o(i)});for(let i of r)i.scheduler?i.scheduler():Kn(i)}function je(e,t,n,r,o){let i=Dr.get(e);if(i||Dr.set(e,i={version:0,ops:[]}),i.version++,t===3){i.ops.length=0;return}i.ops.push({type:t,index:n,removed:r,added:o}),i.ops.length>Ju&&i.ops.shift()}function li(e){let t=Dr.get(e);return t?t.version:0}function ci(e,t){let n=Dr.get(e);if(!n)return t===0?la:null;if(t>n.version)return null;let r=n.version-t;return r===0?la:r>n.ops.length?null:n.ops.slice(n.ops.length-r)}function cn(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function nt(e){return e!==null&&typeof e=="object"}function da(e,t){let n=Math.trunc(Number(e))||0;return n<0?Math.max(t+n,0):Math.min(n,t)}function ed(e){if(!nt(e)||e[ha]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Zu.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function td(e,t,n,r,o,i){if(t==="length"){let a=e.length;a<n?je(e,1,a,n-a,0):a>n&&je(e,3,0,0,0);return}if(!cn(t))return;let s=Number(t);r?dn(i,o)&&je(e,2,s,1,1):s===n?je(e,1,s,0,1):je(e,3,0,0,0)}function Yn(e){return Object.defineProperty(e,ha,{value:!0,enumerable:!1,configurable:!0}),e}function se(e){let t=e&&e[ui];return t?se(t):e}function fi(e){return!!(e&&e[di])}function ee(e){if(!nt(e)||fi(e)||!ed(e))return e;let t=ca.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?rd:nd);return ca.set(e,r),r}function dn(e,t){return!Object.is(e,t)}function Ot(e){return!!(e&&e.__v_isRef===!0)}function fa(e){return nt(e)?ee(e):e}function ya(e){!Ft||!Se||e.dep.has(Se)||(e.dep.add(Se),Se.deps.push(e.dep))}function ba(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Kn(t)}function Be(e){return new Nr(e)}function pi(e){return new Nr(e,!0)}function mi(e){return Ot(e)?e.value:e}function It(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Zo(n,r)}function Pe(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(Ot(e)?s=()=>e.value:typeof e=="function"?s=e:fi(e)?s=()=>an(e):s=()=>e,o){let p=s;s=()=>an(p())}let a,l,c=p=>{l=p},u=()=>{if(!f.effect.active)return;let p=f();(o||dn(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?He(s,{lazy:!0,scheduler:()=>Me(u)}):He(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>Me(u):()=>Kn(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function gi(e){let t,n=o=>{t=o},r=He(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function an(e,t=new Set){if(!nt(e)||t.has(e))return e;if(t.add(e),Ot(e))an(e.value,t);else if(Array.isArray(e))for(let n of e)an(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>an(n,t));else for(let n of Object.keys(e))an(e[n],t);return e}var ei,sn,Cr,Rr,Wn,Hr,Ku,Jo,Se,Ft,oi,Qu,ln,xt,Ye,Ke,Pr,va,ai,Ju,Dr,la,ui,di,ha,ca,ua,Zu,nd,rd,Nr,Zo,le=Xo(()=>{"use strict";ei=Promise.resolve(),sn=[],Cr=[],Rr=!1,Wn=!1,Hr=null,Ku=100;Jo=null;Ft=!0,oi=[];Qu=0,ln=class{constructor(t,n){var o;this.fn=t,this.id=Qu++,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:xt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Se;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Se,Se=this,ga(),aa(this),this.fn()}finally{ii(),Se=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){Q(r,"effect cleanup")}}stop(){var t;this.active&&(aa(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Ye=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&xt&&(this.parent=xt,xt.children.push(this))}run(t){if(!this.active)return;let n=xt;try{return xt=this,t()}finally{xt=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){Q(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)}}}};Ke=Symbol("voodoo:iterate"),Pr=new WeakMap;va=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(va||{});ai=(r=>(r[r.SPLICE=1]="SPLICE",r[r.SET=2]="SET",r[r.RESET=3]="RESET",r))(ai||{}),Ju=32,Dr=new WeakMap;la=[];ui=Symbol("voodoo:raw"),di=Symbol("voodoo:isReactive"),ha=Symbol("voodoo:skip"),ca=new WeakMap,ua=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=se(this);for(let i=0;i<r.length;i++)Oe(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(se)):o};for(let t of["push","pop","shift","unshift","splice","reverse","sort"])e[t]=function(...n){let r=se(this),o=r.length;for(let l=0;l<n.length;l++)n[l]=se(n[l]);ma();let i;try{i=r[t].apply(r,n)}finally{ii()}let s=r.length,a=-1;if(t==="push")n.length&&(je(r,1,o,0,n.length),a=o);else if(t==="unshift")n.length&&(je(r,1,0,0,n.length),a=0);else if(t==="pop")o>0&&(je(r,1,s,1,0),a=s);else if(t==="shift")o>0&&(je(r,1,0,1,0),a=0);else if(t==="splice"){let l=i.length,c=n.length>2?n.length-2:0;(l||c)&&(je(r,1,da(n[0],o),l,c),a=da(n[0],o))}else o>1&&(je(r,3,0,o,s),a=0);if(a>=0&&Xu(r,a),t==="pop"||t==="shift")return nt(i)?ee(i):i;if(t==="splice"){let l=i;for(let c=0;c<l.length;c++)nt(l[c])&&(l[c]=ee(l[c]));return l}return t==="reverse"||t==="sort"?this:i};return e})();Zu=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);nd={get(e,t,n){if(t===ui)return e;if(t===di)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(ua,t))return Reflect.get(ua,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Oe(e,t),Ot(o)?r&&cn(t)?o:o.value:nt(o)?ee(o):o)},set(e,t,n,r){let o=e[t];if(n=se(n),!Array.isArray(e)&&Ot(o)&&!Ot(n))return o.value=n,!0;let i=Array.isArray(e)&&cn(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Array.isArray(e),a=s?e.length:0,l=Reflect.set(e,t,n,r);return e===se(r)&&(s&&td(e,t,a,i,o,n),i?dn(n,o)&&dt(e,"set",t,n):dt(e,"add",t,n)),l},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&(Array.isArray(e)&&je(e,3,0,0,0),dt(e,"delete",t)),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Oe(e,t),n},ownKeys(e){return Oe(e,Array.isArray(e)?"length":Ke),Reflect.ownKeys(e)}},rd={get(e,t,n){if(t===ui)return e;if(t===di)return!0;let r=e;if(t==="size")return Oe(r,Ke),Reflect.get(r,"size",r);let o={get(s){Oe(r,s);let a=r.get(s);return nt(a)?ee(a):a},has(s){return Oe(r,s),r.has(s)},add(s){s=se(s);let a=r.has(s);return r.add(s),a||dt(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,se(a)),l?dn(a,c)&&dt(r,"set",s,a):dt(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&dt(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&dt(r,"clear"),a},forEach(s,a){return Oe(r,Ke),r.forEach((l,c)=>{s.call(a,nt(l)?ee(l):l,nt(c)?ee(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Oe(r,Ke);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}};Nr=class{constructor(t,n=!1){A(this,"shallow",n);A(this,"__v_isRef",!0);A(this,"_value");A(this,"_rawValue");A(this,"dep",new Set);this._rawValue=se(t),this._value=n?t:fa(t)}get value(){return ya(this),this._value}set value(t){let n=se(t);dn(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:fa(t),ba(this))}};Zo=class{constructor(t,n){A(this,"setter",n);A(this,"__v_isRef",!0);A(this,"_value");A(this,"_dirty",!0);A(this,"effect");A(this,"dep",new Set);this.effect=new ln(t,{scheduler:()=>{this._dirty||(this._dirty=!0,ba(this))}})}get value(){return ya(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):oe("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function w(e,t,n={}){var r,o;mt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:B.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function jt(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function Ir(e,t,n){Oa.has(t)||(Oa.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var x,mt,B,Te,Oa,de=Xo(()=>{"use strict";x={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},mt=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};Te=new Map;Oa=new Set});var Cl={};Mr(Cl,{BASE_TOKENS:()=>Ml,ensureTokens:()=>ye,injectStyle:()=>ie});function ie(e,t){if(typeof document=="undefined"||!x.injectStyles||Sl.has(e))return;Sl.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function ye(){ie("tokens",Ml)}var Sl,Ml,$e=Xo(()=>{"use strict";de();Sl=new Set;Ml=`
|
|
7
7
|
:root{
|
|
8
8
|
--v-primary:#6D3BF5;
|
|
9
9
|
--v-primary-hover:#5A2FD8;
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
--v-shadow:0 10px 30px rgba(0,0,0,.45);
|
|
48
48
|
}
|
|
49
49
|
[v-cloak]{display:none !important}
|
|
50
|
-
`});var
|
|
50
|
+
`});var eg={};Mr(eg,{default:()=>Zm});le();var G=class extends Error{constructor(n,r,o){let i=`${r}
|
|
51
51
|
${" ".repeat(Math.max(0,o))}^`;super(`${n}
|
|
52
52
|
|
|
53
|
-
${i}`);
|
|
54
|
-
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function
|
|
53
|
+
${i}`);A(this,"source",r);A(this,"position",o);this.name="VoodooSyntaxError"}},od=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],id=/[A-Za-z_$À-]/,sd=/[A-Za-z0-9_$À-]/;function ad(e){return id.test(e)}function ld(e){return sd.test(e)}function Or(e){return e>="0"&&e<="9"}var Ea={n:`
|
|
54
|
+
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function Fr(e){var o,i;let t=[],n=0,r=e.length;for(;n<r;){let s=e[n];if(s===" "||s===" "||s===`
|
|
55
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 c=e.indexOf("*/",n+2);if(c===-1)throw new z("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(ur(s)||s==="."&&ur(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(c="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&ur(e[n]);)c+=e[n++]}let u=Number(c.replace(/_/g,""));if(Number.isNaN(u))throw new z("Invalid number",e,a);t.push({type:"num",value:c,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new z("Unclosed Unicode escape",e,a);let f=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new z(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new z("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new z("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=3}else c+=(o=zs[u])!=null?o:u,n++}else c+=e[n++];if(n>=r)throw new z("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];d+=(i=zs[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(d),d="",n+=2;let f=1,p="";for(;n<r;){let m=e[n];if(m==="{")f++;else if(m==="}"){if(f--,f===0)break}else if(m==='"'||m==="'"||m==="`"){let v=m;for(p+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new z("Unclosed template interpolation",e,a);n++,u.push(p);continue}d+=e[n++]}if(n>=r)throw new z("Unclosed template literal",e,a);n++,c.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:u},start:a,end:n});continue}if(Eu(s)){let c="";for(;n<r&&xu(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of yu)if(e.startsWith(c,n)){if(c==="?."&&ur(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new z(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Us={"??":1,"||":2,"&&":3,"|":4,"^":5,"&":6,"==":7,"!=":7,"===":7,"!==":7,"<":8,">":8,"<=":8,">=":8,in:8,instanceof:8,"<<":9,">>":9,">>>":9,"+":10,"-":10,"*":11,"/":11,"%":11,"**":12},Tu=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),ku=new Set(["!","-","+","~","typeof","void","delete"]),_s=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Vs=1200,Ws=32,zo=0,Uo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(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 z(`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==="return")return this.next(),this.isPunct(";")||this.isPunct(",")||this.isPunct("}")||this.peek().type==="eof"?{t:"return",a:null}:{t:"return",a:this.parseExpression()};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>Vs){let t=this.peek();throw new z(`Expression too deeply nested (limit of ${Vs} 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:[{kind:"id",name: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"&&Tu.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new z("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;try{i=this.parseParamList()}catch(s){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}parseParamList(){let t=[];for(;!this.isPunct(")")&&(t.push(this.parseParam()),this.isPunct(","));)this.next();return this.expect(")"),t}parseParam(){if(this.isPunct("...")){this.next();let n=this.next();if(n.type!=="ident")throw new z("Expected a name after ...",this.source,n.start);return{kind:"rest",name:n.value}}let t;if(this.isPunct("{")){this.next();let n=[],r;for(;!this.isPunct("}");){if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new z("Expected a name after ...",this.source,o.start);r=o.value}else{let o=this.next();if(o.type!=="ident"&&o.type!=="str")throw new z("Expected a property name",this.source,o.start);let i=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),i.def=this.parseAssignment()),n.push({key:String(o.value),value:i})}if(this.isPunct(","))this.next();else break}this.expect("}"),t={kind:"obj",props:n,rest:r}}else if(this.isPunct("[")){this.next();let n=[],r;for(;!this.isPunct("]");){if(this.isPunct(",")){this.next(),n.push(null);continue}if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new z("Expected a name after ...",this.source,o.start);r=o.value}else n.push(this.parseParam());if(this.isPunct(","))this.next();else break}this.expect("]"),t={kind:"arr",elements:n,rest:r}}else{let n=this.next();if(n.type!=="ident")throw new z("Expected a parameter name",this.source,n.start);t={kind:"id",name:n.value}}return this.isPunct("=")&&(this.next(),t.def=this.parseAssignment()),t}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 Us||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Us[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")&&ku.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}parseNew(){this.next();let t=this.parseMemberOnly(this.parsePrimary()),n=this.isPunct("(")?this.parseArguments():[];return{t:"new",callee:t,args:n}}parseMemberOnly(t){let n=t;for(;;)if(this.isPunct(".")){this.next();let r=this.next();if(r.type!=="ident")throw new z("Invalid property name",this.source,r.start);n={t:"member",o:n,p:{t:"lit",v:r.value},computed:!1,opt:!1}}else if(this.isPunct("[")){this.next();let r=this.parseExpression();this.expect("]"),n={t:"member",o:n,p:r,computed:!0,opt:!1}}else return n}parseCallMember(){let t=this.isIdent("new")?this.parseNew():this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new z("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 z("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")return this.next(),this.peek().type==="ident"&&this.next(),this.expect("("),{t:"arrow",params:this.parseParamList(),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(zo>=Ws)throw new z(`Template literal too deeply nested (limit of ${Ws} levels)`,this.source,t.start);zo++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>He(r))}}finally{zo--}}if(t.type==="ident")return t.value in _s?(this.next(),{t:"lit",v:_s[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=[this.parseExpression()];for(;this.isPunct(",");){if(this.next(),this.isPunct(")")){let r=this.peek();throw new z("Trailing comma in a group",this.source,r.start)}n.push(this.parseExpression())}return this.expect(")"),n.length===1?n[0]:{t:"seq",body:n}}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new z(`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 z("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=this.parseParamList();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}}},_t=new Map,Ks=2e3;function He(e){let t=_t.get(e);if(t)return t;let n=new Uo(dr(e),e).parseProgram();return _t.size>=Ks&&Lu(),_t.set(e,n),n}function Lu(){let e=Math.floor(Ks/2),t=0;for(let n of _t.keys())if(_t.delete(n),++t>=e)break}function Ys(){_t.clear()}var ea,Au=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(ea=Object.hasOwn)!=null?ea:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Su=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"]);function Qs(e){return function(t,n,...r){if(typeof t!="function")throw new J(`${e} needs a function. Passing a string would compile it, which this library never does.`);let o=globalThis[e];return o(t,n,...r)}}function fr(e){return function(...t){let n=globalThis[e];return n(...t)}}var pe={Math,JSON,Date,Number,String,Boolean,Array,Object:Au,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:Qs("setTimeout"),setInterval:Qs("setInterval"),clearTimeout:fr("clearTimeout"),clearInterval:fr("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:fr("requestAnimationFrame"),cancelAnimationFrame:fr("cancelAnimationFrame")}:{}},J=class extends Error{constructor(n,r){super(r?`${n}
|
|
56
|
+
`;)n++;continue}if(s==="/"&&e[n+1]==="*"){let c=e.indexOf("*/",n+2);if(c===-1)throw new G("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(Or(s)||s==="."&&Or(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(c="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&Or(e[n]);)c+=e[n++]}let u=Number(c.replace(/_/g,""));if(Number.isNaN(u))throw new G("Invalid number",e,a);t.push({type:"num",value:c,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new G("Unclosed Unicode escape",e,a);let f=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new G(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new G("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new G("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=3}else c+=(o=Ea[u])!=null?o:u,n++}else c+=e[n++];if(n>=r)throw new G("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];d+=(i=Ea[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(d),d="",n+=2;let f=1,p="";for(;n<r;){let m=e[n];if(m==="{")f++;else if(m==="}"){if(f--,f===0)break}else if(m==='"'||m==="'"||m==="`"){let v=m;for(p+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new G("Unclosed template interpolation",e,a);n++,u.push(p);continue}d+=e[n++]}if(n>=r)throw new G("Unclosed template literal",e,a);n++,c.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:u},start:a,end:n});continue}if(ad(s)){let c="";for(;n<r&&ld(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of od)if(e.startsWith(c,n)){if(c==="?."&&Or(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new G(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var xa={"??":1,"||":2,"&&":3,"|":4,"^":5,"&":6,"==":7,"!=":7,"===":7,"!==":7,"<":8,">":8,"<=":8,">=":8,in:8,instanceof:8,"<<":9,">>":9,">>>":9,"+":10,"-":10,"*":11,"/":11,"%":11,"**":12},cd=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),ud=new Set(["!","-","+","~","typeof","void","delete"]),Ta=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),ka=1200,La=32,vi=0,hi=class{constructor(t,n){A(this,"tokens",t);A(this,"source",n);A(this,"pos",0);A(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 G(`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==="return")return this.next(),this.isPunct(";")||this.isPunct(",")||this.isPunct("}")||this.peek().type==="eof"?{t:"return",a:null}:{t:"return",a:this.parseExpression()};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>ka){let t=this.peek();throw new G(`Expression too deeply nested (limit of ${ka} 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:[{kind:"id",name: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"&&cd.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new G("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;try{i=this.parseParamList()}catch(s){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}parseParamList(){let t=[];for(;!this.isPunct(")")&&(t.push(this.parseParam()),this.isPunct(","));)this.next();return this.expect(")"),t}parseParam(){if(this.isPunct("...")){this.next();let n=this.next();if(n.type!=="ident")throw new G("Expected a name after ...",this.source,n.start);return{kind:"rest",name:n.value}}let t;if(this.isPunct("{")){this.next();let n=[],r;for(;!this.isPunct("}");){if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new G("Expected a name after ...",this.source,o.start);r=o.value}else{let o=this.next();if(o.type!=="ident"&&o.type!=="str")throw new G("Expected a property name",this.source,o.start);let i=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),i.def=this.parseAssignment()),n.push({key:String(o.value),value:i})}if(this.isPunct(","))this.next();else break}this.expect("}"),t={kind:"obj",props:n,rest:r}}else if(this.isPunct("[")){this.next();let n=[],r;for(;!this.isPunct("]");){if(this.isPunct(",")){this.next(),n.push(null);continue}if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new G("Expected a name after ...",this.source,o.start);r=o.value}else n.push(this.parseParam());if(this.isPunct(","))this.next();else break}this.expect("]"),t={kind:"arr",elements:n,rest:r}}else{let n=this.next();if(n.type!=="ident")throw new G("Expected a parameter name",this.source,n.start);t={kind:"id",name:n.value}}return this.isPunct("=")&&(this.next(),t.def=this.parseAssignment()),t}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 xa||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=xa[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")&&ud.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}parseNew(){this.next();let t=this.parseMemberOnly(this.parsePrimary()),n=this.isPunct("(")?this.parseArguments():[];return{t:"new",callee:t,args:n}}parseMemberOnly(t){let n=t;for(;;)if(this.isPunct(".")){this.next();let r=this.next();if(r.type!=="ident")throw new G("Invalid property name",this.source,r.start);n={t:"member",o:n,p:{t:"lit",v:r.value},computed:!1,opt:!1}}else if(this.isPunct("[")){this.next();let r=this.parseExpression();this.expect("]"),n={t:"member",o:n,p:r,computed:!0,opt:!1}}else return n}parseCallMember(){let t=this.isIdent("new")?this.parseNew():this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new G("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 G("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")return this.next(),this.peek().type==="ident"&&this.next(),this.expect("("),{t:"arrow",params:this.parseParamList(),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(vi>=La)throw new G(`Template literal too deeply nested (limit of ${La} levels)`,this.source,t.start);vi++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>Qe(r))}}finally{vi--}}if(t.type==="ident")return t.value in Ta?(this.next(),{t:"lit",v:Ta[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=[this.parseExpression()];for(;this.isPunct(",");){if(this.next(),this.isPunct(")")){let r=this.peek();throw new G("Trailing comma in a group",this.source,r.start)}n.push(this.parseExpression())}return this.expect(")"),n.length===1?n[0]:{t:"seq",body:n}}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new G(`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 G("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=this.parseParamList();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}}},fn=new Map,Aa=2e3;function Qe(e){let t=fn.get(e);if(t)return t;let n=new hi(Fr(e),e).parseProgram();return fn.size>=Aa&&dd(),fn.set(e,n),n}function dd(){let e=Math.floor(Aa/2),t=0;for(let n of fn.keys())if(fn.delete(n),++t>=e)break}function Sa(){fn.clear()}var Da,fd=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Da=Object.hasOwn)!=null?Da:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),pd=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"]);function Ma(e){return function(t,n,...r){if(typeof t!="function")throw new ce(`${e} needs a function. Passing a string would compile it, which this library never does.`);let o=globalThis[e];return o(t,n,...r)}}function $r(e){return function(...t){let n=globalThis[e];return n(...t)}}var Ce={Math,JSON,Date,Number,String,Boolean,Array,Object:fd,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:Ma("setTimeout"),setInterval:Ma("setInterval"),clearTimeout:$r("clearTimeout"),clearInterval:$r("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:$r("requestAnimationFrame"),cancelAnimationFrame:$r("cancelAnimationFrame")}:{}},ce=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
57
|
|
|
58
|
-
Expression: ${r}`:n);
|
|
59
|
-
`)[0]:String(r);
|
|
58
|
+
Expression: ${r}`:n);A(this,"expression",r);this.name="VoodooRuntimeError"}},bi=Symbol("spread"),Qn=class{constructor(t){A(this,"value",t)}};function Ca(e){return e instanceof Qn?e.value:e}var md=new Set(["__proto__","constructor","prototype"]);function Na(e){return typeof e=="string"&&md.has(e)}function ft(e,t){if(Na(e))throw new ce(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function M(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+=pt(M(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{ft(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in Ce?Ce[e.n]:void 0}case"member":{let o=M(e.o,t);if(o==null){if(e.opt)return;throw new ce(`Could not read "${yi(e,t)}" from ${o===null?"null":"undefined"}`)}let i=ft(e.computed?M(e.p,t):e.p.v);return o[i]}case"new":{let o=M(e.callee,t);if(typeof o!="function")throw new ce(`Cannot construct ${pt(o)}: it is not a constructor`);if(o===Function)throw new ce("Cannot construct Function: expressions never compile code");let i=Ha(e.args,t);return Reflect.construct(o,i)}case"call":{let o,i;if(e.callee.t==="member"){let s=M(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new ce(`Could not call "${yi(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=ft(e.callee.computed?M(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){ft(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=Ce[e.callee.n]}else i=M(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:yi(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in Ce)?pd.has(s)?new ce(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new ce(`"${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 ce(`"${s}" is not a function`)}return i.apply(o,Ha(e.args,t))}case"unary":{if(e.op==="...")return{[bi]:M(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new ce("delete needs a property, as in `delete user.name` or `delete list[0]`");let i=M(e.a.o,t);if(i==null)return!0;let s=ft(e.a.computed?M(e.a.p,t):e.a.p.v);return delete i[s]}if(e.op==="typeof"){if(e.a.t==="id"){if(Na(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:Ce[e.a.n])}return typeof M(e.a,t)}let o=M(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new ce(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(M(e.a,t)),i=e.op==="++"?o+1:o-1;return Pa(e.a,i,t),e.prefix?i:o}case"bin":{let o=M(e.l,t),i=M(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;case"&":return o&i;case"|":return o|i;case"^":return o^i;case"<<":return o<<i;case">>":return o>>i;case">>>":return o>>>i}throw new ce(`Unsupported operator: ${e.op}`)}case"logic":{let o=M(e.l,t);return e.op==="&&"?o&&M(e.r,t):e.op==="||"?o||M(e.r,t):o!=null?o:M(e.r,t)}case"cond":return M(e.test,t)?M(e.cons,t):M(e.alt,t);case"assign":{let o;if(e.op==="=")o=M(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=M(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=M(e.value,t)}else{let i=M(e.target,t),s=M(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 ce(`Unsupported assignment: ${e.op}`)}}return Pa(e.target,o,t),o}case"if":return M(e.test,t)?M(e.cons,t):e.alt?M(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a=Ra(o,s,t),l=this,c=l!==null&&typeof l=="object"?t.child(l):t;return Ca(M(i,c.child(a)))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>Ca(M(i,t.child(Ra(o,s,t))))}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,M(i.spread,t));else{let s=ft(i.key!==null?i.key:String(M(i.keyExpr,t)));if(i.getter){let a=M(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=M(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...M(i.spread,t)):o.push(M(i,t));return o}case"return":return new Qn(e.a?M(e.a,t):void 0);case"seq":{let o;for(let i of e.body)if(o=M(i,t),o instanceof Qn)return o;return o}}throw new ce(`Unknown node: ${e.t}`)}function wi(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=M(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new ce(`Cannot destructure ${t===null?"null":"undefined"}`);let i=new Set;for(let{key:s,value:a}of e.props)i.add(s),wi(a,t[ft(s)],n,r);if(e.rest){let s={};for(let a of Object.keys(t))i.has(a)||(s[a]=t[a]);n[e.rest]=s}return}let o=Array.isArray(t)?t:Array.from(t);e.elements.forEach((i,s)=>{i&&wi(i,o[s],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function Ra(e,t,n){let r={};for(let o=0;o<e.length;o++){let i=e[o];wi(i,i.kind==="rest"?t.slice(o):t[o],r,n)}return r}function Ha(e,t){let n=[];for(let r of e){let o=M(r,t);o&&typeof o=="object"&&bi in o?n.push(...o[bi]):n.push(o)}return n}function Pa(e,t,n){if(e.t==="id"){ft(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=M(e.o,n);if(r==null)throw new ce("Could not write to null or undefined");let o=ft(e.computed?M(e.p,n):e.p.v);r[o]=t;return}throw new ce("Invalid assignment target")}function yi(e,t){return e.t==="member"?e.computed?String(M(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function pt(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)}de();le();var Gn=new Map;function F(e,t){Gn.set(e.startsWith("$")?e:`$${e}`,t)}var Ei=new Map;function pn(e,t){Ei.set(e,t)}var Bt=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&&Gn.has(t))return this.magicContainer(t,Gn);if(Ei.has(t))return this.magicContainer(t,Ei)}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(ee(t),this,n!=null?n:this.el)}magicContainer(t,n){this.magicCache||(this.magicCache=new Map);let r=this.magicCache.get(t);if(r)return r;let o=n.get(t),i=this,s={};return Object.defineProperty(s,t,{get:()=>o(i),set:a=>{let l=o(i);l&&typeof l=="object"&&"set"in l&&l.set(a)},enumerable:!0,configurable:!0}),this.magicCache.set(t,s),s}},rt=new Bt(ee({}));le();de();de();function ot(){return x.devtools===!0}function gt(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 qt(e){ot()&&console.warn(`[Voodoo] ${e}`)}var Fa=new Set;function Xn(e,t){ot()&&(Fa.has(e)||(Fa.add(e),console.warn(`[Voodoo] ${t}`)))}var gd=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function $a(e,t,n){ot()&&(gd.has(n)||Xn(`unknown-directive:${n}`,`unknown directive "${t}" at ${gt(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function Ia(e,t){Xn(`unknown-component:${t}`,`component "${t}" not registered at ${gt(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function xi(e,t,n,r){if(!ot())return;let o=r instanceof Error?r.message.split(`
|
|
59
|
+
`)[0]:String(r);qt(`invalid expression in ${t}="${n}" on element ${gt(e)}.
|
|
60
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 sa(e,t,n){Be()&&Tt(`duplicate key "${String(t)}" in v-for="${n}" on element ${Xe(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 aa(e,t,n){Be()&&Tt(`required prop "${n}" missing from component "${t}" at ${Xe(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Qo(e,t){Mn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var Lt=new WeakMap,gr=new WeakMap,Je=new WeakSet,Go=new WeakMap;function ei(e){return Je.has(e)}function ti(e){Je.add(e)}function Yt(e){return Lt.get(e)}function De(e){let t=e;for(;t;){let n=Lt.get(t);if(n)return n;t=t.parentNode}return je}function pa(e,t){let n=Go.get(e);n||Go.set(e,n=[]),n.push(t)}var Xo=new WeakSet;function ni(e){Xo.add(e),e.remove()}function ke(e,t){let n=gr.get(e);n||gr.set(e,n=[]),n.push(t)}function U(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--)U(n[r])}let t=gr.get(e);if(t){gr.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){q(r,"cleanup")}}e.nodeType===1&&Ou(e),Lt.delete(e),Go.delete(e),Je.delete(e)}var mr=new Map,Ru=4e3;function Kt(e,t){let n=`${e}\0${t}`,r=mr.get(n);if(r!==void 0)return r;let o=Hu(e,t);return mr.size>=Ru&&mr.clear(),mr.set(n,o),o}function Hu(e,t){let n=E.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 u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function Du(e){let t=[],n=At.get(e);if(n&&n.size)for(let[r,o]of n){let i=Kt(r,o);i&&(t.push(i),ca(e,i.name))}else{let r=ma(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Nu(i))continue;let s=Kt(i,e.getAttribute(i));s&&(t.push(s),ca(e,s.name))}}return t.length<2?t:t.sort((r,o)=>la(o)-la(r))}var Pu=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function ma(e){return Pu?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Nu(e){return oi(e)||e.charCodeAt(0)===46&&e.length>1}function la(e){var t,n;return(n=(t=Ge.get(e.name))==null?void 0:t.priority)!=null?n:0}var Cn=new Map,vr=new WeakMap;function ca(e,t){let n=Cn.get(t);n||Cn.set(t,n=new Set),n.add(e);let r=vr.get(e);r||vr.set(e,r=new Set),r.add(t)}function Ou(e){var n;let t=vr.get(e);if(t){for(let r of t)(n=Cn.get(r))==null||n.delete(e);vr.delete(e)}}function ri(e,t){var n;return(n=Cn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function hr(e,t){let n=[],r=Cn.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${E.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function Qt(e,t){let n=e;for(;n;){if(ri(n,t))return n;n=n.parentElement}return null}var At=new WeakMap;function oi(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Le(e,t){var r;let n=(r=At.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function ot(e,t){let n=At.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function ga(e){let t=At.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];oi(o.name)&&n.set(o.name,o.value)}return n}function Fu(e){if(!E.cleanAttributes)return;let t=ma(e),n=At.get(e);n||At.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];oi(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function va(e){let t=At.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function ha(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function O(e,t,n,r){if(e)try{return M(He(e),t)}catch(o){Be()&&Yo(r!=null?r:t.el,n!=null?n:"expression",e,o),q(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var ya=new WeakSet;function ba(e){ya.add(e)}function ua(e,t,n){let r=Ge.get(t.name);if(!r){Be()&&t.raw.startsWith(E.prefix)&&oa(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Re(!0);ke(e,()=>a.stop()),pa(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return O(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i(),c=()=>{let u=kt;kt=e;try{a()}finally{kt=u}};l.run(()=>ve(c,{scope:l}))},cleanup(a){ke(e,a)},walk(a,l){W(a,l)}};try{r.setup(s)}catch(a){q(a,`directive ${t.raw}`)}}var Jo=null;function wa(e){Jo=e}var $u=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(e,t){let n=t!=null?t:De(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let u of c)W(u,n);return}if(e.nodeType===3){xa(e,n);return}if(e.nodeType!==1)return;let r=e;if(Je.has(r))return;let o=r.tagName;if($u.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Je.add(r);return}let i=n,s=Du(r),a=ce.size===0&&Gt.size===0||r.hasAttribute(`${E.prefix}component`)?null:Wu(o);if(s.length===0&&!a){Ea(r,i);return}Je.add(r);let l=kt;kt=r;try{ju(r,s,a,i)}finally{kt=l}}var kt=null;function ii(){return kt}function Iu(e,t,n){let r=null;try{r=He(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=O(e,t,"v-data");return t.reactiveChild(a&&typeof a=="object"?a:{},n)}let i=t.reactiveChild({},n),s=r.props;for(let a of s)if(a.key!==null)try{if(a.getter){let l=M(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=M(a.value,i)}catch(l){Be()?Yo(n,e,e,l):q(l,"v-data")}return i}function ju(e,t,n,r){let o=r;for(let u of t){let d=Ge.get(u.name);if(d!=null&&d.terminal){ua(e,u,o);return}}let i=t.find(u=>u.name==="data"),s=t.find(u=>u.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&Jo){let u=Jo(e,a,o);u&&(o=u,l=!0,Lt.set(e,o))}else(i||s)&&(o=Iu(i&&i.expression||"{}",o,e),Lt.set(e,o));let c=l?r:o;for(let u of t)u.name==="data"||u.name==="component"||ua(e,u,c);Fu(e),ya.has(e)||Ea(e,o)}function Ea(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&xa(o,t);for(let o of n)W(o,(r=Lt.get(o))!=null?r:t)}var Bu=500,da=new Map;function qu(e){let t=e.trim();if(!t)return!1;let n=da.get(t);if(n!==void 0)return n;let r=!0;try{r=He(t).t!=="seq"}catch(o){r=!1}return da.set(t,r),r}function zu(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 Uu(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):zu(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=Bu)&&qu(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var _u=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Vu(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=He(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 pe):!1}function xa(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Je.has(e))return;let r=e.parentElement;for(;r;){if(_u.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Uu(n);if(!o.some(s=>s.expression))return;Je.add(e);let i=new Re(!0);ke(e,()=>i.stop()),pa(e,i),i.run(()=>ve(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=O(a.expression,t,"interpolation");s+=Vu(a,l,t)?a.raw:Qe(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function it(e,t){Lt.set(e,t)}function Wu(e){let t=e.toLowerCase();if(ce.has(t))return t;let n=Gt.get(t);return n!=null?n:null}var Gt=new Map;var Zo=!1,Wt=null,Ku=[];function fa(e,t){for(let n of Ku)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function Ta(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),fa(t,!1),W(t,je),fa(t,!0),Zo||(Zo=!0,E.autoDiscover&&Yu(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Yu(e){typeof MutationObserver!="undefined"&&(Wt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Xo.has(o)){Xo.delete(o);continue}o.nodeType===1&&!o.isConnected&&U(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Je.has(o)||W(o,De(o.parentNode)))}}}),Wt.observe(e,{childList:!0,subtree:!0}))}function ka(){Wt==null||Wt.disconnect(),Wt=null,Zo=!1}function La(e){W(e!=null?e:document.body,e?De(e.parentNode):je)}X();ee();var br=new Set,Aa=new Set;function Jt(e,t){let n=Et(e);ce.set(n,t),Gt.set(n.replace(/-/g,""),n),Qu(n)}function Qu(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.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=Yt(s))!=null&&r.component||Gu(s))continue;let a=De(s.parentNode);ei(s)&&(U(s),va(s)),W(s,a)}}}function Gu(e){let t=e.parentElement;for(;t&&t!==document.body;){if(ha(t)&&!ei(t))return!0;t=t.parentElement}return!1}function Xu(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 Ju(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 si(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Zu(e,t,n,r,o){var c;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(Et(u),u),a.set(si(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let l=Array.from(e.attributes);for(let u of l){let d=Kt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let p=(c=a.get(d.arg.toLowerCase()))!=null?c:si(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>ve(()=>{i[p]=O(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let f=a.get(u.name.toLowerCase());f?i[f]=Xu(u.value,t[f]):s.length||(i[si(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&aa(e,o,u);return i}function ed(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 l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let u=(c=o.get(a))!=null?c:[];u.push(s),o.set(a,u)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let u of l)c.appendChild(u);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(u=>{u.nodeType===1&&td(u,n)}),s.replaceWith(c)}}var yr=null;function Sa(e){yr=e}function td(e,t){yr==null||yr(e,t)}function Ma(e,t,n){var x,C,N,R,le,B,xe,te;let r=t?Et(t):"",o=r?(N=(C=ce.get(r))!=null?C:ce.get((x=Gt.get(r))!=null?x:""))!=null?N:{}:{};r&&!ce.has(r)&&!Gt.has(r)&&ia(e,t);let i=new Re(!0),s=Ju(o),a=Zu(e,s,n,i,r||"inline");!o.state&&o.data&&Qo("data()","state()"),o.destroyed&&Qo("destroyed()","unmounted()");let l=(R=o.state)!=null?R:o.data,c={},u={},d=o.inheritScope?n:n.root,f=new xt({},d,e);f.component=u;try{c=l?(le=l.call(u,a))!=null?le:{}:{}}catch(A){q(A,`state() of component "${t}"`)}let p=e.getAttribute(`${E.prefix}data`);if(p){let A=O(p,n,"v-data");A&&typeof A=="object"&&Object.assign(c,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(f.provides={...A})}catch(A){q(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,$])=>[L,$!=null?$:{}]);for(let[L,$]of A){let gt=(B=$.from)!=null?B:L,To=n.inject(gt,$.default);L in c||(c[L]=To)}}let m=V(c),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wt(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...$)=>L.apply(u,$);for(let[A,L]of Object.entries(o))typeof L=="function"&&(nd.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...$)=>L.apply(u,$)));let h=(A,L)=>{let $=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});$.__voodoo=!0,e.dispatchEvent($)},y={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(te=(xe=n.owner)==null?void 0:xe.component)!=null?te:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(X(),qs)).then(L=>L.nextTick(A)),$watch:(A,L)=>he(()=>O(A,f),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?f.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,$){return typeof L=="symbol"?!0:L in v?(v[L].value=$,!0):L in a?(a[L]=$,!0):(m[L]=$,!0)},has(A,L){if(typeof L=="symbol")return!1;let $=L;return $==="$refs"||$ in y||$ in v||$ in g||$ in a||$ in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(f.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>he(()=>T[A],($,gt)=>L.call(T,$,gt)));if(o.style&&!Aa.has(r)){Aa.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(Xt(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,ed(e,A,n)}return br.add(T),fe(()=>{Xt(o,T,"mounted"),o.updated&&i.run(()=>ve(()=>{for(let A of Object.keys(m))m[A];Xt(o,T,"updated")}))}),ke(e,()=>{Xt(o,T,"beforeUnmount"),i.stop(),br.delete(T),Xt(o,T,"unmounted"),Xt(o,T,"destroyed")}),f}var nd=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Xt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){q(o,`hook ${n}`)}}X();ee();var Zt=[],ai=null,wr=0,Ca=-1,ci=0,li=!1;function Ra(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function rd(){if(ai||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(ai=new MutationObserver(()=>{wr++}),ai.observe(e,{childList:!0,subtree:!0}))}function Ha(){if(li)return;li=!0;let e=()=>{li=!1,od()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function od(){var t;wr===Ca?ci++:ci=0,Ca=wr;let e=Ra();for(let n=Zt.length-1;n>=0;n--){let r=Zt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Zt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Zt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Zt.length&&Ha()}function ui(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}rd(),Zt.push({...e,since:Ra()}),Ha()}function Da(){return typeof document=="undefined"||!document.body?!1:ci>=2}function id(){return typeof document=="undefined"||!document.body?!1:wr===0}function Rn(e){typeof document!="undefined"&&ui({ready:()=>Da()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Pa(e){if(typeof document!="undefined"){if(id()){Promise.resolve().then(e);return}ui({ready:()=>Da()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Er(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ui({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var sd=0,xr=null;function Na(e){xr=e}function Oa(e={}){let t=`voodoo-app-${++sd}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=Et(m);ce.has(g)||(Jt(g,v),s.push(g))}}function f(m){var g,h;if(c)return c;a=m,l=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Jt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,je)}catch(y){return q(y,`application mounting "${t}"`),null}if(c=(h=(g=Yt(m))==null?void 0:g.component)!=null?h:null,c){let y=u;u=[];for(let w of y)w(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,v){var h;let g=Et(m);return v===void 0?(h=n&&n[m])!=null?h:ce.get(g):(n?n[m]=v:e.components={[m]:v},c&&!ce.has(g)&&(Jt(g,v),s.push(g)),p)},directive(m,v){return xr==null||xr(m,v),p},use(m,v){return pr(ad(),m,v),p},provide(m,v){return i[m]=v,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let v=null;return Er(m,g=>{v=f(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return c?Promise.resolve(c):new Promise(m=>u.push(m))},unmount(){if(a){U(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=l,ce.delete(t);for(let m of s)ce.delete(m);s.length=0,c=null,a=null}}};return p}var Fa=null;function $a(e){Fa=e}function ad(){return Fa}X();X();var st=new Map,di=Te(0),fi=new Map;function Tr(e,t,n={}){let r=st.get(e);if(!t){if(!r){let l=V({});return st.set(e,l),l}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 l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[u,d]of Object.entries(c))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(l){}let a=V(s);for(let[l,c]of Object.entries(i)){let u=c.value;typeof u=="function"&&(a[l]=(...d)=>u.apply(a,d))}if(st.set(e,a),di.value++,n.persist&&typeof localStorage!="undefined"){let l=he(a,()=>{try{localStorage.setItem(o,JSON.stringify(ld(a)))}catch(c){}},{deep:!0});fi.set(e,l)}return a}function ld(e){let t={},n=Object.getOwnPropertyDescriptors(ie(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var St=new Proxy({},{get:(e,t)=>(di.value,st.get(t)),has:(e,t)=>(di.value,st.has(t)),ownKeys:()=>[...st.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Ia(e){var t;(t=fi.get(e))==null||t(),fi.delete(e),st.delete(e)}function ja(){return[...st.keys()]}var pi={};or(pi,{capitalize:()=>qa,chunk:()=>gd,clone:()=>Hn,debounce:()=>we,device:()=>ne,escapeHtml:()=>Mt,formatCurrency:()=>Ad,formatDate:()=>Md,formatFileSize:()=>Rd,formatNumber:()=>Sd,formatPercent:()=>Hd,get:()=>hd,groupBy:()=>pd,isBrowser:()=>kr,matchesMedia:()=>en,memoize:()=>fd,merge:()=>Ba,once:()=>dd,parseDuration:()=>_,random:()=>bd,relativeTime:()=>Cd,sample:()=>wd,set:()=>yd,setFormatDefaults:()=>Ld,sleep:()=>ud,slugify:()=>Ed,sortBy:()=>vd,stripTags:()=>kd,throttle:()=>Dn,titleCase:()=>Td,truncate:()=>xd,uid:()=>ue,unique:()=>md,uuid:()=>cd});function cd(){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 ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function ud(e){return new Promise(t=>setTimeout(t,e))}function _(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 we(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&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 Dn(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=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)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function dd(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function fd(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 Hn(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=>Hn(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Hn(r)]));if(e instanceof Set)return new Set([...e].map(n=>Hn(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Hn(r);return t}function Ba(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]=Ba({...i},o):e[r]=o}return e}function pd(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 md(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 gd(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 vd(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),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function hd(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 yd(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 bd(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function wd(e){return e[Math.floor(Math.random()*e.length)]}function Ed(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 xd(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 qa(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Td(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>qa(t.toLowerCase()))}function Mt(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function kd(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var tn="pt-BR",za="BRL";function Ld(e,t){e&&(tn=e),t&&(za=t)}function Ad(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:tn,{style:"currency",currency:(o=t.currency)!=null?o:za}).format(n)}function Sd(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:tn,o).format(n)}function Md(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:tn;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 Cd(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:tn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function Rd(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 Hd(e,t=0,n){return new Intl.NumberFormat(n!=null?n:tn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var kr=typeof window!="undefined"&&typeof window.document!="undefined";function en(e){if(!kr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ne={get touch(){return kr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return en("(max-width: 767px)")},get tablet(){return en("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return en("(min-width: 1024px)")},get online(){return!kr||navigator.onLine},get reducedMotion(){return en("(prefers-reduced-motion: reduce)")},get darkMode(){return en("(prefers-color-scheme: dark)")}};var re=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(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}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},Lr=[],Ar=[],Pn=[],Nn=new Map;function Ua(e){var t;return`${(t=e.method)!=null?t:"GET"} ${rn(e)}`}function Dd(e){if(!e){Nn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Nn.keys()])t(n)&&Nn.delete(n)}var Va="voodoo:offline-queue";function mi(){try{return JSON.parse(localStorage.getItem(Va)||"[]")}catch(e){return[]}}function gi(e){try{localStorage.setItem(Va,JSON.stringify(e))}catch(t){}}function Pd(e){var n,r;if(typeof localStorage=="undefined")return;let t=mi();t.push({url:rn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),gi(t)}async function Wa(){if(typeof localStorage=="undefined")return 0;let e=mi();if(!e.length)return 0;gi([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await at({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=mi();gi([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Wa()});function rn(e){let t=e.url,n=de.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 Ka(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Nd(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 Od(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 Fd=new Set(["GET","HEAD","OPTIONS"]);function $d(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Id(e,t,n,r){var o;return Fd.has(e)||t.retryUnsafe===!0||$d(n)?!0:(((o=t.retry)!=null?o:0)>0&&Mn(`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 at(e){var u,d,f,p,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of Lr)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Nn.get(Ua(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return Pd(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 v=Ka();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Nd(t.body,r),i=rn(t),s=Id(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await Od(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await _a(((f=t.retryDelay)!=null?f:500)*2**v);continue}let R=new re(`Request failed with status ${x.status}`,N,t);for(let le of Pn)le(R);throw R}for(let R of Ar)N=await R(N);return t.cache&&n==="GET"&&Nn.set(Ua(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof re)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(v<s-1){await _a(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new re(l,void 0,t,a);for(let v of Pn)v(c);throw c}function _a(e){return new Promise(t=>setTimeout(t,e))}async function nn(e){return(await at(e)).data}var me={defaults:de,get(e,t={}){return nn({...t,url:e,method:"GET"})},post(e,t,n={}){return nn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return nn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return nn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return nn({...t,url:e,method:"DELETE"})},head(e,t={}){return nn({...t,url:e,method:"HEAD"})},request:at,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=rn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Ka();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(d):o(new re(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new re("Network failure during upload"))),i.addEventListener("abort",()=>o(new re("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(rn({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(rn({url:e,params:n.params}),{headers:{...de.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let u=s.split(`
|
|
62
|
-
`);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}s.trim()&&t(s)},interceptors:{request:{use(e){return
|
|
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 ja(e,t,n){ot()&&qt(`duplicate key "${String(t)}" in v-for="${n}" on element ${gt(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 Ba(e,t,n){ot()&&qt(`required prop "${n}" missing from component "${t}" at ${gt(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Ti(e,t){Xn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var Ut=new WeakMap,Br=new WeakMap,vt=new WeakSet,ki=new WeakMap;function Mi(e){return vt.has(e)}function Ci(e){vt.add(e)}function vn(e){return Ut.get(e)}function Ge(e){let t=e;for(;t;){let n=Ut.get(t);if(n)return n;t=t.parentNode}return rt}function Wa(e,t){let n=ki.get(e);n||ki.set(e,n=[]),n.push(t)}var Li=new WeakSet,qr=new WeakMap;function Ri(e){Li.add(e);let t=e.parentNode;if(t){let n=qr.get(t);n||qr.set(t,n=new Set),n.add(e)}e.remove()}function qe(e,t){let n=Br.get(e);n||Br.set(e,n=[]),n.push(t)}function X(e){if(e.nodeType===1){let r=[];for(let o=e.firstChild;o;o=o.nextSibling)(o.nodeType===1||o.nodeType===3)&&r.push(o);for(let o=r.length-1;o>=0;o--)X(r[o])}let t=qr.get(e);if(t){qr.delete(e);for(let r of t)X(r)}let n=Br.get(e);if(n){Br.delete(e);for(let r=n.length-1;r>=0;r--)try{n[r]()}catch(o){Q(o,"cleanup")}}e.nodeType===1&&Ed(e),Ut.delete(e),ki.delete(e),vt.delete(e)}var jr=new Map,vd=4e3;function gn(e,t){let n=`${e}\0${t}`,r=jr.get(n);if(r!==void 0)return r;let o=hd(e,t);return jr.size>=vd&&jr.clear(),jr.set(n,o),o}function hd(e,t){let n=x.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 u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function yd(e){let t=[],n=Vt.get(e);if(n&&n.size)for(let[r,o]of n){let i=gn(r,o);i&&(t.push(i),za(e,i.name))}else{let r=Ka(e);for(let o=0;o<r.length;o++){let i=r[o];if(!wd(i))continue;let s=gn(i,e.getAttribute(i));s&&(t.push(s),za(e,s.name))}}return t.length<2?t:t.sort((r,o)=>qa(o)-qa(r))}var bd=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function Ka(e){return bd?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function wd(e){return Pi(e)||e.charCodeAt(0)===46&&e.length>1}function qa(e){var t,n;return(n=(t=mt.get(e.name))==null?void 0:t.priority)!=null?n:0}var Jn=new Map,zr=new WeakMap;function za(e,t){let n=Jn.get(t);n||Jn.set(t,n=new Set),n.add(e);let r=zr.get(e);r||zr.set(e,r=new Set),r.add(t)}function Ed(e){var n;let t=zr.get(e);if(t){for(let r of t)(n=Jn.get(r))==null||n.delete(e);zr.delete(e)}}function Hi(e,t){var n;return(n=Jn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${x.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Ur(e,t){let n=[],r=Jn.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${x.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function hn(e,t){let n=e;for(;n;){if(Hi(n,t))return n;n=n.parentElement}return null}var Vt=new WeakMap;function Pi(e){return e.startsWith(x.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function ze(e,t){var r;let n=(r=Vt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Tt(e,t){let n=Vt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Ya(e){let t=Vt.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];Pi(o.name)&&n.set(o.name,o.value)}return n}function xd(e){if(!x.cleanAttributes)return;let t=Ka(e),n=Vt.get(e);n||Vt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Pi(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Qa(e){let t=Vt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function Ga(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(x.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function q(e,t,n,r){if(e)try{return M(Qe(e),t)}catch(o){ot()&&xi(r!=null?r:t.el,n!=null?n:"expression",e,o),Q(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Xa=new WeakSet;function Ja(e){Xa.add(e)}function Ua(e,t,n){let r=mt.get(t.name);if(!r){ot()&&t.raw.startsWith(x.prefix)&&$a(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Ye(!0);qe(e,()=>a.stop()),Wa(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return q(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i(),c=()=>{let u=zt;zt=e;try{a()}finally{zt=u}};l.run(()=>He(c,{scope:l}))},cleanup(a){qe(e,a)},walk(a,l){ne(a,l)}};try{r.setup(s)}catch(a){Q(a,`directive ${t.raw}`)}}var Ai=null;function Za(e){Ai=e}var Td=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function ne(e,t){let n=t!=null?t:Ge(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let u of c)ne(u,n);return}if(e.nodeType===3){tl(e,n);return}if(e.nodeType!==1)return;let r=e;if(vt.has(r))return;let o=r.tagName;if(Td.has(o))return;if(r.hasAttribute(`${x.prefix}ignore`)||r.hasAttribute(`${x.prefix}pre`)){vt.add(r);return}let i=n,s=yd(r),a=Te.size===0&&yn.size===0||r.hasAttribute(`${x.prefix}component`)?null:Pd(o);if(s.length===0&&!a){el(r,i);return}vt.add(r);let l=zt;zt=r;try{Ld(r,s,a,i)}finally{zt=l}}var zt=null;function Di(){return zt}function kd(e,t,n){let r=null;try{r=Qe(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=q(e,t,"v-data");return t.reactiveChild(a&&typeof a=="object"?a:{},n)}let i=t.reactiveChild({},n),s=r.props;for(let a of s)if(a.key!==null)try{if(a.getter){let l=M(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=M(a.value,i)}catch(l){ot()?xi(n,e,e,l):Q(l,"v-data")}return i}function Ld(e,t,n,r){let o=r;for(let u of t){let d=mt.get(u.name);if(d!=null&&d.terminal){Ua(e,u,o);return}}let i=t.find(u=>u.name==="data"),s=t.find(u=>u.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&Ai){let u=Ai(e,a,o);u&&(o=u,l=!0,Ut.set(e,o))}else(i||s)&&(o=kd(i&&i.expression||"{}",o,e),Ut.set(e,o));let c=l?r:o;for(let u of t)u.name==="data"||u.name==="component"||Ua(e,u,c);xd(e),Xa.has(e)||el(e,o)}function el(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&tl(o,t);for(let o of n)ne(o,(r=Ut.get(o))!=null?r:t)}var Ad=500,Va=new Map;function Sd(e){let t=e.trim();if(!t)return!1;let n=Va.get(t);if(n!==void 0)return n;let r=!0;try{r=Qe(t).t!=="seq"}catch(o){r=!1}return Va.set(t,r),r}function Md(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 Cd(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):Md(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=Ad)&&Sd(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var Rd=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Hd(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=Qe(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 Ce):!1}function tl(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||vt.has(e))return;let r=e.parentElement;for(;r;){if(Rd.has(r.tagName)||r.hasAttribute(`${x.prefix}ignore`)||r.hasAttribute(`${x.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Cd(n);if(!o.some(s=>s.expression))return;vt.add(e);let i=new Ye(!0);qe(e,()=>i.stop()),Wa(e,i),i.run(()=>He(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=Hd(a,l,t)?a.raw:pt(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function ht(e,t){Ut.set(e,t)}function Pd(e){let t=e.toLowerCase();if(Te.has(t))return t;let n=yn.get(t);return n!=null?n:null}var yn=new Map;var Si=!1,mn=null,Dd=[];function _a(e,t){for(let n of Dd)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function nl(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:x.root)!=null?n:document.body;t&&(Object.assign(Ce,x.globals),_a(t,!1),ne(t,rt),_a(t,!0),Si||(Si=!0,x.autoDiscover&&Nd(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Nd(e){typeof MutationObserver!="undefined"&&(mn=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Li.has(o)){Li.delete(o);continue}o.nodeType===1&&!o.isConnected&&X(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(vt.has(o)||ne(o,Ge(o.parentNode)))}}}),mn.observe(e,{childList:!0,subtree:!0}))}function rl(){mn==null||mn.disconnect(),mn=null,Si=!1}function ol(e){ne(e!=null?e:document.body,e?Ge(e.parentNode):rt)}le();de();var _r=new Set,il=new Set;function wn(e,t){let n=jt(e);Te.set(n,t),yn.set(n.replace(/-/g,""),n),Od(n)}function Od(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${x.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=vn(s))!=null&&r.component||Fd(s))continue;let a=Ge(s.parentNode);Mi(s)&&(X(s),Qa(s)),ne(s,a)}}}function Fd(e){let t=e.parentElement;for(;t&&t!==document.body;){if(Ga(t)&&!Mi(t))return!0;t=t.parentElement}return!1}function $d(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 Id(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 Ni(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function jd(e,t,n,r,o){var c;let i=ee({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(jt(u),u),a.set(Ni(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let l=Array.from(e.attributes);for(let u of l){let d=gn(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let p=(c=a.get(d.arg.toLowerCase()))!=null?c:Ni(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>He(()=>{i[p]=q(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let f=a.get(u.name.toLowerCase());f?i[f]=$d(u.value,t[f]):s.length||(i[Ni(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&Ba(e,o,u);return i}function Bd(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 l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let u=(c=o.get(a))!=null?c:[];u.push(s),o.set(a,u)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let u of l)c.appendChild(u);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(u=>{u.nodeType===1&&qd(u,n)}),s.replaceWith(c)}}var Vr=null;function sl(e){Vr=e}function qd(e,t){Vr==null||Vr(e,t)}function al(e,t,n){var E,C,$,N,ge,z,we,on;let r=t?jt(t):"",o=r?($=(C=Te.get(r))!=null?C:Te.get((E=yn.get(r))!=null?E:""))!=null?$:{}:{};r&&!Te.has(r)&&!yn.has(r)&&Ia(e,t);let i=new Ye(!0),s=Id(o),a=jd(e,s,n,i,r||"inline");!o.state&&o.data&&Ti("data()","state()"),o.destroyed&&Ti("destroyed()","unmounted()");let l=(N=o.state)!=null?N:o.data,c={},u={},d=o.inheritScope?n:n.root,f=new Bt({},d,e);f.component=u;try{c=l?(ge=l.call(u,a))!=null?ge:{}:{}}catch(H){Q(H,`state() of component "${t}"`)}let p=e.getAttribute(`${x.prefix}data`);if(p){let H=q(p,n,"v-data");H&&typeof H=="object"&&Object.assign(c,H)}if(o.provide)try{let H=typeof o.provide=="function"?o.provide.call(u):o.provide;H&&typeof H=="object"&&(f.provides={...H})}catch(H){Q(H,`provide() of component "${t}"`)}if(o.inject){let H=Array.isArray(o.inject)?o.inject.map(R=>[R,{from:R}]):Object.entries(o.inject).map(([R,Y])=>[R,Y!=null?Y:{}]);for(let[R,Y]of H){let Dt=(z=Y.from)!=null?z:R,Qo=n.inject(Dt,Y.default);R in c||(c[R]=Qo)}}let m=ee(c),v={};if(o.computed)for(let[H,R]of Object.entries(o.computed))v[H]=It(()=>R.call(u));let g={};if(o.methods)for(let[H,R]of Object.entries(o.methods))g[H]=(...Y)=>R.apply(u,Y);for(let[H,R]of Object.entries(o))typeof R=="function"&&(zd.has(H)||H==="state"||H==="data"||H in g||(g[H]=(...Y)=>R.apply(u,Y)));let h=(H,R)=>{let Y=new CustomEvent(H,{detail:R,bubbles:!0,cancelable:!0});Y.__voodoo=!0,e.dispatchEvent(Y)},y={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(on=(we=n.owner)==null?void 0:we.component)!=null?on:null,emit:h,$emit:h,$nextTick:H=>Promise.resolve().then(()=>(le(),wa)).then(R=>R.nextTick(H)),$watch:(H,R)=>Pe(()=>q(H,f),R)},b={get(H,R){if(typeof R!="symbol")return R==="$refs"?f.allRefs:R in y?y[R]:R in v?v[R].value:R in g?g[R]:R in a?a[R]:m[R]},set(H,R,Y){return typeof R=="symbol"?!0:R in v?(v[R].value=Y,!0):R in a?(a[R]=Y,!0):(m[R]=Y,!0)},has(H,R){if(typeof R=="symbol")return!1;let Y=R;return Y==="$refs"||Y in y||Y in v||Y in g||Y in a||Y in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},k=new Proxy(u,b);if(f.data=k,Object.setPrototypeOf(u,k),o.watch)for(let[H,R]of Object.entries(o.watch))i.run(()=>Pe(()=>k[H],(Y,Dt)=>R.call(k,Y,Dt)));if(o.style&&!il.has(r)){il.add(r);let H=document.createElement("style");H.setAttribute("data-voodoo-component",r),H.textContent=o.style,document.head.appendChild(H)}if(bn(o,k,"beforeMount"),o.template){let H=document.createDocumentFragment();for(;e.firstChild;)H.appendChild(e.firstChild);e.innerHTML=o.template,Bd(e,H,n)}return _r.add(k),Me(()=>{bn(o,k,"mounted"),o.updated&&i.run(()=>He(()=>{for(let H of Object.keys(m))m[H];bn(o,k,"updated")}))}),qe(e,()=>{bn(o,k,"beforeUnmount"),i.stop(),_r.delete(k),bn(o,k,"unmounted"),bn(o,k,"destroyed")}),f}var zd=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function bn(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){Q(o,`hook ${n}`)}}le();de();var En=[],Oi=null,Wr=0,ll=-1,$i=0,Fi=!1;function cl(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function Ud(){if(Oi||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Oi=new MutationObserver(()=>{Wr++}),Oi.observe(e,{childList:!0,subtree:!0}))}function ul(){if(Fi)return;Fi=!0;let e=()=>{Fi=!1,Vd()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Vd(){var t;Wr===ll?$i++:$i=0,ll=Wr;let e=cl();for(let n=En.length-1;n>=0;n--){let r=En[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){En.splice(n,1),r.action(o);continue}e-r.since>1e4&&(En.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}En.length&&ul()}function Ii(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}Ud(),En.push({...e,since:cl()}),ul()}function dl(){return typeof document=="undefined"||!document.body?!1:$i>=2}function _d(){return typeof document=="undefined"||!document.body?!1:Wr===0}function Zn(e){typeof document!="undefined"&&Ii({ready:()=>dl()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function fl(e){if(typeof document!="undefined"){if(_d()){Promise.resolve().then(e);return}Ii({ready:()=>dl()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Kr(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&Ii({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Wd=0,Yr=null;function pl(e){Yr=e}function ml(e={}){let t=`voodoo-app-${++Wd}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=jt(m);Te.has(g)||(wn(g,v),s.push(g))}}function f(m){var g,h;if(c)return c;a=m,l=m.innerHTML,Object.assign(Ce,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}wn(t,v),m.setAttribute(`${x.prefix}component`,t);try{ne(m,rt)}catch(y){return Q(y,`application mounting "${t}"`),null}if(c=(h=(g=vn(m))==null?void 0:g.component)!=null?h:null,c){let y=u;u=[];for(let b of y)b(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,v){var h;let g=jt(m);return v===void 0?(h=n&&n[m])!=null?h:Te.get(g):(n?n[m]=v:e.components={[m]:v},c&&!Te.has(g)&&(wn(g,v),s.push(g)),p)},directive(m,v){return Yr==null||Yr(m,v),p},use(m,v){return Ir(Kd(),m,v),p},provide(m,v){return i[m]=v,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let v=null;return Kr(m,g=>{v=f(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return c?Promise.resolve(c):new Promise(m=>u.push(m))},unmount(){if(a){X(a),a.removeAttribute(`${x.prefix}component`),a.innerHTML=l,Te.delete(t);for(let m of s)Te.delete(m);s.length=0,c=null,a=null}}};return p}var gl=null;function vl(e){gl=e}function Kd(){return gl}le();le();var kt=new Map,ji=Be(0),Bi=new Map;function Qr(e,t,n={}){let r=kt.get(e);if(!t){if(!r){let l=ee({});return kt.set(e,l),l}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 l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[u,d]of Object.entries(c))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(l){}let a=ee(s);for(let[l,c]of Object.entries(i)){let u=c.value;typeof u=="function"&&(a[l]=(...d)=>u.apply(a,d))}if(kt.set(e,a),ji.value++,n.persist&&typeof localStorage!="undefined"){let l=Pe(a,()=>{try{localStorage.setItem(o,JSON.stringify(Yd(a)))}catch(c){}},{deep:!0});Bi.set(e,l)}return a}function Yd(e){let t={},n=Object.getOwnPropertyDescriptors(se(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var _t=new Proxy({},{get:(e,t)=>(ji.value,kt.get(t)),has:(e,t)=>(ji.value,kt.has(t)),ownKeys:()=>[...kt.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function hl(e){var t;(t=Bi.get(e))==null||t(),Bi.delete(e),kt.delete(e)}function yl(){return[...kt.keys()]}var qi={};Mr(qi,{capitalize:()=>wl,chunk:()=>tf,clone:()=>er,debounce:()=>Fe,device:()=>pe,escapeHtml:()=>Wt,formatCurrency:()=>pf,formatDate:()=>gf,formatFileSize:()=>hf,formatNumber:()=>mf,formatPercent:()=>yf,get:()=>rf,groupBy:()=>Zd,isBrowser:()=>Gr,matchesMedia:()=>xn,memoize:()=>Jd,merge:()=>bl,once:()=>Xd,parseDuration:()=>te,random:()=>sf,relativeTime:()=>vf,sample:()=>af,set:()=>of,setFormatDefaults:()=>ff,sleep:()=>Gd,slugify:()=>lf,sortBy:()=>nf,stripTags:()=>df,throttle:()=>tr,titleCase:()=>uf,truncate:()=>cf,uid:()=>ke,unique:()=>ef,uuid:()=>Qd});function Qd(){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 ke(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Gd(e){return new Promise(t=>setTimeout(t,e))}function te(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 l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&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 tr(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=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)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Xd(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Jd(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 er(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=>er(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,er(r)]));if(e instanceof Set)return new Set([...e].map(n=>er(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=er(r);return t}function bl(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]=bl({...i},o):e[r]=o}return e}function Zd(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 ef(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 tf(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 nf(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),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function rf(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 of(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 sf(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function af(e){return e[Math.floor(Math.random()*e.length)]}function lf(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 cf(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 wl(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function uf(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>wl(t.toLowerCase()))}function Wt(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function df(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Tn="pt-BR",El="BRL";function ff(e,t){e&&(Tn=e),t&&(El=t)}function pf(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:Tn,{style:"currency",currency:(o=t.currency)!=null?o:El}).format(n)}function mf(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:Tn,o).format(n)}function gf(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Tn;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 vf(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:Tn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function hf(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 yf(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Tn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Gr=typeof window!="undefined"&&typeof window.document!="undefined";function xn(e){if(!Gr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var pe={get touch(){return Gr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return xn("(max-width: 767px)")},get tablet(){return xn("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return xn("(min-width: 1024px)")},get online(){return!Gr||navigator.onLine},get reducedMotion(){return xn("(prefers-reduced-motion: reduce)")},get darkMode(){return xn("(prefers-color-scheme: dark)")}};var me=class extends Error{constructor(n,r,o,i){super(n);A(this,"response",r);A(this,"config",o);A(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}},Le={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},Xr=[],Jr=[],nr=[],rr=new Map;function xl(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Ln(e)}`}function bf(e){if(!e){rr.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...rr.keys()])t(n)&&rr.delete(n)}var kl="voodoo:offline-queue";function zi(){try{return JSON.parse(localStorage.getItem(kl)||"[]")}catch(e){return[]}}function Ui(e){try{localStorage.setItem(kl,JSON.stringify(e))}catch(t){}}function wf(e){var n,r;if(typeof localStorage=="undefined")return;let t=zi();t.push({url:Ln(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),Ui(t)}async function Ll(){if(typeof localStorage=="undefined")return 0;let e=zi();if(!e.length)return 0;Ui([]);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=zi();Ui([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Ll()});function Ln(e){let t=e.url,n=Le.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 Al(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${Le.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Ef(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 xf(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 Tf=new Set(["GET","HEAD","OPTIONS"]);function kf(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Lf(e,t,n,r){var o;return Tf.has(e)||t.retryUnsafe===!0||kf(n)?!0:(((o=t.retry)!=null?o:0)>0&&Xn(`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 u,d,f,p,m;let t={method:"GET",timeout:Le.timeout,retry:Le.retry,retryDelay:Le.retryDelay,credentials:Le.credentials,responseType:"auto",...e,headers:{...Le.headers,...e.headers}};for(let v of Xr)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=rr.get(xl(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return wf(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 v=Al();v&&!r[Le.csrfHeader]&&(r[Le.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Ef(t.body,r),i=Ln(t),s=Lf(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let b=()=>{y&&h&&h.removeEventListener("abort",y),y=null},k=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let E=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});k&&clearTimeout(k),b();let $={data:await xf(E,t.responseType),status:E.status,statusText:E.statusText,headers:E.headers,ok:E.ok,raw:E,config:t};if(!E.ok){if(E.status>=500&&v<s-1){await Tl(((f=t.retryDelay)!=null?f:500)*2**v);continue}let N=new me(`Request failed with status ${E.status}`,$,t);for(let ge of nr)ge(N);throw N}for(let N of Jr)$=await N($);return t.cache&&n==="GET"&&rr.set(xl(t),{expires:Date.now()+t.cache,value:$}),$}catch(E){if(k&&clearTimeout(k),b(),E instanceof me)throw E;if(a=E,(E==null?void 0:E.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(v<s-1){await Tl(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new me(l,void 0,t,a);for(let v of nr)v(c);throw c}function Tl(e){return new Promise(t=>setTimeout(t,e))}async function kn(e){return(await Lt(e)).data}var Re={defaults:Le,get(e,t={}){return kn({...t,url:e,method:"GET"})},post(e,t,n={}){return kn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return kn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return kn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return kn({...t,url:e,method:"DELETE"})},head(e,t={}){return kn({...t,url:e,method:"HEAD"})},request:Lt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=Ln({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[u,d]of Object.entries({...Le.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Al();a&&i.setRequestHeader(Le.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(d):o(new me(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new me("Network failure during upload"))),i.addEventListener("abort",()=>o(new me("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Ln({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(Ln({url:e,params:n.params}),{headers:{...Le.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let u=s.split(`
|
|
62
|
+
`);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}s.trim()&&t(s)},interceptors:{request:{use(e){return Xr.push(e),()=>{let t=Xr.indexOf(e);t>-1&&Xr.splice(t,1)}}},response:{use(e){return Jr.push(e),()=>{let t=Jr.indexOf(e);t>-1&&Jr.splice(t,1)}}},error:{use(e){return nr.push(e),()=>{let t=nr.indexOf(e);t>-1&&nr.splice(t,1)}}}},setHeader(e,t){t===null?delete Le.headers[e]:Le.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){Le.baseURL=e},clearCache:bf,flushOfflineQueue:Ll,parseDuration:te};$e();var Af=`
|
|
63
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
64
|
.v-toaster[data-pos^="top"]{top:0}
|
|
65
65
|
.v-toaster[data-pos^="bottom"]{bottom:0;flex-direction:column-reverse}
|
|
@@ -104,7 +104,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
104
104
|
border-top-color:var(--v-primary,#6D3BF5);animation:v-spin .7s linear infinite}
|
|
105
105
|
@keyframes v-spin{to{transform:rotate(360deg)}}
|
|
106
106
|
@media (prefers-reduced-motion: reduce){.v-toast{transition:none}}
|
|
107
|
-
`,Bd={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},On=new Map,lt={duration:4e3,position:"top-right",max:6};function qd(e){se(),Q("toast",jd);let t=On.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),On.set(e,t)),t}function Ct(e){var f,p,m,v;let t=(f=e.position)!=null?f:lt.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:lt.duration,o=qd(t),i=ue("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"),s.setAttribute("aria-atomic","true");let a=!1,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var g;s.remove(),(g=e.onClose)==null||g.call(e),o.children.length||(o.remove(),On.delete(t))},220))},u=g=>{var w,T,x,C;let h=(w=g.type)!=null?w:n;if(s.setAttribute("data-type",h),g.html)s.innerHTML=g.html;else{s.textContent="";let N=document.createElement("span");N.className="v-toast-icon",N.setAttribute("aria-hidden","true"),N.textContent=(T=Bd[h])!=null?T:"",s.appendChild(N);let R=document.createElement("div");R.className="v-toast-body";let le=document.createElement("div");if(le.className="v-toast-title",le.textContent=(x=g.title)!=null?x:"",R.appendChild(le),g.description){let B=document.createElement("div");B.className="v-toast-desc",B.textContent=g.description,R.appendChild(B)}if(s.appendChild(R),g.action){let B=document.createElement("button");B.type="button",B.className="v-toast-action",B.textContent=g.action.label,B.addEventListener("click",()=>{var xe;(xe=g.action)==null||xe.onClick(),c()}),s.appendChild(B)}if(g.closable!==!1&&h!=="loading"){let B=document.createElement("button");B.type="button",B.className="v-toast-close",B.setAttribute("aria-label","Close notification"),B.innerHTML="×",B.addEventListener("click",c),s.appendChild(B)}}let y=(C=g.duration)!=null?C:r;if(y>0){let N=document.createElement("div");N.className="v-toast-bar",N.style.animation=`v-toast-bar ${y}ms linear forwards`,s.appendChild(N)}};for(u(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>lt.max;)(v=o.firstElementChild)==null||v.remove();let d=g=>{l&&clearTimeout(l),g>0&&(l=setTimeout(c,g))};return d(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>d(r)),{id:i,close:c,update(g){var h;u({...e,...g}),g.duration!==void 0?d(g.duration):((h=g.type)!=null?h:n)!=="loading"&&d(lt.duration)}}}function on(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Pe=Object.assign((e,t={})=>Ct({...on(e,"default"),...t}),{success:(e,t={})=>Ct({...on(e,"success"),...t}),error:(e,t={})=>Ct({...on(e,"error"),...t}),warning:(e,t={})=>Ct({...on(e,"warning"),...t}),info:(e,t={})=>Ct({...on(e,"info"),...t}),loading:(e,t={})=>Ct({...on(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=Ct({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:lt.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:lt.duration}),s}},clear(){for(let[e,t]of On)t.remove(),On.delete(e)},configure(e){Object.assign(lt,e)},settings:lt});X();function Xa(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 G=Xa(()=>typeof localStorage!="undefined"?localStorage:void 0),Mr=Xa(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),Cr={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}},ct={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())}},sn=new Map,Rr={set(e,t,n=0){return sn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=sn.get(e);return n?n.expires<Date.now()?(sn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){sn.delete(e)},clear(){sn.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 sn.size}},vi="voodoo:theme",hi=null,Sr=Te(0),qe={get current(){var e,t;return Sr.value,(t=(e=G.get(vi))!=null?e:hi)!=null?t:"system"},get resolved(){let e=this.current;if(e!=="system")return e;if(typeof document!="undefined"){let t=document.documentElement.getAttribute("data-theme");if(t==="light"||t==="dark")return t}return typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){hi=e,G.set(vi,e),Sr.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return hi!==null||G.get(vi)!=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(),typeof MutationObserver!="undefined"&&new MutationObserver(()=>{Sr.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Sr.value++,this.current==="system"&&this.apply()}))}};var Ne=V({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function yi(){typeof window!="undefined"&&(Ne.width=window.innerWidth,Ne.height=window.innerHeight,Ne.mobile=window.innerWidth<768,Ne.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ne.desktop=window.innerWidth>=1024,Ne.portrait=window.innerHeight>=window.innerWidth,Ne.landscape=!Ne.portrait)}var Rt=V({online:!0,type:"unknown",saveData:!1,slow:!1});function Hr(){var t;if(typeof navigator=="undefined")return;Rt.online=navigator.onLine;let e=navigator.connection;e&&(Rt.type=(t=e.effectiveType)!=null?t:"unknown",Rt.saveData=!!e.saveData,Rt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var bi={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""}}},Ja=!1;function Za(){var t,n;if(Ja||(Ja=!0,H("$el",r=>r.el),H("$refs",r=>r.allRefs),H("$data",r=>r.data),H("$root",r=>r.root.data),H("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),H("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),H("$store",()=>St),H("$http",()=>me),H("$toast",()=>Pe),H("$clipboard",()=>bi),H("$storage",()=>G),H("$session",()=>Mr),H("$cookie",()=>Cr),H("$cache",()=>Rr),H("$url",()=>ct),H("$theme",()=>qe),H("$device",()=>ne),H("$screen",()=>Ne),H("$network",()=>Rt),H("$nextTick",()=>bt),H("$watch",r=>(o,i)=>he(()=>O(o,r,"$watch"),i)),H("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),H("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;yi(),Hr();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(yi)}),window.addEventListener("orientationchange",yi),window.addEventListener("online",Hr),window.addEventListener("offline",Hr),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",Hr)}X();var el=new WeakMap;function zd(e){var o,i,s;let t=(i=(o=ii())!=null?o:e.el)!=null?i:e,n=el.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},el.set(t,n));let r=(s=ii())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;ke(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&Ut(l.runner);a.slots.length=0})}if(!n.scheduled){n.scheduled=!0;let a=n;queueMicrotask(()=>{a.index=0,a.scheduled=!1})}return n}function Dr(e,t){let n=zd(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&Ut(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function tl(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0;n<t.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function nl(e){return Array.isArray(e)?e.slice():null}function Ud(e,t){let n=Dr(e,"state");return n.value===void 0&&(n.value=Te(t)),n.value}function _d(e,t,n){let r=Dr(e,"effect"),o=nl(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||tl(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=ve(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function Vd(e,t,n){let r=Dr(e,"memo"),o=nl(n);return o?(r.value?tl(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Te(t()),r.deps=o),r.value):(r.value||(r.value=wt(t)),r.value)}function Wd(e,t){let n=Dr(e,"ref");return n.value||(n.value=kn({current:t})),n.value}function Kd(e,t){return t!==void 0&&!(e in St)&&Tr(e,t),St[e]}function rl(){Vt("useState",e=>t=>Ud(e,t)),Vt("useEffect",e=>(t,n)=>_d(e,t,n)),Vt("useMemo",e=>(t,n)=>Vd(e,t,n)),Vt("useRef",e=>t=>Wd(e,t)),Vt("useContext",()=>(e,t)=>Kd(e,t))}X();function wi(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 Ei(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 Pr(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=V({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,u,d,f,p;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await me.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(u=t.timeout)!=null?u:me.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=wi(m.data,t.jsonPath),s.loaded=!0,(d=t.onSuccess)==null||d.call(t,s.data)}catch(m){if(l.signal.aborted)return;let v=m instanceof re&&(f=Ei(m))!=null?f:m.message;s.error={name:"ResourceError",message:v},(p=t.onError)==null||p.call(t,m,v)}finally{l.signal.aborted||(s.loading=!1),o===l&&(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}Ee();Ee();var ol=`
|
|
107
|
+
`,Sf={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},or=new Map,At={duration:4e3,position:"top-right",max:6};function Mf(e){ye(),ie("toast",Af);let t=or.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),or.set(e,t)),t}function Kt(e){var f,p,m,v;let t=(f=e.position)!=null?f:At.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:At.duration,o=Mf(t),i=ke("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"),s.setAttribute("aria-atomic","true");let a=!1,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var g;s.remove(),(g=e.onClose)==null||g.call(e),o.children.length||(o.remove(),or.delete(t))},220))},u=g=>{var b,k,E,C;let h=(b=g.type)!=null?b:n;if(s.setAttribute("data-type",h),g.html)s.innerHTML=g.html;else{s.textContent="";let $=document.createElement("span");$.className="v-toast-icon",$.setAttribute("aria-hidden","true"),$.textContent=(k=Sf[h])!=null?k:"",s.appendChild($);let N=document.createElement("div");N.className="v-toast-body";let ge=document.createElement("div");if(ge.className="v-toast-title",ge.textContent=(E=g.title)!=null?E:"",N.appendChild(ge),g.description){let z=document.createElement("div");z.className="v-toast-desc",z.textContent=g.description,N.appendChild(z)}if(s.appendChild(N),g.action){let z=document.createElement("button");z.type="button",z.className="v-toast-action",z.textContent=g.action.label,z.addEventListener("click",()=>{var we;(we=g.action)==null||we.onClick(),c()}),s.appendChild(z)}if(g.closable!==!1&&h!=="loading"){let z=document.createElement("button");z.type="button",z.className="v-toast-close",z.setAttribute("aria-label","Close notification"),z.innerHTML="×",z.addEventListener("click",c),s.appendChild(z)}}let y=(C=g.duration)!=null?C:r;if(y>0){let $=document.createElement("div");$.className="v-toast-bar",$.style.animation=`v-toast-bar ${y}ms linear forwards`,s.appendChild($)}};for(u(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>At.max;)(v=o.firstElementChild)==null||v.remove();let d=g=>{l&&clearTimeout(l),g>0&&(l=setTimeout(c,g))};return d(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>d(r)),{id:i,close:c,update(g){var h;u({...e,...g}),g.duration!==void 0?d(g.duration):((h=g.type)!=null?h:n)!=="loading"&&d(At.duration)}}}function An(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Xe=Object.assign((e,t={})=>Kt({...An(e,"default"),...t}),{success:(e,t={})=>Kt({...An(e,"success"),...t}),error:(e,t={})=>Kt({...An(e,"error"),...t}),warning:(e,t={})=>Kt({...An(e,"warning"),...t}),info:(e,t={})=>Kt({...An(e,"info"),...t}),loading:(e,t={})=>Kt({...An(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=Kt({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:At.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:At.duration}),s}},clear(){for(let[e,t]of or)t.remove(),or.delete(e)},configure(e){Object.assign(At,e)},settings:At});le();function Rl(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 ae=Rl(()=>typeof localStorage!="undefined"?localStorage:void 0),eo=Rl(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),to={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}},St={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())}},Sn=new Map,no={set(e,t,n=0){return Sn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Sn.get(e);return n?n.expires<Date.now()?(Sn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Sn.delete(e)},clear(){Sn.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 Sn.size}},Vi="voodoo:theme",_i=null,Zr=Be(0),it={get current(){var e,t;return Zr.value,(t=(e=ae.get(Vi))!=null?e:_i)!=null?t:"system"},get resolved(){let e=this.current;if(e!=="system")return e;if(typeof document!="undefined"){let t=document.documentElement.getAttribute("data-theme");if(t==="light"||t==="dark")return t}return typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){_i=e,ae.set(Vi,e),Zr.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return _i!==null||ae.get(Vi)!=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(),typeof MutationObserver!="undefined"&&new MutationObserver(()=>{Zr.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Zr.value++,this.current==="system"&&this.apply()}))}};var Je=ee({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function Wi(){typeof window!="undefined"&&(Je.width=window.innerWidth,Je.height=window.innerHeight,Je.mobile=window.innerWidth<768,Je.tablet=window.innerWidth>=768&&window.innerWidth<1024,Je.desktop=window.innerWidth>=1024,Je.portrait=window.innerHeight>=window.innerWidth,Je.landscape=!Je.portrait)}var Yt=ee({online:!0,type:"unknown",saveData:!1,slow:!1});function ro(){var t;if(typeof navigator=="undefined")return;Yt.online=navigator.onLine;let e=navigator.connection;e&&(Yt.type=(t=e.effectiveType)!=null?t:"unknown",Yt.saveData=!!e.saveData,Yt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var Ki={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""}}},Hl=!1;function Pl(){var t,n;if(Hl||(Hl=!0,F("$el",r=>r.el),F("$refs",r=>r.allRefs),F("$data",r=>r.data),F("$root",r=>r.root.data),F("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),F("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),F("$store",()=>_t),F("$http",()=>Re),F("$toast",()=>Xe),F("$clipboard",()=>Ki),F("$storage",()=>ae),F("$session",()=>eo),F("$cookie",()=>to),F("$cache",()=>no),F("$url",()=>St),F("$theme",()=>it),F("$device",()=>pe),F("$screen",()=>Je),F("$network",()=>Yt),F("$nextTick",()=>$t),F("$watch",r=>(o,i)=>Pe(()=>q(o,r,"$watch"),i)),F("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),F("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;Wi(),ro();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(Wi)}),window.addEventListener("orientationchange",Wi),window.addEventListener("online",ro),window.addEventListener("offline",ro),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",ro)}le();var Dl=new WeakMap;function Cf(e){var o,i,s;let t=(i=(o=Di())!=null?o:e.el)!=null?i:e,n=Dl.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},Dl.set(t,n));let r=(s=Di())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;qe(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&un(l.runner);a.slots.length=0})}if(!n.scheduled){n.scheduled=!0;let a=n;queueMicrotask(()=>{a.index=0,a.scheduled=!1})}return n}function oo(e,t){let n=Cf(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&un(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function Nl(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0;n<t.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function Ol(e){return Array.isArray(e)?e.slice():null}function Rf(e,t){let n=oo(e,"state");return n.value===void 0&&(n.value=Be(t)),n.value}function Hf(e,t,n){let r=oo(e,"effect"),o=Ol(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||Nl(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=He(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function Pf(e,t,n){let r=oo(e,"memo"),o=Ol(n);return o?(r.value?Nl(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Be(t()),r.deps=o),r.value):(r.value||(r.value=It(t)),r.value)}function Df(e,t){let n=oo(e,"ref");return n.value||(n.value=Yn({current:t})),n.value}function Nf(e,t){return t!==void 0&&!(e in _t)&&Qr(e,t),_t[e]}function Fl(){pn("useState",e=>t=>Rf(e,t)),pn("useEffect",e=>(t,n)=>Hf(e,t,n)),pn("useMemo",e=>(t,n)=>Pf(e,t,n)),pn("useRef",e=>t=>Df(e,t)),pn("useContext",()=>(e,t)=>Nf(e,t))}le();function Yi(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 Qi(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 io(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=ee({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,u,d,f,p;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await Re.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(u=t.timeout)!=null?u:Re.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=Yi(m.data,t.jsonPath),s.loaded=!0,(d=t.onSuccess)==null||d.call(t,s.data)}catch(m){if(l.signal.aborted)return;let v=m instanceof me&&(f=Qi(m))!=null?f:m.message;s.error={name:"ResourceError",message:v},(p=t.onError)==null||p.call(t,m,v)}finally{l.signal.aborted||(s.loading=!1),o===l&&(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}$e();$e();var $l=`
|
|
108
108
|
.v-fade-enter-active,.v-fade-leave-active{transition:opacity .22s var(--v-ease,ease)}
|
|
109
109
|
.v-fade-enter-from,.v-fade-leave-to{opacity:0}
|
|
110
110
|
|
|
@@ -126,7 +126,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
126
126
|
@media (prefers-reduced-motion: reduce){
|
|
127
127
|
[class*="-enter-active"],[class*="-leave-active"]{transition-duration:.01ms !important}
|
|
128
128
|
}
|
|
129
|
-
`;function il(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 an(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function ln(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function sl(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 al(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Fn(e,t={}){Q("transitions",ol);let n=il(t);return ne.reducedMotion?Promise.resolve():new Promise(r=>{an(e,n.enterFrom),an(e,n.enterActive),al(()=>{var s;ln(e,n.enterFrom),an(e,n.enterTo);let o=(s=t.duration)!=null?s:sl(e),i=()=>{ln(e,n.enterActive),ln(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function $n(e,t={}){Q("transitions",ol);let n=il(t);return ne.reducedMotion?Promise.resolve():new Promise(r=>{an(e,n.leaveFrom),an(e,n.leaveActive),al(()=>{var s;ln(e,n.leaveFrom),an(e,n.leaveTo);let o=(s=t.duration)!=null?s:sl(e),i=()=>{ln(e,n.leaveActive),ln(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Ht(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 Dt(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 cn(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 un(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 ll(e){let t=document;typeof t.startViewTransition=="function"&&!ne.reducedMotion?t.startViewTransition(e):e()}X();ee();function Yd(e,t,n){try{let o={t:"assign",op:"=",target:He(e),value:{t:"lit",v:n}};M(o,t)}catch(r){q(r,`assignment in "${e}"`)}}function pl(e){let t=E.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`)?_(e.getAttribute(`${t}duration`)):void 0}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Qe(n());let r=e.firstChild;r&&r.nodeType===3&&ti(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;ba(t),n(()=>{let i=r();for(let s of Array.from(t.children))U(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=pl(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,Fn(e,i)):$n(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=E.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(E.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)ni(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),ti(p.template);let l=pl(e),c=-1,u=[],d=()=>{let p=u;if(u=[],!p.length)return;let m=()=>{for(let v of p)U(v),v.remove()};l&&p[0]instanceof HTMLElement?$n(p[0],l).then(m):m()};r(()=>{let p=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||O(h.expression,t,"v-if")){p=g;break}}if(p===c||(c=p,d(),p===-1))return;let m=i[p].template,v=ml(m,a,t);u=v,l&&v[0]instanceof HTMLElement&&Fn(v[0],l)}),ke(e,d)},{priority:P.IF,terminal:!0});function ml(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 l of a)i.push(l),l.nodeType===1&&(it(l,n),W(l,n))}else{let s=e.cloneNode(!0);i.push(s),it(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Qd=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Qd.exec(n);if(!o){q(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,l,c]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),f=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${u}for`),p.removeAttribute(":key"),p.removeAttribute(`${u}bind:key`),p.removeAttribute(`${u}key`),ni(e);let m=[];ke(f,()=>{for(let h of m)for(let y of h.nodes)U(y),y.remove();m=[]}),r(()=>{var le,B,xe;let h=O(s,t,"v-for"),y=Gd(h,a,l,c),w=new Map;for(let te of m)w.set(te.key,te);let T=[],x=new Set,C={fragment:document.createDocumentFragment(),pending:[]};y.forEach((te,A)=>{let L=d?O(d,t.child(te),":key"):`__index_${A}`;d&&x.has(L)&&sa(e,L,n);let $=w.get(L);if($&&!x.has(L)){x.add(L);for(let[nu,ru]of Object.entries(te))$.data[nu]=ru;T.push($);return}let gt=t.reactiveChild(te),To=ml(p,f,gt,C);x.add(L),T.push({key:L,scope:gt,nodes:To,data:gt.data})}),C.fragment.firstChild&&((le=f.parentNode)==null||le.insertBefore(C.fragment,f));for(let[te,A]of C.pending)W(te,A);let N=new Set(T);for(let te of m)if(!(x.has(te.key)&&N.has(te)))for(let A of te.nodes)U(A),A.remove();let R=f;for(let te=T.length-1;te>=0;te--){let A=T[te],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let $ of A.nodes)(B=f.parentNode)==null||B.insertBefore($,R);R=(xe=A.nodes[0])!=null?xe:R}m=T})},{priority:P.FOR,terminal:!0});function Gd(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],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var Xd=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Jd=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Zd=/[\s\x00-\x1f]/g;function ef(e){let t=e.replace(Zd,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function cl(e,t,n,r=!1,o=!1){if(t==="class")return gl(e,n);if(t==="style")return xi(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Tt(`:srcdoc refused in ${Xe(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(E.sanitizeUrls&&!r){if(Jd.has(t)&&typeof n=="string"&&ef(n)){Tt(`value refused in :${t} of ${Xe(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)){Tt(`attribute "${t}" refused in ${Xe(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(Xd.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 ul=new WeakMap;function gl(e,t){let n=ul.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),ul.set(e,n));let r=new Set(n);vl(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function vl(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)vl(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 xi(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)xi(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)}}}b("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,u]of Object.entries(l))cl(e,c,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{cl(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>gl(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>xi(e,n()))});var dl={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},tf=["ctrl","shift","alt","meta"];function fl(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=He(e),l=M(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){q(a,`event ${n.type} ("${e}")`)}}var nf={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},hl={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{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(u)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=u=>{s&&(u.preventDefault(),u.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!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 l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),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"])hl[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=u=>{a=!0,i=u.clientX,s=u.clientY},c=u=>{if(!a)return;a=!1;let d=u.clientX-i,f=u.clientY-s,p=40;(e==="left"?d<-p&&Math.abs(d)>Math.abs(f):e==="right"?d>p&&Math.abs(d)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(d):f>p&&Math.abs(f)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function yl(e,t,n,r,o,i){var p;let s=(p=nf[t])!=null?p:t,a=hl[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),fl(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let g of tf)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in dl||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=dl[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),fl(n,r,m,e)}},u=o.debounce;u!==void 0&&(c=we(c,_(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(c=Dn(c,_(d===!0?250:d,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&yl(e,t,n,r,o,i)});var rf=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of rf)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{yl(t,e,n,r,o,i)});b("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",u=a==="INPUT"&&l==="radio",d=a==="SELECT",f=d&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?_(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||c||u||p?"change":"input",T=()=>{var C,N;let x;if(c){let R=O(t,n,"v-model");if(Array.isArray(R)){let le=s.value,B=[...R],xe=B.indexOf(le);s.checked&&xe===-1?B.push(le):!s.checked&&xe>-1&&B.splice(xe,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(f)x=Array.from(s.selectedOptions).map(R=>R.value);else if(p)x=r.single?(N=(C=s.files)==null?void 0:C[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}Yd(t,n,x)};y>0&&(T=we(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=O(t,n,"v-model");if(c){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(f){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(p)return;let C=x==null?"":String(x);s.value!==C&&(s.value=C),d&&s.value!==C&&bt(()=>{s.value!==C&&(s.value=C)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=O(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("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:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?O(o,n,"v-watch"):O(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),u=O(t,c,"v-watch");typeof u=="function"&&u.call(n.data,a,l)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Qe(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){q(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:P.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"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});X();ee();var El=()=>E.prefix;function D(e,t){return Le(e,`${El()}${t}`)}function Li(e,t){return ot(e,`${El()}${t}`)}function of(e,t){var s,a,l;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let c=O(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:Li(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:_((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:_((l=D(e,"timeout"))!=null?l:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:Li(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function bl(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&W(l,r)};switch(n){case"none":return;case"delete":U(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);U(e),e.replaceWith(a.content),o(l);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 l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&W(c,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))U(a);e.innerHTML=t,o(e.childNodes)}}}function Nr(e,t=0){if(e==null)return"";if(typeof e!="object")return Mt(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,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${Mt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${Nr(a[l],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>${Nr(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${Mt(r)}</dt><dd>${Nr(o,t+1)}</dd>`).join("")}</dl>`:""}function sf(e,t,n,r){let o=document.querySelector(e);if(!o){q(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))U(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of c)d.nodeType===1&&W(d,u)}}var Ti=new WeakMap;async function In(e){var d,f,p,m,v;let{el:t,scope:n,method:r}=e,o=of(t,n),i=Ge.has("confirm");if(o.confirmMessage&&!i&&!await af(o.confirmMessage))return;(d=Ti.get(t))==null||d.abort();let s=new AbortController;Ti.set(t,s);let a=(f=o.target)!=null?f:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let g=l!=null?l:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=l!=null?l:t;"disabled"in g&&(g.disabled=!1)}};c(),dn(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.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}),h=wi(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?sf(o.templateSelector,h,n,a):typeof h=="string"?bl(a,h,o.swap,n):h!=null&&(lf(),bl(a,Nr(h),o.swap,n)),o.toastSuccess&&Pe.success(o.toastSuccess),o.onSuccess&&ki(o.onSuccess,n,t,{data:h,response:g}),dn(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof re?(m=Ei(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Pe.error(o.toastError):o.onError||Pe.error(h),o.onError&&ki(o.onError,n,t,{error:g,message:h}),dn(t,"voodoo:error",{error:g,message:h}),q(g,`request ${r} ${e.url}`)}finally{u(),Ti.delete(t),o.onComplete&&ki(o.onComplete,n,t,{}),dn(t,"voodoo:complete",{})}}function dn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function ki(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=O(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function af(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var wl=!1;function lf(){wl||(wl=!0,Promise.resolve().then(()=>(Ee(),Ga)).then(({injectStyle:e})=>{e("json-render",`
|
|
129
|
+
`;function Il(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 Mn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function Cn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function jl(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 Bl(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function ir(e,t={}){ie("transitions",$l);let n=Il(t);return pe.reducedMotion?Promise.resolve():new Promise(r=>{Mn(e,n.enterFrom),Mn(e,n.enterActive),Bl(()=>{var s;Cn(e,n.enterFrom),Mn(e,n.enterTo);let o=(s=t.duration)!=null?s:jl(e),i=()=>{Cn(e,n.enterActive),Cn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function sr(e,t={}){ie("transitions",$l);let n=Il(t);return pe.reducedMotion?Promise.resolve():new Promise(r=>{Mn(e,n.leaveFrom),Mn(e,n.leaveActive),Bl(()=>{var s;Cn(e,n.leaveFrom),Mn(e,n.leaveTo);let o=(s=t.duration)!=null?s:jl(e),i=()=>{Cn(e,n.leaveActive),Cn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Qt(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 Gt(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 Rn(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 Hn(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 ql(e){let t=document;typeof t.startViewTransition=="function"&&!pe.reducedMotion?t.startViewTransition(e):e()}le();de();function Of(){return{on:!1,itemsVisited:0,keyEvaluations:0,prefixScanned:0,suffixScanned:0,middleReconciled:0,scopeAllocations:0,proxyWrites:0,arrayAllocations:0,keyMapLookups:0,domCreates:0,domRemoves:0,domMoves:0,domInserts:0,lisRuns:0,lisElements:0,paths:{}}}var D=Of();function Gi(e){D.paths[e]=(D.paths[e]||0)+1}function Ff(e,t,n){try{let o={t:"assign",op:"=",target:Qe(e),value:{t:"lit",v:n}};M(o,t)}catch(r){Q(r,`assignment in "${e}"`)}}function Yl(e){let t=x.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`)?te(e.getAttribute(`${t}duration`)):void 0}}w("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=pt(n());let r=e.firstChild;r&&r.nodeType===3&&Ci(r)})});w("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Ja(t),n(()=>{let i=r();for(let s of Array.from(t.children))X(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))ne(s,o)})});w("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Yl(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,ir(e,i)):sr(e,i).then(()=>{e.style.display="none"})})});w("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=x.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(x.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)Ri(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),Ci(p.template);let l=Yl(e),c=-1,u=[],d=()=>{let p=u;if(u=[],!p.length)return;let m=()=>{for(let v of p)X(v),v.remove()};l&&p[0]instanceof HTMLElement?sr(p[0],l).then(m):m()};r(()=>{let p=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||q(h.expression,t,"v-if")){p=g;break}}if(p===c||(c=p,d(),p===-1))return;let m=i[p].template,v=Ql(m,a,t);u=v,l&&v[0]instanceof HTMLElement&&ir(v[0],l)}),qe(e,d)},{priority:B.IF,terminal:!0});function Ql(e,t,n){let r=t.parentNode;if(!r)return[];let o=[];if(e.tagName==="TEMPLATE"){let i=e.content.cloneNode(!0),s=Array.from(i.childNodes);r.insertBefore(i,t);for(let a of s)o.push(a),a.nodeType===1&&(ht(a,n),ne(a,n))}else{let i=e.cloneNode(!0);D.on&&D.domCreates++,o.push(i),ht(i,n),r.insertBefore(i,t),ne(i,n)}return o}w("else-if",()=>{},{priority:B.IF,terminal:!0});w("else",()=>{},{priority:B.IF,terminal:!0});var $f=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/,If=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/,jf=[];function zl(e,t){return e===t?!0:t!==null&&typeof t=="object"&&e===se(t)}function Ul(e,t){return e===t||e!==e&&t!==t}function Bf(e){let t=e.length,n=new Int32Array(t),r=[];for(let a=0;a<t;a++){let l=e[a];if(l===0)continue;if(r.length===0){r.push(a);continue}let c=r[r.length-1];if(e[c]<l){n[a]=c,r.push(a);continue}let u=0,d=r.length-1;for(;u<d;){let f=u+d>>1;e[r[f]]<l?u=f+1:d=f}l<e[r[u]]&&(u>0&&(n[a]=r[u-1]),r[u]=a)}let o=r.length,i=new Int32Array(o),s=r[o-1];for(;o-- >0;)i[o]=s,s=n[s];return i}w("for",({el:e,scope:t,expression:n,effect:r})=>{var sa;let o=$f.exec(n);if(!o){Q(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(T=>T.trim()).filter(Boolean),s=o[2],[a,l,c]=i,u=x.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),f=document.createComment(x.devtools?` v-for: ${n} `:"");(sa=e.parentNode)==null||sa.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${u}for`),p.removeAttribute(":key"),p.removeAttribute(`${u}bind:key`),p.removeAttribute(`${u}key`),Ri(e);let m=p.tagName==="TEMPLATE",v=!1,g=!1,h=null,y=null;if(d&&If.test(d)){let T=d.split(".");T[0]===a?T.length===1?v=!0:T.length===2?h=T[1]:y=T.slice(1):l&&T.length===1&&T[0]===l&&(g=!0)}let b=[],k=[],E=null,C=0,$=null,N=null,ge=0,z=[],we=[],on=T=>{if(E)return E[T];let S={[a]:k[T]};return l&&(S[l]=T),S},H=T=>{if(D.on&&D.keyEvaluations++,g||!d)return T;let S=E?E[T][a]:k[T];if(v)return S;if(h!==null)return S==null?void 0:S[h];if(y!==null){let P=S;for(let j=0;j<y.length;j++){if(P==null)return;P=P[y[j]]}return P}return $||($=t.child({})),$.data=on(T),q(d,$,":key")},R=(T,S)=>{let P=se(T.data);if(E){let U=E[S];for(let J in U)zl(P[J],U[J])||(D.on&&D.proxyWrites++,T.data[J]=U[J]);return}let j=k[S];zl(P[a],j)||(D.on&&D.proxyWrites++,T.data[a]=j),l!==void 0&&P[l]!==S&&(D.on&&D.proxyWrites++,T.data[l]=S)},Y=(T,S,P,j)=>{if(T>=S)return;let U=f.parentNode;if(!U)return;if(we.push(z.length),m){for(let O=T;O<S;O++){let Ee=t.reactiveChild(on(O));D.on&&(D.scopeAllocations++,D.itemsVisited++);let Ae=Ql(p,P,Ee);j.push({key:H(O),scope:Ee,nodes:Ae,data:Ee.data})}return}let J=document.createDocumentFragment();for(let O=T;O<S;O++){let Ee=t.reactiveChild(on(O)),Ae=p.cloneNode(!0);ht(Ae,Ee),J.appendChild(Ae),z.push([Ae,Ee]),j.push({key:H(O),scope:Ee,nodes:[Ae],data:Ee.data}),D.on&&(D.scopeAllocations++,D.domCreates++,D.itemsVisited++)}D.on&&D.domInserts++,U.insertBefore(J,P)},Dt=T=>{let S=T.nodes;for(let P=0;P<S.length;P++)D.on&&D.domRemoves++,X(S[P]),S[P].remove()},Qo=(T,S)=>{let P=f.parentNode;if(!P)return;let j=T.nodes;if(j[j.length-1].nextSibling!==S)for(let U=0;U<j.length;U++)D.on&&D.domMoves++,P.insertBefore(j[U],S)},ia=T=>T<b.length?b[T].nodes[0]:f,Go=(T,S,P)=>{let j=P.length;if(S===0&&j===0)return;if(b.length===0){b=P;return}if(j===0){b.splice(T,S);return}if(j<=1024){b.splice(T,S,...P);return}let U=new Array(b.length-S+j),J=0;for(let O=0;O<T;O++)U[J++]=b[O];for(let O=0;O<j;O++)U[J++]=P[O];for(let O=T+S;O<b.length;O++)U[J++]=b[O];b=U},$u=()=>{for(let T=we.length-1;T>=0;T--){let S=we[T],P=T+1<we.length?we[T+1]:z.length;for(let j=S;j<P;j++)ne(z[j][0],z[j][1])}z.length=0,we.length=0},_=0,fe=0,he=0,Iu=T=>{let S=ci(T,ge);if(!S)return!1;let P=b.length;_=0,fe=0,he=0;let j=P;for(let U=0;U<S.length;U++){let J=S[U],O=J.index,Ee=J.type===2?1:J.removed,Ae=J.type===2?1:J.added,Et=O+Ee;U===0?(_=O,fe=Et,he=O+Ae):Et<=he?(O<_&&(_=O),he+=Ae-Ee):(O<_&&(_=O),fe=Et-he+fe,he=O+Ae),fe<_&&(fe=_),he<_&&(he=_),j+=Ae-Ee}if(j!==C||_>fe||_>he||fe>P||he>C)return!1;if(D.on&&Gi(S.length===0?"unchanged":"mutation"),l!==void 0&&fe-he!==0)for(let U=he;U<C;U++)R(b[U-he+fe],U);return!0},ju=()=>{let T=b.length,S=C,P=0,j=T<S?T:S;for(;P<j;){let O=b[P];if(!Ul(O.key,H(P)))break;R(O,P),P++}D.on&&(D.prefixScanned+=P,D.itemsVisited+=P);let U=T-1,J=S-1;for(;U>=P&&J>=P;){let O=b[U];if(!Ul(O.key,H(J)))break;R(O,J),U--,J--}if(D.on){let O=T-1-U;D.suffixScanned+=O,D.itemsVisited+=O,Gi("scan")}_=P,fe=U+1,he=J+1},Bu=()=>{let T=he-_;if(_>=fe){if(T>0){let Z=[];Y(_,he,ia(_),Z),Go(_,0,Z)}return}if(T===0){D.on&&(D.itemsVisited+=fe-_);for(let Z=_;Z<fe;Z++)Dt(b[Z]);Go(_,fe-_,jf);return}D.on&&(D.arrayAllocations+=3,D.middleReconciled+=T,D.itemsVisited+=T+(fe-_));let S=new Map;for(let Z=_;Z<he;Z++){let xe=H(Z);d&&S.has(xe)&&ja(e,xe,n),S.set(xe,Z)}let P=new Int32Array(T),j=new Array(T),U=0,J=!1,O=0;for(let Z=_;Z<fe;Z++){let xe=b[Z];D.on&&D.keyMapLookups++;let Ie=U>=T?void 0:S.get(xe.key);if(Ie===void 0||j[Ie-_]!==void 0){Dt(xe);continue}P[Ie-_]=Z+1,j[Ie-_]=xe,Ie>=O?O=Ie:J=!0,R(xe,Ie),U++}let Ee=J?Bf(P):null;D.on&&J&&(D.lisRuns++,D.lisElements+=T);let Ae=Ee?Ee.length-1:-1,Et=new Array(T),Vn=ia(fe),Nt=-1;for(let Z=T-1;Z>=0;Z--){let xe=_+Z,Ie=j[Z];if(Ie===void 0){Nt<0&&(Nt=xe+1);continue}if(Nt>=0){let _n=[];Y(xe+1,Nt,Vn,_n);for(let Ar=0;Ar<_n.length;Ar++)Et[Z+1+Ar]=_n[Ar];_n.length&&(Vn=_n[0].nodes[0]),Nt=-1}Et[Z]=Ie,J&&(Ae<0||Z!==Ee[Ae])?Qo(Ie,Vn):J&&Ae--,Vn=Ie.nodes[0]}if(Nt>=0){let Z=[];Y(_,Nt,Vn,Z);for(let xe=0;xe<Z.length;xe++)Et[xe]=Z[xe]}Go(_,fe-_,Et)};qe(f,()=>{for(let T of b)Dt(T);b=[],N=null,ge=0}),r(()=>{let T=q(s,t,"v-for"),S=se(T),P=!1;if(Array.isArray(S)){Oe(S,"length"),Oe(S,Ke),k=S,E=null,C=S.length;let j=li(S);S===N&&d&&!g&&(P=Iu(S)),N=S,ge=j}else E=qf(T,a,l,c),k=E,C=E.length,N=null,ge=0,D.on&&(D.arrayAllocations+=C+1);P||ju(),Bu(),$u()})},{priority:B.FOR,terminal:!0});function qf(e,t,n,r){let 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],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var zf=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Uf=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Vf=/[\s\x00-\x1f]/g;function _f(e){let t=e.replace(Vf,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Vl(e,t,n,r=!1,o=!1){if(t==="class")return Gl(e,n);if(t==="style")return Xi(e,n);if(x.sanitizeUrls&&!o&&t==="srcdoc"){qt(`:srcdoc refused in ${gt(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(x.sanitizeUrls&&!r){if(Uf.has(t)&&typeof n=="string"&&_f(n)){qt(`value refused in :${t} of ${gt(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)){qt(`attribute "${t}" refused in ${gt(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(zf.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 _l=new WeakMap;function Gl(e,t){let n=_l.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),_l.set(e,n));let r=new Set(n);Xl(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Xl(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)Xl(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 Xi(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Xi(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)}}}w("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,u]of Object.entries(l))Vl(e,c,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Vl(e,t,o(),s,a)})},{priority:B.BIND});w("class",({el:e,effect:t,evaluate:n})=>{t(()=>Gl(e,n()))});w("style",({el:e,effect:t,evaluate:n})=>{t(()=>Xi(e,n()))});var Wl={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Wf=["ctrl","shift","alt","meta"];function Kl(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=Qe(e),l=M(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){Q(a,`event ${n.type} ("${e}")`)}}var Kf={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Jl={hold(e,t,n,r){let o=te(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${x.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{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(u)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=u=>{s&&(u.preventDefault(),u.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!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 l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),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"])Jl[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=u=>{a=!0,i=u.clientX,s=u.clientY},c=u=>{if(!a)return;a=!1;let d=u.clientX-i,f=u.clientY-s,p=40;(e==="left"?d<-p&&Math.abs(d)>Math.abs(f):e==="right"?d>p&&Math.abs(d)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(d):f>p&&Math.abs(f)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function Zl(e,t,n,r,o,i){var p;let s=(p=Kf[t])!=null?p:t,a=Jl[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Kl(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let g of Wf)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in Wl||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=Wl[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Kl(n,r,m,e)}},u=o.debounce;u!==void 0&&(c=Fe(c,te(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(c=tr(c,te(d===!0?250:d,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}w("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&Zl(e,t,n,r,o,i)});var Yf=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Yf)w(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{Zl(t,e,n,r,o,i)});w("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",u=a==="INPUT"&&l==="radio",d=a==="SELECT",f=d&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?te(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${x.prefix}debounce`)?te(e.getAttribute(`${x.prefix}debounce`),250):0,b=v||d||c||u||p?"change":"input",k=()=>{var C,$;let E;if(c){let N=q(t,n,"v-model");if(Array.isArray(N)){let ge=s.value,z=[...N],we=z.indexOf(ge);s.checked&&we===-1?z.push(ge):!s.checked&&we>-1&&z.splice(we,1),E=z}else E=s.checked}else if(u){if(!s.checked)return;E=s.value}else if(f)E=Array.from(s.selectedOptions).map(N=>N.value);else if(p)E=r.single?($=(C=s.files)==null?void 0:C[0])!=null?$:null:s.files;else if(E=s.value,h&&typeof E=="string"&&(E=E.trim()),g&&typeof E=="string"){let N=E===""?null:Number(E);E=N===null||Number.isNaN(N)?E:N}Ff(t,n,E)};y>0&&(k=Fe(k,y)),s.addEventListener(b,k),i(()=>s.removeEventListener(b,k)),o(()=>{let E=q(t,n,"v-model");if(c){s.checked=Array.isArray(E)?E.includes(s.value):!!E;return}if(u){s.checked=String(E)===s.value;return}if(f){let $=Array.isArray(E)?E.map(String):[];for(let N of Array.from(s.options))N.selected=$.includes(N.value);return}if(p)return;let C=E==null?"":String(E);s.value!==C&&(s.value=C),d&&s.value!==C&&$t(()=>{s.value!==C&&(s.value=C)})})},{priority:B.MODEL});w("init",({el:e,expression:t,scope:n})=>{Me(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:B.INIT});w("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});w("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});w("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${x.prefix}model`),i,s=!0;r(()=>{let a=o?q(o,n,"v-watch"):q(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),u=q(t,c,"v-watch");typeof u=="function"&&u.call(n.data,a,l)}})});w("cloak",({el:e})=>{e.removeAttribute(`${x.prefix}cloak`)});w("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=pt(r))});w("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){Q(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"])w(e,()=>{},{priority:B.TRANSITION});w("data",()=>{},{priority:B.DATA});w("component",()=>{},{priority:B.COMPONENT});le();de();var nc=()=>x.prefix;function I(e,t){return ze(e,`${nc()}${t}`)}function es(e,t){return Tt(e,`${nc()}${t}`)}function Qf(e,t){var s,a,l;let n=I(e,"target"),r=I(e,"loading"),o={},i=I(e,"headers");if(i){let c=q(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:I(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:I(e,"loading-class")||"v-loading",disableWhileLoading:es(e,"disable-loading"),confirmMessage:I(e,"confirm"),toastSuccess:I(e,"toast-success"),toastError:I(e,"toast-error"),onSuccess:I(e,"on-success"),onError:I(e,"on-error"),onComplete:I(e,"on-complete"),cacheMs:te((s=I(e,"cache"))!=null?s:void 0,0),retry:Number((a=I(e,"retry"))!=null?a:0),timeout:te((l=I(e,"timeout"))!=null?l:void 0,Re.defaults.timeout),storeAs:I(e,"as"),jsonPath:I(e,"json-path"),templateSelector:I(e,"template"),offlineQueue:es(e,"offline-queue"),headers:o,redirect:I(e,"redirect"),scrollTo:I(e,"scroll-to")}}function ec(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&ne(l,r)};switch(n){case"none":return;case"delete":X(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);X(e),e.replaceWith(a.content),o(l);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 l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&ne(c,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))X(a);e.innerHTML=t,o(e.childNodes)}}}function so(e,t=0){if(e==null)return"";if(typeof e!="object")return Wt(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,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${Wt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${so(a[l],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>${so(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${Wt(r)}</dt><dd>${so(o,t+1)}</dd>`).join("")}</dl>`:""}function Gf(e,t,n,r){let o=document.querySelector(e);if(!o){Q(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))X(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of c)d.nodeType===1&&ne(d,u)}}var Ji=new WeakMap;async function ar(e){var d,f,p,m,v;let{el:t,scope:n,method:r}=e,o=Qf(t,n),i=mt.has("confirm");if(o.confirmMessage&&!i&&!await Xf(o.confirmMessage))return;(d=Ji.get(t))==null||d.abort();let s=new AbortController;Ji.set(t,s);let a=(f=o.target)!=null?f:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let g=l!=null?l:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=l!=null?l:t;"disabled"in g&&(g.disabled=!1)}};c(),Pn(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await Re.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}),h=Yi(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?Gf(o.templateSelector,h,n,a):typeof h=="string"?ec(a,h,o.swap,n):h!=null&&(Jf(),ec(a,so(h),o.swap,n)),o.toastSuccess&&Xe.success(o.toastSuccess),o.onSuccess&&Zi(o.onSuccess,n,t,{data:h,response:g}),Pn(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof me?(m=Qi(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Xe.error(o.toastError):o.onError||Xe.error(h),o.onError&&Zi(o.onError,n,t,{error:g,message:h}),Pn(t,"voodoo:error",{error:g,message:h}),Q(g,`request ${r} ${e.url}`)}finally{u(),Ji.delete(t),o.onComplete&&Zi(o.onComplete,n,t,{}),Pn(t,"voodoo:complete",{})}}function Pn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Zi(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=q(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Xf(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var tc=!1;function Jf(){tc||(tc=!0,Promise.resolve().then(()=>($e(),Cl)).then(({injectStyle:e})=>{e("json-render",`
|
|
130
130
|
.v-json-table{width:100%;border-collapse:collapse;font:14px/1.5 var(--v-font-sans,system-ui,sans-serif)}
|
|
131
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
132
|
.v-json-table th{font-weight:650;color:var(--v-text-muted,#6B6580);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
|
|
@@ -135,10 +135,10 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
135
135
|
.v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
|
|
136
136
|
.v-json-object dd{margin:0}
|
|
137
137
|
.v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
|
|
138
|
-
`)}))}function cf(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 uf({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||cf(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=_((d=D(e,"debounce"))!=null?d:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=we(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var df=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of df)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{uf({el:n,scope:r,cleanup:i,run:a=>{let l=jn(o,r);if(!l)return;let c=D(n,"body")||D(n,"data-body"),u=c?O(c,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),f=d?O(d,r,"v-params"):void 0;In({el:n,scope:r,method:t,url:l,body:u,params:f,event:a})}})});function jn(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=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=jn(n,t);r&&In({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=jn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){In({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),In({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,f;let o=e,i=jn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),l=Number((f=D(e,"min-length"))!=null?f:0),c=we(()=>{let p=o.value.trim();p.length<l||In({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),u=()=>c();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),c.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=Pr(()=>jn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((l=D(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=D(e,"retry"))!=null?c:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:Li(e,"manual"),onSuccess:f=>dn(e,"voodoo:success",{data:f}),onError:(f,p)=>dn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});wa(Ma);Sa(it);Na(Tl);Za();rl();var Bn=new Map;function xl(e,t){let n=Bn.get(e);return n||Bn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ff(e,t){let n=xl(e,r=>{n(),t(r)});return n}function pf(e,t){let n=Bn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){q(o,`event "${e}"`)}}function mf(e,t){var n;if(!t){Bn.delete(e);return}(n=Bn.get(e))==null||n.delete(t)}function Tl(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,l(c)),(d=n.beforeMount)==null||d.call(n,i.el,l(c)),i.effect(()=>{var m,v;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(v=n.updated)==null||v.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function gf(e){return Object.defineProperties(je.data,Object.getOwnPropertyDescriptors(e)),je.data}var vf="0.12.4",Or={...pi,version:vf,config:E,reactive:V,ref:Te,shallowRef:jo,computed:wt,effect:ve,watch:he,watchEffect:qo,nextTick:bt,toRaw:ie,markRaw:kn,unref:Bo,stop:Ut,effectScope:Oo,EffectScope:Re,flushSync:Ho,data:gf,store:Tr,stores:St,removeStore:Ia,storeNames:ja,scope:je,component:Jt,components:ce,directive:Tl,directives:Ge,magic:H,magics:Sn,createApp:Oa,start:Ta,whenReady:Rn,whenElement:Er,walk:W,refresh:La,destroy:U,stopObserving:ka,getScope:Yt,findScope:De,addCleanup:ke,parseAttribute:Kt,parse:He,tokenize:dr,evaluate:M,evaluateIn:O,stringify:Qe,clearParseCache:Ys,globals:pe,http:me,request:at,HttpError:re,resource:Pr,toast:Pe,storage:G,session:Mr,cookie:Cr,cache:Rr,url:ct,theme:qe,clipboard:bi,screen:Ne,network:Rt,enter:Fn,leave:$n,fadeIn:cn,fadeOut:un,slideUp:Dt,slideDown:Ht,viewTransition:ll,injectStyle:Q,ensureTokens:se,on:xl,once:ff,off:mf,emit:pf,use(e,t){pr(Or,e,t)},onError(e){Do(e)},instances:br,Scope:xt,PRIORITY:P,VoodooSyntaxError:z,VoodooRuntimeError:J};$a(Or);X();var hf=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 Dl(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Oe(e){return e.length<2?e:Array.from(new Set(e))}function Pt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Ai(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 Pl(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function yf(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ze)return e.toArray();if(typeof e=="string")return Nt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Nt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Nt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Pl(o))return Ai(o);let i=[];for(let s of yf(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Oe(i)}if(e instanceof ze)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 Oe(o)}return[]}function kl(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Pl(r.trim())?Ai(r):[document.createTextNode(r)]}if(e instanceof ze)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 Fr(e,t,n){let r=Dl(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!hf.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function bf(e,t){for(let[n,r]of Object.entries(t))Fr(e,n,r)}function Ll(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 Al(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Nl=new WeakMap;function Sl(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Ml(e){e.removeAttribute("hidden");let t=Nl.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 Cl(e){let t=e.style.display;t&&t!=="none"&&Nl.set(e,t),e.style.display="none"}var Rl="input,select,textarea";function Hl(e){return e.matches(Rl)?[e]:Array.from(e.querySelectorAll(Rl))}function wf(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 $r=new WeakMap;function Ef(e){let t=$r.get(e);return t||$r.set(e,t=[]),t}var ze=class e{constructor(t=[]){S(this,"length");S(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(Oe(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe([...this.elements,...Nt(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))U(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))U(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 l of Array.from(s.options))l.selected=a.includes(l.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[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));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=Pt(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,l]of Object.entries(i.dataset))s[a]=Ll(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Al(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Al(String(n));if(t.length<2){let i=this.elements[0];return i?Ll(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)bf(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Dl(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Fr(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)Fr(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)Fr(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=Pt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Pt(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=Pt(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 kl(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=Nt(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=Nt(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 kl(t))r.insertBefore(o,n);U(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Nt(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);U(n),n.remove()}}return this}remove(){for(let t of this.elements)U(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))U(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 l of this.elements)for(let c of Pt(t)){let u=d=>{if(!o){i.call(l,d);return}let f=d.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,d)};l.addEventListener(c,u,s),Ef(l).push({type:c,selector:o,handler:i,wrapped:u,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?Pt(t):null;for(let a of this.elements){let l=$r.get(a);if(!l)continue;let c=[];for(let u of l){let d=!s||s.includes(u.type),f=o===null||u.selector===o,p=i===null||u.handler===i;d&&f&&p?a.removeEventListener(u.type,u.wrapped,u.options):c.push(u)}$r.set(a,c)}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(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};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)Ml(t);return this}hide(){for(let t of this.elements)Cl(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Sl(n):t)?Ml(n):Cl(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)un(n,t);return this}slideUp(t=240){for(let n of this.elements)Dt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ht(n,t);return this}slideToggle(t=240){for(let n of this.elements)Sl(n)?(n.removeAttribute("hidden"),Ht(n,t)):Dt(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 Hl(t)){if(!wf(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 Hl(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let u=l.name.endsWith("[]"),d=u?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(u){let m=n[d];Array.isArray(m)?m.push(p):n[d]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[d]=p:n[d]=[m,p];continue}n[d]=p}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&&U(n),W(n,De(n.parentNode));return this}destroy(){for(let t of this.elements)U(t);return this}};function Si(e,t){if(typeof e=="function"){Mi(e);let n=typeof document!="undefined"?document.documentElement:null;return new ze(n?[n]:[])}return new ze(Nt(e,t))}function Mi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Pa(()=>{try{e==null||e()}catch(n){q(n,"V.ready")}t()})})}function Ol(e){return new ze(Ai(e))}X();ee();Ee();Ee();ee();var Ci=new WeakMap;function dt(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Ir(e,t){return ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`)}function j(e,t){let n=Ci.get(e);return n&&t in n?n[t]:dt(e,t)}function jr(e,t,n){var o;let r=(o=Ci.get(e))!=null?o:{};r[t]=n,Ci.set(e,r)}function F(e){b(e,({el:t,expression:n})=>{jr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ue(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var xf=`
|
|
138
|
+
`)}))}function Zf(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 ep({el:e,cleanup:t,run:n}){var u,d;let r=I(e,"trigger")||Zf(e),[o,...i]=r.split(/[.\s]+/),s=te((u=I(e,"poll"))!=null?u:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=te((d=I(e,"debounce"))!=null?d:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=Fe(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var tp=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of tp)w(e,({el:n,scope:r,expression:o,cleanup:i})=>{ep({el:n,scope:r,cleanup:i,run:a=>{let l=lr(o,r);if(!l)return;let c=I(n,"body")||I(n,"data-body"),u=c?q(c,r.child({$event:a}),"v-body"):void 0,d=I(n,"params"),f=d?q(d,r,"v-params"):void 0;ar({el:n,scope:r,method:t,url:l,body:u,params:f,event:a})}})});function lr(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=q(n,t,"URL");return typeof o=="string"?o:n}w("load",({el:e,scope:t,expression:n})=>{let r=lr(n,t);r&&ar({el:e,scope:t,method:"GET",url:r})});w("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=lr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){ar({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),ar({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});w("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,f;let o=e,i=lr(n,t),s=I(e,"param")||o.getAttribute("name")||"q",a=te((d=I(e,"debounce"))!=null?d:void 0,300),l=Number((f=I(e,"min-length"))!=null?f:0),c=Fe(()=>{let p=o.value.trim();p.length<l||ar({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),u=()=>c();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),c.cancel()})});w("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,u,d;let o=n.indexOf(":"),i=I(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=io(()=>lr(s,t),{method:(I(e,"method")||"GET").toUpperCase(),params:()=>I(e,"params")?q(I(e,"params"),t,"v-params"):void 0,cache:te((l=I(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=I(e,"retry"))!=null?c:0),timeout:te((u=I(e,"timeout"))!=null?u:void 0,Re.defaults.timeout),jsonPath:I(e,"json-path"),poll:te((d=I(e,"poll"))!=null?d:void 0,0),manual:es(e,"manual"),onSuccess:f=>Pn(e,"voodoo:success",{data:f}),onError:(f,p)=>Pn(e,"voodoo:error",{error:f,message:p})});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"])w(e,()=>{},{priority:B.TRANSITION});Za(al);sl(ht);pl(oc);Pl();Fl();var cr=new Map;function rc(e,t){let n=cr.get(e);return n||cr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function np(e,t){let n=rc(e,r=>{n(),t(r)});return n}function rp(e,t){let n=cr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){Q(o,`event "${e}"`)}}function op(e,t){var n;if(!t){cr.delete(e);return}(n=cr.get(e))==null||n.delete(t)}function oc(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;w(e,i=>{var u,d;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,l(c)),(d=n.beforeMount)==null||d.call(n,i.el,l(c)),i.effect(()=>{var m,v;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(v=n.updated)==null||v.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:B.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function ip(e){return Object.defineProperties(rt.data,Object.getOwnPropertyDescriptors(e)),rt.data}var sp="0.13.0",ao={...qi,version:sp,config:x,reactive:ee,ref:Be,shallowRef:pi,computed:It,effect:He,watch:Pe,watchEffect:gi,nextTick:$t,toRaw:se,markRaw:Yn,unref:mi,stop:un,effectScope:si,EffectScope:Ye,flushSync:ni,data:ip,store:Qr,stores:_t,removeStore:hl,storeNames:yl,scope:rt,component:wn,components:Te,directive:oc,directives:mt,magic:F,magics:Gn,createApp:ml,start:nl,whenReady:Zn,whenElement:Kr,walk:ne,refresh:ol,destroy:X,stopObserving:rl,getScope:vn,findScope:Ge,addCleanup:qe,parseAttribute:gn,parse:Qe,tokenize:Fr,evaluate:M,evaluateIn:q,stringify:pt,clearParseCache:Sa,globals:Ce,http:Re,request:Lt,HttpError:me,resource:io,toast:Xe,storage:ae,session:eo,cookie:to,cache:no,url:St,theme:it,clipboard:Ki,screen:Je,network:Yt,enter:ir,leave:sr,fadeIn:Rn,fadeOut:Hn,slideUp:Gt,slideDown:Qt,viewTransition:ql,injectStyle:ie,ensureTokens:ye,on:rc,once:np,off:op,emit:rp,use(e,t){Ir(ao,e,t)},onError(e){ri(e)},instances:_r,Scope:Bt,PRIORITY:B,VoodooSyntaxError:G,VoodooRuntimeError:ce};vl(ao);le();var ap=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 pc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Ze(e){return e.length<2?e:Array.from(new Set(e))}function Xt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function ts(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 mc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function lp(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof st)return e.toArray();if(typeof e=="string")return Jt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Jt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Jt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(mc(o))return ts(o);let i=[];for(let s of lp(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Ze(i)}if(e instanceof st)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 Ze(o)}return[]}function ic(e){if(e==null)return[];if(typeof e=="string"){let r=e;return mc(r.trim())?ts(r):[document.createTextNode(r)]}if(e instanceof st)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 lo(e,t,n){let r=pc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!ap.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function cp(e,t){for(let[n,r]of Object.entries(t))lo(e,n,r)}function sc(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 ac(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var gc=new WeakMap;function lc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function cc(e){e.removeAttribute("hidden");let t=gc.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 uc(e){let t=e.style.display;t&&t!=="none"&&gc.set(e,t),e.style.display="none"}var dc="input,select,textarea";function fc(e){return e.matches(dc)?[e]:Array.from(e.querySelectorAll(dc))}function up(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 co=new WeakMap;function dp(e){let t=co.get(e);return t||co.set(e,t=[]),t}var st=class e{constructor(t=[]){A(this,"length");A(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(Ze(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Ze(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(Ze(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(Ze(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(Ze(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(Ze(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(Ze(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(Ze(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(Ze([...this.elements,...Jt(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))X(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))X(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 l of Array.from(s.options))l.selected=a.includes(l.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[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));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=Xt(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,l]of Object.entries(i.dataset))s[a]=sc(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[ac(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ac(String(n));if(t.length<2){let i=this.elements[0];return i?sc(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)cp(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=pc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)lo(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)lo(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)lo(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=Xt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Xt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Xt(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=Xt(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 ic(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=Jt(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=Jt(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 ic(t))r.insertBefore(o,n);X(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Jt(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);X(n),n.remove()}}return this}remove(){for(let t of this.elements)X(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))X(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 l of this.elements)for(let c of Xt(t)){let u=d=>{if(!o){i.call(l,d);return}let f=d.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,d)};l.addEventListener(c,u,s),dp(l).push({type:c,selector:o,handler:i,wrapped:u,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?Xt(t):null;for(let a of this.elements){let l=co.get(a);if(!l)continue;let c=[];for(let u of l){let d=!s||s.includes(u.type),f=o===null||u.selector===o,p=i===null||u.handler===i;d&&f&&p?a.removeEventListener(u.type,u.wrapped,u.options):c.push(u)}co.set(a,c)}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(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};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)cc(t);return this}hide(){for(let t of this.elements)uc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?lc(n):t)?cc(n):uc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Rn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Hn(n,t);return this}slideUp(t=240){for(let n of this.elements)Gt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Qt(n,t);return this}slideToggle(t=240){for(let n of this.elements)lc(n)?(n.removeAttribute("hidden"),Qt(n,t)):Gt(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 fc(t)){if(!up(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 fc(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let u=l.name.endsWith("[]"),d=u?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(u){let m=n[d];Array.isArray(m)?m.push(p):n[d]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[d]=p:n[d]=[m,p];continue}n[d]=p}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&&X(n),ne(n,Ge(n.parentNode));return this}destroy(){for(let t of this.elements)X(t);return this}};function ns(e,t){if(typeof e=="function"){rs(e);let n=typeof document!="undefined"?document.documentElement:null;return new st(n?[n]:[])}return new st(Jt(e,t))}function rs(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{fl(()=>{try{e==null||e()}catch(n){Q(n,"V.ready")}t()})})}function vc(e){return new st(ts(e))}le();de();$e();$e();de();var os=new WeakMap;function Ct(e,t){var n;return(n=ze(e,`${x.prefix}${t}`))!=null?n:ze(e,`data-v-${t}`)}function uo(e,t){return Tt(e,`${x.prefix}${t}`)||Tt(e,`data-v-${t}`)}function K(e,t){let n=os.get(e);return n&&t in n?n[t]:Ct(e,t)}function fo(e,t,n){var o;let r=(o=os.get(e))!=null?o:{};r[t]=n,os.set(e,r)}function V(e){w(e,({el:t,expression:n})=>{fo(t,e,n)},{priority:B.BIND})}function re(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function at(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var fp=`
|
|
139
139
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
140
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
|
-
`,
|
|
141
|
+
`,Mt=null;function Ue(e){if(typeof document=="undefined")return;ie("ui-live",fp),(!Mt||!Mt.isConnected)&&(Mt=document.createElement("div"),Mt.className="v-visually-hidden",Mt.setAttribute("role","status"),Mt.setAttribute("aria-live","polite"),document.body.appendChild(Mt));let t=Mt;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function po(e,t,n){return Ur(e,t).filter(r=>hn(r,n)===e)}$e();de();var pp=`
|
|
142
142
|
.v-draggable,.v-sortable>*{-webkit-user-select:none;user-select:none}
|
|
143
143
|
.v-drag-handle{cursor:grab;touch-action:none}
|
|
144
144
|
.v-drag-handle:active{cursor:grabbing}
|
|
@@ -162,7 +162,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
162
162
|
@media (prefers-reduced-motion: reduce){
|
|
163
163
|
.v-drag-ghost{transition:none !important}
|
|
164
164
|
}
|
|
165
|
-
`;function zn(){se(),Q("dnd",Tf)}var fn=new Map,pn=new Map;function Hi(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function _e(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function kf(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Fl(e){return _e(e).map((t,n)=>kf(t,n))}function $l(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var k=null,qn=0;function Lf(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function Il(e,t){if(!(k!=null&&k.ghost))return;let n=k.axis==="y"?k.lastX:e,r=k.axis==="x"?k.lastY:t;k.ghost.style.transform=`translate3d(${Math.round(n-k.grabX)}px, ${Math.round(r-k.grabY)}px, 0)`}function Af(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function Sf(){if(!k)return;let e=56,t=16,n=k.lastX,r=k.lastY,o=document.elementFromPoint(n,r),i=Af(o!=null?o:k.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function Mf(){let e=()=>{!k||k.keyboard||(Sf(),qn=requestAnimationFrame(e))};qn=requestAnimationFrame(e)}function Cf(){qn&&cancelAnimationFrame(qn),qn=0}function jl(e,t){let n=fn.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Di(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Bl(e,t){for(let n of pn.values())n.el.classList.toggle("v-drop-active",t&&Di(n,e));for(let n of fn.values())n.el.classList.toggle("v-drop-active",t&&jl(n.el,e))}function Rf(e,t,n,r){let o=$l(e),i=null;for(let s of _e(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function Pi(e,t){zn();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;k={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?_e(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):(k.ghost=Lf(e,n),Il(t.x,t.y),Mf()),Bl(k,!0),document.addEventListener("keydown",zl,!0),K(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Hf(e,t){var a,l,c;if(!k)return;k.lastX=e,k.lastY=t,Il(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;k.mode==="sort"&&r&&jl(r,k)?(k.overList&&k.overList!==r&&k.overList.classList.remove("v-drop-over"),k.overList=r,r.classList.add("v-drop-over"),Rf(r,k.item,e,t)):k.overList&&!r&&k.overList.classList.remove("v-drop-over");let i=o?pn.get(o):void 0,s=i?Di(i,k):!1;k.overDrop&&k.overDrop!==o&&(k.overDrop.classList.remove("v-drop-over"),k.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),k.overDrop=o),(c=k.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Df(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function ql(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),Bl(e,!1),Cf(),document.removeEventListener("keydown",zl,!0),k=null}function Ni(){var i;let e=k;if(!e)return;let t=e.item.parentElement,n=t?_e(t).indexOf(e.item):-1,r=e.overDrop,o=r?pn.get(r):void 0;if(e.mode==="sort"&&t&&fn.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Fl(t)};K(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&K(e.startList,"voodoo:sorted",{...a,order:Fl(e.startList)}),Ae(`Item moved to position ${n+1} of ${_e(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),Ue(o.expression,o.scope,r,a,s),Ae("Item dropped in drop zone")}K(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),ql(e)}function Ri(){let e=k;e&&(Df(e),K(e.item,"voodoo:drag-cancel",{item:e.item}),Ae("Drag canceled"),ql(e))}function zl(e){!k||e.key!=="Escape"||(e.preventDefault(),Ri())}function Ul(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=p=>{if(p.pointerId===o){if(!a){if(Math.hypot(p.clientX-i,p.clientY-s)<4||!r)return;a=!0,Pi(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),Hf(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),r=null,o=-1,a=!1},u=p=>{p.pointerId===o&&(a&&Ni(),c())},d=()=>{a&&Ri(),c()},f=p=>{if(p.button!==0||k)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let v=t.itemFrom(m);v&&(r=v,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",d))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&Ri(),c()})}function Pf(e){return e?Array.from(fn.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function Nf(e,t){if(!k)return!1;let n=e.parentElement;if(!n)return!1;let r=$l(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=_e(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),Ae(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Pf(k.group),c=l.indexOf(n);if(c===-1)return!1;let u=l[c+(t==="ArrowRight"?1:-1)];return u?(u.appendChild(e),Ae(`Moved to list ${l.indexOf(u)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Of(e){return Array.from(pn.values()).filter(t=>Di(t,e)).map(t=>t.el)}b("dnd-group",({el:e,expression:t})=>{zn();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});b("sortable",({el:e,expression:t,cleanup:n})=>{zn(),e.classList.add("v-sortable");let r=j(e,"sortable-handle")||t.trim()||null,o={el:e,group:Hi(e,j(e,"sortable-group")),handle:r};fn.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of _e(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of _e(e))i(l)});s==null||s.observe(e,{childList:!0}),Ul(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=_e(e).find(u=>u===l||u.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let u=_e(e).find(d=>d===c||d.contains(c));if(u){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),k&&k.item===u){Ni(),Ae("Item dropped");return}if(k)return;Pi(u,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ae("Item grabbed. Use arrow keys to move and space to drop.");return}!k||k.item!==u||l.key.startsWith("Arrow")&&Nf(u,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),fn.delete(e)})});F("sortable-group");F("sortable-handle");b("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;zn(),e.classList.add("v-draggable");let o=j(e,"draggable-handle")||null,i=(j(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=j(e,"draggable-data")||t.trim(),l=Hi(e,j(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let c=()=>a?O(a,n,"v-draggable-data"):null;Ul(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let u=[],d=0,f=()=>{u.forEach((g,h)=>g.classList.toggle("v-drop-over",h===d));let v=u[d];!v||!k||(k.overDrop=v,ne.reducedMotion?v.scrollIntoView({block:"nearest"}):v.scrollIntoView({block:"nearest",behavior:"smooth"}),Ae(v.getAttribute("aria-label")||`Target ${d+1} of ${u.length}`))},p=v=>{if(v.key===" "||v.key==="Spacebar"){if(v.preventDefault(),k&&k.item===e){Ni(),u=[];return}if(k)return;Pi(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),u=k?Of(k):[],d=0,u.length?f():Ae("No targets available");return}if(!(!k||k.item!==e||!u.length)){if(v.key==="ArrowDown"||v.key==="ArrowRight"){v.preventDefault(),d=(d+1)%u.length,f();return}(v.key==="ArrowUp"||v.key==="ArrowLeft")&&(v.preventDefault(),d=(d-1+u.length)%u.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let v of u)v.classList.remove("v-drop-over")})});F("draggable-handle");F("draggable-axis");F("draggable-data");F("draggable-group");b("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{zn(),e.classList.add("v-droppable");let o={el:e,group:Hi(e,j(e,"droppable-group")),accept:j(e,"droppable-accept"),expression:t,scope:n};pn.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{pn.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});F("droppable-accept");F("droppable-group");var Ff=`
|
|
165
|
+
`;function dr(){ye(),ie("dnd",pp)}var Dn=new Map,Nn=new Map;function ss(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function lt(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function mp(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function hc(e){return lt(e).map((t,n)=>mp(t,n))}function yc(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var L=null,ur=0;function gp(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function bc(e,t){if(!(L!=null&&L.ghost))return;let n=L.axis==="y"?L.lastX:e,r=L.axis==="x"?L.lastY:t;L.ghost.style.transform=`translate3d(${Math.round(n-L.grabX)}px, ${Math.round(r-L.grabY)}px, 0)`}function vp(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function hp(){if(!L)return;let e=56,t=16,n=L.lastX,r=L.lastY,o=document.elementFromPoint(n,r),i=vp(o!=null?o:L.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function yp(){let e=()=>{!L||L.keyboard||(hp(),ur=requestAnimationFrame(e))};ur=requestAnimationFrame(e)}function bp(){ur&&cancelAnimationFrame(ur),ur=0}function wc(e,t){let n=Dn.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function as(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Ec(e,t){for(let n of Nn.values())n.el.classList.toggle("v-drop-active",t&&as(n,e));for(let n of Dn.values())n.el.classList.toggle("v-drop-active",t&&wc(n.el,e))}function wp(e,t,n,r){let o=yc(e),i=null;for(let s of lt(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function ls(e,t){dr();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;L={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?lt(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):(L.ghost=gp(e,n),bc(t.x,t.y),yp()),Ec(L,!0),document.addEventListener("keydown",Tc,!0),re(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Ep(e,t){var a,l,c;if(!L)return;L.lastX=e,L.lastY=t,bc(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;L.mode==="sort"&&r&&wc(r,L)?(L.overList&&L.overList!==r&&L.overList.classList.remove("v-drop-over"),L.overList=r,r.classList.add("v-drop-over"),wp(r,L.item,e,t)):L.overList&&!r&&L.overList.classList.remove("v-drop-over");let i=o?Nn.get(o):void 0,s=i?as(i,L):!1;L.overDrop&&L.overDrop!==o&&(L.overDrop.classList.remove("v-drop-over"),L.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),L.overDrop=o),(c=L.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function xp(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function xc(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),Ec(e,!1),bp(),document.removeEventListener("keydown",Tc,!0),L=null}function cs(){var i;let e=L;if(!e)return;let t=e.item.parentElement,n=t?lt(t).indexOf(e.item):-1,r=e.overDrop,o=r?Nn.get(r):void 0;if(e.mode==="sort"&&t&&Dn.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:hc(t)};re(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&re(e.startList,"voodoo:sorted",{...a,order:hc(e.startList)}),Ue(`Item moved to position ${n+1} of ${lt(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),at(o.expression,o.scope,r,a,s),Ue("Item dropped in drop zone")}re(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),xc(e)}function is(){let e=L;e&&(xp(e),re(e.item,"voodoo:drag-cancel",{item:e.item}),Ue("Drag canceled"),xc(e))}function Tc(e){!L||e.key!=="Escape"||(e.preventDefault(),is())}function kc(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=p=>{if(p.pointerId===o){if(!a){if(Math.hypot(p.clientX-i,p.clientY-s)<4||!r)return;a=!0,ls(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),Ep(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),r=null,o=-1,a=!1},u=p=>{p.pointerId===o&&(a&&cs(),c())},d=()=>{a&&is(),c()},f=p=>{if(p.button!==0||L)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let v=t.itemFrom(m);v&&(r=v,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",d))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&is(),c()})}function Tp(e){return e?Array.from(Dn.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function kp(e,t){if(!L)return!1;let n=e.parentElement;if(!n)return!1;let r=yc(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=lt(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),Ue(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Tp(L.group),c=l.indexOf(n);if(c===-1)return!1;let u=l[c+(t==="ArrowRight"?1:-1)];return u?(u.appendChild(e),Ue(`Moved to list ${l.indexOf(u)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Lp(e){return Array.from(Nn.values()).filter(t=>as(t,e)).map(t=>t.el)}w("dnd-group",({el:e,expression:t})=>{dr();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});w("sortable",({el:e,expression:t,cleanup:n})=>{dr(),e.classList.add("v-sortable");let r=K(e,"sortable-handle")||t.trim()||null,o={el:e,group:ss(e,K(e,"sortable-group")),handle:r};Dn.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of lt(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of lt(e))i(l)});s==null||s.observe(e,{childList:!0}),kc(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=lt(e).find(u=>u===l||u.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let u=lt(e).find(d=>d===c||d.contains(c));if(u){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),L&&L.item===u){cs(),Ue("Item dropped");return}if(L)return;ls(u,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ue("Item grabbed. Use arrow keys to move and space to drop.");return}!L||L.item!==u||l.key.startsWith("Arrow")&&kp(u,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),Dn.delete(e)})});V("sortable-group");V("sortable-handle");w("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;dr(),e.classList.add("v-draggable");let o=K(e,"draggable-handle")||null,i=(K(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=K(e,"draggable-data")||t.trim(),l=ss(e,K(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let c=()=>a?q(a,n,"v-draggable-data"):null;kc(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let u=[],d=0,f=()=>{u.forEach((g,h)=>g.classList.toggle("v-drop-over",h===d));let v=u[d];!v||!L||(L.overDrop=v,pe.reducedMotion?v.scrollIntoView({block:"nearest"}):v.scrollIntoView({block:"nearest",behavior:"smooth"}),Ue(v.getAttribute("aria-label")||`Target ${d+1} of ${u.length}`))},p=v=>{if(v.key===" "||v.key==="Spacebar"){if(v.preventDefault(),L&&L.item===e){cs(),u=[];return}if(L)return;ls(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),u=L?Lp(L):[],d=0,u.length?f():Ue("No targets available");return}if(!(!L||L.item!==e||!u.length)){if(v.key==="ArrowDown"||v.key==="ArrowRight"){v.preventDefault(),d=(d+1)%u.length,f();return}(v.key==="ArrowUp"||v.key==="ArrowLeft")&&(v.preventDefault(),d=(d-1+u.length)%u.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let v of u)v.classList.remove("v-drop-over")})});V("draggable-handle");V("draggable-axis");V("draggable-data");V("draggable-group");w("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{dr(),e.classList.add("v-droppable");let o={el:e,group:ss(e,K(e,"droppable-group")),accept:K(e,"droppable-accept"),expression:t,scope:n};Nn.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{Nn.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});V("droppable-accept");V("droppable-group");var Ap=`
|
|
166
166
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
167
167
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
168
168
|
.v-focus-ring:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px;
|
|
@@ -267,8 +267,8 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
267
267
|
transition-duration:.01ms !important}
|
|
268
268
|
.v-skeleton{animation-duration:.01ms !important}
|
|
269
269
|
}
|
|
270
|
-
`;function Z(){se(),Q("ui",Ff)}function mn(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function Ze(e,t){return e.id||(e.id=ue(`${t}-`)),e.id}var Gl='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function Un(e){return Array.from(e.querySelectorAll(Gl)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Ur(e,t){let n=Un(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function ye(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var Oi=0,Xl="";function Jl(){if(Oi++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Xl=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Zl(){Oi!==0&&(--Oi>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Xl))}function ec(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function $f(e,t=!0){if(e.removeAttribute("hidden"),t&&!ne.reducedMotion){cn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function If(e,t=!0){if(t&&!ne.reducedMotion){un(e);return}e.style.display="none"}var jf={top:"bottom",bottom:"top",left:"right",right:"left"};function tc(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function nc(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},u={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},d=n;if(c[d]<u[d]){let m=jf[d];if(c[m]>=u[m])d=m;else for(let v of Object.keys(c))c[v]-u[v]>c[d]-u[d]&&(d=v)}let f=0,p=0;return d==="top"||d==="bottom"?(f=d==="top"?i.top-s.height-o:i.bottom+o,p=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&p+s.width>a-o&&(p=i.right-s.width)):(p=d==="left"?i.left-s.width-o:i.right+o,f=r==="start"?i.top:i.top+i.height/2-s.height/2),p=Math.min(Math.max(o,p),Math.max(o,a-s.width-o)),f=Math.min(Math.max(o,f),Math.max(o,l-s.height-o)),t.style.left=`${Math.round(p)}px`,t.style.top=`${Math.round(f)}px`,t.setAttribute("data-placement",d),d}var qr=[],_l=!1,Bf={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},qf=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function ji(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?qf?n.meta=!0:n.ctrl=!0:n.key=(r=Bf[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function zf(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function Uf(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function rc(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function _f(e){if(e.defaultPrevented)return;let t=Uf(e.target);for(let n of[...qr])for(let r of n.combos)if(zf(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function _r(e,t,n={}){let r=e.split(",").map(i=>ji(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return qr.push(o),_l||(_l=!0,document.addEventListener("keydown",_f)),()=>{let i=qr.indexOf(o);i>-1&&qr.splice(i,1)}}b("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{Z();let o=mn(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Ze(o,"v-toggle")),ye(e,r);let a=i?o.classList.contains(i):!ec(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=u=>{u.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(If(o,s),a=!1):($f(o,s),a=!0),l(),K(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var Fi=class{constructor(t){S(this,"panel");S(this,"triggers",new Set);S(this,"listeners",new Set);S(this,"open");S(this,"duration");this.panel=t,this.duration=_(j(t,"collapse-duration"),240);let n=(j(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!ec(t),t.classList.add("v-collapse-panel"),Ze(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),ne.reducedMotion?this.panel.style.removeProperty("display"):Ht(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ne.reducedMotion?this.panel.style.display="none":Dt(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Vl=new WeakMap;function Bi(e){let t=Vl.get(e);return t||Vl.set(e,t=new Fi(e)),t}b("collapse",({el:e})=>{Z(),Bi(e)});var $i=new WeakSet;b("collapse-toggle",({el:e,expression:t,cleanup:n})=>{Z();let r=mn(e,t);if(!r)return;let o=Bi(r);o.triggers.add(e),o.sync(),ye(e,n),$i.add(e),n(()=>$i.delete(e));let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});F("collapse-duration");var zr=class{constructor(t,n,r){S(this,"trigger");S(this,"panel");S(this,"kind");S(this,"placement");S(this,"open",!1);S(this,"lastFocus",null);S(this,"homeParent");S(this,"homeNext");S(this,"reposition",()=>{this.open&&nc(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});S(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});S(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Ur(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=tc(j(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Ze(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?oc(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=Un(this.panel)[0])==null||t.focus()),K(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};ne.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),K(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function oc(e){Z(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}b("dropdown-menu",({el:e})=>{oc(e)});b("dropdown",({el:e,expression:t,cleanup:n})=>{Z();let r=mn(e,t);if(!r)return;let o=new zr(e,r,"menu");ye(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let u=o.items();u.length&&u[a.key==="ArrowDown"?0:u.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});b("popover",({el:e,expression:t,cleanup:n})=>{Z();let r=mn(e,t);if(!r)return;let o=new zr(e,r,"dialog");ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});F("dropdown-position");F("popover-position");b("tooltip",({el:e,expression:t,cleanup:n})=>{Z();let r=t.trim();if(!r)return;let o=tc(j(e,"tooltip-position"),"top"),i=_(j(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Gl);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let g=document.createElement("div");return g.className="v-tooltip",g.setAttribute("role","tooltip"),g.id=ue("v-tip-"),g.textContent=r,document.body.appendChild(g),g},u=()=>{a&&nc(e,a,o)},d=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),u(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let g=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),g.classList.remove("v-in"),ne.reducedMotion?g.remove():setTimeout(()=>g.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,d()},i))},m=g=>{g.key==="Escape"&&f()},v=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",d),e.addEventListener("pointerdown",v),e.addEventListener("mouseleave",f),e.addEventListener("focusout",f),e.addEventListener("keydown",m),n(()=>{f(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",p),e.removeEventListener("focusin",d),e.removeEventListener("pointerdown",v),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});F("tooltip-position");F("tooltip-delay");b("tabs",({el:e,expression:t,cleanup:n})=>{Z();let r=Br(e,"tab","tabs"),o=Br(e,"tab-panel","tabs");if(!r.length)return;let i=(g,h)=>dt(g,"tab")||String(h),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let l=Ir(e,"tabs-url")?dt(e,"tabs-url")||"tab":null;r.forEach((g,h)=>{let y=i(g,h),w=o.find(T=>dt(T,"tab-panel")===y);g.classList.add("v-tab","v-focus-ring"),g.setAttribute("role","tab"),Ze(g,"v-tab"),w&&(Ze(w,"v-panel"),w.setAttribute("role","tabpanel"),w.setAttribute("aria-labelledby",g.id),g.setAttribute("aria-controls",w.id))});let c="",u=(g,h=!1)=>{if(r.some((y,w)=>i(y,w)===g)){c=g,r.forEach((y,w)=>{let T=i(y,w)===g;y.setAttribute("aria-selected",String(T)),y.setAttribute("tabindex",T?"0":"-1"),y.classList.toggle("v-active",T),T&&h&&y.focus()});for(let y of o)y.hidden=dt(y,"tab-panel")!==g;l&&ct.set(l,g),K(e,"voodoo:tab",{id:g})}},d=g=>{let h=Qt(g.target,"tab");!h||!r.includes(h)||(g.preventDefault(),u(i(h,r.indexOf(h))))},f=g=>{let h=Qt(g.target,"tab");if(!h||!r.includes(h))return;let y=r.indexOf(h),w=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",x=-1;g.key===w?x=(y+1)%r.length:g.key===T?x=(y-1+r.length)%r.length:g.key==="Home"?x=0:g.key==="End"&&(x=r.length-1),x!==-1&&(g.preventDefault(),u(i(r[x],x),!0))},p=()=>{if(!l)return;let g=ct.get(l);g&&g!==c&&u(g)};e.addEventListener("click",d),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",d),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let v=(l?ct.get(l):void 0)||t.trim()||i(r[0],0);u(v),c||u(i(r[0],0))});F("tab");F("tab-panel");F("tabs-url");b("accordion",({el:e,cleanup:t})=>{Z();let n=Br(e,"accordion-item","accordion");if(!n.length)return;let r=Ir(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,u=l.lastElementChild;if(!c||!u||c===u)continue;let d=(dt(l,"accordion-item")||"").trim().toLowerCase();d!=="open"&&d!=="true"&&(u.style.display="none");let f=Bi(u);f.triggers.add(c),f.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),Ze(u,"v-accordion-panel"),c.setAttribute("aria-controls",u.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!u.hasAttribute("role")&&(u.setAttribute("role","region"),u.setAttribute("aria-labelledby",Ze(c,"v-accordion-header"))),o.push(c),i.push(f)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;l.preventDefault();let d=i[u],f=$i.has(c);if(r&&(f?d.open:!d.open))for(let m of i)m!==d&&m.hide();f||d.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let d=-1;l.key==="ArrowDown"?d=(u+1)%o.length:l.key==="ArrowUp"?d=(u-1+o.length)%o.length:l.key==="Home"?d=0:l.key==="End"&&(d=o.length-1),d!==-1&&(l.preventDefault(),o[d].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});F("accordion-item");F("accordion-single");var Ii=class{constructor(t){S(this,"origem",null);S(this,"panel");S(this,"triggers",new Set);S(this,"open",!1);S(this,"backdrop",null);S(this,"lastFocus",null);S(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Ur(this.panel,t)}});S(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(j(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),Ze(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",Ze(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),Jl();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ne.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Un(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};ne.reducedMotion?t():setTimeout(t,300),Zl(),(r=this.lastFocus)==null||r.focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Wl=new WeakMap;function qi(e){let t=Wl.get(e);return t||Wl.set(e,t=new Ii(e)),t}b("drawer-content",({el:e})=>{Z(),qi(e)});function ic(e,t,n){Z();let r=mn(e,t);if(!r)return;let o=qi(r);o.triggers.add(e),o.sync(),ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}b("drawer",({el:e,expression:t,cleanup:n})=>{ic(e,t,n)});b("offcanvas",({el:e,expression:t,cleanup:n})=>{ic(e,t,n)});b("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?mn(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Qt(e,"drawer-content");if(!r)return;ye(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),qi(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});F("drawer-side");b("theme-toggle",({el:e,cleanup:t})=>{ye(e,t);let n=()=>{let i=qe.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=qe.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),qe.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});b("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){fe(i);return}r(()=>{o()&&fe(i)})},{priority:P.INIT});b("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Ur(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&fe(()=>{var l;return((l=Un(e)[0])!=null?l:e).focus()}),i=a}):fe(()=>{var a;return((a=Un(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});b("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||Ue(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});b("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||Ue(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});b("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=_r(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=ji(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",rc(s)),r(i)});b("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(j(e,"scroll-offset")||"0")||0,a=ne.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let l=null;try{l=document.querySelector(i)}catch(d){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let u=l;u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1"),u.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=j(e,"scrollspy-class")||"v-active",o=parseFloat(j(e,"scroll-offset")||"0")||0,i=n.map(c=>{let u=c.getAttribute("href")||"",d=u.length>1?document.querySelector(u):null;return d?{link:c,section:d}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let u of i)u.section.getBoundingClientRect().top-o<=8&&(c=u);if(c.link!==s){s=c.link;for(let u of i){let d=u.link===s;u.link.classList.toggle(r,d),d?u.link.setAttribute("aria-current","true"):u.link.removeAttribute("aria-current")}K(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Dn(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),fe(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});F("scroll-offset");F("scrollspy-class");b("sticky",({el:e,expression:t,cleanup:n})=>{Z();let r=parseFloat(t.trim()||j(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});F("sticky-offset");b("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){Ue(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&(Ue(t,n,e,void 0,d),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});b("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=j(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let u=Ue(t,n,e,void 0,{page:"next"}),d=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};u&&typeof u.then=="function"?u.then(d,d):setTimeout(d,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});F("infinite-distance");function sc(e,t,n,r){if(Z(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let l=j(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}b("lazy-src",({el:e,expression:t,cleanup:n})=>{sc(e,t.trim(),n,!1)});b("lazy-bg",({el:e,expression:t,cleanup:n})=>{sc(e,t.trim(),n,!0)});F("lazy-error");b("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{Z();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function zi(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;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function Ui(e,t){Z();let n=j(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ae(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function ac(e,t){var r;let n=j(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}b("copy",({el:e,expression:t,cleanup:n})=>{Z(),ye(e,n);let r=o=>{o.preventDefault();let i=ac(e,t);i&&zi(i).then(s=>{Ui(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("copy-from",({el:e,expression:t,cleanup:n})=>{if(Z(),jr(e,"copy-from",t),Ir(e,"copy"))return;ye(e,n);let r=o=>{o.preventDefault();let i=ac(e,"");i&&zi(i).then(s=>{Ui(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});F("copy-label");function Vf(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
|
|
271
|
-
`);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${Mt(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}b("print",({el:e,expression:t,cleanup:n})=>{ye(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Vf(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("share",({el:e,expression:t,cleanup:n})=>{Z(),ye(e,n);let r=o=>{o.preventDefault();let i=t.trim()||j(e,"share-url")||location.href,s={title:j(e,"share-title")||document.title,url:i},a=j(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>K(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}zi(i).then(c=>{Ui(e,c),K(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});F("share-title");F("share-url");F("share-text");b("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;ye(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});b("download",({el:e,expression:t,cleanup:n})=>{ye(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=j(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),K(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});F("download-name");b("resizable",({el:e,expression:t,cleanup:n})=>{Z();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let l=(c,u)=>{let d=0,f=0,p=0,m=0,v=h=>{u!=="bottom"&&(e.style.width=`${Math.max(32,p+h.clientX-d)}px`),u!=="right"&&(e.style.height=`${Math.max(32,m+h.clientY-f)}px`)},g=h=>{var y;(y=c.releasePointerCapture)==null||y.call(c,h.pointerId),c.removeEventListener("pointermove",v),c.removeEventListener("pointerup",g),c.removeEventListener("pointercancel",g),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",h=>{var w;if(h.button!==0)return;h.preventDefault();let y=e.getBoundingClientRect();d=h.clientX,f=h.clientY,p=y.width,m=y.height,(w=c.setPointerCapture)==null||w.call(c,h.pointerId),c.addEventListener("pointermove",v),c.addEventListener("pointerup",g),c.addEventListener("pointercancel",g)}),c.addEventListener("keydown",h=>{let y=h.shiftKey?4:16,w=e.getBoundingClientRect(),T=!0;h.key==="ArrowRight"&&u!=="bottom"?e.style.width=`${w.width+y}px`:h.key==="ArrowLeft"&&u!=="bottom"?e.style.width=`${Math.max(32,w.width-y)}px`:h.key==="ArrowDown"&&u!=="right"?e.style.height=`${w.height+y}px`:h.key==="ArrowUp"&&u!=="right"?e.style.height=`${Math.max(32,w.height-y)}px`:T=!1,T&&(h.preventDefault(),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let u=document.createElement("div");u.className="v-resize-handle",u.setAttribute("data-dir",c),u.setAttribute("role","separator"),u.setAttribute("tabindex","0"),u.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),u.setAttribute("aria-label","Resize"),l(u,c),e.appendChild(u),s.push(u)}n(()=>{for(let c of s)c.remove()})});function Kl(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Wf(){let e=[];for(let t of hr(document,"command-item")){let n=(dt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:j(t,"command-hint")||"",el:t}))}return e}function Yl(){if(Z(),document.querySelector(".v-command"))return;let e=Wf(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=ue("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Jl();let s=e,a=0,l=m=>{let v=m.target;!v||n.contains(v)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),Zl(),t==null||t.focus()},u=()=>{let m=s[a];m&&(c(),m.el.click())},d=()=>{var v;if(i.replaceChildren(),!s.length){let g=document.createElement("li");g.className="v-command-empty",g.textContent="No command found",i.appendChild(g);return}s.forEach((g,h)=>{let y=document.createElement("li");y.className="v-command-option",y.id=`${i.id}-${h}`,y.setAttribute("role","option"),y.setAttribute("aria-selected",String(h===a));let w=document.createElement("span");if(w.textContent=g.label,y.appendChild(w),g.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=g.hint,y.appendChild(T)}y.addEventListener("click",()=>{a=h,u()}),y.addEventListener("pointermove",()=>{a!==h&&(a=h,d())}),i.appendChild(y)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(v=m.scrollIntoView)==null||v.call(m,{block:"nearest"}))},f=()=>{let m=Kl(o.value.trim());s=m?e.filter(v=>Kl(`${v.label} ${v.hint}`).includes(m)):e,a=0,d()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,d();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,d();return}if(m.key==="Enter"){m.preventDefault(),u();return}m.key==="Tab"&&Ur(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),d(),o.focus(),document.addEventListener("focusin",l,!0)}b("command",({el:e,expression:t,cleanup:n})=>{Z();let r=t.trim()||j(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Yl()},i=_r(r,()=>Yl(),{allowInInput:!0}),s=ji(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",rc(s)),ye(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});b("command-item",({el:e,expression:t})=>{jr(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});F("command-key");F("command-hint");var Ql=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];b("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=_(j(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,Ue(t,n,e,void 0,{idle:!0,after:o}),K(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let u of Ql)window.addEventListener(u,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let u of Ql)window.removeEventListener(u,c)})});F("idle-after");function lc(e,t,n,r,o,i){let s=a=>{Ue(t,n,e,a,{online:navigator.onLine}),K(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&fe(()=>s())}b("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{lc(e,t,n,o,"online",!!r.immediate)});b("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{lc(e,t,n,o,"offline",r["no-immediate"]!==!0)});X();ee();Ee();X();ee();Ee();var Fe={required:"Please fill in this field.",email:"Enter a valid email address.",url:"Enter a valid URL.",number:"Enter a valid number.",integer:"Enter a whole number.",decimal:"Enter a valid decimal number.",alpha:"Use letters only.",alphanumeric:"Use letters and numbers only.",minlength:"Use at least {param} characters.",maxlength:"Use at most {param} characters.",min:"The smallest allowed value is {param}.",max:"The largest allowed value is {param}.",between:"Enter a value between {min} and {max}.",match:"The fields do not match.",regex:"That format is not valid.",date:"Enter a valid date.",after:"The date has to be later than {param}.",before:"The date has to be earlier than {param}.",accepted:"You have to tick this to continue.",same:"The values have to be the same.",different:"The values have to be different.",in:"Choose one of the allowed options.",notin:"That value is not allowed.",phone:"Enter a valid phone number, including the area code.",cpf:"Invalid CPF.",cnpj:"Invalid CNPJ.",cep:"Invalid postcode.",creditcard:"Invalid card number.",strongpassword:"Use {param} characters or more, with an upper case letter, a lower case letter, a number and a symbol.",unique:"That value is already taken.",invalid:"Invalid value."};function uc(e,t){var i,s,a,l,c,u;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((l=r[0])!=null?l:"").trim(),max:((u=(c=r[1])!=null?c:r[0])!=null?u:"").trim()};return e.replace(/\{(\w+)\}/g,(d,f)=>f in o?o[f]:d)}var Kr=new Map;function I(e,t,n){let r=e.toLowerCase();Kr.set(r,{name:r,fn:t,message:n}),n&&!Fe[r]&&(Fe[r]=n),b(`validate-${r}`,({el:o,cleanup:i})=>{to(o,i)})}function et(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Kf(e,t){return et(e,t)!==null}var Yf=new Set(["INPUT","SELECT","TEXTAREA"]),Qf=new Set(["submit","button","reset","image"]);function Se(e){var t;return!!e&&typeof e=="object"&&Yf.has((t=e.tagName)!=null?t:"")}function Ve(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function Wn(e){var n;let t=Ve(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function Wi(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function Gf(e){var o,i;let t=et(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Vr(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function Vr(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Yr(e,t){var s,a,l;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return Se(c)?c:null}let o=r.querySelector(`[name="${Vr(n)}"]`);if(Se(o))return o;let i=document.getElementById(n);return Se(i)?i:null}var Xf=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,Jf=/^-?\d+$/,Zf=/^-?\d+(?:[.,]\d+)?$/,ep=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,tp=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function Kn(e){return e.replace(/\D/g,"")}function Qr(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function np(e){let t=Kn(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function rp(e){let t=Kn(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function op(e){let t=Kn(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function ip(e){let t=Kn(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function Ot(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function Gr(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=Ot(e);if(r)return r;let o=Yr(t,e);return o?Ot(Wn(o)):null}I("required",(e,t,n)=>{let r=Ve(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});I("email",e=>Xf.test(e.trim()));I("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});I("number",e=>e.trim()!==""&&Number.isFinite(Qr(e)));I("integer",e=>Jf.test(e.trim()));I("decimal",(e,t)=>{var i;let n=e.trim();if(!Zf.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});I("alpha",e=>ep.test(e.trim().replace(/\s+/g,"")));I("alphanumeric",e=>tp.test(e.trim().replace(/\s+/g,"")));I("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));I("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));I("min",(e,t,n)=>{let r=Gr(t,n);if(r&&Ve(n).startsWith("date")){let o=Ot(e);return!o||o.getTime()>=r.getTime()}return Qr(e)>=Number(t!=null?t:0)});I("max",(e,t,n)=>{let r=Gr(t,n);if(r&&Ve(n).startsWith("date")){let o=Ot(e);return!o||o.getTime()<=r.getTime()}return Qr(e)<=Number(t!=null?t:1/0)});I("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Qr(e);return Number.isFinite(o)&&o>=n&&o<=r});I("match",(e,t,n)=>{if(!t)return!0;let r=Yr(n,t);return r?Wn(r)===e:!0});I("same",(e,t,n)=>{if(!t)return!0;let r=Yr(n,t);return!r||Wn(r)===e});I("different",(e,t,n)=>{if(!t)return!0;let r=Yr(n,t);return!r||Wn(r)!==e});I("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=et(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${E.prefix}regex: ${t}`),!0}});I("date",e=>Ot(e)!==null);I("after",(e,t,n)=>{let r=Gr(t,n),o=Ot(e);return!r||!o?!0:o.getTime()>r.getTime()});I("before",(e,t,n)=>{let r=Gr(t,n),o=Ot(e);return!r||!o?!0:o.getTime()<r.getTime()});I("accepted",(e,t,n)=>{let r=Ve(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});I("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("phone",e=>ip(e));I("cpf",e=>np(e));I("cnpj",e=>rp(e));I("cep",e=>Kn(e).length===8);I("creditcard",e=>op(e));I("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:uc(Fe.strongpassword,{param:String(n)})});I("unique",async(e,t,n)=>{let r=t||et(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await me.get(r,{params:{value:e,field:Wi(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:Fe.unique:o?Fe.unique:!0}catch(o){if(o instanceof re){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return Fe.unique}return!0}});var sp={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},ap=new Set(["required","accepted"]);function lp(e){var o;let t=null;if(e.startsWith(E.prefix)?t=e.slice(E.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=sp[t])!=null?o:t;return Kr.has(r)?r:null}function Ki(e){let t=[],n=new Set,r=(u,d)=>{n.has(u)||!Kr.has(u)||(n.add(u),t.push({name:u,param:d}))};for(let[u,d]of ga(e)){let f=lp(u);if(f){if(d.trim()==="false"){n.add(f);continue}r(f,d)}}let o=Ve(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((u,d)=>u.name==="required"?-1:d.name==="required"?1:0),t}var cp=`
|
|
270
|
+
`;function ue(){ye(),ie("ui",Ap)}function On(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function yt(e,t){return e.id||(e.id=ke(`${t}-`)),e.id}var Hc='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function fr(e){return Array.from(e.querySelectorAll(Hc)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function vo(e,t){let n=fr(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function De(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var us=0,Pc="";function Dc(){if(us++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Pc=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Nc(){us!==0&&(--us>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Pc))}function Oc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Sp(e,t=!0){if(e.removeAttribute("hidden"),t&&!pe.reducedMotion){Rn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function Mp(e,t=!0){if(t&&!pe.reducedMotion){Hn(e);return}e.style.display="none"}var Cp={top:"bottom",bottom:"top",left:"right",right:"left"};function Fc(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function $c(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},u={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},d=n;if(c[d]<u[d]){let m=Cp[d];if(c[m]>=u[m])d=m;else for(let v of Object.keys(c))c[v]-u[v]>c[d]-u[d]&&(d=v)}let f=0,p=0;return d==="top"||d==="bottom"?(f=d==="top"?i.top-s.height-o:i.bottom+o,p=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&p+s.width>a-o&&(p=i.right-s.width)):(p=d==="left"?i.left-s.width-o:i.right+o,f=r==="start"?i.top:i.top+i.height/2-s.height/2),p=Math.min(Math.max(o,p),Math.max(o,a-s.width-o)),f=Math.min(Math.max(o,f),Math.max(o,l-s.height-o)),t.style.left=`${Math.round(p)}px`,t.style.top=`${Math.round(f)}px`,t.setAttribute("data-placement",d),d}var mo=[],Lc=!1,Rp={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},Hp=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function ms(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?Hp?n.meta=!0:n.ctrl=!0:n.key=(r=Rp[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function Pp(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function Dp(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function Ic(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function Np(e){if(e.defaultPrevented)return;let t=Dp(e.target);for(let n of[...mo])for(let r of n.combos)if(Pp(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function ho(e,t,n={}){let r=e.split(",").map(i=>ms(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return mo.push(o),Lc||(Lc=!0,document.addEventListener("keydown",Np)),()=>{let i=mo.indexOf(o);i>-1&&mo.splice(i,1)}}w("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{ue();let o=On(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",yt(o,"v-toggle")),De(e,r);let a=i?o.classList.contains(i):!Oc(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=u=>{u.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(Mp(o,s),a=!1):(Sp(o,s),a=!0),l(),re(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var ds=class{constructor(t){A(this,"panel");A(this,"triggers",new Set);A(this,"listeners",new Set);A(this,"open");A(this,"duration");this.panel=t,this.duration=te(K(t,"collapse-duration"),240);let n=(K(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!Oc(t),t.classList.add("v-collapse-panel"),yt(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),pe.reducedMotion?this.panel.style.removeProperty("display"):Qt(this.panel,this.duration),this.sync(),re(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,pe.reducedMotion?this.panel.style.display="none":Gt(this.panel,this.duration),this.sync(),re(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Ac=new WeakMap;function gs(e){let t=Ac.get(e);return t||Ac.set(e,t=new ds(e)),t}w("collapse",({el:e})=>{ue(),gs(e)});var fs=new WeakSet;w("collapse-toggle",({el:e,expression:t,cleanup:n})=>{ue();let r=On(e,t);if(!r)return;let o=gs(r);o.triggers.add(e),o.sync(),De(e,n),fs.add(e),n(()=>fs.delete(e));let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});V("collapse-duration");var go=class{constructor(t,n,r){A(this,"trigger");A(this,"panel");A(this,"kind");A(this,"placement");A(this,"open",!1);A(this,"lastFocus",null);A(this,"homeParent");A(this,"homeNext");A(this,"reposition",()=>{this.open&&$c(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});A(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});A(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&vo(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=Fc(K(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),yt(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?jc(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=fr(this.panel)[0])==null||t.focus()),re(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};pe.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),re(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function jc(e){ue(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}w("dropdown-menu",({el:e})=>{jc(e)});w("dropdown",({el:e,expression:t,cleanup:n})=>{ue();let r=On(e,t);if(!r)return;let o=new go(e,r,"menu");De(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let u=o.items();u.length&&u[a.key==="ArrowDown"?0:u.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});w("popover",({el:e,expression:t,cleanup:n})=>{ue();let r=On(e,t);if(!r)return;let o=new go(e,r,"dialog");De(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});V("dropdown-position");V("popover-position");w("tooltip",({el:e,expression:t,cleanup:n})=>{ue();let r=t.trim();if(!r)return;let o=Fc(K(e,"tooltip-position"),"top"),i=te(K(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Hc);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let g=document.createElement("div");return g.className="v-tooltip",g.setAttribute("role","tooltip"),g.id=ke("v-tip-"),g.textContent=r,document.body.appendChild(g),g},u=()=>{a&&$c(e,a,o)},d=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),u(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let g=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),g.classList.remove("v-in"),pe.reducedMotion?g.remove():setTimeout(()=>g.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,d()},i))},m=g=>{g.key==="Escape"&&f()},v=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",d),e.addEventListener("pointerdown",v),e.addEventListener("mouseleave",f),e.addEventListener("focusout",f),e.addEventListener("keydown",m),n(()=>{f(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",p),e.removeEventListener("focusin",d),e.removeEventListener("pointerdown",v),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});V("tooltip-position");V("tooltip-delay");w("tabs",({el:e,expression:t,cleanup:n})=>{ue();let r=po(e,"tab","tabs"),o=po(e,"tab-panel","tabs");if(!r.length)return;let i=(g,h)=>Ct(g,"tab")||String(h),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let l=uo(e,"tabs-url")?Ct(e,"tabs-url")||"tab":null;r.forEach((g,h)=>{let y=i(g,h),b=o.find(k=>Ct(k,"tab-panel")===y);g.classList.add("v-tab","v-focus-ring"),g.setAttribute("role","tab"),yt(g,"v-tab"),b&&(yt(b,"v-panel"),b.setAttribute("role","tabpanel"),b.setAttribute("aria-labelledby",g.id),g.setAttribute("aria-controls",b.id))});let c="",u=(g,h=!1)=>{if(r.some((y,b)=>i(y,b)===g)){c=g,r.forEach((y,b)=>{let k=i(y,b)===g;y.setAttribute("aria-selected",String(k)),y.setAttribute("tabindex",k?"0":"-1"),y.classList.toggle("v-active",k),k&&h&&y.focus()});for(let y of o)y.hidden=Ct(y,"tab-panel")!==g;l&&St.set(l,g),re(e,"voodoo:tab",{id:g})}},d=g=>{let h=hn(g.target,"tab");!h||!r.includes(h)||(g.preventDefault(),u(i(h,r.indexOf(h))))},f=g=>{let h=hn(g.target,"tab");if(!h||!r.includes(h))return;let y=r.indexOf(h),b=a?"ArrowDown":"ArrowRight",k=a?"ArrowUp":"ArrowLeft",E=-1;g.key===b?E=(y+1)%r.length:g.key===k?E=(y-1+r.length)%r.length:g.key==="Home"?E=0:g.key==="End"&&(E=r.length-1),E!==-1&&(g.preventDefault(),u(i(r[E],E),!0))},p=()=>{if(!l)return;let g=St.get(l);g&&g!==c&&u(g)};e.addEventListener("click",d),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",d),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let v=(l?St.get(l):void 0)||t.trim()||i(r[0],0);u(v),c||u(i(r[0],0))});V("tab");V("tab-panel");V("tabs-url");w("accordion",({el:e,cleanup:t})=>{ue();let n=po(e,"accordion-item","accordion");if(!n.length)return;let r=uo(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,u=l.lastElementChild;if(!c||!u||c===u)continue;let d=(Ct(l,"accordion-item")||"").trim().toLowerCase();d!=="open"&&d!=="true"&&(u.style.display="none");let f=gs(u);f.triggers.add(c),f.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),yt(u,"v-accordion-panel"),c.setAttribute("aria-controls",u.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!u.hasAttribute("role")&&(u.setAttribute("role","region"),u.setAttribute("aria-labelledby",yt(c,"v-accordion-header"))),o.push(c),i.push(f)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;l.preventDefault();let d=i[u],f=fs.has(c);if(r&&(f?d.open:!d.open))for(let m of i)m!==d&&m.hide();f||d.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let d=-1;l.key==="ArrowDown"?d=(u+1)%o.length:l.key==="ArrowUp"?d=(u-1+o.length)%o.length:l.key==="Home"?d=0:l.key==="End"&&(d=o.length-1),d!==-1&&(l.preventDefault(),o[d].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});V("accordion-item");V("accordion-single");var ps=class{constructor(t){A(this,"origem",null);A(this,"panel");A(this,"triggers",new Set);A(this,"open",!1);A(this,"backdrop",null);A(this,"lastFocus",null);A(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&vo(this.panel,t)}});A(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(K(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),yt(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",yt(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),Dc();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};pe.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=fr(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),re(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};pe.reducedMotion?t():setTimeout(t,300),Nc(),(r=this.lastFocus)==null||r.focus(),this.sync(),re(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Sc=new WeakMap;function vs(e){let t=Sc.get(e);return t||Sc.set(e,t=new ps(e)),t}w("drawer-content",({el:e})=>{ue(),vs(e)});function Bc(e,t,n){ue();let r=On(e,t);if(!r)return;let o=vs(r);o.triggers.add(e),o.sync(),De(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}w("drawer",({el:e,expression:t,cleanup:n})=>{Bc(e,t,n)});w("offcanvas",({el:e,expression:t,cleanup:n})=>{Bc(e,t,n)});w("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?On(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:hn(e,"drawer-content");if(!r)return;De(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),vs(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});V("drawer-side");w("theme-toggle",({el:e,cleanup:t})=>{De(e,t);let n=()=>{let i=it.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=it.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),it.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});w("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){Me(i);return}r(()=>{o()&&Me(i)})},{priority:B.INIT});w("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&vo(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Me(()=>{var l;return((l=fr(e)[0])!=null?l:e).focus()}),i=a}):Me(()=>{var a;return((a=fr(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});w("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||at(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});w("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||at(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});w("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=ho(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=ms(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Ic(s)),r(i)});w("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(K(e,"scroll-offset")||"0")||0,a=pe.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let l=null;try{l=document.querySelector(i)}catch(d){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let u=l;u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1"),u.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});w("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=K(e,"scrollspy-class")||"v-active",o=parseFloat(K(e,"scroll-offset")||"0")||0,i=n.map(c=>{let u=c.getAttribute("href")||"",d=u.length>1?document.querySelector(u):null;return d?{link:c,section:d}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let u of i)u.section.getBoundingClientRect().top-o<=8&&(c=u);if(c.link!==s){s=c.link;for(let u of i){let d=u.link===s;u.link.classList.toggle(r,d),d?u.link.setAttribute("aria-current","true"):u.link.removeAttribute("aria-current")}re(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=tr(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Me(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});V("scroll-offset");V("scrollspy-class");w("sticky",({el:e,expression:t,cleanup:n})=>{ue();let r=parseFloat(t.trim()||K(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});V("sticky-offset");w("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){at(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&(at(t,n,e,void 0,d),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});w("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=K(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let u=at(t,n,e,void 0,{page:"next"}),d=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};u&&typeof u.then=="function"?u.then(d,d):setTimeout(d,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});V("infinite-distance");function qc(e,t,n,r){if(ue(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let l=K(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}w("lazy-src",({el:e,expression:t,cleanup:n})=>{qc(e,t.trim(),n,!1)});w("lazy-bg",({el:e,expression:t,cleanup:n})=>{qc(e,t.trim(),n,!0)});V("lazy-error");w("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{ue();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function hs(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;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function ys(e,t){ue();let n=K(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ue(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function zc(e,t){var r;let n=K(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}w("copy",({el:e,expression:t,cleanup:n})=>{ue(),De(e,n);let r=o=>{o.preventDefault();let i=zc(e,t);i&&hs(i).then(s=>{ys(e,s),re(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});w("copy-from",({el:e,expression:t,cleanup:n})=>{if(ue(),fo(e,"copy-from",t),uo(e,"copy"))return;De(e,n);let r=o=>{o.preventDefault();let i=zc(e,"");i&&hs(i).then(s=>{ys(e,s),re(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});V("copy-label");function Op(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
|
|
271
|
+
`);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${Wt(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}w("print",({el:e,expression:t,cleanup:n})=>{De(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Op(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});w("share",({el:e,expression:t,cleanup:n})=>{ue(),De(e,n);let r=o=>{o.preventDefault();let i=t.trim()||K(e,"share-url")||location.href,s={title:K(e,"share-title")||document.title,url:i},a=K(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>re(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}hs(i).then(c=>{ys(e,c),re(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});V("share-title");V("share-url");V("share-text");w("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;De(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});w("download",({el:e,expression:t,cleanup:n})=>{De(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=K(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),re(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});V("download-name");w("resizable",({el:e,expression:t,cleanup:n})=>{ue();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let l=(c,u)=>{let d=0,f=0,p=0,m=0,v=h=>{u!=="bottom"&&(e.style.width=`${Math.max(32,p+h.clientX-d)}px`),u!=="right"&&(e.style.height=`${Math.max(32,m+h.clientY-f)}px`)},g=h=>{var y;(y=c.releasePointerCapture)==null||y.call(c,h.pointerId),c.removeEventListener("pointermove",v),c.removeEventListener("pointerup",g),c.removeEventListener("pointercancel",g),re(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",h=>{var b;if(h.button!==0)return;h.preventDefault();let y=e.getBoundingClientRect();d=h.clientX,f=h.clientY,p=y.width,m=y.height,(b=c.setPointerCapture)==null||b.call(c,h.pointerId),c.addEventListener("pointermove",v),c.addEventListener("pointerup",g),c.addEventListener("pointercancel",g)}),c.addEventListener("keydown",h=>{let y=h.shiftKey?4:16,b=e.getBoundingClientRect(),k=!0;h.key==="ArrowRight"&&u!=="bottom"?e.style.width=`${b.width+y}px`:h.key==="ArrowLeft"&&u!=="bottom"?e.style.width=`${Math.max(32,b.width-y)}px`:h.key==="ArrowDown"&&u!=="right"?e.style.height=`${b.height+y}px`:h.key==="ArrowUp"&&u!=="right"?e.style.height=`${Math.max(32,b.height-y)}px`:k=!1,k&&(h.preventDefault(),re(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let u=document.createElement("div");u.className="v-resize-handle",u.setAttribute("data-dir",c),u.setAttribute("role","separator"),u.setAttribute("tabindex","0"),u.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),u.setAttribute("aria-label","Resize"),l(u,c),e.appendChild(u),s.push(u)}n(()=>{for(let c of s)c.remove()})});function Mc(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Fp(){let e=[];for(let t of Ur(document,"command-item")){let n=(Ct(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:K(t,"command-hint")||"",el:t}))}return e}function Cc(){if(ue(),document.querySelector(".v-command"))return;let e=Fp(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=ke("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Dc();let s=e,a=0,l=m=>{let v=m.target;!v||n.contains(v)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),Nc(),t==null||t.focus()},u=()=>{let m=s[a];m&&(c(),m.el.click())},d=()=>{var v;if(i.replaceChildren(),!s.length){let g=document.createElement("li");g.className="v-command-empty",g.textContent="No command found",i.appendChild(g);return}s.forEach((g,h)=>{let y=document.createElement("li");y.className="v-command-option",y.id=`${i.id}-${h}`,y.setAttribute("role","option"),y.setAttribute("aria-selected",String(h===a));let b=document.createElement("span");if(b.textContent=g.label,y.appendChild(b),g.hint){let k=document.createElement("span");k.className="v-command-hint",k.textContent=g.hint,y.appendChild(k)}y.addEventListener("click",()=>{a=h,u()}),y.addEventListener("pointermove",()=>{a!==h&&(a=h,d())}),i.appendChild(y)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(v=m.scrollIntoView)==null||v.call(m,{block:"nearest"}))},f=()=>{let m=Mc(o.value.trim());s=m?e.filter(v=>Mc(`${v.label} ${v.hint}`).includes(m)):e,a=0,d()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,d();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,d();return}if(m.key==="Enter"){m.preventDefault(),u();return}m.key==="Tab"&&vo(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),d(),o.focus(),document.addEventListener("focusin",l,!0)}w("command",({el:e,expression:t,cleanup:n})=>{ue();let r=t.trim()||K(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Cc()},i=ho(r,()=>Cc(),{allowInInput:!0}),s=ms(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Ic(s)),De(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});w("command-item",({el:e,expression:t})=>{fo(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});V("command-key");V("command-hint");var Rc=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];w("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=te(K(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,at(t,n,e,void 0,{idle:!0,after:o}),re(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let u of Rc)window.addEventListener(u,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let u of Rc)window.removeEventListener(u,c)})});V("idle-after");function Uc(e,t,n,r,o,i){let s=a=>{at(t,n,e,a,{online:navigator.onLine}),re(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Me(()=>s())}w("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Uc(e,t,n,o,"online",!!r.immediate)});w("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Uc(e,t,n,o,"offline",r["no-immediate"]!==!0)});le();de();$e();le();de();$e();var et={required:"Please fill in this field.",email:"Enter a valid email address.",url:"Enter a valid URL.",number:"Enter a valid number.",integer:"Enter a whole number.",decimal:"Enter a valid decimal number.",alpha:"Use letters only.",alphanumeric:"Use letters and numbers only.",minlength:"Use at least {param} characters.",maxlength:"Use at most {param} characters.",min:"The smallest allowed value is {param}.",max:"The largest allowed value is {param}.",between:"Enter a value between {min} and {max}.",match:"The fields do not match.",regex:"That format is not valid.",date:"Enter a valid date.",after:"The date has to be later than {param}.",before:"The date has to be earlier than {param}.",accepted:"You have to tick this to continue.",same:"The values have to be the same.",different:"The values have to be different.",in:"Choose one of the allowed options.",notin:"That value is not allowed.",phone:"Enter a valid phone number, including the area code.",cpf:"Invalid CPF.",cnpj:"Invalid CNPJ.",cep:"Invalid postcode.",creditcard:"Invalid card number.",strongpassword:"Use {param} characters or more, with an upper case letter, a lower case letter, a number and a symbol.",unique:"That value is already taken.",invalid:"Invalid value."};function _c(e,t){var i,s,a,l,c,u;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((l=r[0])!=null?l:"").trim(),max:((u=(c=r[1])!=null?c:r[0])!=null?u:"").trim()};return e.replace(/\{(\w+)\}/g,(d,f)=>f in o?o[f]:d)}var wo=new Map;function W(e,t,n){let r=e.toLowerCase();wo.set(r,{name:r,fn:t,message:n}),n&&!et[r]&&(et[r]=n),w(`validate-${r}`,({el:o,cleanup:i})=>{Mo(o,i)})}function bt(e,t){var n;return(n=ze(e,`${x.prefix}${t}`))!=null?n:ze(e,`data-v-${t}`)}function $p(e,t){return bt(e,t)!==null}var Ip=new Set(["INPUT","SELECT","TEXTAREA"]),jp=new Set(["submit","button","reset","image"]);function Ve(e){var t;return!!e&&typeof e=="object"&&Ip.has((t=e.tagName)!=null?t:"")}function ct(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function gr(e){var n;let t=ct(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function Es(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function Bp(e){var o,i;let t=bt(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${yo(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function yo(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Eo(e,t){var s,a,l;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return Ve(c)?c:null}let o=r.querySelector(`[name="${yo(n)}"]`);if(Ve(o))return o;let i=document.getElementById(n);return Ve(i)?i:null}var qp=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,zp=/^-?\d+$/,Up=/^-?\d+(?:[.,]\d+)?$/,Vp=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,_p=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function vr(e){return e.replace(/\D/g,"")}function xo(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Wp(e){let t=vr(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function Kp(e){let t=vr(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function Yp(e){let t=vr(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function Qp(e){let t=vr(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function Zt(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function To(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=Zt(e);if(r)return r;let o=Eo(t,e);return o?Zt(gr(o)):null}W("required",(e,t,n)=>{let r=ct(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});W("email",e=>qp.test(e.trim()));W("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});W("number",e=>e.trim()!==""&&Number.isFinite(xo(e)));W("integer",e=>zp.test(e.trim()));W("decimal",(e,t)=>{var i;let n=e.trim();if(!Up.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});W("alpha",e=>Vp.test(e.trim().replace(/\s+/g,"")));W("alphanumeric",e=>_p.test(e.trim().replace(/\s+/g,"")));W("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));W("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));W("min",(e,t,n)=>{let r=To(t,n);if(r&&ct(n).startsWith("date")){let o=Zt(e);return!o||o.getTime()>=r.getTime()}return xo(e)>=Number(t!=null?t:0)});W("max",(e,t,n)=>{let r=To(t,n);if(r&&ct(n).startsWith("date")){let o=Zt(e);return!o||o.getTime()<=r.getTime()}return xo(e)<=Number(t!=null?t:1/0)});W("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=xo(e);return Number.isFinite(o)&&o>=n&&o<=r});W("match",(e,t,n)=>{if(!t)return!0;let r=Eo(n,t);return r?gr(r)===e:!0});W("same",(e,t,n)=>{if(!t)return!0;let r=Eo(n,t);return!r||gr(r)===e});W("different",(e,t,n)=>{if(!t)return!0;let r=Eo(n,t);return!r||gr(r)!==e});W("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=bt(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return oe(`Invalid regular expression in ${x.prefix}regex: ${t}`),!0}});W("date",e=>Zt(e)!==null);W("after",(e,t,n)=>{let r=To(t,n),o=Zt(e);return!r||!o?!0:o.getTime()>r.getTime()});W("before",(e,t,n)=>{let r=To(t,n),o=Zt(e);return!r||!o?!0:o.getTime()<r.getTime()});W("accepted",(e,t,n)=>{let r=ct(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});W("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));W("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));W("phone",e=>Qp(e));W("cpf",e=>Wp(e));W("cnpj",e=>Kp(e));W("cep",e=>vr(e).length===8);W("creditcard",e=>Yp(e));W("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:_c(et.strongpassword,{param:String(n)})});W("unique",async(e,t,n)=>{let r=t||bt(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await Re.get(r,{params:{value:e,field:Es(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:et.unique:o?et.unique:!0}catch(o){if(o instanceof me){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return et.unique}return!0}});var Gp={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Xp=new Set(["required","accepted"]);function Jp(e){var o;let t=null;if(e.startsWith(x.prefix)?t=e.slice(x.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=Gp[t])!=null?o:t;return wo.has(r)?r:null}function xs(e){let t=[],n=new Set,r=(u,d)=>{n.has(u)||!wo.has(u)||(n.add(u),t.push({name:u,param:d}))};for(let[u,d]of Ya(e)){let f=Jp(u);if(f){if(d.trim()==="false"){n.add(f);continue}r(f,d)}}let o=ct(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((u,d)=>u.name==="required"?-1:d.name==="required"?1:0),t}var Zp=`
|
|
272
272
|
.v-field-error{display:block;margin-top:6px;color:var(--v-danger,#FF4D4D);
|
|
273
273
|
font:500 12.5px/1.45 var(--v-font-sans,system-ui,-apple-system,sans-serif);
|
|
274
274
|
animation:v-field-error-in .18s var(--v-ease,ease) both}
|
|
@@ -283,7 +283,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
283
283
|
font:500 13px/1.5 var(--v-font-sans,system-ui,-apple-system,sans-serif)}
|
|
284
284
|
.v-form-error ul{margin:0;padding-left:18px}
|
|
285
285
|
@media (prefers-reduced-motion: reduce){.v-field-error{animation:none}}
|
|
286
|
-
`;function Xr(){se(),Q("forms-validate",cp)}function dc(e){var r,o,i;let t=et(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};Y(`Target for ${E.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function fc(e){let t=dc(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function Jr(e,t){Xr(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=fc(e);if(!n){let o=dc(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ue("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function _i(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=fc(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function Yn(e){for(let n of eo(e,!1))_i(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function Yi(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function up(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Vr(i)}"]`);if(Se(s))return s}let o=e.querySelector(`#${Vr(t)}`);return Se(o)?o:null}function Zr(e,t){let n=Yi(t),r=[];for(let[o,i]of Object.entries(n)){let s=up(e,o);s?Jr(s,i):r.push(i)}return r.length&&dp(e,r),n}function dp(e,t){Xr();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function Qi(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function eo(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)Se(o)&&(o.disabled||Qf.has(Ve(o))||t&&Ki(o).length===0||r.push(o));return r}async function Gi(e,t={}){var s,a;if(!Se(e))return{valid:!0};let n=Ki(e);if(!n.length)return t.silent||_i(e),{valid:!0};let r=Wn(e),o=et(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!ap.has(l.name))continue;let c=Kr.get(l.name);if(!c)continue;let u;try{u=await c.fn(r,l.param||void 0,e)}catch(p){Y(`Rule "${l.name}" failed to execute`,p);continue}if(u===!0)continue;let d=o!=null?o:typeof u=="string"?u:(a=(s=Fe[l.name])!=null?s:c.message)!=null?a:Fe.invalid,f=uc(d,{field:Gf(e),param:l.param,value:r});return t.silent||(Jr(e,f),cc(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(_i(e,!i),cc(e,{valid:!0})),{valid:!0}}function Xi(e){return Se(e)?Gi(e):Ji(e)}async function Ji(e){let t=eo(e),n=await Promise.all(t.map(o=>Gi(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Wi(o)]=(a=s.message)!=null?a:Fe.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function cc(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Wi(e),...t}}))}function fp(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function pp(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let u=r[c];(u==null||typeof u!="object")&&(u=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=u),r=u;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function mp(e,t){var a,l,c,u;let n=eo(e,!1),r=[],o=new Map;for(let d of n)Ve(d)==="checkbox"&&d.name&&o.set(d.name,((a=o.get(d.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let d of n){if(!d.name||d.disabled&&!t.includeDisabled)continue;let f=Ve(d);if(f==="file"){let m=Array.from((l=d.files)!=null?l:[]);if(!m.length)continue;let v=d.multiple||d.name.endsWith("[]");r.push({name:d.name,value:v?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(d.name))!=null?c:1)>1||d.name.endsWith("[]")){if(!d.checked)continue;let v=d.name.endsWith("[]")?d.name:`${d.name}[]`;r.push({name:v,value:d.value||"on"})}else r.push({name:d.name,value:d.checked});continue}if(f==="radio"){if(!d.checked)continue;r.push({name:d.name,value:d.value});continue}if(d.tagName==="SELECT"&&d.multiple){let m=Array.from(d.selectedOptions).map(g=>g.value),v=d.name.endsWith("[]")?d.name:`${d.name}[]`;for(let g of m)r.push({name:v,value:g});continue}let p=(u=d.value)!=null?u:"";if(i&&typeof p=="string"&&(p=p.trim()),s&&(f==="number"||f==="range")&&p!==""){let m=Number(p);Number.isFinite(m)&&(p=m)}r.push({name:d.name,value:p})}return r}function gp(e){for(let t of eo(e,!1)){if(Ve(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function pc(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)pc(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function gn(e,t={}){let n=mp(e,t);if(t.formData||gp(e)){let o=new FormData;for(let i of n)pc(o,i.name,i.value);return o}let r={};for(let o of n)pp(r,fp(o.name),o.value);return r}var _n=new WeakSet,Vn=new WeakSet;async function Wr(e){(await Gi(e)).valid?Vn.delete(e):Vn.add(e)}function to(e,t){if(!Se(e)){Y(`${E.prefix}validate only works on input, select, or textarea.`);return}if(_n.has(e))return;_n.add(e),Xr();let n=()=>{Wr(e)},r=()=>{Vn.has(e)&&Wr(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{_n.delete(e),Vn.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Vi=new WeakSet;function mc(e){return Vi.has(e)||Kf(e,"validate")}function vp(e,t){Vi.add(e),Xr(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Se(i)||_n.has(i)||Ki(i).length!==0&&Wr(i)},r=o=>{let i=o.target;!Se(i)||_n.has(i)||Vn.has(i)&&Wr(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Vi.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}b("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${E.prefix}submit`)){vp(e,t);return}to(e,t)});var hp=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of hp)b(e,({el:t,cleanup:n})=>{to(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])b(e,({el:t,cleanup:n})=>{Se(t)&&to(t,n)});function vc(){return V({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var vn=new WeakMap,ts=new WeakMap,yp=vc();function Qn(e){let t=vn.get(e);return t||(t=vc(),vn.set(e,t)),t}function bp(e){let t=e;for(;t;){let n=ts.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?vn.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?vn.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=vn.get(n);if(r)return r}return yp}H("$form",e=>bp(e));var hn=new WeakMap,wp=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function gc(e){return wp.some(t=>ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`))}function ae(e,t){var i,s,a;let n=et(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=et(r,t);if(l!==null)return l}let o=(a=(i=hn.get(e))==null?void 0:i[t])!=null?a:r?(s=hn.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function oo(e,t){return ae(e,t)!==null}function Me(e,t){b(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=hn.get(o))!=null?l:{};if(i[e]=r,hn.set(o,i),!gc(o)&&!gc(n)){Y(`${E.prefix}${e} needs an element with ${E.prefix}submit, ${E.prefix}upload, ${E.prefix}dropzone, or ${E.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Ep=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Me("method",e=>e&&!Ep.includes(e.trim().toUpperCase())?`${E.prefix}method received an unknown verb: ${e}`:null);Me("redirect");Me("reset-success");Me("disable-loading");Me("loading-class");Me("on-success");Me("on-error");Me("on-complete");Me("toast-success");Me("toast-error");Me("confirm");Me("form-data");b("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=hn.get(n))!=null?s:{};r.loading=t,hn.set(n,r);let o=hc(t);if(!o){Y(`${E.prefix}loading element not found: ${t}`);return}yc(o,!1)});var xp=`
|
|
286
|
+
`;function ko(){ye(),ie("forms-validate",Zp)}function Wc(e){var r,o,i;let t=bt(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};oe(`Target for ${x.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function Kc(e){let t=Wc(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function Lo(e,t){ko(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=Kc(e);if(!n){let o=Wc(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ke("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function bs(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=Kc(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function hr(e){for(let n of So(e,!1))bs(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function Ts(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function em(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${yo(i)}"]`);if(Ve(s))return s}let o=e.querySelector(`#${yo(t)}`);return Ve(o)?o:null}function Ao(e,t){let n=Ts(t),r=[];for(let[o,i]of Object.entries(n)){let s=em(e,o);s?Lo(s,i):r.push(i)}return r.length&&tm(e,r),n}function tm(e,t){ko();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function ks(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function So(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)Ve(o)&&(o.disabled||jp.has(ct(o))||t&&xs(o).length===0||r.push(o));return r}async function Ls(e,t={}){var s,a;if(!Ve(e))return{valid:!0};let n=xs(e);if(!n.length)return t.silent||bs(e),{valid:!0};let r=gr(e),o=bt(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!Xp.has(l.name))continue;let c=wo.get(l.name);if(!c)continue;let u;try{u=await c.fn(r,l.param||void 0,e)}catch(p){oe(`Rule "${l.name}" failed to execute`,p);continue}if(u===!0)continue;let d=o!=null?o:typeof u=="string"?u:(a=(s=et[l.name])!=null?s:c.message)!=null?a:et.invalid,f=_c(d,{field:Bp(e),param:l.param,value:r});return t.silent||(Lo(e,f),Vc(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(bs(e,!i),Vc(e,{valid:!0})),{valid:!0}}function As(e){return Ve(e)?Ls(e):Ss(e)}async function Ss(e){let t=So(e),n=await Promise.all(t.map(o=>Ls(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Es(o)]=(a=s.message)!=null?a:et.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Vc(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Es(e),...t}}))}function nm(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function rm(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let u=r[c];(u==null||typeof u!="object")&&(u=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=u),r=u;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function om(e,t){var a,l,c,u;let n=So(e,!1),r=[],o=new Map;for(let d of n)ct(d)==="checkbox"&&d.name&&o.set(d.name,((a=o.get(d.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let d of n){if(!d.name||d.disabled&&!t.includeDisabled)continue;let f=ct(d);if(f==="file"){let m=Array.from((l=d.files)!=null?l:[]);if(!m.length)continue;let v=d.multiple||d.name.endsWith("[]");r.push({name:d.name,value:v?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(d.name))!=null?c:1)>1||d.name.endsWith("[]")){if(!d.checked)continue;let v=d.name.endsWith("[]")?d.name:`${d.name}[]`;r.push({name:v,value:d.value||"on"})}else r.push({name:d.name,value:d.checked});continue}if(f==="radio"){if(!d.checked)continue;r.push({name:d.name,value:d.value});continue}if(d.tagName==="SELECT"&&d.multiple){let m=Array.from(d.selectedOptions).map(g=>g.value),v=d.name.endsWith("[]")?d.name:`${d.name}[]`;for(let g of m)r.push({name:v,value:g});continue}let p=(u=d.value)!=null?u:"";if(i&&typeof p=="string"&&(p=p.trim()),s&&(f==="number"||f==="range")&&p!==""){let m=Number(p);Number.isFinite(m)&&(p=m)}r.push({name:d.name,value:p})}return r}function im(e){for(let t of So(e,!1)){if(ct(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function Yc(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)Yc(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function Fn(e,t={}){let n=om(e,t);if(t.formData||im(e)){let o=new FormData;for(let i of n)Yc(o,i.name,i.value);return o}let r={};for(let o of n)rm(r,nm(o.name),o.value);return r}var pr=new WeakSet,mr=new WeakSet;async function bo(e){(await Ls(e)).valid?mr.delete(e):mr.add(e)}function Mo(e,t){if(!Ve(e)){oe(`${x.prefix}validate only works on input, select, or textarea.`);return}if(pr.has(e))return;pr.add(e),ko();let n=()=>{bo(e)},r=()=>{mr.has(e)&&bo(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{pr.delete(e),mr.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var ws=new WeakSet;function Qc(e){return ws.has(e)||$p(e,"validate")}function sm(e,t){ws.add(e),ko(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Ve(i)||pr.has(i)||xs(i).length!==0&&bo(i)},r=o=>{let i=o.target;!Ve(i)||pr.has(i)||mr.has(i)&&bo(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{ws.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}w("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${x.prefix}submit`)){sm(e,t);return}Mo(e,t)});var am=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of am)w(e,({el:t,cleanup:n})=>{Mo(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])w(e,({el:t,cleanup:n})=>{Ve(t)&&Mo(t,n)});function Xc(){return ee({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var $n=new WeakMap,Rs=new WeakMap,lm=Xc();function yr(e){let t=$n.get(e);return t||(t=Xc(),$n.set(e,t)),t}function cm(e){let t=e;for(;t;){let n=Rs.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?$n.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?$n.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=$n.get(n);if(r)return r}return lm}F("$form",e=>cm(e));var In=new WeakMap,um=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function Gc(e){return um.some(t=>Tt(e,`${x.prefix}${t}`)||Tt(e,`data-v-${t}`))}function be(e,t){var i,s,a;let n=bt(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=bt(r,t);if(l!==null)return l}let o=(a=(i=In.get(e))==null?void 0:i[t])!=null?a:r?(s=In.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Ho(e,t){return be(e,t)!==null}function _e(e,t){w(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=In.get(o))!=null?l:{};if(i[e]=r,In.set(o,i),!Gc(o)&&!Gc(n)){oe(`${x.prefix}${e} needs an element with ${x.prefix}submit, ${x.prefix}upload, ${x.prefix}dropzone, or ${x.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&oe(s)})}var dm=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];_e("method",e=>e&&!dm.includes(e.trim().toUpperCase())?`${x.prefix}method received an unknown verb: ${e}`:null);_e("redirect");_e("reset-success");_e("disable-loading");_e("loading-class");_e("on-success");_e("on-error");_e("on-complete");_e("toast-success");_e("toast-error");_e("confirm");_e("form-data");w("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=In.get(n))!=null?s:{};r.loading=t,In.set(n,r);let o=Jc(t);if(!o){oe(`${x.prefix}loading element not found: ${t}`);return}Zc(o,!1)});var fm=`
|
|
287
287
|
form.v-loading{cursor:progress}
|
|
288
288
|
form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
289
289
|
.v-progress{position:relative;overflow:hidden;width:100%;height:8px;margin-top:8px;
|
|
@@ -312,17 +312,17 @@ form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
|
312
312
|
.v-autosave-status[data-state="saved"]{color:var(--v-success,#2ED9A5)}
|
|
313
313
|
.v-autosave-status[data-state="error"]{color:var(--v-danger,#FF4D4D)}
|
|
314
314
|
@media (prefers-reduced-motion: reduce){.v-progress-bar,.v-dropzone{transition:none}}
|
|
315
|
-
`;function Gn(){se(),Q("forms-ajax",xp)}function ft(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function io(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=O(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function ns(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function rs(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>rs(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))rs(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Tp(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function hc(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Zi=new WeakMap;function yc(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Zi.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Zi.has(e)||Zi.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function ro(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=ae(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(oo(n,"disable-loading"))for(let a of Tp(r))a.disabled=t;let s=ae(n,"loading");if(s){let a=hc(s);a&&yc(a,t)}}function so(e,t,n,r){let o=ae(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=O(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function kp(e,t){let n=ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(ae(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=De(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))U(l);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":U(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&W(l,a)}function bc(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=ns(t),kp(e,t),oo(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),Yn(o));let s=ae(i,"toast-success");s!==null&&Pe.success(s||r.message||"All set!"),so(e,"on-success",t,{status:n}),ft(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=ae(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?io(a,u):String(c!=null?c:"");d&&window.location.assign(d)}}function os(e,t){var c,u;let{state:n,form:r,host:o}=e,i=t instanceof re?t:new re(t instanceof Error?t.message:String(t)),s=(u=(c=i.response)==null?void 0:c.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=ns(s)||i.message;let a=Yi(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Zr(r,s),Qi(r));let l=ae(o,"toast-error");l!==null&&Pe.error(l||ns(s)||"Could not submit the form."),so(e,"on-error",s,i),ft(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function wc(e,t){so(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),ft(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Lp(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=ae(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(mc(r)){Yn(r);let f=await Ji(r);if(o.errors=f.errors,!f.valid){Qi(r),ft(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=io(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=gn(r,{formData:oo(n,"form-data")}),u=a==="GET"||a==="HEAD";ro(e,!0),o.success=!1,o.progress=0,ft(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let d=!1;try{let f=await at({url:l,method:a,body:u?void 0:c,params:u&&!(c instanceof FormData)?rs(c):void 0});d=!0,bc(e,f.data,f.status)}catch(f){os(e,f)}finally{ro(e,!1),wc(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{Gn();let o=e,i=Qn(o),s=t.child({$form:i},o);ts.set(s,i),ts.set(t,i),it(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&it(u,s);let a={host:o,form:o,scope:s,state:i},l=u=>{u.preventDefault(),Lp(a,n)},c=u=>{var p;let d=u.detail;if(!d||!d.field)return;let f={...i.errors};d.valid?delete f[d.field]:f[d.field]=(p=d.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{vn.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:P.DATA-1});function Ap(e){let t=ae(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;Gn();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function no(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function Sp(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=gn(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function Ec(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=io(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let l=Ap(s),c=Sp(s,n,r);ro(e,!0),o.success=!1,o.progress=0,no(l,0,"loading"),ft(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(ae(s,"method")||"POST").trim().toUpperCase(),f=await me.upload(a,c,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:p=>{o.progress=p,no(l,p,"loading"),ft(i,"voodoo:progress",{percent:p,form:i,state:o})}});u=!0,o.progress=100,no(l,100,"done"),bc(e,f,200)}catch(d){no(l,o.progress,"error"),os(e,d)}finally{ro(e,!1),wc(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}Gn();let i=(c=o.closest("form"))!=null?c:o,s=Qn(i),a={host:o,form:i,scope:t,state:s},l=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&Ec(a,n,u,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;Gn(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=Qn(o),s={host:e,form:o,scope:t,state:i},a=ae(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),Ec(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},f=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},p=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);c(l.multiple?C:C.slice(0,1))},v=x=>{x.target!==l&&l.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),l.click())},h=()=>{var C;let x=Array.from((C=l.files)!=null?C:[]);c(x),l.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),l.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),l.removeEventListener("change",h),l.remove()})});var Mp={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Cp(e){let t=ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function es(e,t){e.setAttribute("data-state",t),e.textContent=Mp[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;Gn();let i=e,s=Qn(i),a={host:i,form:i,scope:t,state:s},l=Cp(i),c=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:ae(i,"autosave-delay"))!=null?g:1e3,u=_(c,1e3),d=async()=>{let h=io(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,es(l,"saving");let y=(ae(i,"method")||"POST").trim().toUpperCase();try{let w=await at({url:h,method:y,body:gn(i,{formData:oo(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,es(l,"saved"),so(a,"on-success",w.data,{status:w.status}),ft(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){es(l,"error"),os(a,w)}finally{s.saving=!1}},f=we(()=>{d()},u),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});b("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=Qn(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=u=>{!o.dirty||o.loading||(u.preventDefault(),u.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});X();ee();function Xn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=ie(r)}catch(o){}return t}function xc(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:xc(e,"voodoo:persist"),i=G.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=we(()=>{G.set(o,Xn(t.data))},120),a=he(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||xc(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=we(()=>{if(!a)try{i.postMessage({from:s,state:Xn(t.data)})}catch(u){q(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[f,p]of Object.entries(d.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=he(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:P.DATA-1});var is=new WeakMap;function ss(e){let t=e;for(;t;){let n=is.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Xn(t.data)))],s=0,a=!1,l=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Xn(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));c(),queueMicrotask(()=>{a=!1})}let d=we(()=>{if(a)return;let m=JSON.stringify(Xn(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,c())},_((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=he(t.data,()=>d(),{deep:!0});is.set(e,l),t.set("$history",l),r(()=>{f(),d.cancel(),is.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ss(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ss(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=G.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{G.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?ss(e.el):null);ee();X();Ee();var yn=null,pt=.35,tt=!1,Tc=!1,as="voodoo:sound:volume",Sc="voodoo:sound:muted",kc=Te(0);function Ft(){if(Tc)return;Tc=!0;let e=G.get(as);typeof e=="number"&&e>=0&&e<=1&&(pt=e);let t=G.get(Sc);typeof t=="boolean"&&(tt=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&G.get(as)===void 0&&(pt=.18)}function Lc(){var t;if(typeof window=="undefined")return null;if(yn)return yn.state==="suspended"&&yn.resume(),yn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return yn=new e,yn}catch(n){return null}}function Ac(e,t,n){var c,u,d,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=pt*n*((d=t.volume)!=null?d:1),l=(f=t.ataque)!=null?f:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var ao={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},Rp={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function lo(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Rp[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var co=new Map;function Hp(e,t){let n=co.get(e);n||(n=new Audio(e),n.preload="auto",co.set(e,n)),n.volume=Math.max(0,Math.min(1,pt*t)),n.currentTime=0,n.play().catch(()=>{})}function Mc(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var mt={play(e,t={}){var l,c,u;if(Ft(),tt||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(Mc(n)){Hp(n,r);return}let o=ao[n];if(!o){let d=lo(n);d!==null&&this.tone(d,200,{volume:r});return}let i=Lc();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)Ac(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(Ft(),tt)return;let r=Lc();r&&Ac(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=lo(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){Ft(),!tt&&e.forEach((r,o)=>{let i=typeof r=="number"?r:lo(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return Ft(),e===void 0||(pt=Math.max(0,Math.min(1,e)),G.set(as,pt)),pt},mute(e=!0){Ft(),tt=e,G.set(Sc,tt),kc.value++},unmute(){this.mute(!1)},toggle(){return Ft(),this.mute(!tt),tt},get muted(){return kc.value,Ft(),tt},get names(){return Object.keys(ao)},define(e,t){ao[e]=t},preload(...e){for(let t of e){if(co.has(t))continue;let n=new Audio(t);n.preload="auto",co.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let d=n.trim();if(!d)return"click";if(ao[d]||Mc(d)||lo(d)!==null)return d;let f=s();return typeof f=="string"?f:d},c=r.volume!==void 0?Number(r.volume):void 0,u=()=>{mt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});var Dp=`
|
|
315
|
+
`;function br(){ye(),ie("forms-ajax",fm)}function Rt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Po(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${x.prefix}submit`);return s==null?o:String(s)}));let r=x.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function Hs(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function Ps(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>Ps(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))Ps(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function pm(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function Jc(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Ms=new WeakMap;function Zc(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Ms.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Ms.has(e)||Ms.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Ro(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=be(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(Ho(n,"disable-loading"))for(let a of pm(r))a.disabled=t;let s=be(n,"loading");if(s){let a=Jc(s);a&&Zc(a,t)}}function Do(e,t,n,r){let o=be(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=q(o,i,`${x.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function mm(e,t){let n=be(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){oe(`${x.prefix}target destination not found: ${n}`);return}let o=(be(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ge(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))X(l);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":X(r),r.replaceWith(...s);break;default:oe(`Unknown mode in ${x.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&ne(l,a)}function eu(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=Hs(t),mm(e,t),Ho(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),hr(o));let s=be(i,"toast-success");s!==null&&Xe.success(s||r.message||"All set!"),Do(e,"on-success",t,{status:n}),Rt(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=be(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?Po(a,u):String(c!=null?c:"");d&&window.location.assign(d)}}function Ds(e,t){var c,u;let{state:n,form:r,host:o}=e,i=t instanceof me?t:new me(t instanceof Error?t.message:String(t)),s=(u=(c=i.response)==null?void 0:c.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=Hs(s)||i.message;let a=Ts(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Ao(r,s),ks(r));let l=be(o,"toast-error");l!==null&&Xe.error(l||Hs(s)||"Could not submit the form."),Do(e,"on-error",s,i),Rt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function tu(e,t){Do(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),Rt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function gm(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=be(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(Qc(r)){hr(r);let f=await Ss(r);if(o.errors=f.errors,!f.valid){ks(r),Rt(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(be(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Po(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=Fn(r,{formData:Ho(n,"form-data")}),u=a==="GET"||a==="HEAD";Ro(e,!0),o.success=!1,o.progress=0,Rt(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let d=!1;try{let f=await Lt({url:l,method:a,body:u?void 0:c,params:u&&!(c instanceof FormData)?Ps(c):void 0});d=!0,eu(e,f.data,f.status)}catch(f){Ds(e,f)}finally{Ro(e,!1),tu(e,d)}}w("submit",({el:e,scope:t,expression:n,cleanup:r})=>{br();let o=e,i=yr(o),s=t.child({$form:i},o);Rs.set(s,i),Rs.set(t,i),ht(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&ht(u,s);let a={host:o,form:o,scope:s,state:i},l=u=>{u.preventDefault(),gm(a,n)},c=u=>{var p;let d=u.detail;if(!d||!d.field)return;let f={...i.errors};d.valid?delete f[d.field]:f[d.field]=(p=d.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{$n.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:B.DATA-1});function vm(e){let t=be(e,"progress");if(t){let o=document.querySelector(t);return o||(oe(`${x.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;br();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function Co(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function hm(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=Fn(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function nu(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Po(t,e.scope);if(!a){oe(`${x.prefix}upload needs a destination URL.`);return}let l=vm(s),c=hm(s,n,r);Ro(e,!0),o.success=!1,o.progress=0,Co(l,0,"loading"),Rt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(be(s,"method")||"POST").trim().toUpperCase(),f=await Re.upload(a,c,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:p=>{o.progress=p,Co(l,p,"loading"),Rt(i,"voodoo:progress",{percent:p,form:i,state:o})}});u=!0,o.progress=100,Co(l,100,"done"),eu(e,f,200)}catch(d){Co(l,o.progress,"error"),Ds(e,d)}finally{Ro(e,!1),tu(e,u)}}w("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){oe(`${x.prefix}upload needs an <input type="file">.`);return}br();let i=(c=o.closest("form"))!=null?c:o,s=yr(i),a={host:o,form:i,scope:t,state:s},l=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&nu(a,n,u,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});w("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,b,k;br(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(b=e.closest("form"))!=null?b:e,i=yr(o),s={host:e,form:o,scope:t,state:i},a=be(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(k=e.getAttribute("accept"))!=null?k:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=E=>{E.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),nu(s,n,E,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=E=>{E.preventDefault(),u++,e.classList.add("v-dropzone-over")},f=E=>{E.preventDefault(),E.dataTransfer&&(E.dataTransfer.dropEffect="copy")},p=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=E=>{var $,N;E.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((N=($=E.dataTransfer)==null?void 0:$.files)!=null?N:[]);c(l.multiple?C:C.slice(0,1))},v=E=>{E.target!==l&&l.click()},g=E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),l.click())},h=()=>{var C;let E=Array.from((C=l.files)!=null?C:[]);c(E),l.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),l.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),l.removeEventListener("change",h),l.remove()})});var ym={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function bm(e){let t=be(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;oe(`${x.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function Cs(e,t){e.setAttribute("data-state",t),e.textContent=ym[t]}w("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;br();let i=e,s=yr(i),a={host:i,form:i,scope:t,state:s},l=bm(i),c=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:be(i,"autosave-delay"))!=null?g:1e3,u=te(c,1e3),d=async()=>{let h=Po(n,t);if(!h){oe(`${x.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,Cs(l,"saving");let y=(be(i,"method")||"POST").trim().toUpperCase();try{let b=await Lt({url:h,method:y,body:Fn(i,{formData:Ho(i,"form-data")})});s.data=b.data,s.status=b.status,s.dirty=!1,s.success=!0,Cs(l,"saved"),Do(a,"on-success",b.data,{status:b.status}),Rt(i,"voodoo:autosave",{data:b.data,status:b.status,form:i,state:s})}catch(b){Cs(l,"error"),Ds(a,b)}finally{s.saving=!1}},f=Fe(()=>{d()},u),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});w("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=yr(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=u=>{!o.dirty||o.loading||(u.preventDefault(),u.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});le();de();function wr(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=se(r)}catch(o){}return t}function ru(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}w("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:ru(e,"voodoo:persist"),i=ae.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=Fe(()=>{ae.set(o,wr(t.data))},120),a=Pe(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:B.DATA-1});w("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||ru(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Fe(()=>{if(!a)try{i.postMessage({from:s,state:wr(t.data)})}catch(u){Q(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[f,p]of Object.entries(d.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=Pe(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:B.DATA-1});var Ns=new WeakMap;function Os(e){let t=e;for(;t;){let n=Ns.get(t);if(n)return n;t=t.parentElement}return null}w("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(wr(t.data)))],s=0,a=!1,l=ee({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(wr(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));c(),queueMicrotask(()=>{a=!1})}let d=Fe(()=>{if(a)return;let m=JSON.stringify(wr(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,c())},te((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=Pe(t.data,()=>d(),{deep:!0});Ns.set(e,l),t.set("$history",l),r(()=>{f(),d.cancel(),Ns.delete(e)})},{priority:B.DATA-1});w("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Os(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});w("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Os(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});w("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=ae.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{ae.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});F("$history",e=>e.el?Os(e.el):null);de();le();$e();var jn=null,Ht=.35,wt=!1,ou=!1,Fs="voodoo:sound:volume",lu="voodoo:sound:muted",iu=Be(0);function en(){if(ou)return;ou=!0;let e=ae.get(Fs);typeof e=="number"&&e>=0&&e<=1&&(Ht=e);let t=ae.get(lu);typeof t=="boolean"&&(wt=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&ae.get(Fs)===void 0&&(Ht=.18)}function su(){var t;if(typeof window=="undefined")return null;if(jn)return jn.state==="suspended"&&jn.resume(),jn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return jn=new e,jn}catch(n){return null}}function au(e,t,n){var c,u,d,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=Ht*n*((d=t.volume)!=null?d:1),l=(f=t.ataque)!=null?f:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var No={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},wm={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function Oo(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=wm[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var Fo=new Map;function Em(e,t){let n=Fo.get(e);n||(n=new Audio(e),n.preload="auto",Fo.set(e,n)),n.volume=Math.max(0,Math.min(1,Ht*t)),n.currentTime=0,n.play().catch(()=>{})}function cu(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Pt={play(e,t={}){var l,c,u;if(en(),wt||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(cu(n)){Em(n,r);return}let o=No[n];if(!o){let d=Oo(n);d!==null&&this.tone(d,200,{volume:r});return}let i=su();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)au(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(en(),wt)return;let r=su();r&&au(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=Oo(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){en(),!wt&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Oo(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return en(),e===void 0||(Ht=Math.max(0,Math.min(1,e)),ae.set(Fs,Ht)),Ht},mute(e=!0){en(),wt=e,ae.set(lu,wt),iu.value++},unmute(){this.mute(!1)},toggle(){return en(),this.mute(!wt),wt},get muted(){return iu.value,en(),wt},get names(){return Object.keys(No)},define(e,t){No[e]=t},preload(...e){for(let t of e){if(Fo.has(t))continue;let n=new Audio(t);n.preload="auto",Fo.set(t,n)}}};w("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let d=n.trim();if(!d)return"click";if(No[d]||cu(d)||Oo(d)!==null)return d;let f=s();return typeof f=="string"?f:d},c=r.volume!==void 0?Number(r.volume):void 0,u=()=>{Pt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});var xm=`
|
|
316
316
|
.v-muted{opacity:.55}
|
|
317
317
|
.v-muted::after{content:" \\1F507";font-size:.9em}
|
|
318
318
|
.v-mute-on::after{content:" \\1F50A";font-size:.9em}
|
|
319
|
-
`;
|
|
319
|
+
`;w("mute",({el:e,cleanup:t})=>{ie("mute",xm);let n=()=>{let o=Pt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o),e.classList.toggle("v-mute-on",!o)},r=()=>{Pt.toggle(),n(),Pt.muted||Pt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});F("$sound",()=>Pt);$e();de();$e();de();var Tm=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,km=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Lm=/^rgba?\(([^)]+)\)$/i,Am=/^hsla?\(([^)]+)\)$/i;function uu(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Sm(e,t,n){let r=(e%360+360)%360,o=Ne(t/100,0,1),i=Ne(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),l=i-s/2,c=Math.floor(r/60)%6,u=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[d,f,p]=u[c];return{r:Math.round((d+l)*255),g:Math.round((f+l)*255),b:Math.round((p+l)*255)}}function ut(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=Tm.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=km.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Lm.exec(t);if(o){let[s,a,l]=uu(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:Ne(s,0,255),g:Ne(a,0,255),b:Ne(l,0,255)}}let i=Am.exec(t);if(i){let[s,a,l]=uu(i[1]);return s===void 0||a===void 0||l===void 0?null:Sm(s,a,l)}return null}function Ne(e,t,n){return e<t?t:e>n?n:e}function zn(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $s(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Mm(e){let t=zn(e.r),n=zn(e.g),r=zn(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),l=Math.cbrt(i),c=Math.cbrt(s);return{l:.2104542553*a+.793617785*l-.0040720468*c,a:1.9779984951*a-2.428592205*l+.4505937099*c,b:.0259040371*a+.7827717662*l-.808675766*c}}function Cm(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:$s(4.0767416621*o-3.3077115913*i+.2309699292*s),g:$s(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:$s(-.0041960863*o-.7034186147*i+1.707614701*s)}}function Io(e){let t=Mm(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 du(e){let t=e.h*Math.PI/180;return Cm({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function qn(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=du({l:Ne(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(Ne(o.r,0,1)*255),g:Math.round(Ne(o.g,0,1)*255),b:Math.round(Ne(o.b,0,1)*255)};t*=.92}let n=du({l:Ne(e.l,0,1),c:0,h:e.h});return{r:Math.round(Ne(n.r,0,1)*255),g:Math.round(Ne(n.g,0,1)*255),b:Math.round(Ne(n.b,0,1)*255)}}function Is(e){return Ne(Math.round(e),0,255).toString(16).padStart(2,"0")}function tn(e){return`#${Is(e.r)}${Is(e.g)}${Is(e.b)}`}function Bn(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function vu(e){return tn(qn(e))}function Bs(e){return .2126*zn(e.r)+.7152*zn(e.g)+.0722*zn(e.b)}function qs(e,t){let n=typeof e=="string"?ut(e):e,r=typeof t=="string"?ut(t):t;if(!n||!r)return 1;let o=Bs(n),i=Bs(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var hu={r:255,g:255,b:255},jo={r:0,g:0,b:0};function Er(e){let t=typeof e=="string"?ut(e):e;return t?qs(t,hu)>=qs(t,jo)?"#ffffff":"#000000":"#ffffff"}var zs=[50,100,200,300,400,500,600,700,800,900],yu=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Rm=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],bu=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Hm=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function wu(e,t=!1){var a;let n=typeof e=="string"?(a=ut(e))!=null?a:jo:e,r=Io(n),o=t?bu:yu,i=t?Hm:Rm,s={};return zs.forEach((l,c)=>{s[String(l)]=vu({l:o[c],c:r.c*i[c],h:r.h})}),s}var Bo={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"}},Eu=["primary","accent","success","warning","danger","info"],Us="voodoo:palette",fu="voodoo-palette",Pm="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Dm="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function pu(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Nm=/^([\d.]+)(px|rem|em)$/;function Om(e){let t=(e||"12px").trim(),n=Nm.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 mu(e,t){var c,u,d,f;let n={},r={},o={};for(let p of Eu){let m=(c=ut(e[p]))!=null?c:jo,v=Io(m),g=wu(m,t);r[p]=g;for(let z of zs)n[`--v-${p}-${z}`]=g[String(z)];let h=t?{l:Math.max(v.l,.62),c:v.c*.95,h:v.h}:v,y=t?{l:Math.min(h.l+.07,.94),c:h.c*.95,h:h.h}:{l:Math.max(h.l-.055,.12),c:h.c,h:h.h},b=t?{l:Math.min(h.l+.13,.97),c:h.c*.88,h:h.h}:{l:Math.max(h.l-.105,.1),c:h.c,h:h.h},k=qn(h),E=qn(y),C=qn(b);n[`--v-${p}`]=tn(t?k:m),n[`--v-${p}-hover`]=tn(E),n[`--v-${p}-active`]=tn(C),n[`--v-${p}-contrast`]=Er(t?k:m),n[`--v-${p}-contrast-hover`]=Er(E),n[`--v-${p}-contrast-active`]=Er(C);let $=g[50],N=g[100],ge=t?g[800]:g[700];n[`--v-${p}-soft`]=$,n[`--v-${p}-soft-hover`]=N,n[`--v-${p}-soft-text`]=ge,n[`--v-${p}-ring`]=Bn(k,t?.45:.32),n[`--v-${p}-border`]=t?g[300]:g[200],o[p]=n[`--v-${p}-contrast`]}let i=(d=ut((u=e.neutral)!=null?u:e.primary))!=null?d:jo,s=Io(i).h,a=(p,m)=>vu({l:p,c:m,h:s}),l={};if(zs.forEach((p,m)=>{let v=t?bu:yu;l[String(p)]=a(v[m],.012),n[`--v-neutral-${p}`]=l[String(p)]}),r.neutral=l,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 p=qn({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"]=tn(p),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"]=Bn(p,.45),n["--v-shadow-sm"]=`0 1px 2px ${Bn(p,.08)}`,n["--v-shadow"]=`0 10px 30px ${Bn(p,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${Bn(p,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Er((f=ut(n["--v-surface"]))!=null?f:hu),{vars:n,scales:r,contrast:o}}function js(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
320
320
|
`);return`${e} {
|
|
321
321
|
${n}
|
|
322
|
-
}`}var
|
|
323
|
-
${
|
|
324
|
-
}`,
|
|
325
|
-
`)
|
|
322
|
+
}`}var Tr=null,xr=null;function Fm(e){var r,o,i,s,a,l,c,u,d;let t=(r=Bo[e.preset])!=null?r:Bo.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:(l=e.danger)!=null?l:t.danger,info:(c=e.info)!=null?c:t.info,neutral:(u=e.neutral)!=null?u:t.neutral};for(let f of Eu)ut(n[f])||(console.warn(`[Voodoo] invalid color in palette.${f}: "${n[f]}". Using preset.`),n[f]=t[f]);return{colors:n,radius:(d=e.radius)!=null?d:"12px",font:pu(e.font,Pm),mono:pu(e.monoFont,Dm)}}function $m(e){if(typeof document=="undefined"||!x.injectStyles)return;ye();let t=document.getElementById(fu);t||(t=document.createElement("style"),t.id=fu,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function $o(e={}){let{colors:t,radius:n,font:r,mono:o}=Fm(e),i=mu(t,!1),s=mu(t,!0),a={...Om(n),"--v-font-sans":r,"--v-font-mono":o},l=["/* Palette generated by V.palette(). Do not edit manually. */",js(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
323
|
+
${js(':root:not([data-theme="light"])',s.vars)}
|
|
324
|
+
}`,js(':root[data-theme="dark"]',s.vars)].join(`
|
|
325
|
+
`);$m(l);let c={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:l};if(Tr=c,xr={...e},e.persist!==!1&&typeof document!="undefined"){let u={...e};delete u.persist,ae.set(Us,u)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:c})),c}var gu=!1;function Vs(){if(Tr&&gu)return Tr;gu=!0;let e=ae.get(Us),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return $o(t)}function _s(){Tr||Vs()}function Ws(){return Vs()}var xu=Object.assign($o,{presets:Bo,get names(){return Object.keys(Bo)},get current(){return Tr},get options(){return xr},init:Vs,ensure:_s,reset(){return ae.remove(Us),$o({persist:!1})},use(e){return $o({...xr!=null?xr:{},preset:e,primary:void 0,accent:void 0})},scale:wu,contrastText:Er,contrastRatio:qs,luminance(e){let t=typeof e=="string"?ut(e):e;return t?Bs(t):0},convert:{parseColor:ut,rgbToOklch:Io,oklchToRgb:qn,toHex:tn,toRgba:Bn}});var tt={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},Qs={duration:220,size:"md"},Im=`
|
|
326
326
|
[v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
|
|
327
327
|
|
|
328
328
|
.v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
|
|
@@ -418,7 +418,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
418
418
|
@media (prefers-reduced-motion: reduce){
|
|
419
419
|
.v-dialog-backdrop,.v-dialog-panel{transition:none}
|
|
420
420
|
}
|
|
421
|
-
`;function
|
|
422
|
-
`)){let u=document.createElement("p");u.textContent=c,i.appendChild(u)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:$e.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var d;let u=Wc({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(f){var p;(p=e.onClose)==null||p.call(e,f,u),c(f===void 0?null:f)}});if(o&&u.panel.insertBefore(o,u.body),s.length){let f=document.createElement("div");f.className="v-dialog-foot";for(let p of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(d=p.variant)!=null?d:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var g,h;((g=p.onClick)==null?void 0:g.call(p,u))!==!1&&p.close!==!1&&u.close((h=p.value)!=null?h:null)}),f.appendChild(m)}u.panel.appendChild(f)}u.body.childNodes.length||u.body.remove()})}function rm(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function As(e,t={}){var n;return xn({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:$e.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function bo(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return xn({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:$e.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:$e.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function Ss(e,t={}){var m,v,g,h;yo();let n=(m=t.type)!=null?m:"text",r=ue("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(v=t.value)!=null?v:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let y=document.createElement("p");y.className="v-dialog-hint",y.id=o,y.textContent=t.hint,s.appendChild(y),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let u=()=>n==="number"?l.value.trim():l.value,d=y=>{var x,C;let w=u(),T=null;return t.required&&!w.trim()?T=$e.required:T=(C=(x=t.validate)==null?void 0:x.call(t,w))!=null?C:null,T?(c.textContent=T,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),y.close(w),!0)},f=null;return l.addEventListener("keydown",y=>{let w=y;w.key==="Enter"&&(n==="textarea"&&!w.ctrlKey&&!w.metaKey||(y.preventDefault(),f&&d(f)))}),xn({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(g=t.cancelLabel)!=null?g:$e.cancel,value:null,variant:"secondary"},{label:(h=t.confirmLabel)!=null?h:$e.confirm,variant:"primary",close:!1,onClick(y){return f=y,d(y),!1}}],onOpen(y){var w;f=y,(w=t.onOpen)==null||w.call(t,y)}}).then(y=>typeof y=="string"?y:null)}b("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){It.close(o||void 0);return}if(n.toggle){o&&It.toggle(o);return}o&&It.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});b("modal-content",({el:e})=>{yo(),e.id||(e.id=ue("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:P.REF});b("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?xs.get(i):void 0;s?s.handle.close(t.trim()||void 0):It.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var bs=!1;b("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||$e.confirmQuestion,i=s=>{var d,f,p;if(bs)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(d=Le(e,`${E.prefix}confirm-title`))!=null?d:void 0,c=(f=Le(e,`${E.prefix}confirm-label`))!=null?f:void 0,u=(p=Le(e,`${E.prefix}confirm-cancel`))!=null?p:void 0;bo(o,{title:l,confirmLabel:c,cancelLabel:u,danger:!!n.danger,size:"sm"}).then(m=>{if(m){bs=!0;try{a.click()}finally{bs=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:P.REF});H("$modal",()=>It);H("$dialog",()=>xn);H("$alert",()=>As);H("$confirm",()=>bo);H("$prompt",()=>Ss);X();ee();var nr=new Map;function oe(e,t){nr.set(e.trim().toLowerCase(),t)}var om={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},im=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Qc=new Set(["currency","percent"]);function jt(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=om[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function Eo(e,t={}){var v,g,h,y,w;let n=Math.max(0,Math.trunc((v=t.decimals)!=null?v:2)),r=(g=t.decimal)!=null?g:",",o=(h=t.thousands)!=null?h:".",i=(y=t.prefix)!=null?y:"R$ ",s=(w=t.suffix)!=null?w:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let u=c.padStart(n+1,"0"),d=n?u.slice(0,u.length-n):u,f=n?u.slice(u.length-n):"",m=d.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Gc(e,t=2){return Eo(e,{prefix:"",suffix:"%",decimals:t})}oe("cpf","999.999.999-99");oe("cnpj","99.999.999/9999-99");oe("cep","99999-999");oe("date","99/99/9999");oe("time","99:99");oe("datetime","99/99/9999 99:99");oe("cvv","9999");oe("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return jt(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});oe("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return jt(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});oe("currency",e=>Eo(e));oe("percent",e=>Gc(e));oe("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?jt(t,"9999 999999 99999"):t.length>16?jt(t,"9999 9999 9999 9999 999"):jt(t,"9999 9999 9999 9999")});oe("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return jt(t,n?"AAA-9999":"AAA9A99")});oe("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});oe("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function tr(e,t){let n=e==null?"":String(e);if(!t)return n;let r=nr.get(t.trim().toLowerCase());return typeof r=="function"?r(n):jt(n,typeof r=="string"?r:t)}function xo(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Qc.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var Xc=Object.assign((e,t)=>tr(e,t),{apply:tr,unmask:xo,register:oe,currency:Eo,percent:Gc,presets:nr});function wo(e){return e!==void 0&&im.test(e)}function Kc(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)wo(e[o])&&n++;return n}function Yc(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(wo(e[r])&&(n++,n===t))return r+1;return e.length}var Ms=new WeakSet;function Jc(e,t,n){var m;if(Ms.has(e))return;Ms.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var v;return String(i?i.call(e):(v=e.getAttribute("value"))!=null?v:"")},l=v=>{s?s.call(e,v):e.setAttribute("value",v)},c=v=>{try{e.setSelectionRange(v,v)}catch(g){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let v=String(i.call(e));return t.clean?t.clean(v):v},set(v){s.call(e,t.format(v==null?"":String(v)))}}),n(()=>{let v=a();Reflect.deleteProperty(e,"value"),l(v)}));let u=()=>{var w,T;let v=a(),g=(w=e.selectionStart)!=null?w:v.length,h=Kc(v,g),y=t.format(v);y!==v&&l(y),t.rightToLeft?c(Math.max(0,y.length-((T=t.suffixLength)!=null?T:0))):c(Yc(y,h))},d=()=>u(),f=v=>{var C,N;if(v.key!=="Backspace")return;let g=(C=e.selectionStart)!=null?C:0,h=(N=e.selectionEnd)!=null?N:0;if(g!==h||g===0)return;let y=a();if(wo(y[g-1]))return;let w=g-1;for(;w>=0&&!wo(y[w]);)w--;if(v.preventDefault(),w<0)return;let T=y.slice(0,w)+y.slice(g),x=Kc(T,w);l(t.format(T)),c(Yc(a(),x)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",d),e.addEventListener("keydown",f),n(()=>{Ms.delete(e),e.removeEventListener("input",d),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Zc(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${E.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(Y(`${E.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}b("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Zc(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${E.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Jc(o,{format:l=>tr(l,i),clean:a?l=>xo(l,s):void 0,rightToLeft:Qc.has(s),suffixLength:s==="percent"?1:0},r)},{priority:P.MODEL+5});b("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,v;let o=Zc(e,"mask-currency");if(!o)return;let i=g=>{var h;return(h=e.getAttribute(`${E.prefix}${g}`))!=null?h:e.getAttribute(`data-v-${g}`)},s=(f=typeof n.decimals=="string"?n.decimals:null)!=null?f:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(p=i("mask-suffix"))!=null?p:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},u=!!n.unmask||!!n.raw,d=(m=c.decimals)!=null?m:2;Jc(o,{format:g=>Eo(g,c),clean:u?g=>{let h=g.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!h)return"";if(d===0)return h;let y=h.padStart(d+1,"0"),w=`${y.slice(0,y.length-d)}.${y.slice(y.length-d)}`;return g.trim().startsWith("-")?`-${w}`:w}:void 0,rightToLeft:!0,suffixLength:((v=c.suffix)!=null?v:"").length},r)},{priority:P.MODEL+5});var eu=((e,t)=>Si(e,t));Object.assign(eu,Or,{query:Si,ready:Mi,fromHtml:Ol,Collection:ze,modal:It,alert:As,confirm:bo,prompt:Ss,dialog:xn,validator:I,validate:Xi,validateForm:Xi,serializeForm:gn,messages:Fe,showFormErrors:Zr,showFieldError:Jr,clearErrors:Yn,mask:Xc,masks:nr,applyMask:tr,unmask:xo,registerMask:oe,palette:qc,hotkey:_r,sound:mt,magic:H});var Cs=eu;ee();function sm(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 am(){var s;if(typeof document=="undefined")return{manual:!1};let e=(s=document.currentScript)!=null?s: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&&(E.prefix=n);let r=e.getAttribute("data-base-url");r&&(E.baseURL=r);let o=e.getAttribute("data-locale");o&&(E.locale=o),sm(e)&&(E.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(E.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(E.injectStyles=!1),e.hasAttribute("data-no-observer")&&(E.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(E.cleanAttributes=!1),{manual:t}}function lm(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 tu(e){var o;if(typeof window=="undefined")return;let t=am(),n=window;if(n.V=e,n.Voodoo=e,pe.V=e,pe.Voodoo=e,E.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(E.baseURL),qe.init(),t.manual||!E.autoStart){Rn(()=>{hs()});return}Rn(()=>{hs(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),E.devtools&&lm(e)})}tu(Cs);var cm=Cs;return cu(um);})();
|
|
421
|
+
`;function Vo(){ye(),_s(),ie("dialog",Im)}var Gs={info:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.6v.2"/></svg>',success:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m8.2 12.3 2.6 2.6 5-5.2"/></svg>',warning:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4.6 2.9 19.4h18.2z"/><path d="M12 10v4M12 17.2v.2"/></svg>',danger:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6M15 9l-6 6"/></svg>',question:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9.6 9.4a2.4 2.4 0 1 1 3.2 2.3c-.6.2-.8.7-.8 1.3v.5M12 16.6v.2"/></svg>',close:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg>'},We=[],Xs=new WeakMap,Js=0,Tu="",ku="";function jm(){if(Js++>0)return;let e=document.body;Tu=e.style.overflow,ku=e.style.paddingRight;let t=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow="hidden",t>0){let n=parseFloat(getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`}}function Bm(){Js!==0&&(--Js>0||(document.body.style.overflow=Tu,document.body.style.paddingRight=ku))}var qm='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function Zs(e){return Array.from(e.querySelectorAll(qm)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function ea(){return We[We.length-1]}function zm(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var Uo=!1;function Lu(e){let t=ea();if(!t)return;if(e.key==="Escape"){if(t.options.closeOnEscape===!1)return;e.preventDefault(),t.handle.close(void 0);return}if(e.key!=="Tab")return;let n=Zs(t.handle.panel);if(!n.length){e.preventDefault(),t.handle.panel.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;e.shiftKey&&(i===r||!t.handle.panel.contains(i))?(e.preventDefault(),o.focus()):!e.shiftKey&&i===o&&(e.preventDefault(),r.focus())}function Au(e){var o;let t=ea();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=Zs(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function Um(){Uo||(Uo=!0,document.addEventListener("keydown",Lu,!0),document.addEventListener("focusin",Au,!0))}function Vm(){Uo&&(Uo=!1,document.removeEventListener("keydown",Lu,!0),document.removeEventListener("focusin",Au,!0))}function Su(e){var f,p,m,v,g,h,y;Vo();let t=ke("v-dialog-"),n=zm()?0:Qs.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(f=e.size)!=null?f:Qs.size),r.setAttribute("data-position",(p=e.position)!=null?p:"center"),r.style.setProperty("--v-dialog-ms",`${n}ms`),r.style.setProperty("--v-dialog-layer",String(We.length*2));let o=document.createElement("div");o.className="v-dialog-backdrop",r.appendChild(o);let i=document.createElement("div");i.className="v-dialog-panel",e.plain&&i.classList.add("is-plain"),e.className&&i.classList.add(...e.className.split(/\s+/).filter(Boolean)),i.setAttribute("role",(m=e.role)!=null?m:"dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,e.labelledBy?i.setAttribute("aria-labelledby",e.labelledBy):e.ariaLabel&&i.setAttribute("aria-label",e.ariaLabel),e.describedBy&&i.setAttribute("aria-describedby",e.describedBy),r.appendChild(i);let s=document.createElement("div");if(s.className="v-dialog-body",e.source){let b=document.createComment(" v-modal ");(v=e.source.parentNode)==null||v.insertBefore(b,e.source),Ks.set(e.source,b),e.source.classList.add("v-dialog-open"),e.source.removeAttribute("hidden"),s.appendChild(e.source)}else e.content&&s.appendChild(e.content);if(i.appendChild(s),e.closable!==!1){let b=document.createElement("button");b.type="button",b.className="v-dialog-x",b.setAttribute("aria-label",tt.close),b.innerHTML=Gs.close,b.addEventListener("click",()=>u.close(void 0)),i.appendChild(b)}let a=!1,l=()=>{},c=new Promise(b=>{l=b}),u={id:t,root:r,panel:i,body:s,key:(g=e.key)!=null?g:null,source:(h=e.source)!=null?h:null,closed:c,close(b){if(a)return;a=!0;let k=We.findIndex(C=>C.handle===u);k>-1&&We.splice(k,1),Xs.delete(r),d.locked&&Bm(),We.length||Vm(),r.classList.remove("is-open"),r.classList.add("is-closing");let E=()=>{var $;let C=e.source;if(C){let N=Ks.get(C);C.classList.remove("v-dialog-open"),N&&N.parentNode?(N.parentNode.insertBefore(C,N),N.remove()):C.remove(),Ks.delete(C),Hi(C,"modal-content")&&C.setAttribute("hidden","")}if(r.remove(),($=e.onClose)==null||$.call(e,b,u),l(b),e.restoreFocus!==!1){let N=d.previousFocus;N&&typeof N.focus=="function"&&N.isConnected&&N.focus()}};n>0?setTimeout(E,n):E()}},d={handle:u,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&u.close(void 0)}),d.locked&&jm(),We.push(d),Xs.set(r,d),Um(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let b=_m(e,i);b==null||b.focus()}),(y=e.onOpen)==null||y.call(e,u),u}var Ks=new WeakMap;function _m(e,t){var i;let n=e.initialFocus;if(n instanceof HTMLElement)return n;if(typeof n=="string"){let s=t.querySelector(n);if(s)return s}let r=t.querySelector("[autofocus],[data-autofocus]");return r||((i=Zs(t)[0])!=null?i:t)}function Wm(e){if(e instanceof HTMLElement)return e;let t=String(e!=null?e:"").trim();if(!t)return null;let n=/^[\w-]+$/.test(t)?`#${t}`:t;return document.querySelector(n)}function qo(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function zo(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return We.find(n=>{var o;if(n.handle.key===e||n.handle.key===t)return!0;let r=n.handle.source;return!!r&&((o=r.matches)==null?void 0:o.call(r,t))})}var nn={open(e,t={}){var s,a;let n=Wm(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=qo(e))!=null?s:n.id?`#${n.id}`:null,o=r?zo(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ke("v-dialog-title-")),Su({...t,source:n,key:r,labelledBy:(a=i==null?void 0:i.id)!=null?a:null})},close(e,t){var o;if(e===void 0){(o=ea())==null||o.handle.close(t);return}let n=qo(e),r=n?zo(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...We].reverse())t.handle.close(e)},toggle(e,t={}){let n=qo(e),r=n?zo(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return We.length>0;let t=qo(e);return!!(t&&zo(t))},get opened(){return We.map(e=>e.handle)},get count(){return We.length},configure(e){Object.assign(Qs,e)},labels(e){return Object.assign(tt,e),tt}};function Un(e){var a,l;Vo();let t=document.createDocumentFragment(),n=e.title?ke("v-dialog-title-"):null,r=e.description?ke("v-dialog-desc-"):null,o=null;if(e.title||e.description||e.icon){o=document.createElement("div"),o.className="v-dialog-head";let c=e.icon&&e.icon!=="none"?e.icon:null;if(c&&Gs[c]){let d=document.createElement("div");d.className="v-dialog-icon",d.setAttribute("aria-hidden","true"),d.setAttribute("data-tone",(a=e.tone)!=null?a:Km(c)),d.innerHTML=Gs[c],o.appendChild(d)}let u=document.createElement("div");if(u.className="v-dialog-heading",e.title){let d=document.createElement("h2");d.className="v-dialog-title",d.id=n,d.textContent=e.title,u.appendChild(d)}if(e.description){let d=document.createElement("p");d.className="v-dialog-desc",d.id=r,d.textContent=e.description,u.appendChild(d)}o.appendChild(u)}let i=document.createDocumentFragment();if(e.text)for(let c of e.text.split(`
|
|
422
|
+
`)){let u=document.createElement("p");u.textContent=c,i.appendChild(u)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:tt.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var d;let u=Su({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(f){var p;(p=e.onClose)==null||p.call(e,f,u),c(f===void 0?null:f)}});if(o&&u.panel.insertBefore(o,u.body),s.length){let f=document.createElement("div");f.className="v-dialog-foot";for(let p of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(d=p.variant)!=null?d:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var g,h;((g=p.onClick)==null?void 0:g.call(p,u))!==!1&&p.close!==!1&&u.close((h=p.value)!=null?h:null)}),f.appendChild(m)}u.panel.appendChild(f)}u.body.childNodes.length||u.body.remove()})}function Km(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function ta(e,t={}){var n;return Un({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:tt.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function _o(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return Un({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:tt.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:tt.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function na(e,t={}){var m,v,g,h;Vo();let n=(m=t.type)!=null?m:"text",r=ke("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(v=t.value)!=null?v:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let y=document.createElement("p");y.className="v-dialog-hint",y.id=o,y.textContent=t.hint,s.appendChild(y),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let u=()=>n==="number"?l.value.trim():l.value,d=y=>{var E,C;let b=u(),k=null;return t.required&&!b.trim()?k=tt.required:k=(C=(E=t.validate)==null?void 0:E.call(t,b))!=null?C:null,k?(c.textContent=k,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),y.close(b),!0)},f=null;return l.addEventListener("keydown",y=>{let b=y;b.key==="Enter"&&(n==="textarea"&&!b.ctrlKey&&!b.metaKey||(y.preventDefault(),f&&d(f)))}),Un({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(g=t.cancelLabel)!=null?g:tt.cancel,value:null,variant:"secondary"},{label:(h=t.confirmLabel)!=null?h:tt.confirm,variant:"primary",close:!1,onClick(y){return f=y,d(y),!1}}],onOpen(y){var b;f=y,(b=t.onOpen)==null||b.call(t,y)}}).then(y=>typeof y=="string"?y:null)}w("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){nn.close(o||void 0);return}if(n.toggle){o&&nn.toggle(o);return}o&&nn.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});w("modal-content",({el:e})=>{Vo(),e.id||(e.id=ke("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:B.REF});w("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?Xs.get(i):void 0;s?s.handle.close(t.trim()||void 0):nn.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var Ys=!1;w("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||tt.confirmQuestion,i=s=>{var d,f,p;if(Ys)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(d=ze(e,`${x.prefix}confirm-title`))!=null?d:void 0,c=(f=ze(e,`${x.prefix}confirm-label`))!=null?f:void 0,u=(p=ze(e,`${x.prefix}confirm-cancel`))!=null?p:void 0;_o(o,{title:l,confirmLabel:c,cancelLabel:u,danger:!!n.danger,size:"sm"}).then(m=>{if(m){Ys=!0;try{a.click()}finally{Ys=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:B.REF});F("$modal",()=>nn);F("$dialog",()=>Un);F("$alert",()=>ta);F("$confirm",()=>_o);F("$prompt",()=>na);le();de();var Lr=new Map;function ve(e,t){Lr.set(e.trim().toLowerCase(),t)}var Ym={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},Qm=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Ru=new Set(["currency","percent"]);function rn(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=Ym[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function Ko(e,t={}){var v,g,h,y,b;let n=Math.max(0,Math.trunc((v=t.decimals)!=null?v:2)),r=(g=t.decimal)!=null?g:",",o=(h=t.thousands)!=null?h:".",i=(y=t.prefix)!=null?y:"R$ ",s=(b=t.suffix)!=null?b:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let u=c.padStart(n+1,"0"),d=n?u.slice(0,u.length-n):u,f=n?u.slice(u.length-n):"",m=d.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Hu(e,t=2){return Ko(e,{prefix:"",suffix:"%",decimals:t})}ve("cpf","999.999.999-99");ve("cnpj","99.999.999/9999-99");ve("cep","99999-999");ve("date","99/99/9999");ve("time","99:99");ve("datetime","99/99/9999 99:99");ve("cvv","9999");ve("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return rn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});ve("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return rn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});ve("currency",e=>Ko(e));ve("percent",e=>Hu(e));ve("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?rn(t,"9999 999999 99999"):t.length>16?rn(t,"9999 9999 9999 9999 999"):rn(t,"9999 9999 9999 9999")});ve("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return rn(t,n?"AAA-9999":"AAA9A99")});ve("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});ve("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function kr(e,t){let n=e==null?"":String(e);if(!t)return n;let r=Lr.get(t.trim().toLowerCase());return typeof r=="function"?r(n):rn(n,typeof r=="string"?r:t)}function Yo(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Ru.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var Pu=Object.assign((e,t)=>kr(e,t),{apply:kr,unmask:Yo,register:ve,currency:Ko,percent:Hu,presets:Lr});function Wo(e){return e!==void 0&&Qm.test(e)}function Mu(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)Wo(e[o])&&n++;return n}function Cu(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(Wo(e[r])&&(n++,n===t))return r+1;return e.length}var ra=new WeakSet;function Du(e,t,n){var m;if(ra.has(e))return;ra.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var v;return String(i?i.call(e):(v=e.getAttribute("value"))!=null?v:"")},l=v=>{s?s.call(e,v):e.setAttribute("value",v)},c=v=>{try{e.setSelectionRange(v,v)}catch(g){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let v=String(i.call(e));return t.clean?t.clean(v):v},set(v){s.call(e,t.format(v==null?"":String(v)))}}),n(()=>{let v=a();Reflect.deleteProperty(e,"value"),l(v)}));let u=()=>{var b,k;let v=a(),g=(b=e.selectionStart)!=null?b:v.length,h=Mu(v,g),y=t.format(v);y!==v&&l(y),t.rightToLeft?c(Math.max(0,y.length-((k=t.suffixLength)!=null?k:0))):c(Cu(y,h))},d=()=>u(),f=v=>{var C,$;if(v.key!=="Backspace")return;let g=(C=e.selectionStart)!=null?C:0,h=($=e.selectionEnd)!=null?$:0;if(g!==h||g===0)return;let y=a();if(Wo(y[g-1]))return;let b=g-1;for(;b>=0&&!Wo(y[b]);)b--;if(v.preventDefault(),b<0)return;let k=y.slice(0,b)+y.slice(g),E=Mu(k,b);l(t.format(k)),c(Cu(a(),E)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",d),e.addEventListener("keydown",f),n(()=>{ra.delete(e),e.removeEventListener("input",d),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Nu(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return oe(`${x.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(oe(`${x.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}w("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Nu(e,"mask");if(!o)return;let i=t.trim();if(!i){oe(`${x.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Du(o,{format:l=>kr(l,i),clean:a?l=>Yo(l,s):void 0,rightToLeft:Ru.has(s),suffixLength:s==="percent"?1:0},r)},{priority:B.MODEL+5});w("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,v;let o=Nu(e,"mask-currency");if(!o)return;let i=g=>{var h;return(h=e.getAttribute(`${x.prefix}${g}`))!=null?h:e.getAttribute(`data-v-${g}`)},s=(f=typeof n.decimals=="string"?n.decimals:null)!=null?f:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(p=i("mask-suffix"))!=null?p:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},u=!!n.unmask||!!n.raw,d=(m=c.decimals)!=null?m:2;Du(o,{format:g=>Ko(g,c),clean:u?g=>{let h=g.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!h)return"";if(d===0)return h;let y=h.padStart(d+1,"0"),b=`${y.slice(0,y.length-d)}.${y.slice(y.length-d)}`;return g.trim().startsWith("-")?`-${b}`:b}:void 0,rightToLeft:!0,suffixLength:((v=c.suffix)!=null?v:"").length},r)},{priority:B.MODEL+5});var Ou=((e,t)=>ns(e,t));Object.assign(Ou,ao,{query:ns,ready:rs,fromHtml:vc,Collection:st,modal:nn,alert:ta,confirm:_o,prompt:na,dialog:Un,validator:W,validate:As,validateForm:As,serializeForm:Fn,messages:et,showFormErrors:Ao,showFieldError:Lo,clearErrors:hr,mask:Pu,masks:Lr,applyMask:kr,unmask:Yo,registerMask:ve,palette:xu,hotkey:ho,sound:Pt,magic:F});var oa=Ou;de();function Gm(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 Xm(){var s;if(typeof document=="undefined")return{manual:!1};let e=(s=document.currentScript)!=null?s: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&&(x.prefix=n);let r=e.getAttribute("data-base-url");r&&(x.baseURL=r);let o=e.getAttribute("data-locale");o&&(x.locale=o),Gm(e)&&(x.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(x.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(x.injectStyles=!1),e.hasAttribute("data-no-observer")&&(x.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(x.cleanAttributes=!1),{manual:t}}function Jm(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 Fu(e){var o;if(typeof window=="undefined")return;let t=Xm(),n=window;if(n.V=e,n.Voodoo=e,Ce.V=e,Ce.Voodoo=e,x.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(x.baseURL),it.init(),t.manual||!x.autoStart){Zn(()=>{Ws()});return}Zn(()=>{Ws(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),x.devtools&&Jm(e)})}Fu(oa);var Zm=oa;return Wu(eg);})();
|
|
423
423
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
424
424
|
//# sourceMappingURL=voodoo.min.js.map
|