voodoojs 0.11.0 → 0.11.2

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.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Voodoo.js v0.11.0
2
+ * Voodoo.js v0.11.2
3
3
  * JavaScript feels like magic.
4
4
  * (c) 2026 Voodoo.js contributors. MIT License.
5
5
  */
6
- "use strict";var Voodoo=(()=>{var Xn=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var Vl=Object.getOwnPropertyNames;var Wl=Object.prototype.hasOwnProperty;var Kl=(e,t,n)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vo=(e,t)=>()=>(e&&(t=e(e=0)),t);var Jn=(e,t)=>{for(var n in t)Xn(e,n,{get:t[n],enumerable:!0})},Yl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vl(t))!Wl.call(e,o)&&o!==n&&Xn(e,o,{get:()=>t[o],enumerable:!(r=_l(t,o))||r.enumerable});return e};var Ql=e=>Yl(Xn({},"__esModule",{value:!0}),e);var S=(e,t,n)=>Kl(e,typeof t!="symbol"?t+"":t,n);var Rs={};Jn(Rs,{EffectScope:()=>Me,ITERATE_KEY:()=>gt,ReactiveEffect:()=>It,TriggerType:()=>As,computed:()=>wn,effect:()=>Ee,effectScope:()=>Mo,enableTracking:()=>Ls,flushSync:()=>To,getActiveEffect:()=>Xl,getActiveScope:()=>Zl,handleError:()=>z,hasChanged:()=>yn,isReactive:()=>Do,isRef:()=>vt,markRaw:()=>Ho,nextTick:()=>yt,pauseTracking:()=>ks,queueJob:()=>rr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>bn,resetTracking:()=>Ao,setErrorHandler:()=>ko,shallowRef:()=>Po,stop:()=>So,toRaw:()=>ie,track:()=>Oe,trigger:()=>Ve,unref:()=>No,warn:()=>Y,watch:()=>ve,watchEffect:()=>Oo});function yt(e){let t=tr||Eo;return e?t.then(e):t}function rr(e){e.queued||(e.queued=!0,$t.push(e),Ts())}function fe(e){Zn.push(e),Ts()}function Ts(){er||hn||(hn=!0,tr=Eo.then(xo))}function xo(){hn=!1,er=!0;let e=new Map;try{for(let t=0;t<$t.length;t++){let n=$t[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Gl){Y("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){z(o,"effect")}}}finally{for(let n of $t)n.queued=!1;$t=[],er=!1;let t=Zn;Zn=[];for(let n of t)try{n()}catch(r){z(r,"post-flush")}$t.length||Zn.length?(tr=Eo.then(xo),hn=!0):tr=null}}function To(){er||(hn=!1,xo())}function ko(e){ho=e}function z(e,t){if(ho){ho(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function ks(){Lo.push(ht),ht=!1}function Ls(){Lo.push(ht),ht=!0}function Ao(){var e;ht=(e=Lo.pop())!=null?e:!0}function Xl(){return ge}function bs(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Ee(e,t){let n=new It(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function So(e){e instanceof It?e.stop():e.effect.stop()}function Mo(e=!1){return new Me(e)}function Zl(){return tt}function Oe(e,t){if(!ht||!ge)return;let n=yo.get(e);n||yo.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function Ve(e,t,n,r){let o=yo.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let c of a)(c!==ge||t==="clear")&&i.add(c)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?bo(n)&&s(o.get("length")):s(o.get(gt));else if(t==="delete")a||s(o.get(gt));else if(a&&n==="length"){let c=Number(r);o.forEach((l,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=c)&&s(l)})}}for(let a of i)a.scheduler?a.scheduler():rr(a)}function bo(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function nt(e){return e!==null&&typeof e=="object"}function tu(e){if(!nt(e)||e[Ss]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return eu.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ho(e){return Object.defineProperty(e,Ss,{value:!0,enumerable:!1,configurable:!0}),e}function ie(e){let t=e&&e[Co];return t?ie(t):e}function Do(e){return!!(e&&e[Ro])}function V(e){if(!nt(e)||Do(e)||!tu(e))return e;let t=ws.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?ru:nu);return ws.set(e,r),r}function yn(e,t){return!Object.is(e,t)}function vt(e){return!!(e&&e.__v_isRef===!0)}function xs(e){return nt(e)?V(e):e}function Ms(e){!ht||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Cs(e){for(let t of[...e.dep])t.scheduler?t.scheduler():rr(t)}function bn(e){return new nr(e)}function Po(e){return new nr(e,!0)}function No(e){return vt(e)?e.value:e}function wn(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new wo(n,r)}function ve(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(vt(e)?s=()=>e.value:typeof e=="function"?s=e:Do(e)?s=()=>Ft(e):s=()=>e,o){let f=s;s=()=>Ft(f())}let a,c,l=f=>{c=f},u=()=>{if(!p.effect.active)return;let f=p();(o||yn(f,a))&&(c==null||c(),c=void 0,t(f,a,l),a=f)},p=i==="pre"?Ee(s,{lazy:!0,scheduler:()=>fe(u)}):Ee(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>rr(p.effect)});return a=p(),r&&t(a,void 0,l),()=>p.effect.stop()}function Oo(e){let t,n=o=>{t=o},r=Ee(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Ft(e,t=new Set){if(!nt(e)||t.has(e))return e;if(t.add(e),vt(e))Ft(e.value,t);else if(Array.isArray(e))for(let n of e)Ft(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Ft(n,t));else for(let n of Object.keys(e))Ft(e[n],t);return e}var Eo,$t,Zn,er,hn,tr,Gl,ho,ge,ht,Lo,Jl,It,tt,Me,gt,yo,As,Co,Ro,Ss,ws,Es,eu,nu,ru,nr,wo,re=vo(()=>{"use strict";Eo=Promise.resolve(),$t=[],Zn=[],er=!1,hn=!1,tr=null,Gl=100;ho=null;ht=!0,Lo=[];Jl=0,It=class{constructor(t,n){var o;this.fn=t,this.id=Jl++,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:tt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Ls(),bs(this),this.fn()}finally{Ao(),ge=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){z(r,"effect cleanup")}}stop(){var t;this.active&&(bs(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Me=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&tt&&(this.parent=tt,tt.children.push(this))}run(t){if(!this.active)return;let n=tt;try{return tt=this,t()}finally{tt=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){z(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)}}}};gt=Symbol("voodoo:iterate"),yo=new WeakMap;As=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(As||{});Co=Symbol("voodoo:raw"),Ro=Symbol("voodoo:isReactive"),Ss=Symbol("voodoo:skip"),ws=new WeakMap,Es=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=ie(this);for(let i=0;i<r.length;i++)Oe(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(ie)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){ks();try{return ie(this)[t].apply(this,n)}finally{Ao()}};return e})();eu=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);nu={get(e,t,n){if(t===Co)return e;if(t===Ro)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Es,t))return Reflect.get(Es,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Oe(e,t),vt(o)?r&&bo(t)?o:o.value:nt(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=ie(n),!Array.isArray(e)&&vt(o)&&!vt(n))return o.value=n,!0;let i=Array.isArray(e)&&bo(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===ie(r)&&(i?yn(n,o)&&Ve(e,"set",t,n):Ve(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ve(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Oe(e,t),n},ownKeys(e){return Oe(e,Array.isArray(e)?"length":gt),Reflect.ownKeys(e)}},ru={get(e,t,n){if(t===Co)return e;if(t===Ro)return!0;let r=e;if(t==="size")return Oe(r,gt),Reflect.get(r,"size",r);let o={get(s){Oe(r,s);let a=r.get(s);return nt(a)?V(a):a},has(s){return Oe(r,s),r.has(s)},add(s){s=ie(s);let a=r.has(s);return r.add(s),a||Ve(r,"add",s,s),n},set(s,a){let c=r.has(s),l=r.get(s);return r.set(s,ie(a)),c?yn(a,l)&&Ve(r,"set",s,a):Ve(r,"add",s,a),n},delete(s){let a=r.has(s),c=r.delete(s);return a&&Ve(r,"delete",s),c},clear(){let s=r.size!==0,a=r.clear();return s&&Ve(r,"clear"),a},forEach(s,a){return Oe(r,gt),r.forEach((c,l)=>{s.call(a,nt(c)?V(c):c,nt(l)?V(l):l,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Oe(r,gt);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};nr=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=ie(t),this._value=n?t:xs(t)}get value(){return Ms(this),this._value}set value(t){let n=ie(t);yn(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:xs(t),Cs(this))}};wo=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new It(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Cs(this))}})}get value(){return Ms(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;Ye.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function bt(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function sr(e,t,n){_s.has(t)||(_s.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,Ye,P,le,_s,Z=vo(()=>{"use strict";E={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},Ye=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};le=new Map;_s=new Set});var Ba={};Jn(Ba,{BASE_TOKENS:()=>ja,ensureTokens:()=>se,injectStyle:()=>G});function G(e,t){if(typeof document=="undefined"||!E.injectStyles||Ia.has(e))return;Ia.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function se(){G("tokens",ja)}var Ia,ja,Te=vo(()=>{"use strict";Z();Ia=new Set;ja=`
6
+ "use strict";var Voodoo=(()=>{var Xn=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var Vl=Object.getOwnPropertyNames;var Wl=Object.prototype.hasOwnProperty;var Kl=(e,t,n)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vo=(e,t)=>()=>(e&&(t=e(e=0)),t);var Jn=(e,t)=>{for(var n in t)Xn(e,n,{get:t[n],enumerable:!0})},Yl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vl(t))!Wl.call(e,o)&&o!==n&&Xn(e,o,{get:()=>t[o],enumerable:!(r=_l(t,o))||r.enumerable});return e};var Ql=e=>Yl(Xn({},"__esModule",{value:!0}),e);var S=(e,t,n)=>Kl(e,typeof t!="symbol"?t+"":t,n);var Rs={};Jn(Rs,{EffectScope:()=>Me,ITERATE_KEY:()=>gt,ReactiveEffect:()=>It,TriggerType:()=>As,computed:()=>wn,effect:()=>Ee,effectScope:()=>Mo,enableTracking:()=>Ls,flushSync:()=>To,getActiveEffect:()=>Xl,getActiveScope:()=>Zl,handleError:()=>U,hasChanged:()=>yn,isReactive:()=>Do,isRef:()=>vt,markRaw:()=>Ho,nextTick:()=>yt,pauseTracking:()=>ks,queueJob:()=>rr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>bn,resetTracking:()=>Ao,setErrorHandler:()=>ko,shallowRef:()=>Po,stop:()=>So,toRaw:()=>ie,track:()=>Oe,trigger:()=>Ve,unref:()=>No,warn:()=>Y,watch:()=>ve,watchEffect:()=>Oo});function yt(e){let t=tr||Eo;return e?t.then(e):t}function rr(e){e.queued||(e.queued=!0,$t.push(e),Ts())}function fe(e){Zn.push(e),Ts()}function Ts(){er||hn||(hn=!0,tr=Eo.then(xo))}function xo(){hn=!1,er=!0;let e=new Map;try{for(let t=0;t<$t.length;t++){let n=$t[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Gl){Y("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){U(o,"effect")}}}finally{for(let n of $t)n.queued=!1;$t=[],er=!1;let t=Zn;Zn=[];for(let n of t)try{n()}catch(r){U(r,"post-flush")}$t.length||Zn.length?(tr=Eo.then(xo),hn=!0):tr=null}}function To(){er||(hn=!1,xo())}function ko(e){ho=e}function U(e,t){if(ho){ho(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function ks(){Lo.push(ht),ht=!1}function Ls(){Lo.push(ht),ht=!0}function Ao(){var e;ht=(e=Lo.pop())!=null?e:!0}function Xl(){return ge}function bs(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Ee(e,t){let n=new It(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function So(e){e instanceof It?e.stop():e.effect.stop()}function Mo(e=!1){return new Me(e)}function Zl(){return tt}function Oe(e,t){if(!ht||!ge)return;let n=yo.get(e);n||yo.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function Ve(e,t,n,r){let o=yo.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let c of a)(c!==ge||t==="clear")&&i.add(c)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?bo(n)&&s(o.get("length")):s(o.get(gt));else if(t==="delete")a||s(o.get(gt));else if(a&&n==="length"){let c=Number(r);o.forEach((l,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=c)&&s(l)})}}for(let a of i)a.scheduler?a.scheduler():rr(a)}function bo(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function nt(e){return e!==null&&typeof e=="object"}function tu(e){if(!nt(e)||e[Ss]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return eu.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ho(e){return Object.defineProperty(e,Ss,{value:!0,enumerable:!1,configurable:!0}),e}function ie(e){let t=e&&e[Co];return t?ie(t):e}function Do(e){return!!(e&&e[Ro])}function V(e){if(!nt(e)||Do(e)||!tu(e))return e;let t=ws.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?ru:nu);return ws.set(e,r),r}function yn(e,t){return!Object.is(e,t)}function vt(e){return!!(e&&e.__v_isRef===!0)}function xs(e){return nt(e)?V(e):e}function Ms(e){!ht||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Cs(e){for(let t of[...e.dep])t.scheduler?t.scheduler():rr(t)}function bn(e){return new nr(e)}function Po(e){return new nr(e,!0)}function No(e){return vt(e)?e.value:e}function wn(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new wo(n,r)}function ve(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(vt(e)?s=()=>e.value:typeof e=="function"?s=e:Do(e)?s=()=>Ft(e):s=()=>e,o){let f=s;s=()=>Ft(f())}let a,c,l=f=>{c=f},u=()=>{if(!p.effect.active)return;let f=p();(o||yn(f,a))&&(c==null||c(),c=void 0,t(f,a,l),a=f)},p=i==="pre"?Ee(s,{lazy:!0,scheduler:()=>fe(u)}):Ee(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>rr(p.effect)});return a=p(),r&&t(a,void 0,l),()=>p.effect.stop()}function Oo(e){let t,n=o=>{t=o},r=Ee(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Ft(e,t=new Set){if(!nt(e)||t.has(e))return e;if(t.add(e),vt(e))Ft(e.value,t);else if(Array.isArray(e))for(let n of e)Ft(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Ft(n,t));else for(let n of Object.keys(e))Ft(e[n],t);return e}var Eo,$t,Zn,er,hn,tr,Gl,ho,ge,ht,Lo,Jl,It,tt,Me,gt,yo,As,Co,Ro,Ss,ws,Es,eu,nu,ru,nr,wo,re=vo(()=>{"use strict";Eo=Promise.resolve(),$t=[],Zn=[],er=!1,hn=!1,tr=null,Gl=100;ho=null;ht=!0,Lo=[];Jl=0,It=class{constructor(t,n){var o;this.fn=t,this.id=Jl++,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:tt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Ls(),bs(this),this.fn()}finally{Ao(),ge=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){U(r,"effect cleanup")}}stop(){var t;this.active&&(bs(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Me=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&tt&&(this.parent=tt,tt.children.push(this))}run(t){if(!this.active)return;let n=tt;try{return tt=this,t()}finally{tt=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){U(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)}}}};gt=Symbol("voodoo:iterate"),yo=new WeakMap;As=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(As||{});Co=Symbol("voodoo:raw"),Ro=Symbol("voodoo:isReactive"),Ss=Symbol("voodoo:skip"),ws=new WeakMap,Es=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=ie(this);for(let i=0;i<r.length;i++)Oe(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(ie)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){ks();try{return ie(this)[t].apply(this,n)}finally{Ao()}};return e})();eu=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);nu={get(e,t,n){if(t===Co)return e;if(t===Ro)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Es,t))return Reflect.get(Es,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Oe(e,t),vt(o)?r&&bo(t)?o:o.value:nt(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=ie(n),!Array.isArray(e)&&vt(o)&&!vt(n))return o.value=n,!0;let i=Array.isArray(e)&&bo(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===ie(r)&&(i?yn(n,o)&&Ve(e,"set",t,n):Ve(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ve(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Oe(e,t),n},ownKeys(e){return Oe(e,Array.isArray(e)?"length":gt),Reflect.ownKeys(e)}},ru={get(e,t,n){if(t===Co)return e;if(t===Ro)return!0;let r=e;if(t==="size")return Oe(r,gt),Reflect.get(r,"size",r);let o={get(s){Oe(r,s);let a=r.get(s);return nt(a)?V(a):a},has(s){return Oe(r,s),r.has(s)},add(s){s=ie(s);let a=r.has(s);return r.add(s),a||Ve(r,"add",s,s),n},set(s,a){let c=r.has(s),l=r.get(s);return r.set(s,ie(a)),c?yn(a,l)&&Ve(r,"set",s,a):Ve(r,"add",s,a),n},delete(s){let a=r.has(s),c=r.delete(s);return a&&Ve(r,"delete",s),c},clear(){let s=r.size!==0,a=r.clear();return s&&Ve(r,"clear"),a},forEach(s,a){return Oe(r,gt),r.forEach((c,l)=>{s.call(a,nt(c)?V(c):c,nt(l)?V(l):l,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Oe(r,gt);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};nr=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=ie(t),this._value=n?t:xs(t)}get value(){return Ms(this),this._value}set value(t){let n=ie(t);yn(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:xs(t),Cs(this))}};wo=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new It(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Cs(this))}})}get value(){return Ms(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;Ye.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function bt(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function sr(e,t,n){_s.has(t)||(_s.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,Ye,P,le,_s,Z=vo(()=>{"use strict";E={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},Ye=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};le=new Map;_s=new Set});var Ba={};Jn(Ba,{BASE_TOKENS:()=>ja,ensureTokens:()=>se,injectStyle:()=>G});function G(e,t){if(typeof document=="undefined"||!E.injectStyles||Ia.has(e))return;Ia.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function se(){G("tokens",ja)}var Ia,ja,Te=vo(()=>{"use strict";Z();Ia=new Set;ja=`
7
7
  :root{
8
8
  --v-primary:#6D3BF5;
9
9
  --v-primary-hover:#5A2FD8;
@@ -47,18 +47,18 @@
47
47
  --v-shadow:0 10px 30px rgba(0,0,0,.45);
48
48
  }
49
49
  [v-cloak]{display:none !important}
50
- `});var qp={};Jn(qp,{default:()=>Bp});re();var U=class extends Error{constructor(n,r,o){let i=`${r}
50
+ `});var qp={};Jn(qp,{default:()=>Bp});re();var q=class extends Error{constructor(n,r,o){let i=`${r}
51
51
  ${" ".repeat(Math.max(0,o))}^`;super(`${n}
52
52
 
53
53
  ${i}`);S(this,"source",r);S(this,"position",o);this.name="VoodooSyntaxError"}},ou=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],iu=/[A-Za-z_$À-￿]/,su=/[A-Za-z0-9_$À-￿]/;function au(e){return iu.test(e)}function cu(e){return su.test(e)}function or(e){return e>="0"&&e<="9"}var Hs={n:`
54
54
  `,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function ir(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 l=e.indexOf("*/",n+2);if(l===-1)throw new U("Unclosed block comment",e,n);n=l+2;continue}let a=n;if(or(s)||s==="."&&or(e[n+1])){let l="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(l="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(l="0b",n+=2;n<r&&/[01_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(l="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)l+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]===".")for(l+=e[n++];n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]==="e"||e[n]==="E")for(l+=e[n++],(e[n]==="+"||e[n]==="-")&&(l+=e[n++]);n<r&&or(e[n]);)l+=e[n++]}let u=Number(l.replace(/_/g,""));if(Number.isNaN(u))throw new U("Invalid number",e,a);t.push({type:"num",value:l,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let l="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new U("Unclosed Unicode escape",e,a);let p=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new U(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);l+=String.fromCodePoint(parseInt(p,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new U("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new U("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=3}else l+=(o=Hs[u])!=null?o:u,n++}else l+=e[n++];if(n>=r)throw new U("Unclosed string",e,a);n++,t.push({type:"str",value:l,parsed:l,start:a,end:n});continue}if(s==="`"){n++;let l=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];d+=(i=Hs[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){l.push(d),d="",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 v=m;for(f+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new U("Unclosed template interpolation",e,a);n++,u.push(f);continue}d+=e[n++]}if(n>=r)throw new U("Unclosed template literal",e,a);n++,l.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:l,exprs:u},start:a,end:n});continue}if(au(s)){let l="";for(;n<r&&cu(e[n]);)l+=e[n++];t.push({type:"ident",value:l,start:a,end:n});continue}let c;for(let l of ou)if(e.startsWith(l,n)){if(l==="?."&&or(e[n+2]))continue;c=l;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new U(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ds={"??":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},lu=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),uu=new Set(["!","-","+","~","typeof","void","delete"]),Ps=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Ns=1200,Os=32,$o=0,Fo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new U(`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>Ns){let t=this.peek();throw new U(`Expression too deeply nested (limit of ${Ns} 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"&&lu.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new U("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 U("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 U("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 U("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 U("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 U("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 Ds||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Ds[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")&&uu.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 U("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 U("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 U("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($o>=Os)throw new U(`Template literal too deeply nested (limit of ${Os} levels)`,this.source,t.start);$o++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>$e(r))}}finally{$o--}}if(t.type==="ident")return t.value in Ps?(this.next(),{t:"lit",v:Ps[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=this.parseExpression();return this.expect(")"),n}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new U(`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 U("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}}},jt=new Map,$s=2e3;function $e(e){let t=jt.get(e);if(t)return t;let n=new Fo(ir(e),e).parseProgram();return jt.size>=$s&&du(),jt.set(e,n),n}function du(){let e=Math.floor($s/2),t=0;for(let n of jt.keys())if(jt.delete(n),++t>=e)break}function Fs(){jt.clear()}var zs,fu=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(zs=Object.hasOwn)!=null?zs:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),pu=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"]),pe={Math,JSON,Date,Number,String,Boolean,Array,Object:fu,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},J=class extends Error{constructor(n,r){super(r?`${n}
56
+ `;)n++;continue}if(s==="/"&&e[n+1]==="*"){let l=e.indexOf("*/",n+2);if(l===-1)throw new q("Unclosed block comment",e,n);n=l+2;continue}let a=n;if(or(s)||s==="."&&or(e[n+1])){let l="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(l="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(l="0b",n+=2;n<r&&/[01_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(l="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)l+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]===".")for(l+=e[n++];n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]==="e"||e[n]==="E")for(l+=e[n++],(e[n]==="+"||e[n]==="-")&&(l+=e[n++]);n<r&&or(e[n]);)l+=e[n++]}let u=Number(l.replace(/_/g,""));if(Number.isNaN(u))throw new q("Invalid number",e,a);t.push({type:"num",value:l,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let l="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new q("Unclosed Unicode escape",e,a);let p=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new q(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);l+=String.fromCodePoint(parseInt(p,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new q("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new q("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=3}else l+=(o=Hs[u])!=null?o:u,n++}else l+=e[n++];if(n>=r)throw new q("Unclosed string",e,a);n++,t.push({type:"str",value:l,parsed:l,start:a,end:n});continue}if(s==="`"){n++;let l=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];d+=(i=Hs[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){l.push(d),d="",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 v=m;for(f+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new q("Unclosed template interpolation",e,a);n++,u.push(f);continue}d+=e[n++]}if(n>=r)throw new q("Unclosed template literal",e,a);n++,l.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:l,exprs:u},start:a,end:n});continue}if(au(s)){let l="";for(;n<r&&cu(e[n]);)l+=e[n++];t.push({type:"ident",value:l,start:a,end:n});continue}let c;for(let l of ou)if(e.startsWith(l,n)){if(l==="?."&&or(e[n+2]))continue;c=l;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new q(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ds={"??":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},lu=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),uu=new Set(["!","-","+","~","typeof","void","delete"]),Ps=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Ns=1200,Os=32,$o=0,Fo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new q(`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>Ns){let t=this.peek();throw new q(`Expression too deeply nested (limit of ${Ns} 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"&&lu.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new q("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 q("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 q("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 q("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 q("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 q("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 Ds||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Ds[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")&&uu.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 q("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 q("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 q("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($o>=Os)throw new q(`Template literal too deeply nested (limit of ${Os} levels)`,this.source,t.start);$o++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>$e(r))}}finally{$o--}}if(t.type==="ident")return t.value in Ps?(this.next(),{t:"lit",v:Ps[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 q("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 q(`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 q("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}}},jt=new Map,$s=2e3;function $e(e){let t=jt.get(e);if(t)return t;let n=new Fo(ir(e),e).parseProgram();return jt.size>=$s&&du(),jt.set(e,n),n}function du(){let e=Math.floor($s/2),t=0;for(let n of jt.keys())if(jt.delete(n),++t>=e)break}function Fs(){jt.clear()}var zs,fu=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(zs=Object.hasOwn)!=null?zs:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),pu=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"]),pe={Math,JSON,Date,Number,String,Boolean,Array,Object:fu,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},J=class extends Error{constructor(n,r){super(r?`${n}
57
57
 
58
58
  Expression: ${r}`:n);S(this,"expression",r);this.name="VoodooRuntimeError"}},jo=Symbol("spread"),En=class{constructor(t){S(this,"value",t)}};function Is(e){return e instanceof En?e.value:e}var mu=new Set(["__proto__","constructor","prototype"]);function Us(e){return typeof e=="string"&&mu.has(e)}function We(e,t){if(Us(e))throw new J(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function M(e,t){var n,r;switch(e.t){case"lit":return e.v;case"tpl":{let o=(n=e.quasis[0])!=null?n:"";for(let i=0;i<e.exprs.length;i++)o+=Ke(M(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{We(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in pe?pe[e.n]:void 0}case"member":{let o=M(e.o,t);if(o==null){if(e.opt)return;throw new J(`Could not read "${Io(e,t)}" from ${o===null?"null":"undefined"}`)}let i=We(e.computed?M(e.p,t):e.p.v);return o[i]}case"new":{let o=M(e.callee,t);if(typeof o!="function")throw new J(`Cannot construct ${Ke(o)}: it is not a constructor`);if(o===Function)throw new J("Cannot construct Function: expressions never compile code");let i=Bs(e.args,t);return Reflect.construct(o,i)}case"call":{let o,i;if(e.callee.t==="member"){let s=M(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new J(`Could not call "${Io(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=We(e.callee.computed?M(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){We(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=pe[e.callee.n]}else i=M(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Io(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in pe)?pu.has(s)?new J(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new J(`"${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 J(`"${s}" is not a function`)}return i.apply(o,Bs(e.args,t))}case"unary":{if(e.op==="...")return{[jo]:M(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new J("delete needs a property, as in `delete user.name` or `delete list[0]`");let i=M(e.a.o,t);if(i==null)return!0;let s=We(e.a.computed?M(e.a.p,t):e.a.p.v);return delete i[s]}if(e.op==="typeof"){if(e.a.t==="id"){if(Us(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:pe[e.a.n])}return typeof M(e.a,t)}let o=M(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new J(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(M(e.a,t)),i=e.op==="++"?o+1:o-1;return qs(e.a,i,t),e.prefix?i:o}case"bin":{let o=M(e.l,t),i=M(e.r,t);switch(e.op){case"+":return o+i;case"-":return o-i;case"*":return o*i;case"/":return o/i;case"%":return o%i;case"**":return o**i;case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case">":return o>i;case"<=":return o<=i;case">=":return o>=i;case"in":return o in i;case"instanceof":return o instanceof i;case"&":return o&i;case"|":return o|i;case"^":return o^i;case"<<":return o<<i;case">>":return o>>i;case">>>":return o>>>i}throw new J(`Unsupported operator: ${e.op}`)}case"logic":{let o=M(e.l,t);return e.op==="&&"?o&&M(e.r,t):e.op==="||"?o||M(e.r,t):o!=null?o:M(e.r,t)}case"cond":return M(e.test,t)?M(e.cons,t):M(e.alt,t);case"assign":{let o;if(e.op==="=")o=M(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=M(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=M(e.value,t)}else{let i=M(e.target,t),s=M(e.value,t);switch(e.op){case"+=":o=i+s;break;case"-=":o=i-s;break;case"*=":o=i*s;break;case"/=":o=i/s;break;case"%=":o=i%s;break;case"**=":o=i**s;break;default:throw new J(`Unsupported assignment: ${e.op}`)}}return qs(e.target,o,t),o}case"if":return M(e.test,t)?M(e.cons,t):e.alt?M(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a=js(o,s,t),c=this,l=c!==null&&typeof c=="object"?t.child(c):t;return Is(M(i,l.child(a)))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>Is(M(i,t.child(js(o,s,t))))}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,M(i.spread,t));else{let s=We(i.key!==null?i.key:String(M(i.keyExpr,t)));if(i.getter){let a=M(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=M(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...M(i.spread,t)):o.push(M(i,t));return o}case"return":return new En(e.a?M(e.a,t):void 0);case"seq":{let o;for(let i of e.body)if(o=M(i,t),o instanceof En)return o;return o}}throw new J(`Unknown node: ${e.t}`)}function Bo(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=M(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new J(`Cannot destructure ${t===null?"null":"undefined"}`);let i=new Set;for(let{key:s,value:a}of e.props)i.add(s),Bo(a,t[We(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&&Bo(i,o[s],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function js(e,t,n){let r={};for(let o=0;o<e.length;o++){let i=e[o];Bo(i,i.kind==="rest"?t.slice(o):t[o],r,n)}return r}function Bs(e,t){let n=[];for(let r of e){let o=M(r,t);o&&typeof o=="object"&&jo in o?n.push(...o[jo]):n.push(o)}return n}function qs(e,t,n){if(e.t==="id"){We(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=M(e.o,n);if(r==null)throw new J("Could not write to null or undefined");let o=We(e.computed?M(e.p,n):e.p.v);r[o]=t;return}throw new J("Invalid assignment target")}function Io(e,t){return e.t==="member"?e.computed?String(M(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Ke(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)}Z();re();var xn=new Map;function H(e,t){xn.set(e.startsWith("$")?e:`$${e}`,t)}var wt=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&&xn.has(t))return this.magicContainer(t)}has(t){return this.lookup(t)!==void 0}get(t){let n=this.lookup(t);return n?n[t]:void 0}set(t,n){let r=this;for(;r;){if(t in r.data){r.data[t]=n;return}r=r.parent}this.data[t]=n}child(t={},n=null){return new e(t,this,n!=null?n:this.el)}reactiveChild(t,n=null){return new e(V(t),this,n!=null?n:this.el)}magicContainer(t){this.magicCache||(this.magicCache=new Map);let n=this.magicCache.get(t);if(n)return n;let r=xn.get(t),o=this,i={};return Object.defineProperty(i,t,{get:()=>r(o),set:s=>{let a=r(o);a&&typeof a=="object"&&"set"in a&&a.set(s)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},Fe=new wt(V({}));re();Z();Z();function Qe(){return E.devtools===!0}function Ge(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 Et(e){Qe()&&console.warn(`[Voodoo] ${e}`)}var Vs=new Set;function Tn(e,t){Qe()&&(Vs.has(e)||(Vs.add(e),console.warn(`[Voodoo] ${t}`)))}var gu=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function Ws(e,t,n){Qe()&&(gu.has(n)||Tn(`unknown-directive:${n}`,`unknown directive "${t}" at ${Ge(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function Ks(e,t){Tn(`unknown-component:${t}`,`component "${t}" not registered at ${Ge(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Ys(e,t,n,r){if(!Qe())return;let o=r instanceof Error?r.message.split(`
59
59
  `)[0]:String(r);Et(`invalid expression in ${t}="${n}" on element ${Ge(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 Qs(e,t,n){Qe()&&Et(`duplicate key "${String(t)}" in v-for="${n}" on element ${Ge(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 Gs(e,t,n){Qe()&&Et(`required prop "${n}" missing from component "${t}" at ${Ge(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function qo(e,t){Tn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var xt=new WeakMap,cr=new WeakMap,Xe=new WeakSet,zo=new WeakMap;function Wo(e){return Xe.has(e)}function Ko(e){Xe.add(e)}function zt(e){return xt.get(e)}function Ce(e){let t=e;for(;t;){let n=xt.get(t);if(n)return n;t=t.parentNode}return Fe}function ra(e,t){let n=zo.get(e);n||zo.set(e,n=[]),n.push(t)}var Uo=new WeakSet;function Yo(e){Uo.add(e),e.remove()}function Ie(e,t){let n=cr.get(e);n||cr.set(e,n=[]),n.push(t)}function q(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--)q(n[r])}let t=cr.get(e);if(t){cr.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){z(r,"cleanup")}}e.nodeType===1&&Eu(e),xt.delete(e),zo.delete(e),Xe.delete(e)}var ar=new Map,vu=4e3;function qt(e,t){let n=`${e}\0${t}`,r=ar.get(n);if(r!==void 0)return r;let o=hu(e,t);return ar.size>=vu&&ar.clear(),ar.set(n,o),o}function hu(e,t){let n=E.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!0}let a=i.indexOf(":"),c=a>-1?i.slice(0,a):i,l=a>-1?i.slice(a+1):void 0;return{raw:e,name:c,arg:l,modifiers:s,expression:t}}function yu(e){let t=[],n=Tt.get(e);if(n&&n.size)for(let[r,o]of n){let i=qt(r,o);i&&(t.push(i),Js(e,i.name))}else{let r=oa(e);for(let o=0;o<r.length;o++){let i=r[o];if(!wu(i))continue;let s=qt(i,e.getAttribute(i));s&&(t.push(s),Js(e,s.name))}}return t.length<2?t:t.sort((r,o)=>Xs(o)-Xs(r))}var bu=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function oa(e){return bu?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function wu(e){return Go(e)||e.charCodeAt(0)===46&&e.length>1}function Xs(e){var t,n;return(n=(t=Ye.get(e.name))==null?void 0:t.priority)!=null?n:0}var kn=new Map,lr=new WeakMap;function Js(e,t){let n=kn.get(t);n||kn.set(t,n=new Set),n.add(e);let r=lr.get(e);r||lr.set(e,r=new Set),r.add(t)}function Eu(e){var n;let t=lr.get(e);if(t){for(let r of t)(n=kn.get(r))==null||n.delete(e);lr.delete(e)}}function Qo(e,t){var n;return(n=kn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function ur(e,t){let n=[],r=kn.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${E.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function Ut(e,t){let n=e;for(;n;){if(Qo(n,t))return n;n=n.parentElement}return null}var Tt=new WeakMap;function Go(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function xe(e,t){var r;let n=(r=Tt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function rt(e,t){let n=Tt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function ia(e){let t=Tt.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];Go(o.name)&&n.set(o.name,o.value)}return n}function xu(e){if(!E.cleanAttributes)return;let t=oa(e),n=Tt.get(e);n||Tt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Go(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function sa(e){let t=Tt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function aa(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function O(e,t,n,r){if(e)try{return M($e(e),t)}catch(o){Qe()&&Ys(r!=null?r:t.el,n!=null?n:"expression",e,o),z(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var ca=new WeakSet;function la(e){ca.add(e)}function Zs(e,t,n){let r=Ye.get(t.name);if(!r){Qe()&&t.raw.startsWith(E.prefix)&&Ws(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Me(!0);Ie(e,()=>a.stop()),ra(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return O(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=i();c.run(()=>Ee(a,{scope:c}))},cleanup(a){Ie(e,a)},walk(a,c){W(a,c)}};try{r.setup(s)}catch(a){z(a,`directive ${t.raw}`)}}var _o=null;function ua(e){_o=e}var Tu=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(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)W(m,n);return}if(e.nodeType===3){da(e,n);return}if(e.nodeType!==1)return;let r=e;if(Xe.has(r))return;let o=r.tagName;if(Tu.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Xe.add(r);return}let i=n,s=yu(r),a=le.size===0&&_t.size===0||r.hasAttribute(`${E.prefix}component`)?null:Ru(o);if(s.length===0&&!a){ea(r,i);return}Xe.add(r);for(let f of s){let m=Ye.get(f.name);if(m!=null&&m.terminal){Zs(r,f,i);return}}let c=s.find(f=>f.name==="data"),l=s.find(f=>f.name==="component"),u=l?l.expression||"":a||"",d=!1;if(u&&_o){let f=_o(r,u,i);f&&(i=f,d=!0,xt.set(r,i))}else if(c||l){let f=c?O(c.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),xt.set(r,i)}let p=d?n:i;for(let f of s)f.name==="data"||f.name==="component"||Zs(r,f,p);xu(r),ca.has(r)||ea(r,i)}function ea(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&da(o,t);for(let o of n)W(o,(r=xt.get(o))!=null?r:t)}var ku=500,ta=new Map;function Lu(e){let t=e.trim();if(!t)return!1;let n=ta.get(t);if(n!==void 0)return n;let r=!0;try{r=$e(t).t!=="seq"}catch(o){r=!1}return ta.set(t,r),r}function Au(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 Su(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):Au(e,i);if(a===-1){n+=e[i],r=i+1;continue}let c=s?e.slice(i+2,a):e.slice(i+1,a),l=s?a+2:a+1;if((s||c.length<=ku)&&Lu(c)){o(),t.push({expression:c.trim(),raw:e.slice(i,l),explicit:s}),r=l;continue}n+=e[i],r=i+1}return o(),t}var Mu=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Cu(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 pe):!1}function da(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Xe.has(e))return;let r=e.parentElement;for(;r;){if(Mu.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Su(n);if(!o.some(s=>s.expression))return;Xe.add(e);let i=new Me(!0);Ie(e,()=>i.stop()),ra(e,i),i.run(()=>Ee(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let c=O(a.expression,t,"interpolation");s+=Cu(a,c,t)?a.raw:Ke(c)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function ot(e,t){xt.set(e,t)}function Ru(e){let t=e.toLowerCase();if(le.has(t))return t;let n=_t.get(t);return n!=null?n:null}var _t=new Map;var Vo=!1,Bt=null,Hu=[];function na(e,t){for(let n of Hu)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function fa(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),na(t,!1),W(t,Fe),na(t,!0),Vo||(Vo=!0,E.autoDiscover&&Du(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Du(e){typeof MutationObserver!="undefined"&&(Bt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Uo.has(o)){Uo.delete(o);continue}o.nodeType===1&&!o.isConnected&&q(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Xe.has(o)||W(o,Ce(o.parentNode)))}}}),Bt.observe(e,{childList:!0,subtree:!0}))}function pa(){Bt==null||Bt.disconnect(),Bt=null,Vo=!1}function ma(e){W(e!=null?e:document.body,e?Ce(e.parentNode):Fe)}re();Z();var fr=new Set,ga=new Set;function Wt(e,t){let n=bt(e);le.set(n,t),_t.set(n.replace(/-/g,""),n),Pu(n)}function Pu(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=zt(s))!=null&&r.component||Nu(s))continue;let a=Ce(s.parentNode);Wo(s)&&(q(s),sa(s)),W(s,a)}}}function Nu(e){let t=e.parentElement;for(;t&&t!==document.body;){if(aa(t)&&!Wo(t))return!0;t=t.parentElement}return!1}function Ou(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 $u(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 Xo(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Fu(e,t,n,r,o){var l;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(bt(u),u),a.set(Xo(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let c=Array.from(e.attributes);for(let u of c){let d=qt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let f=(l=a.get(d.arg.toLowerCase()))!=null?l:Xo(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>Ee(()=>{i[f]=O(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let p=a.get(u.name.toLowerCase());p?i[p]=Ou(u.value,t[p]):s.length||(i[Xo(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&Gs(e,o,u);return i}function Iu(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var c,l;let a=s.nodeType===1&&(c=s.getAttribute("slot"))!=null?c:null;if(a){s.removeAttribute("slot");let u=(l=o.get(a))!=null?l:[];u.push(s),o.set(a,u)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),c=a?o.get(a):i,l=document.createDocumentFragment();if(c&&c.length)for(let u of c)l.appendChild(u);else for(;s.firstChild;)l.appendChild(s.firstChild);Array.from(l.childNodes).forEach(u=>{u.nodeType===1&&ju(u,n)}),s.replaceWith(l)}}var dr=null;function va(e){dr=e}function ju(e,t){dr==null||dr(e,t)}function ha(e,t,n){var x,C,N,R,ce,B,we,ee;let r=t?bt(t):"",o=r?(N=(C=le.get(r))!=null?C:le.get((x=_t.get(r))!=null?x:""))!=null?N:{}:{};r&&!le.has(r)&&!_t.has(r)&&Ks(e,t);let i=new Me(!0),s=$u(o),a=Fu(e,s,n,i,r||"inline");!o.state&&o.data&&qo("data()","state()"),o.destroyed&&qo("destroyed()","unmounted()");let c=(R=o.state)!=null?R:o.data,l={},u={},d=o.inheritScope?n:n.root,p=new wt({},d,e);p.component=u;try{l=c?(ce=c.call(u,a))!=null?ce:{}:{}}catch(A){z(A,`state() of component "${t}"`)}let f=e.getAttribute(`${E.prefix}data`);if(f){let A=O(f,n,"v-data");A&&typeof A=="object"&&Object.assign(l,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(p.provides={...A})}catch(A){z(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,F])=>[L,F!=null?F:{}]);for(let[L,F]of A){let mt=(B=F.from)!=null?B:L,go=n.inject(mt,F.default);L in l||(l[L]=go)}}let m=V(l),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wn(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...F)=>L.apply(u,F);for(let[A,L]of Object.entries(o))typeof L=="function"&&(Bu.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...F)=>L.apply(u,F)));let h=(A,L)=>{let F=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});F.__voodoo=!0,e.dispatchEvent(F)},y={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ee=(we=n.owner)==null?void 0:we.component)!=null?ee:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(re(),Rs)).then(L=>L.nextTick(A)),$watch:(A,L)=>ve(()=>O(A,p),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?p.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,F){return typeof L=="symbol"?!0:L in v?(v[L].value=F,!0):L in a?(a[L]=F,!0):(m[L]=F,!0)},has(A,L){if(typeof L=="symbol")return!1;let F=L;return F==="$refs"||F in y||F in v||F in g||F in a||F in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(p.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>ve(()=>T[A],(F,mt)=>L.call(T,F,mt)));if(o.style&&!ga.has(r)){ga.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(Vt(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,Iu(e,A,n)}return fr.add(T),fe(()=>{Vt(o,T,"mounted"),o.updated&&i.run(()=>Ee(()=>{for(let A of Object.keys(m))m[A];Vt(o,T,"updated")}))}),Ie(e,()=>{Vt(o,T,"beforeUnmount"),i.stop(),fr.delete(T),Vt(o,T,"unmounted"),Vt(o,T,"destroyed")}),p}var Bu=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Vt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){z(o,`hook ${n}`)}}re();Z();var Kt=[],Jo=null,pr=0,ya=-1,ei=0,Zo=!1;function ba(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function qu(){if(Jo||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Jo=new MutationObserver(()=>{pr++}),Jo.observe(e,{childList:!0,subtree:!0}))}function wa(){if(Zo)return;Zo=!0;let e=()=>{Zo=!1,zu()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function zu(){var t;pr===ya?ei++:ei=0,ya=pr;let e=ba();for(let n=Kt.length-1;n>=0;n--){let r=Kt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Kt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Kt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Kt.length&&wa()}function ti(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}qu(),Kt.push({...e,since:ba()}),wa()}function Ea(){return typeof document=="undefined"||!document.body?!1:ei>=2}function Uu(){return typeof document=="undefined"||!document.body?!1:pr===0}function mr(e){typeof document!="undefined"&&ti({ready:()=>Ea()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function xa(e){if(typeof document!="undefined"){if(Uu()){Promise.resolve().then(e);return}ti({ready:()=>Ea()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function gr(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ti({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var _u=0,vr=null;function Ta(e){vr=e}function ka(e={}){let t=`voodoo-app-${++_u}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,c="",l=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=bt(m);le.has(g)||(Wt(g,v),s.push(g))}}function p(m){var g,h;if(l)return l;a=m,c=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Wt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,Fe)}catch(y){return z(y,`application mounting "${t}"`),null}if(l=(h=(g=zt(m))==null?void 0:g.component)!=null?h:null,l){let y=u;u=[];for(let w of y)w(l)}return l}let f={name:t,config:o,get instance(){return l},get container(){return a},get isMounted(){return l!==null},component(m,v){var h;let g=bt(m);return v===void 0?(h=n&&n[m])!=null?h:le.get(g):(n?n[m]=v:e.components={[m]:v},l&&!le.has(g)&&(Wt(g,v),s.push(g)),f)},directive(m,v){return vr==null||vr(m,v),f},use(m,v){return sr(Vu(),m,v),f},provide(m,v){return i[m]=v,f},mount(m){if(l)return l;if(typeof m!="string")return p(m);let v=null;return gr(m,g=>{v=p(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return l?Promise.resolve(l):new Promise(m=>u.push(m))},unmount(){if(a){q(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=c,le.delete(t);for(let m of s)le.delete(m);s.length=0,l=null,a=null}}};return f}var La=null;function Aa(e){La=e}function Vu(){return La}re();re();var it=new Map,ni=bn(0),ri=new Map;function Sa(e,t,n={}){let r=it.get(e);if(!t){if(!r){let c=V({});return it.set(e,c),c}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let l=JSON.parse(c);for(let[u,d]of Object.entries(l))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(c){}let a=V(s);for(let[c,l]of Object.entries(i)){let u=l.value;typeof u=="function"&&(a[c]=(...d)=>u.apply(a,d))}if(it.set(e,a),ni.value++,n.persist&&typeof localStorage!="undefined"){let c=ve(a,()=>{try{localStorage.setItem(o,JSON.stringify(Wu(a)))}catch(l){}},{deep:!0});ri.set(e,c)}return a}function Wu(e){let t={},n=Object.getOwnPropertyDescriptors(ie(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var hr=new Proxy({},{get:(e,t)=>(ni.value,it.get(t)),has:(e,t)=>(ni.value,it.has(t)),ownKeys:()=>[...it.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Ma(e){var t;(t=ri.get(e))==null||t(),ri.delete(e),it.delete(e)}function Ca(){return[...it.keys()]}var oi={};Jn(oi,{capitalize:()=>Ha,chunk:()=>Zu,clone:()=>Ln,debounce:()=>be,device:()=>te,escapeHtml:()=>kt,formatCurrency:()=>ud,formatDate:()=>fd,formatFileSize:()=>md,formatNumber:()=>dd,formatPercent:()=>gd,get:()=>td,groupBy:()=>Xu,isBrowser:()=>yr,matchesMedia:()=>Yt,memoize:()=>Gu,merge:()=>Ra,once:()=>Qu,parseDuration:()=>_,random:()=>rd,relativeTime:()=>pd,sample:()=>od,set:()=>nd,setFormatDefaults:()=>ld,sleep:()=>Yu,slugify:()=>id,sortBy:()=>ed,stripTags:()=>cd,throttle:()=>An,titleCase:()=>ad,truncate:()=>sd,uid:()=>ue,unique:()=>Ju,uuid:()=>Ku});function Ku(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Yu(e){return new Promise(t=>setTimeout(t,e))}function _(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function be(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),c&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function An(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Qu(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Gu(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 Ln(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=>Ln(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Ln(r)]));if(e instanceof Set)return new Set([...e].map(n=>Ln(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Ln(r);return t}function Ra(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]=Ra({...i},o):e[r]=o}return e}function Xu(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 Ju(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 Zu(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 ed(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),c=r(s);return a==null&&c==null?0:a==null?1:c==null?-1:typeof a=="string"&&typeof c=="string"?a.localeCompare(c,void 0,{numeric:!0})*o:(a>c?1:a<c?-1:0)*o})}function td(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 nd(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 rd(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function od(e){return e[Math.floor(Math.random()*e.length)]}function id(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 sd(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 Ha(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function ad(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Ha(t.toLowerCase()))}function kt(e){return String(e!=null?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function cd(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Qt="pt-BR",Da="BRL";function ld(e,t){e&&(Qt=e),t&&(Da=t)}function ud(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:Qt,{style:"currency",currency:(o=t.currency)!=null?o:Da}).format(n)}function dd(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:Qt,o).format(n)}function fd(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Qt;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 pd(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:Qt,{numeric:"auto"});for(let[a,c]of i)if(o>=c||a==="second")return s.format(Math.round(r/c),a);return""}function md(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 gd(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Qt,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var yr=typeof window!="undefined"&&typeof window.document!="undefined";function Yt(e){if(!yr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var te={get touch(){return yr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Yt("(max-width: 767px)")},get tablet(){return Yt("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Yt("(min-width: 1024px)")},get online(){return!yr||navigator.onLine},get reducedMotion(){return Yt("(prefers-reduced-motion: reduce)")},get darkMode(){return Yt("(prefers-color-scheme: dark)")}};var ne=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(this,"cause",i);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},br=[],wr=[],Sn=[],Mn=new Map;function Pa(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Xt(e)}`}function vd(e){if(!e){Mn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Mn.keys()])t(n)&&Mn.delete(n)}var Oa="voodoo:offline-queue";function ii(){try{return JSON.parse(localStorage.getItem(Oa)||"[]")}catch(e){return[]}}function si(e){try{localStorage.setItem(Oa,JSON.stringify(e))}catch(t){}}function hd(e){var n,r;if(typeof localStorage=="undefined")return;let t=ii();t.push({url:Xt(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),si(t)}async function $a(){if(typeof localStorage=="undefined")return 0;let e=ii();if(!e.length)return 0;si([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await st({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=ii();si([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{$a()});function Xt(e){let t=e.url,n=de.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function Fa(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function yd(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 bd(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 wd=new Set(["GET","HEAD","OPTIONS"]);function Ed(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function xd(e,t,n,r){var o;return wd.has(e)||t.retryUnsafe===!0||Ed(n)?!0:(((o=t.retry)!=null?o:0)>0&&Tn(`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 st(e){var u,d,p,f,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of br)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Mn.get(Pa(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return hd(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let v=Fa();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=yd(t.body,r),i=Xt(t),s=xd(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await bd(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await Na(((p=t.retryDelay)!=null?p:500)*2**v);continue}let R=new ne(`Request failed with status ${x.status}`,N,t);for(let ce of Sn)ce(R);throw R}for(let R of wr)N=await R(N);return t.cache&&n==="GET"&&Mn.set(Pa(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof ne)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(v<s-1){await Na(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,l=new ne(c,void 0,t,a);for(let v of Sn)v(l);throw l}function Na(e){return new Promise(t=>setTimeout(t,e))}async function Gt(e){return(await st(e)).data}var me={defaults:de,get(e,t={}){return Gt({...t,url:e,method:"GET"})},post(e,t,n={}){return Gt({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Gt({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Gt({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Gt({...t,url:e,method:"DELETE"})},head(e,t={}){return Gt({...t,url:e,method:"HEAD"})},request:st,upload(e,t,n={}){return new Promise((r,o)=>{var c,l;let i=new XMLHttpRequest,s=Xt({url:e});i.open((c=n.method)!=null?c:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Fa();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(d):o(new ne(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new ne("Network failure during upload"))),i.addEventListener("abort",()=>o(new ne("Upload canceled"))),(l=n.signal)==null||l.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Xt({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(Xt({url:e,params:n.params}),{headers:{...de.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:c,value:l}=await o.read();if(c)break;s+=i.decode(l,{stream:!0});let u=s.split(`
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 Qs(e,t,n){Qe()&&Et(`duplicate key "${String(t)}" in v-for="${n}" on element ${Ge(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 Gs(e,t,n){Qe()&&Et(`required prop "${n}" missing from component "${t}" at ${Ge(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function qo(e,t){Tn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var xt=new WeakMap,cr=new WeakMap,Xe=new WeakSet,zo=new WeakMap;function Wo(e){return Xe.has(e)}function Ko(e){Xe.add(e)}function zt(e){return xt.get(e)}function Ce(e){let t=e;for(;t;){let n=xt.get(t);if(n)return n;t=t.parentNode}return Fe}function ra(e,t){let n=zo.get(e);n||zo.set(e,n=[]),n.push(t)}var Uo=new WeakSet;function Yo(e){Uo.add(e),e.remove()}function Ie(e,t){let n=cr.get(e);n||cr.set(e,n=[]),n.push(t)}function z(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--)z(n[r])}let t=cr.get(e);if(t){cr.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){U(r,"cleanup")}}e.nodeType===1&&Eu(e),xt.delete(e),zo.delete(e),Xe.delete(e)}var ar=new Map,vu=4e3;function qt(e,t){let n=`${e}\0${t}`,r=ar.get(n);if(r!==void 0)return r;let o=hu(e,t);return ar.size>=vu&&ar.clear(),ar.set(n,o),o}function hu(e,t){let n=E.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!0}let a=i.indexOf(":"),c=a>-1?i.slice(0,a):i,l=a>-1?i.slice(a+1):void 0;return{raw:e,name:c,arg:l,modifiers:s,expression:t}}function yu(e){let t=[],n=Tt.get(e);if(n&&n.size)for(let[r,o]of n){let i=qt(r,o);i&&(t.push(i),Js(e,i.name))}else{let r=oa(e);for(let o=0;o<r.length;o++){let i=r[o];if(!wu(i))continue;let s=qt(i,e.getAttribute(i));s&&(t.push(s),Js(e,s.name))}}return t.length<2?t:t.sort((r,o)=>Xs(o)-Xs(r))}var bu=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function oa(e){return bu?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function wu(e){return Go(e)||e.charCodeAt(0)===46&&e.length>1}function Xs(e){var t,n;return(n=(t=Ye.get(e.name))==null?void 0:t.priority)!=null?n:0}var kn=new Map,lr=new WeakMap;function Js(e,t){let n=kn.get(t);n||kn.set(t,n=new Set),n.add(e);let r=lr.get(e);r||lr.set(e,r=new Set),r.add(t)}function Eu(e){var n;let t=lr.get(e);if(t){for(let r of t)(n=kn.get(r))==null||n.delete(e);lr.delete(e)}}function Qo(e,t){var n;return(n=kn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function ur(e,t){let n=[],r=kn.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${E.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function Ut(e,t){let n=e;for(;n;){if(Qo(n,t))return n;n=n.parentElement}return null}var Tt=new WeakMap;function Go(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function xe(e,t){var r;let n=(r=Tt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function rt(e,t){let n=Tt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function ia(e){let t=Tt.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];Go(o.name)&&n.set(o.name,o.value)}return n}function xu(e){if(!E.cleanAttributes)return;let t=oa(e),n=Tt.get(e);n||Tt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Go(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function sa(e){let t=Tt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function aa(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function O(e,t,n,r){if(e)try{return M($e(e),t)}catch(o){Qe()&&Ys(r!=null?r:t.el,n!=null?n:"expression",e,o),U(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var ca=new WeakSet;function la(e){ca.add(e)}function Zs(e,t,n){let r=Ye.get(t.name);if(!r){Qe()&&t.raw.startsWith(E.prefix)&&Ws(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Me(!0);Ie(e,()=>a.stop()),ra(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return O(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=i();c.run(()=>Ee(a,{scope:c}))},cleanup(a){Ie(e,a)},walk(a,c){W(a,c)}};try{r.setup(s)}catch(a){U(a,`directive ${t.raw}`)}}var _o=null;function ua(e){_o=e}var Tu=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(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)W(m,n);return}if(e.nodeType===3){da(e,n);return}if(e.nodeType!==1)return;let r=e;if(Xe.has(r))return;let o=r.tagName;if(Tu.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Xe.add(r);return}let i=n,s=yu(r),a=le.size===0&&_t.size===0||r.hasAttribute(`${E.prefix}component`)?null:Ru(o);if(s.length===0&&!a){ea(r,i);return}Xe.add(r);for(let f of s){let m=Ye.get(f.name);if(m!=null&&m.terminal){Zs(r,f,i);return}}let c=s.find(f=>f.name==="data"),l=s.find(f=>f.name==="component"),u=l?l.expression||"":a||"",d=!1;if(u&&_o){let f=_o(r,u,i);f&&(i=f,d=!0,xt.set(r,i))}else if(c||l){let f=c?O(c.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),xt.set(r,i)}let p=d?n:i;for(let f of s)f.name==="data"||f.name==="component"||Zs(r,f,p);xu(r),ca.has(r)||ea(r,i)}function ea(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&da(o,t);for(let o of n)W(o,(r=xt.get(o))!=null?r:t)}var ku=500,ta=new Map;function Lu(e){let t=e.trim();if(!t)return!1;let n=ta.get(t);if(n!==void 0)return n;let r=!0;try{r=$e(t).t!=="seq"}catch(o){r=!1}return ta.set(t,r),r}function Au(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 Su(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):Au(e,i);if(a===-1){n+=e[i],r=i+1;continue}let c=s?e.slice(i+2,a):e.slice(i+1,a),l=s?a+2:a+1;if((s||c.length<=ku)&&Lu(c)){o(),t.push({expression:c.trim(),raw:e.slice(i,l),explicit:s}),r=l;continue}n+=e[i],r=i+1}return o(),t}var Mu=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Cu(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 pe):!1}function da(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Xe.has(e))return;let r=e.parentElement;for(;r;){if(Mu.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Su(n);if(!o.some(s=>s.expression))return;Xe.add(e);let i=new Me(!0);Ie(e,()=>i.stop()),ra(e,i),i.run(()=>Ee(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let c=O(a.expression,t,"interpolation");s+=Cu(a,c,t)?a.raw:Ke(c)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function ot(e,t){xt.set(e,t)}function Ru(e){let t=e.toLowerCase();if(le.has(t))return t;let n=_t.get(t);return n!=null?n:null}var _t=new Map;var Vo=!1,Bt=null,Hu=[];function na(e,t){for(let n of Hu)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function fa(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),na(t,!1),W(t,Fe),na(t,!0),Vo||(Vo=!0,E.autoDiscover&&Du(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Du(e){typeof MutationObserver!="undefined"&&(Bt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Uo.has(o)){Uo.delete(o);continue}o.nodeType===1&&!o.isConnected&&z(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Xe.has(o)||W(o,Ce(o.parentNode)))}}}),Bt.observe(e,{childList:!0,subtree:!0}))}function pa(){Bt==null||Bt.disconnect(),Bt=null,Vo=!1}function ma(e){W(e!=null?e:document.body,e?Ce(e.parentNode):Fe)}re();Z();var fr=new Set,ga=new Set;function Wt(e,t){let n=bt(e);le.set(n,t),_t.set(n.replace(/-/g,""),n),Pu(n)}function Pu(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=zt(s))!=null&&r.component||Nu(s))continue;let a=Ce(s.parentNode);Wo(s)&&(z(s),sa(s)),W(s,a)}}}function Nu(e){let t=e.parentElement;for(;t&&t!==document.body;){if(aa(t)&&!Wo(t))return!0;t=t.parentElement}return!1}function Ou(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 $u(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 Xo(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Fu(e,t,n,r,o){var l;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(bt(u),u),a.set(Xo(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let c=Array.from(e.attributes);for(let u of c){let d=qt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let f=(l=a.get(d.arg.toLowerCase()))!=null?l:Xo(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>Ee(()=>{i[f]=O(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let p=a.get(u.name.toLowerCase());p?i[p]=Ou(u.value,t[p]):s.length||(i[Xo(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&Gs(e,o,u);return i}function Iu(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var c,l;let a=s.nodeType===1&&(c=s.getAttribute("slot"))!=null?c:null;if(a){s.removeAttribute("slot");let u=(l=o.get(a))!=null?l:[];u.push(s),o.set(a,u)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),c=a?o.get(a):i,l=document.createDocumentFragment();if(c&&c.length)for(let u of c)l.appendChild(u);else for(;s.firstChild;)l.appendChild(s.firstChild);Array.from(l.childNodes).forEach(u=>{u.nodeType===1&&ju(u,n)}),s.replaceWith(l)}}var dr=null;function va(e){dr=e}function ju(e,t){dr==null||dr(e,t)}function ha(e,t,n){var x,C,N,R,ce,B,we,ee;let r=t?bt(t):"",o=r?(N=(C=le.get(r))!=null?C:le.get((x=_t.get(r))!=null?x:""))!=null?N:{}:{};r&&!le.has(r)&&!_t.has(r)&&Ks(e,t);let i=new Me(!0),s=$u(o),a=Fu(e,s,n,i,r||"inline");!o.state&&o.data&&qo("data()","state()"),o.destroyed&&qo("destroyed()","unmounted()");let c=(R=o.state)!=null?R:o.data,l={},u={},d=o.inheritScope?n:n.root,p=new wt({},d,e);p.component=u;try{l=c?(ce=c.call(u,a))!=null?ce:{}:{}}catch(A){U(A,`state() of component "${t}"`)}let f=e.getAttribute(`${E.prefix}data`);if(f){let A=O(f,n,"v-data");A&&typeof A=="object"&&Object.assign(l,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(p.provides={...A})}catch(A){U(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,F])=>[L,F!=null?F:{}]);for(let[L,F]of A){let mt=(B=F.from)!=null?B:L,go=n.inject(mt,F.default);L in l||(l[L]=go)}}let m=V(l),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wn(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...F)=>L.apply(u,F);for(let[A,L]of Object.entries(o))typeof L=="function"&&(Bu.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...F)=>L.apply(u,F)));let h=(A,L)=>{let F=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});F.__voodoo=!0,e.dispatchEvent(F)},y={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ee=(we=n.owner)==null?void 0:we.component)!=null?ee:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(re(),Rs)).then(L=>L.nextTick(A)),$watch:(A,L)=>ve(()=>O(A,p),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?p.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,F){return typeof L=="symbol"?!0:L in v?(v[L].value=F,!0):L in a?(a[L]=F,!0):(m[L]=F,!0)},has(A,L){if(typeof L=="symbol")return!1;let F=L;return F==="$refs"||F in y||F in v||F in g||F in a||F in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(p.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>ve(()=>T[A],(F,mt)=>L.call(T,F,mt)));if(o.style&&!ga.has(r)){ga.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(Vt(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,Iu(e,A,n)}return fr.add(T),fe(()=>{Vt(o,T,"mounted"),o.updated&&i.run(()=>Ee(()=>{for(let A of Object.keys(m))m[A];Vt(o,T,"updated")}))}),Ie(e,()=>{Vt(o,T,"beforeUnmount"),i.stop(),fr.delete(T),Vt(o,T,"unmounted"),Vt(o,T,"destroyed")}),p}var Bu=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Vt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){U(o,`hook ${n}`)}}re();Z();var Kt=[],Jo=null,pr=0,ya=-1,ei=0,Zo=!1;function ba(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function qu(){if(Jo||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Jo=new MutationObserver(()=>{pr++}),Jo.observe(e,{childList:!0,subtree:!0}))}function wa(){if(Zo)return;Zo=!0;let e=()=>{Zo=!1,zu()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function zu(){var t;pr===ya?ei++:ei=0,ya=pr;let e=ba();for(let n=Kt.length-1;n>=0;n--){let r=Kt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Kt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Kt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Kt.length&&wa()}function ti(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}qu(),Kt.push({...e,since:ba()}),wa()}function Ea(){return typeof document=="undefined"||!document.body?!1:ei>=2}function Uu(){return typeof document=="undefined"||!document.body?!1:pr===0}function mr(e){typeof document!="undefined"&&ti({ready:()=>Ea()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function xa(e){if(typeof document!="undefined"){if(Uu()){Promise.resolve().then(e);return}ti({ready:()=>Ea()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function gr(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ti({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var _u=0,vr=null;function Ta(e){vr=e}function ka(e={}){let t=`voodoo-app-${++_u}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,c="",l=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=bt(m);le.has(g)||(Wt(g,v),s.push(g))}}function p(m){var g,h;if(l)return l;a=m,c=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Wt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,Fe)}catch(y){return U(y,`application mounting "${t}"`),null}if(l=(h=(g=zt(m))==null?void 0:g.component)!=null?h:null,l){let y=u;u=[];for(let w of y)w(l)}return l}let f={name:t,config:o,get instance(){return l},get container(){return a},get isMounted(){return l!==null},component(m,v){var h;let g=bt(m);return v===void 0?(h=n&&n[m])!=null?h:le.get(g):(n?n[m]=v:e.components={[m]:v},l&&!le.has(g)&&(Wt(g,v),s.push(g)),f)},directive(m,v){return vr==null||vr(m,v),f},use(m,v){return sr(Vu(),m,v),f},provide(m,v){return i[m]=v,f},mount(m){if(l)return l;if(typeof m!="string")return p(m);let v=null;return gr(m,g=>{v=p(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return l?Promise.resolve(l):new Promise(m=>u.push(m))},unmount(){if(a){z(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=c,le.delete(t);for(let m of s)le.delete(m);s.length=0,l=null,a=null}}};return f}var La=null;function Aa(e){La=e}function Vu(){return La}re();re();var it=new Map,ni=bn(0),ri=new Map;function Sa(e,t,n={}){let r=it.get(e);if(!t){if(!r){let c=V({});return it.set(e,c),c}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let l=JSON.parse(c);for(let[u,d]of Object.entries(l))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(c){}let a=V(s);for(let[c,l]of Object.entries(i)){let u=l.value;typeof u=="function"&&(a[c]=(...d)=>u.apply(a,d))}if(it.set(e,a),ni.value++,n.persist&&typeof localStorage!="undefined"){let c=ve(a,()=>{try{localStorage.setItem(o,JSON.stringify(Wu(a)))}catch(l){}},{deep:!0});ri.set(e,c)}return a}function Wu(e){let t={},n=Object.getOwnPropertyDescriptors(ie(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var hr=new Proxy({},{get:(e,t)=>(ni.value,it.get(t)),has:(e,t)=>(ni.value,it.has(t)),ownKeys:()=>[...it.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Ma(e){var t;(t=ri.get(e))==null||t(),ri.delete(e),it.delete(e)}function Ca(){return[...it.keys()]}var oi={};Jn(oi,{capitalize:()=>Ha,chunk:()=>Zu,clone:()=>Ln,debounce:()=>be,device:()=>te,escapeHtml:()=>kt,formatCurrency:()=>ud,formatDate:()=>fd,formatFileSize:()=>md,formatNumber:()=>dd,formatPercent:()=>gd,get:()=>td,groupBy:()=>Xu,isBrowser:()=>yr,matchesMedia:()=>Yt,memoize:()=>Gu,merge:()=>Ra,once:()=>Qu,parseDuration:()=>_,random:()=>rd,relativeTime:()=>pd,sample:()=>od,set:()=>nd,setFormatDefaults:()=>ld,sleep:()=>Yu,slugify:()=>id,sortBy:()=>ed,stripTags:()=>cd,throttle:()=>An,titleCase:()=>ad,truncate:()=>sd,uid:()=>ue,unique:()=>Ju,uuid:()=>Ku});function Ku(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Yu(e){return new Promise(t=>setTimeout(t,e))}function _(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function be(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),c&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function An(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Qu(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Gu(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 Ln(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=>Ln(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Ln(r)]));if(e instanceof Set)return new Set([...e].map(n=>Ln(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Ln(r);return t}function Ra(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]=Ra({...i},o):e[r]=o}return e}function Xu(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 Ju(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 Zu(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 ed(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),c=r(s);return a==null&&c==null?0:a==null?1:c==null?-1:typeof a=="string"&&typeof c=="string"?a.localeCompare(c,void 0,{numeric:!0})*o:(a>c?1:a<c?-1:0)*o})}function td(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 nd(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 rd(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function od(e){return e[Math.floor(Math.random()*e.length)]}function id(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 sd(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 Ha(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function ad(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Ha(t.toLowerCase()))}function kt(e){return String(e!=null?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function cd(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Qt="pt-BR",Da="BRL";function ld(e,t){e&&(Qt=e),t&&(Da=t)}function ud(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:Qt,{style:"currency",currency:(o=t.currency)!=null?o:Da}).format(n)}function dd(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:Qt,o).format(n)}function fd(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Qt;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 pd(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:Qt,{numeric:"auto"});for(let[a,c]of i)if(o>=c||a==="second")return s.format(Math.round(r/c),a);return""}function md(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 gd(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Qt,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var yr=typeof window!="undefined"&&typeof window.document!="undefined";function Yt(e){if(!yr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var te={get touch(){return yr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Yt("(max-width: 767px)")},get tablet(){return Yt("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Yt("(min-width: 1024px)")},get online(){return!yr||navigator.onLine},get reducedMotion(){return Yt("(prefers-reduced-motion: reduce)")},get darkMode(){return Yt("(prefers-color-scheme: dark)")}};var ne=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(this,"cause",i);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},br=[],wr=[],Sn=[],Mn=new Map;function Pa(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Xt(e)}`}function vd(e){if(!e){Mn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Mn.keys()])t(n)&&Mn.delete(n)}var Oa="voodoo:offline-queue";function ii(){try{return JSON.parse(localStorage.getItem(Oa)||"[]")}catch(e){return[]}}function si(e){try{localStorage.setItem(Oa,JSON.stringify(e))}catch(t){}}function hd(e){var n,r;if(typeof localStorage=="undefined")return;let t=ii();t.push({url:Xt(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),si(t)}async function $a(){if(typeof localStorage=="undefined")return 0;let e=ii();if(!e.length)return 0;si([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await st({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=ii();si([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{$a()});function Xt(e){let t=e.url,n=de.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function Fa(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function yd(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 bd(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 wd=new Set(["GET","HEAD","OPTIONS"]);function Ed(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function xd(e,t,n,r){var o;return wd.has(e)||t.retryUnsafe===!0||Ed(n)?!0:(((o=t.retry)!=null?o:0)>0&&Tn(`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 st(e){var u,d,p,f,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of br)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Mn.get(Pa(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return hd(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let v=Fa();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=yd(t.body,r),i=Xt(t),s=xd(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await bd(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await Na(((p=t.retryDelay)!=null?p:500)*2**v);continue}let R=new ne(`Request failed with status ${x.status}`,N,t);for(let ce of Sn)ce(R);throw R}for(let R of wr)N=await R(N);return t.cache&&n==="GET"&&Mn.set(Pa(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof ne)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(v<s-1){await Na(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,l=new ne(c,void 0,t,a);for(let v of Sn)v(l);throw l}function Na(e){return new Promise(t=>setTimeout(t,e))}async function Gt(e){return(await st(e)).data}var me={defaults:de,get(e,t={}){return Gt({...t,url:e,method:"GET"})},post(e,t,n={}){return Gt({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Gt({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Gt({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Gt({...t,url:e,method:"DELETE"})},head(e,t={}){return Gt({...t,url:e,method:"HEAD"})},request:st,upload(e,t,n={}){return new Promise((r,o)=>{var c,l;let i=new XMLHttpRequest,s=Xt({url:e});i.open((c=n.method)!=null?c:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Fa();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(d):o(new ne(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new ne("Network failure during upload"))),i.addEventListener("abort",()=>o(new ne("Upload canceled"))),(l=n.signal)==null||l.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Xt({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(Xt({url:e,params:n.params}),{headers:{...de.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:c,value:l}=await o.read();if(c)break;s+=i.decode(l,{stream:!0});let u=s.split(`
62
62
  `);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}s.trim()&&t(s)},interceptors:{request:{use(e){return br.push(e),()=>{let t=br.indexOf(e);t>-1&&br.splice(t,1)}}},response:{use(e){return wr.push(e),()=>{let t=wr.indexOf(e);t>-1&&wr.splice(t,1)}}},error:{use(e){return Sn.push(e),()=>{let t=Sn.indexOf(e);t>-1&&Sn.splice(t,1)}}}},setHeader(e,t){t===null?delete de.headers[e]:de.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){de.baseURL=e},clearCache:vd,flushOfflineQueue:$a,parseDuration:_};Te();var Td=`
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}
@@ -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 Va(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 en(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function tn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Wa(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 Ka(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Rn(e,t={}){G("transitions",_a);let n=Va(t);return te.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.enterFrom),en(e,n.enterActive),Ka(()=>{var s;tn(e,n.enterFrom),en(e,n.enterTo);let o=(s=t.duration)!=null?s:Wa(e),i=()=>{tn(e,n.enterActive),tn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Hn(e,t={}){G("transitions",_a);let n=Va(t);return te.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.leaveFrom),en(e,n.leaveActive),Ka(()=>{var s;tn(e,n.leaveFrom),en(e,n.leaveTo);let o=(s=t.duration)!=null?s:Wa(e),i=()=>{tn(e,n.leaveActive),tn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function St(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 Mt(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 nn(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 rn(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 Ya(e){let t=document;typeof t.startViewTransition=="function"&&!te.reducedMotion?t.startViewTransition(e):e()}re();Z();function Ad(e,t,n){try{let o={t:"assign",op:"=",target:$e(e),value:{t:"lit",v:n}};M(o,t)}catch(r){z(r,`assignment in "${e}"`)}}function Za(e){let t=E.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?_(e.getAttribute(`${t}duration`)):void 0}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ke(n());let r=e.firstChild;r&&r.nodeType===3&&Ko(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;la(t),n(()=>{let i=r();for(let s of Array.from(t.children))q(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Za(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,Rn(e,i)):Hn(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=E.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(E.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)Yo(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),Ko(f.template);let c=Za(e),l=-1,u=[],d=()=>{let f=u;if(u=[],!f.length)return;let m=()=>{for(let v of f)q(v),v.remove()};c&&f[0]instanceof HTMLElement?Hn(f[0],c).then(m):m()};r(()=>{let f=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||O(h.expression,t,"v-if")){f=g;break}}if(f===l||(l=f,d(),f===-1))return;let m=i[f].template,v=ec(m,a,t);u=v,c&&v[0]instanceof HTMLElement&&Rn(v[0],c)}),Ie(e,d)},{priority:P.IF,terminal:!0});function ec(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let c of a)i.push(c),c.nodeType===1&&(ot(c,n),W(c,n))}else{let s=e.cloneNode(!0);i.push(s),ot(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Sd=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Sd.exec(n);if(!o){z(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,c,l]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),p=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${u}for`),f.removeAttribute(":key"),f.removeAttribute(`${u}bind:key`),f.removeAttribute(`${u}key`),Yo(e);let m=[];Ie(p,()=>{for(let h of m)for(let y of h.nodes)q(y),y.remove();m=[]}),r(()=>{var ce,B,we;let h=O(s,t,"v-for"),y=Md(h,a,c,l),w=new Map;for(let ee of m)w.set(ee.key,ee);let T=[],x=new Set,C={fragment:document.createDocumentFragment(),pending:[]};y.forEach((ee,A)=>{let L=d?O(d,t.child(ee),":key"):`__index_${A}`;d&&x.has(L)&&Qs(e,L,n);let F=w.get(L);if(F&&!x.has(L)){x.add(L);for(let[zl,Ul]of Object.entries(ee))F.data[zl]=Ul;T.push(F);return}let mt=t.reactiveChild(ee),go=ec(f,p,mt,C);x.add(L),T.push({key:L,scope:mt,nodes:go,data:mt.data})}),C.fragment.firstChild&&((ce=p.parentNode)==null||ce.insertBefore(C.fragment,p));for(let[ee,A]of C.pending)W(ee,A);let N=new Set(T);for(let ee of m)if(!(x.has(ee.key)&&N.has(ee)))for(let A of ee.nodes)q(A),A.remove();let R=p;for(let ee=T.length-1;ee>=0;ee--){let A=T[ee],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let F of A.nodes)(B=p.parentNode)==null||B.insertBefore(F,R);R=(we=A.nodes[0])!=null?we:R}m=T})},{priority:P.FOR,terminal:!0});function Md(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],c)=>{let l={[t]:a};n&&(l[n]=s),r&&(l[r]=c),o.push(l)}),o)}var Cd=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Rd=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Hd=/[\s\x00-\x1f]/g;function Dd(e){let t=e.replace(Hd,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Qa(e,t,n,r=!1,o=!1){if(t==="class")return tc(e,n);if(t==="style")return pi(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Et(`:srcdoc refused in ${Ge(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(E.sanitizeUrls&&!r){if(Rd.has(t)&&typeof n=="string"&&Dd(n)){Et(`value refused in :${t} of ${Ge(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)){Et(`attribute "${t}" refused in ${Ge(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(Cd.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 Ga=new WeakMap;function tc(e,t){let n=Ga.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Ga.set(e,n));let r=new Set(n);nc(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function nc(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)nc(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 pi(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)pi(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}b("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[l,u]of Object.entries(c))Qa(e,l,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Qa(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>tc(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>pi(e,n()))});var Xa={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Pd=["ctrl","shift","alt","meta"];function Ja(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),c=M(a,s);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,i?o:n)}catch(a){z(a,`event ${n.type} ("${e}")`)}}var Nd={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},rc={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(u)},o)},c=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},l=u=>{s&&(u.preventDefault(),u.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",l,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",l,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(t(new CustomEvent("visible",{detail:c})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])rc[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,c=u=>{a=!0,i=u.clientX,s=u.clientY},l=u=>{if(!a)return;a=!1;let d=u.clientX-i,p=u.clientY-s,f=40;(e==="left"?d<-f&&Math.abs(d)>Math.abs(p):e==="right"?d>f&&Math.abs(d)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(d):p>f&&Math.abs(p)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",l),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",l)})};function oc(e,t,n,r,o,i){var f;let s=(f=Nd[t])!=null?f:t,a=rc[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Ja(n,r,m,e)},o,i);return}let c=o.window?window:o.document||o.outside?document:e,l=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let g of Pd)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in Xa||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=Xa[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Ja(n,r,m,e)}},u=o.debounce;u!==void 0&&(l=be(l,_(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(l=An(l,_(d===!0?250:d,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(s,l,p),i(()=>c.removeEventListener(s,l,p))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&oc(e,t,n,r,o,i)});var Od=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Od)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{oc(t,e,n,r,o,i)});b("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,c=(s.getAttribute("type")||"text").toLowerCase(),l=a==="INPUT"&&c==="checkbox",u=a==="INPUT"&&c==="radio",d=a==="SELECT",p=d&&s.multiple,f=a==="INPUT"&&c==="file",m=c==="number"||c==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?_(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||l||u||f?"change":"input",T=()=>{var C,N;let x;if(l){let R=O(t,n,"v-model");if(Array.isArray(R)){let ce=s.value,B=[...R],we=B.indexOf(ce);s.checked&&we===-1?B.push(ce):!s.checked&&we>-1&&B.splice(we,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(p)x=Array.from(s.selectedOptions).map(R=>R.value);else if(f)x=r.single?(N=(C=s.files)==null?void 0:C[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}Ad(t,n,x)};y>0&&(T=be(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=O(t,n,"v-model");if(l){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(p){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(f)return;let C=x==null?"":String(x);s.value!==C&&(s.value=C),d&&s.value!==C&&yt(()=>{s.value!==C&&(s.value=C)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=O(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?O(o,n,"v-watch"):O(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let c=i;if(i=a,o){let l=n.child({$value:a,$old:c,$el:e}),u=O(t,l,"v-watch");typeof u=="function"&&u.call(n.data,a,c)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ke(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){z(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:P.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});re();Z();var ac=()=>E.prefix;function D(e,t){return xe(e,`${ac()}${t}`)}function vi(e,t){return rt(e,`${ac()}${t}`)}function $d(e,t){var s,a,c;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let l=O(i,t,"v-headers");l&&typeof l=="object"&&(o=l)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:vi(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:_((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:_((c=D(e,"timeout"))!=null?c:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:vi(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function ic(e,t,n,r){var i,s;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&W(c,r)};switch(n){case"none":return;case"delete":q(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let c=Array.from(a.content.childNodes);q(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let l of Array.from(c.childNodes))l.nodeType===1&&!a.has(l)&&W(l,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))q(a);e.innerHTML=t,o(e.childNodes)}}}function Ar(e,t=0){if(e==null)return"";if(typeof e!="object")return kt(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,c)=>{for(let l of Object.keys(c))a.add(l);return a},new Set)),i=o.map(a=>`<th>${kt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(c=>`<td>${Ar(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Ar(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${kt(r)}</dt><dd>${Ar(o,t+1)}</dd>`).join("")}</dl>`:""}function Fd(e,t,n,r){let o=document.querySelector(e);if(!o){z(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))q(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let c=o.content.cloneNode(!0),l=Array.from(c.childNodes);r.appendChild(c);let u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of l)d.nodeType===1&&W(d,u)}}var mi=new WeakMap;async function Dn(e){var d,p,f,m,v;let{el:t,scope:n,method:r}=e,o=$d(t,n),i=Ye.has("confirm");if(o.confirmMessage&&!i&&!await Id(o.confirmMessage))return;(d=mi.get(t))==null||d.abort();let s=new AbortController;mi.set(t,s);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,l=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!1)}};l(),on(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:s.signal,offlineQueue:o.offlineQueue}),h=di(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?Fd(o.templateSelector,h,n,a):typeof h=="string"?ic(a,h,o.swap,n):h!=null&&(jd(),ic(a,Ar(h),o.swap,n)),o.toastSuccess&&Re.success(o.toastSuccess),o.onSuccess&&gi(o.onSuccess,n,t,{data:h,response:g}),on(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof ne?(m=fi(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Re.error(o.toastError):o.onError||Re.error(h),o.onError&&gi(o.onError,n,t,{error:g,message:h}),on(t,"voodoo:error",{error:g,message:h}),z(g,`request ${r} ${e.url}`)}finally{u(),mi.delete(t),o.onComplete&&gi(o.onComplete,n,t,{}),on(t,"voodoo:complete",{})}}function on(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gi(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=O(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Id(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var sc=!1;function jd(){sc||(sc=!0,Promise.resolve().then(()=>(Te(),Ba)).then(({injectStyle:e})=>{e("json-render",`
129
+ `;function Va(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 en(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function tn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Wa(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 Ka(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Rn(e,t={}){G("transitions",_a);let n=Va(t);return te.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.enterFrom),en(e,n.enterActive),Ka(()=>{var s;tn(e,n.enterFrom),en(e,n.enterTo);let o=(s=t.duration)!=null?s:Wa(e),i=()=>{tn(e,n.enterActive),tn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Hn(e,t={}){G("transitions",_a);let n=Va(t);return te.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.leaveFrom),en(e,n.leaveActive),Ka(()=>{var s;tn(e,n.leaveFrom),en(e,n.leaveTo);let o=(s=t.duration)!=null?s:Wa(e),i=()=>{tn(e,n.leaveActive),tn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function St(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 Mt(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 nn(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 rn(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 Ya(e){let t=document;typeof t.startViewTransition=="function"&&!te.reducedMotion?t.startViewTransition(e):e()}re();Z();function Ad(e,t,n){try{let o={t:"assign",op:"=",target:$e(e),value:{t:"lit",v:n}};M(o,t)}catch(r){U(r,`assignment in "${e}"`)}}function Za(e){let t=E.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?_(e.getAttribute(`${t}duration`)):void 0}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ke(n());let r=e.firstChild;r&&r.nodeType===3&&Ko(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;la(t),n(()=>{let i=r();for(let s of Array.from(t.children))z(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Za(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,Rn(e,i)):Hn(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=E.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(E.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)Yo(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),Ko(f.template);let c=Za(e),l=-1,u=[],d=()=>{let f=u;if(u=[],!f.length)return;let m=()=>{for(let v of f)z(v),v.remove()};c&&f[0]instanceof HTMLElement?Hn(f[0],c).then(m):m()};r(()=>{let f=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||O(h.expression,t,"v-if")){f=g;break}}if(f===l||(l=f,d(),f===-1))return;let m=i[f].template,v=ec(m,a,t);u=v,c&&v[0]instanceof HTMLElement&&Rn(v[0],c)}),Ie(e,d)},{priority:P.IF,terminal:!0});function ec(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let c of a)i.push(c),c.nodeType===1&&(ot(c,n),W(c,n))}else{let s=e.cloneNode(!0);i.push(s),ot(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Sd=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Sd.exec(n);if(!o){U(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,c,l]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),p=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${u}for`),f.removeAttribute(":key"),f.removeAttribute(`${u}bind:key`),f.removeAttribute(`${u}key`),Yo(e);let m=[];Ie(p,()=>{for(let h of m)for(let y of h.nodes)z(y),y.remove();m=[]}),r(()=>{var ce,B,we;let h=O(s,t,"v-for"),y=Md(h,a,c,l),w=new Map;for(let ee of m)w.set(ee.key,ee);let T=[],x=new Set,C={fragment:document.createDocumentFragment(),pending:[]};y.forEach((ee,A)=>{let L=d?O(d,t.child(ee),":key"):`__index_${A}`;d&&x.has(L)&&Qs(e,L,n);let F=w.get(L);if(F&&!x.has(L)){x.add(L);for(let[zl,Ul]of Object.entries(ee))F.data[zl]=Ul;T.push(F);return}let mt=t.reactiveChild(ee),go=ec(f,p,mt,C);x.add(L),T.push({key:L,scope:mt,nodes:go,data:mt.data})}),C.fragment.firstChild&&((ce=p.parentNode)==null||ce.insertBefore(C.fragment,p));for(let[ee,A]of C.pending)W(ee,A);let N=new Set(T);for(let ee of m)if(!(x.has(ee.key)&&N.has(ee)))for(let A of ee.nodes)z(A),A.remove();let R=p;for(let ee=T.length-1;ee>=0;ee--){let A=T[ee],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let F of A.nodes)(B=p.parentNode)==null||B.insertBefore(F,R);R=(we=A.nodes[0])!=null?we:R}m=T})},{priority:P.FOR,terminal:!0});function Md(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],c)=>{let l={[t]:a};n&&(l[n]=s),r&&(l[r]=c),o.push(l)}),o)}var Cd=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Rd=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Hd=/[\s\x00-\x1f]/g;function Dd(e){let t=e.replace(Hd,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Qa(e,t,n,r=!1,o=!1){if(t==="class")return tc(e,n);if(t==="style")return pi(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Et(`:srcdoc refused in ${Ge(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(E.sanitizeUrls&&!r){if(Rd.has(t)&&typeof n=="string"&&Dd(n)){Et(`value refused in :${t} of ${Ge(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)){Et(`attribute "${t}" refused in ${Ge(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(Cd.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 Ga=new WeakMap;function tc(e,t){let n=Ga.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Ga.set(e,n));let r=new Set(n);nc(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function nc(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)nc(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 pi(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)pi(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}b("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[l,u]of Object.entries(c))Qa(e,l,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Qa(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>tc(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>pi(e,n()))});var Xa={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Pd=["ctrl","shift","alt","meta"];function Ja(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),c=M(a,s);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,i?o:n)}catch(a){U(a,`event ${n.type} ("${e}")`)}}var Nd={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},rc={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(u)},o)},c=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},l=u=>{s&&(u.preventDefault(),u.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",l,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",l,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(t(new CustomEvent("visible",{detail:c})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])rc[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,c=u=>{a=!0,i=u.clientX,s=u.clientY},l=u=>{if(!a)return;a=!1;let d=u.clientX-i,p=u.clientY-s,f=40;(e==="left"?d<-f&&Math.abs(d)>Math.abs(p):e==="right"?d>f&&Math.abs(d)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(d):p>f&&Math.abs(p)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",l),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",l)})};function oc(e,t,n,r,o,i){var f;let s=(f=Nd[t])!=null?f:t,a=rc[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Ja(n,r,m,e)},o,i);return}let c=o.window?window:o.document||o.outside?document:e,l=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let g of Pd)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in Xa||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=Xa[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Ja(n,r,m,e)}},u=o.debounce;u!==void 0&&(l=be(l,_(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(l=An(l,_(d===!0?250:d,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(s,l,p),i(()=>c.removeEventListener(s,l,p))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&oc(e,t,n,r,o,i)});var Od=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Od)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{oc(t,e,n,r,o,i)});b("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,c=(s.getAttribute("type")||"text").toLowerCase(),l=a==="INPUT"&&c==="checkbox",u=a==="INPUT"&&c==="radio",d=a==="SELECT",p=d&&s.multiple,f=a==="INPUT"&&c==="file",m=c==="number"||c==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?_(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||l||u||f?"change":"input",T=()=>{var C,N;let x;if(l){let R=O(t,n,"v-model");if(Array.isArray(R)){let ce=s.value,B=[...R],we=B.indexOf(ce);s.checked&&we===-1?B.push(ce):!s.checked&&we>-1&&B.splice(we,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(p)x=Array.from(s.selectedOptions).map(R=>R.value);else if(f)x=r.single?(N=(C=s.files)==null?void 0:C[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}Ad(t,n,x)};y>0&&(T=be(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=O(t,n,"v-model");if(l){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(p){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(f)return;let C=x==null?"":String(x);s.value!==C&&(s.value=C),d&&s.value!==C&&yt(()=>{s.value!==C&&(s.value=C)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=O(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?O(o,n,"v-watch"):O(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let c=i;if(i=a,o){let l=n.child({$value:a,$old:c,$el:e}),u=O(t,l,"v-watch");typeof u=="function"&&u.call(n.data,a,c)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ke(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){U(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:P.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});re();Z();var ac=()=>E.prefix;function D(e,t){return xe(e,`${ac()}${t}`)}function vi(e,t){return rt(e,`${ac()}${t}`)}function $d(e,t){var s,a,c;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let l=O(i,t,"v-headers");l&&typeof l=="object"&&(o=l)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:vi(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:_((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:_((c=D(e,"timeout"))!=null?c:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:vi(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function ic(e,t,n,r){var i,s;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&W(c,r)};switch(n){case"none":return;case"delete":z(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let c=Array.from(a.content.childNodes);z(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let l of Array.from(c.childNodes))l.nodeType===1&&!a.has(l)&&W(l,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))z(a);e.innerHTML=t,o(e.childNodes)}}}function Ar(e,t=0){if(e==null)return"";if(typeof e!="object")return kt(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,c)=>{for(let l of Object.keys(c))a.add(l);return a},new Set)),i=o.map(a=>`<th>${kt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(c=>`<td>${Ar(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Ar(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${kt(r)}</dt><dd>${Ar(o,t+1)}</dd>`).join("")}</dl>`:""}function Fd(e,t,n,r){let o=document.querySelector(e);if(!o){U(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))z(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let c=o.content.cloneNode(!0),l=Array.from(c.childNodes);r.appendChild(c);let u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of l)d.nodeType===1&&W(d,u)}}var mi=new WeakMap;async function Dn(e){var d,p,f,m,v;let{el:t,scope:n,method:r}=e,o=$d(t,n),i=Ye.has("confirm");if(o.confirmMessage&&!i&&!await Id(o.confirmMessage))return;(d=mi.get(t))==null||d.abort();let s=new AbortController;mi.set(t,s);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,l=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!1)}};l(),on(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:s.signal,offlineQueue:o.offlineQueue}),h=di(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?Fd(o.templateSelector,h,n,a):typeof h=="string"?ic(a,h,o.swap,n):h!=null&&(jd(),ic(a,Ar(h),o.swap,n)),o.toastSuccess&&Re.success(o.toastSuccess),o.onSuccess&&gi(o.onSuccess,n,t,{data:h,response:g}),on(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof ne?(m=fi(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Re.error(o.toastError):o.onError||Re.error(h),o.onError&&gi(o.onError,n,t,{error:g,message:h}),on(t,"voodoo:error",{error:g,message:h}),U(g,`request ${r} ${e.url}`)}finally{u(),mi.delete(t),o.onComplete&&gi(o.onComplete,n,t,{}),on(t,"voodoo:complete",{})}}function on(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gi(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=O(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Id(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var sc=!1;function jd(){sc||(sc=!0,Promise.resolve().then(()=>(Te(),Ba)).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,7 +135,7 @@ 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 Bd(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 qd({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||Bd(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u: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"),c=_((d=D(e,"debounce"))!=null?d:void 0,0),l=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(l=be(l,c)),e.addEventListener(o,l,{once:a}),t(()=>e.removeEventListener(o,l))}var zd=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of zd)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{qd({el:n,scope:r,cleanup:i,run:a=>{let c=Pn(o,r);if(!c)return;let l=D(n,"body")||D(n,"data-body"),u=l?O(l,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),p=d?O(d,r,"v-params"):void 0;Dn({el:n,scope:r,method:t,url:c,body:u,params:p,event:a})}})});function Pn(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=Pn(n,t);r&&Dn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Pn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Dn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Dn({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,p;let o=e,i=Pn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),c=Number((p=D(e,"min-length"))!=null?p:0),l=be(()=>{let f=o.value.trim();f.length<c||Dn({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),u=()=>l();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),l.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,l,u,d;let o=n.indexOf(":"),i=D(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=Lr(()=>Pn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((c=D(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((l=D(e,"retry"))!=null?l:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:vi(e,"manual"),onSuccess:p=>on(e,"voodoo:success",{data:p}),onError:(p,f)=>on(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:P.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])b(e,()=>{},{priority:P.TRANSITION});ua(ha);va(ot);Ta(lc);Ua();var Nn=new Map;function cc(e,t){let n=Nn.get(e);return n||Nn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Ud(e,t){let n=cc(e,r=>{n(),t(r)});return n}function _d(e,t){let n=Nn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){z(o,`event "${e}"`)}}function Vd(e,t){var n;if(!t){Nn.delete(e);return}(n=Nn.get(e))==null||n.delete(t)}function lc(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,c=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}},l=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,c(l)),(d=n.beforeMount)==null||d.call(n,i.el,c(l)),i.effect(()=>{var m,v;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let f=c(p);(v=n.updated)==null||v.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=c(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:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Wd(e){return Object.defineProperties(Fe.data,Object.getOwnPropertyDescriptors(e)),Fe.data}var Kd="0.11.0",Sr={...oi,version:Kd,config:E,reactive:V,ref:bn,shallowRef:Po,computed:wn,effect:Ee,watch:ve,watchEffect:Oo,nextTick:yt,toRaw:ie,markRaw:Ho,unref:No,stop:So,effectScope:Mo,EffectScope:Me,flushSync:To,data:Wd,store:Sa,stores:hr,removeStore:Ma,storeNames:Ca,scope:Fe,component:Wt,components:le,directive:lc,directives:Ye,magic:H,magics:xn,createApp:ka,start:fa,whenReady:mr,whenElement:gr,walk:W,refresh:ma,destroy:q,stopObserving:pa,getScope:zt,findScope:Ce,addCleanup:Ie,parseAttribute:qt,parse:$e,tokenize:ir,evaluate:M,evaluateIn:O,stringify:Ke,clearParseCache:Fs,globals:pe,http:me,request:st,HttpError:ne,resource:Lr,toast:Re,storage:Q,session:Er,cookie:xr,cache:Tr,url:ct,theme:je,clipboard:ui,screen:He,network:At,enter:Rn,leave:Hn,fadeIn:nn,fadeOut:rn,slideUp:Mt,slideDown:St,viewTransition:Ya,injectStyle:G,ensureTokens:se,on:cc,once:Ud,off:Vd,emit:_d,use(e,t){sr(Sr,e,t)},onError(e){ko(e)},instances:fr,Scope:wt,PRIORITY:P,VoodooSyntaxError:U,VoodooRuntimeError:J};Aa(Sr);re();var Yd=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 yc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function De(e){return e.length<2?e:Array.from(new Set(e))}function Ct(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function hi(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 bc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Qd(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Be)return e.toArray();if(typeof e=="string")return Rt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Rt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Rt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(bc(o))return hi(o);let i=[];for(let s of Qd(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return De(i)}if(e instanceof Be)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 De(o)}return[]}function uc(e){if(e==null)return[];if(typeof e=="string"){let r=e;return bc(r.trim())?hi(r):[document.createTextNode(r)]}if(e instanceof Be)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 Mr(e,t,n){let r=yc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yd.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gd(e,t){for(let[n,r]of Object.entries(t))Mr(e,n,r)}function dc(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 fc(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var wc=new WeakMap;function pc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function mc(e){e.removeAttribute("hidden");let t=wc.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 gc(e){let t=e.style.display;t&&t!=="none"&&wc.set(e,t),e.style.display="none"}var vc="input,select,textarea";function hc(e){return e.matches(vc)?[e]:Array.from(e.querySelectorAll(vc))}function Xd(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 Cr=new WeakMap;function Jd(e){let t=Cr.get(e);return t||Cr.set(e,t=[]),t}var Be=class e{constructor(t=[]){S(this,"length");S(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(De(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(De(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(De(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(De(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(De(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(De(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(De(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(De(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(De([...this.elements,...Rt(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))q(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))q(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(s.options))c.selected=a.includes(c.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,l]of Object.entries(n))l===null||l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":String(l));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=Ct(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,c]of Object.entries(i.dataset))s[a]=dc(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[fc(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=fc(String(n));if(t.length<2){let i=this.elements[0];return i?dc(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)Gd(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=yc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Mr(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)Mr(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)Mr(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=Ct(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ct(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=Ct(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 uc(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=Rt(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=Rt(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 uc(t))r.insertBefore(o,n);q(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Rt(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);q(n),n.remove()}}return this}remove(){for(let t of this.elements)q(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))q(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let c of this.elements)for(let l of Ct(t)){let u=d=>{if(!o){i.call(c,d);return}let p=d.target,f=p==null?void 0:p.closest(o);!f||!c.contains(f)||i.call(f,d)};c.addEventListener(l,u,s),Jd(c).push({type:l,selector:o,handler:i,wrapped:u,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Ct(t):null;for(let a of this.elements){let c=Cr.get(a);if(!c)continue;let l=[];for(let u of c){let d=!s||s.includes(u.type),p=o===null||u.selector===o,f=i===null||u.handler===i;d&&p&&f?a.removeEventListener(u.type,u.wrapped,u.options):l.push(u)}Cr.set(a,l)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)mc(t);return this}hide(){for(let t of this.elements)gc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?pc(n):t)?mc(n):gc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),nn(n,t);return this}fadeOut(t=220){for(let n of this.elements)rn(n,t);return this}slideUp(t=240){for(let n of this.elements)Mt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),St(n,t);return this}slideToggle(t=240){for(let n of this.elements)pc(n)?(n.removeAttribute("hidden"),St(n,t)):Mt(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 hc(t)){if(!Xd(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 hc(t)){let c=a;if(!c.name||c.disabled)continue;let l=(c.getAttribute("type")||"").toLowerCase();if(l==="submit"||l==="reset"||l==="button")continue;let u=c.name.endsWith("[]"),d=u?c.name.slice(0,-2):c.name,p=a,f;if(l==="checkbox"){if(!c.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!c.checked)continue;f=c.value==="on"?!0:c.value}else if(l==="radio"){if(!c.checked)continue;f=c.value}else l==="file"?f=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):l==="number"||l==="range"?f=c.value===""?null:Number(c.value):f=c.value;if(u){let m=n[d];Array.isArray(m)?m.push(f):n[d]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[d]=f:n[d]=[m,f];continue}n[d]=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&&q(n),W(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)q(t);return this}};function yi(e,t){if(typeof e=="function"){bi(e);let n=typeof document!="undefined"?document.documentElement:null;return new Be(n?[n]:[])}return new Be(Rt(e,t))}function bi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{xa(()=>{try{e==null||e()}catch(n){z(n,"V.ready")}t()})})}function Ec(e){return new Be(hi(e))}re();Z();Te();Te();Z();var wi=new WeakMap;function ut(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Rr(e,t){return rt(e,`${E.prefix}${t}`)||rt(e,`data-v-${t}`)}function j(e,t){let n=wi.get(e);return n&&t in n?n[t]:ut(e,t)}function Hr(e,t,n){var o;let r=(o=wi.get(e))!=null?o:{};r[t]=n,wi.set(e,r)}function $(e){b(e,({el:t,expression:n})=>{Hr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function qe(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Zd=`
138
+ `)}))}function Bd(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 qd({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||Bd(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u: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"),c=_((d=D(e,"debounce"))!=null?d:void 0,0),l=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(l=be(l,c)),e.addEventListener(o,l,{once:a}),t(()=>e.removeEventListener(o,l))}var zd=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of zd)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{qd({el:n,scope:r,cleanup:i,run:a=>{let c=Pn(o,r);if(!c)return;let l=D(n,"body")||D(n,"data-body"),u=l?O(l,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),p=d?O(d,r,"v-params"):void 0;Dn({el:n,scope:r,method:t,url:c,body:u,params:p,event:a})}})});function Pn(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=Pn(n,t);r&&Dn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Pn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Dn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Dn({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,p;let o=e,i=Pn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),c=Number((p=D(e,"min-length"))!=null?p:0),l=be(()=>{let f=o.value.trim();f.length<c||Dn({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),u=()=>l();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),l.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,l,u,d;let o=n.indexOf(":"),i=D(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=Lr(()=>Pn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((c=D(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((l=D(e,"retry"))!=null?l:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:vi(e,"manual"),onSuccess:p=>on(e,"voodoo:success",{data:p}),onError:(p,f)=>on(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:P.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])b(e,()=>{},{priority:P.TRANSITION});ua(ha);va(ot);Ta(lc);Ua();var Nn=new Map;function cc(e,t){let n=Nn.get(e);return n||Nn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Ud(e,t){let n=cc(e,r=>{n(),t(r)});return n}function _d(e,t){let n=Nn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){U(o,`event "${e}"`)}}function Vd(e,t){var n;if(!t){Nn.delete(e);return}(n=Nn.get(e))==null||n.delete(t)}function lc(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,c=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}},l=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,c(l)),(d=n.beforeMount)==null||d.call(n,i.el,c(l)),i.effect(()=>{var m,v;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let f=c(p);(v=n.updated)==null||v.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=c(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:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Wd(e){return Object.defineProperties(Fe.data,Object.getOwnPropertyDescriptors(e)),Fe.data}var Kd="0.11.2",Sr={...oi,version:Kd,config:E,reactive:V,ref:bn,shallowRef:Po,computed:wn,effect:Ee,watch:ve,watchEffect:Oo,nextTick:yt,toRaw:ie,markRaw:Ho,unref:No,stop:So,effectScope:Mo,EffectScope:Me,flushSync:To,data:Wd,store:Sa,stores:hr,removeStore:Ma,storeNames:Ca,scope:Fe,component:Wt,components:le,directive:lc,directives:Ye,magic:H,magics:xn,createApp:ka,start:fa,whenReady:mr,whenElement:gr,walk:W,refresh:ma,destroy:z,stopObserving:pa,getScope:zt,findScope:Ce,addCleanup:Ie,parseAttribute:qt,parse:$e,tokenize:ir,evaluate:M,evaluateIn:O,stringify:Ke,clearParseCache:Fs,globals:pe,http:me,request:st,HttpError:ne,resource:Lr,toast:Re,storage:Q,session:Er,cookie:xr,cache:Tr,url:ct,theme:je,clipboard:ui,screen:He,network:At,enter:Rn,leave:Hn,fadeIn:nn,fadeOut:rn,slideUp:Mt,slideDown:St,viewTransition:Ya,injectStyle:G,ensureTokens:se,on:cc,once:Ud,off:Vd,emit:_d,use(e,t){sr(Sr,e,t)},onError(e){ko(e)},instances:fr,Scope:wt,PRIORITY:P,VoodooSyntaxError:q,VoodooRuntimeError:J};Aa(Sr);re();var Yd=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 yc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function De(e){return e.length<2?e:Array.from(new Set(e))}function Ct(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function hi(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 bc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Qd(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Be)return e.toArray();if(typeof e=="string")return Rt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Rt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Rt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(bc(o))return hi(o);let i=[];for(let s of Qd(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return De(i)}if(e instanceof Be)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 De(o)}return[]}function uc(e){if(e==null)return[];if(typeof e=="string"){let r=e;return bc(r.trim())?hi(r):[document.createTextNode(r)]}if(e instanceof Be)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 Mr(e,t,n){let r=yc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yd.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gd(e,t){for(let[n,r]of Object.entries(t))Mr(e,n,r)}function dc(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 fc(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var wc=new WeakMap;function pc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function mc(e){e.removeAttribute("hidden");let t=wc.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 gc(e){let t=e.style.display;t&&t!=="none"&&wc.set(e,t),e.style.display="none"}var vc="input,select,textarea";function hc(e){return e.matches(vc)?[e]:Array.from(e.querySelectorAll(vc))}function Xd(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 Cr=new WeakMap;function Jd(e){let t=Cr.get(e);return t||Cr.set(e,t=[]),t}var Be=class e{constructor(t=[]){S(this,"length");S(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(De(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(De(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(De(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(De(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(De(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(De(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(De(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(De(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(De([...this.elements,...Rt(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))z(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))z(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(s.options))c.selected=a.includes(c.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,l]of Object.entries(n))l===null||l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":String(l));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=Ct(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,c]of Object.entries(i.dataset))s[a]=dc(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[fc(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=fc(String(n));if(t.length<2){let i=this.elements[0];return i?dc(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)Gd(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=yc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Mr(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)Mr(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)Mr(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=Ct(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ct(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=Ct(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 uc(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=Rt(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=Rt(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 uc(t))r.insertBefore(o,n);z(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Rt(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);z(n),n.remove()}}return this}remove(){for(let t of this.elements)z(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))z(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let c of this.elements)for(let l of Ct(t)){let u=d=>{if(!o){i.call(c,d);return}let p=d.target,f=p==null?void 0:p.closest(o);!f||!c.contains(f)||i.call(f,d)};c.addEventListener(l,u,s),Jd(c).push({type:l,selector:o,handler:i,wrapped:u,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Ct(t):null;for(let a of this.elements){let c=Cr.get(a);if(!c)continue;let l=[];for(let u of c){let d=!s||s.includes(u.type),p=o===null||u.selector===o,f=i===null||u.handler===i;d&&p&&f?a.removeEventListener(u.type,u.wrapped,u.options):l.push(u)}Cr.set(a,l)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)mc(t);return this}hide(){for(let t of this.elements)gc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?pc(n):t)?mc(n):gc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),nn(n,t);return this}fadeOut(t=220){for(let n of this.elements)rn(n,t);return this}slideUp(t=240){for(let n of this.elements)Mt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),St(n,t);return this}slideToggle(t=240){for(let n of this.elements)pc(n)?(n.removeAttribute("hidden"),St(n,t)):Mt(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 hc(t)){if(!Xd(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 hc(t)){let c=a;if(!c.name||c.disabled)continue;let l=(c.getAttribute("type")||"").toLowerCase();if(l==="submit"||l==="reset"||l==="button")continue;let u=c.name.endsWith("[]"),d=u?c.name.slice(0,-2):c.name,p=a,f;if(l==="checkbox"){if(!c.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!c.checked)continue;f=c.value==="on"?!0:c.value}else if(l==="radio"){if(!c.checked)continue;f=c.value}else l==="file"?f=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):l==="number"||l==="range"?f=c.value===""?null:Number(c.value):f=c.value;if(u){let m=n[d];Array.isArray(m)?m.push(f):n[d]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[d]=f:n[d]=[m,f];continue}n[d]=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&&z(n),W(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)z(t);return this}};function yi(e,t){if(typeof e=="function"){bi(e);let n=typeof document!="undefined"?document.documentElement:null;return new Be(n?[n]:[])}return new Be(Rt(e,t))}function bi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{xa(()=>{try{e==null||e()}catch(n){U(n,"V.ready")}t()})})}function Ec(e){return new Be(hi(e))}re();Z();Te();Te();Z();var wi=new WeakMap;function ut(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Rr(e,t){return rt(e,`${E.prefix}${t}`)||rt(e,`data-v-${t}`)}function j(e,t){let n=wi.get(e);return n&&t in n?n[t]:ut(e,t)}function Hr(e,t,n){var o;let r=(o=wi.get(e))!=null?o:{};r[t]=n,wi.set(e,r)}function $(e){b(e,({el:t,expression:n})=>{Hr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function qe(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Zd=`
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
  `,lt=null;function ke(e){if(typeof document=="undefined")return;G("ui-live",Zd),(!lt||!lt.isConnected)&&(lt=document.createElement("div"),lt.className="v-visually-hidden",lt.setAttribute("role","status"),lt.setAttribute("aria-live","polite"),document.body.appendChild(lt));let t=lt;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Dr(e,t,n){return ur(e,t).filter(r=>Ut(r,n)===e)}Te();Z();var ef=`
@@ -312,7 +312,7 @@ 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 _n(){se(),G("forms-ajax",ep)}function dt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Xr(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=O(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function Wi(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 Ki(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>Ki(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))Ki(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function tp(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function rl(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Ui=new WeakMap;function ol(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Ui.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Ui.has(e)||Ui.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Qr(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(Gr(n,"disable-loading"))for(let a of tp(r))a.disabled=t;let s=ae(n,"loading");if(s){let a=rl(s);a&&ol(a,t)}}function Jr(e,t,n,r){let o=ae(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=O(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function np(e,t){let n=ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(ae(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ce(r);switch(o){case"inner":case"innerhtml":for(let c of Array.from(r.children))q(c);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":q(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let c of s)c.nodeType===1&&W(c,a)}function il(e,t,n){var c;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=Wi(t),np(e,t),Gr(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),zn(o));let s=ae(i,"toast-success");s!==null&&Re.success(s||r.message||"All set!"),Jr(e,"on-success",t,{status:n}),dt(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=ae(i,"redirect");if(a!==null&&typeof window!="undefined"){let l=t&&typeof t=="object"?(c=t.redirect)!=null?c:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?Xr(a,u):String(l!=null?l:"");d&&window.location.assign(d)}}function Yi(e,t){var l,u;let{state:n,form:r,host:o}=e,i=t instanceof ne?t:new ne(t instanceof Error?t.message:String(t)),s=(u=(l=i.response)==null?void 0:l.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=Wi(s)||i.message;let a=Ii(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Vr(r,s),ji(r));let c=ae(o,"toast-error");c!==null&&Re.error(c||Wi(s)||"Could not submit the form."),Jr(e,"on-error",s,i),dt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function sl(e,t){Jr(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),dt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function rp(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(el(r)){zn(r);let p=await zi(r);if(o.errors=p.errors,!p.valid){ji(r),dt(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),c=Xr(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),l=ln(r,{formData:Gr(n,"form-data")}),u=a==="GET"||a==="HEAD";Qr(e,!0),o.success=!1,o.progress=0,dt(r,"voodoo:submit",{url:c,method:a,form:r,state:o});let d=!1;try{let p=await st({url:c,method:a,body:u?void 0:l,params:u&&!(l instanceof FormData)?Ki(l):void 0});d=!0,il(e,p.data,p.status)}catch(p){Yi(e,p)}finally{Qr(e,!1),sl(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{_n();let o=e,i=Un(o),s=t.child({$form:i},o);Vi.set(s,i),Vi.set(t,i),ot(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&ot(u,s);let a={host:o,form:o,scope:s,state:i},c=u=>{u.preventDefault(),rp(a,n)},l=u=>{var f;let d=u.detail;if(!d||!d.field)return;let p={...i.errors};d.valid?delete p[d.field]:p[d.field]=(f=d.message)!=null?f:"",i.errors=p};o.addEventListener("submit",c),o.addEventListener("voodoo:field-validated",l),r(()=>{un.delete(o),o.removeEventListener("submit",c),o.removeEventListener("voodoo:field-validated",l)})},{priority:P.DATA-1});function op(e){let t=ae(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;_n();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 Yr(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 ip(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=ln(s,{formData:!0});if(a instanceof FormData)for(let[c,l]of a.entries())l instanceof File||r.append(c,l)}return r}async function al(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Xr(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let c=op(s),l=ip(s,n,r);Qr(e,!0),o.success=!1,o.progress=0,Yr(c,0,"loading"),dt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(ae(s,"method")||"POST").trim().toUpperCase(),p=await me.upload(a,l,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:f=>{o.progress=f,Yr(c,f,"loading"),dt(i,"voodoo:progress",{percent:f,form:i,state:o})}});u=!0,o.progress=100,Yr(c,100,"done"),il(e,p,200)}catch(d){Yr(c,o.progress,"error"),Yi(e,d)}finally{Qr(e,!1),sl(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var l;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}_n();let i=(l=o.closest("form"))!=null?l:o,s=Un(i),a={host:o,form:i,scope:t,state:s},c=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&al(a,n,u,o.name||"file")};o.addEventListener("change",c),r(()=>o.removeEventListener("change",c))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;_n(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=Un(o),s={host:e,form:o,scope:t,state:i},a=ae(e,"field")||"file",c=document.createElement("input");c.type="file",c.hidden=!0,c.tabIndex=-1,e.hasAttribute("accept")&&(c.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(c.multiple=!0),e.appendChild(c);let l=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),al(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},p=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},f=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);l(c.multiple?C:C.slice(0,1))},v=x=>{x.target!==c&&c.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),c.click())},h=()=>{var C;let x=Array.from((C=c.files)!=null?C:[]);l(x),c.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),c.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),c.removeEventListener("change",h),c.remove()})});var sp={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function ap(e){let t=ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function _i(e,t){e.setAttribute("data-state",t),e.textContent=sp[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;_n();let i=e,s=Un(i),a={host:i,form:i,scope:t,state:s},c=ap(i),l=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:ae(i,"autosave-delay"))!=null?g:1e3,u=_(l,1e3),d=async()=>{let h=Xr(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,_i(c,"saving");let y=(ae(i,"method")||"POST").trim().toUpperCase();try{let w=await st({url:h,method:y,body:ln(i,{formData:Gr(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,_i(c,"saved"),Jr(a,"on-success",w.data,{status:w.status}),dt(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){_i(c,"error"),Yi(a,w)}finally{s.saving=!1}},p=be(()=>{d()},u),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});b("guard",({el:e,expression:t,cleanup:n})=>{var l;let r=(l=e.tagName==="FORM"?e:e.closest("form"))!=null?l:e,o=Un(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},c=u=>{!o.dirty||o.loading||(u.preventDefault(),u.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",c),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",c)})});re();Z();function Vn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=ie(r)}catch(o){}return t}function cl(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:cl(e,"voodoo:persist"),i=Q.get(o);if(i&&typeof i=="object")for(let[c,l]of Object.entries(i))c in t.data&&(t.data[c]=l);let s=be(()=>{Q.set(o,Vn(t.data))},120),a=ve(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||cl(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,c=be(()=>{if(!a)try{i.postMessage({from:s,state:Vn(t.data)})}catch(u){z(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[p,f]of Object.entries(d.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let l=ve(t.data,()=>c(),{deep:!0});r(()=>{l(),i.close()})},{priority:P.DATA-1});var Qi=new WeakMap;function Gi(e){let t=e;for(;t;){let n=Qi.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Vn(t.data)))],s=0,a=!1,c=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Vn(t.data)))),s=0,l()}});function l(){c.canUndo=s>0,c.canRedo=s<i.length-1,c.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));l(),queueMicrotask(()=>{a=!1})}let d=be(()=>{if(a)return;let m=JSON.stringify(Vn(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,l())},_((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=ve(t.data,()=>d(),{deep:!0});Qi.set(e,c),t.set("$history",c),r(()=>{p(),d.cancel(),Qi.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Gi(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Gi(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=Q.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{Q.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?Gi(e.el):null);Z();var fn=null,ft=.35,et=!1,ll=!1,Xi="voodoo:sound:volume",fl="voodoo:sound:muted";function Dt(){if(ll)return;ll=!0;let e=Q.get(Xi);typeof e=="number"&&e>=0&&e<=1&&(ft=e);let t=Q.get(fl);typeof t=="boolean"&&(et=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&Q.get(Xi)===void 0&&(ft=.18)}function ul(){var t;if(typeof window=="undefined")return null;if(fn)return fn.state==="suspended"&&fn.resume(),fn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return fn=new e,fn}catch(n){return null}}function dl(e,t,n){var l,u,d,p;let r=e.currentTime+((l=t.atraso)!=null?l:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=ft*n*((d=t.volume)!=null?d:1),c=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+c),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var Zr={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"}]}},cp={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 eo(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=cp[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var to=new Map;function lp(e,t){let n=to.get(e);n||(n=new Audio(e),n.preload="auto",to.set(e,n)),n.volume=Math.max(0,Math.min(1,ft*t)),n.currentTime=0,n.play().catch(()=>{})}function pl(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var pt={play(e,t={}){var c,l,u;if(Dt(),et||!e)return;let n=String(e).trim(),r=(c=t.volume)!=null?c:1;if(pl(n)){lp(n,r);return}let o=Zr[n];if(!o){let d=eo(n);d!==null&&this.tone(d,200,{volume:r});return}let i=ul();if(!i)return;let s=(l=t.tom)!=null?l:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)dl(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(Dt(),et)return;let r=ul();r&&dl(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=eo(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){Dt(),!et&&e.forEach((r,o)=>{let i=typeof r=="number"?r:eo(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return Dt(),e===void 0||(ft=Math.max(0,Math.min(1,e)),Q.set(Xi,ft)),ft},mute(e=!0){Dt(),et=e,Q.set(fl,et)},unmute(){this.mute(!1)},toggle(){return Dt(),this.mute(!et),et},get muted(){return Dt(),et},get names(){return Object.keys(Zr)},define(e,t){Zr[e]=t},preload(...e){for(let t of e){if(to.has(t))continue;let n=new Audio(t);n.preload="auto",to.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",c=()=>{let d=n.trim();if(!d)return"click";if(Zr[d]||pl(d)||eo(d)!==null)return d;let p=s();return typeof p=="string"?p:d},l=r.volume!==void 0?Number(r.volume):void 0,u=()=>{pt.play(c(),l===void 0?{}:{volume:l})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});b("mute",({el:e,cleanup:t})=>{let n=()=>{let o=pt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{pt.toggle(),n(),pt.muted||pt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>pt);Te();Z();Te();Z();var up=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,dp=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,fp=/^rgba?\(([^)]+)\)$/i,pp=/^hsla?\(([^)]+)\)$/i;function ml(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function mp(e,t,n){let r=(e%360+360)%360,o=ye(t/100,0,1),i=ye(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,l=Math.floor(r/60)%6,u=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[d,p,f]=u[l];return{r:Math.round((d+c)*255),g:Math.round((p+c)*255),b:Math.round((f+c)*255)}}function _e(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=up.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=dp.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=fp.exec(t);if(o){let[s,a,c]=ml(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:ye(s,0,255),g:ye(a,0,255),b:ye(c,0,255)}}let i=pp.exec(t);if(i){let[s,a,c]=ml(i[1]);return s===void 0||a===void 0||c===void 0?null:mp(s,a,c)}return null}function ye(e,t,n){return e<t?t:e>n?n:e}function gn(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ji(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function gp(e){let t=gn(e.r),n=gn(e.g),r=gn(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(i),l=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*l,a:1.9779984951*a-2.428592205*c+.4505937099*l,b:.0259040371*a+.7827717662*c-.808675766*l}}function vp(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:Ji(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Ji(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Ji(-.0041960863*o-.7034186147*i+1.707614701*s)}}function ro(e){let t=gp(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 gl(e){let t=e.h*Math.PI/180;return vp({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function mn(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=gl({l:ye(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(ye(o.r,0,1)*255),g:Math.round(ye(o.g,0,1)*255),b:Math.round(ye(o.b,0,1)*255)};t*=.92}let n=gl({l:ye(e.l,0,1),c:0,h:e.h});return{r:Math.round(ye(n.r,0,1)*255),g:Math.round(ye(n.g,0,1)*255),b:Math.round(ye(n.b,0,1)*255)}}function Zi(e){return ye(Math.round(e),0,255).toString(16).padStart(2,"0")}function Pt(e){return`#${Zi(e.r)}${Zi(e.g)}${Zi(e.b)}`}function pn(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function wl(e){return Pt(mn(e))}function ts(e){return .2126*gn(e.r)+.7152*gn(e.g)+.0722*gn(e.b)}function ns(e,t){let n=typeof e=="string"?_e(e):e,r=typeof t=="string"?_e(t):t;if(!n||!r)return 1;let o=ts(n),i=ts(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var El={r:255,g:255,b:255},oo={r:0,g:0,b:0};function Wn(e){let t=typeof e=="string"?_e(e):e;return t?ns(t,El)>=ns(t,oo)?"#ffffff":"#000000":"#ffffff"}var rs=[50,100,200,300,400,500,600,700,800,900],xl=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],hp=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],Tl=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],yp=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function kl(e,t=!1){var a;let n=typeof e=="string"?(a=_e(e))!=null?a:oo:e,r=ro(n),o=t?Tl:xl,i=t?yp:hp,s={};return rs.forEach((c,l)=>{s[String(c)]=wl({l:o[l],c:r.c*i[l],h:r.h})}),s}var io={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"}},Ll=["primary","accent","success","warning","danger","info"],os="voodoo:palette",vl="voodoo-palette",bp="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",wp="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function hl(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Ep=/^([\d.]+)(px|rem|em)$/;function xp(e){let t=(e||"12px").trim(),n=Ep.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 yl(e,t){var l,u,d,p;let n={},r={},o={};for(let f of Ll){let m=(l=_e(e[f]))!=null?l:oo,v=ro(m),g=kl(m,t);r[f]=g;for(let B of rs)n[`--v-${f}-${B}`]=g[String(B)];let h=t?{l:Math.max(v.l,.62),c:v.c*.95,h:v.h}:v,y=t?{l:Math.min(h.l+.07,.94),c:h.c*.95,h:h.h}:{l:Math.max(h.l-.055,.12),c:h.c,h:h.h},w=t?{l:Math.min(h.l+.13,.97),c:h.c*.88,h:h.h}:{l:Math.max(h.l-.105,.1),c:h.c,h:h.h},T=mn(h),x=mn(y),C=mn(w);n[`--v-${f}`]=Pt(t?T:m),n[`--v-${f}-hover`]=Pt(x),n[`--v-${f}-active`]=Pt(C),n[`--v-${f}-contrast`]=Wn(t?T:m),n[`--v-${f}-contrast-hover`]=Wn(x),n[`--v-${f}-contrast-active`]=Wn(C);let N=g[50],R=g[100],ce=t?g[800]:g[700];n[`--v-${f}-soft`]=N,n[`--v-${f}-soft-hover`]=R,n[`--v-${f}-soft-text`]=ce,n[`--v-${f}-ring`]=pn(T,t?.45:.32),n[`--v-${f}-border`]=t?g[300]:g[200],o[f]=n[`--v-${f}-contrast`]}let i=(d=_e((u=e.neutral)!=null?u:e.primary))!=null?d:oo,s=ro(i).h,a=(f,m)=>wl({l:f,c:m,h:s}),c={};if(rs.forEach((f,m)=>{let v=t?Tl:xl;c[String(f)]=a(v[m],.012),n[`--v-neutral-${f}`]=c[String(f)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let f=mn({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"]=Pt(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"]=pn(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${pn(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${pn(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${pn(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Wn((p=_e(n["--v-surface"]))!=null?p:El),{vars:n,scales:r,contrast:o}}function es(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
315
+ `;function _n(){se(),G("forms-ajax",ep)}function dt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Xr(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=O(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function Wi(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 Ki(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>Ki(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))Ki(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function tp(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function rl(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Ui=new WeakMap;function ol(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Ui.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Ui.has(e)||Ui.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Qr(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(Gr(n,"disable-loading"))for(let a of tp(r))a.disabled=t;let s=ae(n,"loading");if(s){let a=rl(s);a&&ol(a,t)}}function Jr(e,t,n,r){let o=ae(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=O(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function np(e,t){let n=ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(ae(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ce(r);switch(o){case"inner":case"innerhtml":for(let c of Array.from(r.children))z(c);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":z(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let c of s)c.nodeType===1&&W(c,a)}function il(e,t,n){var c;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=Wi(t),np(e,t),Gr(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),zn(o));let s=ae(i,"toast-success");s!==null&&Re.success(s||r.message||"All set!"),Jr(e,"on-success",t,{status:n}),dt(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=ae(i,"redirect");if(a!==null&&typeof window!="undefined"){let l=t&&typeof t=="object"?(c=t.redirect)!=null?c:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?Xr(a,u):String(l!=null?l:"");d&&window.location.assign(d)}}function Yi(e,t){var l,u;let{state:n,form:r,host:o}=e,i=t instanceof ne?t:new ne(t instanceof Error?t.message:String(t)),s=(u=(l=i.response)==null?void 0:l.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=Wi(s)||i.message;let a=Ii(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Vr(r,s),ji(r));let c=ae(o,"toast-error");c!==null&&Re.error(c||Wi(s)||"Could not submit the form."),Jr(e,"on-error",s,i),dt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function sl(e,t){Jr(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),dt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function rp(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(el(r)){zn(r);let p=await zi(r);if(o.errors=p.errors,!p.valid){ji(r),dt(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),c=Xr(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),l=ln(r,{formData:Gr(n,"form-data")}),u=a==="GET"||a==="HEAD";Qr(e,!0),o.success=!1,o.progress=0,dt(r,"voodoo:submit",{url:c,method:a,form:r,state:o});let d=!1;try{let p=await st({url:c,method:a,body:u?void 0:l,params:u&&!(l instanceof FormData)?Ki(l):void 0});d=!0,il(e,p.data,p.status)}catch(p){Yi(e,p)}finally{Qr(e,!1),sl(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{_n();let o=e,i=Un(o),s=t.child({$form:i},o);Vi.set(s,i),Vi.set(t,i),ot(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&ot(u,s);let a={host:o,form:o,scope:s,state:i},c=u=>{u.preventDefault(),rp(a,n)},l=u=>{var f;let d=u.detail;if(!d||!d.field)return;let p={...i.errors};d.valid?delete p[d.field]:p[d.field]=(f=d.message)!=null?f:"",i.errors=p};o.addEventListener("submit",c),o.addEventListener("voodoo:field-validated",l),r(()=>{un.delete(o),o.removeEventListener("submit",c),o.removeEventListener("voodoo:field-validated",l)})},{priority:P.DATA-1});function op(e){let t=ae(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;_n();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 Yr(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 ip(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=ln(s,{formData:!0});if(a instanceof FormData)for(let[c,l]of a.entries())l instanceof File||r.append(c,l)}return r}async function al(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Xr(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let c=op(s),l=ip(s,n,r);Qr(e,!0),o.success=!1,o.progress=0,Yr(c,0,"loading"),dt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(ae(s,"method")||"POST").trim().toUpperCase(),p=await me.upload(a,l,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:f=>{o.progress=f,Yr(c,f,"loading"),dt(i,"voodoo:progress",{percent:f,form:i,state:o})}});u=!0,o.progress=100,Yr(c,100,"done"),il(e,p,200)}catch(d){Yr(c,o.progress,"error"),Yi(e,d)}finally{Qr(e,!1),sl(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var l;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}_n();let i=(l=o.closest("form"))!=null?l:o,s=Un(i),a={host:o,form:i,scope:t,state:s},c=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&al(a,n,u,o.name||"file")};o.addEventListener("change",c),r(()=>o.removeEventListener("change",c))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;_n(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=Un(o),s={host:e,form:o,scope:t,state:i},a=ae(e,"field")||"file",c=document.createElement("input");c.type="file",c.hidden=!0,c.tabIndex=-1,e.hasAttribute("accept")&&(c.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(c.multiple=!0),e.appendChild(c);let l=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),al(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},p=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},f=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);l(c.multiple?C:C.slice(0,1))},v=x=>{x.target!==c&&c.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),c.click())},h=()=>{var C;let x=Array.from((C=c.files)!=null?C:[]);l(x),c.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),c.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),c.removeEventListener("change",h),c.remove()})});var sp={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function ap(e){let t=ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function _i(e,t){e.setAttribute("data-state",t),e.textContent=sp[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;_n();let i=e,s=Un(i),a={host:i,form:i,scope:t,state:s},c=ap(i),l=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:ae(i,"autosave-delay"))!=null?g:1e3,u=_(l,1e3),d=async()=>{let h=Xr(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,_i(c,"saving");let y=(ae(i,"method")||"POST").trim().toUpperCase();try{let w=await st({url:h,method:y,body:ln(i,{formData:Gr(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,_i(c,"saved"),Jr(a,"on-success",w.data,{status:w.status}),dt(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){_i(c,"error"),Yi(a,w)}finally{s.saving=!1}},p=be(()=>{d()},u),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});b("guard",({el:e,expression:t,cleanup:n})=>{var l;let r=(l=e.tagName==="FORM"?e:e.closest("form"))!=null?l:e,o=Un(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},c=u=>{!o.dirty||o.loading||(u.preventDefault(),u.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",c),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",c)})});re();Z();function Vn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=ie(r)}catch(o){}return t}function cl(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:cl(e,"voodoo:persist"),i=Q.get(o);if(i&&typeof i=="object")for(let[c,l]of Object.entries(i))c in t.data&&(t.data[c]=l);let s=be(()=>{Q.set(o,Vn(t.data))},120),a=ve(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||cl(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,c=be(()=>{if(!a)try{i.postMessage({from:s,state:Vn(t.data)})}catch(u){U(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[p,f]of Object.entries(d.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let l=ve(t.data,()=>c(),{deep:!0});r(()=>{l(),i.close()})},{priority:P.DATA-1});var Qi=new WeakMap;function Gi(e){let t=e;for(;t;){let n=Qi.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Vn(t.data)))],s=0,a=!1,c=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Vn(t.data)))),s=0,l()}});function l(){c.canUndo=s>0,c.canRedo=s<i.length-1,c.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));l(),queueMicrotask(()=>{a=!1})}let d=be(()=>{if(a)return;let m=JSON.stringify(Vn(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,l())},_((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=ve(t.data,()=>d(),{deep:!0});Qi.set(e,c),t.set("$history",c),r(()=>{p(),d.cancel(),Qi.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Gi(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Gi(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=Q.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{Q.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?Gi(e.el):null);Z();var fn=null,ft=.35,et=!1,ll=!1,Xi="voodoo:sound:volume",fl="voodoo:sound:muted";function Dt(){if(ll)return;ll=!0;let e=Q.get(Xi);typeof e=="number"&&e>=0&&e<=1&&(ft=e);let t=Q.get(fl);typeof t=="boolean"&&(et=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&Q.get(Xi)===void 0&&(ft=.18)}function ul(){var t;if(typeof window=="undefined")return null;if(fn)return fn.state==="suspended"&&fn.resume(),fn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return fn=new e,fn}catch(n){return null}}function dl(e,t,n){var l,u,d,p;let r=e.currentTime+((l=t.atraso)!=null?l:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=ft*n*((d=t.volume)!=null?d:1),c=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+c),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var Zr={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"}]}},cp={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 eo(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=cp[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var to=new Map;function lp(e,t){let n=to.get(e);n||(n=new Audio(e),n.preload="auto",to.set(e,n)),n.volume=Math.max(0,Math.min(1,ft*t)),n.currentTime=0,n.play().catch(()=>{})}function pl(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var pt={play(e,t={}){var c,l,u;if(Dt(),et||!e)return;let n=String(e).trim(),r=(c=t.volume)!=null?c:1;if(pl(n)){lp(n,r);return}let o=Zr[n];if(!o){let d=eo(n);d!==null&&this.tone(d,200,{volume:r});return}let i=ul();if(!i)return;let s=(l=t.tom)!=null?l:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)dl(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(Dt(),et)return;let r=ul();r&&dl(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=eo(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){Dt(),!et&&e.forEach((r,o)=>{let i=typeof r=="number"?r:eo(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return Dt(),e===void 0||(ft=Math.max(0,Math.min(1,e)),Q.set(Xi,ft)),ft},mute(e=!0){Dt(),et=e,Q.set(fl,et)},unmute(){this.mute(!1)},toggle(){return Dt(),this.mute(!et),et},get muted(){return Dt(),et},get names(){return Object.keys(Zr)},define(e,t){Zr[e]=t},preload(...e){for(let t of e){if(to.has(t))continue;let n=new Audio(t);n.preload="auto",to.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",c=()=>{let d=n.trim();if(!d)return"click";if(Zr[d]||pl(d)||eo(d)!==null)return d;let p=s();return typeof p=="string"?p:d},l=r.volume!==void 0?Number(r.volume):void 0,u=()=>{pt.play(c(),l===void 0?{}:{volume:l})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});b("mute",({el:e,cleanup:t})=>{let n=()=>{let o=pt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{pt.toggle(),n(),pt.muted||pt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>pt);Te();Z();Te();Z();var up=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,dp=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,fp=/^rgba?\(([^)]+)\)$/i,pp=/^hsla?\(([^)]+)\)$/i;function ml(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function mp(e,t,n){let r=(e%360+360)%360,o=ye(t/100,0,1),i=ye(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,l=Math.floor(r/60)%6,u=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[d,p,f]=u[l];return{r:Math.round((d+c)*255),g:Math.round((p+c)*255),b:Math.round((f+c)*255)}}function _e(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=up.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=dp.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=fp.exec(t);if(o){let[s,a,c]=ml(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:ye(s,0,255),g:ye(a,0,255),b:ye(c,0,255)}}let i=pp.exec(t);if(i){let[s,a,c]=ml(i[1]);return s===void 0||a===void 0||c===void 0?null:mp(s,a,c)}return null}function ye(e,t,n){return e<t?t:e>n?n:e}function gn(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ji(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function gp(e){let t=gn(e.r),n=gn(e.g),r=gn(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(i),l=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*l,a:1.9779984951*a-2.428592205*c+.4505937099*l,b:.0259040371*a+.7827717662*c-.808675766*l}}function vp(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:Ji(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Ji(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Ji(-.0041960863*o-.7034186147*i+1.707614701*s)}}function ro(e){let t=gp(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 gl(e){let t=e.h*Math.PI/180;return vp({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function mn(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=gl({l:ye(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(ye(o.r,0,1)*255),g:Math.round(ye(o.g,0,1)*255),b:Math.round(ye(o.b,0,1)*255)};t*=.92}let n=gl({l:ye(e.l,0,1),c:0,h:e.h});return{r:Math.round(ye(n.r,0,1)*255),g:Math.round(ye(n.g,0,1)*255),b:Math.round(ye(n.b,0,1)*255)}}function Zi(e){return ye(Math.round(e),0,255).toString(16).padStart(2,"0")}function Pt(e){return`#${Zi(e.r)}${Zi(e.g)}${Zi(e.b)}`}function pn(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function wl(e){return Pt(mn(e))}function ts(e){return .2126*gn(e.r)+.7152*gn(e.g)+.0722*gn(e.b)}function ns(e,t){let n=typeof e=="string"?_e(e):e,r=typeof t=="string"?_e(t):t;if(!n||!r)return 1;let o=ts(n),i=ts(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var El={r:255,g:255,b:255},oo={r:0,g:0,b:0};function Wn(e){let t=typeof e=="string"?_e(e):e;return t?ns(t,El)>=ns(t,oo)?"#ffffff":"#000000":"#ffffff"}var rs=[50,100,200,300,400,500,600,700,800,900],xl=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],hp=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],Tl=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],yp=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function kl(e,t=!1){var a;let n=typeof e=="string"?(a=_e(e))!=null?a:oo:e,r=ro(n),o=t?Tl:xl,i=t?yp:hp,s={};return rs.forEach((c,l)=>{s[String(c)]=wl({l:o[l],c:r.c*i[l],h:r.h})}),s}var io={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"}},Ll=["primary","accent","success","warning","danger","info"],os="voodoo:palette",vl="voodoo-palette",bp="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",wp="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function hl(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Ep=/^([\d.]+)(px|rem|em)$/;function xp(e){let t=(e||"12px").trim(),n=Ep.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 yl(e,t){var l,u,d,p;let n={},r={},o={};for(let f of Ll){let m=(l=_e(e[f]))!=null?l:oo,v=ro(m),g=kl(m,t);r[f]=g;for(let B of rs)n[`--v-${f}-${B}`]=g[String(B)];let h=t?{l:Math.max(v.l,.62),c:v.c*.95,h:v.h}:v,y=t?{l:Math.min(h.l+.07,.94),c:h.c*.95,h:h.h}:{l:Math.max(h.l-.055,.12),c:h.c,h:h.h},w=t?{l:Math.min(h.l+.13,.97),c:h.c*.88,h:h.h}:{l:Math.max(h.l-.105,.1),c:h.c,h:h.h},T=mn(h),x=mn(y),C=mn(w);n[`--v-${f}`]=Pt(t?T:m),n[`--v-${f}-hover`]=Pt(x),n[`--v-${f}-active`]=Pt(C),n[`--v-${f}-contrast`]=Wn(t?T:m),n[`--v-${f}-contrast-hover`]=Wn(x),n[`--v-${f}-contrast-active`]=Wn(C);let N=g[50],R=g[100],ce=t?g[800]:g[700];n[`--v-${f}-soft`]=N,n[`--v-${f}-soft-hover`]=R,n[`--v-${f}-soft-text`]=ce,n[`--v-${f}-ring`]=pn(T,t?.45:.32),n[`--v-${f}-border`]=t?g[300]:g[200],o[f]=n[`--v-${f}-contrast`]}let i=(d=_e((u=e.neutral)!=null?u:e.primary))!=null?d:oo,s=ro(i).h,a=(f,m)=>wl({l:f,c:m,h:s}),c={};if(rs.forEach((f,m)=>{let v=t?Tl:xl;c[String(f)]=a(v[m],.012),n[`--v-neutral-${f}`]=c[String(f)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let f=mn({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"]=Pt(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"]=pn(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${pn(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${pn(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${pn(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Wn((p=_e(n["--v-surface"]))!=null?p:El),{vars:n,scales:r,contrast:o}}function es(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
316
316
  `);return`${e} {
317
317
  ${n}
318
318
  }`}var Yn=null,Kn=null;function Tp(e){var r,o,i,s,a,c,l,u,d;let t=(r=io[e.preset])!=null?r:io.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(i=e.accent)!=null?i:t.accent,success:(s=e.success)!=null?s:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(l=e.info)!=null?l:t.info,neutral:(u=e.neutral)!=null?u:t.neutral};for(let p of Ll)_e(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(d=e.radius)!=null?d:"12px",font:hl(e.font,bp),mono:hl(e.monoFont,wp)}}function kp(e){if(typeof document=="undefined"||!E.injectStyles)return;se();let t=document.getElementById(vl);t||(t=document.createElement("style"),t.id=vl,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function no(e={}){let{colors:t,radius:n,font:r,mono:o}=Tp(e),i=yl(t,!1),s=yl(t,!0),a={...xp(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",es(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {