voodoojs 0.11.2 → 0.12.1
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-H2ZUEQWV.js → chunk-4M4ZXHNY.js} +84 -19
- package/dist/{chunk-UV5PMS7P.js → chunk-72PMUUMT.js} +4 -4
- package/dist/{chunk-KQYSJHZR.js → chunk-AFMCDNYS.js} +5 -5
- package/dist/{chunk-DJJB35SR.js → chunk-D7675IJG.js} +6 -6
- package/dist/{chunk-IS3DR2KY.js → chunk-GXPNWCGE.js} +3 -3
- package/dist/{chunk-DCE5WIGA.js → chunk-HNM3CTBD.js} +5 -5
- package/dist/{chunk-IGZSDZKU.js → chunk-KN7NAKBL.js} +4 -4
- package/dist/{chunk-WJP3YGUI.js → chunk-LLNDLLKV.js} +4 -4
- package/dist/{chunk-V3O3WOZH.js → chunk-NP66JM2P.js} +4 -4
- package/dist/{chunk-AH2VXDZD.js → chunk-RDHYPGH6.js} +187 -18
- package/dist/{chunk-NFDXVIII.js → chunk-T5ION5NG.js} +3 -3
- package/dist/essential.cjs +263 -25
- package/dist/essential.d.cts +1 -1
- package/dist/essential.d.ts +1 -1
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +1 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +273 -27
- package/dist/index.d.cts +88 -4
- package/dist/index.d.ts +88 -4
- package/dist/index.js +20 -20
- package/dist/{query-Cf-7iibE.d.ts → query-DzHfm8Kg.d.ts} +40 -29
- package/dist/{query-DiQAS73Q.d.cts → query-XooOh4vB.d.cts} +40 -29
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-GR4X6O7I.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +242 -24
- package/dist/voodoo.core.min.js +17 -17
- package/dist/voodoo.full.js +266 -27
- package/dist/voodoo.full.min.js +57 -53
- package/dist/voodoo.js +264 -25
- package/dist/voodoo.min.js +29 -25
- package/package.json +1 -1
- package/dist/style-4X62SABN.js +0 -5
package/dist/voodoo.full.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.12.1
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Voodoo=(()=>{var Co=Object.defineProperty;var mm=Object.getOwnPropertyDescriptor;var vm=Object.getOwnPropertyNames;var hm=Object.prototype.hasOwnProperty;var gm=(e,t,n)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Es=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ao=(e,t)=>{for(var n in t)Co(e,n,{get:t[n],enumerable:!0})},bm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vm(t))!hm.call(e,o)&&o!==n&&Co(e,o,{get:()=>t[o],enumerable:!(r=mm(t,o))||r.enumerable});return e};var ym=e=>bm(Co({},"__esModule",{value:!0}),e);var P=(e,t,n)=>gm(e,typeof t!="symbol"?t+"":t,n);var Oc={};Ao(Oc,{EffectScope:()=>rt,ITERATE_KEY:()=>tn,ReactiveEffect:()=>Cn,TriggerType:()=>Dc,computed:()=>Sr,effect:()=>Fe,effectScope:()=>Ns,enableTracking:()=>$c,flushSync:()=>As,getActiveEffect:()=>wm,getActiveScope:()=>km,handleError:()=>K,hasChanged:()=>Lr,isReactive:()=>Is,isRef:()=>nn,markRaw:()=>Fs,nextTick:()=>ut,pauseTracking:()=>Rc,queueJob:()=>No,queuePostFlush:()=>Se,reactive:()=>Y,ref:()=>Mr,resetTracking:()=>Ds,setErrorHandler:()=>Rs,shallowRef:()=>zs,stop:()=>Ps,toRaw:()=>Me,track:()=>dt,trigger:()=>wt,unref:()=>Bs,warn:()=>X,watch:()=>Ie,watchEffect:()=>js});function ut(e){let t=Do||Ss;return e?t.then(e):t}function No(e){e.queued||(e.queued=!0,Mn.push(e),Ac())}function Se(e){Ro.push(e),Ac()}function Ac(){$o||Tr||(Tr=!0,Do=Ss.then(Cs))}function Cs(){Tr=!1,$o=!0;let e=new Map;try{for(let t=0;t<Mn.length;t++){let n=Mn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>xm){X("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){K(o,"effect")}}}finally{for(let n of Mn)n.queued=!1;Mn=[],$o=!1;let t=Ro;Ro=[];for(let n of t)try{n()}catch(r){K(r,"post-flush")}Mn.length||Ro.length?(Do=Ss.then(Cs),Tr=!0):Do=null}}function As(){$o||(Tr=!1,Cs())}function Rs(e){ks=e}function K(e,t){if(ks){ks(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function X(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Rc(){$s.push(rn),rn=!1}function $c(){$s.push(rn),rn=!0}function Ds(){var e;rn=(e=$s.pop())!=null?e:!0}function wm(){return Oe}function Lc(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Fe(e,t){let n=new Cn(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Ps(e){e instanceof Cn?e.stop():e.effect.stop()}function Ns(e=!1){return new rt(e)}function km(){return Nt}function dt(e,t){if(!rn||!Oe)return;let n=Ts.get(e);n||Ts.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Oe)||(r.add(Oe),Oe.deps.push(r))}function wt(e,t,n,r){let o=Ts.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Oe||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?Ls(n)&&s(o.get("length")):s(o.get(tn));else if(t==="delete")a||s(o.get(tn));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():No(a)}function Ls(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Ht(e){return e!==null&&typeof e=="object"}function Lm(e){if(!Ht(e)||e[Pc]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Tm.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Fs(e){return Object.defineProperty(e,Pc,{value:!0,enumerable:!1,configurable:!0}),e}function Me(e){let t=e&&e[Hs];return t?Me(t):e}function Is(e){return!!(e&&e[Os])}function Y(e){if(!Ht(e)||Is(e)||!Lm(e))return e;let t=Mc.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?Sm:Mm);return Mc.set(e,r),r}function Lr(e,t){return!Object.is(e,t)}function nn(e){return!!(e&&e.__v_isRef===!0)}function Cc(e){return Ht(e)?Y(e):e}function Nc(e){!rn||!Oe||e.dep.has(Oe)||(e.dep.add(Oe),Oe.deps.push(e.dep))}function Hc(e){for(let t of[...e.dep])t.scheduler?t.scheduler():No(t)}function Mr(e){return new Po(e)}function zs(e){return new Po(e,!0)}function Bs(e){return nn(e)?e.value:e}function Sr(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Ms(n,r)}function Ie(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(nn(e)?s=()=>e.value:typeof e=="function"?s=e:Is(e)?s=()=>Sn(e):s=()=>e,o){let f=s;s=()=>Sn(f())}let a,l,c=f=>{l=f},d=()=>{if(!p.effect.active)return;let f=p();(o||Lr(f,a))&&(l==null||l(),l=void 0,t(f,a,c),a=f)},p=i==="pre"?Fe(s,{lazy:!0,scheduler:()=>Se(d)}):Fe(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Se(d):()=>No(p.effect)});return a=p(),r&&t(a,void 0,c),()=>p.effect.stop()}function js(e){let t,n=o=>{t=o},r=Fe(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Sn(e,t=new Set){if(!Ht(e)||t.has(e))return e;if(t.add(e),nn(e))Sn(e.value,t);else if(Array.isArray(e))for(let n of e)Sn(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Sn(n,t));else for(let n of Object.keys(e))Sn(e[n],t);return e}var Ss,Mn,Ro,$o,Tr,Do,xm,ks,Oe,rn,$s,Em,Cn,Nt,rt,tn,Ts,Dc,Hs,Os,Pc,Mc,Sc,Tm,Mm,Sm,Po,Ms,me=Es(()=>{"use strict";Ss=Promise.resolve(),Mn=[],Ro=[],$o=!1,Tr=!1,Do=null,xm=100;ks=null;rn=!0,$s=[];Em=0,Cn=class{constructor(t,n){var o;this.fn=t,this.id=Em++,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=Oe;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Oe,Oe=this,$c(),Lc(this),this.fn()}finally{Ds(),Oe=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){K(r,"effect cleanup")}}stop(){var t;this.active&&(Lc(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};rt=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){K(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)}}}};tn=Symbol("voodoo:iterate"),Ts=new WeakMap;Dc=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Dc||{});Hs=Symbol("voodoo:raw"),Os=Symbol("voodoo:isReactive"),Pc=Symbol("voodoo:skip"),Mc=new WeakMap,Sc=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Me(this);for(let i=0;i<r.length;i++)dt(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Me)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){Rc();try{return Me(this)[t].apply(this,n)}finally{Ds()}};return e})();Tm=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);Mm={get(e,t,n){if(t===Hs)return e;if(t===Os)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Sc,t))return Reflect.get(Sc,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(dt(e,t),nn(o)?r&&Ls(t)?o:o.value:Ht(o)?Y(o):o)},set(e,t,n,r){let o=e[t];if(n=Me(n),!Array.isArray(e)&&nn(o)&&!nn(n))return o.value=n,!0;let i=Array.isArray(e)&&Ls(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===Me(r)&&(i?Lr(n,o)&&wt(e,"set",t,n):wt(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&wt(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&dt(e,t),n},ownKeys(e){return dt(e,Array.isArray(e)?"length":tn),Reflect.ownKeys(e)}},Sm={get(e,t,n){if(t===Hs)return e;if(t===Os)return!0;let r=e;if(t==="size")return dt(r,tn),Reflect.get(r,"size",r);let o={get(s){dt(r,s);let a=r.get(s);return Ht(a)?Y(a):a},has(s){return dt(r,s),r.has(s)},add(s){s=Me(s);let a=r.has(s);return r.add(s),a||wt(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Me(a)),l?Lr(a,c)&&wt(r,"set",s,a):wt(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&wt(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&wt(r,"clear"),a},forEach(s,a){return dt(r,tn),r.forEach((l,c)=>{s.call(a,Ht(l)?Y(l):l,Ht(c)?Y(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){dt(r,tn);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}};Po=class{constructor(t,n=!1){P(this,"shallow",n);P(this,"__v_isRef",!0);P(this,"_value");P(this,"_rawValue");P(this,"dep",new Set);this._rawValue=Me(t),this._value=n?t:Cc(t)}get value(){return Nc(this),this._value}set value(t){let n=Me(t);Lr(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Cc(t),Hc(this))}};Ms=class{constructor(t,n){P(this,"setter",n);P(this,"__v_isRef",!0);P(this,"_value");P(this,"_dirty",!0);P(this,"effect");P(this,"dep",new Set);this.effect=new Cn(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Hc(this))}})}get value(){return Nc(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):X("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function y(e,t,n={}){var r,o;Tt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function on(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function Io(e,t,n){Xc.has(t)||(Xc.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,Tt,j,De,Xc,ce=Es(()=>{"use strict";w={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},Tt=new Map,j={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};De=new Map;Xc=new Set});var Ud={};Ao(Ud,{BASE_TOKENS:()=>Vd,ensureTokens:()=>ge,injectStyle:()=>oe});function oe(e,t){if(typeof document=="undefined"||!w.injectStyles||qd.has(e))return;qd.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function ge(){oe("tokens",Vd)}var qd,Vd,Ne=Es(()=>{"use strict";ce();qd=new Set;Vd=`
|
|
6
|
+
"use strict";var Voodoo=(()=>{var Do=Object.defineProperty;var Lm=Object.getOwnPropertyDescriptor;var Mm=Object.getOwnPropertyNames;var Sm=Object.prototype.hasOwnProperty;var Cm=(e,t,n)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var As=(e,t)=>()=>(e&&(t=e(e=0)),t);var Po=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})},Am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mm(t))!Sm.call(e,o)&&o!==n&&Do(e,o,{get:()=>t[o],enumerable:!(r=Lm(t,o))||r.enumerable});return e};var Rm=e=>Am(Do({},"__esModule",{value:!0}),e);var H=(e,t,n)=>Cm(e,typeof t!="symbol"?t+"":t,n);var Uc={};Po(Uc,{EffectScope:()=>ot,ITERATE_KEY:()=>rn,ReactiveEffect:()=>Dn,TriggerType:()=>Bc,computed:()=>an,effect:()=>Pe,effectScope:()=>Bs,enableTracking:()=>zc,flushSync:()=>Os,getActiveEffect:()=>Dm,getActiveScope:()=>Hm,handleError:()=>W,hasChanged:()=>$r,isReactive:()=>Vs,isRef:()=>on,markRaw:()=>Rr,nextTick:()=>ft,pauseTracking:()=>Ic,queueJob:()=>Io,queuePostFlush:()=>Se,reactive:()=>Y,ref:()=>Ge,resetTracking:()=>zs,setErrorHandler:()=>Fs,shallowRef:()=>Us,stop:()=>Pn,toRaw:()=>Me,track:()=>ut,trigger:()=>Et,unref:()=>_s,warn:()=>X,watch:()=>Ie,watchEffect:()=>Ws});function ft(e){let t=Oo||Hs;return e?t.then(e):t}function Io(e){e.queued||(e.queued=!0,Rn.push(e),Fc())}function Se(e){Ho.push(e),Fc()}function Fc(){No||Ar||(Ar=!0,Oo=Hs.then(Ns))}function Ns(){Ar=!1,No=!0;let e=new Map;try{for(let t=0;t<Rn.length;t++){let n=Rn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>$m){X("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){W(o,"effect")}}}finally{for(let n of Rn)n.queued=!1;Rn=[],No=!1;let t=Ho;Ho=[];for(let n of t)try{n()}catch(r){W(r,"post-flush")}Rn.length||Ho.length?(Oo=Hs.then(Ns),Ar=!0):Oo=null}}function Os(){No||(Ar=!1,Ns())}function Fs(e){Rs=e}function W(e,t){if(Rs){Rs(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function X(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Ic(){Is.push(sn),sn=!1}function zc(){Is.push(sn),sn=!0}function zs(){var e;sn=(e=Is.pop())!=null?e:!0}function Dm(){return Fe}function Pc(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Pe(e,t){let n=new Dn(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Pn(e){e instanceof Dn?e.stop():e.effect.stop()}function Bs(e=!1){return new ot(e)}function Hm(){return Ot}function ut(e,t){if(!sn||!Fe)return;let n=$s.get(e);n||$s.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Fe)||(r.add(Fe),Fe.deps.push(r))}function Et(e,t,n,r){let o=$s.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Fe||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?Ds(n)&&s(o.get("length")):s(o.get(rn));else if(t==="delete")a||s(o.get(rn));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():Io(a)}function Ds(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Ft(e){return e!==null&&typeof e=="object"}function Om(e){if(!Ft(e)||e[jc]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Nm.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Rr(e){return Object.defineProperty(e,jc,{value:!0,enumerable:!1,configurable:!0}),e}function Me(e){let t=e&&e[js];return t?Me(t):e}function Vs(e){return!!(e&&e[qs])}function Y(e){if(!Ft(e)||Vs(e)||!Om(e))return e;let t=Hc.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?Im:Fm);return Hc.set(e,r),r}function $r(e,t){return!Object.is(e,t)}function on(e){return!!(e&&e.__v_isRef===!0)}function Oc(e){return Ft(e)?Y(e):e}function qc(e){!sn||!Fe||e.dep.has(Fe)||(e.dep.add(Fe),Fe.deps.push(e.dep))}function Vc(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Io(t)}function Ge(e){return new Fo(e)}function Us(e){return new Fo(e,!0)}function _s(e){return on(e)?e.value:e}function an(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Ps(n,r)}function Ie(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(on(e)?s=()=>e.value:typeof e=="function"?s=e:Vs(e)?s=()=>$n(e):s=()=>e,o){let p=s;s=()=>$n(p())}let a,l,c=p=>{l=p},d=()=>{if(!f.effect.active)return;let p=f();(o||$r(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?Pe(s,{lazy:!0,scheduler:()=>Se(d)}):Pe(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Se(d):()=>Io(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function Ws(e){let t,n=o=>{t=o},r=Pe(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function $n(e,t=new Set){if(!Ft(e)||t.has(e))return e;if(t.add(e),on(e))$n(e.value,t);else if(Array.isArray(e))for(let n of e)$n(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>$n(n,t));else for(let n of Object.keys(e))$n(e[n],t);return e}var Hs,Rn,Ho,No,Ar,Oo,$m,Rs,Fe,sn,Is,Pm,Dn,Ot,ot,rn,$s,Bc,js,qs,jc,Hc,Nc,Nm,Fm,Im,Fo,Ps,de=As(()=>{"use strict";Hs=Promise.resolve(),Rn=[],Ho=[],No=!1,Ar=!1,Oo=null,$m=100;Rs=null;sn=!0,Is=[];Pm=0,Dn=class{constructor(t,n){var o;this.fn=t,this.id=Pm++,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:Ot;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Fe;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Fe,Fe=this,zc(),Pc(this),this.fn()}finally{zs(),Fe=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){W(r,"effect cleanup")}}stop(){var t;this.active&&(Pc(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};ot=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&Ot&&(this.parent=Ot,Ot.children.push(this))}run(t){if(!this.active)return;let n=Ot;try{return Ot=this,t()}finally{Ot=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){W(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)}}}};rn=Symbol("voodoo:iterate"),$s=new WeakMap;Bc=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Bc||{});js=Symbol("voodoo:raw"),qs=Symbol("voodoo:isReactive"),jc=Symbol("voodoo:skip"),Hc=new WeakMap,Nc=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Me(this);for(let i=0;i<r.length;i++)ut(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Me)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){Ic();try{return Me(this)[t].apply(this,n)}finally{zs()}};return e})();Nm=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);Fm={get(e,t,n){if(t===js)return e;if(t===qs)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Nc,t))return Reflect.get(Nc,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(ut(e,t),on(o)?r&&Ds(t)?o:o.value:Ft(o)?Y(o):o)},set(e,t,n,r){let o=e[t];if(n=Me(n),!Array.isArray(e)&&on(o)&&!on(n))return o.value=n,!0;let i=Array.isArray(e)&&Ds(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===Me(r)&&(i?$r(n,o)&&Et(e,"set",t,n):Et(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Et(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&ut(e,t),n},ownKeys(e){return ut(e,Array.isArray(e)?"length":rn),Reflect.ownKeys(e)}},Im={get(e,t,n){if(t===js)return e;if(t===qs)return!0;let r=e;if(t==="size")return ut(r,rn),Reflect.get(r,"size",r);let o={get(s){ut(r,s);let a=r.get(s);return Ft(a)?Y(a):a},has(s){return ut(r,s),r.has(s)},add(s){s=Me(s);let a=r.has(s);return r.add(s),a||Et(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Me(a)),l?$r(a,c)&&Et(r,"set",s,a):Et(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&Et(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&Et(r,"clear"),a},forEach(s,a){return ut(r,rn),r.forEach((l,c)=>{s.call(a,Ft(l)?Y(l):l,Ft(c)?Y(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){ut(r,rn);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}};Fo=class{constructor(t,n=!1){H(this,"shallow",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_rawValue");H(this,"dep",new Set);this._rawValue=Me(t),this._value=n?t:Oc(t)}get value(){return qc(this),this._value}set value(t){let n=Me(t);$r(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Oc(t),Vc(this))}};Ps=class{constructor(t,n){H(this,"setter",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_dirty",!0);H(this,"effect");H(this,"dep",new Set);this.effect=new Dn(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Vc(this))}})}get value(){return qc(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):X("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function y(e,t,n={}){var r,o;Mt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function ln(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function qo(e,t,n){rd.has(t)||(rd.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,Mt,j,He,rd,ce=As(()=>{"use strict";w={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,j={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};He=new Map;rd=new Set});var Gd={};Po(Gd,{BASE_TOKENS:()=>Xd,ensureTokens:()=>ge,injectStyle:()=>Z});function Z(e,t){if(typeof document=="undefined"||!w.injectStyles||Yd.has(e))return;Yd.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function ge(){Z("tokens",Xd)}var Yd,Xd,Ae=As(()=>{"use strict";ce();Yd=new Set;Xd=`
|
|
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 t0={};Po(t0,{default:()=>e0});de();var te=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}`);H(this,"source",r);H(this,"position",o);this.name="VoodooSyntaxError"}},zm=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],Bm=/[A-Za-z_$À-]/,jm=/[A-Za-z0-9_$À-]/;function qm(e){return Bm.test(e)}function Vm(e){return jm.test(e)}function zo(e){return e>="0"&&e<="9"}var _c={n:`
|
|
54
|
+
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function Bo(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 ee("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(Ho(s)||s==="."&&Ho(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&&Ho(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new ee("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new ee("Unclosed Unicode escape",e,a);let p=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new ee(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);c+=String.fromCodePoint(parseInt(p,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new ee("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new ee("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=Fc[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new ee("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];u+=(i=Fc[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",n+=2;let p=1,f="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let h=m;for(f+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new ee("Unclosed template interpolation",e,a);n++,d.push(f);continue}u+=e[n++]}if(n>=r)throw new ee("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if($m(s)){let c="";for(;n<r&&Dm(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of Cm)if(e.startsWith(c,n)){if(c==="?."&&Ho(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 ee(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ic={"??":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},Pm=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),Nm=new Set(["!","-","+","~","typeof","void","delete"]),zc=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Bc=1200,jc=32,qs=0,Vs=class{constructor(t,n){P(this,"tokens",t);P(this,"source",n);P(this,"pos",0);P(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 ee(`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>Bc){let t=this.peek();throw new ee(`Expression too deeply nested (limit of ${Bc} 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"&&Pm.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new ee("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 ee("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 ee("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 ee("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 ee("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 ee("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 Ic||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Ic[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")&&Nm.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 ee("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 ee("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 ee("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(qs>=jc)throw new ee(`Template literal too deeply nested (limit of ${jc} levels)`,this.source,t.start);qs++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>_e(r))}}finally{qs--}}if(t.type==="ident")return t.value in zc?(this.next(),{t:"lit",v:zc[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 ee("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 ee(`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 ee("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}}},An=new Map,qc=2e3;function _e(e){let t=An.get(e);if(t)return t;let n=new Vs(Oo(e),e).parseProgram();return An.size>=qc&&Hm(),An.set(e,n),n}function Hm(){let e=Math.floor(qc/2),t=0;for(let n of An.keys())if(An.delete(n),++t>=e)break}function Vc(){An.clear()}var Kc,Om=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Kc=Object.hasOwn)!=null?Kc:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Fm=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"]),He={Math,JSON,Date,Number,String,Boolean,Array,Object:Om,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},Ee=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 te("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(zo(s)||s==="."&&zo(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&&zo(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new te("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new te("Unclosed Unicode escape",e,a);let f=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new te(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new te("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new te("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=_c[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new te("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];u+=(i=_c[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",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 h=m;for(p+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new te("Unclosed template interpolation",e,a);n++,d.push(p);continue}u+=e[n++]}if(n>=r)throw new te("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if(qm(s)){let c="";for(;n<r&&Vm(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of zm)if(e.startsWith(c,n)){if(c==="?."&&zo(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 te(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Wc={"??":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},Um=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),_m=new Set(["!","-","+","~","typeof","void","delete"]),Kc=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Yc=1200,Xc=32,Ks=0,Ys=class{constructor(t,n){H(this,"tokens",t);H(this,"source",n);H(this,"pos",0);H(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 te(`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>Yc){let t=this.peek();throw new te(`Expression too deeply nested (limit of ${Yc} 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"&&Um.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new te("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 te("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 te("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 te("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 te("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 te("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 Wc||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Wc[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")&&_m.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 te("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 te("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 te("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(Ks>=Xc)throw new te(`Template literal too deeply nested (limit of ${Xc} levels)`,this.source,t.start);Ks++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>ze(r))}}finally{Ks--}}if(t.type==="ident")return t.value in Kc?(this.next(),{t:"lit",v:Kc[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 te("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 te(`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 te("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}}},Hn=new Map,Gc=2e3;function ze(e){let t=Hn.get(e);if(t)return t;let n=new Ys(Bo(e),e).parseProgram();return Hn.size>=Gc&&Wm(),Hn.set(e,n),n}function Wm(){let e=Math.floor(Gc/2),t=0;for(let n of Hn.keys())if(Hn.delete(n),++t>=e)break}function Qc(){Hn.clear()}var td,Km=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(td=Object.hasOwn)!=null?td:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Ym=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"]),Oe={Math,JSON,Date,Number,String,Boolean,Array,Object:Km,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},ke=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
57
|
|
|
58
|
-
Expression: ${r}`:n);
|
|
59
|
-
`)[0]:String(r);
|
|
58
|
+
Expression: ${r}`:n);H(this,"expression",r);this.name="VoodooRuntimeError"}},Gs=Symbol("spread"),Dr=class{constructor(t){H(this,"value",t)}};function jo(e){return e instanceof Dr?e.value:e}var Xm=new Set(["__proto__","constructor","prototype"]);function nd(e){return typeof e=="string"&&Xm.has(e)}function Tt(e,t){if(nd(e))throw new ke(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function P(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+=Lt(P(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{Tt(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in Oe?Oe[e.n]:void 0}case"member":{let o=P(e.o,t);if(o==null){if(e.opt)return;throw new ke(`Could not read "${Xs(e,t)}" from ${o===null?"null":"undefined"}`)}let i=Tt(e.computed?P(e.p,t):e.p.v);return o[i]}case"new":{let o=P(e.callee,t);if(typeof o!="function")throw new ke(`Cannot construct ${Lt(o)}: it is not a constructor`);if(o===Function)throw new ke("Cannot construct Function: expressions never compile code");let i=Zc(e.args,t);return Reflect.construct(o,i)}case"call":{let o,i;if(e.callee.t==="member"){let s=P(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new ke(`Could not call "${Xs(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=Tt(e.callee.computed?P(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){Tt(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=Oe[e.callee.n]}else i=P(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Xs(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in Oe)?Ym.has(s)?new ke(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new ke(`"${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 ke(`"${s}" is not a function`)}return i.apply(o,Zc(e.args,t))}case"unary":{if(e.op==="...")return{[Gs]:P(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new ke("delete needs a property, as in `delete user.name` or `delete list[0]`");let i=P(e.a.o,t);if(i==null)return!0;let s=Tt(e.a.computed?P(e.a.p,t):e.a.p.v);return delete i[s]}if(e.op==="typeof"){if(e.a.t==="id"){if(nd(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:Oe[e.a.n])}return typeof P(e.a,t)}let o=P(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new ke(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(P(e.a,t)),i=e.op==="++"?o+1:o-1;return ed(e.a,i,t),e.prefix?i:o}case"bin":{let o=P(e.l,t),i=P(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 ke(`Unsupported operator: ${e.op}`)}case"logic":{let o=P(e.l,t);return e.op==="&&"?o&&P(e.r,t):e.op==="||"?o||P(e.r,t):o!=null?o:P(e.r,t)}case"cond":return P(e.test,t)?P(e.cons,t):P(e.alt,t);case"assign":{let o;if(e.op==="=")o=P(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=P(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=P(e.value,t)}else{let i=P(e.target,t),s=P(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 ke(`Unsupported assignment: ${e.op}`)}}return ed(e.target,o,t),o}case"if":return P(e.test,t)?P(e.cons,t):e.alt?P(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a=Jc(o,s,t),l=this,c=l!==null&&typeof l=="object"?t.child(l):t;return jo(P(i,c.child(a)))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>jo(P(i,t.child(Jc(o,s,t))))}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,P(i.spread,t));else{let s=Tt(i.key!==null?i.key:String(P(i.keyExpr,t)));if(i.getter){let a=P(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=P(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...P(i.spread,t)):o.push(P(i,t));return o}case"return":return new Dr(e.a?P(e.a,t):void 0);case"seq":{let o;for(let i of e.body)if(o=P(i,t),o instanceof Dr)return o;return o}}throw new ke(`Unknown node: ${e.t}`)}function Qs(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=P(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new ke(`Cannot destructure ${t===null?"null":"undefined"}`);let i=new Set;for(let{key:s,value:a}of e.props)i.add(s),Qs(a,t[Tt(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&&Qs(i,o[s],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function Jc(e,t,n){let r={};for(let o=0;o<e.length;o++){let i=e[o];Qs(i,i.kind==="rest"?t.slice(o):t[o],r,n)}return r}function Zc(e,t){let n=[];for(let r of e){let o=P(r,t);o&&typeof o=="object"&&Gs in o?n.push(...o[Gs]):n.push(o)}return n}function ed(e,t,n){if(e.t==="id"){Tt(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=P(e.o,n);if(r==null)throw new ke("Could not write to null or undefined");let o=Tt(e.computed?P(e.p,n):e.p.v);r[o]=t;return}throw new ke("Invalid assignment target")}function Xs(e,t){return e.t==="member"?e.computed?String(P(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Lt(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)}ce();de();var Pr=new Map;function N(e,t){Pr.set(e.startsWith("$")?e:`$${e}`,t)}var Js=new Map;function Nn(e,t){Js.set(e,t)}var St=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&&Pr.has(t))return this.magicContainer(t,Pr);if(Js.has(t))return this.magicContainer(t,Js)}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(Y(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}},Ke=new St(Y({}));de();ce();ce();function pt(){return w.devtools===!0}function Ct(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 cn(e){pt()&&console.warn(`[Voodoo] ${e}`)}var od=new Set;function Hr(e,t){pt()&&(od.has(e)||(od.add(e),console.warn(`[Voodoo] ${t}`)))}var Gm=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function id(e,t,n){pt()&&(Gm.has(n)||Hr(`unknown-directive:${n}`,`unknown directive "${t}" at ${Ct(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function sd(e,t){Hr(`unknown-component:${t}`,`component "${t}" not registered at ${Ct(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Zs(e,t,n,r){if(!pt())return;let o=r instanceof Error?r.message.split(`
|
|
59
|
+
`)[0]:String(r);cn(`invalid expression in ${t}="${n}" on element ${Ct(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 ed(e,t,n){Mt()&&sn(`duplicate key "${String(t)}" in v-for="${n}" on element ${St(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 td(e,t,n){Mt()&&sn(`required prop "${n}" missing from component "${t}" at ${St(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function $r(e,t){Rr(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var an=new WeakMap,Bo=new WeakMap,Ct=new WeakSet,jo=new WeakMap;function Gs(e){return Ct.has(e)}function Qs(e){Ct.add(e)}function ot(e){return an.get(e)}function Ce(e){let t=e;for(;t;){let n=an.get(t);if(n)return n;t=t.parentNode}return We}function ld(e,t){let n=jo.get(e);n||jo.set(e,n=[]),n.push(t)}function cd(e){var t;return(t=jo.get(e))!=null?t:[]}var Ks=new WeakSet;function Js(e){Ks.add(e),e.remove()}function Xe(e,t){let n=Bo.get(e);n||Bo.set(e,n=[]),n.push(t)}function G(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--)G(n[r])}let t=Bo.get(e);if(t){Bo.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){K(r,"cleanup")}}e.nodeType===1&&Um(e),an.delete(e),jo.delete(e),Ct.delete(e)}var zo=new Map,Bm=4e3;function $n(e,t){let n=`${e}\0${t}`,r=zo.get(n);if(r!==void 0)return r;let o=jm(e,t);return zo.size>=Bm&&zo.clear(),zo.set(n,o),o}function jm(e,t){let n=w.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 d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!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 Dn(e){let t=[],n=Ot.get(e);if(n&&n.size)for(let[r,o]of n){let i=$n(r,o);i&&(t.push(i),rd(e,i.name))}else{let r=dd(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Vm(i))continue;let s=$n(i,e.getAttribute(i));s&&(t.push(s),rd(e,s.name))}}return t.length<2?t:t.sort((r,o)=>nd(o)-nd(r))}var qm=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function dd(e){return qm?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Vm(e){return ea(e)||e.charCodeAt(0)===46&&e.length>1}function nd(e){var t,n;return(n=(t=Tt.get(e.name))==null?void 0:t.priority)!=null?n:0}var Dr=new Map,qo=new WeakMap;function rd(e,t){let n=Dr.get(t);n||Dr.set(t,n=new Set),n.add(e);let r=qo.get(e);r||qo.set(e,r=new Set),r.add(t)}function Um(e){var n;let t=qo.get(e);if(t){for(let r of t)(n=Dr.get(r))==null||n.delete(e);qo.delete(e)}}function Zs(e,t){var n;return(n=Dr.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Vo(e,t){let n=[],r=Dr.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(`[${w.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 Pn(e,t){let n=e;for(;n;){if(Zs(n,t))return n;n=n.parentElement}return null}var Ot=new WeakMap;function ea(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Te(e,t){var r;let n=(r=Ot.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Ft(e,t){let n=Ot.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function ud(e){let t=Ot.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];ea(o.name)&&n.set(o.name,o.value)}return n}function _m(e){if(!w.cleanAttributes)return;let t=dd(e),n=Ot.get(e);n||Ot.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];ea(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function fd(e){let t=Ot.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function ta(e){let t=Ot.get(e);return t&&t.size?!0:na(e)}function na(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.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 N(_e(e),t)}catch(o){Mt()&&Zc(r!=null?r:t.el,n!=null?n:"expression",e,o),K(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var pd=new WeakSet;function Uo(e){pd.add(e)}function od(e,t,n){let r=Tt.get(t.name);if(!r){Mt()&&t.raw.startsWith(w.prefix)&&Qc(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new rt(!0);Xe(e,()=>a.stop()),ld(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();l.run(()=>Fe(a,{scope:l}))},cleanup(a){Xe(e,a)},walk(a,l){te(a,l)}};try{r.setup(s)}catch(a){K(a,`directive ${t.raw}`)}}var Ys=null;function md(e){Ys=e}var Wm=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function te(e,t){let n=t!=null?t:Ce(e.parentNode);if(e.nodeType===11){let f=Array.from(e.childNodes);for(let m of f)te(m,n);return}if(e.nodeType===3){vd(e,n);return}if(e.nodeType!==1)return;let r=e;if(Ct.has(r))return;let o=r.tagName;if(Wm.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){Ct.add(r);return}let i=n,s=Dn(r),a=De.size===0&&Nn.size===0||r.hasAttribute(`${w.prefix}component`)?null:Zm(o);if(s.length===0&&!a){id(r,i);return}Ct.add(r);for(let f of s){let m=Tt.get(f.name);if(m!=null&&m.terminal){od(r,f,i);return}}let l=s.find(f=>f.name==="data"),c=s.find(f=>f.name==="component"),d=c?c.expression||"":a||"",u=!1;if(d&&Ys){let f=Ys(r,d,i);f&&(i=f,u=!0,an.set(r,i))}else if(l||c){let f=l?q(l.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),an.set(r,i)}let p=u?n:i;for(let f of s)f.name==="data"||f.name==="component"||od(r,f,p);_m(r),pd.has(r)||id(r,i)}function id(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&vd(o,t);for(let o of n)te(o,(r=an.get(o))!=null?r:t)}var Km=500,sd=new Map;function Ym(e){let t=e.trim();if(!t)return!1;let n=sd.get(t);if(n!==void 0)return n;let r=!0;try{r=_e(t).t!=="seq"}catch(o){r=!1}return sd.set(t,r),r}function Xm(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 Gm(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):Xm(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<=Km)&&Ym(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 Qm=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Jm(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=_e(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 He):!1}function vd(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Ct.has(e))return;let r=e.parentElement;for(;r;){if(Qm.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Gm(n);if(!o.some(s=>s.expression))return;Ct.add(e);let i=new rt(!0);Xe(e,()=>i.stop()),ld(e,i),i.run(()=>Fe(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=Jm(a,l,t)?a.raw:kt(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function It(e,t){an.set(e,t)}function Zm(e){let t=e.toLowerCase();if(De.has(t))return t;let n=Nn.get(t);return n!=null?n:null}var Nn=new Map;var Xs=!1,Rn=null,hd=[];function gd(e){hd.push(e)}function ad(e,t){for(let n of hd)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function bd(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(He,w.globals),ad(t,!1),te(t,We),ad(t,!0),Xs||(Xs=!0,w.autoDiscover&&ev(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function ev(e){typeof MutationObserver!="undefined"&&(Rn=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Ks.has(o)){Ks.delete(o);continue}o.nodeType===1&&!o.isConnected&&G(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Ct.has(o)||te(o,Ce(o.parentNode)))}}}),Rn.observe(e,{childList:!0,subtree:!0}))}function yd(){Rn==null||Rn.disconnect(),Rn=null,Xs=!1}function xd(e){te(e!=null?e:document.body,e?Ce(e.parentNode):We)}me();ce();var At=new Set,wd=new Set;function zt(e,t){let n=on(e);De.set(n,t),Nn.set(n.replace(/-/g,""),n),tv(n)}function tv(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.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=ot(s))!=null&&r.component||nv(s))continue;let a=Ce(s.parentNode);Gs(s)&&(G(s),fd(s)),te(s,a)}}}function nv(e){let t=e.parentElement;for(;t&&t!==document.body;){if(na(t)&&!Gs(t))return!0;t=t.parentElement}return!1}function rv(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 ov(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 ra(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function iv(e,t,n,r,o){var c;let i=Y({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(on(d),d),a.set(ra(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=$n(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let f=(c=a.get(u.arg.toLowerCase()))!=null?c:ra(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>Fe(()=>{i[f]=q(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let p=a.get(d.name.toLowerCase());p?i[p]=rv(d.value,t[p]):s.length||(i[ra(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&td(e,o,d);return i}function sv(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 d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}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 d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&av(d,n)}),s.replaceWith(c)}}var _o=null;function Ed(e){_o=e}function av(e,t){_o==null||_o(e,t)}function kd(e,t,n){var k,C,D,A,se,O,pe,ae;let r=t?on(t):"",o=r?(D=(C=De.get(r))!=null?C:De.get((k=Nn.get(r))!=null?k:""))!=null?D:{}:{};r&&!De.has(r)&&!Nn.has(r)&&Jc(e,t);let i=new rt(!0),s=ov(o),a=iv(e,s,n,i,r||"inline");!o.state&&o.data&&$r("data()","state()"),o.destroyed&&$r("destroyed()","unmounted()");let l=(A=o.state)!=null?A:o.data,c={},d={},u=o.inheritScope?n:n.root,p=new Lt({},u,e);p.component=d;try{c=l?(se=l.call(d,a))!=null?se:{}:{}}catch(R){K(R,`state() of component "${t}"`)}let f=e.getAttribute(`${w.prefix}data`);if(f){let R=q(f,n,"v-data");R&&typeof R=="object"&&Object.assign(c,R)}if(o.provide)try{let R=typeof o.provide=="function"?o.provide.call(d):o.provide;R&&typeof R=="object"&&(p.provides={...R})}catch(R){K(R,`provide() of component "${t}"`)}if(o.inject){let R=Array.isArray(o.inject)?o.inject.map(S=>[S,{from:S}]):Object.entries(o.inject).map(([S,B])=>[S,B!=null?B:{}]);for(let[S,B]of R){let Ve=(O=B.from)!=null?O:S,Ue=n.inject(Ve,B.default);S in c||(c[S]=Ue)}}let m=Y(c),h={};if(o.computed)for(let[R,S]of Object.entries(o.computed))h[R]=Sr(()=>S.call(d));let v={};if(o.methods)for(let[R,S]of Object.entries(o.methods))v[R]=(...B)=>S.apply(d,B);for(let[R,S]of Object.entries(o))typeof S=="function"&&(lv.has(R)||R==="state"||R==="data"||R in v||(v[R]=(...B)=>S.apply(d,B)));let g=(R,S)=>{let B=new CustomEvent(R,{detail:S,bubbles:!0,cancelable:!0});B.__voodoo=!0,e.dispatchEvent(B)},b={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ae=(pe=n.owner)==null?void 0:pe.component)!=null?ae:null,emit:g,$emit:g,$nextTick:R=>Promise.resolve().then(()=>(me(),Oc)).then(S=>S.nextTick(R)),$watch:(R,S)=>Ie(()=>q(R,p),S)},x={get(R,S){if(typeof S!="symbol")return S==="$refs"?p.allRefs:S in b?b[S]:S in h?h[S].value:S in v?v[S]:S in a?a[S]:m[S]},set(R,S,B){return typeof S=="symbol"?!0:S in h?(h[S].value=B,!0):S in a?(a[S]=B,!0):(m[S]=B,!0)},has(R,S){if(typeof S=="symbol")return!1;let B=S;return B==="$refs"||B in b||B in h||B in v||B in a||B in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,x);if(p.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[R,S]of Object.entries(o.watch))i.run(()=>Ie(()=>T[R],(B,Ve)=>S.call(T,B,Ve)));if(o.style&&!wd.has(r)){wd.add(r);let R=document.createElement("style");R.setAttribute("data-voodoo-component",r),R.textContent=o.style,document.head.appendChild(R)}if(Hn(o,T,"beforeMount"),o.template){let R=document.createDocumentFragment();for(;e.firstChild;)R.appendChild(e.firstChild);e.innerHTML=o.template,sv(e,R,n)}return At.add(T),Se(()=>{Hn(o,T,"mounted"),o.updated&&i.run(()=>Fe(()=>{for(let R of Object.keys(m))m[R];Hn(o,T,"updated")}))}),Xe(e,()=>{Hn(o,T,"beforeUnmount"),i.stop(),At.delete(T),Hn(o,T,"unmounted"),Hn(o,T,"destroyed")}),p}var lv=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Hn(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){K(o,`hook ${n}`)}}me();ce();var On=[],oa=null,Wo=0,Td=-1,sa=0,ia=!1;function Ld(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function cv(){if(oa||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(oa=new MutationObserver(()=>{Wo++}),oa.observe(e,{childList:!0,subtree:!0}))}function Md(){if(ia)return;ia=!0;let e=()=>{ia=!1,dv()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function dv(){var t;Wo===Td?sa++:sa=0,Td=Wo;let e=Ld();for(let n=On.length-1;n>=0;n--){let r=On[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){On.splice(n,1),r.action(o);continue}e-r.since>1e4&&(On.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}On.length&&Md()}function aa(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}cv(),On.push({...e,since:Ld()}),Md()}function Sd(){return typeof document=="undefined"||!document.body?!1:sa>=2}function uv(){return typeof document=="undefined"||!document.body?!1:Wo===0}function Ko(e){typeof document!="undefined"&&aa({ready:()=>Sd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Cd(e){if(typeof document!="undefined"){if(uv()){Promise.resolve().then(e);return}aa({ready:()=>Sd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Yo(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&aa({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var fv=0,Xo=null;function Ad(e){Xo=e}function Rd(e={}){let t=`voodoo-app-${++fv}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=on(m);De.has(v)||(zt(v,h),s.push(v))}}function p(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(He,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}zt(t,h),m.setAttribute(`${w.prefix}component`,t);try{te(m,We)}catch(b){return K(b,`application mounting "${t}"`),null}if(c=(g=(v=ot(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let x of b)x(c)}return c}let f={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=on(m);return h===void 0?(g=n&&n[m])!=null?g:De.get(v):(n?n[m]=h:e.components={[m]:h},c&&!De.has(v)&&(zt(v,h),s.push(v)),f)},directive(m,h){return Xo==null||Xo(m,h),f},use(m,h){return Io(pv(),m,h),f},provide(m,h){return i[m]=h,f},mount(m){if(c)return c;if(typeof m!="string")return p(m);let h=null;return Yo(m,v=>{h=p(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){G(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,De.delete(t);for(let m of s)De.delete(m);s.length=0,c=null,a=null}}};return f}var $d=null;function Dd(e){$d=e}function pv(){return $d}me();me();var Bt=new Map,la=Mr(0),ca=new Map;function Pd(e,t,n={}){let r=Bt.get(e);if(!t){if(!r){let l=Y({});return Bt.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[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=Y(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(Bt.set(e,a),la.value++,n.persist&&typeof localStorage!="undefined"){let l=Ie(a,()=>{try{localStorage.setItem(o,JSON.stringify(mv(a)))}catch(c){}},{deep:!0});ca.set(e,l)}return a}function mv(e){let t={},n=Object.getOwnPropertyDescriptors(Me(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var Fn=new Proxy({},{get:(e,t)=>(la.value,Bt.get(t)),has:(e,t)=>(la.value,Bt.has(t)),ownKeys:()=>[...Bt.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Nd(e){var t;(t=ca.get(e))==null||t(),ca.delete(e),Bt.delete(e)}function Go(){return[...Bt.keys()]}var ma={};Ao(ma,{capitalize:()=>Hd,chunk:()=>wv,clone:()=>Pr,debounce:()=>Ke,device:()=>ve,escapeHtml:()=>I,formatCurrency:()=>da,formatDate:()=>fa,formatFileSize:()=>Cv,formatNumber:()=>ua,formatPercent:()=>Av,get:()=>Hr,groupBy:()=>yv,isBrowser:()=>Qo,matchesMedia:()=>In,memoize:()=>bv,merge:()=>Jo,once:()=>gv,parseDuration:()=>Q,random:()=>Tv,relativeTime:()=>pa,sample:()=>Lv,set:()=>kv,setFormatDefaults:()=>ei,sleep:()=>hv,slugify:()=>Mv,sortBy:()=>Ev,stripTags:()=>Sv,throttle:()=>Nr,titleCase:()=>Or,truncate:()=>Zo,uid:()=>le,unique:()=>xv,uuid:()=>vv});function vv(){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 le(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function hv(e){return new Promise(t=>setTimeout(t,e))}function Q(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function Ke(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 Nr(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 gv(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function bv(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 Pr(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=>Pr(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Pr(r)]));if(e instanceof Set)return new Set([...e].map(n=>Pr(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Pr(r);return t}function Jo(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=Jo({...i},o):e[r]=o}return e}function yv(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 xv(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 wv(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 Ev(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 Hr(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 kv(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 Tv(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function Lv(e){return e[Math.floor(Math.random()*e.length)]}function Mv(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 Zo(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 Hd(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Or(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Hd(t.toLowerCase()))}function I(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Sv(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var zn="pt-BR",Od="BRL";function ei(e,t){e&&(zn=e),t&&(Od=t)}function da(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:zn,{style:"currency",currency:(o=t.currency)!=null?o:Od}).format(n)}function ua(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:zn,o).format(n)}function fa(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:zn;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 pa(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:zn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function Cv(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 Av(e,t=0,n){return new Intl.NumberFormat(n!=null?n:zn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Qo=typeof window!="undefined"&&typeof window.document!="undefined";function In(e){if(!Qo||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ve={get touch(){return Qo&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return In("(max-width: 767px)")},get tablet(){return In("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return In("(min-width: 1024px)")},get online(){return!Qo||navigator.onLine},get reducedMotion(){return In("(prefers-reduced-motion: reduce)")},get darkMode(){return In("(prefers-color-scheme: dark)")}};var ke=class extends Error{constructor(n,r,o,i){super(n);P(this,"response",r);P(this,"config",o);P(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}},Pe={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},ti=[],ni=[],Fr=[],Ir=new Map;function Fd(e){var t;return`${(t=e.method)!=null?t:"GET"} ${jn(e)}`}function Rv(e){if(!e){Ir.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Ir.keys()])t(n)&&Ir.delete(n)}var zd="voodoo:offline-queue";function va(){try{return JSON.parse(localStorage.getItem(zd)||"[]")}catch(e){return[]}}function ha(e){try{localStorage.setItem(zd,JSON.stringify(e))}catch(t){}}function $v(e){var n,r;if(typeof localStorage=="undefined")return;let t=va();t.push({url:jn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),ha(t)}async function Bd(){if(typeof localStorage=="undefined")return 0;let e=va();if(!e.length)return 0;ha([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await jt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=va();ha([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Bd()});function jn(e){let t=e.url,n=Pe.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 jd(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${Pe.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Dv(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 Pv(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 Nv=new Set(["GET","HEAD","OPTIONS"]);function Hv(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Ov(e,t,n,r){var o;return Nv.has(e)||t.retryUnsafe===!0||Hv(n)?!0:(((o=t.retry)!=null?o:0)>0&&Rr(`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 jt(e){var d,u,p,f,m;let t={method:"GET",timeout:Pe.timeout,retry:Pe.retry,retryDelay:Pe.retryDelay,credentials:Pe.credentials,responseType:"auto",...e,headers:{...Pe.headers,...e.headers}};for(let h of ti)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=Ir.get(Fd(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return $v(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 h=jd();h&&!r[Pe.csrfHeader]&&(r[Pe.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Dv(t.body,r),i=jn(t),s=Ov(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let x=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let k=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:v.signal});T&&clearTimeout(T),x();let D={data:await Pv(k,t.responseType),status:k.status,statusText:k.statusText,headers:k.headers,ok:k.ok,raw:k,config:t};if(!k.ok){if(k.status>=500&&h<s-1){await Id(((p=t.retryDelay)!=null?p:500)*2**h);continue}let A=new ke(`Request failed with status ${k.status}`,D,t);for(let se of Fr)se(A);throw A}for(let A of ni)D=await A(D);return t.cache&&n==="GET"&&Ir.set(Fd(t),{expires:Date.now()+t.cache,value:D}),D}catch(k){if(T&&clearTimeout(T),x(),k instanceof ke)throw k;if(a=k,(k==null?void 0:k.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(h<s-1){await Id(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new ke(l,void 0,t,a);for(let h of Fr)h(c);throw c}function Id(e){return new Promise(t=>setTimeout(t,e))}async function Bn(e){return(await jt(e)).data}var he={defaults:Pe,get(e,t={}){return Bn({...t,url:e,method:"GET"})},post(e,t,n={}){return Bn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Bn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Bn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Bn({...t,url:e,method:"DELETE"})},head(e,t={}){return Bn({...t,url:e,method:"HEAD"})},request:jt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=jn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...Pe.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=jd();a&&i.setRequestHeader(Pe.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(u):o(new ke(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new ke("Network failure during upload"))),i.addEventListener("abort",()=>o(new ke("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(jn({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(jn({url:e,params:n.params}),{headers:{...Pe.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 d=s.split(`
|
|
62
|
-
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}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 ad(e,t,n){pt()&&cn(`duplicate key "${String(t)}" in v-for="${n}" on element ${Ct(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 ld(e,t,n){pt()&&cn(`required prop "${n}" missing from component "${t}" at ${Ct(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Nr(e,t){Hr(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var un=new WeakMap,Uo=new WeakMap,At=new WeakSet,_o=new WeakMap;function ra(e){return At.has(e)}function oa(e){At.add(e)}function it(e){return un.get(e)}function Ce(e){let t=e;for(;t;){let n=un.get(t);if(n)return n;t=t.parentNode}return Ke}function md(e,t){let n=_o.get(e);n||_o.set(e,n=[]),n.push(t)}function vd(e){var t;return(t=_o.get(e))!=null?t:[]}var ea=new WeakSet;function ia(e){ea.add(e),e.remove()}function Be(e,t){let n=Uo.get(e);n||Uo.set(e,n=[]),n.push(t)}function G(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--)G(n[r])}let t=Uo.get(e);if(t){Uo.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){W(r,"cleanup")}}e.nodeType===1&&tv(e),un.delete(e),_o.delete(e),At.delete(e)}var Vo=new Map,Qm=4e3;function Fn(e,t){let n=`${e}\0${t}`,r=Vo.get(n);if(r!==void 0)return r;let o=Jm(e,t);return Vo.size>=Qm&&Vo.clear(),Vo.set(n,o),o}function Jm(e,t){let n=w.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 d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!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 In(e){let t=[],n=It.get(e);if(n&&n.size)for(let[r,o]of n){let i=Fn(r,o);i&&(t.push(i),dd(e,i.name))}else{let r=hd(e);for(let o=0;o<r.length;o++){let i=r[o];if(!ev(i))continue;let s=Fn(i,e.getAttribute(i));s&&(t.push(s),dd(e,s.name))}}return t.length<2?t:t.sort((r,o)=>cd(o)-cd(r))}var Zm=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function hd(e){return Zm?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function ev(e){return aa(e)||e.charCodeAt(0)===46&&e.length>1}function cd(e){var t,n;return(n=(t=Mt.get(e.name))==null?void 0:t.priority)!=null?n:0}var Or=new Map,Wo=new WeakMap;function dd(e,t){let n=Or.get(t);n||Or.set(t,n=new Set),n.add(e);let r=Wo.get(e);r||Wo.set(e,r=new Set),r.add(t)}function tv(e){var n;let t=Wo.get(e);if(t){for(let r of t)(n=Or.get(r))==null||n.delete(e);Wo.delete(e)}}function sa(e,t){var n;return(n=Or.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Ko(e,t){let n=[],r=Or.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(`[${w.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 zn(e,t){let n=e;for(;n;){if(sa(n,t))return n;n=n.parentElement}return null}var It=new WeakMap;function aa(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Te(e,t){var r;let n=(r=It.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function zt(e,t){let n=It.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function gd(e){let t=It.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];aa(o.name)&&n.set(o.name,o.value)}return n}function nv(e){if(!w.cleanAttributes)return;let t=hd(e),n=It.get(e);n||It.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];aa(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function bd(e){let t=It.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function la(e){let t=It.get(e);return t&&t.size?!0:ca(e)}function ca(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.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 P(ze(e),t)}catch(o){pt()&&Zs(r!=null?r:t.el,n!=null?n:"expression",e,o),W(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var yd=new WeakSet;function Yo(e){yd.add(e)}function ud(e,t,n){let r=Mt.get(t.name);if(!r){pt()&&t.raw.startsWith(w.prefix)&&id(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new ot(!0);Be(e,()=>a.stop()),md(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 d=dn;dn=e;try{a()}finally{dn=d}};l.run(()=>Pe(c,{scope:l}))},cleanup(a){Be(e,a)},walk(a,l){ne(a,l)}};try{r.setup(s)}catch(a){W(a,`directive ${t.raw}`)}}var ta=null;function xd(e){ta=e}var rv=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function ne(e,t){let n=t!=null?t:Ce(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let d of c)ne(d,n);return}if(e.nodeType===3){kd(e,n);return}if(e.nodeType!==1)return;let r=e;if(At.has(r))return;let o=r.tagName;if(rv.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){At.add(r);return}let i=n,s=In(r),a=He.size===0&&Bn.size===0||r.hasAttribute(`${w.prefix}component`)?null:fv(o);if(s.length===0&&!a){wd(r,i);return}At.add(r);let l=dn;dn=r;try{iv(r,s,a,i)}finally{dn=l}}var dn=null;function da(){return dn}function ov(e,t,n){let r=null;try{r=ze(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=P(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=P(a.value,i)}catch(l){pt()?Zs(n,e,e,l):W(l,"v-data")}return i}function iv(e,t,n,r){let o=r;for(let d of t){let u=Mt.get(d.name);if(u!=null&&u.terminal){ud(e,d,o);return}}let i=t.find(d=>d.name==="data"),s=t.find(d=>d.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&ta){let d=ta(e,a,o);d&&(o=d,l=!0,un.set(e,o))}else(i||s)&&(o=ov(i&&i.expression||"{}",o,e),un.set(e,o));let c=l?r:o;for(let d of t)d.name==="data"||d.name==="component"||ud(e,d,c);nv(e),yd.has(e)||wd(e,o)}function wd(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&kd(o,t);for(let o of n)ne(o,(r=un.get(o))!=null?r:t)}var sv=500,fd=new Map;function av(e){let t=e.trim();if(!t)return!1;let n=fd.get(t);if(n!==void 0)return n;let r=!0;try{r=ze(t).t!=="seq"}catch(o){r=!1}return fd.set(t,r),r}function lv(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 cv(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):lv(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<=sv)&&av(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 dv=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function uv(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=ze(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 Oe):!1}function kd(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||At.has(e))return;let r=e.parentElement;for(;r;){if(dv.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=cv(n);if(!o.some(s=>s.expression))return;At.add(e);let i=new ot(!0);Be(e,()=>i.stop()),md(e,i),i.run(()=>Pe(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=uv(a,l,t)?a.raw:Lt(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function Bt(e,t){un.set(e,t)}function fv(e){let t=e.toLowerCase();if(He.has(t))return t;let n=Bn.get(t);return n!=null?n:null}var Bn=new Map;var na=!1,On=null,Ed=[];function Td(e){Ed.push(e)}function pd(e,t){for(let n of Ed)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function Ld(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Oe,w.globals),pd(t,!1),ne(t,Ke),pd(t,!0),na||(na=!0,w.autoDiscover&&pv(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function pv(e){typeof MutationObserver!="undefined"&&(On=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(ea.has(o)){ea.delete(o);continue}o.nodeType===1&&!o.isConnected&&G(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(At.has(o)||ne(o,Ce(o.parentNode)))}}}),On.observe(e,{childList:!0,subtree:!0}))}function Md(){On==null||On.disconnect(),On=null,na=!1}function Sd(e){ne(e!=null?e:document.body,e?Ce(e.parentNode):Ke)}de();ce();var Rt=new Set,Cd=new Set;function jt(e,t){let n=ln(e);He.set(n,t),Bn.set(n.replace(/-/g,""),n),mv(n)}function mv(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.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=it(s))!=null&&r.component||vv(s))continue;let a=Ce(s.parentNode);ra(s)&&(G(s),bd(s)),ne(s,a)}}}function vv(e){let t=e.parentElement;for(;t&&t!==document.body;){if(ca(t)&&!ra(t))return!0;t=t.parentElement}return!1}function hv(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 gv(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 ua(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function bv(e,t,n,r,o){var c;let i=Y({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(ln(d),d),a.set(ua(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=Fn(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let p=(c=a.get(u.arg.toLowerCase()))!=null?c:ua(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>Pe(()=>{i[p]=q(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let f=a.get(d.name.toLowerCase());f?i[f]=hv(d.value,t[f]):s.length||(i[ua(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&ld(e,o,d);return i}function yv(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 d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}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 d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&xv(d,n)}),s.replaceWith(c)}}var Xo=null;function Ad(e){Xo=e}function xv(e,t){Xo==null||Xo(e,t)}function Rd(e,t,n){var E,C,D,A,se,O,me,ae;let r=t?ln(t):"",o=r?(D=(C=He.get(r))!=null?C:He.get((E=Bn.get(r))!=null?E:""))!=null?D:{}:{};r&&!He.has(r)&&!Bn.has(r)&&sd(e,t);let i=new ot(!0),s=gv(o),a=bv(e,s,n,i,r||"inline");!o.state&&o.data&&Nr("data()","state()"),o.destroyed&&Nr("destroyed()","unmounted()");let l=(A=o.state)!=null?A:o.data,c={},d={},u=o.inheritScope?n:n.root,f=new St({},u,e);f.component=d;try{c=l?(se=l.call(d,a))!=null?se:{}:{}}catch(R){W(R,`state() of component "${t}"`)}let p=e.getAttribute(`${w.prefix}data`);if(p){let R=q(p,n,"v-data");R&&typeof R=="object"&&Object.assign(c,R)}if(o.provide)try{let R=typeof o.provide=="function"?o.provide.call(d):o.provide;R&&typeof R=="object"&&(f.provides={...R})}catch(R){W(R,`provide() of component "${t}"`)}if(o.inject){let R=Array.isArray(o.inject)?o.inject.map(S=>[S,{from:S}]):Object.entries(o.inject).map(([S,B])=>[S,B!=null?B:{}]);for(let[S,B]of R){let _e=(O=B.from)!=null?O:S,We=n.inject(_e,B.default);S in c||(c[S]=We)}}let m=Y(c),h={};if(o.computed)for(let[R,S]of Object.entries(o.computed))h[R]=an(()=>S.call(d));let v={};if(o.methods)for(let[R,S]of Object.entries(o.methods))v[R]=(...B)=>S.apply(d,B);for(let[R,S]of Object.entries(o))typeof S=="function"&&(wv.has(R)||R==="state"||R==="data"||R in v||(v[R]=(...B)=>S.apply(d,B)));let g=(R,S)=>{let B=new CustomEvent(R,{detail:S,bubbles:!0,cancelable:!0});B.__voodoo=!0,e.dispatchEvent(B)},b={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(ae=(me=n.owner)==null?void 0:me.component)!=null?ae:null,emit:g,$emit:g,$nextTick:R=>Promise.resolve().then(()=>(de(),Uc)).then(S=>S.nextTick(R)),$watch:(R,S)=>Ie(()=>q(R,f),S)},x={get(R,S){if(typeof S!="symbol")return S==="$refs"?f.allRefs:S in b?b[S]:S in h?h[S].value:S in v?v[S]:S in a?a[S]:m[S]},set(R,S,B){return typeof S=="symbol"?!0:S in h?(h[S].value=B,!0):S in a?(a[S]=B,!0):(m[S]=B,!0)},has(R,S){if(typeof S=="symbol")return!1;let B=S;return B==="$refs"||B in b||B in h||B in v||B in a||B in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,x);if(f.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[R,S]of Object.entries(o.watch))i.run(()=>Ie(()=>T[R],(B,_e)=>S.call(T,B,_e)));if(o.style&&!Cd.has(r)){Cd.add(r);let R=document.createElement("style");R.setAttribute("data-voodoo-component",r),R.textContent=o.style,document.head.appendChild(R)}if(jn(o,T,"beforeMount"),o.template){let R=document.createDocumentFragment();for(;e.firstChild;)R.appendChild(e.firstChild);e.innerHTML=o.template,yv(e,R,n)}return Rt.add(T),Se(()=>{jn(o,T,"mounted"),o.updated&&i.run(()=>Pe(()=>{for(let R of Object.keys(m))m[R];jn(o,T,"updated")}))}),Be(e,()=>{jn(o,T,"beforeUnmount"),i.stop(),Rt.delete(T),jn(o,T,"unmounted"),jn(o,T,"destroyed")}),f}var wv=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function jn(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){W(o,`hook ${n}`)}}de();ce();var qn=[],fa=null,Go=0,$d=-1,ma=0,pa=!1;function Dd(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function kv(){if(fa||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(fa=new MutationObserver(()=>{Go++}),fa.observe(e,{childList:!0,subtree:!0}))}function Pd(){if(pa)return;pa=!0;let e=()=>{pa=!1,Ev()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Ev(){var t;Go===$d?ma++:ma=0,$d=Go;let e=Dd();for(let n=qn.length-1;n>=0;n--){let r=qn[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){qn.splice(n,1),r.action(o);continue}e-r.since>1e4&&(qn.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}qn.length&&Pd()}function va(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}kv(),qn.push({...e,since:Dd()}),Pd()}function Hd(){return typeof document=="undefined"||!document.body?!1:ma>=2}function Tv(){return typeof document=="undefined"||!document.body?!1:Go===0}function Qo(e){typeof document!="undefined"&&va({ready:()=>Hd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Nd(e){if(typeof document!="undefined"){if(Tv()){Promise.resolve().then(e);return}va({ready:()=>Hd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Jo(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&va({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Lv=0,Zo=null;function Od(e){Zo=e}function Fd(e={}){let t=`voodoo-app-${++Lv}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=ln(m);He.has(v)||(jt(v,h),s.push(v))}}function f(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(Oe,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}jt(t,h),m.setAttribute(`${w.prefix}component`,t);try{ne(m,Ke)}catch(b){return W(b,`application mounting "${t}"`),null}if(c=(g=(v=it(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let x of b)x(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=ln(m);return h===void 0?(g=n&&n[m])!=null?g:He.get(v):(n?n[m]=h:e.components={[m]:h},c&&!He.has(v)&&(jt(v,h),s.push(v)),p)},directive(m,h){return Zo==null||Zo(m,h),p},use(m,h){return qo(Mv(),m,h),p},provide(m,h){return i[m]=h,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let h=null;return Jo(m,v=>{h=f(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){G(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,He.delete(t);for(let m of s)He.delete(m);s.length=0,c=null,a=null}}};return p}var Id=null;function zd(e){Id=e}function Mv(){return Id}de();de();var qt=new Map,ha=Ge(0),ga=new Map;function ei(e,t,n={}){let r=qt.get(e);if(!t){if(!r){let l=Y({});return qt.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[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=Y(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(qt.set(e,a),ha.value++,n.persist&&typeof localStorage!="undefined"){let l=Ie(a,()=>{try{localStorage.setItem(o,JSON.stringify(Sv(a)))}catch(c){}},{deep:!0});ga.set(e,l)}return a}function Sv(e){let t={},n=Object.getOwnPropertyDescriptors(Me(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)=>(ha.value,qt.get(t)),has:(e,t)=>(ha.value,qt.has(t)),ownKeys:()=>[...qt.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Bd(e){var t;(t=ga.get(e))==null||t(),ga.delete(e),qt.delete(e)}function ti(){return[...qt.keys()]}var ka={};Po(ka,{capitalize:()=>jd,chunk:()=>Hv,clone:()=>Fr,debounce:()=>Ye,device:()=>ve,escapeHtml:()=>I,formatCurrency:()=>ba,formatDate:()=>xa,formatFileSize:()=>jv,formatNumber:()=>ya,formatPercent:()=>qv,get:()=>zr,groupBy:()=>Dv,isBrowser:()=>ni,matchesMedia:()=>Vn,memoize:()=>$v,merge:()=>ri,once:()=>Rv,parseDuration:()=>Q,random:()=>Fv,relativeTime:()=>wa,sample:()=>Iv,set:()=>Ov,setFormatDefaults:()=>ii,sleep:()=>Av,slugify:()=>zv,sortBy:()=>Nv,stripTags:()=>Bv,throttle:()=>Ir,titleCase:()=>Br,truncate:()=>oi,uid:()=>le,unique:()=>Pv,uuid:()=>Cv});function Cv(){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 le(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Av(e){return new Promise(t=>setTimeout(t,e))}function Q(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function Ye(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 Ir(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 Rv(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function $v(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 Fr(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=>Fr(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Fr(r)]));if(e instanceof Set)return new Set([...e].map(n=>Fr(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Fr(r);return t}function ri(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]=ri({...i},o):e[r]=o}return e}function Dv(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 Pv(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 Hv(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 Nv(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 zr(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 Ov(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 Fv(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function Iv(e){return e[Math.floor(Math.random()*e.length)]}function zv(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 oi(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 jd(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Br(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>jd(t.toLowerCase()))}function I(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Bv(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Un="pt-BR",qd="BRL";function ii(e,t){e&&(Un=e),t&&(qd=t)}function ba(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:Un,{style:"currency",currency:(o=t.currency)!=null?o:qd}).format(n)}function ya(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:Un,o).format(n)}function xa(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Un;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 wa(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:Un,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function jv(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 qv(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Un,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var ni=typeof window!="undefined"&&typeof window.document!="undefined";function Vn(e){if(!ni||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ve={get touch(){return ni&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Vn("(max-width: 767px)")},get tablet(){return Vn("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Vn("(min-width: 1024px)")},get online(){return!ni||navigator.onLine},get reducedMotion(){return Vn("(prefers-reduced-motion: reduce)")},get darkMode(){return Vn("(prefers-color-scheme: dark)")}};var Ee=class extends Error{constructor(n,r,o,i){super(n);H(this,"response",r);H(this,"config",o);H(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}},Ne={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},si=[],ai=[],jr=[],qr=new Map;function Vd(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Wn(e)}`}function Vv(e){if(!e){qr.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...qr.keys()])t(n)&&qr.delete(n)}var _d="voodoo:offline-queue";function Ea(){try{return JSON.parse(localStorage.getItem(_d)||"[]")}catch(e){return[]}}function Ta(e){try{localStorage.setItem(_d,JSON.stringify(e))}catch(t){}}function Uv(e){var n,r;if(typeof localStorage=="undefined")return;let t=Ea();t.push({url:Wn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),Ta(t)}async function Wd(){if(typeof localStorage=="undefined")return 0;let e=Ea();if(!e.length)return 0;Ta([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await Vt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=Ea();Ta([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Wd()});function Wn(e){let t=e.url,n=Ne.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 Kd(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${Ne.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function _v(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 Wv(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 Kv=new Set(["GET","HEAD","OPTIONS"]);function Yv(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Xv(e,t,n,r){var o;return Kv.has(e)||t.retryUnsafe===!0||Yv(n)?!0:(((o=t.retry)!=null?o:0)>0&&Hr(`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 Vt(e){var d,u,f,p,m;let t={method:"GET",timeout:Ne.timeout,retry:Ne.retry,retryDelay:Ne.retryDelay,credentials:Ne.credentials,responseType:"auto",...e,headers:{...Ne.headers,...e.headers}};for(let h of si)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=qr.get(Vd(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return Uv(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 h=Kd();h&&!r[Ne.csrfHeader]&&(r[Ne.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=_v(t.body,r),i=Wn(t),s=Xv(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let x=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.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:v.signal});T&&clearTimeout(T),x();let D={data:await Wv(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&&h<s-1){await Ud(((f=t.retryDelay)!=null?f:500)*2**h);continue}let A=new Ee(`Request failed with status ${E.status}`,D,t);for(let se of jr)se(A);throw A}for(let A of ai)D=await A(D);return t.cache&&n==="GET"&&qr.set(Vd(t),{expires:Date.now()+t.cache,value:D}),D}catch(E){if(T&&clearTimeout(T),x(),E instanceof Ee)throw E;if(a=E,(E==null?void 0:E.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(h<s-1){await Ud(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new Ee(l,void 0,t,a);for(let h of jr)h(c);throw c}function Ud(e){return new Promise(t=>setTimeout(t,e))}async function _n(e){return(await Vt(e)).data}var he={defaults:Ne,get(e,t={}){return _n({...t,url:e,method:"GET"})},post(e,t,n={}){return _n({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return _n({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return _n({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return _n({...t,url:e,method:"DELETE"})},head(e,t={}){return _n({...t,url:e,method:"HEAD"})},request:Vt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=Wn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...Ne.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=Kd();a&&i.setRequestHeader(Ne.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(u):o(new Ee(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new Ee("Network failure during upload"))),i.addEventListener("abort",()=>o(new Ee("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Wn({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(Wn({url:e,params:n.params}),{headers:{...Ne.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 d=s.split(`
|
|
62
|
+
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}s.trim()&&t(s)},interceptors:{request:{use(e){return si.push(e),()=>{let t=si.indexOf(e);t>-1&&si.splice(t,1)}}},response:{use(e){return ai.push(e),()=>{let t=ai.indexOf(e);t>-1&&ai.splice(t,1)}}},error:{use(e){return jr.push(e),()=>{let t=jr.indexOf(e);t>-1&&jr.splice(t,1)}}}},setHeader(e,t){t===null?delete Ne.headers[e]:Ne.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){Ne.baseURL=e},clearCache:Vv,flushOfflineQueue:Wd,parseDuration:Q};Ae();var Gv=`
|
|
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
|
-
`,Iv={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},zr=new Map,qt={duration:4e3,position:"top-right",max:6};function zv(e){ge(),oe("toast",Fv);let t=zr.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),zr.set(e,t)),t}function ln(e){var p,f,m,h;let t=(p=e.position)!=null?p:qt.position,n=(f=e.type)!=null?f:"default",r=(m=e.duration)!=null?m:n==="loading"?0:qt.duration,o=zv(t),i=le("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 v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),zr.delete(t))},220))},d=v=>{var x,T,k,C;let g=(x=v.type)!=null?x:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(T=Iv[g])!=null?T:"",s.appendChild(D);let A=document.createElement("div");A.className="v-toast-body";let se=document.createElement("div");if(se.className="v-toast-title",se.textContent=(k=v.title)!=null?k:"",A.appendChild(se),v.description){let O=document.createElement("div");O.className="v-toast-desc",O.textContent=v.description,A.appendChild(O)}if(s.appendChild(A),v.action){let O=document.createElement("button");O.type="button",O.className="v-toast-action",O.textContent=v.action.label,O.addEventListener("click",()=>{var pe;(pe=v.action)==null||pe.onClick(),c()}),s.appendChild(O)}if(v.closable!==!1&&g!=="loading"){let O=document.createElement("button");O.type="button",O.className="v-toast-close",O.setAttribute("aria-label","Close notification"),O.innerHTML="×",O.addEventListener("click",c),s.appendChild(O)}}let b=(C=v.duration)!=null?C:r;if(b>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(D)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>qt.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(qt.duration)}}}function qn(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var it=Object.assign((e,t={})=>ln({...qn(e,"default"),...t}),{success:(e,t={})=>ln({...qn(e,"success"),...t}),error:(e,t={})=>ln({...qn(e,"error"),...t}),warning:(e,t={})=>ln({...qn(e,"warning"),...t}),info:(e,t={})=>ln({...qn(e,"info"),...t}),loading:(e,t={})=>ln({...qn(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=ln({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:qt.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:qt.duration}),s}},clear(){for(let[e,t]of zr)t.remove(),zr.delete(e)},configure(e){Object.assign(qt,e)},settings:qt});function _d(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 ue=_d(()=>typeof localStorage!="undefined"?localStorage:void 0),ri=_d(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),oi={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}},Vt={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())}},Vn=new Map,ii={set(e,t,n=0){return Vn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Vn.get(e);return n?n.expires<Date.now()?(Vn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Vn.delete(e)},clear(){Vn.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 Vn.size}},ga="voodoo:theme",ba=null,ft={get current(){var e,t;return(t=(e=ue.get(ga))!=null?e:ba)!=null?t:"system"},get resolved(){let e=this.current;return e!=="system"?e:typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){ba=e,ue.set(ga,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return ba!==null||ue.get(ga)!=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 matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{this.current==="system"&&this.apply()}))}};var Ge=Y({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function ya(){typeof window!="undefined"&&(Ge.width=window.innerWidth,Ge.height=window.innerHeight,Ge.mobile=window.innerWidth<768,Ge.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ge.desktop=window.innerWidth>=1024,Ge.portrait=window.innerHeight>=window.innerWidth,Ge.landscape=!Ge.portrait)}var Ut=Y({online:!0,type:"unknown",saveData:!1,slow:!1});function si(){var t;if(typeof navigator=="undefined")return;Ut.online=navigator.onLine;let e=navigator.connection;e&&(Ut.type=(t=e.effectiveType)!=null?t:"unknown",Ut.saveData=!!e.saveData,Ut.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var ai={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""}}},Wd=!1;function Kd(){var t,n;if(Wd||(Wd=!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",()=>Fn),H("$http",()=>he),H("$toast",()=>it),H("$clipboard",()=>ai),H("$storage",()=>ue),H("$session",()=>ri),H("$cookie",()=>oi),H("$cache",()=>ii),H("$url",()=>Vt),H("$theme",()=>ft),H("$device",()=>ve),H("$screen",()=>Ge),H("$network",()=>Ut),H("$nextTick",()=>ut),H("$watch",r=>(o,i)=>Ie(()=>q(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;ya(),si();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(ya)}),window.addEventListener("orientationchange",ya),window.addEventListener("online",si),window.addEventListener("offline",si),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",si)}me();function xa(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 wa(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 li(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=Y({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,p,f;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 he.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:(d=t.timeout)!=null?d:he.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=xa(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof ke&&(p=wa(m))!=null?p:m.message;s.error={name:"ResourceError",message:h},(f=t.onError)==null||f.call(t,m,h)}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}Ne();Ne();var Yd=`
|
|
107
|
+
`,Qv={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Vr=new Map,Ut={duration:4e3,position:"top-right",max:6};function Jv(e){ge(),Z("toast",Gv);let t=Vr.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),Vr.set(e,t)),t}function fn(e){var f,p,m,h;let t=(f=e.position)!=null?f:Ut.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Ut.duration,o=Jv(t),i=le("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 v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),Vr.delete(t))},220))},d=v=>{var x,T,E,C;let g=(x=v.type)!=null?x:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(T=Qv[g])!=null?T:"",s.appendChild(D);let A=document.createElement("div");A.className="v-toast-body";let se=document.createElement("div");if(se.className="v-toast-title",se.textContent=(E=v.title)!=null?E:"",A.appendChild(se),v.description){let O=document.createElement("div");O.className="v-toast-desc",O.textContent=v.description,A.appendChild(O)}if(s.appendChild(A),v.action){let O=document.createElement("button");O.type="button",O.className="v-toast-action",O.textContent=v.action.label,O.addEventListener("click",()=>{var me;(me=v.action)==null||me.onClick(),c()}),s.appendChild(O)}if(v.closable!==!1&&g!=="loading"){let O=document.createElement("button");O.type="button",O.className="v-toast-close",O.setAttribute("aria-label","Close notification"),O.innerHTML="×",O.addEventListener("click",c),s.appendChild(O)}}let b=(C=v.duration)!=null?C:r;if(b>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(D)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>Ut.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(Ut.duration)}}}function Kn(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var st=Object.assign((e,t={})=>fn({...Kn(e,"default"),...t}),{success:(e,t={})=>fn({...Kn(e,"success"),...t}),error:(e,t={})=>fn({...Kn(e,"error"),...t}),warning:(e,t={})=>fn({...Kn(e,"warning"),...t}),info:(e,t={})=>fn({...Kn(e,"info"),...t}),loading:(e,t={})=>fn({...Kn(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=fn({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:Ut.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:Ut.duration}),s}},clear(){for(let[e,t]of Vr)t.remove(),Vr.delete(e)},configure(e){Object.assign(Ut,e)},settings:Ut});de();function Qd(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 fe=Qd(()=>typeof localStorage!="undefined"?localStorage:void 0),ci=Qd(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),di={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}},_t={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())}},Yn=new Map,ui={set(e,t,n=0){return Yn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Yn.get(e);return n?n.expires<Date.now()?(Yn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Yn.delete(e)},clear(){Yn.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 Yn.size}},La="voodoo:theme",Ma=null,li=Ge(0),mt={get current(){var e,t;return li.value,(t=(e=fe.get(La))!=null?e:Ma)!=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){Ma=e,fe.set(La,e),li.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return Ma!==null||fe.get(La)!=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(()=>{li.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{li.value++,this.current==="system"&&this.apply()}))}};var Qe=Y({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function Sa(){typeof window!="undefined"&&(Qe.width=window.innerWidth,Qe.height=window.innerHeight,Qe.mobile=window.innerWidth<768,Qe.tablet=window.innerWidth>=768&&window.innerWidth<1024,Qe.desktop=window.innerWidth>=1024,Qe.portrait=window.innerHeight>=window.innerWidth,Qe.landscape=!Qe.portrait)}var Wt=Y({online:!0,type:"unknown",saveData:!1,slow:!1});function fi(){var t;if(typeof navigator=="undefined")return;Wt.online=navigator.onLine;let e=navigator.connection;e&&(Wt.type=(t=e.effectiveType)!=null?t:"unknown",Wt.saveData=!!e.saveData,Wt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var pi={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""}}},Jd=!1;function Zd(){var t,n;if(Jd||(Jd=!0,N("$el",r=>r.el),N("$refs",r=>r.allRefs),N("$data",r=>r.data),N("$root",r=>r.root.data),N("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),N("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),N("$store",()=>$t),N("$http",()=>he),N("$toast",()=>st),N("$clipboard",()=>pi),N("$storage",()=>fe),N("$session",()=>ci),N("$cookie",()=>di),N("$cache",()=>ui),N("$url",()=>_t),N("$theme",()=>mt),N("$device",()=>ve),N("$screen",()=>Qe),N("$network",()=>Wt),N("$nextTick",()=>ft),N("$watch",r=>(o,i)=>Ie(()=>q(o,r,"$watch"),i)),N("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),N("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;Sa(),fi();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(Sa)}),window.addEventListener("orientationchange",Sa),window.addEventListener("online",fi),window.addEventListener("offline",fi),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",fi)}de();var eu=new WeakMap;function Zv(e){var o,i,s;let t=(i=(o=da())!=null?o:e.el)!=null?i:e,n=eu.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},eu.set(t,n));let r=(s=da())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;Be(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&Pn(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 mi(e,t){let n=Zv(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&Pn(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function tu(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 nu(e){return Array.isArray(e)?e.slice():null}function eh(e,t){let n=mi(e,"state");return n.value===void 0&&(n.value=Ge(t)),n.value}function th(e,t,n){let r=mi(e,"effect"),o=nu(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||tu(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=Pe(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function nh(e,t,n){let r=mi(e,"memo"),o=nu(n);return o?(r.value?tu(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Ge(t()),r.deps=o),r.value):(r.value||(r.value=an(t)),r.value)}function rh(e,t){let n=mi(e,"ref");return n.value||(n.value=Rr({current:t})),n.value}function oh(e,t){return t!==void 0&&!(e in $t)&&ei(e,t),$t[e]}function ru(){Nn("useState",e=>t=>eh(e,t)),Nn("useEffect",e=>(t,n)=>th(e,t,n)),Nn("useMemo",e=>(t,n)=>nh(e,t,n)),Nn("useRef",e=>t=>rh(e,t)),Nn("useContext",()=>(e,t)=>oh(e,t))}de();function Ca(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 Aa(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 vi(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=Y({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,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 he.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:(d=t.timeout)!=null?d:he.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=Ca(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof Ee&&(f=Aa(m))!=null?f:m.message;s.error={name:"ResourceError",message:h},(p=t.onError)==null||p.call(t,m,h)}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}Ae();Ae();var ou=`
|
|
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 Xd(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 Un(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function _n(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Gd(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 Qd(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Br(e,t={}){oe("transitions",Yd);let n=Xd(t);return ve.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.enterFrom),Un(e,n.enterActive),Qd(()=>{var s;_n(e,n.enterFrom),Un(e,n.enterTo);let o=(s=t.duration)!=null?s:Gd(e),i=()=>{_n(e,n.enterActive),_n(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function jr(e,t={}){oe("transitions",Yd);let n=Xd(t);return ve.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.leaveFrom),Un(e,n.leaveActive),Qd(()=>{var s;_n(e,n.leaveFrom),Un(e,n.leaveTo);let o=(s=t.duration)!=null?s:Gd(e),i=()=>{_n(e,n.leaveActive),_n(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function cn(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 dn(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 Wn(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 Kn(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 ci(e){let t=document;typeof t.startViewTransition=="function"&&!ve.reducedMotion?t.startViewTransition(e):e()}me();ce();function Bv(e,t,n){try{let o={t:"assign",op:"=",target:_e(e),value:{t:"lit",v:n}};N(o,t)}catch(r){K(r,`assignment in "${e}"`)}}function nu(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?Q(e.getAttribute(`${t}duration`)):void 0}}y("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=kt(n());let r=e.firstChild;r&&r.nodeType===3&&Qs(r)})});y("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Uo(t),n(()=>{let i=r();for(let s of Array.from(t.children))G(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))te(s,o)})});y("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=nu(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,Br(e,i)):jr(e,i).then(()=>{e.style.display="none"})})});y("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=w.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(w.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)Js(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),Qs(f.template);let l=nu(e),c=-1,d=[],u=()=>{let f=d;if(d=[],!f.length)return;let m=()=>{for(let h of f)G(h),h.remove()};l&&f[0]instanceof HTMLElement?jr(f[0],l).then(m):m()};r(()=>{let f=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||q(g.expression,t,"v-if")){f=v;break}}if(f===c||(c=f,u(),f===-1))return;let m=i[f].template,h=ru(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&Br(h[0],l)}),Xe(e,u)},{priority:j.IF,terminal:!0});function ru(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),te(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),te(s,n))}return i}y("else-if",()=>{},{priority:j.IF,terminal:!0});y("else",()=>{},{priority:j.IF,terminal:!0});var jv=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;y("for",({el:e,scope:t,expression:n,effect:r})=>{var v;let o=jv.exec(n);if(!o){K(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(g=>g.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),p=document.createComment(w.devtools?` v-for: ${n} `:"");(v=e.parentNode)==null||v.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${d}for`),f.removeAttribute(":key"),f.removeAttribute(`${d}bind:key`),f.removeAttribute(`${d}key`),Js(e);let m=[];Xe(p,()=>{for(let g of m)for(let b of g.nodes)G(b),b.remove();m=[]}),r(()=>{var se,O,pe;let g=q(s,t,"v-for"),b=qv(g,a,l,c),x=new Map;for(let ae of m)x.set(ae.key,ae);let T=[],k=new Set,C={fragment:document.createDocumentFragment(),pending:[]};b.forEach((ae,R)=>{let S=u?q(u,t.child(ae),":key"):`__index_${R}`;u&&k.has(S)&&ed(e,S,n);let B=x.get(S);if(B&&!k.has(S)){k.add(S);for(let[en,Ln]of Object.entries(ae))B.data[en]=Ln;T.push(B);return}let Ve=t.reactiveChild(ae),Ue=ru(f,p,Ve,C);k.add(S),T.push({key:S,scope:Ve,nodes:Ue,data:Ve.data})}),C.fragment.firstChild&&((se=p.parentNode)==null||se.insertBefore(C.fragment,p));for(let[ae,R]of C.pending)te(ae,R);let D=new Set(T);for(let ae of m)if(!(k.has(ae.key)&&D.has(ae)))for(let R of ae.nodes)G(R),R.remove();let A=p;for(let ae=T.length-1;ae>=0;ae--){let R=T[ae],S=R.nodes[R.nodes.length-1];if(S&&S.nextSibling!==A)for(let B of R.nodes)(O=p.parentNode)==null||O.insertBefore(B,A);A=(pe=R.nodes[0])!=null?pe:A}m=T})},{priority:j.FOR,terminal:!0});function qv(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 Vv=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Uv=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),_v=/[\s\x00-\x1f]/g;function Wv(e){let t=e.replace(_v,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Jd(e,t,n,r=!1,o=!1){if(t==="class")return ou(e,n);if(t==="style")return Ea(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){sn(`:srcdoc refused in ${St(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(w.sanitizeUrls&&!r){if(Uv.has(t)&&typeof n=="string"&&Wv(n)){sn(`value refused in :${t} of ${St(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)){sn(`attribute "${t}" refused in ${St(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(Vv.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 Zd=new WeakMap;function ou(e,t){let n=Zd.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Zd.set(e,n));let r=new Set(n);iu(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function iu(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)iu(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 Ea(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Ea(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)}}}y("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,d]of Object.entries(l))Jd(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Jd(e,t,o(),s,a)})},{priority:j.BIND});y("class",({el:e,effect:t,evaluate:n})=>{t(()=>ou(e,n()))});y("style",({el:e,effect:t,evaluate:n})=>{t(()=>Ea(e,n()))});var eu={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Kv=["ctrl","shift","alt","meta"];function tu(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=_e(e),l=N(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){K(a,`event ${n.type} ("${e}")`)}}var Yv={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},su={hold(e,t,n,r){let o=Q(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{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(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.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"])su[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,p=d.clientY-s,f=40;(e==="left"?u<-f&&Math.abs(u)>Math.abs(p):e==="right"?u>f&&Math.abs(u)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(u):p>f&&Math.abs(p)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:p}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function au(e,t,n,r,o,i){var f;let s=(f=Yv[t])!=null?f:t,a=su[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),tu(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 v of Kv)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in eu||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=eu[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),tu(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=Ke(c,Q(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=Nr(c,Q(u===!0?250:u,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,p),i(()=>l.removeEventListener(s,c,p))}y("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&au(e,t,n,r,o,i)});var Xv=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Xv)y(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{au(t,e,n,r,o,i)});y("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",d=a==="INPUT"&&l==="radio",u=a==="SELECT",p=u&&s.multiple,f=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?Q(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?Q(e.getAttribute(`${w.prefix}debounce`),250):0,x=h||u||c||d||f?"change":"input",T=()=>{var C,D;let k;if(c){let A=q(t,n,"v-model");if(Array.isArray(A)){let se=s.value,O=[...A],pe=O.indexOf(se);s.checked&&pe===-1?O.push(se):!s.checked&&pe>-1&&O.splice(pe,1),k=O}else k=s.checked}else if(d){if(!s.checked)return;k=s.value}else if(p)k=Array.from(s.selectedOptions).map(A=>A.value);else if(f)k=r.single?(D=(C=s.files)==null?void 0:C[0])!=null?D:null:s.files;else if(k=s.value,g&&typeof k=="string"&&(k=k.trim()),v&&typeof k=="string"){let A=k===""?null:Number(k);k=A===null||Number.isNaN(A)?k:A}Bv(t,n,k)};b>0&&(T=Ke(T,b)),s.addEventListener(x,T),i(()=>s.removeEventListener(x,T)),o(()=>{let k=q(t,n,"v-model");if(c){s.checked=Array.isArray(k)?k.includes(s.value):!!k;return}if(d){s.checked=String(k)===s.value;return}if(p){let D=Array.isArray(k)?k.map(String):[];for(let A of Array.from(s.options))A.selected=D.includes(A.value);return}if(f)return;let C=k==null?"":String(k);s.value!==C&&(s.value=C),u&&s.value!==C&&ut(()=>{s.value!==C&&(s.value=C)})})},{priority:j.MODEL});y("init",({el:e,expression:t,scope:n})=>{Se(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:j.INIT});y("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:j.REF});y("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});y("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.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}),d=q(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});y("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});y("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=kt(r))});y("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){K(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:j.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"])y(e,()=>{},{priority:j.TRANSITION});y("data",()=>{},{priority:j.DATA});y("component",()=>{},{priority:j.COMPONENT});me();ce();var du=()=>w.prefix;function V(e,t){return Te(e,`${du()}${t}`)}function La(e,t){return Ft(e,`${du()}${t}`)}function Gv(e,t){var s,a,l;let n=V(e,"target"),r=V(e,"loading"),o={},i=V(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:V(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:V(e,"loading-class")||"v-loading",disableWhileLoading:La(e,"disable-loading"),confirmMessage:V(e,"confirm"),toastSuccess:V(e,"toast-success"),toastError:V(e,"toast-error"),onSuccess:V(e,"on-success"),onError:V(e,"on-error"),onComplete:V(e,"on-complete"),cacheMs:Q((s=V(e,"cache"))!=null?s:void 0,0),retry:Number((a=V(e,"retry"))!=null?a:0),timeout:Q((l=V(e,"timeout"))!=null?l:void 0,he.defaults.timeout),storeAs:V(e,"as"),jsonPath:V(e,"json-path"),templateSelector:V(e,"template"),offlineQueue:La(e,"offline-queue"),headers:o,redirect:V(e,"redirect"),scrollTo:V(e,"scroll-to")}}function lu(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&te(l,r)};switch(n){case"none":return;case"delete":G(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);G(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)&&te(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))G(a);e.innerHTML=t,o(e.childNodes)}}}function di(e,t=0){if(e==null)return"";if(typeof e!="object")return I(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>${I(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${di(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>${di(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${I(r)}</dt><dd>${di(o,t+1)}</dd>`).join("")}</dl>`:""}function Qv(e,t,n,r){let o=document.querySelector(e);if(!o){K(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))G(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 d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&te(u,d)}}var ka=new WeakMap;async function qr(e){var u,p,f,m,h;let{el:t,scope:n,method:r}=e,o=Gv(t,n),i=Tt.has("confirm");if(o.confirmMessage&&!i&&!await Jv(o.confirmMessage))return;(u=ka.get(t))==null||u.abort();let s=new AbortController;ka.set(t,s);let a=(p=o.target)!=null?p: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 v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),Yn(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await he.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}),g=xa(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?Qv(o.templateSelector,g,n,a):typeof g=="string"?lu(a,g,o.swap,n):g!=null&&(Zv(),lu(a,di(g),o.swap,n)),o.toastSuccess&&it.success(o.toastSuccess),o.onSuccess&&Ta(o.onSuccess,n,t,{data:g,response:v}),Yn(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof ke?(m=wa(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?it.error(o.toastError):o.onError||it.error(g),o.onError&&Ta(o.onError,n,t,{error:v,message:g}),Yn(t,"voodoo:error",{error:v,message:g}),K(v,`request ${r} ${e.url}`)}finally{d(),ka.delete(t),o.onComplete&&Ta(o.onComplete,n,t,{}),Yn(t,"voodoo:complete",{})}}function Yn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ta(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 Jv(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var cu=!1;function Zv(){cu||(cu=!0,Promise.resolve().then(()=>(Ne(),Ud)).then(({injectStyle:e})=>{e("json-render",`
|
|
129
|
+
`;function iu(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 Xn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function Gn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function su(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 au(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Ur(e,t={}){Z("transitions",ou);let n=iu(t);return ve.reducedMotion?Promise.resolve():new Promise(r=>{Xn(e,n.enterFrom),Xn(e,n.enterActive),au(()=>{var s;Gn(e,n.enterFrom),Xn(e,n.enterTo);let o=(s=t.duration)!=null?s:su(e),i=()=>{Gn(e,n.enterActive),Gn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function _r(e,t={}){Z("transitions",ou);let n=iu(t);return ve.reducedMotion?Promise.resolve():new Promise(r=>{Xn(e,n.leaveFrom),Xn(e,n.leaveActive),au(()=>{var s;Gn(e,n.leaveFrom),Xn(e,n.leaveTo);let o=(s=t.duration)!=null?s:su(e),i=()=>{Gn(e,n.leaveActive),Gn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function pn(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 mn(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 Qn(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 Jn(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 hi(e){let t=document;typeof t.startViewTransition=="function"&&!ve.reducedMotion?t.startViewTransition(e):e()}de();ce();function ih(e,t,n){try{let o={t:"assign",op:"=",target:ze(e),value:{t:"lit",v:n}};P(o,t)}catch(r){W(r,`assignment in "${e}"`)}}function fu(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?Q(e.getAttribute(`${t}duration`)):void 0}}y("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Lt(n());let r=e.firstChild;r&&r.nodeType===3&&oa(r)})});y("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Yo(t),n(()=>{let i=r();for(let s of Array.from(t.children))G(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))ne(s,o)})});y("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=fu(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,Ur(e,i)):_r(e,i).then(()=>{e.style.display="none"})})});y("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=w.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(w.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)ia(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),oa(p.template);let l=fu(e),c=-1,d=[],u=()=>{let p=d;if(d=[],!p.length)return;let m=()=>{for(let h of p)G(h),h.remove()};l&&p[0]instanceof HTMLElement?_r(p[0],l).then(m):m()};r(()=>{let p=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||q(g.expression,t,"v-if")){p=v;break}}if(p===c||(c=p,u(),p===-1))return;let m=i[p].template,h=pu(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&Ur(h[0],l)}),Be(e,u)},{priority:j.IF,terminal:!0});function pu(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&&(Bt(l,n),ne(l,n))}else{let s=e.cloneNode(!0);i.push(s),Bt(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),ne(s,n))}return i}y("else-if",()=>{},{priority:j.IF,terminal:!0});y("else",()=>{},{priority:j.IF,terminal:!0});var sh=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;y("for",({el:e,scope:t,expression:n,effect:r})=>{var v;let o=sh.exec(n);if(!o){W(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(g=>g.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),f=document.createComment(w.devtools?` v-for: ${n} `:"");(v=e.parentNode)==null||v.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${d}for`),p.removeAttribute(":key"),p.removeAttribute(`${d}bind:key`),p.removeAttribute(`${d}key`),ia(e);let m=[];Be(f,()=>{for(let g of m)for(let b of g.nodes)G(b),b.remove();m=[]}),r(()=>{var se,O,me;let g=q(s,t,"v-for"),b=ah(g,a,l,c),x=new Map;for(let ae of m)x.set(ae.key,ae);let T=[],E=new Set,C={fragment:document.createDocumentFragment(),pending:[]};b.forEach((ae,R)=>{let S=u?q(u,t.child(ae),":key"):`__index_${R}`;u&&E.has(S)&&ad(e,S,n);let B=x.get(S);if(B&&!E.has(S)){E.add(S);for(let[nn,An]of Object.entries(ae))B.data[nn]=An;T.push(B);return}let _e=t.reactiveChild(ae),We=pu(p,f,_e,C);E.add(S),T.push({key:S,scope:_e,nodes:We,data:_e.data})}),C.fragment.firstChild&&((se=f.parentNode)==null||se.insertBefore(C.fragment,f));for(let[ae,R]of C.pending)ne(ae,R);let D=new Set(T);for(let ae of m)if(!(E.has(ae.key)&&D.has(ae)))for(let R of ae.nodes)G(R),R.remove();let A=f;for(let ae=T.length-1;ae>=0;ae--){let R=T[ae],S=R.nodes[R.nodes.length-1];if(S&&S.nextSibling!==A)for(let B of R.nodes)(O=f.parentNode)==null||O.insertBefore(B,A);A=(me=R.nodes[0])!=null?me:A}m=T})},{priority:j.FOR,terminal:!0});function ah(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 lh=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),ch=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),dh=/[\s\x00-\x1f]/g;function uh(e){let t=e.replace(dh,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function lu(e,t,n,r=!1,o=!1){if(t==="class")return mu(e,n);if(t==="style")return Ra(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){cn(`:srcdoc refused in ${Ct(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(w.sanitizeUrls&&!r){if(ch.has(t)&&typeof n=="string"&&uh(n)){cn(`value refused in :${t} of ${Ct(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)){cn(`attribute "${t}" refused in ${Ct(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(lh.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 cu=new WeakMap;function mu(e,t){let n=cu.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),cu.set(e,n));let r=new Set(n);vu(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function vu(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)vu(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 Ra(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Ra(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)}}}y("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,d]of Object.entries(l))lu(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{lu(e,t,o(),s,a)})},{priority:j.BIND});y("class",({el:e,effect:t,evaluate:n})=>{t(()=>mu(e,n()))});y("style",({el:e,effect:t,evaluate:n})=>{t(()=>Ra(e,n()))});var du={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},fh=["ctrl","shift","alt","meta"];function uu(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=ze(e),l=P(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){W(a,`event ${n.type} ("${e}")`)}}var ph={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},hu={hold(e,t,n,r){let o=Q(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{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(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.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"])hu[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,f=d.clientY-s,p=40;(e==="left"?u<-p&&Math.abs(u)>Math.abs(f):e==="right"?u>p&&Math.abs(u)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(u):f>p&&Math.abs(f)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function gu(e,t,n,r,o,i){var p;let s=(p=ph[t])!=null?p:t,a=hu[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),uu(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 v of fh)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in du||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=du[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),uu(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=Ye(c,Q(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=Ir(c,Q(u===!0?250:u,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}y("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&gu(e,t,n,r,o,i)});var mh=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of mh)y(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{gu(t,e,n,r,o,i)});y("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",d=a==="INPUT"&&l==="radio",u=a==="SELECT",f=u&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?Q(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?Q(e.getAttribute(`${w.prefix}debounce`),250):0,x=h||u||c||d||p?"change":"input",T=()=>{var C,D;let E;if(c){let A=q(t,n,"v-model");if(Array.isArray(A)){let se=s.value,O=[...A],me=O.indexOf(se);s.checked&&me===-1?O.push(se):!s.checked&&me>-1&&O.splice(me,1),E=O}else E=s.checked}else if(d){if(!s.checked)return;E=s.value}else if(f)E=Array.from(s.selectedOptions).map(A=>A.value);else if(p)E=r.single?(D=(C=s.files)==null?void 0:C[0])!=null?D:null:s.files;else if(E=s.value,g&&typeof E=="string"&&(E=E.trim()),v&&typeof E=="string"){let A=E===""?null:Number(E);E=A===null||Number.isNaN(A)?E:A}ih(t,n,E)};b>0&&(T=Ye(T,b)),s.addEventListener(x,T),i(()=>s.removeEventListener(x,T)),o(()=>{let E=q(t,n,"v-model");if(c){s.checked=Array.isArray(E)?E.includes(s.value):!!E;return}if(d){s.checked=String(E)===s.value;return}if(f){let D=Array.isArray(E)?E.map(String):[];for(let A of Array.from(s.options))A.selected=D.includes(A.value);return}if(p)return;let C=E==null?"":String(E);s.value!==C&&(s.value=C),u&&s.value!==C&&ft(()=>{s.value!==C&&(s.value=C)})})},{priority:j.MODEL});y("init",({el:e,expression:t,scope:n})=>{Se(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:j.INIT});y("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:j.REF});y("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});y("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.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}),d=q(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});y("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});y("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Lt(r))});y("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){W(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:j.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"])y(e,()=>{},{priority:j.TRANSITION});y("data",()=>{},{priority:j.DATA});y("component",()=>{},{priority:j.COMPONENT});de();ce();var xu=()=>w.prefix;function V(e,t){return Te(e,`${xu()}${t}`)}function Pa(e,t){return zt(e,`${xu()}${t}`)}function vh(e,t){var s,a,l;let n=V(e,"target"),r=V(e,"loading"),o={},i=V(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:V(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:V(e,"loading-class")||"v-loading",disableWhileLoading:Pa(e,"disable-loading"),confirmMessage:V(e,"confirm"),toastSuccess:V(e,"toast-success"),toastError:V(e,"toast-error"),onSuccess:V(e,"on-success"),onError:V(e,"on-error"),onComplete:V(e,"on-complete"),cacheMs:Q((s=V(e,"cache"))!=null?s:void 0,0),retry:Number((a=V(e,"retry"))!=null?a:0),timeout:Q((l=V(e,"timeout"))!=null?l:void 0,he.defaults.timeout),storeAs:V(e,"as"),jsonPath:V(e,"json-path"),templateSelector:V(e,"template"),offlineQueue:Pa(e,"offline-queue"),headers:o,redirect:V(e,"redirect"),scrollTo:V(e,"scroll-to")}}function bu(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":G(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);G(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))G(a);e.innerHTML=t,o(e.childNodes)}}}function gi(e,t=0){if(e==null)return"";if(typeof e!="object")return I(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>${I(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${gi(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>${gi(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${I(r)}</dt><dd>${gi(o,t+1)}</dd>`).join("")}</dl>`:""}function hh(e,t,n,r){let o=document.querySelector(e);if(!o){W(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))G(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 d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&ne(u,d)}}var $a=new WeakMap;async function Wr(e){var u,f,p,m,h;let{el:t,scope:n,method:r}=e,o=vh(t,n),i=Mt.has("confirm");if(o.confirmMessage&&!i&&!await gh(o.confirmMessage))return;(u=$a.get(t))==null||u.abort();let s=new AbortController;$a.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 v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),Zn(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await he.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}),g=Ca(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?hh(o.templateSelector,g,n,a):typeof g=="string"?bu(a,g,o.swap,n):g!=null&&(bh(),bu(a,gi(g),o.swap,n)),o.toastSuccess&&st.success(o.toastSuccess),o.onSuccess&&Da(o.onSuccess,n,t,{data:g,response:v}),Zn(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof Ee?(m=Aa(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?st.error(o.toastError):o.onError||st.error(g),o.onError&&Da(o.onError,n,t,{error:v,message:g}),Zn(t,"voodoo:error",{error:v,message:g}),W(v,`request ${r} ${e.url}`)}finally{d(),$a.delete(t),o.onComplete&&Da(o.onComplete,n,t,{}),Zn(t,"voodoo:complete",{})}}function Zn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Da(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 gh(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var yu=!1;function bh(){yu||(yu=!0,Promise.resolve().then(()=>(Ae(),Gd)).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 eh(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 th({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||eh(e),[o,...i]=r.split(/[.\s]+/),s=Q((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),l=Q((u=V(e,"debounce"))!=null?u:void 0,0),c=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};l>0&&(c=Ke(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var nh=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of nh)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{th({el:n,scope:r,cleanup:i,run:a=>{let l=Vr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),p=u?q(u,r,"v-params"):void 0;qr({el:n,scope:r,method:t,url:l,body:d,params:p,event:a})}})});function Vr(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}y("load",({el:e,scope:t,expression:n})=>{let r=Vr(n,t);r&&qr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Vr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){qr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),qr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,p;let o=e,i=Vr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=Q((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((p=V(e,"min-length"))!=null?p:0),c=Ke(()=>{let f=o.value.trim();f.length<l||qr({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=li(()=>Vr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:Q((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:Q((d=V(e,"timeout"))!=null?d:void 0,he.defaults.timeout),jsonPath:V(e,"json-path"),poll:Q((u=V(e,"poll"))!=null?u:void 0,0),manual:La(e,"manual"),onSuccess:p=>Yn(e,"voodoo:success",{data:p}),onError:(p,f)=>Yn(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:j.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"])y(e,()=>{},{priority:j.TRANSITION});md(kd);Ed(It);Ad(fu);Kd();var Ur=new Map;function uu(e,t){let n=Ur.get(e);return n||Ur.set(e,n=new Set),n.add(t),()=>n.delete(t)}function rh(e,t){let n=uu(e,r=>{n(),t(r)});return n}function oh(e,t){let n=Ur.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function ih(e,t){var n;if(!t){Ur.delete(e);return}(n=Ur.get(e))==null||n.delete(t)}function fu(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,l(p));return}if(p===s)return;let f=l(p);(h=n.updated)==null||h.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=l(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function sh(e){return Object.defineProperties(We.data,Object.getOwnPropertyDescriptors(e)),We.data}var ah="0.11.2",ui={...ma,version:ah,config:w,reactive:Y,ref:Mr,shallowRef:zs,computed:Sr,effect:Fe,watch:Ie,watchEffect:js,nextTick:ut,toRaw:Me,markRaw:Fs,unref:Bs,stop:Ps,effectScope:Ns,EffectScope:rt,flushSync:As,data:sh,store:Pd,stores:Fn,removeStore:Nd,storeNames:Go,scope:We,component:zt,components:De,directive:fu,directives:Tt,magic:H,magics:Ar,createApp:Rd,start:bd,whenReady:Ko,whenElement:Yo,walk:te,refresh:xd,destroy:G,stopObserving:yd,getScope:ot,findScope:Ce,addCleanup:Xe,parseAttribute:$n,parse:_e,tokenize:Oo,evaluate:N,evaluateIn:q,stringify:kt,clearParseCache:Vc,globals:He,http:he,request:jt,HttpError:ke,resource:li,toast:it,storage:ue,session:ri,cookie:oi,cache:ii,url:Vt,theme:ft,clipboard:ai,screen:Ge,network:Ut,enter:Br,leave:jr,fadeIn:Wn,fadeOut:Kn,slideUp:dn,slideDown:cn,viewTransition:ci,injectStyle:oe,ensureTokens:ge,on:uu,once:rh,off:ih,emit:oh,use(e,t){Io(ui,e,t)},onError(e){Rs(e)},instances:At,Scope:Lt,PRIORITY:j,VoodooSyntaxError:ee,VoodooRuntimeError:Ee};Dd(ui);me();var lh=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 wu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function st(e){return e.length<2?e:Array.from(new Set(e))}function un(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Ma(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 Eu(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function ch(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof pt)return e.toArray();if(typeof e=="string")return fn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=fn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function fn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Eu(o))return Ma(o);let i=[];for(let s of ch(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return st(i)}if(e instanceof pt)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 st(o)}return[]}function pu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Eu(r.trim())?Ma(r):[document.createTextNode(r)]}if(e instanceof pt)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 fi(e,t,n){let r=wu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!lh.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function dh(e,t){for(let[n,r]of Object.entries(t))fi(e,n,r)}function mu(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 vu(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var ku=new WeakMap;function hu(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function gu(e){e.removeAttribute("hidden");let t=ku.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 bu(e){let t=e.style.display;t&&t!=="none"&&ku.set(e,t),e.style.display="none"}var yu="input,select,textarea";function xu(e){return e.matches(yu)?[e]:Array.from(e.querySelectorAll(yu))}function uh(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 pi=new WeakMap;function fh(e){let t=pi.get(e);return t||pi.set(e,t=[]),t}var pt=class e{constructor(t=[]){P(this,"length");P(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(st(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(st(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(st(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(st(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(st(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(st(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(st(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(st(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(st([...this.elements,...fn(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))G(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))G(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=un(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]=mu(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[vu(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=vu(String(n));if(t.length<2){let i=this.elements[0];return i?mu(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)dh(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=wu(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)fi(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)fi(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)fi(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=un(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=un(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=un(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 pu(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=fn(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=fn(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 pu(t))r.insertBefore(o,n);G(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=fn(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);G(n),n.remove()}}return this}remove(){for(let t of this.elements)G(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))G(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 un(t)){let d=u=>{if(!o){i.call(l,u);return}let p=u.target,f=p==null?void 0:p.closest(o);!f||!l.contains(f)||i.call(f,u)};l.addEventListener(c,d,s),fh(l).push({type:c,selector:o,handler:i,wrapped:d,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?un(t):null;for(let a of this.elements){let l=pi.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),p=o===null||d.selector===o,f=i===null||d.handler===i;u&&p&&f?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}pi.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)gu(t);return this}hide(){for(let t of this.elements)bu(t);return this}toggle(t){for(let n of this.elements)(t===void 0?hu(n):t)?gu(n):bu(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Wn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Kn(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}slideToggle(t=240){for(let n of this.elements)hu(n)?(n.removeAttribute("hidden"),cn(n,t)):dn(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 xu(t)){if(!uh(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 xu(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 d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,p=a,f;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;f=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;f=l.value}else c==="file"?f=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):c==="number"||c==="range"?f=l.value===""?null:Number(l.value):f=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(f):n[u]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[u]=f:n[u]=[m,f];continue}n[u]=f}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&&G(n),te(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)G(t);return this}};function Sa(e,t){if(typeof e=="function"){Ca(e);let n=typeof document!="undefined"?document.documentElement:null;return new pt(n?[n]:[])}return new pt(fn(e,t))}function Ca(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Cd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function Tu(e){return new pt(Ma(e))}me();ce();var pn=new Map,ze={emit(e,t){let n=pn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=pn.get(e);return n||pn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=pn.get(e))==null||n.delete(t)},clear(e){e?pn.delete(e):pn.clear()},count(e){var t,n;return(n=(t=pn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},mi="__voodooRoute",Su=10,mt=[],Cu=new Map,vi=new Map,Xn="inicial",hi=!1,Au=!1;function ph(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var de=Y(ph());function _r(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Ru(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function mh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Da(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=Ru(t.slice(i+1)),t=t.slice(0,i)),{path:_r(t),query:o,hash:n}}function vh(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function $u(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Da(window.location.hash.slice(1)||"/"):{path:_r(vh(window.location.pathname)),query:Ru(window.location.search),hash:window.location.hash.slice(1)}}function Du(e,t,n){let r=mh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Pa(e){let t=Du(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var Ra=!1,gi=!1;function Na(e,t,n){if(!Ra)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;Ra=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){gi=!0;try{window.location.hash=o}finally{setTimeout(()=>{gi=!1},0)}}}function Pu(e,t){let n=e==="*"?"*":_r(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function hh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Aa).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Aa(i)!==o.value)return null;r++;continue}n[o.value]=Aa(i),r++}return r===t.length?n:null}function Aa(e){try{return decodeURIComponent(e)}catch(t){return e}}function gh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of mt){let o=hh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ha(e){var t,n;return e&&(n=(t=mt.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function Gn(e){let{path:t,query:n,hash:r}=Da(e);return Oa(t,n,r)}function Oa(e,t,n){var o,i;let r=gh(e);return{path:e,fullPath:Du(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Qn(){return{path:de.path,fullPath:de.fullPath,params:{...de.params},query:{...de.query},hash:de.hash,name:de.name,meta:de.meta,matched:de.matched}}function Fa(e){de.path=e.path,de.fullPath=e.fullPath,de.params=e.params,de.query=e.query,de.hash=e.hash,de.name=e.name,de.meta=e.meta,de.matched=e.matched;let t=Ha(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ia(e,t){let n=Ha(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function yi(){typeof window!="undefined"&&Cu.set(Xn,window.scrollY)}function za(e,t,n){typeof window!="undefined"&&Se(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function _t(e,t={}){var a,l;if(typeof window=="undefined")return!1;Nu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>Su)return X(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ia(r,n);if(d===!1)return ze.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=Gn(d);continue}break}yi();let o=le("rota"),i={...(a=t.state)!=null?a:{},[mi]:o},s=Pa(r);return Na(i,s,t.replace===!0),Xn=o,Fa(r),t.scroll!==!1&&za(r,n,null),(l=U.afterEach)==null||l.call(U,Qn(),n),ze.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function bh(e){var c,d;if(gi)return;let{path:t,query:n,hash:r}=$u(),o=Oa(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ia(o,i);if(s===!1){Na({[mi]:Xn},Pa(i),!0),ze.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){_t(s,{replace:!0});return}yi();let a=e.state,l=a&&a[mi]||le("rota");Xn=l,Fa(o),za(o,i,(c=Cu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,Qn(),i),ze.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function bi(e){bh(e)}function Nu(){hi||typeof window=="undefined"||(hi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",bi),U.mode==="hash"&&window.addEventListener("hashchange",bi),window.addEventListener("beforeunload",yi))}function yh(){!hi||typeof window=="undefined"||(hi=!1,window.removeEventListener("popstate",bi),window.removeEventListener("hashchange",bi),window.removeEventListener("beforeunload",yi),Ra=!1,gi=!1)}async function xh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=$u(),r=Qn(),o=Oa(e,t,n);for(let s=0;;s++){if(s>Su){X("Router: too many redirects in the initial route.");return}let a=await Ia(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=le("rota"),Na({[mi]:Xn},Pa(o),!0),Fa(o),o.hash&&za(o,r,null),(i=U.afterEach)==null||i.call(U,Qn(),r)}function wh(e,t){let n=Pu(e,t),r=mt.findIndex(o=>o.pattern===n.pattern);r>-1?mt.splice(r,1,n):mt.push(n)}function Eh(e){let t=e==="*"?"*":_r(e),n=mt.findIndex(r=>r.pattern===t);n>-1&&mt.splice(n,1)}function kh(){return[...mt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function Th(e){e?vi.delete(e):vi.clear()}function Lh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=_r((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,mt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))mt.push(Pu(u,p));return Au=!0,Nu(),xh(),Wr}var Mh={get current(){return de},push:(e,t={})=>_t(e,t),replace:(e,t={})=>_t(e,{...t,replace:!0}),navigate:_t,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:Gn,addRoute:wh,removeRoute:Eh,patterns:kh,stop:yh,clearViewCache:Th,get ready(){return Au}},Wr=Object.defineProperties(Lh,Object.getOwnPropertyDescriptors(Mh));H("$route",()=>de);H("$router",()=>Wr);async function Sh(e){let t=vi.get(e);if(t!==void 0)return t;let n=await he.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return vi.set(e,r),r}function Ch(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{Uo(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))G(u);e.textContent=""},c=(u,p)=>{if(l(),u!=null&&u.component){let f=document.createElement("div");f.setAttribute(`${w.prefix}component`,u.component),f.className="v-router-page",e.appendChild(f),te(f,t);return}e.innerHTML=p!=null?p:i;for(let f of Array.from(e.childNodes))te(f,t)},d=async(u,p)=>{let f=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{f=await Sh(u.view)}catch(m){K(m,`v-router-view loading "${u.view}"`),f=""}finally{e.classList.remove("v-router-loading")}if(p!==a)return}s?ci(()=>c(u,f)):c(u,f)};r(()=>{let u=de.matched;Ch(de.params);let p=Ha(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var Ah=/^[a-z][a-z0-9+.-]*:/i;function Lu(e){return!!(!e||e.startsWith("//")||Ah.test(e))}function Mu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function $a(e,t){let{path:n}=Da(e);return n==="/"||t?de.path===n:de.path===n||de.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=Mu(e,t,i);d&&(Lu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),_t(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=Mu(e,t,i);if(!l||Lu(l))return;let c=$a(l,!0),d=c||$a(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?$a(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});me();ce();var Rh="voodoo:locale",z=Y({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=Rh,Zn="",Ba=new Map;function xi(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function wi(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var Hu=new Map;function $h(e,t){try{let n=Hu.get(e);return n||Hu.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var Dh=["zero","one","two","few","many","other"];function Ph(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=$h(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=Dh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var Nh=/\{\s*([\w.$-]+)\s*\}/g;function Hh(e,t){return e.indexOf("{")===-1?e:e.replace(Nh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Oh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=Oh(t),r=z.locale,o=null;for(let a of wi(r))if(o=xi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of wi(z.fallback))if(o=xi(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=Ph(l,Number.isNaN(a)?0:a,r)}return Hh(o,n)}function Fh(e,t){let n=t!=null?t:z.locale;for(let r of wi(n))if(xi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of wi(z.fallback))if(xi(r,e)!==null)return!0}return!1}function Ou(e,t={}){return ua(e,{...t,locale:z.locale})}function Fu(e,t){return da(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Iu(e,t="short"){return fa(e,t,z.locale)}function zu(e){return pa(e,z.locale)}function ki(){return z.locale}function Ih(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function Ei(e,t){let n=z.messages[e];return n?Jo(n,t):z.messages[e]=t,e}async function ja(e,t){if(typeof t!="string"){Ei(e,t);return}let n=Ba.get(e);if(n)return n;let r=he.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&Ei(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Ba.delete(e)});return Ba.set(e,r),r}function Kr(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,ei(t,z.currency),Jn&&ue.set(Jn,t),typeof document!="undefined"&&(document.documentElement.lang=t),ze.emit("locale",{from:n,to:t}),!z.messages[t]&&Zn?ja(t,Zn.replace("{locale}",t)):Promise.resolve()}function Bu(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function zh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))Ei(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,Zn=(a=e.loadPath)!=null?a:Zn,e.persist===!1?Jn=null:typeof e.persist=="string"&&(Jn=e.persist);let t=Jn?ue.get(Jn):void 0,n=e.detect===!1?null:Bu(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,ei(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&Zn&&ja(r,Zn.replace("{locale}",r)),Yr}var Bh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:Fh,n:Ou,c:Fu,d:Iu,rt:zu,setLocale:Kr,getLocale:ki,addMessages:Ei,loadMessages:ja,messagesOf:Ih,detectLocale:Bu},Yr=Object.defineProperties(zh,Object.getOwnPropertyDescriptors(Bh));H("$t",()=>er);H("$locale",()=>z.locale);H("$i18n",()=>Yr);H("$n",()=>Ou);H("$c",()=>Fu);H("$d",()=>Iu);H("$rt",()=>zu);var jh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function qh(e,t){let n=e.trim();if(!n)return"";if(jh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Vh(e,t){var o;let n=(o=Te(e,`${w.prefix}t-params`))!=null?o:Te(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=qh(n,o);if(!i)return;let s=er(i,Vh(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&Kr(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});me();ce();Ne();Ne();ce();var qa=new WeakMap;function Kt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function Ti(e,t){return Ft(e,`${w.prefix}${t}`)||Ft(e,`data-v-${t}`)}function Z(e,t){let n=qa.get(e);return n&&t in n?n[t]:Kt(e,t)}function Li(e,t,n){var o;let r=(o=qa.get(e))!=null?o:{};r[t]=n,qa.set(e,r)}function W(e){y(e,({el:t,expression:n})=>{Li(t,e,n)},{priority:j.BIND})}function fe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function vt(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 Uh=`
|
|
138
|
+
`)}))}function yh(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 xh({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||yh(e),[o,...i]=r.split(/[.\s]+/),s=Q((d=V(e,"poll"))!=null?d: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=Q((u=V(e,"debounce"))!=null?u:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=Ye(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var wh=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of wh)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{xh({el:n,scope:r,cleanup:i,run:a=>{let l=Kr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),f=u?q(u,r,"v-params"):void 0;Wr({el:n,scope:r,method:t,url:l,body:d,params:f,event:a})}})});function Kr(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}y("load",({el:e,scope:t,expression:n})=>{let r=Kr(n,t);r&&Wr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Kr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Wr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Wr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,f;let o=e,i=Kr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=Q((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((f=V(e,"min-length"))!=null?f:0),c=Ye(()=>{let p=o.value.trim();p.length<l||Wr({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(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=vi(()=>Kr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:Q((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:Q((d=V(e,"timeout"))!=null?d:void 0,he.defaults.timeout),jsonPath:V(e,"json-path"),poll:Q((u=V(e,"poll"))!=null?u:void 0,0),manual:Pa(e,"manual"),onSuccess:f=>Zn(e,"voodoo:success",{data:f}),onError:(f,p)=>Zn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:j.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"])y(e,()=>{},{priority:j.TRANSITION});xd(Rd);Ad(Bt);Od(ku);Zd();ru();var Yr=new Map;function wu(e,t){let n=Yr.get(e);return n||Yr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function kh(e,t){let n=wu(e,r=>{n(),t(r)});return n}function Eh(e,t){let n=Yr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){W(o,`event "${e}"`)}}function Th(e,t){var n;if(!t){Yr.delete(e);return}(n=Yr.get(e))==null||n.delete(t)}function ku(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;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();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;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);(h=n.updated)==null||h.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:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Lh(e){return Object.defineProperties(Ke.data,Object.getOwnPropertyDescriptors(e)),Ke.data}var Mh="0.12.1",bi={...ka,version:Mh,config:w,reactive:Y,ref:Ge,shallowRef:Us,computed:an,effect:Pe,watch:Ie,watchEffect:Ws,nextTick:ft,toRaw:Me,markRaw:Rr,unref:_s,stop:Pn,effectScope:Bs,EffectScope:ot,flushSync:Os,data:Lh,store:ei,stores:$t,removeStore:Bd,storeNames:ti,scope:Ke,component:jt,components:He,directive:ku,directives:Mt,magic:N,magics:Pr,createApp:Fd,start:Ld,whenReady:Qo,whenElement:Jo,walk:ne,refresh:Sd,destroy:G,stopObserving:Md,getScope:it,findScope:Ce,addCleanup:Be,parseAttribute:Fn,parse:ze,tokenize:Bo,evaluate:P,evaluateIn:q,stringify:Lt,clearParseCache:Qc,globals:Oe,http:he,request:Vt,HttpError:Ee,resource:vi,toast:st,storage:fe,session:ci,cookie:di,cache:ui,url:_t,theme:mt,clipboard:pi,screen:Qe,network:Wt,enter:Ur,leave:_r,fadeIn:Qn,fadeOut:Jn,slideUp:mn,slideDown:pn,viewTransition:hi,injectStyle:Z,ensureTokens:ge,on:wu,once:kh,off:Th,emit:Eh,use(e,t){qo(bi,e,t)},onError(e){Fs(e)},instances:Rt,Scope:St,PRIORITY:j,VoodooSyntaxError:te,VoodooRuntimeError:ke};zd(bi);de();var Sh=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 $u(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function at(e){return e.length<2?e:Array.from(new Set(e))}function vn(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Ha(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 Du(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Ch(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof vt)return e.toArray();if(typeof e=="string")return hn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=hn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function hn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Du(o))return Ha(o);let i=[];for(let s of Ch(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return at(i)}if(e instanceof vt)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 at(o)}return[]}function Eu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Du(r.trim())?Ha(r):[document.createTextNode(r)]}if(e instanceof vt)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 yi(e,t,n){let r=$u(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Sh.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Ah(e,t){for(let[n,r]of Object.entries(t))yi(e,n,r)}function Tu(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 Lu(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Pu=new WeakMap;function Mu(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Su(e){e.removeAttribute("hidden");let t=Pu.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 Cu(e){let t=e.style.display;t&&t!=="none"&&Pu.set(e,t),e.style.display="none"}var Au="input,select,textarea";function Ru(e){return e.matches(Au)?[e]:Array.from(e.querySelectorAll(Au))}function Rh(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 xi=new WeakMap;function $h(e){let t=xi.get(e);return t||xi.set(e,t=[]),t}var vt=class e{constructor(t=[]){H(this,"length");H(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(at(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(at(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(at(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(at(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(at(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(at(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(at(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(at(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(at([...this.elements,...hn(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))G(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))G(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=vn(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]=Tu(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[Lu(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Lu(String(n));if(t.length<2){let i=this.elements[0];return i?Tu(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)Ah(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=$u(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)yi(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)yi(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)yi(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=vn(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=vn(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=vn(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 Eu(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=hn(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=hn(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 Eu(t))r.insertBefore(o,n);G(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=hn(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);G(n),n.remove()}}return this}remove(){for(let t of this.elements)G(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))G(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 vn(t)){let d=u=>{if(!o){i.call(l,u);return}let f=u.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,u)};l.addEventListener(c,d,s),$h(l).push({type:c,selector:o,handler:i,wrapped:d,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?vn(t):null;for(let a of this.elements){let l=xi.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),f=o===null||d.selector===o,p=i===null||d.handler===i;u&&f&&p?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}xi.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)Su(t);return this}hide(){for(let t of this.elements)Cu(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Mu(n):t)?Su(n):Cu(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Qn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Jn(n,t);return this}slideUp(t=240){for(let n of this.elements)mn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),pn(n,t);return this}slideToggle(t=240){for(let n of this.elements)Mu(n)?(n.removeAttribute("hidden"),pn(n,t)):mn(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 Ru(t)){if(!Rh(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 Ru(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 d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=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(d){let m=n[u];Array.isArray(m)?m.push(p):n[u]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[u]=p:n[u]=[m,p];continue}n[u]=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&&G(n),ne(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)G(t);return this}};function Na(e,t){if(typeof e=="function"){Oa(e);let n=typeof document!="undefined"?document.documentElement:null;return new vt(n?[n]:[])}return new vt(hn(e,t))}function Oa(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Nd(()=>{try{e==null||e()}catch(n){W(n,"V.ready")}t()})})}function Hu(e){return new vt(Ha(e))}de();ce();var gn=new Map,je={emit(e,t){let n=gn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=gn.get(e);return n||gn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=gn.get(e))==null||n.delete(t)},clear(e){e?gn.delete(e):gn.clear()},count(e){var t,n;return(n=(t=gn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},wi="__voodooRoute",Fu=10,ht=[],Iu=new Map,ki=new Map,er="inicial",Ei=!1,zu=!1;function Dh(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ue=Y(Dh());function Xr(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Bu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function Ph(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Ba(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=Bu(t.slice(i+1)),t=t.slice(0,i)),{path:Xr(t),query:o,hash:n}}function Hh(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function ju(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Ba(window.location.hash.slice(1)||"/"):{path:Xr(Hh(window.location.pathname)),query:Bu(window.location.search),hash:window.location.hash.slice(1)}}function qu(e,t,n){let r=Ph(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function ja(e){let t=qu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var Ia=!1,Ti=!1;function qa(e,t,n){if(!Ia)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;Ia=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){Ti=!0;try{window.location.hash=o}finally{setTimeout(()=>{Ti=!1},0)}}}function Vu(e,t){let n=e==="*"?"*":Xr(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function Nh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Fa).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Fa(i)!==o.value)return null;r++;continue}n[o.value]=Fa(i),r++}return r===t.length?n:null}function Fa(e){try{return decodeURIComponent(e)}catch(t){return e}}function Oh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of ht){let o=Nh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Va(e){var t,n;return e&&(n=(t=ht.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function tr(e){let{path:t,query:n,hash:r}=Ba(e);return Ua(t,n,r)}function Ua(e,t,n){var o,i;let r=Oh(e);return{path:e,fullPath:qu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function nr(){return{path:ue.path,fullPath:ue.fullPath,params:{...ue.params},query:{...ue.query},hash:ue.hash,name:ue.name,meta:ue.meta,matched:ue.matched}}function _a(e){ue.path=e.path,ue.fullPath=e.fullPath,ue.params=e.params,ue.query=e.query,ue.hash=e.hash,ue.name=e.name,ue.meta=e.meta,ue.matched=e.matched;let t=Va(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Wa(e,t){let n=Va(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function Mi(){typeof window!="undefined"&&Iu.set(er,window.scrollY)}function Ka(e,t,n){typeof window!="undefined"&&Se(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Kt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Uu();let n=nr(),r=tr(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>Fu)return X(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Wa(r,n);if(d===!1)return je.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=tr(d);continue}break}Mi();let o=le("rota"),i={...(a=t.state)!=null?a:{},[wi]:o},s=ja(r);return qa(i,s,t.replace===!0),er=o,_a(r),t.scroll!==!1&&Ka(r,n,null),(l=U.afterEach)==null||l.call(U,nr(),n),je.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function Fh(e){var c,d;if(Ti)return;let{path:t,query:n,hash:r}=ju(),o=Ua(t,n,r),i=nr();if(o.fullPath===i.fullPath)return;let s=await Wa(o,i);if(s===!1){qa({[wi]:er},ja(i),!0),je.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Kt(s,{replace:!0});return}Mi();let a=e.state,l=a&&a[wi]||le("rota");er=l,_a(o),Ka(o,i,(c=Iu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,nr(),i),je.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function Li(e){Fh(e)}function Uu(){Ei||typeof window=="undefined"||(Ei=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",Li),U.mode==="hash"&&window.addEventListener("hashchange",Li),window.addEventListener("beforeunload",Mi))}function Ih(){!Ei||typeof window=="undefined"||(Ei=!1,window.removeEventListener("popstate",Li),window.removeEventListener("hashchange",Li),window.removeEventListener("beforeunload",Mi),Ia=!1,Ti=!1)}async function zh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=ju(),r=nr(),o=Ua(e,t,n);for(let s=0;;s++){if(s>Fu){X("Router: too many redirects in the initial route.");return}let a=await Wa(o,r);if(a===!1)return;if(typeof a=="string"){o=tr(a);continue}break}er=le("rota"),qa({[wi]:er},ja(o),!0),_a(o),o.hash&&Ka(o,r,null),(i=U.afterEach)==null||i.call(U,nr(),r)}function Bh(e,t){let n=Vu(e,t),r=ht.findIndex(o=>o.pattern===n.pattern);r>-1?ht.splice(r,1,n):ht.push(n)}function jh(e){let t=e==="*"?"*":Xr(e),n=ht.findIndex(r=>r.pattern===t);n>-1&&ht.splice(n,1)}function qh(){return[...ht].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function Vh(e){e?ki.delete(e):ki.clear()}function Uh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Xr((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,ht.length=0;for(let[u,f]of Object.entries((d=e.routes)!=null?d:{}))ht.push(Vu(u,f));return zu=!0,Uu(),zh(),Gr}var _h={get current(){return ue},push:(e,t={})=>Kt(e,t),replace:(e,t={})=>Kt(e,{...t,replace:!0}),navigate:Kt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:tr,addRoute:Bh,removeRoute:jh,patterns:qh,stop:Ih,clearViewCache:Vh,get ready(){return zu}},Gr=Object.defineProperties(Uh,Object.getOwnPropertyDescriptors(_h));N("$route",()=>ue);N("$router",()=>Gr);async function Wh(e){let t=ki.get(e);if(t!==void 0)return t;let n=await he.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return ki.set(e,r),r}function Kh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{Yo(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))G(u);e.textContent=""},c=(u,f)=>{if(l(),u!=null&&u.component){let p=document.createElement("div");p.setAttribute(`${w.prefix}component`,u.component),p.className="v-router-page",e.appendChild(p),ne(p,t);return}e.innerHTML=f!=null?f:i;for(let p of Array.from(e.childNodes))ne(p,t)},d=async(u,f)=>{let p=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{p=await Wh(u.view)}catch(m){W(m,`v-router-view loading "${u.view}"`),p=""}finally{e.classList.remove("v-router-loading")}if(f!==a)return}s?hi(()=>c(u,p)):c(u,p)};r(()=>{let u=ue.matched;Kh(ue.params);let f=Va(u);d(f,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var Yh=/^[a-z][a-z0-9+.-]*:/i;function Nu(e){return!!(!e||e.startsWith("//")||Yh.test(e))}function Ou(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function za(e,t){let{path:n}=Ba(e);return n==="/"||t?ue.path===n:ue.path===n||ue.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=Ou(e,t,i);d&&(Nu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Kt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=Ou(e,t,i);if(!l||Nu(l))return;let c=za(l,!0),d=c||za(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?za(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});de();ce();var Xh="voodoo:locale",z=Y({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),rr=Xh,or="",Ya=new Map;function Si(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function Ci(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var _u=new Map;function Gh(e,t){try{let n=_u.get(e);return n||_u.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var Qh=["zero","one","two","few","many","other"];function Jh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=Gh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=Qh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var Zh=/\{\s*([\w.$-]+)\s*\}/g;function eg(e,t){return e.indexOf("{")===-1?e:e.replace(Zh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function tg(e){return e==null?{}:typeof e=="number"?{n:e}:e}function ir(e,t){var i,s;if(!e)return"";let n=tg(t),r=z.locale,o=null;for(let a of Ci(r))if(o=Si(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of Ci(z.fallback))if(o=Si(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=Jh(l,Number.isNaN(a)?0:a,r)}return eg(o,n)}function ng(e,t){let n=t!=null?t:z.locale;for(let r of Ci(n))if(Si(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of Ci(z.fallback))if(Si(r,e)!==null)return!0}return!1}function Wu(e,t={}){return ya(e,{...t,locale:z.locale})}function Ku(e,t){return ba(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Yu(e,t="short"){return xa(e,t,z.locale)}function Xu(e){return wa(e,z.locale)}function Ri(){return z.locale}function rg(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function Ai(e,t){let n=z.messages[e];return n?ri(n,t):z.messages[e]=t,e}async function Xa(e,t){if(typeof t!="string"){Ai(e,t);return}let n=Ya.get(e);if(n)return n;let r=he.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&Ai(e,o)}).catch(o=>{W(o,`i18n ao carregar "${t}"`)}).finally(()=>{Ya.delete(e)});return Ya.set(e,r),r}function Qr(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,ii(t,z.currency),rr&&fe.set(rr,t),typeof document!="undefined"&&(document.documentElement.lang=t),je.emit("locale",{from:n,to:t}),!z.messages[t]&&or?Xa(t,or.replace("{locale}",t)):Promise.resolve()}function Gu(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function og(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))Ai(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,or=(a=e.loadPath)!=null?a:or,e.persist===!1?rr=null:typeof e.persist=="string"&&(rr=e.persist);let t=rr?fe.get(rr):void 0,n=e.detect===!1?null:Gu(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,ii(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&or&&Xa(r,or.replace("{locale}",r)),Jr}var ig={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:ir,te:ng,n:Wu,c:Ku,d:Yu,rt:Xu,setLocale:Qr,getLocale:Ri,addMessages:Ai,loadMessages:Xa,messagesOf:rg,detectLocale:Gu},Jr=Object.defineProperties(og,Object.getOwnPropertyDescriptors(ig));N("$t",()=>ir);N("$locale",()=>z.locale);N("$i18n",()=>Jr);N("$n",()=>Wu);N("$c",()=>Ku);N("$d",()=>Yu);N("$rt",()=>Xu);var sg=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function ag(e,t){let n=e.trim();if(!n)return"";if(sg.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function lg(e,t){var o;let n=(o=Te(e,`${w.prefix}t-params`))!=null?o:Te(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=ag(n,o);if(!i)return;let s=ir(i,lg(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&Qr(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});de();ce();Ae();Ae();ce();var Ga=new WeakMap;function Xt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function $i(e,t){return zt(e,`${w.prefix}${t}`)||zt(e,`data-v-${t}`)}function ee(e,t){let n=Ga.get(e);return n&&t in n?n[t]:Xt(e,t)}function Di(e,t,n){var o;let r=(o=Ga.get(e))!=null?o:{};r[t]=n,Ga.set(e,r)}function K(e){y(e,({el:t,expression:n})=>{Di(t,e,n)},{priority:j.BIND})}function pe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gt(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 cg=`
|
|
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
|
+
`,Yt=null;function Je(e){if(typeof document=="undefined")return;Z("ui-live",cg),(!Yt||!Yt.isConnected)&&(Yt=document.createElement("div"),Yt.className="v-visually-hidden",Yt.setAttribute("role","status"),Yt.setAttribute("aria-live","polite"),document.body.appendChild(Yt));let t=Yt;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Pi(e,t,n){return Ko(e,t).filter(r=>zn(r,n)===e)}Ae();ce();var dg=`
|
|
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 Gr(){ge(),oe("dnd",_h)}var tr=new Map,nr=new Map;function Ua(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 ht(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Wh(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function ju(e){return ht(e).map((t,n)=>Wh(t,n))}function qu(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var $=null,Xr=0;function Kh(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 Vu(e,t){if(!($!=null&&$.ghost))return;let n=$.axis==="y"?$.lastX:e,r=$.axis==="x"?$.lastY:t;$.ghost.style.transform=`translate3d(${Math.round(n-$.grabX)}px, ${Math.round(r-$.grabY)}px, 0)`}function Yh(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 Xh(){if(!$)return;let e=56,t=16,n=$.lastX,r=$.lastY,o=document.elementFromPoint(n,r),i=Yh(o!=null?o:$.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 Gh(){let e=()=>{!$||$.keyboard||(Xh(),Xr=requestAnimationFrame(e))};Xr=requestAnimationFrame(e)}function Qh(){Xr&&cancelAnimationFrame(Xr),Xr=0}function Uu(e,t){let n=tr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function _a(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function _u(e,t){for(let n of nr.values())n.el.classList.toggle("v-drop-active",t&&_a(n,e));for(let n of tr.values())n.el.classList.toggle("v-drop-active",t&&Uu(n.el,e))}function Jh(e,t,n,r){let o=qu(e),i=null;for(let s of ht(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 Wa(e,t){Gr();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;$={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?ht(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"):($.ghost=Kh(e,n),Vu(t.x,t.y),Gh()),_u($,!0),document.addEventListener("keydown",Ku,!0),fe(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Zh(e,t){var a,l,c;if(!$)return;$.lastX=e,$.lastY=t,Vu(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;$.mode==="sort"&&r&&Uu(r,$)?($.overList&&$.overList!==r&&$.overList.classList.remove("v-drop-over"),$.overList=r,r.classList.add("v-drop-over"),Jh(r,$.item,e,t)):$.overList&&!r&&$.overList.classList.remove("v-drop-over");let i=o?nr.get(o):void 0,s=i?_a(i,$):!1;$.overDrop&&$.overDrop!==o&&($.overDrop.classList.remove("v-drop-over"),$.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),$.overDrop=o),(c=$.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function eg(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function Wu(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"),_u(e,!1),Qh(),document.removeEventListener("keydown",Ku,!0),$=null}function Ka(){var i;let e=$;if(!e)return;let t=e.item.parentElement,n=t?ht(t).indexOf(e.item):-1,r=e.overDrop,o=r?nr.get(r):void 0;if(e.mode==="sort"&&t&&tr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:ju(t)};fe(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&fe(e.startList,"voodoo:sorted",{...a,order:ju(e.startList)}),Qe(`Item moved to position ${n+1} of ${ht(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),vt(o.expression,o.scope,r,a,s),Qe("Item dropped in drop zone")}fe(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),Wu(e)}function Va(){let e=$;e&&(eg(e),fe(e.item,"voodoo:drag-cancel",{item:e.item}),Qe("Drag canceled"),Wu(e))}function Ku(e){!$||e.key!=="Escape"||(e.preventDefault(),Va())}function Yu(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=f=>{if(f.pointerId===o){if(!a){if(Math.hypot(f.clientX-i,f.clientY-s)<4||!r)return;a=!0,Wa(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}f.preventDefault(),Zh(f.clientX,f.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=f=>{f.pointerId===o&&(a&&Ka(),c())},u=()=>{a&&Va(),c()},p=f=>{if(f.button!==0||$)return;let m=f.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=f.pointerId,i=f.clientX,s=f.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",p),n(()=>{e.removeEventListener("pointerdown",p),a&&Va(),c()})}function tg(e){return e?Array.from(tr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function ng(e,t){if(!$)return!1;let n=e.parentElement;if(!n)return!1;let r=qu(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=ht(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]),Qe(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=tg($.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),Qe(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function rg(e){return Array.from(nr.values()).filter(t=>_a(t,e)).map(t=>t.el)}y("dnd-group",({el:e,expression:t})=>{Gr();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});y("sortable",({el:e,expression:t,cleanup:n})=>{Gr(),e.classList.add("v-sortable");let r=Z(e,"sortable-handle")||t.trim()||null,o={el:e,group:Ua(e,Z(e,"sortable-group")),handle:r};tr.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 ht(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of ht(e))i(l)});s==null||s.observe(e,{childList:!0}),Yu(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=ht(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=ht(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),$&&$.item===d){Ka(),Qe("Item dropped");return}if($)return;Wa(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Qe("Item grabbed. Use arrow keys to move and space to drop.");return}!$||$.item!==d||l.key.startsWith("Arrow")&&ng(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),tr.delete(e)})});W("sortable-group");W("sortable-handle");y("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;Gr(),e.classList.add("v-draggable");let o=Z(e,"draggable-handle")||null,i=(Z(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=Z(e,"draggable-data")||t.trim(),l=Ua(e,Z(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;Yu(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,p=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!$||($.overDrop=h,ve.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),Qe(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},f=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),$&&$.item===e){Ka(),d=[];return}if($)return;Wa(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=$?rg($):[],u=0,d.length?p():Qe("No targets available");return}if(!(!$||$.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,p();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,p())}};e.addEventListener("keydown",f),r(()=>{e.removeEventListener("keydown",f);for(let h of d)h.classList.remove("v-drop-over")})});W("draggable-handle");W("draggable-axis");W("draggable-data");W("draggable-group");y("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{Gr(),e.classList.add("v-droppable");let o={el:e,group:Ua(e,Z(e,"droppable-group")),accept:Z(e,"droppable-accept"),expression:t,scope:n};nr.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{nr.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});W("droppable-accept");W("droppable-group");var og=`
|
|
165
|
+
`;function eo(){ge(),Z("dnd",dg)}var sr=new Map,ar=new Map;function Ja(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 bt(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function ug(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Qu(e){return bt(e).map((t,n)=>ug(t,n))}function Ju(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var $=null,Zr=0;function fg(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 Zu(e,t){if(!($!=null&&$.ghost))return;let n=$.axis==="y"?$.lastX:e,r=$.axis==="x"?$.lastY:t;$.ghost.style.transform=`translate3d(${Math.round(n-$.grabX)}px, ${Math.round(r-$.grabY)}px, 0)`}function pg(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 mg(){if(!$)return;let e=56,t=16,n=$.lastX,r=$.lastY,o=document.elementFromPoint(n,r),i=pg(o!=null?o:$.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 vg(){let e=()=>{!$||$.keyboard||(mg(),Zr=requestAnimationFrame(e))};Zr=requestAnimationFrame(e)}function hg(){Zr&&cancelAnimationFrame(Zr),Zr=0}function ef(e,t){let n=sr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Za(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function tf(e,t){for(let n of ar.values())n.el.classList.toggle("v-drop-active",t&&Za(n,e));for(let n of sr.values())n.el.classList.toggle("v-drop-active",t&&ef(n.el,e))}function gg(e,t,n,r){let o=Ju(e),i=null;for(let s of bt(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 el(e,t){eo();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;$={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?bt(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"):($.ghost=fg(e,n),Zu(t.x,t.y),vg()),tf($,!0),document.addEventListener("keydown",rf,!0),pe(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function bg(e,t){var a,l,c;if(!$)return;$.lastX=e,$.lastY=t,Zu(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;$.mode==="sort"&&r&&ef(r,$)?($.overList&&$.overList!==r&&$.overList.classList.remove("v-drop-over"),$.overList=r,r.classList.add("v-drop-over"),gg(r,$.item,e,t)):$.overList&&!r&&$.overList.classList.remove("v-drop-over");let i=o?ar.get(o):void 0,s=i?Za(i,$):!1;$.overDrop&&$.overDrop!==o&&($.overDrop.classList.remove("v-drop-over"),$.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),$.overDrop=o),(c=$.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function yg(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function nf(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"),tf(e,!1),hg(),document.removeEventListener("keydown",rf,!0),$=null}function tl(){var i;let e=$;if(!e)return;let t=e.item.parentElement,n=t?bt(t).indexOf(e.item):-1,r=e.overDrop,o=r?ar.get(r):void 0;if(e.mode==="sort"&&t&&sr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Qu(t)};pe(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&pe(e.startList,"voodoo:sorted",{...a,order:Qu(e.startList)}),Je(`Item moved to position ${n+1} of ${bt(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),gt(o.expression,o.scope,r,a,s),Je("Item dropped in drop zone")}pe(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),nf(e)}function Qa(){let e=$;e&&(yg(e),pe(e.item,"voodoo:drag-cancel",{item:e.item}),Je("Drag canceled"),nf(e))}function rf(e){!$||e.key!=="Escape"||(e.preventDefault(),Qa())}function of(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,el(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),bg(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=p=>{p.pointerId===o&&(a&&tl(),c())},u=()=>{a&&Qa(),c()},f=p=>{if(p.button!==0||$)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&Qa(),c()})}function xg(e){return e?Array.from(sr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function wg(e,t){if(!$)return!1;let n=e.parentElement;if(!n)return!1;let r=Ju(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=bt(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]),Je(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=xg($.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),Je(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function kg(e){return Array.from(ar.values()).filter(t=>Za(t,e)).map(t=>t.el)}y("dnd-group",({el:e,expression:t})=>{eo();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});y("sortable",({el:e,expression:t,cleanup:n})=>{eo(),e.classList.add("v-sortable");let r=ee(e,"sortable-handle")||t.trim()||null,o={el:e,group:Ja(e,ee(e,"sortable-group")),handle:r};sr.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 bt(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of bt(e))i(l)});s==null||s.observe(e,{childList:!0}),of(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=bt(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=bt(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),$&&$.item===d){tl(),Je("Item dropped");return}if($)return;el(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Je("Item grabbed. Use arrow keys to move and space to drop.");return}!$||$.item!==d||l.key.startsWith("Arrow")&&wg(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),sr.delete(e)})});K("sortable-group");K("sortable-handle");y("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;eo(),e.classList.add("v-draggable");let o=ee(e,"draggable-handle")||null,i=(ee(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=ee(e,"draggable-data")||t.trim(),l=Ja(e,ee(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;of(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,f=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!$||($.overDrop=h,ve.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),Je(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},p=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),$&&$.item===e){tl(),d=[];return}if($)return;el(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=$?kg($):[],u=0,d.length?f():Je("No targets available");return}if(!(!$||$.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,f();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let h of d)h.classList.remove("v-drop-over")})});K("draggable-handle");K("draggable-axis");K("draggable-data");K("draggable-group");y("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{eo(),e.classList.add("v-droppable");let o={el:e,group:Ja(e,ee(e,"droppable-group")),accept:ee(e,"droppable-accept"),expression:t,scope:n};ar.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{ar.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});K("droppable-accept");K("droppable-group");var Eg=`
|
|
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 xe(){ge(),oe("ui",og)}function rr(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 Rt(e,t){return e.id||(e.id=le(`${t}-`)),e.id}var tf='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 Qr(e){return Array.from(e.querySelectorAll(tf)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Ai(e,t){let n=Qr(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 Be(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 Ya=0,nf="";function rf(){if(Ya++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;nf=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function of(){Ya!==0&&(--Ya>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=nf))}function sf(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function ig(e,t=!0){if(e.removeAttribute("hidden"),t&&!ve.reducedMotion){Wn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function sg(e,t=!0){if(t&&!ve.reducedMotion){Kn(e);return}e.style.display="none"}var ag={top:"bottom",bottom:"top",left:"right",right:"left"};function af(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function lf(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},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=ag[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let p=0,f=0;return u==="top"||u==="bottom"?(p=u==="top"?i.top-s.height-o:i.bottom+o,f=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&f+s.width>a-o&&(f=i.right-s.width)):(f=u==="left"?i.left-s.width-o:i.right+o,p=r==="start"?i.top:i.top+i.height/2-s.height/2),f=Math.min(Math.max(o,f),Math.max(o,a-s.width-o)),p=Math.min(Math.max(o,p),Math.max(o,l-s.height-o)),t.style.left=`${Math.round(f)}px`,t.style.top=`${Math.round(p)}px`,t.setAttribute("data-placement",u),u}var Si=[],Xu=!1,lg={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:"?"},cg=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function Qa(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"?cg?n.meta=!0:n.ctrl=!0:n.key=(r=lg[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function dg(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 ug(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 cf(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 fg(e){if(e.defaultPrevented)return;let t=ug(e.target);for(let n of[...Si])for(let r of n.combos)if(dg(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function Jr(e,t,n={}){let r=e.split(",").map(i=>Qa(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Si.push(o),Xu||(Xu=!0,document.addEventListener("keydown",fg)),()=>{let i=Si.indexOf(o);i>-1&&Si.splice(i,1)}}y("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{xe();let o=rr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Rt(o,"v-toggle")),Be(e,r);let a=i?o.classList.contains(i):!sf(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(sg(o,s),a=!1):(ig(o,s),a=!0),l(),fe(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var Xa=class{constructor(t){P(this,"panel");P(this,"triggers",new Set);P(this,"listeners",new Set);P(this,"open");P(this,"duration");this.panel=t,this.duration=Q(Z(t,"collapse-duration"),240);let n=(Z(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!sf(t),t.classList.add("v-collapse-panel"),Rt(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"),ve.reducedMotion?this.panel.style.removeProperty("display"):cn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ve.reducedMotion?this.panel.style.display="none":dn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Gu=new WeakMap;function Ja(e){let t=Gu.get(e);return t||Gu.set(e,t=new Xa(e)),t}y("collapse",({el:e})=>{xe(),Ja(e)});y("collapse-toggle",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=Ja(r);o.triggers.add(e),o.sync(),Be(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});W("collapse-duration");var Ci=class{constructor(t,n,r){P(this,"trigger");P(this,"panel");P(this,"kind");P(this,"placement");P(this,"open",!1);P(this,"lastFocus",null);P(this,"homeParent");P(this,"homeNext");P(this,"reposition",()=>{this.open&&lf(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});P(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});P(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Ai(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=af(Z(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Rt(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?df(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=Qr(this.panel)[0])==null||t.focus()),fe(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)};ve.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),fe(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 df(e){xe(),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"))}}y("dropdown-menu",({el:e})=>{df(e)});y("dropdown",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Ci(e,r,"menu");Be(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 d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.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()})});y("popover",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Ci(e,r,"dialog");Be(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});W("dropdown-position");W("popover-position");y("tooltip",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim();if(!r)return;let o=af(Z(e,"tooltip-position"),"top"),i=Q(Z(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(tf);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=le("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&lf(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},p=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),ve.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},f=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&p()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",f),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),e.addEventListener("mouseleave",p),e.addEventListener("focusout",p),e.addEventListener("keydown",m),n(()=>{p(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",f),e.removeEventListener("focusin",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",p),e.removeEventListener("focusout",p),e.removeEventListener("keydown",m)})});W("tooltip-position");W("tooltip-delay");y("tabs",({el:e,expression:t,cleanup:n})=>{xe();let r=Mi(e,"tab","tabs"),o=Mi(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>Kt(v,"tab")||String(g),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=Ti(e,"tabs-url")?Kt(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),x=o.find(T=>Kt(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),Rt(v,"v-tab"),x&&(Rt(x,"v-panel"),x.setAttribute("role","tabpanel"),x.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",x.id))});let c="",d=(v,g=!1)=>{if(r.some((b,x)=>i(b,x)===v)){c=v,r.forEach((b,x)=>{let T=i(b,x)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=Kt(b,"tab-panel")!==v;l&&Vt.set(l,v),fe(e,"voodoo:tab",{id:v})}},u=v=>{let g=Pn(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},p=v=>{let g=Pn(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),x=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",k=-1;v.key===x?k=(b+1)%r.length:v.key===T?k=(b-1+r.length)%r.length:v.key==="Home"?k=0:v.key==="End"&&(k=r.length-1),k!==-1&&(v.preventDefault(),d(i(r[k],k),!0))},f=()=>{if(!l)return;let v=Vt.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",p),window.addEventListener("popstate",f),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",p),window.removeEventListener("popstate",f)});let h=(l?Vt.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});W("tab");W("tab-panel");W("tabs-url");y("accordion",({el:e,cleanup:t})=>{xe();let n=Mi(e,"accordion-item","accordion");if(!n.length)return;let r=Ti(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(Kt(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let p=Ja(d);p.triggers.add(c),p.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),Rt(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(p.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",Rt(c,"v-accordion-header"))),o.push(c),i.push(p)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d];if(r&&!u.open)for(let f of i)f!==u&&f.hide();u.toggle()},a=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});W("accordion-item");W("accordion-single");var Ga=class{constructor(t){P(this,"origem",null);P(this,"panel");P(this,"triggers",new Set);P(this,"open",!1);P(this,"backdrop",null);P(this,"lastFocus",null);P(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Ai(this.panel,t)}});P(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=(Z(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"),Rt(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",Rt(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(),rf();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ve.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Qr(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),fe(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))};ve.reducedMotion?t():setTimeout(t,300),of(),(r=this.lastFocus)==null||r.focus(),this.sync(),fe(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Qu=new WeakMap;function Za(e){let t=Qu.get(e);return t||Qu.set(e,t=new Ga(e)),t}y("drawer-content",({el:e})=>{xe(),Za(e)});function uf(e,t,n){xe();let r=rr(e,t);if(!r)return;let o=Za(r);o.triggers.add(e),o.sync(),Be(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}y("drawer",({el:e,expression:t,cleanup:n})=>{uf(e,t,n)});y("offcanvas",({el:e,expression:t,cleanup:n})=>{uf(e,t,n)});y("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?rr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Pn(e,"drawer-content");if(!r)return;Be(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),Za(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});W("drawer-side");y("theme-toggle",({el:e,cleanup:t})=>{Be(e,t);let n=()=>{let i=ft.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=ft.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),ft.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});y("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()){Se(i);return}r(()=>{o()&&Se(i)})},{priority:j.INIT});y("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Ai(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Se(()=>{var l;return((l=Qr(e)[0])!=null?l:e).focus()}),i=a}):Se(()=>{var a;return((a=Qr(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});y("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)||vt(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});y("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||vt(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});y("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=Jr(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=Qa(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",cf(s)),r(i)});y("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(Z(e,"scroll-offset")||"0")||0,a=ve.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(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=Z(e,"scrollspy-class")||"v-active",o=parseFloat(Z(e,"scroll-offset")||"0")||0,i=n.map(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}fe(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Nr(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Se(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});W("scroll-offset");W("scrollspy-class");y("sticky",({el:e,expression:t,cleanup:n})=>{xe();let r=parseFloat(t.trim()||Z(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())});W("sticky-offset");y("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"){vt(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(vt(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});y("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=Z(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let d=vt(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,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(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});W("infinite-distance");function ff(e,t,n,r){if(xe(),!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=Z(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())}y("lazy-src",({el:e,expression:t,cleanup:n})=>{ff(e,t.trim(),n,!1)});y("lazy-bg",({el:e,expression:t,cleanup:n})=>{ff(e,t.trim(),n,!0)});W("lazy-error");y("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{xe();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 el(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 tl(e,t){xe();let n=Z(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Qe(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function pf(e,t){var r;let n=Z(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()}y("copy",({el:e,expression:t,cleanup:n})=>{xe(),Be(e,n);let r=o=>{o.preventDefault();let i=pf(e,t);i&&el(i).then(s=>{tl(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("copy-from",({el:e,expression:t,cleanup:n})=>{if(xe(),Li(e,"copy-from",t),Ti(e,"copy"))return;Be(e,n);let r=o=>{o.preventDefault();let i=pf(e,"");i&&el(i).then(s=>{tl(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});W("copy-label");function pg(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>${I(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)}y("print",({el:e,expression:t,cleanup:n})=>{Be(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&pg(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("share",({el:e,expression:t,cleanup:n})=>{xe(),Be(e,n);let r=o=>{o.preventDefault();let i=t.trim()||Z(e,"share-url")||location.href,s={title:Z(e,"share-title")||document.title,url:i},a=Z(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>fe(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}el(i).then(c=>{tl(e,c),fe(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});W("share-title");W("share-url");W("share-text");y("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;Be(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)})});y("download",({el:e,expression:t,cleanup:n})=>{Be(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=Z(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),fe(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});W("download-name");y("resizable",({el:e,expression:t,cleanup:n})=>{xe();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,d)=>{let u=0,p=0,f=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,f+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-p)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var x;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,p=g.clientY,f=b.width,m=b.height,(x=c.setPointerCapture)==null||x.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,x=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${x.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,x.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${x.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,x.height-b)}px`:T=!1,T&&(g.preventDefault(),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function Ju(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function mg(){let e=[];for(let t of Vo(document,"command-item")){let n=(Kt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:Z(t,"command-hint")||"",el:t}))}return e}function Zu(){if(xe(),document.querySelector(".v-command"))return;let e=mg(),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=le("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),rf();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",f,!0),n.remove(),of(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let x=document.createElement("span");if(x.textContent=v.label,b.appendChild(x),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},p=()=>{let m=Ju(o.value.trim());s=m?e.filter(h=>Ju(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},f=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&Ai(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",p),document.addEventListener("keydown",f,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}y("command",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim()||Z(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Zu()},i=Jr(r,()=>Zu(),{allowInInput:!0}),s=Qa(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",cf(s)),Be(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});y("command-item",({el:e,expression:t})=>{Li(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});W("command-key");W("command-hint");var ef=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];y("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=Q(Z(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,vt(t,n,e,void 0,{idle:!0,after:o}),fe(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of ef)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of ef)window.removeEventListener(d,c)})});W("idle-after");function mf(e,t,n,r,o,i){let s=a=>{vt(t,n,e,a,{online:navigator.onLine}),fe(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Se(()=>s())}y("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{mf(e,t,n,o,"online",!!r.immediate)});y("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{mf(e,t,n,o,"offline",r["no-immediate"]!==!0)});me();ce();Ne();me();ce();Ne();var at={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 hf(e,t){var i,s,a,l,c,d;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:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,p)=>p in o?o[p]:u)}var Di=new Map;function J(e,t,n){let r=e.toLowerCase();Di.set(r,{name:r,fn:t,message:n}),n&&!at[r]&&(at[r]=n),y(`validate-${r}`,({el:o,cleanup:i})=>{Bi(o,i)})}function $t(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function vg(e,t){return $t(e,t)!==null}var hg=new Set(["INPUT","SELECT","TEXTAREA"]),gg=new Set(["submit","button","reset","image"]);function Je(e){var t;return!!e&&typeof e=="object"&&hg.has((t=e.tagName)!=null?t:"")}function gt(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function to(e){var n;let t=gt(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 ol(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function bg(e){var o,i;let t=$t(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Ri(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 Ri(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Pi(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 Je(c)?c:null}let o=r.querySelector(`[name="${Ri(n)}"]`);if(Je(o))return o;let i=document.getElementById(n);return Je(i)?i:null}var yg=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,xg=/^-?\d+$/,wg=/^-?\d+(?:[.,]\d+)?$/,Eg=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,kg=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function no(e){return e.replace(/\D/g,"")}function Ni(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Tg(e){let t=no(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 Lg(e){let t=no(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 Mg(e){let t=no(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 Sg(e){let t=no(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 mn(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 Hi(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=mn(e);if(r)return r;let o=Pi(t,e);return o?mn(to(o)):null}J("required",(e,t,n)=>{let r=gt(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});J("email",e=>yg.test(e.trim()));J("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}});J("number",e=>e.trim()!==""&&Number.isFinite(Ni(e)));J("integer",e=>xg.test(e.trim()));J("decimal",(e,t)=>{var i;let n=e.trim();if(!wg.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});J("alpha",e=>Eg.test(e.trim().replace(/\s+/g,"")));J("alphanumeric",e=>kg.test(e.trim().replace(/\s+/g,"")));J("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));J("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));J("min",(e,t,n)=>{let r=Hi(t,n);if(r&>(n).startsWith("date")){let o=mn(e);return!o||o.getTime()>=r.getTime()}return Ni(e)>=Number(t!=null?t:0)});J("max",(e,t,n)=>{let r=Hi(t,n);if(r&>(n).startsWith("date")){let o=mn(e);return!o||o.getTime()<=r.getTime()}return Ni(e)<=Number(t!=null?t:1/0)});J("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Ni(e);return Number.isFinite(o)&&o>=n&&o<=r});J("match",(e,t,n)=>{if(!t)return!0;let r=Pi(n,t);return r?to(r)===e:!0});J("same",(e,t,n)=>{if(!t)return!0;let r=Pi(n,t);return!r||to(r)===e});J("different",(e,t,n)=>{if(!t)return!0;let r=Pi(n,t);return!r||to(r)!==e});J("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=$t(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return X(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});J("date",e=>mn(e)!==null);J("after",(e,t,n)=>{let r=Hi(t,n),o=mn(e);return!r||!o?!0:o.getTime()>r.getTime()});J("before",(e,t,n)=>{let r=Hi(t,n),o=mn(e);return!r||!o?!0:o.getTime()<r.getTime()});J("accepted",(e,t,n)=>{let r=gt(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});J("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));J("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));J("phone",e=>Sg(e));J("cpf",e=>Tg(e));J("cnpj",e=>Lg(e));J("cep",e=>no(e).length===8);J("creditcard",e=>Mg(e));J("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:hf(at.strongpassword,{param:String(n)})});J("unique",async(e,t,n)=>{let r=t||$t(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await he.get(r,{params:{value:e,field:ol(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:at.unique:o?at.unique:!0}catch(o){if(o instanceof ke){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return at.unique}return!0}});var Cg={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Ag=new Set(["required","accepted"]);function Rg(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.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=Cg[t])!=null?o:t;return Di.has(r)?r:null}function il(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!Di.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of ud(e)){let p=Rg(d);if(p){if(u.trim()==="false"){n.add(p);continue}r(p,u)}}let o=gt(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((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var $g=`
|
|
270
|
+
`;function xe(){ge(),Z("ui",Eg)}function lr(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 Dt(e,t){return e.id||(e.id=le(`${t}-`)),e.id}var ff='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 to(e){return Array.from(e.querySelectorAll(ff)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Oi(e,t){let n=to(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 qe(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 nl=0,pf="";function mf(){if(nl++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;pf=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function vf(){nl!==0&&(--nl>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=pf))}function hf(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Tg(e,t=!0){if(e.removeAttribute("hidden"),t&&!ve.reducedMotion){Qn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function Lg(e,t=!0){if(t&&!ve.reducedMotion){Jn(e);return}e.style.display="none"}var Mg={top:"bottom",bottom:"top",left:"right",right:"left"};function gf(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function bf(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},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=Mg[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let f=0,p=0;return u==="top"||u==="bottom"?(f=u==="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=u==="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",u),u}var Hi=[],sf=!1,Sg={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:"?"},Cg=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function il(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"?Cg?n.meta=!0:n.ctrl=!0:n.key=(r=Sg[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function Ag(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 Rg(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 yf(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 $g(e){if(e.defaultPrevented)return;let t=Rg(e.target);for(let n of[...Hi])for(let r of n.combos)if(Ag(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function no(e,t,n={}){let r=e.split(",").map(i=>il(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Hi.push(o),sf||(sf=!0,document.addEventListener("keydown",$g)),()=>{let i=Hi.indexOf(o);i>-1&&Hi.splice(i,1)}}y("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{xe();let o=lr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Dt(o,"v-toggle")),qe(e,r);let a=i?o.classList.contains(i):!hf(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(Lg(o,s),a=!1):(Tg(o,s),a=!0),l(),pe(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var rl=class{constructor(t){H(this,"panel");H(this,"triggers",new Set);H(this,"listeners",new Set);H(this,"open");H(this,"duration");this.panel=t,this.duration=Q(ee(t,"collapse-duration"),240);let n=(ee(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!hf(t),t.classList.add("v-collapse-panel"),Dt(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"),ve.reducedMotion?this.panel.style.removeProperty("display"):pn(this.panel,this.duration),this.sync(),pe(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ve.reducedMotion?this.panel.style.display="none":mn(this.panel,this.duration),this.sync(),pe(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},af=new WeakMap;function sl(e){let t=af.get(e);return t||af.set(e,t=new rl(e)),t}y("collapse",({el:e})=>{xe(),sl(e)});y("collapse-toggle",({el:e,expression:t,cleanup:n})=>{xe();let r=lr(e,t);if(!r)return;let o=sl(r);o.triggers.add(e),o.sync(),qe(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});K("collapse-duration");var Ni=class{constructor(t,n,r){H(this,"trigger");H(this,"panel");H(this,"kind");H(this,"placement");H(this,"open",!1);H(this,"lastFocus",null);H(this,"homeParent");H(this,"homeNext");H(this,"reposition",()=>{this.open&&bf(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});H(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});H(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Oi(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=gf(ee(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Dt(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?xf(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=to(this.panel)[0])==null||t.focus()),pe(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)};ve.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),pe(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 xf(e){xe(),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"))}}y("dropdown-menu",({el:e})=>{xf(e)});y("dropdown",({el:e,expression:t,cleanup:n})=>{xe();let r=lr(e,t);if(!r)return;let o=new Ni(e,r,"menu");qe(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 d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.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()})});y("popover",({el:e,expression:t,cleanup:n})=>{xe();let r=lr(e,t);if(!r)return;let o=new Ni(e,r,"dialog");qe(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});K("dropdown-position");K("popover-position");y("tooltip",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim();if(!r)return;let o=gf(ee(e,"tooltip-position"),"top"),i=Q(ee(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(ff);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=le("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&bf(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),ve.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&f()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),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",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});K("tooltip-position");K("tooltip-delay");y("tabs",({el:e,expression:t,cleanup:n})=>{xe();let r=Pi(e,"tab","tabs"),o=Pi(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>Xt(v,"tab")||String(g),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=$i(e,"tabs-url")?Xt(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),x=o.find(T=>Xt(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),Dt(v,"v-tab"),x&&(Dt(x,"v-panel"),x.setAttribute("role","tabpanel"),x.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",x.id))});let c="",d=(v,g=!1)=>{if(r.some((b,x)=>i(b,x)===v)){c=v,r.forEach((b,x)=>{let T=i(b,x)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=Xt(b,"tab-panel")!==v;l&&_t.set(l,v),pe(e,"voodoo:tab",{id:v})}},u=v=>{let g=zn(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},f=v=>{let g=zn(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),x=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",E=-1;v.key===x?E=(b+1)%r.length:v.key===T?E=(b-1+r.length)%r.length:v.key==="Home"?E=0:v.key==="End"&&(E=r.length-1),E!==-1&&(v.preventDefault(),d(i(r[E],E),!0))},p=()=>{if(!l)return;let v=_t.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let h=(l?_t.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});K("tab");K("tab-panel");K("tabs-url");y("accordion",({el:e,cleanup:t})=>{xe();let n=Pi(e,"accordion-item","accordion");if(!n.length)return;let r=$i(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(Xt(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let f=sl(d);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"),Dt(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",Dt(c,"v-accordion-header"))),o.push(c),i.push(f)}let s=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d];if(r&&!u.open)for(let p of i)p!==u&&p.hide();u.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});K("accordion-item");K("accordion-single");var ol=class{constructor(t){H(this,"origem",null);H(this,"panel");H(this,"triggers",new Set);H(this,"open",!1);H(this,"backdrop",null);H(this,"lastFocus",null);H(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Oi(this.panel,t)}});H(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=(ee(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"),Dt(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",Dt(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(),mf();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ve.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=to(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),pe(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))};ve.reducedMotion?t():setTimeout(t,300),vf(),(r=this.lastFocus)==null||r.focus(),this.sync(),pe(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},lf=new WeakMap;function al(e){let t=lf.get(e);return t||lf.set(e,t=new ol(e)),t}y("drawer-content",({el:e})=>{xe(),al(e)});function wf(e,t,n){xe();let r=lr(e,t);if(!r)return;let o=al(r);o.triggers.add(e),o.sync(),qe(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}y("drawer",({el:e,expression:t,cleanup:n})=>{wf(e,t,n)});y("offcanvas",({el:e,expression:t,cleanup:n})=>{wf(e,t,n)});y("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?lr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:zn(e,"drawer-content");if(!r)return;qe(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),al(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});K("drawer-side");y("theme-toggle",({el:e,cleanup:t})=>{qe(e,t);let n=()=>{let i=mt.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=mt.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),mt.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});y("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()){Se(i);return}r(()=>{o()&&Se(i)})},{priority:j.INIT});y("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Oi(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Se(()=>{var l;return((l=to(e)[0])!=null?l:e).focus()}),i=a}):Se(()=>{var a;return((a=to(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});y("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)||gt(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});y("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||gt(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});y("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=no(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=il(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",yf(s)),r(i)});y("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(ee(e,"scroll-offset")||"0")||0,a=ve.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(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=ee(e,"scrollspy-class")||"v-active",o=parseFloat(ee(e,"scroll-offset")||"0")||0,i=n.map(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}pe(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Ir(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Se(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});K("scroll-offset");K("scrollspy-class");y("sticky",({el:e,expression:t,cleanup:n})=>{xe();let r=parseFloat(t.trim()||ee(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())});K("sticky-offset");y("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"){gt(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(gt(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});y("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=ee(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let d=gt(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,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(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});K("infinite-distance");function kf(e,t,n,r){if(xe(),!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=ee(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())}y("lazy-src",({el:e,expression:t,cleanup:n})=>{kf(e,t.trim(),n,!1)});y("lazy-bg",({el:e,expression:t,cleanup:n})=>{kf(e,t.trim(),n,!0)});K("lazy-error");y("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{xe();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 ll(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 cl(e,t){xe();let n=ee(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Je(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function Ef(e,t){var r;let n=ee(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()}y("copy",({el:e,expression:t,cleanup:n})=>{xe(),qe(e,n);let r=o=>{o.preventDefault();let i=Ef(e,t);i&&ll(i).then(s=>{cl(e,s),pe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("copy-from",({el:e,expression:t,cleanup:n})=>{if(xe(),Di(e,"copy-from",t),$i(e,"copy"))return;qe(e,n);let r=o=>{o.preventDefault();let i=Ef(e,"");i&&ll(i).then(s=>{cl(e,s),pe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});K("copy-label");function Dg(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>${I(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)}y("print",({el:e,expression:t,cleanup:n})=>{qe(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Dg(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("share",({el:e,expression:t,cleanup:n})=>{xe(),qe(e,n);let r=o=>{o.preventDefault();let i=t.trim()||ee(e,"share-url")||location.href,s={title:ee(e,"share-title")||document.title,url:i},a=ee(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>pe(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}ll(i).then(c=>{cl(e,c),pe(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});K("share-title");K("share-url");K("share-text");y("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;qe(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)})});y("download",({el:e,expression:t,cleanup:n})=>{qe(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=ee(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),pe(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});K("download-name");y("resizable",({el:e,expression:t,cleanup:n})=>{xe();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,d)=>{let u=0,f=0,p=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,p+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-f)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),pe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var x;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,f=g.clientY,p=b.width,m=b.height,(x=c.setPointerCapture)==null||x.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,x=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${x.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,x.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${x.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,x.height-b)}px`:T=!1,T&&(g.preventDefault(),pe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function cf(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Pg(){let e=[];for(let t of Ko(document,"command-item")){let n=(Xt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:ee(t,"command-hint")||"",el:t}))}return e}function df(){if(xe(),document.querySelector(".v-command"))return;let e=Pg(),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=le("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),mf();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),vf(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let x=document.createElement("span");if(x.textContent=v.label,b.appendChild(x),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},f=()=>{let m=cf(o.value.trim());s=m?e.filter(h=>cf(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&Oi(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}y("command",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim()||ee(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),df()},i=no(r,()=>df(),{allowInInput:!0}),s=il(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",yf(s)),qe(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});y("command-item",({el:e,expression:t})=>{Di(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});K("command-key");K("command-hint");var uf=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];y("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=Q(ee(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,gt(t,n,e,void 0,{idle:!0,after:o}),pe(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of uf)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of uf)window.removeEventListener(d,c)})});K("idle-after");function Tf(e,t,n,r,o,i){let s=a=>{gt(t,n,e,a,{online:navigator.onLine}),pe(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Se(()=>s())}y("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Tf(e,t,n,o,"online",!!r.immediate)});y("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Tf(e,t,n,o,"offline",r["no-immediate"]!==!0)});de();ce();Ae();de();ce();Ae();var lt={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 Mf(e,t){var i,s,a,l,c,d;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:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,f)=>f in o?o[f]:u)}var zi=new Map;function J(e,t,n){let r=e.toLowerCase();zi.set(r,{name:r,fn:t,message:n}),n&&!lt[r]&&(lt[r]=n),y(`validate-${r}`,({el:o,cleanup:i})=>{Ki(o,i)})}function Pt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function Hg(e,t){return Pt(e,t)!==null}var Ng=new Set(["INPUT","SELECT","TEXTAREA"]),Og=new Set(["submit","button","reset","image"]);function Ze(e){var t;return!!e&&typeof e=="object"&&Ng.has((t=e.tagName)!=null?t:"")}function yt(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function io(e){var n;let t=yt(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 fl(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function Fg(e){var o,i;let t=Pt(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Fi(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 Fi(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Bi(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 Ze(c)?c:null}let o=r.querySelector(`[name="${Fi(n)}"]`);if(Ze(o))return o;let i=document.getElementById(n);return Ze(i)?i:null}var Ig=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,zg=/^-?\d+$/,Bg=/^-?\d+(?:[.,]\d+)?$/,jg=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,qg=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function so(e){return e.replace(/\D/g,"")}function ji(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Vg(e){let t=so(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 Ug(e){let t=so(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 _g(e){let t=so(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 Wg(e){let t=so(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 bn(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 qi(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=bn(e);if(r)return r;let o=Bi(t,e);return o?bn(io(o)):null}J("required",(e,t,n)=>{let r=yt(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});J("email",e=>Ig.test(e.trim()));J("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}});J("number",e=>e.trim()!==""&&Number.isFinite(ji(e)));J("integer",e=>zg.test(e.trim()));J("decimal",(e,t)=>{var i;let n=e.trim();if(!Bg.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});J("alpha",e=>jg.test(e.trim().replace(/\s+/g,"")));J("alphanumeric",e=>qg.test(e.trim().replace(/\s+/g,"")));J("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));J("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));J("min",(e,t,n)=>{let r=qi(t,n);if(r&&yt(n).startsWith("date")){let o=bn(e);return!o||o.getTime()>=r.getTime()}return ji(e)>=Number(t!=null?t:0)});J("max",(e,t,n)=>{let r=qi(t,n);if(r&&yt(n).startsWith("date")){let o=bn(e);return!o||o.getTime()<=r.getTime()}return ji(e)<=Number(t!=null?t:1/0)});J("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=ji(e);return Number.isFinite(o)&&o>=n&&o<=r});J("match",(e,t,n)=>{if(!t)return!0;let r=Bi(n,t);return r?io(r)===e:!0});J("same",(e,t,n)=>{if(!t)return!0;let r=Bi(n,t);return!r||io(r)===e});J("different",(e,t,n)=>{if(!t)return!0;let r=Bi(n,t);return!r||io(r)!==e});J("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=Pt(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return X(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});J("date",e=>bn(e)!==null);J("after",(e,t,n)=>{let r=qi(t,n),o=bn(e);return!r||!o?!0:o.getTime()>r.getTime()});J("before",(e,t,n)=>{let r=qi(t,n),o=bn(e);return!r||!o?!0:o.getTime()<r.getTime()});J("accepted",(e,t,n)=>{let r=yt(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});J("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));J("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));J("phone",e=>Wg(e));J("cpf",e=>Vg(e));J("cnpj",e=>Ug(e));J("cep",e=>so(e).length===8);J("creditcard",e=>_g(e));J("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:Mf(lt.strongpassword,{param:String(n)})});J("unique",async(e,t,n)=>{let r=t||Pt(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await he.get(r,{params:{value:e,field:fl(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:lt.unique:o?lt.unique:!0}catch(o){if(o instanceof Ee){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return lt.unique}return!0}});var Kg={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Yg=new Set(["required","accepted"]);function Xg(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.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=Kg[t])!=null?o:t;return zi.has(r)?r:null}function pl(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!zi.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of gd(e)){let f=Xg(d);if(f){if(u.trim()==="false"){n.add(f);continue}r(f,u)}}let o=yt(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((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var Gg=`
|
|
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 Oi(){ge(),oe("forms-validate",$g)}function gf(e){var r,o,i;let t=$t(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};X(`Target for ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function bf(e){let t=gf(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 Fi(e,t){Oi(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=bf(e);if(!n){let o=gf(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:le("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 nl(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=bf(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 ro(e){for(let n of zi(e,!1))nl(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 sl(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 Dg(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Ri(i)}"]`);if(Je(s))return s}let o=e.querySelector(`#${Ri(t)}`);return Je(o)?o:null}function Ii(e,t){let n=sl(t),r=[];for(let[o,i]of Object.entries(n)){let s=Dg(e,o);s?Fi(s,i):r.push(i)}return r.length&&Pg(e,r),n}function Pg(e,t){Oi();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 al(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 zi(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)Je(o)&&(o.disabled||gg.has(gt(o))||t&&il(o).length===0||r.push(o));return r}async function ll(e,t={}){var s,a;if(!Je(e))return{valid:!0};let n=il(e);if(!n.length)return t.silent||nl(e),{valid:!0};let r=to(e),o=$t(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!Ag.has(l.name))continue;let c=Di.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(f){X(`Rule "${l.name}" failed to execute`,f);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=at[l.name])!=null?s:c.message)!=null?a:at.invalid,p=hf(u,{field:bg(e),param:l.param,value:r});return t.silent||(Fi(e,p),vf(e,{valid:!1,message:p,rule:l.name})),{valid:!1,message:p,rule:l.name}}return t.silent||(nl(e,!i),vf(e,{valid:!0})),{valid:!0}}function cl(e){return Je(e)?ll(e):dl(e)}async function dl(e){let t=zi(e),n=await Promise.all(t.map(o=>ll(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[ol(o)]=(a=s.message)!=null?a:at.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function vf(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:ol(e),...t}}))}function Ng(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 Hg(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 d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;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 Og(e,t){var a,l,c,d;let n=zi(e,!1),r=[],o=new Map;for(let u of n)gt(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let p=gt(u);if(p==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(p==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(p==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let f=(d=u.value)!=null?d:"";if(i&&typeof f=="string"&&(f=f.trim()),s&&(p==="number"||p==="range")&&f!==""){let m=Number(f);Number.isFinite(m)&&(f=m)}r.push({name:u.name,value:f})}return r}function Fg(e){for(let t of zi(e,!1)){if(gt(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function yf(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)yf(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function or(e,t={}){let n=Og(e,t);if(t.formData||Fg(e)){let o=new FormData;for(let i of n)yf(o,i.name,i.value);return o}let r={};for(let o of n)Hg(r,Ng(o.name),o.value);return r}var Zr=new WeakSet,eo=new WeakSet;async function $i(e){(await ll(e)).valid?eo.delete(e):eo.add(e)}function Bi(e,t){if(!Je(e)){X(`${w.prefix}validate only works on input, select, or textarea.`);return}if(Zr.has(e))return;Zr.add(e),Oi();let n=()=>{$i(e)},r=()=>{eo.has(e)&&$i(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Zr.delete(e),eo.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var rl=new WeakSet;function xf(e){return rl.has(e)||vg(e,"validate")}function Ig(e,t){rl.add(e),Oi(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Je(i)||Zr.has(i)||il(i).length!==0&&$i(i)},r=o=>{let i=o.target;!Je(i)||Zr.has(i)||eo.has(i)&&$i(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{rl.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}y("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){Ig(e,t);return}Bi(e,t)});var zg=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of zg)y(e,({el:t,cleanup:n})=>{Bi(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])y(e,({el:t,cleanup:n})=>{Je(t)&&Bi(t,n)});function Ef(){return Y({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var ir=new WeakMap,pl=new WeakMap,Bg=Ef();function oo(e){let t=ir.get(e);return t||(t=Ef(),ir.set(e,t)),t}function jg(e){let t=e;for(;t;){let n=pl.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?ir.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?ir.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=ir.get(n);if(r)return r}return Bg}H("$form",e=>jg(e));var sr=new WeakMap,qg=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function wf(e){return qg.some(t=>Ft(e,`${w.prefix}${t}`)||Ft(e,`data-v-${t}`))}function Ae(e,t){var i,s,a;let n=$t(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=$t(r,t);if(l!==null)return l}let o=(a=(i=sr.get(e))==null?void 0:i[t])!=null?a:r?(s=sr.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Vi(e,t){return Ae(e,t)!==null}function Ze(e,t){y(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=sr.get(o))!=null?l:{};if(i[e]=r,sr.set(o,i),!wf(o)&&!wf(n)){X(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&X(s)})}var Vg=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Ze("method",e=>e&&!Vg.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);Ze("redirect");Ze("reset-success");Ze("disable-loading");Ze("loading-class");Ze("on-success");Ze("on-error");Ze("on-complete");Ze("toast-success");Ze("toast-error");Ze("confirm");Ze("form-data");y("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=sr.get(n))!=null?s:{};r.loading=t,sr.set(n,r);let o=kf(t);if(!o){X(`${w.prefix}loading element not found: ${t}`);return}Tf(o,!1)});var Ug=`
|
|
286
|
+
`;function Vi(){ge(),Z("forms-validate",Gg)}function Sf(e){var r,o,i;let t=Pt(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};X(`Target for ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function Cf(e){let t=Sf(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 Ui(e,t){Vi(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=Cf(e);if(!n){let o=Sf(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:le("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 dl(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=Cf(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 ao(e){for(let n of Wi(e,!1))dl(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 ml(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 Qg(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Fi(i)}"]`);if(Ze(s))return s}let o=e.querySelector(`#${Fi(t)}`);return Ze(o)?o:null}function _i(e,t){let n=ml(t),r=[];for(let[o,i]of Object.entries(n)){let s=Qg(e,o);s?Ui(s,i):r.push(i)}return r.length&&Jg(e,r),n}function Jg(e,t){Vi();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 vl(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 Wi(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)Ze(o)&&(o.disabled||Og.has(yt(o))||t&&pl(o).length===0||r.push(o));return r}async function hl(e,t={}){var s,a;if(!Ze(e))return{valid:!0};let n=pl(e);if(!n.length)return t.silent||dl(e),{valid:!0};let r=io(e),o=Pt(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!Yg.has(l.name))continue;let c=zi.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(p){X(`Rule "${l.name}" failed to execute`,p);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=lt[l.name])!=null?s:c.message)!=null?a:lt.invalid,f=Mf(u,{field:Fg(e),param:l.param,value:r});return t.silent||(Ui(e,f),Lf(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(dl(e,!i),Lf(e,{valid:!0})),{valid:!0}}function gl(e){return Ze(e)?hl(e):bl(e)}async function bl(e){let t=Wi(e),n=await Promise.all(t.map(o=>hl(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[fl(o)]=(a=s.message)!=null?a:lt.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Lf(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:fl(e),...t}}))}function Zg(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 eb(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 d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;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 tb(e,t){var a,l,c,d;let n=Wi(e,!1),r=[],o=new Map;for(let u of n)yt(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let f=yt(u);if(f==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(f==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let p=(d=u.value)!=null?d:"";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:u.name,value:p})}return r}function nb(e){for(let t of Wi(e,!1)){if(yt(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function Af(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)Af(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function cr(e,t={}){let n=tb(e,t);if(t.formData||nb(e)){let o=new FormData;for(let i of n)Af(o,i.name,i.value);return o}let r={};for(let o of n)eb(r,Zg(o.name),o.value);return r}var ro=new WeakSet,oo=new WeakSet;async function Ii(e){(await hl(e)).valid?oo.delete(e):oo.add(e)}function Ki(e,t){if(!Ze(e)){X(`${w.prefix}validate only works on input, select, or textarea.`);return}if(ro.has(e))return;ro.add(e),Vi();let n=()=>{Ii(e)},r=()=>{oo.has(e)&&Ii(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{ro.delete(e),oo.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var ul=new WeakSet;function Rf(e){return ul.has(e)||Hg(e,"validate")}function rb(e,t){ul.add(e),Vi(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Ze(i)||ro.has(i)||pl(i).length!==0&&Ii(i)},r=o=>{let i=o.target;!Ze(i)||ro.has(i)||oo.has(i)&&Ii(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{ul.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}y("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){rb(e,t);return}Ki(e,t)});var ob=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of ob)y(e,({el:t,cleanup:n})=>{Ki(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])y(e,({el:t,cleanup:n})=>{Ze(t)&&Ki(t,n)});function Df(){return Y({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var dr=new WeakMap,wl=new WeakMap,ib=Df();function lo(e){let t=dr.get(e);return t||(t=Df(),dr.set(e,t)),t}function sb(e){let t=e;for(;t;){let n=wl.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?dr.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?dr.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=dr.get(n);if(r)return r}return ib}N("$form",e=>sb(e));var ur=new WeakMap,ab=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function $f(e){return ab.some(t=>zt(e,`${w.prefix}${t}`)||zt(e,`data-v-${t}`))}function Re(e,t){var i,s,a;let n=Pt(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=Pt(r,t);if(l!==null)return l}let o=(a=(i=ur.get(e))==null?void 0:i[t])!=null?a:r?(s=ur.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Gi(e,t){return Re(e,t)!==null}function et(e,t){y(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=ur.get(o))!=null?l:{};if(i[e]=r,ur.set(o,i),!$f(o)&&!$f(n)){X(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&X(s)})}var lb=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];et("method",e=>e&&!lb.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);et("redirect");et("reset-success");et("disable-loading");et("loading-class");et("on-success");et("on-error");et("on-complete");et("toast-success");et("toast-error");et("confirm");et("form-data");y("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=ur.get(n))!=null?s:{};r.loading=t,ur.set(n,r);let o=Pf(t);if(!o){X(`${w.prefix}loading element not found: ${t}`);return}Hf(o,!1)});var cb=`
|
|
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,7 +312,11 @@ 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 io(){ge(),oe("forms-ajax",Ug)}function Yt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ui(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function ml(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 vl(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>vl(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))vl(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function _g(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function kf(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var ul=new WeakMap;function Tf(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=ul.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}ul.has(e)||ul.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function qi(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(Vi(n,"disable-loading"))for(let a of _g(r))a.disabled=t;let s=Ae(n,"loading");if(s){let a=kf(s);a&&Tf(a,t)}}function _i(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=q(o,i,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function Wg(e,t){let n=Ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){X(`${w.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=Ce(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))G(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":G(r),r.replaceWith(...s);break;default:X(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&te(l,a)}function Lf(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=ml(t),Wg(e,t),Vi(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),ro(o));let s=Ae(i,"toast-success");s!==null&&it.success(s||r.message||"All set!"),_i(e,"on-success",t,{status:n}),Yt(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,d=e.scope.child({$data:t,$form:r}),u=a?Ui(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function hl(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof ke?t:new ke(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=ml(s)||i.message;let a=sl(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Ii(r,s),al(r));let l=Ae(o,"toast-error");l!==null&&it.error(l||ml(s)||"Could not submit the form."),_i(e,"on-error",s,i),Yt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function Mf(e,t){_i(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),Yt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Kg(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(xf(r)){ro(r);let p=await dl(r);if(o.errors=p.errors,!p.valid){al(r),Yt(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(Ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Ui(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=or(r,{formData:Vi(n,"form-data")}),d=a==="GET"||a==="HEAD";qi(e,!0),o.success=!1,o.progress=0,Yt(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let p=await jt({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?vl(c):void 0});u=!0,Lf(e,p.data,p.status)}catch(p){hl(e,p)}finally{qi(e,!1),Mf(e,u)}}y("submit",({el:e,scope:t,expression:n,cleanup:r})=>{io();let o=e,i=oo(o),s=t.child({$form:i},o);pl.set(s,i),pl.set(t,i),It(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&It(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),Kg(a,n)},c=d=>{var f;let u=d.detail;if(!u||!u.field)return;let p={...i.errors};u.valid?delete p[u.field]:p[u.field]=(f=u.message)!=null?f:"",i.errors=p};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{ir.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:j.DATA-1});function Yg(e){let t=Ae(e,"progress");if(t){let o=document.querySelector(t);return o||(X(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;io();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 ji(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 Xg(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=or(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 Sf(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Ui(t,e.scope);if(!a){X(`${w.prefix}upload needs a destination URL.`);return}let l=Yg(s),c=Xg(s,n,r);qi(e,!0),o.success=!1,o.progress=0,ji(l,0,"loading"),Yt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(Ae(s,"method")||"POST").trim().toUpperCase(),p=await he.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:f=>{o.progress=f,ji(l,f,"loading"),Yt(i,"voodoo:progress",{percent:f,form:i,state:o})}});d=!0,o.progress=100,ji(l,100,"done"),Lf(e,p,200)}catch(u){ji(l,o.progress,"error"),hl(e,u)}finally{qi(e,!1),Mf(e,d)}}y("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){X(`${w.prefix}upload needs an <input type="file">.`);return}io();let i=(c=o.closest("form"))!=null?c:o,s=oo(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&Sf(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});y("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,x,T;io(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(x=e.closest("form"))!=null?x:e,i=oo(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=k=>{k.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),Sf(s,n,k,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=k=>{k.preventDefault(),d++,e.classList.add("v-dropzone-over")},p=k=>{k.preventDefault(),k.dataTransfer&&(k.dataTransfer.dropEffect="copy")},f=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=k=>{var D,A;k.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let C=Array.from((A=(D=k.dataTransfer)==null?void 0:D.files)!=null?A:[]);c(l.multiple?C:C.slice(0,1))},h=k=>{k.target!==l&&l.click()},v=k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),l.click())},g=()=>{var C;let k=Array.from((C=l.files)!=null?C:[]);c(k),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var Gg={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Qg(e){let t=Ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;X(`${w.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 fl(e,t){e.setAttribute("data-state",t),e.textContent=Gg[t]}y("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;io();let i=e,s=oo(i),a={host:i,form:i,scope:t,state:s},l=Qg(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:Ae(i,"autosave-delay"))!=null?v:1e3,d=Q(c,1e3),u=async()=>{let g=Ui(n,t);if(!g){X(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,fl(l,"saving");let b=(Ae(i,"method")||"POST").trim().toUpperCase();try{let x=await jt({url:g,method:b,body:or(i,{formData:Vi(i,"form-data")})});s.data=x.data,s.status=x.status,s.dirty=!1,s.success=!0,fl(l,"saved"),_i(a,"on-success",x.data,{status:x.status}),Yt(i,"voodoo:autosave",{data:x.data,status:x.status,form:i,state:s})}catch(x){fl(l,"error"),hl(a,x)}finally{s.saving=!1}},p=Ke(()=>{u()},d),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});y("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=oo(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.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)})});me();ce();function so(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Me(r)}catch(o){}return t}function Cf(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(">")}`}y("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:Cf(e,"voodoo:persist"),i=ue.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=Ke(()=>{ue.set(o,so(t.data))},120),a=Ie(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:j.DATA-1});y("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||Cf(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Ke(()=>{if(!a)try{i.postMessage({from:s,state:so(t.data)})}catch(d){K(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[p,f]of Object.entries(u.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let c=Ie(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:j.DATA-1});var gl=new WeakMap;function bl(e){let t=e;for(;t;){let n=gl.get(t);if(n)return n;t=t.parentElement}return null}y("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(so(t.data)))],s=0,a=!1,l=Y({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(so(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=Ke(()=>{if(a)return;let m=JSON.stringify(so(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())},Q((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=Ie(t.data,()=>u(),{deep:!0});gl.set(e,l),t.set("$history",l),r(()=>{p(),u.cancel(),gl.delete(e)})},{priority:j.DATA-1});y("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=bl(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=bl(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=ue.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{ue.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?bl(e.el):null);ce();var ar=null,Xt=.35,Dt=!1,Af=!1,yl="voodoo:sound:volume",Df="voodoo:sound:muted";function vn(){if(Af)return;Af=!0;let e=ue.get(yl);typeof e=="number"&&e>=0&&e<=1&&(Xt=e);let t=ue.get(Df);typeof t=="boolean"&&(Dt=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&ue.get(yl)===void 0&&(Xt=.18)}function Rf(){var t;if(typeof window=="undefined")return null;if(ar)return ar.state==="suspended"&&ar.resume(),ar;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return ar=new e,ar}catch(n){return null}}function $f(e,t,n){var c,d,u,p;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"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=Xt*n*((u=t.volume)!=null?u:1),l=(p=t.ataque)!=null?p:.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 Wi={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"}]}},Jg={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 Ki(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Jg[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var Yi=new Map;function Zg(e,t){let n=Yi.get(e);n||(n=new Audio(e),n.preload="auto",Yi.set(e,n)),n.volume=Math.max(0,Math.min(1,Xt*t)),n.currentTime=0,n.play().catch(()=>{})}function Pf(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Gt={play(e,t={}){var l,c,d;if(vn(),Dt||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(Pf(n)){Zg(n,r);return}let o=Wi[n];if(!o){let u=Ki(n);u!==null&&this.tone(u,200,{volume:r});return}let i=Rf();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)$f(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(vn(),Dt)return;let r=Rf();r&&$f(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=Ki(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){vn(),!Dt&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Ki(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return vn(),e===void 0||(Xt=Math.max(0,Math.min(1,e)),ue.set(yl,Xt)),Xt},mute(e=!0){vn(),Dt=e,ue.set(Df,Dt)},unmute(){this.mute(!1)},toggle(){return vn(),this.mute(!Dt),Dt},get muted(){return vn(),Dt},get names(){return Object.keys(Wi)},define(e,t){Wi[e]=t},preload(...e){for(let t of e){if(Yi.has(t))continue;let n=new Audio(t);n.preload="auto",Yi.set(t,n)}}};y("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(Wi[u]||Pf(u)||Ki(u)!==null)return u;let p=s();return typeof p=="string"?p:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{Gt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});y("mute",({el:e,cleanup:t})=>{let n=()=>{let o=Gt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{Gt.toggle(),n(),Gt.muted||Gt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>Gt);me();ce();function ao(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:ve.reducedMotion}var cr=new Set,gn=0;function zf(e){gn=0;let t=Array.from(cr);for(let n of t)cr.has(n)&&n(e);cr.size>0&&(gn=requestAnimationFrame(zf))}function Bf(e){typeof requestAnimationFrame=="function"&&(cr.add(e),gn||(gn=requestAnimationFrame(zf)))}function Qi(e){cr.delete(e),cr.size===0&&gn&&(cancelAnimationFrame(gn),gn=0)}var jf=12e3;function eb(e){return e*e*(2.70158*e-1.70158)}var lo={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*eb(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function tb(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=lo[e];if(t)return t}return lo.easeOut}var Sl={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},nb={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},qf={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},Cl={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},rb={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},ob=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),El=new WeakMap,kl=new WeakMap;function Ji(e){let t=El.get(e);return t||(t={...Sl},El.set(e,t)),t}function Vf(e){let t=kl.get(e);return t||(t={...Cl},kl.set(e,t)),t}function Re(e){return Math.round(e*1e3)/1e3}function Tl(e){let t=El.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${Re(t.x)}px, ${Re(r)}px, ${Re(t.z)}px)`),t.rotateX&&n.push(`rotateX(${Re(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${Re(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${Re(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${Re(t.skewX)}deg, ${Re(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${Re(o)}, ${Re(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function ib(e){let t=kl.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${Re(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${Re(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${Re(t.saturate)})`),t.grayscale&&n.push(`grayscale(${Re(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${Re(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var sb=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,Uf=/^#([0-9a-f]{3,8})$/i;function Xi(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||Uf.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function ab(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function Nf(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=Uf.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var p;let d=(p=r[c])!=null?p:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=ab(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function lb(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${Re(t)})`}function _f(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Wf(e,t,n,r){if(t==="transform")return Ji(e)[n];if(t==="filter")return Vf(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function cb(e,t,n){var u;let r=(u=qf[t])!=null?u:t,o=r in Sl?"transform":r in Cl?"filter":"style",i=o==="style"?_f(r):r,s=o==="transform"?nb[r]:o==="filter"?rb[r]:ob.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[Wf(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(Xi(a[0])||Xi(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=Xi(a[0])?Nf(String(a[0])):[0,0,0,0],l.toColor=Xi(a[1])?Nf(String(a[1])):[0,0,0,0],l);let c=Hf(a[0],s),d=Hf(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function Hf(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=sb.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function lr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){Ji(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){Vf(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,lb(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${Re(s)}${i.unit}`)}r&&Tl(e),o&&ib(e)}function Kf(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=cb(e,r,o);i&&n.push(i)}return n}function Of(e,t){for(let n of Al(e))lr(n,Kf(n,t),0)}function db(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=qf[o])!=null?r:o,s=i in Sl?"transform":i in Cl?"filter":"style";n[o]=Wf(e,s,i,s==="style"?_f(i):i)}return n}function xl(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function Al(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter(xl);if(xl(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];xl(o)&&n.push(o)}return n}function Zi(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function Ll(e,t,n){var x,T,k,C,D,A,se;let r=Kf(e,t);if(ao()&&!n.force)return lr(e,r,1),(x=n.onUpdate)==null||x.call(n,1),(T=n.onComplete)==null||T.call(n),Zi();let o=Math.max(0,(k=n.duration)!=null?k:400),i=Math.max(0,(C=n.delay)!=null?C:0),s=tb(n.easing),a=Math.max(0,Math.floor((D=n.repeat)!=null?D:0)),l=(A=n.repeatType)!=null?A:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(O=>{d=O}),p=!0,f=-1,m=-1,h=0,v=(se=c==null?void 0:c.velocity)!=null?se:0;function g(O){var en,Ln,gc,bc,yc,xc,wc;if(!p)return;f<0&&(f=O,m=O);let pe=O-f-i;if(pe<0)return;let ae=Math.min(64,Math.max(0,O-m));if(m=O,pe>jf){b(1);return}if(c){let lm=(en=c.stiffness)!=null?en:170,cm=(Ln=c.damping)!=null?Ln:26,dm=(gc=c.mass)!=null?gc:1,Ec=Math.max(1,Math.round(ae)),kc=ae/Ec/1e3;for(let Tc=0;Tc<Ec;Tc++){let pm=(-lm*(h-1)-cm*v)/dm;v+=pm*kc,h+=v*kc}let um=(bc=c.restDelta)!=null?bc:.001,fm=(yc=c.restSpeed)!=null?yc:.01;if(Math.abs(1-h)<um&&Math.abs(v)<fm){b(1);return}lr(e,r,h),(xc=n.onUpdate)==null||xc.call(n,h);return}if(o===0){b(1);return}let R=a+1,S=Math.floor(pe/o),B=(pe-S*o)/o,Ve=!1;S>=R&&(S=R-1,B=1,Ve=!0);let Ue;if(S%2===1&&l==="reverse"?Ue=s(1-B):S%2===1&&l==="mirror"?Ue=1-s(B):Ue=s(B),Ve){b(Ue);return}lr(e,r,Ue),(wc=n.onUpdate)==null||wc.call(n,Ue)}function b(O){var pe,ae;p&&(p=!1,Qi(g),lr(e,r,O),(pe=n.onUpdate)==null||pe.call(n,O),d(),(ae=n.onComplete)==null||ae.call(n))}return lr(e,r,c?h:s(0)),Bf(g),{finished:u,stop(){p&&(p=!1,Qi(g),d())}}}function Pt(e,t,n={}){let r=Al(e);if(r.length===0)return Zi();if(r.length===1)return Ll(r[0],t,n);let o=r.map(i=>Ll(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function Rl(e,t,n={}){var g,b,x,T,k,C,D,A;if(ao())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),Zi();let r=(x=n.stiffness)!=null?x:170,o=(T=n.damping)!=null?T:26,i=(k=n.mass)!=null?k:1,s=Math.abs(t-e)||1,a=(C=n.restDelta)!=null?C:s*.001,l=(D=n.restSpeed)!=null?D:s*.01,c=e,d=(A=n.velocity)!=null?A:0,u=!0,p=-1,f=0,m,h=new Promise(se=>{m=se});function v(se){var S,B,Ve,Ue;if(!u)return;if(p<0){p=se,(S=n.onUpdate)==null||S.call(n,c);return}let O=Math.min(64,Math.max(0,se-p));p=se,f+=O;let pe=Math.max(1,Math.round(O)),ae=O/pe/1e3;for(let en=0;en<pe;en++){let Ln=(-r*(c-t)-o*d)/i;d+=Ln*ae,c+=d*ae}if(Math.abs(t-c)<a&&Math.abs(d)<l||f>jf){u=!1,Qi(v),c=t,(B=n.onUpdate)==null||B.call(n,t),m(),(Ve=n.onComplete)==null||Ve.call(n);return}(Ue=n.onUpdate)==null||Ue.call(n,c)}return Bf(v),{finished:h,stop(){u&&(u=!1,Qi(v),m())}}}function Yf(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function $l(e,t,n={}){var l,c,d;let r=Al(e);if(r.length===0)return Zi();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,p)=>Ll(u,t,{...n,delay:i+Yf(p,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function ub(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function es(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:ub(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function Dl(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var fb={opacity:[0,1],duration:420,easing:"easeOut"},pb={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},mb={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},vb={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},hb={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},gb={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},bb={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},yb={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},xb={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},hn={fadeIn:fb,fadeUp:pb,fadeDown:mb,scaleIn:vb,slideLeft:hb,slideRight:gb,pop:bb,blurIn:yb,flip:xb},wb=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function ts(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(wb.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function Xf(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function co(e,t){let n=e.trim();if(!n)return null;if(hn[n])return hn[n];if(!Xf(n))return null;let r=t();return typeof r=="string"&&hn[r]?hn[r]:r&&typeof r=="object"?r:null}function bt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function Ff(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var Gf=new WeakMap;function Qf(e){let t=bt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function Eb(e){return Ff(e,"motion")||Ff(e,"motion-scroll")}function Jf(e){let t=e.parentElement;if(!t)return 0;let n=Gf.get(t);if(!n){let i=bt(t,"motion-stagger");if(i===null)return 0;n={step:Q(i,60),from:Qf(t)}}let r=Array.from(t.children).filter(Eb),o=r.indexOf(e);return o<0?0:Yf(o,r.length,n.step,n.from)}y("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=co(t,n);if(!o){X(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=ts(o),a=Jf(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=Pt(e,i,s);r(()=>l.stop())});y("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=co(t,n);if(!i){X(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=ts(i),l=Jf(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=bt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;ao()||Of(e,s);let p=null,f=es(e,()=>{if(p==null||p.stop(),p=Pt(e,s,a),!c)return()=>{p==null||p.stop(),ao()||Of(e,s)}},{once:c,amount:u,margin:(h=bt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{f(),p==null||p.stop()})});y("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:Q(t,60);Gf.set(e,{step:o,from:Qf(e)})},{priority:j.BIND});function Zf(e,t,n,r,o,i){let{keyframes:s,options:a}=ts(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=Pt(e,m,l)},p=()=>{c||(c=db(e,s)),u(s)},f=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,p);for(let m of r)e.addEventListener(m,f);i(()=>{for(let m of n)e.removeEventListener(m,p);for(let m of r)e.removeEventListener(m,f);d==null||d.stop()})}y("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=co(t,n);if(!o){X(`v-motion-hover did not recognize the variant "${t}".`);return}Zf(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});y("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=co(t,n);if(!o){X(`v-motion-tap did not recognize the variant "${t}".`);return}Zf(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});y("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(ao()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;Ji(e).parallax=(d/2-u)*i,Tl(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),Ji(e).parallax=0,Tl(e),e.style.removeProperty("will-change")})});var Gi=new Map,wl=null,Ml=!1;function If(){Ml||typeof requestAnimationFrame!="function"||(Ml=!0,requestAnimationFrame(kb))}function kb(){var e;Ml=!1;for(let t of Gi.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=Pt(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function Tb(){var t;if(wl||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(wl=new MutationObserver(If),wl.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",If))}y("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=co(t,n),i=o?ts(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),Tb(),Gi.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=Gi.get(e))==null?void 0:s.control)==null||a.stop(),Gi.delete(e)})});function Lb(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}y("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var p,f,m,h,v;let o=Q((p=bt(e,"count-duration"))!=null?p:void 0,1400),i=Math.max(0,Math.min(6,parseInt((f=bt(e,"count-decimals"))!=null?f:"0",10)||0)),s=(m=bt(e,"count-format"))!=null?m:"number",a=(h=bt(e,"count-prefix"))!=null?h:"",l=(v=bt(e,"count-suffix"))!=null?v:"",c=Lb(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,x=d;u==null||u.stop(),u=Pt(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=x+(b-x)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});y("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=Q((l=bt(e,"typewriter-speed"))!=null?l:void 0,45),s=Xf(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=Pt(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(p){let f=Math.round(p*c.length);f!==d&&(d=f,e.textContent=c.slice(0,f))}})}),o(()=>a==null?void 0:a.stop())});Ne();ce();function Mb(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:ve.reducedMotion}var uo=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],Sb=`
|
|
315
|
+
`;function co(){ge(),Z("forms-ajax",cb)}function Gt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Qi(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function kl(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 El(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>El(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))El(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function db(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function Pf(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var yl=new WeakMap;function Hf(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=yl.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}yl.has(e)||yl.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Xi(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=Re(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(Gi(n,"disable-loading"))for(let a of db(r))a.disabled=t;let s=Re(n,"loading");if(s){let a=Pf(s);a&&Hf(a,t)}}function Ji(e,t,n,r){let o=Re(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,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function ub(e,t){let n=Re(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){X(`${w.prefix}target destination not found: ${n}`);return}let o=(Re(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=Ce(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))G(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":G(r),r.replaceWith(...s);break;default:X(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&ne(l,a)}function Nf(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=kl(t),ub(e,t),Gi(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),ao(o));let s=Re(i,"toast-success");s!==null&&st.success(s||r.message||"All set!"),Ji(e,"on-success",t,{status:n}),Gt(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=Re(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,d=e.scope.child({$data:t,$form:r}),u=a?Qi(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function Tl(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof Ee?t:new Ee(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=kl(s)||i.message;let a=ml(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=_i(r,s),vl(r));let l=Re(o,"toast-error");l!==null&&st.error(l||kl(s)||"Could not submit the form."),Ji(e,"on-error",s,i),Gt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function Of(e,t){Ji(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),Gt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function fb(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=Re(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(Rf(r)){ao(r);let f=await bl(r);if(o.errors=f.errors,!f.valid){vl(r),Gt(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(Re(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Qi(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=cr(r,{formData:Gi(n,"form-data")}),d=a==="GET"||a==="HEAD";Xi(e,!0),o.success=!1,o.progress=0,Gt(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let f=await Vt({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?El(c):void 0});u=!0,Nf(e,f.data,f.status)}catch(f){Tl(e,f)}finally{Xi(e,!1),Of(e,u)}}y("submit",({el:e,scope:t,expression:n,cleanup:r})=>{co();let o=e,i=lo(o),s=t.child({$form:i},o);wl.set(s,i),wl.set(t,i),Bt(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&Bt(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),fb(a,n)},c=d=>{var p;let u=d.detail;if(!u||!u.field)return;let f={...i.errors};u.valid?delete f[u.field]:f[u.field]=(p=u.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{dr.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:j.DATA-1});function pb(e){let t=Re(e,"progress");if(t){let o=document.querySelector(t);return o||(X(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;co();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 Yi(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 mb(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=cr(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 Ff(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Qi(t,e.scope);if(!a){X(`${w.prefix}upload needs a destination URL.`);return}let l=pb(s),c=mb(s,n,r);Xi(e,!0),o.success=!1,o.progress=0,Yi(l,0,"loading"),Gt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(Re(s,"method")||"POST").trim().toUpperCase(),f=await he.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:p=>{o.progress=p,Yi(l,p,"loading"),Gt(i,"voodoo:progress",{percent:p,form:i,state:o})}});d=!0,o.progress=100,Yi(l,100,"done"),Nf(e,f,200)}catch(u){Yi(l,o.progress,"error"),Tl(e,u)}finally{Xi(e,!1),Of(e,d)}}y("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){X(`${w.prefix}upload needs an <input type="file">.`);return}co();let i=(c=o.closest("form"))!=null?c:o,s=lo(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&Ff(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});y("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,x,T;co(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(x=e.closest("form"))!=null?x:e,i=lo(o),s={host:e,form:o,scope:t,state:i},a=Re(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=E=>{E.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),Ff(s,n,E,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=E=>{E.preventDefault(),d++,e.classList.add("v-dropzone-over")},f=E=>{E.preventDefault(),E.dataTransfer&&(E.dataTransfer.dropEffect="copy")},p=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=E=>{var D,A;E.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let C=Array.from((A=(D=E.dataTransfer)==null?void 0:D.files)!=null?A:[]);c(l.multiple?C:C.slice(0,1))},h=E=>{E.target!==l&&l.click()},v=E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),l.click())},g=()=>{var C;let E=Array.from((C=l.files)!=null?C:[]);c(E),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var vb={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function hb(e){let t=Re(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;X(`${w.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 xl(e,t){e.setAttribute("data-state",t),e.textContent=vb[t]}y("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;co();let i=e,s=lo(i),a={host:i,form:i,scope:t,state:s},l=hb(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:Re(i,"autosave-delay"))!=null?v:1e3,d=Q(c,1e3),u=async()=>{let g=Qi(n,t);if(!g){X(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,xl(l,"saving");let b=(Re(i,"method")||"POST").trim().toUpperCase();try{let x=await Vt({url:g,method:b,body:cr(i,{formData:Gi(i,"form-data")})});s.data=x.data,s.status=x.status,s.dirty=!1,s.success=!0,xl(l,"saved"),Ji(a,"on-success",x.data,{status:x.status}),Gt(i,"voodoo:autosave",{data:x.data,status:x.status,form:i,state:s})}catch(x){xl(l,"error"),Tl(a,x)}finally{s.saving=!1}},f=Ye(()=>{u()},d),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});y("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=lo(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.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)})});de();ce();function uo(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Me(r)}catch(o){}return t}function If(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(">")}`}y("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:If(e,"voodoo:persist"),i=fe.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=Ye(()=>{fe.set(o,uo(t.data))},120),a=Ie(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:j.DATA-1});y("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||If(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Ye(()=>{if(!a)try{i.postMessage({from:s,state:uo(t.data)})}catch(d){W(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[f,p]of Object.entries(u.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=Ie(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:j.DATA-1});var Ll=new WeakMap;function Ml(e){let t=e;for(;t;){let n=Ll.get(t);if(n)return n;t=t.parentElement}return null}y("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(uo(t.data)))],s=0,a=!1,l=Y({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(uo(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=Ye(()=>{if(a)return;let m=JSON.stringify(uo(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())},Q((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=Ie(t.data,()=>u(),{deep:!0});Ll.set(e,l),t.set("$history",l),r(()=>{f(),u.cancel(),Ll.delete(e)})},{priority:j.DATA-1});y("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Ml(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Ml(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=fe.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{fe.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});N("$history",e=>e.el?Ml(e.el):null);ce();de();Ae();var fr=null,Qt=.35,Ht=!1,zf=!1,Sl="voodoo:sound:volume",Vf="voodoo:sound:muted",Bf=Ge(0);function yn(){if(zf)return;zf=!0;let e=fe.get(Sl);typeof e=="number"&&e>=0&&e<=1&&(Qt=e);let t=fe.get(Vf);typeof t=="boolean"&&(Ht=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&fe.get(Sl)===void 0&&(Qt=.18)}function jf(){var t;if(typeof window=="undefined")return null;if(fr)return fr.state==="suspended"&&fr.resume(),fr;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return fr=new e,fr}catch(n){return null}}function qf(e,t,n){var c,d,u,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"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=Qt*n*((u=t.volume)!=null?u: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 Zi={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"}]}},gb={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 es(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=gb[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var ts=new Map;function bb(e,t){let n=ts.get(e);n||(n=new Audio(e),n.preload="auto",ts.set(e,n)),n.volume=Math.max(0,Math.min(1,Qt*t)),n.currentTime=0,n.play().catch(()=>{})}function Uf(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Jt={play(e,t={}){var l,c,d;if(yn(),Ht||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(Uf(n)){bb(n,r);return}let o=Zi[n];if(!o){let u=es(n);u!==null&&this.tone(u,200,{volume:r});return}let i=jf();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)qf(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(yn(),Ht)return;let r=jf();r&&qf(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=es(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){yn(),!Ht&&e.forEach((r,o)=>{let i=typeof r=="number"?r:es(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return yn(),e===void 0||(Qt=Math.max(0,Math.min(1,e)),fe.set(Sl,Qt)),Qt},mute(e=!0){yn(),Ht=e,fe.set(Vf,Ht),Bf.value++},unmute(){this.mute(!1)},toggle(){return yn(),this.mute(!Ht),Ht},get muted(){return Bf.value,yn(),Ht},get names(){return Object.keys(Zi)},define(e,t){Zi[e]=t},preload(...e){for(let t of e){if(ts.has(t))continue;let n=new Audio(t);n.preload="auto",ts.set(t,n)}}};y("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(Zi[u]||Uf(u)||es(u)!==null)return u;let f=s();return typeof f=="string"?f:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{Jt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});var yb=`
|
|
316
|
+
.v-muted{opacity:.55}
|
|
317
|
+
.v-muted::after{content:" \\1F507";font-size:.9em}
|
|
318
|
+
.v-mute-on::after{content:" \\1F50A";font-size:.9em}
|
|
319
|
+
`;y("mute",({el:e,cleanup:t})=>{Z("mute",yb);let n=()=>{let o=Jt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o),e.classList.toggle("v-mute-on",!o)},r=()=>{Jt.toggle(),n(),Jt.muted||Jt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});N("$sound",()=>Jt);de();ce();function fo(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:ve.reducedMotion}var mr=new Set,wn=0;function Gf(e){wn=0;let t=Array.from(mr);for(let n of t)mr.has(n)&&n(e);mr.size>0&&(wn=requestAnimationFrame(Gf))}function Qf(e){typeof requestAnimationFrame=="function"&&(mr.add(e),wn||(wn=requestAnimationFrame(Gf)))}function os(e){mr.delete(e),mr.size===0&&wn&&(cancelAnimationFrame(wn),wn=0)}var Jf=12e3;function xb(e){return e*e*(2.70158*e-1.70158)}var po={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*xb(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function wb(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=po[e];if(t)return t}return po.easeOut}var Nl={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},kb={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},Zf={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},Ol={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},Eb={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},Tb=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),Rl=new WeakMap,$l=new WeakMap;function is(e){let t=Rl.get(e);return t||(t={...Nl},Rl.set(e,t)),t}function ep(e){let t=$l.get(e);return t||(t={...Ol},$l.set(e,t)),t}function $e(e){return Math.round(e*1e3)/1e3}function Dl(e){let t=Rl.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${$e(t.x)}px, ${$e(r)}px, ${$e(t.z)}px)`),t.rotateX&&n.push(`rotateX(${$e(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${$e(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${$e(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${$e(t.skewX)}deg, ${$e(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${$e(o)}, ${$e(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function Lb(e){let t=$l.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${$e(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${$e(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${$e(t.saturate)})`),t.grayscale&&n.push(`grayscale(${$e(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${$e(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var Mb=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,tp=/^#([0-9a-f]{3,8})$/i;function ns(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||tp.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function Sb(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function _f(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=tp.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var f;let d=(f=r[c])!=null?f:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=Sb(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function Cb(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${$e(t)})`}function np(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function rp(e,t,n,r){if(t==="transform")return is(e)[n];if(t==="filter")return ep(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function Ab(e,t,n){var u;let r=(u=Zf[t])!=null?u:t,o=r in Nl?"transform":r in Ol?"filter":"style",i=o==="style"?np(r):r,s=o==="transform"?kb[r]:o==="filter"?Eb[r]:Tb.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[rp(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(ns(a[0])||ns(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=ns(a[0])?_f(String(a[0])):[0,0,0,0],l.toColor=ns(a[1])?_f(String(a[1])):[0,0,0,0],l);let c=Wf(a[0],s),d=Wf(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function Wf(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=Mb.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function pr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){is(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){ep(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,Cb(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${$e(s)}${i.unit}`)}r&&Dl(e),o&&Lb(e)}function op(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=Ab(e,r,o);i&&n.push(i)}return n}function Kf(e,t){for(let n of Fl(e))pr(n,op(n,t),0)}function Rb(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=Zf[o])!=null?r:o,s=i in Nl?"transform":i in Ol?"filter":"style";n[o]=rp(e,s,i,s==="style"?np(i):i)}return n}function Cl(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function Fl(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter(Cl);if(Cl(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];Cl(o)&&n.push(o)}return n}function ss(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function Pl(e,t,n){var x,T,E,C,D,A,se;let r=op(e,t);if(fo()&&!n.force)return pr(e,r,1),(x=n.onUpdate)==null||x.call(n,1),(T=n.onComplete)==null||T.call(n),ss();let o=Math.max(0,(E=n.duration)!=null?E:400),i=Math.max(0,(C=n.delay)!=null?C:0),s=wb(n.easing),a=Math.max(0,Math.floor((D=n.repeat)!=null?D:0)),l=(A=n.repeatType)!=null?A:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(O=>{d=O}),f=!0,p=-1,m=-1,h=0,v=(se=c==null?void 0:c.velocity)!=null?se:0;function g(O){var nn,An,Lc,Mc,Sc,Cc,Ac;if(!f)return;p<0&&(p=O,m=O);let me=O-p-i;if(me<0)return;let ae=Math.min(64,Math.max(0,O-m));if(m=O,me>Jf){b(1);return}if(c){let ym=(nn=c.stiffness)!=null?nn:170,xm=(An=c.damping)!=null?An:26,wm=(Lc=c.mass)!=null?Lc:1,Rc=Math.max(1,Math.round(ae)),$c=ae/Rc/1e3;for(let Dc=0;Dc<Rc;Dc++){let Tm=(-ym*(h-1)-xm*v)/wm;v+=Tm*$c,h+=v*$c}let km=(Mc=c.restDelta)!=null?Mc:.001,Em=(Sc=c.restSpeed)!=null?Sc:.01;if(Math.abs(1-h)<km&&Math.abs(v)<Em){b(1);return}pr(e,r,h),(Cc=n.onUpdate)==null||Cc.call(n,h);return}if(o===0){b(1);return}let R=a+1,S=Math.floor(me/o),B=(me-S*o)/o,_e=!1;S>=R&&(S=R-1,B=1,_e=!0);let We;if(S%2===1&&l==="reverse"?We=s(1-B):S%2===1&&l==="mirror"?We=1-s(B):We=s(B),_e){b(We);return}pr(e,r,We),(Ac=n.onUpdate)==null||Ac.call(n,We)}function b(O){var me,ae;f&&(f=!1,os(g),pr(e,r,O),(me=n.onUpdate)==null||me.call(n,O),d(),(ae=n.onComplete)==null||ae.call(n))}return pr(e,r,c?h:s(0)),Qf(g),{finished:u,stop(){f&&(f=!1,os(g),d())}}}function Nt(e,t,n={}){let r=Fl(e);if(r.length===0)return ss();if(r.length===1)return Pl(r[0],t,n);let o=r.map(i=>Pl(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function Il(e,t,n={}){var g,b,x,T,E,C,D,A;if(fo())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),ss();let r=(x=n.stiffness)!=null?x:170,o=(T=n.damping)!=null?T:26,i=(E=n.mass)!=null?E:1,s=Math.abs(t-e)||1,a=(C=n.restDelta)!=null?C:s*.001,l=(D=n.restSpeed)!=null?D:s*.01,c=e,d=(A=n.velocity)!=null?A:0,u=!0,f=-1,p=0,m,h=new Promise(se=>{m=se});function v(se){var S,B,_e,We;if(!u)return;if(f<0){f=se,(S=n.onUpdate)==null||S.call(n,c);return}let O=Math.min(64,Math.max(0,se-f));f=se,p+=O;let me=Math.max(1,Math.round(O)),ae=O/me/1e3;for(let nn=0;nn<me;nn++){let An=(-r*(c-t)-o*d)/i;d+=An*ae,c+=d*ae}if(Math.abs(t-c)<a&&Math.abs(d)<l||p>Jf){u=!1,os(v),c=t,(B=n.onUpdate)==null||B.call(n,t),m(),(_e=n.onComplete)==null||_e.call(n);return}(We=n.onUpdate)==null||We.call(n,c)}return Qf(v),{finished:h,stop(){u&&(u=!1,os(v),m())}}}function ip(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function zl(e,t,n={}){var l,c,d;let r=Fl(e);if(r.length===0)return ss();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,f)=>Pl(u,t,{...n,delay:i+ip(f,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function $b(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function as(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:$b(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function Bl(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var Db={opacity:[0,1],duration:420,easing:"easeOut"},Pb={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},Hb={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},Nb={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},Ob={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},Fb={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},Ib={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},zb={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},Bb={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},xn={fadeIn:Db,fadeUp:Pb,fadeDown:Hb,scaleIn:Nb,slideLeft:Ob,slideRight:Fb,pop:Ib,blurIn:zb,flip:Bb},jb=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function ls(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(jb.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function sp(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function mo(e,t){let n=e.trim();if(!n)return null;if(xn[n])return xn[n];if(!sp(n))return null;let r=t();return typeof r=="string"&&xn[r]?xn[r]:r&&typeof r=="object"?r:null}function xt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function Yf(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var ap=new WeakMap;function lp(e){let t=xt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function qb(e){return Yf(e,"motion")||Yf(e,"motion-scroll")}function cp(e){let t=e.parentElement;if(!t)return 0;let n=ap.get(t);if(!n){let i=xt(t,"motion-stagger");if(i===null)return 0;n={step:Q(i,60),from:lp(t)}}let r=Array.from(t.children).filter(qb),o=r.indexOf(e);return o<0?0:ip(o,r.length,n.step,n.from)}y("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=mo(t,n);if(!o){X(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=ls(o),a=cp(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=Nt(e,i,s);r(()=>l.stop())});y("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=mo(t,n);if(!i){X(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=ls(i),l=cp(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=xt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;fo()||Kf(e,s);let f=null,p=as(e,()=>{if(f==null||f.stop(),f=Nt(e,s,a),!c)return()=>{f==null||f.stop(),fo()||Kf(e,s)}},{once:c,amount:u,margin:(h=xt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{p(),f==null||f.stop()})});y("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:Q(t,60);ap.set(e,{step:o,from:lp(e)})},{priority:j.BIND});function dp(e,t,n,r,o,i){let{keyframes:s,options:a}=ls(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=Nt(e,m,l)},f=()=>{c||(c=Rb(e,s)),u(s)},p=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,f);for(let m of r)e.addEventListener(m,p);i(()=>{for(let m of n)e.removeEventListener(m,f);for(let m of r)e.removeEventListener(m,p);d==null||d.stop()})}y("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=mo(t,n);if(!o){X(`v-motion-hover did not recognize the variant "${t}".`);return}dp(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});y("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=mo(t,n);if(!o){X(`v-motion-tap did not recognize the variant "${t}".`);return}dp(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});y("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(fo()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;is(e).parallax=(d/2-u)*i,Dl(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),is(e).parallax=0,Dl(e),e.style.removeProperty("will-change")})});var rs=new Map,Al=null,Hl=!1;function Xf(){Hl||typeof requestAnimationFrame!="function"||(Hl=!0,requestAnimationFrame(Vb))}function Vb(){var e;Hl=!1;for(let t of rs.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=Nt(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function Ub(){var t;if(Al||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(Al=new MutationObserver(Xf),Al.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",Xf))}y("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=mo(t,n),i=o?ls(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),Ub(),rs.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=rs.get(e))==null?void 0:s.control)==null||a.stop(),rs.delete(e)})});function _b(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}y("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var f,p,m,h,v;let o=Q((f=xt(e,"count-duration"))!=null?f:void 0,1400),i=Math.max(0,Math.min(6,parseInt((p=xt(e,"count-decimals"))!=null?p:"0",10)||0)),s=(m=xt(e,"count-format"))!=null?m:"number",a=(h=xt(e,"count-prefix"))!=null?h:"",l=(v=xt(e,"count-suffix"))!=null?v:"",c=_b(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,x=d;u==null||u.stop(),u=Nt(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=x+(b-x)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});y("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=Q((l=xt(e,"typewriter-speed"))!=null?l:void 0,45),s=sp(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=Nt(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(f){let p=Math.round(f*c.length);p!==d&&(d=p,e.textContent=c.slice(0,p))}})}),o(()=>a==null?void 0:a.stop())});Ae();ce();function Wb(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:ve.reducedMotion}var vo=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],Kb=`
|
|
316
320
|
.v-chart{position:relative;display:block;width:100%;color:var(--v-text,#14111F);
|
|
317
321
|
font:500 12px/1.35 var(--v-font-sans,system-ui,-apple-system,'Segoe UI',sans-serif)}
|
|
318
322
|
.v-chart-svg{display:block;width:100%;overflow:visible;touch-action:pan-y}
|
|
@@ -365,13 +369,13 @@ form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
|
365
369
|
@media (prefers-reduced-motion: reduce){
|
|
366
370
|
.v-chart *{transition:none !important}
|
|
367
371
|
}
|
|
368
|
-
`;function E(e){return Math.round(e*100)/100}function ye(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function bn(e,t,n){return e<t?t:e>n?n:e}var ep=new Map;function tp(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=ep.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),ep.set(n,r)),r}function $e(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return tp("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=tp("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function Cb(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function je(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function Ab(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:uo,r=Array.isArray(e.labels),o=r?e.labels.map(p=>String(p)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Value";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let p=s[0];if(typeof p=="number")i.push({name:a,values:s.map(ye),xs:null,color:n[0]});else if(Cb(p))s.forEach((f,m)=>{i.push({name:f.name||`Serie ${m+1}`,values:(f.data||[]).map(ye),xs:null,color:f.color||n[m%n.length]})});else{let f=s,m=[],h=[],v=!1;f.forEach((g,b)=>{m.push(ye(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let p=0;p<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);p++)o[p]===void 0&&(o[p]=je(o,p));return{series:i,labels:o,categorical:l}}function Rb(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:je(e.labels,o),name:je(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function $b(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=je(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function np(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function Nl(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return Nl(e-c*.5,t+c*.5,n)}let r=np(t-e,!1),o=np(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Hl(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=ye(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function rp(e){if(e.length===0)return"";let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${E(e[n][0])} ${E(e[n][1])}`);return t.join(" ")}function Db(e){if(e.length<3)return rp(e);let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${E(a)} ${E(l)}, ${E(c)} ${E(d)}, ${E(i[0])} ${E(i[1])}`)}return t.join(" ")}function Pb(e,t){return t?Db(e):rp(e)}function lt(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function Nb(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=lt(e,t,n,o),[c,d]=lt(e,t,n,i);if(r<=0)return`M ${E(e)} ${E(t)} L ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} Z`;let[u,p]=lt(e,t,r,o),[f,m]=lt(e,t,r,i);return`M ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} L ${E(f)} ${E(m)} A ${E(r)} ${E(r)} 0 ${s} 0 ${E(u)} ${E(p)} Z`}var Hb=7;function op(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*Hb+12}function Ol(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Hl(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:ip(s.min,s.max,5)}:Nl(s.min,s.max,5),l=a.ticks.map(T=>$e(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,p=t.bare?3:16,f=t.bare?3:c?bn(op(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-f-p),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),x="";if(c){let T=[];a.ticks.forEach((k,C)=>{let D=E(b(k));T.push(`<line class="v-chart-grid" x1="${E(f)}" y1="${D}" x2="${E(f+h)}" y2="${D}"/>`),T.push(`<text class="v-chart-axis" x="${E(f-8)}" y="${D+4}" text-anchor="end">${I(l[C])}</text>`)}),x=`<g>${T.join("")}</g>`}return{left:f,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:x}}function ip(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function Fl(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${E(n(l))}" y="${E(r)}" text-anchor="middle">${I(c)}</text>`)}return a.join("")}function fo(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function yn(e){return`<text class="v-chart-empty" x="${E(e.width/2)}" y="${E(e.height/2)}" text-anchor="middle">No data</text>`}function xn(e,t,n){return`<title>${I(e)}: ${I($e(t,n))}</title>`}function Ob(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${$e(o,t)} to ${$e(i,t)}, minimum ${$e(n,t)}, maximum ${$e(r,t)}`}function Fb(e){let t=e.type==="sparkline",n=e.type==="area",r=fo(e.dataset);if(r===0)return yn(e);let o=Ol(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(bn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let f=0;f<r;f++)d.push([i(f),o.y(ye(c.values[f]))]);if(d.length===0)continue;let u=Pb(d,s);if(n){let f=`${u} L ${E(d[d.length-1][0])} ${E(l)} L ${E(d[0][0])} ${E(l)} Z`;a.push(`<path class="v-chart-area" d="${f}" fill="${I(c.color)}" fill-opacity="0.16"/>`)}let p=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${I(c.color)}"${p}><title>${I(Ob(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((f,m)=>{a.push(`<circle class="v-chart-point" cx="${E(f[0])}" cy="${E(f[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${je(e.dataset.labels,m)}`,ye(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((f,m)=>{a.push(`<text class="v-chart-value" x="${E(f[0])}" y="${E(f[1]-10)}" text-anchor="middle">${I($e(ye(c.values[m]),e.format))}</text>`)})}return t||a.push(Fl(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),sp(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(ye(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function sp(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:je(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:ye(i.values[o])}))})}function Ib(e){let t=e.type==="stacked",n=fo(e.dataset);if(n===0)return yn(e);let r=Ol(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(bn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=p=>r.left+o*p+o/2;for(let p=0;p<n;p++){let f=0,m=0;e.dataset.series.forEach((h,v)=>{let g=ye(h.values[p]),b,x,T;if(t){let D=g>=0?f:m,A=D+g;g>=0?f=A:m=A,b=Math.min(r.y(D),r.y(A)),x=Math.max(r.y(D),r.y(A)),T=r.left+o*p+s/2}else b=Math.min(r.y(g),l),x=Math.max(r.y(g),l),T=r.left+o*p+s/2+v*a;let k=t?Math.max(2,o-s):a*.86,C=Math.max(g===0?0:1,x-b);d.push(`<rect class="v-chart-bar" x="${E(T)}" y="${E(b)}" width="${E(k)}" height="${E(C)}" rx="${E(c)}" fill="${I(h.color)}" style="transform-origin:${E(T+k/2)}px ${E(l)}px;transition-delay:${p*30}ms">`+xn(`${h.name} ${je(e.dataset.labels,p)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${E(T+k/2)}" y="${E(b-6)}" text-anchor="middle">${I($e(g,e.format))}</text>`)})}return d.push(Fl(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),sp(e,n,u,p=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,ye(h.values[p]));return r.y(m)}let f=l;for(let m of e.dataset.series)f=Math.min(f,r.y(ye(m.values[p])));return f}),d.join("")}function zb(e){let t=fo(e.dataset);if(t===0)return yn(e);let n=Hl(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:ip(n.min,n.max,5)}:Nl(n.min,n.max,5),o=bn(op(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,p=u(bn(0,r.min,r.max)),f=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(f*.3,16),v=Math.max(2,(f-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let x=E(u(b));g.push(`<line class="v-chart-grid" x1="${x}" y1="${E(s)}" x2="${x}" y2="${E(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${x}" y="${E(s+c+16)}" text-anchor="middle">${I($e(b,e.format))}</text>`)}for(let b=0;b<t;b++){let x=e.dataset.labels[b];x&&g.push(`<text class="v-chart-axis" x="${E(i-8)}" y="${E(s+f*b+f/2+4)}" text-anchor="end">${I(x)}</text>`);let T=p;e.dataset.series.forEach((k,C)=>{let D=ye(k.values[b]),A=Math.min(u(D),p);T=Math.max(T,u(D));let se=Math.max(D===0?0:1,Math.abs(u(D)-p)),O=s+f*b+h/2+C*v;g.push(`<rect class="v-chart-barh" x="${E(A)}" y="${E(O)}" width="${E(se)}" height="${E(v*.86)}" rx="${E(Math.min(4,v/2))}" fill="${I(k.color)}" style="transform-origin:${E(p)}px ${E(O+v/2)}px;transition-delay:${b*30}ms">`+xn(`${k.name} ${je(e.dataset.labels,b)}`,D,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${E(A+se+6)}" y="${E(O+v*.6)}">${I($e(D,e.format))}</text>`)}),e.hits.push({x:T,y:s+f*b+f/2,title:je(e.dataset.labels,b),rows:e.dataset.series.map(k=>({name:k.name,color:k.color,value:ye(k.values[b])}))})}return g.join("")}function Bb(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return yn(e);let n=e.type==="donut",r=t.values.map(p=>Math.max(0,ye(p))),o=r.reduce((p,f)=>p+f,0);if(o<=0)return yn(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${E(i)}px ${E(s)}px`,d=[],u=-Math.PI/2;return r.forEach((p,f)=>{let m=p/o*Math.PI*2,h=e.palette[f%e.palette.length],v=je(e.dataset.labels,f),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E((a+l)/2)}" fill="none" stroke="${I(h)}" stroke-width="${E(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E(a)}" fill="${I(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${f}" d="${Nb(i,s,a,l,u,u+m)}" fill="${I(h)}" style="${c};transition-delay:${f*45}ms">`;d.push(`${b}${xn(v,p,e.format)}${g?"</circle>":"</path>"}`);let x=u+m/2,[T,k]=lt(i,s,(a+l)/2,x);if(e.hits.push({x:T,y:k,title:v,rows:[{name:v,color:h,value:p}]}),e.options.showValues&&m>.3){let[C,D]=lt(i,s,n?(a+l)/2:a*.68,x),A=Math.round(p/o*100);d.push(`<text class="v-chart-value" x="${E(C)}" y="${E(D+4)}" text-anchor="middle">${A}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${E(i)}" y="${E(s+2)}" text-anchor="middle">${I($e(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${E(i)}" y="${E(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function jb(e){let t=fo(e.dataset);if(t<3)return yn(e);let r=Hl(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(lt(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=lt(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${E(o)}" y1="${E(i)}" x2="${E(d)}" y2="${E(u)}"/>`);let p=e.dataset.labels[c];if(p){let[f,m]=lt(o,i,s+14,a(c)),h=Math.abs(f-o)<4?"middle":f>o?"start":"end";l.push(`<text class="v-chart-axis" x="${E(f)}" y="${E(m+4)}" text-anchor="${h}">${I(p)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let p=bn(ye(c.values[u])/r,0,1);d.push(lt(o,i,s*p,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}" fill="${I(c.color)}" fill-opacity="0.22" stroke="${I(c.color)}" style="transform-origin:${E(o)}px ${E(i)}px"/>`),d.forEach((u,p)=>{l.push(`<circle class="v-chart-point" data-hit="${p}" cx="${E(u[0])}" cy="${E(u[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${je(e.dataset.labels,p)}`,ye(c.values[p]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=lt(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:je(e.dataset.labels,c),rows:e.dataset.series.map(p=>({name:p.name,color:p.color,value:ye(p.values[c])}))})}return l.join("")}function qb(e){let t=fo(e.dataset);if(t===0)return yn(e);let n=Ol(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let p=s(c,u),f=n.y(ye(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${E(p)}" cy="${E(f)}" r="4.5" fill="${I(c.color)}" style="transform-origin:${E(p)}px ${E(f)}px">`+xn(`${c.name} ${je(e.dataset.labels,u)}`,ye(d),e.format)+"</circle>"),e.hits.push({x:p,y:f,title:je(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:ye(d)}]}),l++});return i||a.push(Fl(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function Vb(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?ye(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=bn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,p=u*(1-i),f=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:f,value:n}]}),`<circle class="v-chart-track" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" stroke-width="${E(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" fill="none" stroke="${I(f)}" stroke-width="${E(c)}" stroke-linecap="round" stroke-dasharray="${E(u)}" style="--v-ring-full:${E(u)};--v-ring-offset:${E(p)};transform:rotate(-90deg);transform-origin:${E(s)}px ${E(a)}px">`+xn((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${E(s)}" y="${E(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${E(s)}" y="${E(a+22)}" text-anchor="middle">${I($e(n,e.format))}</text>`:"")}var Ub=new Set(["pie","donut","scatter","progress","radar"]);function _b(e){return e==="sparkline"?56:260}function Wb(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var Kb={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function Yb(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${Kb[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${$e(s,n)}, maximum ${$e(a,n)}, average ${$e(c,n)}.`)}return o.join(" ")}function Xb(e){switch(e.type){case"bar":case"stacked":return Ib(e);case"column":return zb(e);case"pie":case"donut":return Bb(e);case"radar":return jb(e);case"scatter":return qb(e);case"progress":return Vb(e);default:return Fb(e)}}function Gb(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${I(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}</button>`}).join("")}</div>`}function ns(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:uo,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:t.clientHeight||_b(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=Ab(n,r),c=Rb(l,o),d=$b(l,e.hidden,o),u=n.animate!==!1&&!Mb();e.hits=[],e.shapeHits=Ub.has(r),e.hitAxis=r==="column"?"y":"x";let p={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},f=Xb(p),m=Yb(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${I(m)}">`,f,"</svg>"];Wb(n,l)&&h.push(Gb(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function Qb(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}<b>${I($e(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${I(e.title)}</div>${n.join("")}`}function ap(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function Jb(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){ap(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=Qb(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function Zb(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),ns(e))},r=i=>Jb(e,i),o=()=>ap(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function ey(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,ns(e)}))});t.observe(e.el),e.observer=t}function ur(e,t){ge(),oe("charts",Sb);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return Zb(n),ns(n),ey(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),ns(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function et(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function dr(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function ty(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=et(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=et(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=et(e,"chart-format");s&&(r.format=s);let a=et(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=et(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=et(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=et(e,"chart-smooth");d!==null&&(r.smooth=dr(d,!0));let u=et(e,"chart-grid");u!==null&&(r.showGrid=dr(u,!0));let p=et(e,"chart-legend");p!==null&&(r.showLegend=dr(p,!0));let f=et(e,"chart-values");f!==null&&(r.showValues=dr(f,!0));let m=et(e,"chart-tooltip");m!==null&&(r.tooltip=dr(m,!0));let h=et(e,"chart-animate");return h!==null&&(r.animate=dr(h,!0)),r}function Pl(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=Pl(r,t+1);return n}for(let r of Object.values(e))n+=Pl(r,t+1);return n}y("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();Pl(i);let s=ty(e,i);o?o.update(s):o=ur(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Il={render:ur,format:$e,colors:uo};me();ce();Ne();Ne();ce();var ny=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,ry=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,oy=/^rgba?\(([^)]+)\)$/i,iy=/^hsla?\(([^)]+)\)$/i;function lp(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function sy(e,t,n){let r=(e%360+360)%360,o=qe(t/100,0,1),i=qe(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,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,p,f]=d[c];return{r:Math.round((u+l)*255),g:Math.round((p+l)*255),b:Math.round((f+l)*255)}}function yt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=ny.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=ry.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=oy.exec(t);if(o){let[s,a,l]=lp(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:qe(s,0,255),g:qe(a,0,255),b:qe(l,0,255)}}let i=iy.exec(t);if(i){let[s,a,l]=lp(i[1]);return s===void 0||a===void 0||l===void 0?null:sy(s,a,l)}return null}function qe(e,t,n){return e<t?t:e>n?n:e}function mr(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function zl(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function ay(e){let t=mr(e.r),n=mr(e.g),r=mr(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 ly(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:zl(4.0767416621*o-3.3077115913*i+.2309699292*s),g:zl(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:zl(-.0041960863*o-.7034186147*i+1.707614701*s)}}function os(e){let t=ay(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 cp(e){let t=e.h*Math.PI/180;return ly({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function pr(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=cp({l:qe(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(qe(o.r,0,1)*255),g:Math.round(qe(o.g,0,1)*255),b:Math.round(qe(o.b,0,1)*255)};t*=.92}let n=cp({l:qe(e.l,0,1),c:0,h:e.h});return{r:Math.round(qe(n.r,0,1)*255),g:Math.round(qe(n.g,0,1)*255),b:Math.round(qe(n.b,0,1)*255)}}function Bl(e){return qe(Math.round(e),0,255).toString(16).padStart(2,"0")}function wn(e){return`#${Bl(e.r)}${Bl(e.g)}${Bl(e.b)}`}function fr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function mp(e){return wn(pr(e))}function ql(e){return .2126*mr(e.r)+.7152*mr(e.g)+.0722*mr(e.b)}function Vl(e,t){let n=typeof e=="string"?yt(e):e,r=typeof t=="string"?yt(t):t;if(!n||!r)return 1;let o=ql(n),i=ql(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var vp={r:255,g:255,b:255},is={r:0,g:0,b:0};function po(e){let t=typeof e=="string"?yt(e):e;return t?Vl(t,vp)>=Vl(t,is)?"#ffffff":"#000000":"#ffffff"}var Ul=[50,100,200,300,400,500,600,700,800,900],hp=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],cy=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],gp=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],dy=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function bp(e,t=!1){var a;let n=typeof e=="string"?(a=yt(e))!=null?a:is:e,r=os(n),o=t?gp:hp,i=t?dy:cy,s={};return Ul.forEach((l,c)=>{s[String(l)]=mp({l:o[c],c:r.c*i[c],h:r.h})}),s}var ss={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"}},yp=["primary","accent","success","warning","danger","info"],_l="voodoo:palette",dp="voodoo-palette",uy="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",fy="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function up(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var py=/^([\d.]+)(px|rem|em)$/;function my(e){let t=(e||"12px").trim(),n=py.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 fp(e,t){var c,d,u,p;let n={},r={},o={};for(let f of yp){let m=(c=yt(e[f]))!=null?c:is,h=os(m),v=bp(m,t);r[f]=v;for(let O of Ul)n[`--v-${f}-${O}`]=v[String(O)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},x=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=pr(g),k=pr(b),C=pr(x);n[`--v-${f}`]=wn(t?T:m),n[`--v-${f}-hover`]=wn(k),n[`--v-${f}-active`]=wn(C),n[`--v-${f}-contrast`]=po(t?T:m),n[`--v-${f}-contrast-hover`]=po(k),n[`--v-${f}-contrast-active`]=po(C);let D=v[50],A=v[100],se=t?v[800]:v[700];n[`--v-${f}-soft`]=D,n[`--v-${f}-soft-hover`]=A,n[`--v-${f}-soft-text`]=se,n[`--v-${f}-ring`]=fr(T,t?.45:.32),n[`--v-${f}-border`]=t?v[300]:v[200],o[f]=n[`--v-${f}-contrast`]}let i=(u=yt((d=e.neutral)!=null?d:e.primary))!=null?u:is,s=os(i).h,a=(f,m)=>mp({l:f,c:m,h:s}),l={};if(Ul.forEach((f,m)=>{let h=t?gp:hp;l[String(f)]=a(h[m],.012),n[`--v-neutral-${f}`]=l[String(f)]}),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 f=pr({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"]=wn(f),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"]=fr(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${fr(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${fr(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${fr(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=po((p=yt(n["--v-surface"]))!=null?p:vp),{vars:n,scales:r,contrast:o}}function jl(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
372
|
+
`;function k(e){return Math.round(e*100)/100}function ye(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function kn(e,t,n){return e<t?t:e>n?n:e}var up=new Map;function fp(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=up.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),up.set(n,r)),r}function De(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return fp("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=fp("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function Yb(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function Ve(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function Xb(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:vo,r=Array.isArray(e.labels),o=r?e.labels.map(f=>String(f)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Value";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let f=s[0];if(typeof f=="number")i.push({name:a,values:s.map(ye),xs:null,color:n[0]});else if(Yb(f))s.forEach((p,m)=>{i.push({name:p.name||`Serie ${m+1}`,values:(p.data||[]).map(ye),xs:null,color:p.color||n[m%n.length]})});else{let p=s,m=[],h=[],v=!1;p.forEach((g,b)=>{m.push(ye(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let f=0;f<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);f++)o[f]===void 0&&(o[f]=Ve(o,f));return{series:i,labels:o,categorical:l}}function Gb(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:Ve(e.labels,o),name:Ve(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function Qb(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=Ve(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function pp(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function ql(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return ql(e-c*.5,t+c*.5,n)}let r=pp(t-e,!1),o=pp(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Vl(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=ye(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function mp(e){if(e.length===0)return"";let t=[`M ${k(e[0][0])} ${k(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${k(e[n][0])} ${k(e[n][1])}`);return t.join(" ")}function Jb(e){if(e.length<3)return mp(e);let t=[`M ${k(e[0][0])} ${k(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${k(a)} ${k(l)}, ${k(c)} ${k(d)}, ${k(i[0])} ${k(i[1])}`)}return t.join(" ")}function Zb(e,t){return t?Jb(e):mp(e)}function ct(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function ey(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=ct(e,t,n,o),[c,d]=ct(e,t,n,i);if(r<=0)return`M ${k(e)} ${k(t)} L ${k(a)} ${k(l)} A ${k(n)} ${k(n)} 0 ${s} 1 ${k(c)} ${k(d)} Z`;let[u,f]=ct(e,t,r,o),[p,m]=ct(e,t,r,i);return`M ${k(a)} ${k(l)} A ${k(n)} ${k(n)} 0 ${s} 1 ${k(c)} ${k(d)} L ${k(p)} ${k(m)} A ${k(r)} ${k(r)} 0 ${s} 0 ${k(u)} ${k(f)} Z`}var ty=7;function vp(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*ty+12}function Ul(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Vl(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:hp(s.min,s.max,5)}:ql(s.min,s.max,5),l=a.ticks.map(T=>De(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,f=t.bare?3:16,p=t.bare?3:c?kn(vp(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-p-f),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),x="";if(c){let T=[];a.ticks.forEach((E,C)=>{let D=k(b(E));T.push(`<line class="v-chart-grid" x1="${k(p)}" y1="${D}" x2="${k(p+h)}" y2="${D}"/>`),T.push(`<text class="v-chart-axis" x="${k(p-8)}" y="${D+4}" text-anchor="end">${I(l[C])}</text>`)}),x=`<g>${T.join("")}</g>`}return{left:p,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:x}}function hp(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function _l(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${k(n(l))}" y="${k(r)}" text-anchor="middle">${I(c)}</text>`)}return a.join("")}function ho(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function En(e){return`<text class="v-chart-empty" x="${k(e.width/2)}" y="${k(e.height/2)}" text-anchor="middle">No data</text>`}function Tn(e,t,n){return`<title>${I(e)}: ${I(De(t,n))}</title>`}function ny(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${De(o,t)} to ${De(i,t)}, minimum ${De(n,t)}, maximum ${De(r,t)}`}function ry(e){let t=e.type==="sparkline",n=e.type==="area",r=ho(e.dataset);if(r===0)return En(e);let o=Ul(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(kn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let p=0;p<r;p++)d.push([i(p),o.y(ye(c.values[p]))]);if(d.length===0)continue;let u=Zb(d,s);if(n){let p=`${u} L ${k(d[d.length-1][0])} ${k(l)} L ${k(d[0][0])} ${k(l)} Z`;a.push(`<path class="v-chart-area" d="${p}" fill="${I(c.color)}" fill-opacity="0.16"/>`)}let f=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${I(c.color)}"${f}><title>${I(ny(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((p,m)=>{a.push(`<circle class="v-chart-point" cx="${k(p[0])}" cy="${k(p[1])}" r="3.5" fill="${I(c.color)}">`+Tn(`${c.name} ${Ve(e.dataset.labels,m)}`,ye(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((p,m)=>{a.push(`<text class="v-chart-value" x="${k(p[0])}" y="${k(p[1]-10)}" text-anchor="middle">${I(De(ye(c.values[m]),e.format))}</text>`)})}return t||a.push(_l(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),gp(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(ye(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function gp(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:Ve(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:ye(i.values[o])}))})}function oy(e){let t=e.type==="stacked",n=ho(e.dataset);if(n===0)return En(e);let r=Ul(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(kn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=f=>r.left+o*f+o/2;for(let f=0;f<n;f++){let p=0,m=0;e.dataset.series.forEach((h,v)=>{let g=ye(h.values[f]),b,x,T;if(t){let D=g>=0?p:m,A=D+g;g>=0?p=A:m=A,b=Math.min(r.y(D),r.y(A)),x=Math.max(r.y(D),r.y(A)),T=r.left+o*f+s/2}else b=Math.min(r.y(g),l),x=Math.max(r.y(g),l),T=r.left+o*f+s/2+v*a;let E=t?Math.max(2,o-s):a*.86,C=Math.max(g===0?0:1,x-b);d.push(`<rect class="v-chart-bar" x="${k(T)}" y="${k(b)}" width="${k(E)}" height="${k(C)}" rx="${k(c)}" fill="${I(h.color)}" style="transform-origin:${k(T+E/2)}px ${k(l)}px;transition-delay:${f*30}ms">`+Tn(`${h.name} ${Ve(e.dataset.labels,f)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${k(T+E/2)}" y="${k(b-6)}" text-anchor="middle">${I(De(g,e.format))}</text>`)})}return d.push(_l(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),gp(e,n,u,f=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,ye(h.values[f]));return r.y(m)}let p=l;for(let m of e.dataset.series)p=Math.min(p,r.y(ye(m.values[f])));return p}),d.join("")}function iy(e){let t=ho(e.dataset);if(t===0)return En(e);let n=Vl(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:hp(n.min,n.max,5)}:ql(n.min,n.max,5),o=kn(vp(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,f=u(kn(0,r.min,r.max)),p=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(p*.3,16),v=Math.max(2,(p-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let x=k(u(b));g.push(`<line class="v-chart-grid" x1="${x}" y1="${k(s)}" x2="${x}" y2="${k(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${x}" y="${k(s+c+16)}" text-anchor="middle">${I(De(b,e.format))}</text>`)}for(let b=0;b<t;b++){let x=e.dataset.labels[b];x&&g.push(`<text class="v-chart-axis" x="${k(i-8)}" y="${k(s+p*b+p/2+4)}" text-anchor="end">${I(x)}</text>`);let T=f;e.dataset.series.forEach((E,C)=>{let D=ye(E.values[b]),A=Math.min(u(D),f);T=Math.max(T,u(D));let se=Math.max(D===0?0:1,Math.abs(u(D)-f)),O=s+p*b+h/2+C*v;g.push(`<rect class="v-chart-barh" x="${k(A)}" y="${k(O)}" width="${k(se)}" height="${k(v*.86)}" rx="${k(Math.min(4,v/2))}" fill="${I(E.color)}" style="transform-origin:${k(f)}px ${k(O+v/2)}px;transition-delay:${b*30}ms">`+Tn(`${E.name} ${Ve(e.dataset.labels,b)}`,D,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${k(A+se+6)}" y="${k(O+v*.6)}">${I(De(D,e.format))}</text>`)}),e.hits.push({x:T,y:s+p*b+p/2,title:Ve(e.dataset.labels,b),rows:e.dataset.series.map(E=>({name:E.name,color:E.color,value:ye(E.values[b])}))})}return g.join("")}function sy(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return En(e);let n=e.type==="donut",r=t.values.map(f=>Math.max(0,ye(f))),o=r.reduce((f,p)=>f+p,0);if(o<=0)return En(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${k(i)}px ${k(s)}px`,d=[],u=-Math.PI/2;return r.forEach((f,p)=>{let m=f/o*Math.PI*2,h=e.palette[p%e.palette.length],v=Ve(e.dataset.labels,p),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${p}" cx="${k(i)}" cy="${k(s)}" r="${k((a+l)/2)}" fill="none" stroke="${I(h)}" stroke-width="${k(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${p}" cx="${k(i)}" cy="${k(s)}" r="${k(a)}" fill="${I(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${p}" d="${ey(i,s,a,l,u,u+m)}" fill="${I(h)}" style="${c};transition-delay:${p*45}ms">`;d.push(`${b}${Tn(v,f,e.format)}${g?"</circle>":"</path>"}`);let x=u+m/2,[T,E]=ct(i,s,(a+l)/2,x);if(e.hits.push({x:T,y:E,title:v,rows:[{name:v,color:h,value:f}]}),e.options.showValues&&m>.3){let[C,D]=ct(i,s,n?(a+l)/2:a*.68,x),A=Math.round(f/o*100);d.push(`<text class="v-chart-value" x="${k(C)}" y="${k(D+4)}" text-anchor="middle">${A}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${k(i)}" y="${k(s+2)}" text-anchor="middle">${I(De(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${k(i)}" y="${k(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function ay(e){let t=ho(e.dataset);if(t<3)return En(e);let r=Vl(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(ct(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${k(u[0])},${k(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=ct(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${k(o)}" y1="${k(i)}" x2="${k(d)}" y2="${k(u)}"/>`);let f=e.dataset.labels[c];if(f){let[p,m]=ct(o,i,s+14,a(c)),h=Math.abs(p-o)<4?"middle":p>o?"start":"end";l.push(`<text class="v-chart-axis" x="${k(p)}" y="${k(m+4)}" text-anchor="${h}">${I(f)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let f=kn(ye(c.values[u])/r,0,1);d.push(ct(o,i,s*f,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${k(u[0])},${k(u[1])}`).join(" ")}" fill="${I(c.color)}" fill-opacity="0.22" stroke="${I(c.color)}" style="transform-origin:${k(o)}px ${k(i)}px"/>`),d.forEach((u,f)=>{l.push(`<circle class="v-chart-point" data-hit="${f}" cx="${k(u[0])}" cy="${k(u[1])}" r="3.5" fill="${I(c.color)}">`+Tn(`${c.name} ${Ve(e.dataset.labels,f)}`,ye(c.values[f]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=ct(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:Ve(e.dataset.labels,c),rows:e.dataset.series.map(f=>({name:f.name,color:f.color,value:ye(f.values[c])}))})}return l.join("")}function ly(e){let t=ho(e.dataset);if(t===0)return En(e);let n=Ul(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let f=s(c,u),p=n.y(ye(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${k(f)}" cy="${k(p)}" r="4.5" fill="${I(c.color)}" style="transform-origin:${k(f)}px ${k(p)}px">`+Tn(`${c.name} ${Ve(e.dataset.labels,u)}`,ye(d),e.format)+"</circle>"),e.hits.push({x:f,y:p,title:Ve(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:ye(d)}]}),l++});return i||a.push(_l(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function cy(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?ye(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=kn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,f=u*(1-i),p=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:p,value:n}]}),`<circle class="v-chart-track" cx="${k(s)}" cy="${k(a)}" r="${k(d)}" stroke-width="${k(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${k(s)}" cy="${k(a)}" r="${k(d)}" fill="none" stroke="${I(p)}" stroke-width="${k(c)}" stroke-linecap="round" stroke-dasharray="${k(u)}" style="--v-ring-full:${k(u)};--v-ring-offset:${k(f)};transform:rotate(-90deg);transform-origin:${k(s)}px ${k(a)}px">`+Tn((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${k(s)}" y="${k(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${k(s)}" y="${k(a+22)}" text-anchor="middle">${I(De(n,e.format))}</text>`:"")}var dy=new Set(["pie","donut","scatter","progress","radar"]);function uy(e){return e==="sparkline"?56:260}function fy(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var py={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function my(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${py[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${De(s,n)}, maximum ${De(a,n)}, average ${De(c,n)}.`)}return o.join(" ")}function vy(e){switch(e.type){case"bar":case"stacked":return oy(e);case"column":return iy(e);case"pie":case"donut":return sy(e);case"radar":return ay(e);case"scatter":return ly(e);case"progress":return cy(e);default:return ry(e)}}function hy(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${I(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}</button>`}).join("")}</div>`}function cs(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:vo,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:t.clientHeight||uy(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=Xb(n,r),c=Gb(l,o),d=Qb(l,e.hidden,o),u=n.animate!==!1&&!Wb();e.hits=[],e.shapeHits=dy.has(r),e.hitAxis=r==="column"?"y":"x";let f={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},p=vy(f),m=my(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${I(m)}">`,p,"</svg>"];fy(n,l)&&h.push(hy(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function gy(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}<b>${I(De(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${I(e.title)}</div>${n.join("")}`}function bp(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function by(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){bp(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=gy(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function yy(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),cs(e))},r=i=>by(e,i),o=()=>bp(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function xy(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,cs(e)}))});t.observe(e.el),e.observer=t}function hr(e,t){ge(),Z("charts",Kb);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return yy(n),cs(n),xy(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),cs(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function tt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function vr(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function wy(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=tt(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=tt(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=tt(e,"chart-format");s&&(r.format=s);let a=tt(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=tt(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=tt(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=tt(e,"chart-smooth");d!==null&&(r.smooth=vr(d,!0));let u=tt(e,"chart-grid");u!==null&&(r.showGrid=vr(u,!0));let f=tt(e,"chart-legend");f!==null&&(r.showLegend=vr(f,!0));let p=tt(e,"chart-values");p!==null&&(r.showValues=vr(p,!0));let m=tt(e,"chart-tooltip");m!==null&&(r.tooltip=vr(m,!0));let h=tt(e,"chart-animate");return h!==null&&(r.animate=vr(h,!0)),r}function jl(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=jl(r,t+1);return n}for(let r of Object.values(e))n+=jl(r,t+1);return n}y("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();jl(i);let s=wy(e,i);o?o.update(s):o=hr(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Wl={render:hr,format:De,colors:vo};de();ce();Ae();Ae();ce();var ky=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Ey=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Ty=/^rgba?\(([^)]+)\)$/i,Ly=/^hsla?\(([^)]+)\)$/i;function yp(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function My(e,t,n){let r=(e%360+360)%360,o=Ue(t/100,0,1),i=Ue(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,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,f,p]=d[c];return{r:Math.round((u+l)*255),g:Math.round((f+l)*255),b:Math.round((p+l)*255)}}function wt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=ky.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=Ey.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Ty.exec(t);if(o){let[s,a,l]=yp(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:Ue(s,0,255),g:Ue(a,0,255),b:Ue(l,0,255)}}let i=Ly.exec(t);if(i){let[s,a,l]=yp(i[1]);return s===void 0||a===void 0||l===void 0?null:My(s,a,l)}return null}function Ue(e,t,n){return e<t?t:e>n?n:e}function yr(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Kl(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Sy(e){let t=yr(e.r),n=yr(e.g),r=yr(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 Cy(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:Kl(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Kl(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Kl(-.0041960863*o-.7034186147*i+1.707614701*s)}}function us(e){let t=Sy(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 xp(e){let t=e.h*Math.PI/180;return Cy({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function br(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=xp({l:Ue(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(Ue(o.r,0,1)*255),g:Math.round(Ue(o.g,0,1)*255),b:Math.round(Ue(o.b,0,1)*255)};t*=.92}let n=xp({l:Ue(e.l,0,1),c:0,h:e.h});return{r:Math.round(Ue(n.r,0,1)*255),g:Math.round(Ue(n.g,0,1)*255),b:Math.round(Ue(n.b,0,1)*255)}}function Yl(e){return Ue(Math.round(e),0,255).toString(16).padStart(2,"0")}function Ln(e){return`#${Yl(e.r)}${Yl(e.g)}${Yl(e.b)}`}function gr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Lp(e){return Ln(br(e))}function Gl(e){return .2126*yr(e.r)+.7152*yr(e.g)+.0722*yr(e.b)}function Ql(e,t){let n=typeof e=="string"?wt(e):e,r=typeof t=="string"?wt(t):t;if(!n||!r)return 1;let o=Gl(n),i=Gl(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var Mp={r:255,g:255,b:255},fs={r:0,g:0,b:0};function go(e){let t=typeof e=="string"?wt(e):e;return t?Ql(t,Mp)>=Ql(t,fs)?"#ffffff":"#000000":"#ffffff"}var Jl=[50,100,200,300,400,500,600,700,800,900],Sp=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Ay=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],Cp=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Ry=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function Ap(e,t=!1){var a;let n=typeof e=="string"?(a=wt(e))!=null?a:fs:e,r=us(n),o=t?Cp:Sp,i=t?Ry:Ay,s={};return Jl.forEach((l,c)=>{s[String(l)]=Lp({l:o[c],c:r.c*i[c],h:r.h})}),s}var ps={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"}},Rp=["primary","accent","success","warning","danger","info"],Zl="voodoo:palette",wp="voodoo-palette",$y="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Dy="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function kp(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Py=/^([\d.]+)(px|rem|em)$/;function Hy(e){let t=(e||"12px").trim(),n=Py.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 Ep(e,t){var c,d,u,f;let n={},r={},o={};for(let p of Rp){let m=(c=wt(e[p]))!=null?c:fs,h=us(m),v=Ap(m,t);r[p]=v;for(let O of Jl)n[`--v-${p}-${O}`]=v[String(O)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},x=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=br(g),E=br(b),C=br(x);n[`--v-${p}`]=Ln(t?T:m),n[`--v-${p}-hover`]=Ln(E),n[`--v-${p}-active`]=Ln(C),n[`--v-${p}-contrast`]=go(t?T:m),n[`--v-${p}-contrast-hover`]=go(E),n[`--v-${p}-contrast-active`]=go(C);let D=v[50],A=v[100],se=t?v[800]:v[700];n[`--v-${p}-soft`]=D,n[`--v-${p}-soft-hover`]=A,n[`--v-${p}-soft-text`]=se,n[`--v-${p}-ring`]=gr(T,t?.45:.32),n[`--v-${p}-border`]=t?v[300]:v[200],o[p]=n[`--v-${p}-contrast`]}let i=(u=wt((d=e.neutral)!=null?d:e.primary))!=null?u:fs,s=us(i).h,a=(p,m)=>Lp({l:p,c:m,h:s}),l={};if(Jl.forEach((p,m)=>{let h=t?Cp:Sp;l[String(p)]=a(h[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=br({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"]=Ln(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"]=gr(p,.45),n["--v-shadow-sm"]=`0 1px 2px ${gr(p,.08)}`,n["--v-shadow"]=`0 10px 30px ${gr(p,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${gr(p,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=go((f=wt(n["--v-surface"]))!=null?f:Mp),{vars:n,scales:r,contrast:o}}function Xl(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
369
373
|
`);return`${e} {
|
|
370
374
|
${n}
|
|
371
|
-
}`}var
|
|
372
|
-
${
|
|
373
|
-
}`,
|
|
374
|
-
`);
|
|
375
|
+
}`}var yo=null,bo=null;function Ny(e){var r,o,i,s,a,l,c,d,u;let t=(r=ps[e.preset])!=null?r:ps.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:(d=e.neutral)!=null?d:t.neutral};for(let f of Rp)wt(n[f])||(console.warn(`[Voodoo] invalid color in palette.${f}: "${n[f]}". Using preset.`),n[f]=t[f]);return{colors:n,radius:(u=e.radius)!=null?u:"12px",font:kp(e.font,$y),mono:kp(e.monoFont,Dy)}}function Oy(e){if(typeof document=="undefined"||!w.injectStyles)return;ge();let t=document.getElementById(wp);t||(t=document.createElement("style"),t.id=wp,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function ds(e={}){let{colors:t,radius:n,font:r,mono:o}=Ny(e),i=Ep(t,!1),s=Ep(t,!0),a={...Hy(n),"--v-font-sans":r,"--v-font-mono":o},l=["/* Palette generated by V.palette(). Do not edit manually. */",Xl(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
376
|
+
${Xl(':root:not([data-theme="light"])',s.vars)}
|
|
377
|
+
}`,Xl(':root[data-theme="dark"]',s.vars)].join(`
|
|
378
|
+
`);Oy(l);let c={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:l};if(yo=c,bo={...e},e.persist!==!1&&typeof document!="undefined"){let d={...e};delete d.persist,fe.set(Zl,d)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:c})),c}var Tp=!1;function ec(){if(yo&&Tp)return yo;Tp=!0;let e=fe.get(Zl),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return ds(t)}function xo(){yo||ec()}function $p(){return ec()}var Dp=Object.assign(ds,{presets:ps,get names(){return Object.keys(ps)},get current(){return yo},get options(){return bo},init:ec,ensure:xo,reset(){return fe.remove(Zl),ds({persist:!1})},use(e){return ds({...bo!=null?bo:{},preset:e,primary:void 0,accent:void 0})},scale:Ap,contrastText:go,contrastRatio:Ql,luminance(e){let t=typeof e=="string"?wt(e):e;return t?Gl(t):0},convert:{parseColor:wt,rgbToOklch:us,oklchToRgb:br,toHex:Ln,toRgba:gr}});function re(e){if(e===!0)return!0;if(e===!1||e===null||e===void 0)return!1;if(typeof e=="number")return e!==0;let t=String(e).trim().toLowerCase();return t===""||t==="true"||t==="1"||t==="yes"}function be(...e){let t={};for(let n of e){let r=`is${n.charAt(0).toUpperCase()}${n.slice(1)}`;t[r]=function(){return re(this[n])}}return t}var F={type:"any",default:!1},L={type:"string",default:""};function xr(e,t){var i;if(t==null||typeof t!="string")return t;let n=t.trim();if(!n)return null;if(n.startsWith("[")||n.startsWith("{"))try{return JSON.parse(n)}catch(s){return null}let r=n.split(/[.[(]/)[0].trim();if(!/^[A-Za-z_$][\w$]*$/.test(r))return null;let o=(i=e.$scope)==null?void 0:i.parent;return!o||!o.has(r)?null:q(n,o,"list attribute")}function ko(e){return String(e).split(",").map(t=>t.trim()).filter(Boolean)}function Zt(e,t){let n=e.$el;Object.defineProperty(n,"value",{configurable:!0,enumerable:!1,get:t.get,set:t.set})}function wo(e){e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}var Np={check:'<path d="m5 12.5 4.4 4.4L19 7.6"/>',x:'<path d="M6 6l12 12M18 6 6 18"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 4 4"/>',"chevron-down":'<path d="m6 9.5 6 6 6-6"/>',"chevron-up":'<path d="m6 14.5 6-6 6 6"/>',"chevron-left":'<path d="m14.5 6-6 6 6 6"/>',"chevron-right":'<path d="m9.5 6 6 6-6 6"/>',"arrow-up":'<path d="M12 19V5M6 11l6-6 6 6"/>',"arrow-down":'<path d="M12 5v14M6 13l6 6 6-6"/>',"arrow-right":'<path d="M5 12h14M13 6l6 6-6 6"/>',"arrow-left":'<path d="M19 12H5M11 6l-6 6 6 6"/>',user:'<circle cx="12" cy="8.5" r="3.6"/><path d="M4.8 20a7.4 7.4 0 0 1 14.4 0"/>',users:'<circle cx="9.5" cy="8.5" r="3.2"/><path d="M3.4 19.5a6.4 6.4 0 0 1 12.2 0M16 5.6a3.2 3.2 0 0 1 0 5.9M17.4 14.4a6.4 6.4 0 0 1 3.2 5.1"/>',mail:'<rect x="3" y="5" width="18" height="14" rx="2.5"/><path d="m3.8 7 8.2 6 8.2-6"/>',lock:'<rect x="4.5" y="10.5" width="15" height="9.5" rx="2.4"/><path d="M8 10.5V8a4 4 0 0 1 8 0v2.5"/>',eye:'<path d="M2.6 12S6.4 5.8 12 5.8 21.4 12 21.4 12 17.6 18.2 12 18.2 2.6 12 2.6 12Z"/><circle cx="12" cy="12" r="2.8"/>',"eye-off":'<path d="M4 4l16 16M9.9 6.2A9.3 9.3 0 0 1 12 6c5.6 0 9.4 6 9.4 6a17 17 0 0 1-3.3 3.9M6.3 8.2A17 17 0 0 0 2.6 12S6.4 18 12 18c1 0 1.9-.2 2.7-.5"/>',calendar:'<rect x="3.5" y="5" width="17" height="15" rx="2.4"/><path d="M8 3v4M16 3v4M3.5 10h17"/>',clock:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.4V12l3 1.8"/>',star:'<path d="m12 4 2.5 5.2 5.5.8-4 3.9 1 5.6-5-2.7-5 2.7 1-5.6-4-3.9 5.5-.8z"/>',info:'<circle cx="12" cy="12" r="8.6"/><path d="M12 11v5.2M12 7.6v.2"/>',alert:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.5v5M12 16.4v.2"/>',warning:'<path d="M12 4.4 2.8 19.6h18.4z"/><path d="M12 10v3.8M12 16.9v.2"/>',trash:'<path d="M4.5 7h15M9.5 7V5.2A1.2 1.2 0 0 1 10.7 4h2.6a1.2 1.2 0 0 1 1.2 1.2V7M6.6 7l.8 12a1.6 1.6 0 0 0 1.6 1.5h6a1.6 1.6 0 0 0 1.6-1.5l.8-12"/>',edit:'<path d="M4.5 19.5h4l10-10a2.1 2.1 0 0 0-3-3l-10 10z"/><path d="M14 6.5 17.5 10"/>',copy:'<rect x="8.5" y="8.5" width="11.5" height="11.5" rx="2.2"/><path d="M15.5 5.5A1.5 1.5 0 0 0 14 4H6a2 2 0 0 0-2 2v8a1.5 1.5 0 0 0 1.5 1.5"/>',download:'<path d="M12 4v11M7.5 11 12 15.5 16.5 11M4.5 19.5h15"/>',upload:'<path d="M12 20V8.5M7.5 12.5 12 8l4.5 4.5M4.5 4.5h15"/>',settings:'<circle cx="12" cy="12" r="3.1"/><path d="M19.6 14.4a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.03 1.56V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06A2 2 0 1 1 4.15 16.9l.06-.06a1.7 1.7 0 0 0 .34-1.87A1.7 1.7 0 0 0 3 13.94H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.55-1.1 1.7 1.7 0 0 0-.34-1.87l-.06-.06A2 2 0 1 1 7.08 4.08l.06.06a1.7 1.7 0 0 0 1.87.34H9a1.7 1.7 0 0 0 1-1.56V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.7 1.7 0 0 0-.34 1.87V10a1.7 1.7 0 0 0 1.56 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.3 1z"/>',home:'<path d="M4 10.5 12 4l8 6.5V19a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 19z"/><path d="M9.6 20.5v-6h4.8v6"/>',heart:'<path d="M12 20s-7.5-4.6-7.5-9.4A4.1 4.1 0 0 1 12 8.2a4.1 4.1 0 0 1 7.5 2.4C19.5 15.4 12 20 12 20Z"/>',bell:'<path d="M18 9a6 6 0 1 0-12 0c0 5.2-2 6.5-2 6.5h16S18 14.2 18 9"/><path d="M13.7 19.5a2 2 0 0 1-3.4 0"/>',filter:'<path d="M4 5.5h16l-6.2 7.3v5.3l-3.6 2v-7.3z"/>',external:'<path d="M14 4.5h5.5V10M19 5l-8 8"/><path d="M18 13.5V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18V7.5A1.5 1.5 0 0 1 6 6h4.5"/>',refresh:'<path d="M20 11a8 8 0 0 0-13.7-4.8L4 8.4"/><path d="M4 4.5v4h4M4 13a8 8 0 0 0 13.7 4.8L20 15.6"/><path d="M20 19.5v-4h-4"/>',folder:'<path d="M4 7.5A1.5 1.5 0 0 1 5.5 6h3.7l2 2.4h7.3A1.5 1.5 0 0 1 20 9.9v7.6a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z"/>',file:'<path d="M13.5 4H7a1.5 1.5 0 0 0-1.5 1.5v13A1.5 1.5 0 0 0 7 20h10a1.5 1.5 0 0 0 1.5-1.5V9z"/><path d="M13.5 4v5h5"/>',image:'<rect x="4" y="5" width="16" height="14" rx="2.2"/><circle cx="9" cy="10" r="1.7"/><path d="m5 17 4.6-4.3 3.4 3 2.6-2.3L19 17"/>',link:'<path d="M10.6 13.4a3.6 3.6 0 0 0 5.1 0l2.4-2.4a3.6 3.6 0 0 0-5.1-5.1l-1.3 1.3"/><path d="M13.4 10.6a3.6 3.6 0 0 0-5.1 0l-2.4 2.4a3.6 3.6 0 0 0 5.1 5.1l1.3-1.3"/>',menu:'<path d="M4 7h16M4 12h16M4 17h16"/>',more:'<circle cx="6" cy="12" r="1.4"/><circle cx="12" cy="12" r="1.4"/><circle cx="18" cy="12" r="1.4"/>',logout:'<path d="M14.5 8V6a1.5 1.5 0 0 0-1.5-1.5H6A1.5 1.5 0 0 0 4.5 6v12A1.5 1.5 0 0 0 6 19.5h7a1.5 1.5 0 0 0 1.5-1.5v-2"/><path d="M9.5 12h10.5M16.5 8.5 20 12l-3.5 3.5"/>',card:'<rect x="3" y="6" width="18" height="12" rx="2.4"/><path d="M3 10h18"/>',chart:'<path d="M4.5 19.5h15"/><path d="M7.5 19.5V11M12 19.5V5.5M16.5 19.5v-6"/>',box:'<path d="M20 8.6 12 4 4 8.6v6.8L12 20l8-4.6z"/><path d="m4 8.6 8 4.6 8-4.6M12 13.2V20"/>',inbox:'<path d="M4 13.5h4l1.4 2.4h5.2l1.4-2.4h4"/><path d="M4.6 13.5 7 5.6A1.5 1.5 0 0 1 8.5 4.5h7A1.5 1.5 0 0 1 17 5.6l2.4 7.9V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18z"/>'};function Fy(e){let t=String(e!=null?e:"").trim();if(!t)return"";let n=Np[t];return n?`<svg class="v-ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.85" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${n}</svg>`:""}var Iy=`
|
|
375
379
|
.v-ic{width:1em;height:1em;flex:none}
|
|
376
380
|
.v-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
377
381
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
@@ -876,7 +880,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
876
880
|
.v-skeleton,.v-spinner,.v-btn-spin{animation-duration:1.6s}
|
|
877
881
|
.v-progress[data-indeterminate="true"] .v-progress-bar{animation-duration:2.4s}
|
|
878
882
|
}
|
|
879
|
-
`,
|
|
883
|
+
`,Pp=!1;function zy(){Pp||(Pp=!0,ge(),xo(),Z("components",Iy))}function ie(e,t){var r;let n=t.beforeMount;t.methods={svgIcon:o=>Fy(o),hasFlag:o=>re(o),...(r=t.methods)!=null?r:{}},t.beforeMount=function(){zy(),n==null||n.call(this)},jt(e,t)}ie("v-button",{props:{variant:{type:"string",default:"primary"},size:{type:"string",default:"md"},icon:L,iconRight:L,type:{type:"string",default:"button"},loading:F,disabled:F,block:F,rounded:F,ariaLabel:L},computed:{...be("loading","disabled","block","rounded"),blocked(){return re(this.disabled)||re(this.loading)}},template:`
|
|
880
884
|
<button class="v-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
881
885
|
:data-block="isBlock" :data-rounded="isRounded" :disabled="blocked"
|
|
882
886
|
:aria-busy="isLoading" :aria-label="ariaLabel || null">
|
|
@@ -885,13 +889,13 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
885
889
|
<span class="v-btn-label"><slot></slot></span>
|
|
886
890
|
<span class="v-btn-ic" v-if="iconRight" v-html="svgIcon(iconRight)"></span>
|
|
887
891
|
</button>
|
|
888
|
-
`});ie("v-icon-button",{props:{icon:{type:"string",default:"more"},label:L,variant:{type:"string",default:"ghost"},size:{type:"string",default:"md"},type:{type:"string",default:"button"},disabled:F,loading:F,rounded:F},computed:{...be("disabled","loading","rounded"),blocked(){return
|
|
892
|
+
`});ie("v-icon-button",{props:{icon:{type:"string",default:"more"},label:L,variant:{type:"string",default:"ghost"},size:{type:"string",default:"md"},type:{type:"string",default:"button"},disabled:F,loading:F,rounded:F},computed:{...be("disabled","loading","rounded"),blocked(){return re(this.disabled)||re(this.loading)},accessibleName(){return this.label||this.icon||"Action"}},template:`
|
|
889
893
|
<button class="v-icon-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
890
894
|
:data-rounded="isRounded" :disabled="blocked" :aria-label="accessibleName" :title="label || null">
|
|
891
895
|
<span class="v-btn-spin" v-if="isLoading" aria-hidden="true"></span>
|
|
892
896
|
<span v-if="!isLoading" v-html="svgIcon(icon)"></span>
|
|
893
897
|
</button>
|
|
894
|
-
`});ie("v-card",{props:{title:L,subtitle:L,icon:L,padded:{type:"any",default:!0},hoverable:F},computed:{...be("hoverable"),isPadded(){return this.padded===!0||
|
|
898
|
+
`});ie("v-card",{props:{title:L,subtitle:L,icon:L,padded:{type:"any",default:!0},hoverable:F},computed:{...be("hoverable"),isPadded(){return this.padded===!0||re(this.padded)}},template:`
|
|
895
899
|
<div class="v-card" :data-hoverable="isHoverable" :data-padded="isPadded">
|
|
896
900
|
<div class="v-card-head" v-if="title || subtitle || icon">
|
|
897
901
|
<span class="v-card-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
@@ -919,7 +923,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
919
923
|
<p class="v-hint" v-if="hint && !error" v-text="hint"></p>
|
|
920
924
|
<p class="v-error-text" v-if="error" role="alert" v-text="error"></p>
|
|
921
925
|
</div>
|
|
922
|
-
`});ie("v-input",{props:{label:L,type:{type:"string",default:"text"},placeholder:L,hint:L,error:L,value:L,name:L,id:L,icon:L,suffix:L,size:{type:"string",default:"md"},autocomplete:L,inputmode:L,maxlength:L,min:L,max:L,step:L,required:F,disabled:F,readonly:F,clearable:F},state(e){return{fieldId:e.id||le("v-input-")}},computed:{...be("required","disabled","readonly","clearable"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null}},methods:{clear(){this.value="",
|
|
926
|
+
`});ie("v-input",{props:{label:L,type:{type:"string",default:"text"},placeholder:L,hint:L,error:L,value:L,name:L,id:L,icon:L,suffix:L,size:{type:"string",default:"md"},autocomplete:L,inputmode:L,maxlength:L,min:L,max:L,step:L,required:F,disabled:F,readonly:F,clearable:F},state(e){return{fieldId:e.id||le("v-input-")}},computed:{...be("required","disabled","readonly","clearable"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null}},methods:{clear(){this.value="",wo(this.$el),this.emit("clear")}},beforeMount(){Zt(this,{get:()=>this.value,set:e=>{this.value=e==null?"":String(e)}})},template:`
|
|
923
927
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
924
928
|
<label class="v-label" v-if="label" :for="fieldId">
|
|
925
929
|
<span v-text="label"></span>
|
|
@@ -940,7 +944,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
940
944
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
941
945
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
942
946
|
</div>
|
|
943
|
-
`});ie("v-textarea",{props:{label:L,placeholder:L,hint:L,error:L,value:L,name:L,id:L,rows:{type:"number",default:4},maxlength:L,size:{type:"string",default:"md"},resize:{type:"string",default:"vertical"},required:F,disabled:F,readonly:F,counter:F},state(e){return{fieldId:e.id||le("v-textarea-")}},computed:{...be("required","disabled","readonly","counter"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},counterText(){var t;let e=String((t=this.value)!=null?t:"").length;return this.maxlength?`${e}/${this.maxlength}`:String(e)}},beforeMount(){
|
|
947
|
+
`});ie("v-textarea",{props:{label:L,placeholder:L,hint:L,error:L,value:L,name:L,id:L,rows:{type:"number",default:4},maxlength:L,size:{type:"string",default:"md"},resize:{type:"string",default:"vertical"},required:F,disabled:F,readonly:F,counter:F},state(e){return{fieldId:e.id||le("v-textarea-")}},computed:{...be("required","disabled","readonly","counter"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},counterText(){var t;let e=String((t=this.value)!=null?t:"").length;return this.maxlength?`${e}/${this.maxlength}`:String(e)}},beforeMount(){Zt(this,{get:()=>this.value,set:e=>{this.value=e==null?"":String(e)}})},template:`
|
|
944
948
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
945
949
|
<label class="v-label" v-if="label" :for="fieldId">
|
|
946
950
|
<span v-text="label"></span>
|
|
@@ -956,7 +960,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
956
960
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
957
961
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
958
962
|
</div>
|
|
959
|
-
`});function
|
|
963
|
+
`});function By(e){return e?(Array.isArray(e)?e:typeof e=="string"?ko(e):[]).map(n=>{var r,o,i,s,a,l,c,d;if(n!=null&&typeof n=="object"){let u=n,f=(s=(i=(o=(r=u.value)!=null?r:u.id)!=null?o:u.key)!=null?i:u.label)!=null?s:"",p=(d=(c=(l=(a=u.label)!=null?a:u.text)!=null?l:u.name)!=null?c:u.title)!=null?d:f;return{value:String(f),label:String(p),disabled:re(u.disabled)}}return{value:String(n),label:String(n),disabled:!1}}):[]}ie("v-select",{inheritScope:!0,props:{label:L,placeholder:{type:"string",default:"Select"},searchPlaceholder:{type:"string",default:"Search..."},emptyText:{type:"string",default:"No options found"},options:{type:"any",default:""},value:{type:"any",default:""},hint:L,error:L,name:L,id:L,size:{type:"string",default:"md"},multiple:F,searchable:F,clearable:F,disabled:F,required:F},state(e){let t=e.id||le("v-select-"),n=e.value;return{open:!1,query:"",activeIndex:-1,selected:Array.isArray(n)||n==null?"":String(n),selectedList:Array.isArray(n)?n.map(String):[],fieldId:t}},computed:{...be("multiple","searchable","clearable","disabled","required"),listId(){return`${this.fieldId}-list`},labelId(){return`${this.fieldId}-label`},hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},allOptions(){var e;return By((e=xr(this,this.options))!=null?e:this.options)},filtered(){var t;let e=String((t=this.query)!=null?t:"").trim().toLowerCase();return e?this.allOptions.filter(n=>n.label.toLowerCase().includes(e)):this.allOptions},currentValue(){return re(this.multiple)?this.selectedList:this.selected},hasSelection(){return re(this.multiple)?this.selectedList.length>0:this.selected!==""},display(){if(!this.hasSelection)return this.placeholder;let e=t=>{let n=this.allOptions.find(r=>r.value===String(t));return n?n.label:String(t)};return re(this.multiple)?this.selectedList.map(e).join(", "):e(this.selected)},activeId(){return!this.open||this.activeIndex<0||this.activeIndex>=this.filtered.length?null:`${this.listId}-opt-${this.activeIndex}`}},methods:{optionId(e){return`${this.listId}-opt-${e}`},isSelected(e){return re(this.multiple)?this.selectedList.indexOf(String(e))>-1:this.selected===String(e)},openList(){if(re(this.disabled)||this.open)return;this.open=!0,this.query="";let e=this.filtered.findIndex(t=>this.isSelected(t.value));this.activeIndex=e>-1?e:0,ft(()=>{let t=this.$refs.search;t&&t.focus()})},closeList(){this.open&&(this.open=!1,this.activeIndex=-1)},closeAndFocus(){let e=this.open;this.closeList(),e&&ft(()=>{let t=this.$refs.trigger;t&&t.focus()})},toggleList(){this.open?this.closeAndFocus():this.openList()},choose(e){if(!(!e||e.disabled)){if(re(this.multiple)){let t=[...this.selectedList],n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),this.selectedList=t}else this.selected=e.value,this.closeAndFocus();wo(this.$el),this.emit("change",this.currentValue)}},clear(){this.selected="",this.selectedList=[],wo(this.$el),this.emit("change",this.currentValue)},move(e){let t=this.filtered;if(!t.length)return;let n=this.activeIndex+e;n<0&&(n=t.length-1),n>=t.length&&(n=0),this.activeIndex=n},onKey(e){let t=e.key;if(t==="Escape"){e.preventDefault(),this.closeAndFocus();return}if(t==="ArrowDown"||t==="ArrowUp"){e.preventDefault(),this.open?this.move(t==="ArrowDown"?1:-1):this.openList();return}if(t==="Home"||t==="End"){if(!this.open)return;e.preventDefault(),this.activeIndex=t==="Home"?0:this.filtered.length-1;return}if(t==="Enter"){e.preventDefault(),this.open?this.choose(this.filtered[this.activeIndex]):this.openList();return}if(t===" "&&!re(this.searchable)){e.preventDefault(),this.toggleList();return}t==="Tab"&&this.open&&this.closeList()}},beforeMount(){Zt(this,{get:()=>this.currentValue,set:e=>{if(re(this.multiple)){this.selectedList=Array.isArray(e)?e.map(String):ko(String(e!=null?e:""));return}this.selected=e==null?"":String(e)}})},template:`
|
|
960
964
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
961
965
|
<label class="v-label" :id="labelId" v-if="label" v-click="openList">
|
|
962
966
|
<span v-text="label"></span>
|
|
@@ -1004,7 +1008,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1004
1008
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
1005
1009
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
1006
1010
|
</div>
|
|
1007
|
-
`});ie("v-checkbox",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:"on"},checked:F,disabled:F,required:F},state(e){return{fieldId:e.id||le("v-check-")}},computed:{...be("checked","disabled","required")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){
|
|
1011
|
+
`});ie("v-checkbox",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:"on"},checked:F,disabled:F,required:F},state(e){return{fieldId:e.id||le("v-check-")}},computed:{...be("checked","disabled","required")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){Zt(this,{get:()=>re(this.checked),set:e=>{this.checked=re(e)}})},template:`
|
|
1008
1012
|
<label class="v-check" :for="fieldId" :data-disabled="isDisabled" :data-error="!!error">
|
|
1009
1013
|
<span class="v-check-slot">
|
|
1010
1014
|
<input type="checkbox" class="v-check-native" :id="fieldId" :name="name || null"
|
|
@@ -1017,7 +1021,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1017
1021
|
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1018
1022
|
</span>
|
|
1019
1023
|
</label>
|
|
1020
|
-
`});ie("v-radio",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:""},checked:F,disabled:F,required:F},state(e){var t;return{fieldId:e.id||le("v-radio-"),selected:
|
|
1024
|
+
`});ie("v-radio",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:""},checked:F,disabled:F,required:F},state(e){var t;return{fieldId:e.id||le("v-radio-"),selected:re(e.checked)?String((t=e.value)!=null?t:""):""}},computed:{...be("disabled","required"),isChecked(){var e;return this.selected!==""&&this.selected===String((e=this.value)!=null?e:"")}},methods:{onPick(){var e;this.selected=String((e=this.value)!=null?e:""),this.emit("change",this.selected)}},beforeMount(){Zt(this,{get:()=>this.selected,set:e=>{this.selected=e==null?"":String(e)}})},template:`
|
|
1021
1025
|
<label class="v-check" :for="fieldId" data-shape="round"
|
|
1022
1026
|
:data-disabled="isDisabled" :data-error="!!error">
|
|
1023
1027
|
<span class="v-check-slot">
|
|
@@ -1031,7 +1035,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1031
1035
|
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1032
1036
|
</span>
|
|
1033
1037
|
</label>
|
|
1034
|
-
`});ie("v-switch",{props:{label:L,description:L,name:L,id:L,size:{type:"string",default:"md"},checked:F,disabled:F},state(e){return{fieldId:e.id||le("v-switch-")}},computed:{...be("checked","disabled")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){
|
|
1038
|
+
`});ie("v-switch",{props:{label:L,description:L,name:L,id:L,size:{type:"string",default:"md"},checked:F,disabled:F},state(e){return{fieldId:e.id||le("v-switch-")}},computed:{...be("checked","disabled")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){Zt(this,{get:()=>re(this.checked),set:e=>{this.checked=re(e)}})},template:`
|
|
1035
1039
|
<label class="v-check" :for="fieldId" :data-size="size" :data-disabled="isDisabled">
|
|
1036
1040
|
<span class="v-check-slot">
|
|
1037
1041
|
<input type="checkbox" role="switch" class="v-check-native" :id="fieldId"
|
|
@@ -1058,7 +1062,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1058
1062
|
<button type="button" class="v-tag-close" v-if="isClosable" :aria-label="removeLabel"
|
|
1059
1063
|
v-click="remove" v-html="svgIcon('x')"></button>
|
|
1060
1064
|
</span>
|
|
1061
|
-
`});var
|
|
1065
|
+
`});var jy={info:"info",primary:"info",success:"check",warning:"warning",danger:"alert",neutral:"info"};ie("v-alert",{props:{tone:{type:"string",default:"info"},title:L,icon:L,closable:F,closeLabel:{type:"string",default:"Close alert"}},state(){return{visible:!0}},computed:{...be("closable"),resolvedIcon(){return this.icon==="none"?"":this.icon||jy[this.tone]||"info"},liveRole(){return this.tone==="danger"?"alert":"status"}},methods:{dismiss(){this.visible=!1,this.emit("close")}},template:`
|
|
1062
1066
|
<div class="v-alert" v-show="visible" :data-tone="tone" :role="liveRole">
|
|
1063
1067
|
<span class="v-alert-icon" v-if="resolvedIcon" v-html="svgIcon(resolvedIcon)" aria-hidden="true"></span>
|
|
1064
1068
|
<div class="v-alert-body">
|
|
@@ -1068,7 +1072,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1068
1072
|
<button type="button" class="v-alert-close" v-if="isClosable" :aria-label="closeLabel"
|
|
1069
1073
|
v-click="dismiss" v-html="svgIcon('x')"></button>
|
|
1070
1074
|
</div>
|
|
1071
|
-
`});var
|
|
1075
|
+
`});var Hp=["primary","accent","success","warning","danger","info"];ie("v-avatar",{props:{name:L,src:L,alt:L,size:{type:"string",default:"md"},shape:{type:"string",default:"circle"},status:L},state(){return{failed:!1}},computed:{initials(){var t;let e=String((t=this.name)!=null?t:"").trim().split(/\s+/).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[e.length-1][0]).toUpperCase():"?"},tone(){var n;let e=String((n=this.name)!=null?n:""),t=0;for(let r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%9973;return Hp[t%Hp.length]},toneStyle(){return{background:`var(--v-${this.tone}-soft)`,color:`var(--v-${this.tone}-soft-text)`}},showImage(){return!!this.src&&!this.failed},imageAlt(){return this.alt||this.name||"Avatar"}},methods:{onError(){this.failed=!0}},template:`
|
|
1072
1076
|
<span class="v-avatar" :data-size="size" :data-shape="shape" :style="toneStyle"
|
|
1073
1077
|
:title="name || null">
|
|
1074
1078
|
<img class="v-avatar-img" v-if="showImage" :src="src" :alt="imageAlt" v-on:error="onError">
|
|
@@ -1080,7 +1084,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1080
1084
|
`});ie("v-spinner",{props:{size:{type:"string",default:"md"},tone:{type:"string",default:"primary"},label:{type:"string",default:"Loading"}},template:`
|
|
1081
1085
|
<span class="v-spinner" :data-size="size" :data-tone="tone" role="status"
|
|
1082
1086
|
:aria-label="label"></span>
|
|
1083
|
-
`});ie("v-skeleton",{props:{width:{type:"string",default:"100%"},height:{type:"string",default:"14px"},radius:L,lines:{type:"number",default:1},circle:F},computed:{...be("circle"),count(){let e=Number(this.lines);return Number.isFinite(e)&&e>0?Math.floor(e):1},boxStyle(){let e={width:this.width,height:this.height};return this.radius&&(e.borderRadius=this.radius),
|
|
1087
|
+
`});ie("v-skeleton",{props:{width:{type:"string",default:"100%"},height:{type:"string",default:"14px"},radius:L,lines:{type:"number",default:1},circle:F},computed:{...be("circle"),count(){let e=Number(this.lines);return Number.isFinite(e)&&e>0?Math.floor(e):1},boxStyle(){let e={width:this.width,height:this.height};return this.radius&&(e.borderRadius=this.radius),re(this.circle)&&(e.width=e.height=this.height),e},lastStyle(){return{...this.boxStyle,width:"62%"}}},template:`
|
|
1084
1088
|
<div class="v-skeleton-stack" role="status" aria-label="Loading content" aria-busy="true">
|
|
1085
1089
|
<span class="v-skeleton" v-for="index in count" :key="index" :data-circle="isCircle"
|
|
1086
1090
|
:style="index === count && count > 1 ? lastStyle : boxStyle"></span>
|
|
@@ -1096,12 +1100,12 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1096
1100
|
<div class="v-progress-bar" :style="barStyle"></div>
|
|
1097
1101
|
</div>
|
|
1098
1102
|
</div>
|
|
1099
|
-
`});ie("v-divider",{props:{label:L,vertical:F,spacing:L},computed:{...be("vertical"),spacingStyle(){return this.spacing?
|
|
1103
|
+
`});ie("v-divider",{props:{label:L,vertical:F,spacing:L},computed:{...be("vertical"),spacingStyle(){return this.spacing?re(this.vertical)?{margin:`0 ${this.spacing}`}:{margin:`${this.spacing} 0`}:{}}},template:`
|
|
1100
1104
|
<div class="v-divider" role="separator" :data-vertical="isVertical" :data-label="!!label"
|
|
1101
1105
|
:aria-orientation="isVertical ? 'vertical' : 'horizontal'" :style="spacingStyle">
|
|
1102
1106
|
<span v-if="label" v-text="label"></span>
|
|
1103
1107
|
</div>
|
|
1104
|
-
`});function
|
|
1108
|
+
`});function qy(e){return Array.isArray(e)?e.map(t=>{var r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t,d=String((i=(o=(r=c.key)!=null?r:c.field)!=null?o:c.name)!=null?i:"");return{key:d,label:String((a=(s=c.label)!=null?s:c.title)!=null?a:Br(d)),align:String((l=c.align)!=null?l:"left"),sortable:c.sortable===void 0?!0:re(c.sortable)}}let n=String(t);return{key:n,label:Br(n),align:"left",sortable:!0}}):typeof e!="string"?[]:ko(e).map(t=>{let n=t.split(":").map(o=>o.trim()),r=n[0];return{key:r,label:n[1]||Br(r),align:n[2]||"left",sortable:n[3]!=="fixed"}})}ie("v-table",{inheritScope:!0,props:{columns:{type:"any",default:""},rows:{type:"any",default:""},empty:{type:"string",default:"No records found"},sortable:{type:"any",default:!0},dense:F,striped:F,hover:{type:"any",default:!0},caption:L},state(){return{sortKey:"",sortDir:"asc"}},computed:{...be("dense","striped"),isSortable(){return this.sortable===!0||re(this.sortable)},isHover(){return this.hover===!0||re(this.hover)},cols(){var e;return qy((e=xr(this,this.columns))!=null?e:this.columns)},allRows(){var t;let e=(t=xr(this,this.rows))!=null?t:this.rows;return Array.isArray(e)?e:[]},sorted(){let e=this.sortKey;if(!e||!this.isSortable)return this.allRows;let t=this.sortDir==="desc"?-1:1;return[...this.allRows].sort((n,r)=>{let o=zr(n,e),i=zr(r,e);return o==null&&i==null?0:o==null?-t:i==null?t:typeof o=="number"&&typeof i=="number"?(o-i)*t:String(o).localeCompare(String(i),w.locale,{numeric:!0})*t})}},methods:{cell(e,t){let n=zr(e,t.key);return n==null?"":String(n)},ariaSort(e){return!this.isSortable||!e.sortable?null:this.sortKey!==e.key?"none":this.sortDir==="asc"?"ascending":"descending"},canSort(e){return this.isSortable&&e.sortable},arrowFor(e){return this.sortKey!==e.key?"chevron-down":this.sortDir==="asc"?"chevron-up":"chevron-down"},toggleSort(e){this.canSort(e)&&(this.sortKey===e.key?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sortKey=e.key,this.sortDir="asc"),this.emit("sort",{key:this.sortKey,direction:this.sortDir}))},alignStyle(e){return{textAlign:e.align}}},template:`
|
|
1105
1109
|
<div class="v-table-wrap">
|
|
1106
1110
|
<table class="v-table" :data-dense="isDense" :data-striped="isStriped" :data-hover="isHover">
|
|
1107
1111
|
<caption class="v-sr" v-if="caption" v-text="caption"></caption>
|
|
@@ -1128,7 +1132,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1128
1132
|
</tbody>
|
|
1129
1133
|
</table>
|
|
1130
1134
|
</div>
|
|
1131
|
-
`});ie("v-pagination",{props:{page:{type:"number",default:1},pages:{type:"number",default:1},total:{type:"number",default:0},perPage:{type:"number",default:10},siblings:{type:"number",default:1},previousLabel:{type:"string",default:"Previous"},nextLabel:{type:"string",default:"Next"},ariaLabel:{type:"string",default:"Pagination"}},computed:{lastPage(){let e=Number(this.pages)||0;if(e>0)return e;let t=Number(this.total)||0,n=Number(this.perPage)||10;return Math.max(1,Math.ceil(t/n))},currentPage(){let e=Number(this.page)||1;return Math.min(Math.max(1,Math.round(e)),this.lastPage)},items(){let e=this.lastPage,t=this.currentPage,n=Math.max(0,Number(this.siblings)||0),r=n*2+5;if(e<=r)return Array.from({length:e},(a,l)=>l+1);let o=[1],i=Math.max(2,t-n),s=Math.min(e-1,t+n);i>2&&o.push(0);for(let a=i;a<=s;a++)o.push(a);return s<e-1&&o.push(0),o.push(e),o}},methods:{go(e){let t=Math.min(Math.max(1,e),this.lastPage);t!==this.currentPage&&(this.page=t,
|
|
1135
|
+
`});ie("v-pagination",{props:{page:{type:"number",default:1},pages:{type:"number",default:1},total:{type:"number",default:0},perPage:{type:"number",default:10},siblings:{type:"number",default:1},previousLabel:{type:"string",default:"Previous"},nextLabel:{type:"string",default:"Next"},ariaLabel:{type:"string",default:"Pagination"}},computed:{lastPage(){let e=Number(this.pages)||0;if(e>0)return e;let t=Number(this.total)||0,n=Number(this.perPage)||10;return Math.max(1,Math.ceil(t/n))},currentPage(){let e=Number(this.page)||1;return Math.min(Math.max(1,Math.round(e)),this.lastPage)},items(){let e=this.lastPage,t=this.currentPage,n=Math.max(0,Number(this.siblings)||0),r=n*2+5;if(e<=r)return Array.from({length:e},(a,l)=>l+1);let o=[1],i=Math.max(2,t-n),s=Math.min(e-1,t+n);i>2&&o.push(0);for(let a=i;a<=s;a++)o.push(a);return s<e-1&&o.push(0),o.push(e),o}},methods:{go(e){let t=Math.min(Math.max(1,e),this.lastPage);t!==this.currentPage&&(this.page=t,wo(this.$el),this.emit("change",t))},isCurrent(e){return e===this.currentPage?"page":null}},beforeMount(){Zt(this,{get:()=>this.currentPage,set:e=>{let t=Number(e);this.page=Number.isFinite(t)&&t>0?Math.round(t):1}})},template:`
|
|
1132
1136
|
<nav class="v-pagination" :aria-label="ariaLabel">
|
|
1133
1137
|
<button type="button" class="v-page" :disabled="currentPage <= 1"
|
|
1134
1138
|
:aria-label="previousLabel" v-click="go(currentPage - 1)" v-html="svgIcon('chevron-left')"></button>
|
|
@@ -1140,7 +1144,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1140
1144
|
<button type="button" class="v-page" :disabled="currentPage >= lastPage"
|
|
1141
1145
|
:aria-label="nextLabel" v-click="go(currentPage + 1)" v-html="svgIcon('chevron-right')"></button>
|
|
1142
1146
|
</nav>
|
|
1143
|
-
`});function
|
|
1147
|
+
`});function Vy(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a;if(t!=null&&typeof t=="object"){let l=t;return{label:String((o=(r=(n=l.label)!=null?n:l.text)!=null?r:l.title)!=null?o:""),href:String((a=(s=(i=l.href)!=null?i:l.url)!=null?s:l.to)!=null?a:"")}}return{label:String(t),href:""}}):typeof e!="string"?[]:ko(e).map(t=>{let n=t.indexOf(":");return n===-1?{label:t,href:""}:{label:t.slice(0,n).trim(),href:t.slice(n+1).trim()}})}ie("v-breadcrumb",{inheritScope:!0,props:{items:{type:"any",default:""},separator:{type:"string",default:"/"},ariaLabel:{type:"string",default:"Breadcrumb"}},computed:{crumbs(){var e;return Vy((e=xr(this,this.items))!=null?e:this.items)}},methods:{isLast(e){return e===this.crumbs.length-1}},template:`
|
|
1144
1148
|
<nav class="v-breadcrumb" :aria-label="ariaLabel">
|
|
1145
1149
|
<ol class="v-breadcrumb-list">
|
|
1146
1150
|
<li class="v-breadcrumb-item" v-for="(crumb, index) in crumbs" :key="index"
|
|
@@ -1151,7 +1155,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1151
1155
|
</li>
|
|
1152
1156
|
</ol>
|
|
1153
1157
|
</nav>
|
|
1154
|
-
`});ie("v-stat",{props:{label:L,value:L,delta:{type:"any",default:""},hint:L,icon:L,suffix:{type:"string",default:"%"},inverted:F},computed:{...be("inverted"),deltaNumber(){if(this.delta===""||this.delta===null||this.delta===void 0)return null;let e=Number(String(this.delta).replace(",",".").replace("%",""));return Number.isFinite(e)?e:null},hasDelta(){return this.deltaNumber!==null},direction(){let e=this.deltaNumber;if(e===null||e===0)return"flat";let t=e>0;return(
|
|
1158
|
+
`});ie("v-stat",{props:{label:L,value:L,delta:{type:"any",default:""},hint:L,icon:L,suffix:{type:"string",default:"%"},inverted:F},computed:{...be("inverted"),deltaNumber(){if(this.delta===""||this.delta===null||this.delta===void 0)return null;let e=Number(String(this.delta).replace(",",".").replace("%",""));return Number.isFinite(e)?e:null},hasDelta(){return this.deltaNumber!==null},direction(){let e=this.deltaNumber;if(e===null||e===0)return"flat";let t=e>0;return(re(this.inverted)?!t:t)?"up":"down"},deltaIcon(){let e=this.deltaNumber;return e===null||e===0?"minus":e>0?"arrow-up":"arrow-down"},deltaText(){let e=this.deltaNumber;return e===null?"":`${e>0?"+":""}${e}${this.suffix}`}},template:`
|
|
1155
1159
|
<div class="v-stat">
|
|
1156
1160
|
<span class="v-stat-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1157
1161
|
<div class="v-stat-body">
|
|
@@ -1174,7 +1178,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1174
1178
|
<p class="v-empty-desc" v-if="description" v-text="description"></p>
|
|
1175
1179
|
<div class="v-empty-actions"><slot></slot></div>
|
|
1176
1180
|
</div>
|
|
1177
|
-
`});function
|
|
1181
|
+
`});function Uy(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t;return{title:String((r=(n=c.title)!=null?n:c.label)!=null?r:""),description:String((i=(o=c.description)!=null?o:c.text)!=null?i:""),time:String((a=(s=c.time)!=null?s:c.date)!=null?a:""),tone:String((l=c.tone)!=null?l:"primary")}}return{title:String(t),description:"",time:"",tone:"primary"}}):typeof e!="string"||!e.trim()?[]:e.split(";").map(t=>t.trim()).filter(Boolean).map(t=>{var r,o,i;let n=t.split("|").map(s=>s.trim());return{title:(r=n[0])!=null?r:"",description:(o=n[1])!=null?o:"",time:(i=n[2])!=null?i:"",tone:n[3]||"primary"}})}ie("v-timeline",{inheritScope:!0,props:{items:{type:"any",default:""}},computed:{entries(){var e;return Uy((e=xr(this,this.items))!=null?e:this.items)}},template:`
|
|
1178
1182
|
<ol class="v-timeline">
|
|
1179
1183
|
<li class="v-timeline-item" v-for="(entry, index) in entries" :key="index" :data-tone="entry.tone">
|
|
1180
1184
|
<span class="v-timeline-rail" aria-hidden="true"><span class="v-timeline-dot"></span></span>
|
|
@@ -1189,7 +1193,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1189
1193
|
<div class="v-timeline-body"><slot></slot></div>
|
|
1190
1194
|
</li>
|
|
1191
1195
|
</ol>
|
|
1192
|
-
`});ie("v-steps",{inheritScope:!0,props:{steps:{type:"any",default:""},current:{type:"number",default:0},vertical:F,ariaLabel:{type:"string",default:"Steps"}},computed:{...be("vertical"),list(){var t;let e=(t=
|
|
1196
|
+
`});ie("v-steps",{inheritScope:!0,props:{steps:{type:"any",default:""},current:{type:"number",default:0},vertical:F,ariaLabel:{type:"string",default:"Steps"}},computed:{...be("vertical"),list(){var t;let e=(t=xr(this,this.steps))!=null?t:this.steps;return Array.isArray(e)?e.map(n=>{var r,o;return n!=null&&typeof n=="object"?String((o=(r=n.label)!=null?r:n.title)!=null?o:""):String(n)}):typeof e=="string"?ko(e):[]},currentIndex(){let e=Number(this.current);return Number.isFinite(e)?Math.max(0,Math.round(e)):0}},methods:{stateOf(e){return e<this.currentIndex?"done":e===this.currentIndex?"current":"todo"}},template:`
|
|
1193
1197
|
<ol class="v-steps" :data-vertical="isVertical" :aria-label="ariaLabel">
|
|
1194
1198
|
<li class="v-step" v-for="(step, index) in list" :key="index" :data-state="stateOf(index)"
|
|
1195
1199
|
:aria-current="index === currentIndex ? 'step' : null">
|
|
@@ -1201,7 +1205,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1201
1205
|
<span class="v-step-text"><span class="v-step-label" v-text="step"></span></span>
|
|
1202
1206
|
</li>
|
|
1203
1207
|
</ol>
|
|
1204
|
-
`});ie("v-rating",{props:{value:{type:"number",default:0},max:{type:"number",default:5},size:{type:"string",default:"md"},label:{type:"string",default:"Rating"},readonly:F,disabled:F,showValue:F,allowClear:{type:"any",default:!0}},state(){return{hovered:0}},computed:{...be("readonly","disabled","showValue"),locked(){return
|
|
1208
|
+
`});ie("v-rating",{props:{value:{type:"number",default:0},max:{type:"number",default:5},size:{type:"string",default:"md"},label:{type:"string",default:"Rating"},readonly:F,disabled:F,showValue:F,allowClear:{type:"any",default:!0}},state(){return{hovered:0}},computed:{...be("readonly","disabled","showValue"),locked(){return re(this.readonly)||re(this.disabled)},total(){let e=Number(this.max);return Number.isFinite(e)&&e>0?Math.floor(e):5},score(){let e=Number(this.value);return Number.isFinite(e)?Math.min(Math.max(0,e),this.total):0},shown(){return this.hovered>0?this.hovered:this.score},valueText(){return`${this.score} of ${this.total}`}},methods:{isOn(e){return e<=this.shown},pick(e){if(this.locked)return;let n=(this.allowClear===!0||re(this.allowClear))&&this.score===e?0:e;this.value=n,this.hovered=0,wo(this.$el),this.emit("change",n)},preview(e){this.locked||(this.hovered=e)},reset(){this.hovered=0},onKey(e){if(this.locked)return;let t=e.key;t==="ArrowRight"||t==="ArrowUp"?(e.preventDefault(),this.pick(Math.min(this.total,this.score+1))):t==="ArrowLeft"||t==="ArrowDown"?(e.preventDefault(),this.pick(Math.max(0,this.score-1))):t==="Home"?(e.preventDefault(),this.pick(1)):t==="End"&&(e.preventDefault(),this.pick(this.total))}},beforeMount(){Zt(this,{get:()=>this.score,set:e=>{let t=Number(e);this.value=Number.isFinite(t)?t:0}})},template:`
|
|
1205
1209
|
<div class="v-rating" :data-size="size" role="slider" :aria-label="label"
|
|
1206
1210
|
aria-valuemin="0" :aria-valuemax="total" :aria-valuenow="score" :aria-valuetext="valueText"
|
|
1207
1211
|
:tabindex="locked ? -1 : 0" :aria-readonly="locked" v-keydown="onKey" v-mouseleave="reset">
|
|
@@ -1223,7 +1227,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1223
1227
|
<span class="v-tip" v-if="tooltip" :id="tipId" role="tooltip"
|
|
1224
1228
|
:data-placement="placement" v-text="tooltip"></span>
|
|
1225
1229
|
</span>
|
|
1226
|
-
`});async function
|
|
1230
|
+
`});async function _y(e){try{if(typeof navigator!="undefined"&&navigator.clipboard)return await navigator.clipboard.writeText(e),!0}catch(t){}try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let n=document.execCommand("copy");return t.remove(),n}catch(t){return!1}}ie("v-code-block",{props:{code:L,language:L,filename:L,copyLabel:{type:"string",default:"Copy"},copiedLabel:{type:"string",default:"Copied"},wrap:F},state(){return{copied:!1}},computed:{...be("wrap"),header(){return this.filename||this.language||""},buttonLabel(){return this.copied?this.copiedLabel:this.copyLabel},buttonIcon(){return this.copied?"check":"copy"}},methods:{async copy(){let e=this.$refs.code,t=this.code||(e==null?void 0:e.textContent)||"";await _y(String(t))&&(this.copied=!0,this.emit("copy",t),setTimeout(()=>{this.copied=!1},1800))}},template:`
|
|
1227
1231
|
<div class="v-code" :data-wrap="isWrap">
|
|
1228
1232
|
<div class="v-code-head">
|
|
1229
1233
|
<span class="v-code-name" v-text="header"></span>
|
|
@@ -1236,7 +1240,7 @@ ${jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1236
1240
|
<pre class="v-code-pre"><code v-ref="code" :class="language ? 'language-' + language : null"
|
|
1237
1241
|
v-text="code"><slot></slot></code></pre>
|
|
1238
1242
|
</div>
|
|
1239
|
-
`});var
|
|
1243
|
+
`});var Vk=Object.keys(Np);Ae();ce();var dt={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},rc={duration:220,size:"md"},Wy=`
|
|
1240
1244
|
[v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
|
|
1241
1245
|
|
|
1242
1246
|
.v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
|
|
@@ -1332,8 +1336,8 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1332
1336
|
@media (prefers-reduced-motion: reduce){
|
|
1333
1337
|
.v-dialog-backdrop,.v-dialog-panel{transition:none}
|
|
1334
1338
|
}
|
|
1335
|
-
`;function
|
|
1336
|
-
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}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:ct.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=Ap({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(p){var f;(f=e.onClose)==null||f.call(e,p,d),c(p===void 0?null:p)}});if(o&&d.panel.insertBefore(o,d.body),s.length){let p=document.createElement("div");p.className="v-dialog-foot";for(let f of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(u=f.variant)!=null?u:"secondary"),m.textContent=f.label,f.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=f.onClick)==null?void 0:v.call(f,d))!==!1&&f.close!==!1&&d.close((g=f.value)!=null?g:null)}),p.appendChild(m)}d.panel.appendChild(p)}d.body.childNodes.length||d.body.remove()})}function Hy(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function tc(e,t={}){var n;return hr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:ct.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function us(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return hr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:ct.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:ct.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function nc(e,t={}){var m,h,v,g;ds();let n=(m=t.type)!=null?m:"text",r=le("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=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),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 d=()=>n==="number"?l.value.trim():l.value,u=b=>{var k,C;let x=d(),T=null;return t.required&&!x.trim()?T=ct.required:T=(C=(k=t.validate)==null?void 0:k.call(t,x))!=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"),b.close(x),!0)},p=null;return l.addEventListener("keydown",b=>{let x=b;x.key==="Enter"&&(n==="textarea"&&!x.ctrlKey&&!x.metaKey||(b.preventDefault(),p&&u(p)))}),hr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:ct.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:ct.confirm,variant:"primary",close:!1,onClick(b){return p=b,u(b),!1}}],onOpen(b){var x;p=b,(x=t.onOpen)==null||x.call(t,b)}}).then(b=>typeof b=="string"?b:null)}y("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){En.close(o||void 0);return}if(n.toggle){o&&En.toggle(o);return}o&&En.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});y("modal-content",({el:e})=>{ds(),e.id||(e.id=le("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:j.REF});y("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?Ql.get(i):void 0;s?s.handle.close(t.trim()||void 0):En.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var Yl=!1;y("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||ct.confirmQuestion,i=s=>{var u,p,f;if(Yl)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=Te(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(p=Te(e,`${w.prefix}confirm-label`))!=null?p:void 0,d=(f=Te(e,`${w.prefix}confirm-cancel`))!=null?f:void 0;us(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){Yl=!0;try{a.click()}finally{Yl=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:j.REF});H("$modal",()=>En);H("$dialog",()=>hr);H("$alert",()=>tc);H("$confirm",()=>us);H("$prompt",()=>nc);me();ce();var xo=new Map;function Le(e,t){xo.set(e.trim().toLowerCase(),t)}var Oy={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},Fy=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Dp=new Set(["currency","percent"]);function kn(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=Oy[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 ps(e,t={}){var h,v,g,b,x;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(x=t.suffix)!=null?x:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,p=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+p:""}${s}`}function Pp(e,t=2){return ps(e,{prefix:"",suffix:"%",decimals:t})}Le("cpf","999.999.999-99");Le("cnpj","99.999.999/9999-99");Le("cep","99999-999");Le("date","99/99/9999");Le("time","99:99");Le("datetime","99/99/9999 99:99");Le("cvv","9999");Le("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return kn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Le("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return kn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Le("currency",e=>ps(e));Le("percent",e=>Pp(e));Le("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?kn(t,"9999 999999 99999"):t.length>16?kn(t,"9999 9999 9999 9999 999"):kn(t,"9999 9999 9999 9999")});Le("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return kn(t,n?"AAA-9999":"AAA9A99")});Le("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Le("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 yo(e,t){let n=e==null?"":String(e);if(!t)return n;let r=xo.get(t.trim().toLowerCase());return typeof r=="function"?r(n):kn(n,typeof r=="string"?r:t)}function ms(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Dp.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 Np=Object.assign((e,t)=>yo(e,t),{apply:yo,unmask:ms,register:Le,currency:ps,percent:Pp,presets:xo});function fs(e){return e!==void 0&&Fy.test(e)}function Rp(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)fs(e[o])&&n++;return n}function $p(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(fs(e[r])&&(n++,n===t))return r+1;return e.length}var rc=new WeakSet;function Hp(e,t,n){var m;if(rc.has(e))return;rc.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 h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var x,T;let h=a(),v=(x=e.selectionStart)!=null?x:h.length,g=Rp(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c($p(b,g))},u=()=>d(),p=h=>{var C,D;if(h.key!=="Backspace")return;let v=(C=e.selectionStart)!=null?C:0,g=(D=e.selectionEnd)!=null?D:0;if(v!==g||v===0)return;let b=a();if(fs(b[v-1]))return;let x=v-1;for(;x>=0&&!fs(b[x]);)x--;if(h.preventDefault(),x<0)return;let T=b.slice(0,x)+b.slice(v),k=Rp(T,x);l(t.format(T)),c($p(a(),k)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",p),n(()=>{rc.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",p)});let f=a();f&&l(t.format(f))}function Op(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return X(`${w.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"?(X(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}y("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Op(e,"mask");if(!o)return;let i=t.trim();if(!i){X(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Hp(o,{format:l=>yo(l,i),clean:a?l=>ms(l,s):void 0,rightToLeft:Dp.has(s),suffixLength:s==="percent"?1:0},r)},{priority:j.MODEL+5});y("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var p,f,m,h;let o=Op(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},s=(p=typeof n.decimals=="string"?n.decimals:null)!=null?p:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(f=i("mask-suffix"))!=null?f:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;Hp(o,{format:v=>ps(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),x=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${x}`:x}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:j.MODEL+5});ce();Ne();var ko="v-xray-flash",jp=200,Iy=400,Ye=!1,Fp=!1,_=null,nt="estado",Tn="auto",br=[],yr=[],Jt=new Map,gs=new Set,Eo=new Map,To=[],oc=new WeakMap,we={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},xt=[],vs=0,hs=0,xr=0,wr=0,wo=null,zy=`
|
|
1339
|
+
`;function gs(){ge(),xo(),Z("dialog",Wy)}var oc={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>'},nt=[],ic=new WeakMap,sc=0,Op="",Fp="";function Ky(){if(sc++>0)return;let e=document.body;Op=e.style.overflow,Fp=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 Yy(){sc!==0&&(--sc>0||(document.body.style.overflow=Op,document.body.style.paddingRight=Fp))}var Xy='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 ac(e){return Array.from(e.querySelectorAll(Xy)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function lc(){return nt[nt.length-1]}function Gy(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var hs=!1;function Ip(e){let t=lc();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=ac(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 zp(e){var o;let t=lc();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=ac(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function Qy(){hs||(hs=!0,document.addEventListener("keydown",Ip,!0),document.addEventListener("focusin",zp,!0))}function Jy(){hs&&(hs=!1,document.removeEventListener("keydown",Ip,!0),document.removeEventListener("focusin",zp,!0))}function Bp(e){var f,p,m,h,v,g,b;gs();let t=le("v-dialog-"),n=Gy()?0:rc.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(f=e.size)!=null?f:rc.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(nt.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 x=document.createComment(" v-modal ");(h=e.source.parentNode)==null||h.insertBefore(x,e.source),tc.set(e.source,x),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 x=document.createElement("button");x.type="button",x.className="v-dialog-x",x.setAttribute("aria-label",dt.close),x.innerHTML=oc.close,x.addEventListener("click",()=>d.close(void 0)),i.appendChild(x)}let a=!1,l=()=>{},c=new Promise(x=>{l=x}),d={id:t,root:r,panel:i,body:s,key:(v=e.key)!=null?v:null,source:(g=e.source)!=null?g:null,closed:c,close(x){if(a)return;a=!0;let T=nt.findIndex(C=>C.handle===d);T>-1&&nt.splice(T,1),ic.delete(r),u.locked&&Yy(),nt.length||Jy(),r.classList.remove("is-open"),r.classList.add("is-closing");let E=()=>{var D;let C=e.source;if(C){let A=tc.get(C);C.classList.remove("v-dialog-open"),A&&A.parentNode?(A.parentNode.insertBefore(C,A),A.remove()):C.remove(),tc.delete(C),sa(C,"modal-content")&&C.setAttribute("hidden","")}if(r.remove(),(D=e.onClose)==null||D.call(e,x,d),l(x),e.restoreFocus!==!1){let A=u.previousFocus;A&&typeof A.focus=="function"&&A.isConnected&&A.focus()}};n>0?setTimeout(E,n):E()}},u={handle:d,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&d.close(void 0)}),u.locked&&Ky(),nt.push(u),ic.set(r,u),Qy(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let x=Zy(e,i);x==null||x.focus()}),(b=e.onOpen)==null||b.call(e,d),d}var tc=new WeakMap;function Zy(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=ac(t)[0])!=null?i:t)}function ex(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 ms(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function vs(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return nt.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 Mn={open(e,t={}){var s,a;let n=ex(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=ms(e))!=null?s:n.id?`#${n.id}`:null,o=r?vs(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=le("v-dialog-title-")),Bp({...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=lc())==null||o.handle.close(t);return}let n=ms(e),r=n?vs(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...nt].reverse())t.handle.close(e)},toggle(e,t={}){let n=ms(e),r=n?vs(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return nt.length>0;let t=ms(e);return!!(t&&vs(t))},get opened(){return nt.map(e=>e.handle)},get count(){return nt.length},configure(e){Object.assign(rc,e)},labels(e){return Object.assign(dt,e),dt}};function wr(e){var a,l;gs();let t=document.createDocumentFragment(),n=e.title?le("v-dialog-title-"):null,r=e.description?le("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&&oc[c]){let u=document.createElement("div");u.className="v-dialog-icon",u.setAttribute("aria-hidden","true"),u.setAttribute("data-tone",(a=e.tone)!=null?a:tx(c)),u.innerHTML=oc[c],o.appendChild(u)}let d=document.createElement("div");if(d.className="v-dialog-heading",e.title){let u=document.createElement("h2");u.className="v-dialog-title",u.id=n,u.textContent=e.title,d.appendChild(u)}if(e.description){let u=document.createElement("p");u.className="v-dialog-desc",u.id=r,u.textContent=e.description,d.appendChild(u)}o.appendChild(d)}let i=document.createDocumentFragment();if(e.text)for(let c of e.text.split(`
|
|
1340
|
+
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}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:dt.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=Bp({...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,d),c(f===void 0?null:f)}});if(o&&d.panel.insertBefore(o,d.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",(u=p.variant)!=null?u:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=p.onClick)==null?void 0:v.call(p,d))!==!1&&p.close!==!1&&d.close((g=p.value)!=null?g:null)}),f.appendChild(m)}d.panel.appendChild(f)}d.body.childNodes.length||d.body.remove()})}function tx(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function cc(e,t={}){var n;return wr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:dt.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function bs(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return wr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:dt.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:dt.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function dc(e,t={}){var m,h,v,g;gs();let n=(m=t.type)!=null?m:"text",r=le("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=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),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 d=()=>n==="number"?l.value.trim():l.value,u=b=>{var E,C;let x=d(),T=null;return t.required&&!x.trim()?T=dt.required:T=(C=(E=t.validate)==null?void 0:E.call(t,x))!=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"),b.close(x),!0)},f=null;return l.addEventListener("keydown",b=>{let x=b;x.key==="Enter"&&(n==="textarea"&&!x.ctrlKey&&!x.metaKey||(b.preventDefault(),f&&u(f)))}),wr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:dt.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:dt.confirm,variant:"primary",close:!1,onClick(b){return f=b,u(b),!1}}],onOpen(b){var x;f=b,(x=t.onOpen)==null||x.call(t,b)}}).then(b=>typeof b=="string"?b:null)}y("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){Mn.close(o||void 0);return}if(n.toggle){o&&Mn.toggle(o);return}o&&Mn.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});y("modal-content",({el:e})=>{gs(),e.id||(e.id=le("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:j.REF});y("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?ic.get(i):void 0;s?s.handle.close(t.trim()||void 0):Mn.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var nc=!1;y("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||dt.confirmQuestion,i=s=>{var u,f,p;if(nc)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=Te(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(f=Te(e,`${w.prefix}confirm-label`))!=null?f:void 0,d=(p=Te(e,`${w.prefix}confirm-cancel`))!=null?p:void 0;bs(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){nc=!0;try{a.click()}finally{nc=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:j.REF});N("$modal",()=>Mn);N("$dialog",()=>wr);N("$alert",()=>cc);N("$confirm",()=>bs);N("$prompt",()=>dc);de();ce();var To=new Map;function Le(e,t){To.set(e.trim().toLowerCase(),t)}var nx={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},rx=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Vp=new Set(["currency","percent"]);function Sn(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=nx[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 xs(e,t={}){var h,v,g,b,x;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(x=t.suffix)!=null?x:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,f=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Up(e,t=2){return xs(e,{prefix:"",suffix:"%",decimals:t})}Le("cpf","999.999.999-99");Le("cnpj","99.999.999/9999-99");Le("cep","99999-999");Le("date","99/99/9999");Le("time","99:99");Le("datetime","99/99/9999 99:99");Le("cvv","9999");Le("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return Sn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Le("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return Sn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Le("currency",e=>xs(e));Le("percent",e=>Up(e));Le("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?Sn(t,"9999 999999 99999"):t.length>16?Sn(t,"9999 9999 9999 9999 999"):Sn(t,"9999 9999 9999 9999")});Le("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return Sn(t,n?"AAA-9999":"AAA9A99")});Le("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Le("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 Eo(e,t){let n=e==null?"":String(e);if(!t)return n;let r=To.get(t.trim().toLowerCase());return typeof r=="function"?r(n):Sn(n,typeof r=="string"?r:t)}function ws(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Vp.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 _p=Object.assign((e,t)=>Eo(e,t),{apply:Eo,unmask:ws,register:Le,currency:xs,percent:Up,presets:To});function ys(e){return e!==void 0&&rx.test(e)}function jp(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)ys(e[o])&&n++;return n}function qp(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(ys(e[r])&&(n++,n===t))return r+1;return e.length}var uc=new WeakSet;function Wp(e,t,n){var m;if(uc.has(e))return;uc.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 h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var x,T;let h=a(),v=(x=e.selectionStart)!=null?x:h.length,g=jp(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c(qp(b,g))},u=()=>d(),f=h=>{var C,D;if(h.key!=="Backspace")return;let v=(C=e.selectionStart)!=null?C:0,g=(D=e.selectionEnd)!=null?D:0;if(v!==g||v===0)return;let b=a();if(ys(b[v-1]))return;let x=v-1;for(;x>=0&&!ys(b[x]);)x--;if(h.preventDefault(),x<0)return;let T=b.slice(0,x)+b.slice(v),E=jp(T,x);l(t.format(T)),c(qp(a(),E)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",f),n(()=>{uc.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Kp(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return X(`${w.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"?(X(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}y("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Kp(e,"mask");if(!o)return;let i=t.trim();if(!i){X(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Wp(o,{format:l=>Eo(l,i),clean:a?l=>ws(l,s):void 0,rightToLeft:Vp.has(s),suffixLength:s==="percent"?1:0},r)},{priority:j.MODEL+5});y("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,h;let o=Kp(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},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?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;Wp(o,{format:v=>xs(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),x=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${x}`:x}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:j.MODEL+5});ce();Ae();var So="v-xray-flash",Jp=200,ox=400,Xe=!1,Yp=!1,_=null,rt="estado",Cn="auto",Er=[],Tr=[],en=new Map,Ts=new Set,Mo=new Map,Co=[],fc=new WeakMap,we={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},kt=[],ks=0,Es=0,Lr=0,Mr=0,Lo=null,ix=`
|
|
1337
1341
|
.v-xray-root{
|
|
1338
1342
|
all: initial;
|
|
1339
1343
|
--vx-accent:#6D3BF5;
|
|
@@ -1638,14 +1642,14 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1638
1642
|
0%{box-shadow:0 0 0 2px rgba(255,61,139,.95),0 0 16px rgba(255,61,139,.5)}
|
|
1639
1643
|
100%{box-shadow:0 0 0 2px rgba(255,61,139,0),0 0 0 rgba(255,61,139,0)}
|
|
1640
1644
|
}
|
|
1641
|
-
.${
|
|
1645
|
+
.${So}{animation:v-xray-pulse .45s ease-out}
|
|
1642
1646
|
@media (prefers-reduced-motion: reduce){
|
|
1643
|
-
.${
|
|
1647
|
+
.${So}{animation:none;outline:2px solid rgba(255,61,139,.9)}
|
|
1644
1648
|
}
|
|
1645
1649
|
@media (max-width: 640px){
|
|
1646
1650
|
.v-xray-panel{right:8px;left:8px;width:auto;max-height:60vh}
|
|
1647
1651
|
}
|
|
1648
|
-
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function ys(e){if(!e||!_)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&_.root.contains(t)}function Er(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function qp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Zo(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Zo((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function By(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function jy(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function Vp(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Up(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Up(n,t)}function sc(e){let t=[];for(let n of cd(e))Up(n,t);return t}function _p(e){let t=sc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=sc(n).length);return t}function Wp(e){if(!e||!Ye||ys(e))return;let t=Eo.get(e);t&&window.clearTimeout(t),gs.add(e),e.classList.add(ko);let n=window.setTimeout(()=>{e.classList.remove(ko),Eo.delete(e),window.setTimeout(()=>gs.delete(e),0)},460);Eo.set(e,n)}function Ip(e,t){for(let n of sc(e)){if(Jt.has(n))continue;let r=n.fn;Jt.set(n,r),n.fn=()=>(we.effects++,Wp(t),r())}}function qy(){for(let[e,t]of Jt)e.fn=t;Jt.clear()}function Kp(){if(!Ye||typeof document=="undefined")return;for(let[n]of Jt)n.active||Jt.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(_&&_.root.contains(n)){t=Vy(e);continue}Ip(n,n)}else t.nodeType===3&&t.parentElement&&Ip(t,t.parentElement);t=e.nextNode()}Wy()}function Vy(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function Uy(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Iy;n++){let r=t[n];_&&_.root.contains(r)||ta(r)&&e.push(r)}return e}function _y(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Wy(){var t;if(!Ye||!_)return;let e=_.overlay;e.textContent="",To.length=0;for(let n of Uy()){let r=M("div","v-xray-box"),o=!!((t=ot(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",_y(n).join(" "));r.appendChild(i),e.appendChild(r),To.push({el:n,box:r})}cc()}function cc(){if(Ye)for(let e of To){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Ky(){wr||(wr=requestAnimationFrame(()=>{wr=0,cc()}))}function Yy(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function Xy(e){var s;if(!_)return;let t=_.card;t.textContent="";let n=Ce(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Er(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=Dn(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Er(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=Yy(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",qp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${_p(e)} effect(s) depend on this element`))}function Gy(e,t){if(!_)return;let n=_.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function zp(e){if(!Ye||!_)return;let t=e.target;if(!t||ys(t)){_.card.dataset.open="0",wo=null;return}let n=t;for(;n&&n!==document.body&&!ta(n);)n=n.parentElement;if(!n||n===document.body){_.card.dataset.open="0",wo=null;return}n!==wo&&(wo=n,Xy(n)),_.card.dataset.open="1",Gy(e.clientX,e.clientY)}function Qy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(_&&_.root.contains(o))continue;let i=ot(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function bs(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=By(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(jy(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Jy(){let e=document.createDocumentFragment(),t=Qy();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Er(n.el))),o.addEventListener("click",()=>Xp(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(bs(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function Zy(){var n;let e=document.createDocumentFragment(),t=[...At];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Er(r.$el))),i.appendChild(M("span","v-xray-badge",`${_p(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Xp(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(bs(u,a[u],p=>{a[u]=p}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let p;try{p=c.data[u]}catch(f){p=void 0}s.appendChild(bs(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function ex(){let e=document.createDocumentFragment(),t=Go();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Fn[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(bs(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Yp(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function tx(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{br.length=0,Zt()}),e.appendChild(t),!br.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...br].reverse())e.appendChild(Yp(Vp(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function nx(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{yr.length=0,Zt()}),e.appendChild(t),!yr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...yr].reverse())e.appendChild(Yp(Vp(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function rx(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${Jt.size} effects instrumented, peak of ${i} per second`)),e}var ox=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function Zt(){if(!_)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&_.body.contains(e))){switch(_.body.textContent="",nt){case"estado":_.body.appendChild(Jy());break;case"componentes":_.body.appendChild(Zy());break;case"stores":_.body.appendChild(ex());break;case"eventos":_.body.appendChild(tx());break;case"rede":_.body.appendChild(nx());break;case"desempenho":_.body.appendChild(rx());break}for(let t of Array.from(_.tabs.children)){let n=t;n.dataset.active=n.dataset.id===nt?"1":"0"}_.status.textContent=`${To.length} elements with directives, ${At.size} components, ${Jt.size} effects observed`}}function Xp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Wp(e)}function ix(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Tn!=="auto"&&(e.dataset.vXrayTheme=Tn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Tn=Tn==="auto"?"dark":Tn==="dark"?"light":"auto",Tn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Tn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Gp()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of ox){let p=M("button","v-xray-tab",u.label);p.dataset.id=u.id,p.dataset.active=u.id===nt?"1":"0",p.addEventListener("click",()=>{nt=u.id,Zt()}),l.appendChild(p)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var sx=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Bp(e){br.push(e),br.length>jp&&br.shift(),nt==="eventos"&&Zt()}function ic(e){yr.push(e),yr.length>jp&&yr.shift(),nt==="rede"&&Zt()}function ax(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of Dn(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function lx(){let e=new Set(sx),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(_&&_.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function cx(){let e=t=>{if(!Ye)return;let n=t.target;if(!n||n.nodeType!==1||ys(n))return;let r=ax(n,t.type),o=t.__voodoo===!0;!r&&!o||Bp({at:Date.now(),type:t.type,target:Er(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of lx())document.addEventListener(t,e,!0),xt.push(()=>document.removeEventListener(t,e,!0));xt.push(ze.on("event",t=>{var n,r;Bp({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:qp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function dx(){xt.push(he.interceptors.request.use(e=>(oc.set(e,performance.now()),e))),xt.push(he.interceptors.response.use(e=>{var n,r;let t=(n=oc.get(e.config))!=null?n:performance.now();return ic({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),xt.push(he.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=oc.get(t))!=null?r:performance.now();return ic({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),xt.push(ze.on("network",e=>{var t,n,r,o,i;ic({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var gr=null;function ux(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;ys(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&gs.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Kp()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function fx(){hs=window.setInterval(()=>{we.effectsPerSecond=we.effects-ac,we.updatesPerSecond=we.mutations-lc,ac=we.effects,lc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),nt==="desempenho"&&Zt()},1e3),vs=window.setInterval(()=>{cc(),(nt==="estado"||nt==="componentes"||nt==="stores")&&Zt()},700)}var ac=0,lc=0;function px(){if(Ye||typeof document=="undefined"||!document.body)return;Ye=!0,ge(),oe("xray",zy),_=ix(),nt=nt||"estado",we.effects=0,we.mutations=0,ac=0,lc=0,we.history.length=0,Kp(),cx(),dx(),ux(),fx();let e=()=>Ky();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",zp,!0),xt.push(()=>window.removeEventListener("scroll",e,!0)),xt.push(()=>window.removeEventListener("resize",e)),xt.push(()=>document.removeEventListener("mousemove",zp,!0)),Zt()}function Gp(){if(Ye){Ye=!1;for(let e of xt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,hs&&window.clearInterval(hs),vs&&window.clearInterval(vs),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),hs=vs=xr=wr=0;for(let[e,t]of Eo)window.clearTimeout(t),e.classList.remove(ko);Eo.clear(),gs.clear(),qy(),To.length=0,wo=null,_==null||_.root.remove(),_=null}}function Qp(){return Ye}function mx(e){let t=e.toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n=t.pop(),r={ctrl:!1,alt:!1,shift:!1,meta:!1,code:/^f\d{1,2}$/.test(n)?n.toUpperCase():n.length===1&&n>="a"&&n<="z"?`Key${n.toUpperCase()}`:n.length===1&&n>="0"&&n<="9"?`Digit${n}`:n.charAt(0).toUpperCase()+n.slice(1)};for(let o of t)if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command"||o==="win")r.meta=!0;else return null;return r}function dc(){Fp||typeof document=="undefined"||(Fp=!0,document.addEventListener("keydown",e=>{let t=w.xrayShortcut;if(t===!1)return;let n=mx(typeof t=="string"?t:"ctrl+shift+f2");n&&(e.ctrlKey!==n.ctrl||e.altKey!==n.alt||e.shiftKey!==n.shift||e.metaKey!==n.meta||e.code!==n.code&&e.key.toUpperCase()!==n.code.replace(/^Key/,"")||(e.preventDefault(),Lo()))}))}function Lo(e){return dc(),(e!=null?e:!Ye)?px():Gp(),Ye}me();ce();var vx=new Set(["SCRIPT","STYLE","PRE","CODE","SAMP","KBD","TEXTAREA","TEMPLATE","NOSCRIPT"]);H("$__jsx",e=>e);gd((e,t)=>{t?Mo():xs(e)});var Jp=Symbol("voodoo.jsx.template");function hx(e){return typeof e=="object"&&e!==null&&Jp in e}function gx(e,t){var p;let n=[],r=[],o="",i=0,s=null,a=!1,l=e,c=t,d=!1,u=null;for(;l;){if(l.nodeType===Node.TEXT_NODE){let f=(p=l.textContent)!=null?p:"";for(;c<f.length;c++){let m=f[c];if(a){a=!1,o+=m;continue}if(s){m==="\\"?a=!0:m===s&&(s=null),o+=m;continue}if(m==='"'||m==="'"||m==="`"){s=m,o+=m;continue}if(m==="{"){i++,i>1&&(o+=m);continue}if(m==="}"){if(i--,i===0){c++,d=!0;break}o+=m;continue}o+=m}if(r.push(l),d){u={node:l,offset:c};break}}else if(l.nodeType===Node.ELEMENT_NODE){if(i===0)return null;o+=`$t(${n.length}, $__jsx)`,n.push(l),r.push(l)}else r.push(l);c=0,l=l.nextSibling}return d?{source:o,templates:n,nodes:r,tail:u}:null}function bx(e){let t=e.source.match(/\(\s*\)/g);if(!t)return!1;let n=e.nodes[0],r=e.nodes[e.nodes.length-1],o=[r==null?void 0:r.nextSibling,n==null?void 0:n.previousSibling].map(l=>{var d;let c=l!=null?l:null;for(;c&&c.nodeType===Node.TEXT_NODE&&!((d=c.textContent)!=null?d:"").trim();)c=c===(r==null?void 0:r.nextSibling)?c.nextSibling:c.previousSibling;return c&&c.nodeType===Node.ELEMENT_NODE?c:null}).find(l=>(l==null?void 0:l.tagName)==="TABLE");if(!o)return!1;let i=o.querySelector("tbody");if(!i)return!1;let s=Array.from(i.children).filter(l=>l.tagName==="TR");if(s.length!==t.length)return!1;let a=0;return e.source=e.source.replace(/\(\s*\)/g,()=>`($t(${a++}, $__jsx))`),e.templates=s,e.host=i,e.nodes.push(...s),!0}function Zp(e,t,n,r){var o;if(!(e==null||e===!1||e===!0)){if(Array.isArray(e)){for(let i of e)Zp(i,t,n,r);return}if(hx(e)){let i=e,a=t[i.index].cloneNode(!0),l=(o=i.scope)!=null?o:n;fc(a,l),Mo(),te(a,l),r.push(a);return}r.push(document.createTextNode(String(e)))}}function fc(e,t){var o,i,s;if(vx.has(e.tagName))return;let n=t!=null?t:Ce(e),r=e.firstChild;for(;r;){let a=r.nextSibling;if(r.nodeType===Node.ELEMENT_NODE){fc(r,(o=ot(r))!=null?o:n),r=a;continue}if(r.nodeType!==Node.TEXT_NODE){r=a;continue}let c=((i=r.textContent)!=null?i:"").indexOf("{");if(c<0){r=a;continue}let d=gx(r,c);if(!d){r=a;continue}if(d.templates.length===0&&!bx(d)){r=a;continue}yx(e,d,n),r=(s=d.nodes[d.nodes.length-1])==null?void 0:s.nextSibling}}var uc=[];function yx(e,t,n){var p,f;let{source:r,templates:o,nodes:i,tail:s}=t,a;try{a=_e(r)}catch(m){w.devtools&&console.warn(`[Voodoo] could not parse the inline expression: ${r}`,m);return}s&&s.offset<((p=s.node.textContent)!=null?p:"").length&&s.node.splitText(s.offset);let l=(f=t.host)!=null?f:e,c=document.createComment("v-jsx");l.insertBefore(c,t.host?t.host.firstChild:i[0]);for(let m of i)m.remove();let d=[];uc.push(()=>u());function u(){let m=Ce(c),v=(m===We&&n?n:m).child({$t:(b,x)=>({[Jp]:!0,index:b,scope:x})}),g=Fe(()=>{let b=Fo(N(a,v)),x=[];Zp(b,o,v,x);for(let T of d)T.remove();d=x;for(let T of x)l.insertBefore(T,c)});Xe(c,()=>{g.effect.stop();for(let b of d)b.remove()})}}function xx(e=document.body){var t;for(let n of Array.from(e.childNodes)){if(n.nodeType!==Node.TEXT_NODE)continue;let r=(t=n.textContent)!=null?t:"",o=r.indexOf("{");if(o<0)continue;let i=wx(r,o);if(i<0)continue;let s=r.slice(o,i+1);if(!/\b(?:const|let|var)\s/.test(s))continue;let a=s.slice(1,-1).replace(/\b(?:const|let|var)\s+/g,""),l=Y({});try{N(_e(a),new Lt(l))}catch(c){return w.devtools&&console.warn("[Voodoo] could not read the declaration block",c),null}return n.textContent=r.slice(0,o)+r.slice(i+1),l}return null}function wx(e,t){let n=0,r=null,o=!1;for(let i=t;i<e.length;i++){let s=e[i];if(o){o=!1;continue}if(r){s==="\\"?o=!0:s===r&&(r=null);continue}if(s==='"'||s==="'"||s==="`")r=s;else if(s==="{")n++;else if(s==="}"&&--n===0)return i}return-1}function Mo(){let e=uc.splice(0,uc.length);for(let t of e)try{t()}catch(n){console.error("[Voodoo] a JSX region failed to render",n)}}function xs(e=document.body){let t=xx(e);t&&Object.assign(We.data,t),fc(e,Ce(e))}function em(e=document.body){xs(e),Mo()}Ne();var nm="voodoo:devtools:widget-position",pc="voodoo:devtools:widget-hidden",Ex=4,re=null,kr=!1,mc=0,ws=0,So=[],kx=`
|
|
1652
|
+
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function Ms(e){if(!e||!_)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&_.root.contains(t)}function Sr(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Zp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${oi(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return oi((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function sx(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function ax(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function em(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function tm(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)tm(n,t)}function mc(e){let t=[];for(let n of vd(e))tm(n,t);return t}function nm(e){let t=mc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=mc(n).length);return t}function rm(e){if(!e||!Xe||Ms(e))return;let t=Mo.get(e);t&&window.clearTimeout(t),Ts.add(e),e.classList.add(So);let n=window.setTimeout(()=>{e.classList.remove(So),Mo.delete(e),window.setTimeout(()=>Ts.delete(e),0)},460);Mo.set(e,n)}function Xp(e,t){for(let n of mc(e)){if(en.has(n))continue;let r=n.fn;en.set(n,r),n.fn=()=>(we.effects++,rm(t),r())}}function lx(){for(let[e,t]of en)e.fn=t;en.clear()}function om(){if(!Xe||typeof document=="undefined")return;for(let[n]of en)n.active||en.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(_&&_.root.contains(n)){t=cx(e);continue}Xp(n,n)}else t.nodeType===3&&t.parentElement&&Xp(t,t.parentElement);t=e.nextNode()}fx()}function cx(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function dx(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<ox;n++){let r=t[n];_&&_.root.contains(r)||la(r)&&e.push(r)}return e}function ux(e){return In(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function fx(){var t;if(!Xe||!_)return;let e=_.overlay;e.textContent="",Co.length=0;for(let n of dx()){let r=M("div","v-xray-box"),o=!!((t=it(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",ux(n).join(" "));r.appendChild(i),e.appendChild(r),Co.push({el:n,box:r})}gc()}function gc(){if(Xe)for(let e of Co){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function px(){Mr||(Mr=requestAnimationFrame(()=>{Mr=0,gc()}))}function mx(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function vx(e){var s;if(!_)return;let t=_.card;t.textContent="";let n=Ce(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Sr(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=In(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Sr(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=mx(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Zp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${nm(e)} effect(s) depend on this element`))}function hx(e,t){if(!_)return;let n=_.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Gp(e){if(!Xe||!_)return;let t=e.target;if(!t||Ms(t)){_.card.dataset.open="0",Lo=null;return}let n=t;for(;n&&n!==document.body&&!la(n);)n=n.parentElement;if(!n||n===document.body){_.card.dataset.open="0",Lo=null;return}n!==Lo&&(Lo=n,vx(n)),_.card.dataset.open="1",hx(e.clientX,e.clientY)}function gx(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(_&&_.root.contains(o))continue;let i=it(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function Ls(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=sx(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(ax(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function bx(){let e=document.createDocumentFragment(),t=gx();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Sr(n.el))),o.addEventListener("click",()=>sm(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(Ls(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function yx(){var n;let e=document.createDocumentFragment(),t=[...Rt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Sr(r.$el))),i.appendChild(M("span","v-xray-badge",`${nm(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>sm(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(Ls(u,a[u],f=>{a[u]=f}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let f;try{f=c.data[u]}catch(p){f=void 0}s.appendChild(Ls(u,f,p=>{c.set(u,p)}))}}o.appendChild(s),e.appendChild(o)}return e}function xx(){let e=document.createDocumentFragment(),t=ti();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=$t[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(Ls(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function im(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function wx(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{Er.length=0,tn()}),e.appendChild(t),!Er.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...Er].reverse())e.appendChild(im(em(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function kx(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{Tr.length=0,tn()}),e.appendChild(t),!Tr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...Tr].reverse())e.appendChild(im(em(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Ex(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${en.size} effects instrumented, peak of ${i} per second`)),e}var Tx=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function tn(){if(!_)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&_.body.contains(e))){switch(_.body.textContent="",rt){case"estado":_.body.appendChild(bx());break;case"componentes":_.body.appendChild(yx());break;case"stores":_.body.appendChild(xx());break;case"eventos":_.body.appendChild(wx());break;case"rede":_.body.appendChild(kx());break;case"desempenho":_.body.appendChild(Ex());break}for(let t of Array.from(_.tabs.children)){let n=t;n.dataset.active=n.dataset.id===rt?"1":"0"}_.status.textContent=`${Co.length} elements with directives, ${Rt.size} components, ${en.size} effects observed`}}function sm(e){e.scrollIntoView({behavior:"smooth",block:"center"}),rm(e)}function Lx(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Cn!=="auto"&&(e.dataset.vXrayTheme=Cn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Cn=Cn==="auto"?"dark":Cn==="dark"?"light":"auto",Cn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Cn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>am()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Tx){let f=M("button","v-xray-tab",u.label);f.dataset.id=u.id,f.dataset.active=u.id===rt?"1":"0",f.addEventListener("click",()=>{rt=u.id,tn()}),l.appendChild(f)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var Mx=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Qp(e){Er.push(e),Er.length>Jp&&Er.shift(),rt==="eventos"&&tn()}function pc(e){Tr.push(e),Tr.length>Jp&&Tr.shift(),rt==="rede"&&tn()}function Sx(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of In(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Cx(){let e=new Set(Mx),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(_&&_.root.contains(r)))for(let o of In(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Ax(){let e=t=>{if(!Xe)return;let n=t.target;if(!n||n.nodeType!==1||Ms(n))return;let r=Sx(n,t.type),o=t.__voodoo===!0;!r&&!o||Qp({at:Date.now(),type:t.type,target:Sr(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Cx())document.addEventListener(t,e,!0),kt.push(()=>document.removeEventListener(t,e,!0));kt.push(je.on("event",t=>{var n,r;Qp({at:Date.now(),type:t.type,target:Sr((n=t.el)!=null?n:null),detail:Zp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Rx(){kt.push(he.interceptors.request.use(e=>(fc.set(e,performance.now()),e))),kt.push(he.interceptors.response.use(e=>{var n,r;let t=(n=fc.get(e.config))!=null?n:performance.now();return pc({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),kt.push(he.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=fc.get(t))!=null?r:performance.now();return pc({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),kt.push(je.on("network",e=>{var t,n,r,o,i;pc({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var kr=null;function $x(){kr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;Ms(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&Ts.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!Lr&&(Lr=window.setTimeout(()=>{Lr=0,om()},250))}),kr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Dx(){Es=window.setInterval(()=>{we.effectsPerSecond=we.effects-vc,we.updatesPerSecond=we.mutations-hc,vc=we.effects,hc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),rt==="desempenho"&&tn()},1e3),ks=window.setInterval(()=>{gc(),(rt==="estado"||rt==="componentes"||rt==="stores")&&tn()},700)}var vc=0,hc=0;function Px(){if(Xe||typeof document=="undefined"||!document.body)return;Xe=!0,ge(),Z("xray",ix),_=Lx(),rt=rt||"estado",we.effects=0,we.mutations=0,vc=0,hc=0,we.history.length=0,om(),Ax(),Rx(),$x(),Dx();let e=()=>px();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Gp,!0),kt.push(()=>window.removeEventListener("scroll",e,!0)),kt.push(()=>window.removeEventListener("resize",e)),kt.push(()=>document.removeEventListener("mousemove",Gp,!0)),tn()}function am(){if(Xe){Xe=!1;for(let e of kt.splice(0))try{e()}catch(t){}kr==null||kr.disconnect(),kr=null,Es&&window.clearInterval(Es),ks&&window.clearInterval(ks),Lr&&window.clearTimeout(Lr),Mr&&cancelAnimationFrame(Mr),Es=ks=Lr=Mr=0;for(let[e,t]of Mo)window.clearTimeout(t),e.classList.remove(So);Mo.clear(),Ts.clear(),lx(),Co.length=0,Lo=null,_==null||_.root.remove(),_=null}}function lm(){return Xe}function Hx(e){let t=e.toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n=t.pop(),r={ctrl:!1,alt:!1,shift:!1,meta:!1,code:/^f\d{1,2}$/.test(n)?n.toUpperCase():n.length===1&&n>="a"&&n<="z"?`Key${n.toUpperCase()}`:n.length===1&&n>="0"&&n<="9"?`Digit${n}`:n.charAt(0).toUpperCase()+n.slice(1)};for(let o of t)if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command"||o==="win")r.meta=!0;else return null;return r}function bc(){Yp||typeof document=="undefined"||(Yp=!0,document.addEventListener("keydown",e=>{let t=w.xrayShortcut;if(t===!1)return;let n=Hx(typeof t=="string"?t:"ctrl+shift+f2");n&&(e.ctrlKey!==n.ctrl||e.altKey!==n.alt||e.shiftKey!==n.shift||e.metaKey!==n.meta||e.code!==n.code&&e.key.toUpperCase()!==n.code.replace(/^Key/,"")||(e.preventDefault(),Ao()))}))}function Ao(e){return bc(),(e!=null?e:!Xe)?Px():am(),Xe}de();ce();var Nx=new Set(["SCRIPT","STYLE","PRE","CODE","SAMP","KBD","TEXTAREA","TEMPLATE","NOSCRIPT"]);N("$__jsx",e=>e);Td((e,t)=>{t?Ro():Ss(e)});var cm=Symbol("voodoo.jsx.template");function Ox(e){return typeof e=="object"&&e!==null&&cm in e}function Fx(e,t){var f;let n=[],r=[],o="",i=0,s=null,a=!1,l=e,c=t,d=!1,u=null;for(;l;){if(l.nodeType===Node.TEXT_NODE){let p=(f=l.textContent)!=null?f:"";for(;c<p.length;c++){let m=p[c];if(a){a=!1,o+=m;continue}if(s){m==="\\"?a=!0:m===s&&(s=null),o+=m;continue}if(m==='"'||m==="'"||m==="`"){s=m,o+=m;continue}if(m==="{"){i++,i>1&&(o+=m);continue}if(m==="}"){if(i--,i===0){c++,d=!0;break}o+=m;continue}o+=m}if(r.push(l),d){u={node:l,offset:c};break}}else if(l.nodeType===Node.ELEMENT_NODE){if(i===0)return null;o+=`$t(${n.length}, $__jsx)`,n.push(l),r.push(l)}else r.push(l);c=0,l=l.nextSibling}return d?{source:o,templates:n,nodes:r,tail:u}:null}function Ix(e){let t=e.source.match(/\(\s*\)/g);if(!t)return!1;let n=e.nodes[0],r=e.nodes[e.nodes.length-1],o=[r==null?void 0:r.nextSibling,n==null?void 0:n.previousSibling].map(l=>{var d;let c=l!=null?l:null;for(;c&&c.nodeType===Node.TEXT_NODE&&!((d=c.textContent)!=null?d:"").trim();)c=c===(r==null?void 0:r.nextSibling)?c.nextSibling:c.previousSibling;return c&&c.nodeType===Node.ELEMENT_NODE?c:null}).find(l=>(l==null?void 0:l.tagName)==="TABLE");if(!o)return!1;let i=o.querySelector("tbody");if(!i)return!1;let s=Array.from(i.children).filter(l=>l.tagName==="TR");if(s.length!==t.length)return!1;let a=0;return e.source=e.source.replace(/\(\s*\)/g,()=>`($t(${a++}, $__jsx))`),e.templates=s,e.host=i,e.nodes.push(...s),!0}function dm(e,t,n,r){var o;if(!(e==null||e===!1||e===!0)){if(Array.isArray(e)){for(let i of e)dm(i,t,n,r);return}if(Ox(e)){let i=e,a=t[i.index].cloneNode(!0),l=(o=i.scope)!=null?o:n;xc(a,l),Ro(),ne(a,l),r.push(a);return}r.push(document.createTextNode(String(e)))}}function xc(e,t){var o,i,s;if(Nx.has(e.tagName))return;let n=t!=null?t:Ce(e),r=e.firstChild;for(;r;){let a=r.nextSibling;if(r.nodeType===Node.ELEMENT_NODE){xc(r,(o=it(r))!=null?o:n),r=a;continue}if(r.nodeType!==Node.TEXT_NODE){r=a;continue}let c=((i=r.textContent)!=null?i:"").indexOf("{");if(c<0){r=a;continue}let d=Fx(r,c);if(!d){r=a;continue}if(d.templates.length===0&&!Ix(d)){r=a;continue}zx(e,d,n),r=(s=d.nodes[d.nodes.length-1])==null?void 0:s.nextSibling}}var yc=[];function zx(e,t,n){var f,p;let{source:r,templates:o,nodes:i,tail:s}=t,a;try{a=ze(r)}catch(m){w.devtools&&console.warn(`[Voodoo] could not parse the inline expression: ${r}`,m);return}s&&s.offset<((f=s.node.textContent)!=null?f:"").length&&s.node.splitText(s.offset);let l=(p=t.host)!=null?p:e,c=document.createComment("v-jsx");l.insertBefore(c,t.host?t.host.firstChild:i[0]);for(let m of i)m.remove();let d=[];yc.push(()=>u());function u(){let m=Ce(c),v=(m===Ke&&n?n:m).child({$t:(b,x)=>({[cm]:!0,index:b,scope:x})}),g=Pe(()=>{let b=jo(P(a,v)),x=[];dm(b,o,v,x);for(let T of d)T.remove();d=x;for(let T of x)l.insertBefore(T,c)});Be(c,()=>{g.effect.stop();for(let b of d)b.remove()})}}function Bx(e=document.body){var t;for(let n of Array.from(e.childNodes)){if(n.nodeType!==Node.TEXT_NODE)continue;let r=(t=n.textContent)!=null?t:"",o=r.indexOf("{");if(o<0)continue;let i=jx(r,o);if(i<0)continue;let s=r.slice(o,i+1);if(!/\b(?:const|let|var)\s/.test(s))continue;let a=s.slice(1,-1).replace(/\b(?:const|let|var)\s+/g,""),l=Y({});try{P(ze(a),new St(l))}catch(c){return w.devtools&&console.warn("[Voodoo] could not read the declaration block",c),null}return n.textContent=r.slice(0,o)+r.slice(i+1),l}return null}function jx(e,t){let n=0,r=null,o=!1;for(let i=t;i<e.length;i++){let s=e[i];if(o){o=!1;continue}if(r){s==="\\"?o=!0:s===r&&(r=null);continue}if(s==='"'||s==="'"||s==="`")r=s;else if(s==="{")n++;else if(s==="}"&&--n===0)return i}return-1}function Ro(){let e=yc.splice(0,yc.length);for(let t of e)try{t()}catch(n){console.error("[Voodoo] a JSX region failed to render",n)}}function Ss(e=document.body){let t=Bx(e);t&&Object.assign(Ke.data,t),xc(e,Ce(e))}function um(e=document.body){Ss(e),Ro()}Ae();var pm="voodoo:devtools:widget-position",wc="voodoo:devtools:widget-hidden",qx=4,oe=null,Cr=!1,kc=0,Cs=0,$o=[],Vx=`
|
|
1649
1653
|
.v-devtools-widget{
|
|
1650
1654
|
all: initial;
|
|
1651
1655
|
--vw-accent:#6D3BF5;
|
|
@@ -1776,9 +1780,9 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1776
1780
|
.v-devtools-btn,.v-devtools-pulse,.v-devtools-close{transition:none}
|
|
1777
1781
|
.v-devtools-btn:hover{transform:none}
|
|
1778
1782
|
}
|
|
1779
|
-
`,
|
|
1783
|
+
`,Ux=`<svg class="v-devtools-mark" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
1780
1784
|
<path d="M4 4l8 16 8-16" stroke="#6D3BF5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1781
1785
|
<circle cx="12" cy="7.5" r="2" fill="#FF3D8B"/>
|
|
1782
|
-
</svg>`;function
|
|
1786
|
+
</svg>`;function _x(){try{let e=localStorage.getItem(pm);if(!e)return null;let t=JSON.parse(e);return typeof(t==null?void 0:t.x)!="number"||typeof(t==null?void 0:t.y)!="number"?null:t}catch(e){return null}}function Wx(e){try{localStorage.setItem(pm,JSON.stringify(e))}catch(t){}}function Ec(e,t){let n=e.offsetWidth||120,r=e.offsetHeight||38,o=Math.min(Math.max(8,t.x),Math.max(8,window.innerWidth-n-8)),i=Math.min(Math.max(8,t.y),Math.max(8,window.innerHeight-r-8));e.style.left=`${o}px`,e.style.top=`${i}px`,e.style.right="auto",e.style.bottom="auto"}function Kx(){let e=document.createElement("div");e.className="v-devtools-widget",e.setAttribute("data-voodoo-devtools","widget");let t=document.createElement("button");t.type="button",t.className="v-devtools-btn",t.setAttribute("aria-label","Open Voodoo devtools (Ctrl+Shift+F2)"),t.setAttribute("aria-pressed","false"),t.title="Voodoo devtools \u2014 click to inspect, drag to move (Ctrl+Shift+F2)",t.innerHTML=Ux;let n=document.createElement("span");n.className="v-devtools-label",n.textContent="Voodoo";let r=document.createElement("span");r.className="v-devtools-count",r.textContent="0";let o=document.createElement("span");o.className="v-devtools-pulse",o.setAttribute("data-on","false"),t.append(n,r,o);let i=document.createElement("button");i.type="button",i.className="v-devtools-close",i.setAttribute("aria-label","Hide the devtools widget in this tab"),i.title="Hide in this tab",i.textContent="\xD7",e.append(t,i),document.body.appendChild(e);let s=_x();return s?Ec(e,s):(e.style.right="16px",e.style.bottom="16px"),{root:e,button:t,pulse:o,counter:r,close:i}}function Yx(e,t){let n=!1,r=!1,o=0,i=0,s=0,a=0,l=p=>{var h,v;if(p.button!==0)return;let m=e.root.getBoundingClientRect();n=!0,r=!1,s=p.clientX,a=p.clientY,o=p.clientX-m.left,i=p.clientY-m.top,(v=(h=e.button).setPointerCapture)==null||v.call(h,p.pointerId)},c=p=>{if(!n)return;let m=Math.hypot(p.clientX-s,p.clientY-a);!r&&m<qx||(r=!0,p.preventDefault(),Ec(e.root,{x:p.clientX-o,y:p.clientY-i}))},d=p=>{var h,v;if(!n)return;if(n=!1,(v=(h=e.button).releasePointerCapture)==null||v.call(h,p.pointerId),!r){t();return}let m=e.root.getBoundingClientRect();Wx({x:m.left,y:m.top})},u=p=>{p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),t())},f=()=>{let p=e.root.getBoundingClientRect();e.root.style.left&&Ec(e.root,{x:p.left,y:p.top})};return e.button.addEventListener("pointerdown",l),e.button.addEventListener("pointermove",c),e.button.addEventListener("pointerup",d),e.button.addEventListener("pointercancel",d),e.button.addEventListener("keydown",u),window.addEventListener("resize",f),()=>{e.button.removeEventListener("pointerdown",l),e.button.removeEventListener("pointermove",c),e.button.removeEventListener("pointerup",d),e.button.removeEventListener("pointercancel",d),e.button.removeEventListener("keydown",u),window.removeEventListener("resize",f)}}function Xx(){oe&&(oe.pulse.setAttribute("data-on","true"),window.clearTimeout(Cs),Cs=window.setTimeout(()=>{oe==null||oe.pulse.setAttribute("data-on","false")},320))}function fm(){if(!oe)return;let e=Rt.size,t=e===1?"1 component":`${e} components`;oe.counter.textContent!==t&&(oe.counter.textContent=t)}function Gx(){if(Cr||typeof document=="undefined"||!document.body)return;try{if(sessionStorage.getItem(wc)==="1")return}catch(r){}Cr=!0,Z("devtools-widget",Vx),oe=Kx();let e=()=>{let r=Ao();oe==null||oe.root.setAttribute("data-active",String(r)),oe==null||oe.button.setAttribute("aria-pressed",String(r))};$o.push(Yx(oe,e));let t=r=>{r.stopPropagation();try{sessionStorage.setItem(wc,"1")}catch(o){}mm(),console.info("[Voodoo] devtools widget hidden. Use V.devtoolsWidget(true) to bring back.")};oe.close.addEventListener("click",t),$o.push(()=>oe==null?void 0:oe.close.removeEventListener("click",t));let n=()=>{let r=lm();oe==null||oe.root.setAttribute("data-active",String(r)),oe==null||oe.button.setAttribute("aria-pressed",String(r))};document.addEventListener("keyup",n),$o.push(()=>document.removeEventListener("keyup",n));for(let r of["network","event","navigation","update"])$o.push(je.on(r,Xx));fm(),kc=window.setInterval(fm,1e3)}function mm(){if(Cr){Cr=!1;for(let e of $o.splice(0))try{e()}catch(t){}window.clearInterval(kc),window.clearTimeout(Cs),kc=0,Cs=0,oe==null||oe.root.remove(),oe=null}}function vm(e){if(e!=null?e:!Cr){try{sessionStorage.removeItem(wc)}catch(n){}Gx()}else mm();return Cr}var gm=((e,t)=>Na(e,t));function hm(e,t,n){return((...r)=>(Nr(e,t),n(...r)))}Object.assign(gm,bi,{query:Na,ready:Oa,fromHtml:Hu,jsx:um,extractJsx:Ss,activateJsx:Ro,Collection:vt,router:Gr,route:ue,navigate:Kt,resolveRoute:tr,i18n:Jr,t:ir,setLocale:Qr,getLocale:Ri,modal:Mn,alert:cc,confirm:bs,prompt:dc,dialog:wr,validator:J,validate:gl,validateForm:hm("V.validateForm","V.validate",gl),serializeForm:cr,messages:lt,showFormErrors:_i,showFieldError:Ui,clearErrors:ao,mask:_p,masks:To,applyMask:Eo,unmask:ws,registerMask:Le,animate:Nt,spring:Il,stagger:zl,inView:as,scrollProgress:Bl,motion:xn,easings:po,chart:hm("V.chart","V.renderChart",hr),renderChart:hr,charts:Wl,chartColors:vo,palette:Dp,hotkey:no,sound:Jt,xray:Ao,enableXrayShortcut:bc,devtoolsWidget:vm,devtools:je,magic:N});var Tc=gm;ce();function Qx(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 Jx(){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&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");o&&(w.locale=o),Qx(e)&&(w.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(w.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function Zx(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 bm(e){var o;if(typeof window=="undefined")return;let t=Jx(),n=window;if(n.V=e,n.Voodoo=e,Oe.V=e,Oe.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),t.manual||!w.autoStart)return;Qo(()=>{mt.init(),$p(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),w.devtools&&Zx(e)})}bm(Tc);var e0=Tc;return Rm(t0);})();
|
|
1783
1787
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
1784
1788
|
//# sourceMappingURL=voodoo.full.min.js.map
|