voodoojs 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-7AKBELZA.js → chunk-4DLB2RY5.js} +4 -4
- package/dist/{chunk-MEE2ZAKJ.js → chunk-5YP5VMW7.js} +3 -3
- package/dist/{chunk-UGLD36KV.js → chunk-EWFY7CJB.js} +5 -5
- package/dist/{chunk-YV4I45SK.js → chunk-FRYNZTKW.js} +4 -4
- package/dist/{chunk-RXOLGHSU.js → chunk-HTBGKRUJ.js} +3 -3
- package/dist/{chunk-AVXQPDQH.js → chunk-NB3JAL4F.js} +4 -4
- package/dist/{chunk-OWCQV42D.js → chunk-NGDOIDR6.js} +7 -7
- package/dist/{chunk-K2U3O36M.js → chunk-UFLF4VNQ.js} +13 -13
- package/dist/{chunk-S4BXAGAW.js → chunk-VI27DQRZ.js} +4 -4
- package/dist/{chunk-RTZEIVNA.js → chunk-WOYGKZ3L.js} +5 -5
- package/dist/{chunk-NVANUFWZ.js → chunk-ZDLVJ7TA.js} +6 -6
- package/dist/essential.cjs +2 -2
- package/dist/essential.d.cts +1 -1
- package/dist/essential.d.ts +1 -1
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +1 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -20
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-JJTTJNSI.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +2 -2
- package/dist/voodoo.core.min.js +2 -2
- package/dist/voodoo.full.js +2 -2
- package/dist/voodoo.full.min.js +2 -2
- package/dist/voodoo.js +2 -2
- package/dist/voodoo.min.js +2 -2
- package/package.json +1 -1
- package/dist/style-GWGXWHB4.js +0 -5
- package/dist/{query-Dl6Urlwd.d.ts → query-DzHfm8Kg.d.ts} +28 -28
- package/dist/{query-D_BGQw8m.d.cts → query-XooOh4vB.d.cts} +28 -28
package/dist/voodoo.core.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.3
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -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 Mc(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 Lc({el:e,cleanup:t,run:n}){var l,f;let r=E(e,"trigger")||Mc(e),[o,...s]=r.split(/[.\s]+/),i=_((l=E(e,"poll"))!=null?l:void 0,0);if(i>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},i);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(d=>{for(let m of d)m.isIntersecting&&(n(),s.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=s.includes("once"),c=_((f=E(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=_e(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var Nc=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Nc)A(e,({el:n,scope:r,expression:o,cleanup:s})=>{Lc({el:n,scope:r,cleanup:s,run:a=>{let c=Vt(o,r);if(!c)return;let u=E(n,"body")||E(n,"data-body"),l=u?$(u,r.child({$event:a}),"v-body"):void 0,f=E(n,"params"),p=f?$(f,r,"v-params"):void 0;_t({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function Vt(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=$(n,t,"URL");return typeof o=="string"?o:n}A("load",({el:e,scope:t,expression:n})=>{let r=Vt(n,t);r&&_t({el:e,scope:t,method:"GET",url:r})});A("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Vt(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){_t({el:e,scope:t,method:"GET",url:o});return}let s=new IntersectionObserver(i=>{for(let a of i)a.isIntersecting&&(s.unobserve(e),_t({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});s.observe(e),n(()=>s.disconnect())});A("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,s=Vt(n,t),i=E(e,"param")||o.getAttribute("name")||"q",a=_((f=E(e,"debounce"))!=null?f:void 0,300),c=Number((p=E(e,"min-length"))!=null?p:0),u=_e(()=>{let d=o.value.trim();d.length<c||_t({el:e,scope:t,method:"GET",url:s,params:{[i]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});A("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),s=E(e,"as")||"resource",i=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(s=p,i=n.slice(o+1).trim())}let a=Rn(()=>Vt(i,t),{method:(E(e,"method")||"GET").toUpperCase(),params:()=>E(e,"params")?$(E(e,"params"),t,"v-params"):void 0,cache:_((c=E(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=E(e,"retry"))!=null?u:0),timeout:_((l=E(e,"timeout"))!=null?l:void 0,ie.defaults.timeout),jsonPath:E(e,"json-path"),poll:_((f=E(e,"poll"))!=null?f:void 0,0),manual:Ur(e,"manual"),onSuccess:p=>Tt(e,"voodoo:success",{data:p}),onError:(p,d)=>Tt(e,"voodoo:error",{error:p,message:d})});t.set(s,a),r(()=>a.stop())},{priority:U.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])A(e,()=>{},{priority:U.TRANSITION});Ko(ns);ts(Lt);cs(Xs);Rs();Ls();var Wt=new Map;function Ys(e,t){let n=Wt.get(e);return n||Wt.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Oc(e,t){let n=Ys(e,r=>{n(),t(r)});return n}function $c(e,t){let n=Wt.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){N(o,`event "${e}"`)}}function Hc(e,t){var n;if(!t){Wt.delete(e);return}(n=Wt.get(e))==null||n.delete(t)}function Xs(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;A(e,s=>{var l,f;let i,a=!1,c=p=>{var d,m;return{el:s.el,value:p,oldValue:i,arg:s.arg,modifiers:s.modifiers,expression:s.expression,scope:s.scope,instance:(m=(d=s.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?s.expression:s.evaluate();(l=n.created)==null||l.call(n,s.el,c(u)),(f=n.beforeMount)==null||f.call(n,s.el,c(u)),s.effect(()=>{var m,g;let p=n.raw?s.expression:s.evaluate();if(!a){a=!0,i=p,(m=n.mounted)==null||m.call(n,s.el,c(p));return}if(p===i)return;let d=c(p);(g=n.updated)==null||g.call(n,s.el,d),i=p}),s.cleanup(()=>{var d,m;let p=c(i);(d=n.beforeUnmount)==null||d.call(n,s.el,p),(m=n.unmounted)==null||m.call(n,s.el,p)})},{priority:(r=n.priority)!=null?r:U.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Dc(e){return Object.defineProperties(pe.data,Object.getOwnPropertyDescriptors(e)),pe.data}var Ic="0.12.2",Ln={...Pr,version:Ic,config:w,reactive:F,ref:de,shallowRef:er,computed:De,effect:J,watch:fe,watchEffect:nr,nextTick:He,toRaw:K,markRaw:At,unref:tr,stop:et,effectScope:Yn,EffectScope:re,flushSync:zn,data:Dc,store:gn,stores:qe,removeStore:fs,storeNames:ps,scope:pe,component:ut,components:z,directive:Xs,directives:we,magic:O,magics:Pt,createApp:us,start:Xo,whenReady:Nt,whenElement:mn,walk:j,refresh:Zo,destroy:H,stopObserving:Jo,getScope:it,findScope:Ee,addCleanup:ne,parseAttribute:ot,parse:oe,tokenize:on,evaluate:x,evaluateIn:$,stringify:be,clearParseCache:wo,globals:Y,http:ie,request:It,HttpError:Z,resource:Rn,toast:Me,storage:ae,session:Tn,cookie:xn,cache:kn,url:En,theme:vt,clipboard:Hr,screen:ce,network:Qe,enter:Ft,leave:Bt,fadeIn:Cn,fadeOut:Pn,slideUp:qt,slideDown:Ut,viewTransition:Ds,injectStyle:ke,ensureTokens:We,on:Ys,once:Oc,off:Hc,emit:$c,use(e,t){an(Ln,e,t)},onError(e){Qn(e)},instances:fn,Scope:je,PRIORITY:U,VoodooSyntaxError:L,VoodooRuntimeError:B};ds(Ln);G();var jc=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 ii(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ue(e){return e.length<2?e:Array.from(new Set(e))}function Ke(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function qr(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 ai(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Fc(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof he)return e.toArray();if(typeof e=="string")return Ge(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Ge(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Ge(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(ai(o))return qr(o);let s=[];for(let i of Fc(t))try{for(let a of Array.from(i.querySelectorAll(o)))s.push(a)}catch(a){}return ue(s)}if(e instanceof he)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 s=0;s<r.length;s++){let i=r[s];i&&i.nodeType===1&&o.push(i)}return ue(o)}return[]}function Js(e){if(e==null)return[];if(typeof e=="string"){let r=e;return ai(r.trim())?qr(r):[document.createTextNode(r)]}if(e instanceof he)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 Nn(e,t,n){let r=ii(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!jc.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Bc(e,t){for(let[n,r]of Object.entries(t))Nn(e,n,r)}function Zs(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 ei(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var ci=new WeakMap;function ti(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function ni(e){e.removeAttribute("hidden");let t=ci.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 ri(e){let t=e.style.display;t&&t!=="none"&&ci.set(e,t),e.style.display="none"}var oi="input,select,textarea";function si(e){return e.matches(oi)?[e]:Array.from(e.querySelectorAll(oi))}function Uc(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 On=new WeakMap;function qc(e){let t=On.get(e);return t||On.set(e,t=[]),t}var he=class e{constructor(t=[]){M(this,"length");M(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(ue(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(ue(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(ue(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(ue(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(ue(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let s of Array.from(o.children))s!==r&&(!t||s.matches(t))&&n.push(s)}return new e(ue(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(ue(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(ue(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(ue([...this.elements,...Ge(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.textContent)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))H(a);i.textContent=r}return this}html(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))H(a);i.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let s=o;return o.tagName==="SELECT"&&s.multiple?Array.from(s.selectedOptions).map(i=>i.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 s=o,i=o;if(s.tagName==="SELECT"&&i.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(i.options))c.selected=a.includes(c.value);continue}if(s.type==="checkbox"||s.type==="radio"){s.checked=Array.isArray(n)?n.map(String).includes(s.value):n===!0||String(n)===s.value;continue}s.value=n==null?"":String(n)}return this}attr(...t){var s,i;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));return this}let r=String(n);if(t.length<2)return(i=(s=this.elements[0])==null?void 0:s.getAttribute(r))!=null?i: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=Ke(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 s=this.elements[0];if(!s)return{};let i={};for(let[a,c]of Object.entries(s.dataset))i[a]=Zs(c);return i}if(n!==null&&typeof n=="object"){for(let s of this.elements)for(let[i,a]of Object.entries(n))s.dataset[ei(i)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ei(String(n));if(t.length<2){let s=this.elements[0];return s?Zs(s.dataset[r]):void 0}let o=t[1];for(let s of this.elements)s.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)Bc(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let s=ii(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(s):"")||o.style.getPropertyValue(s)).trim()}for(let o of this.elements)Nn(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)Nn(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)Nn(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 s of this.elements)s.scrollTop=n;return this}addClass(t){let n=Ke(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ke(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ke(t);for(let o of this.elements)for(let s of r)n===void 0?o.classList.toggle(s):o.classList.toggle(s,n);return this}hasClass(t){let n=Ke(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 s=this.elements[o];for(let i of Js(t))n(s,o===r-1?i:i.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=Ge(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=Ge(t);for(let r=0;r<n.length;r++){let o=n[r],s=this.elements.map(i=>r===n.length-1?i:i.cloneNode(!0));for(let i=s.length-1;i>=0;i--)o.insertBefore(s[i],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Js(t))r.insertBefore(o,n);H(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Ge(t)[0];if(!o)continue;let s=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(s,r);let i=s;for(;i.firstElementChild;)i=i.firstElementChild;i.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);H(n),n.remove()}}return this}remove(){for(let t of this.elements)H(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))H(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,s=r?n[1]:n[0],i=(a=r?n[2]:n[1])!=null?a:{};if(typeof s!="function")return this;for(let c of this.elements)for(let u of Ke(t)){let l=f=>{if(!o){s.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||s.call(d,f)};c.addEventListener(u,l,i),qc(c).push({type:u,selector:o,handler:s,wrapped:l,options:i})}return this}off(t,n,r){let o=typeof n=="string"?n:null,s=typeof n=="function"?n:r!=null?r:null,i=t?Ke(t):null;for(let a of this.elements){let c=On.get(a);if(!c)continue;let u=[];for(let l of c){let f=!i||i.includes(l.type),p=o===null||l.selector===o,d=s===null||l.handler===s;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}On.set(a,u)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,s=r?n[1]:n[0];if(typeof s!="function")return this;let i=this,a=function(c){return o?i.off(t,o,a):i.off(t,a),s.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)ni(t);return this}hide(){for(let t of this.elements)ri(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ti(n):t)?ni(n):ri(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Pn(n,t);return this}slideUp(t=240){for(let n of this.elements)qt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ut(n,t);return this}slideToggle(t=240){for(let n of this.elements)ti(n)?(n.removeAttribute("hidden"),Ut(n,t)):qt(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 si(t)){if(!Uc(r))continue;let o=r,s=r;if(o.tagName==="SELECT"&&s.multiple){for(let i of Array.from(s.selectedOptions))n.append(o.name,i.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,s,i;let t=this.elements[0],n={};if(!t)return n;for(let a of si(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(i=(s=c.files)==null?void 0:s[0])!=null?i:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&H(n),j(n,Ee(n.parentNode));return this}destroy(){for(let t of this.elements)H(t);return this}};function _r(e,t){if(typeof e=="function"){Vr(e);let n=typeof document!="undefined"?document.documentElement:null;return new he(n?[n]:[])}return new he(Ge(e,t))}function Vr(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{as(()=>{try{e==null||e()}catch(n){N(n,"V.ready")}t()})})}function ui(e){return new he(qr(e))}var li=((e,t)=>_r(e,t));Object.assign(li,Ln,{query:_r,ready:Vr,fromHtml:ui,Collection:he,magic:O});var Wr=li;se();ht();se();var _c=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Vc=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Wc=/^rgba?\(([^)]+)\)$/i,zc=/^hsla?\(([^)]+)\)$/i;function di(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Qc(e,t,n){let r=(e%360+360)%360,o=ee(t/100,0,1),s=ee(n/100,0,1),i=(1-Math.abs(2*s-1))*o,a=i*(1-Math.abs(r/60%2-1)),c=s-i/2,u=Math.floor(r/60)%6,l=[[i,a,0],[a,i,0],[0,i,a],[0,a,i],[a,0,i],[i,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function ge(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=_c.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=Vc.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Wc.exec(t);if(o){let[i,a,c]=di(o[1]);return i===void 0||a===void 0||c===void 0?null:{r:ee(i,0,255),g:ee(a,0,255),b:ee(c,0,255)}}let s=zc.exec(t);if(s){let[i,a,c]=di(s[1]);return i===void 0||a===void 0||c===void 0?null:Qc(i,a,c)}return null}function ee(e,t,n){return e<t?t:e>n?n:e}function kt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function zr(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Kc(e){let t=kt(e.r),n=kt(e.g),r=kt(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,s=.2119034982*t+.6806995451*n+.1073969566*r,i=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(s),u=Math.cbrt(i);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function Gc(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,s=n*n*n,i=r*r*r;return{r:zr(4.0767416621*o-3.3077115913*s+.2309699292*i),g:zr(-1.2684380046*o+2.6097574011*s-.3413193965*i),b:zr(-.0041960863*o-.7034186147*s+1.707614701*i)}}function Hn(e){let t=Kc(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 fi(e){let t=e.h*Math.PI/180;return Gc({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function Et(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=fi({l:ee(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(ee(o.r,0,1)*255),g:Math.round(ee(o.g,0,1)*255),b:Math.round(ee(o.b,0,1)*255)};t*=.92}let n=fi({l:ee(e.l,0,1),c:0,h:e.h});return{r:Math.round(ee(n.r,0,1)*255),g:Math.round(ee(n.g,0,1)*255),b:Math.round(ee(n.b,0,1)*255)}}function Qr(e){return ee(Math.round(e),0,255).toString(16).padStart(2,"0")}function Ye(e){return`#${Qr(e.r)}${Qr(e.g)}${Qr(e.b)}`}function xt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function yi(e){return Ye(Et(e))}function Gr(e){return .2126*kt(e.r)+.7152*kt(e.g)+.0722*kt(e.b)}function Yr(e,t){let n=typeof e=="string"?ge(e):e,r=typeof t=="string"?ge(t):t;if(!n||!r)return 1;let o=Gr(n),s=Gr(r),i=Math.max(o,s),a=Math.min(o,s);return(i+.05)/(a+.05)}var vi={r:255,g:255,b:255},Dn={r:0,g:0,b:0};function zt(e){let t=typeof e=="string"?ge(e):e;return t?Yr(t,vi)>=Yr(t,Dn)?"#ffffff":"#000000":"#ffffff"}var Xr=[50,100,200,300,400,500,600,700,800,900],bi=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Yc=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],wi=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Xc=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function Ti(e,t=!1){var a;let n=typeof e=="string"?(a=ge(e))!=null?a:Dn:e,r=Hn(n),o=t?wi:bi,s=t?Xc:Yc,i={};return Xr.forEach((c,u)=>{i[String(c)]=yi({l:o[u],c:r.c*s[u],h:r.h})}),i}var In={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"}},xi=["primary","accent","success","warning","danger","info"],Jr="voodoo:palette",pi="voodoo-palette",Jc="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Zc="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function mi(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var eu=/^([\d.]+)(px|rem|em)$/;function tu(e){let t=(e||"12px").trim(),n=eu.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],s=i=>`${Math.round(i*1e3)/1e3}${o}`;return{"--v-radius":s(r),"--v-radius-sm":s(Math.max(r*.55,0)),"--v-radius-lg":s(r*1.5),"--v-radius-xl":s(r*2),"--v-radius-full":"999px"}}function hi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of xi){let m=(u=ge(e[d]))!=null?u:Dn,g=Hn(m),h=Ti(m,t);r[d]=h;for(let P of Xr)n[`--v-${d}-${P}`]=h[String(P)];let y=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,S=t?{l:Math.min(y.l+.07,.94),c:y.c*.95,h:y.h}:{l:Math.max(y.l-.055,.12),c:y.c,h:y.h},V=t?{l:Math.min(y.l+.13,.97),c:y.c*.88,h:y.h}:{l:Math.max(y.l-.105,.1),c:y.c,h:y.h},k=Et(y),v=Et(S),I=Et(V);n[`--v-${d}`]=Ye(t?k:m),n[`--v-${d}-hover`]=Ye(v),n[`--v-${d}-active`]=Ye(I),n[`--v-${d}-contrast`]=zt(t?k:m),n[`--v-${d}-contrast-hover`]=zt(v),n[`--v-${d}-contrast-active`]=zt(I);let D=h[50],C=h[100],W=t?h[800]:h[700];n[`--v-${d}-soft`]=D,n[`--v-${d}-soft-hover`]=C,n[`--v-${d}-soft-text`]=W,n[`--v-${d}-ring`]=xt(k,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let s=(f=ge((l=e.neutral)!=null?l:e.primary))!=null?f:Dn,i=Hn(s).h,a=(d,m)=>yi({l:d,c:m,h:i}),c={};if(Xr.forEach((d,m)=>{let g=t?wi:bi;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let d=Et({l:.24,c:.028,h:i});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"]=Ye(d),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=xt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${xt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${xt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${xt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=zt((p=ge(n["--v-surface"]))!=null?p:vi),{vars:n,scales:r,contrast:o}}function Kr(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
138
|
+
`)}))}function Mc(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 Lc({el:e,cleanup:t,run:n}){var l,f;let r=E(e,"trigger")||Mc(e),[o,...s]=r.split(/[.\s]+/),i=_((l=E(e,"poll"))!=null?l:void 0,0);if(i>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},i);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(d=>{for(let m of d)m.isIntersecting&&(n(),s.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=s.includes("once"),c=_((f=E(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=_e(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var Nc=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Nc)A(e,({el:n,scope:r,expression:o,cleanup:s})=>{Lc({el:n,scope:r,cleanup:s,run:a=>{let c=Vt(o,r);if(!c)return;let u=E(n,"body")||E(n,"data-body"),l=u?$(u,r.child({$event:a}),"v-body"):void 0,f=E(n,"params"),p=f?$(f,r,"v-params"):void 0;_t({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function Vt(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=$(n,t,"URL");return typeof o=="string"?o:n}A("load",({el:e,scope:t,expression:n})=>{let r=Vt(n,t);r&&_t({el:e,scope:t,method:"GET",url:r})});A("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Vt(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){_t({el:e,scope:t,method:"GET",url:o});return}let s=new IntersectionObserver(i=>{for(let a of i)a.isIntersecting&&(s.unobserve(e),_t({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});s.observe(e),n(()=>s.disconnect())});A("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,s=Vt(n,t),i=E(e,"param")||o.getAttribute("name")||"q",a=_((f=E(e,"debounce"))!=null?f:void 0,300),c=Number((p=E(e,"min-length"))!=null?p:0),u=_e(()=>{let d=o.value.trim();d.length<c||_t({el:e,scope:t,method:"GET",url:s,params:{[i]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});A("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),s=E(e,"as")||"resource",i=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(s=p,i=n.slice(o+1).trim())}let a=Rn(()=>Vt(i,t),{method:(E(e,"method")||"GET").toUpperCase(),params:()=>E(e,"params")?$(E(e,"params"),t,"v-params"):void 0,cache:_((c=E(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=E(e,"retry"))!=null?u:0),timeout:_((l=E(e,"timeout"))!=null?l:void 0,ie.defaults.timeout),jsonPath:E(e,"json-path"),poll:_((f=E(e,"poll"))!=null?f:void 0,0),manual:Ur(e,"manual"),onSuccess:p=>Tt(e,"voodoo:success",{data:p}),onError:(p,d)=>Tt(e,"voodoo:error",{error:p,message:d})});t.set(s,a),r(()=>a.stop())},{priority:U.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])A(e,()=>{},{priority:U.TRANSITION});Ko(ns);ts(Lt);cs(Xs);Rs();Ls();var Wt=new Map;function Ys(e,t){let n=Wt.get(e);return n||Wt.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Oc(e,t){let n=Ys(e,r=>{n(),t(r)});return n}function $c(e,t){let n=Wt.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){N(o,`event "${e}"`)}}function Hc(e,t){var n;if(!t){Wt.delete(e);return}(n=Wt.get(e))==null||n.delete(t)}function Xs(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;A(e,s=>{var l,f;let i,a=!1,c=p=>{var d,m;return{el:s.el,value:p,oldValue:i,arg:s.arg,modifiers:s.modifiers,expression:s.expression,scope:s.scope,instance:(m=(d=s.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?s.expression:s.evaluate();(l=n.created)==null||l.call(n,s.el,c(u)),(f=n.beforeMount)==null||f.call(n,s.el,c(u)),s.effect(()=>{var m,g;let p=n.raw?s.expression:s.evaluate();if(!a){a=!0,i=p,(m=n.mounted)==null||m.call(n,s.el,c(p));return}if(p===i)return;let d=c(p);(g=n.updated)==null||g.call(n,s.el,d),i=p}),s.cleanup(()=>{var d,m;let p=c(i);(d=n.beforeUnmount)==null||d.call(n,s.el,p),(m=n.unmounted)==null||m.call(n,s.el,p)})},{priority:(r=n.priority)!=null?r:U.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Dc(e){return Object.defineProperties(pe.data,Object.getOwnPropertyDescriptors(e)),pe.data}var Ic="0.12.3",Ln={...Pr,version:Ic,config:w,reactive:F,ref:de,shallowRef:er,computed:De,effect:J,watch:fe,watchEffect:nr,nextTick:He,toRaw:K,markRaw:At,unref:tr,stop:et,effectScope:Yn,EffectScope:re,flushSync:zn,data:Dc,store:gn,stores:qe,removeStore:fs,storeNames:ps,scope:pe,component:ut,components:z,directive:Xs,directives:we,magic:O,magics:Pt,createApp:us,start:Xo,whenReady:Nt,whenElement:mn,walk:j,refresh:Zo,destroy:H,stopObserving:Jo,getScope:it,findScope:Ee,addCleanup:ne,parseAttribute:ot,parse:oe,tokenize:on,evaluate:x,evaluateIn:$,stringify:be,clearParseCache:wo,globals:Y,http:ie,request:It,HttpError:Z,resource:Rn,toast:Me,storage:ae,session:Tn,cookie:xn,cache:kn,url:En,theme:vt,clipboard:Hr,screen:ce,network:Qe,enter:Ft,leave:Bt,fadeIn:Cn,fadeOut:Pn,slideUp:qt,slideDown:Ut,viewTransition:Ds,injectStyle:ke,ensureTokens:We,on:Ys,once:Oc,off:Hc,emit:$c,use(e,t){an(Ln,e,t)},onError(e){Qn(e)},instances:fn,Scope:je,PRIORITY:U,VoodooSyntaxError:L,VoodooRuntimeError:B};ds(Ln);G();var jc=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 ii(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ue(e){return e.length<2?e:Array.from(new Set(e))}function Ke(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function qr(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 ai(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Fc(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof he)return e.toArray();if(typeof e=="string")return Ge(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Ge(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Ge(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(ai(o))return qr(o);let s=[];for(let i of Fc(t))try{for(let a of Array.from(i.querySelectorAll(o)))s.push(a)}catch(a){}return ue(s)}if(e instanceof he)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 s=0;s<r.length;s++){let i=r[s];i&&i.nodeType===1&&o.push(i)}return ue(o)}return[]}function Js(e){if(e==null)return[];if(typeof e=="string"){let r=e;return ai(r.trim())?qr(r):[document.createTextNode(r)]}if(e instanceof he)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 Nn(e,t,n){let r=ii(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!jc.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Bc(e,t){for(let[n,r]of Object.entries(t))Nn(e,n,r)}function Zs(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 ei(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var ci=new WeakMap;function ti(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function ni(e){e.removeAttribute("hidden");let t=ci.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 ri(e){let t=e.style.display;t&&t!=="none"&&ci.set(e,t),e.style.display="none"}var oi="input,select,textarea";function si(e){return e.matches(oi)?[e]:Array.from(e.querySelectorAll(oi))}function Uc(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 On=new WeakMap;function qc(e){let t=On.get(e);return t||On.set(e,t=[]),t}var he=class e{constructor(t=[]){M(this,"length");M(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(ue(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(ue(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(ue(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(ue(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(ue(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let s of Array.from(o.children))s!==r&&(!t||s.matches(t))&&n.push(s)}return new e(ue(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(ue(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(ue(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(ue([...this.elements,...Ge(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.textContent)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))H(a);i.textContent=r}return this}html(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))H(a);i.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let s=o;return o.tagName==="SELECT"&&s.multiple?Array.from(s.selectedOptions).map(i=>i.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 s=o,i=o;if(s.tagName==="SELECT"&&i.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(i.options))c.selected=a.includes(c.value);continue}if(s.type==="checkbox"||s.type==="radio"){s.checked=Array.isArray(n)?n.map(String).includes(s.value):n===!0||String(n)===s.value;continue}s.value=n==null?"":String(n)}return this}attr(...t){var s,i;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));return this}let r=String(n);if(t.length<2)return(i=(s=this.elements[0])==null?void 0:s.getAttribute(r))!=null?i: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=Ke(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 s=this.elements[0];if(!s)return{};let i={};for(let[a,c]of Object.entries(s.dataset))i[a]=Zs(c);return i}if(n!==null&&typeof n=="object"){for(let s of this.elements)for(let[i,a]of Object.entries(n))s.dataset[ei(i)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ei(String(n));if(t.length<2){let s=this.elements[0];return s?Zs(s.dataset[r]):void 0}let o=t[1];for(let s of this.elements)s.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)Bc(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let s=ii(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(s):"")||o.style.getPropertyValue(s)).trim()}for(let o of this.elements)Nn(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)Nn(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)Nn(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 s of this.elements)s.scrollTop=n;return this}addClass(t){let n=Ke(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ke(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ke(t);for(let o of this.elements)for(let s of r)n===void 0?o.classList.toggle(s):o.classList.toggle(s,n);return this}hasClass(t){let n=Ke(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 s=this.elements[o];for(let i of Js(t))n(s,o===r-1?i:i.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=Ge(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=Ge(t);for(let r=0;r<n.length;r++){let o=n[r],s=this.elements.map(i=>r===n.length-1?i:i.cloneNode(!0));for(let i=s.length-1;i>=0;i--)o.insertBefore(s[i],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Js(t))r.insertBefore(o,n);H(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Ge(t)[0];if(!o)continue;let s=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(s,r);let i=s;for(;i.firstElementChild;)i=i.firstElementChild;i.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);H(n),n.remove()}}return this}remove(){for(let t of this.elements)H(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))H(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,s=r?n[1]:n[0],i=(a=r?n[2]:n[1])!=null?a:{};if(typeof s!="function")return this;for(let c of this.elements)for(let u of Ke(t)){let l=f=>{if(!o){s.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||s.call(d,f)};c.addEventListener(u,l,i),qc(c).push({type:u,selector:o,handler:s,wrapped:l,options:i})}return this}off(t,n,r){let o=typeof n=="string"?n:null,s=typeof n=="function"?n:r!=null?r:null,i=t?Ke(t):null;for(let a of this.elements){let c=On.get(a);if(!c)continue;let u=[];for(let l of c){let f=!i||i.includes(l.type),p=o===null||l.selector===o,d=s===null||l.handler===s;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}On.set(a,u)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,s=r?n[1]:n[0];if(typeof s!="function")return this;let i=this,a=function(c){return o?i.off(t,o,a):i.off(t,a),s.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)ni(t);return this}hide(){for(let t of this.elements)ri(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ti(n):t)?ni(n):ri(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Pn(n,t);return this}slideUp(t=240){for(let n of this.elements)qt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ut(n,t);return this}slideToggle(t=240){for(let n of this.elements)ti(n)?(n.removeAttribute("hidden"),Ut(n,t)):qt(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 si(t)){if(!Uc(r))continue;let o=r,s=r;if(o.tagName==="SELECT"&&s.multiple){for(let i of Array.from(s.selectedOptions))n.append(o.name,i.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,s,i;let t=this.elements[0],n={};if(!t)return n;for(let a of si(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(i=(s=c.files)==null?void 0:s[0])!=null?i:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&H(n),j(n,Ee(n.parentNode));return this}destroy(){for(let t of this.elements)H(t);return this}};function _r(e,t){if(typeof e=="function"){Vr(e);let n=typeof document!="undefined"?document.documentElement:null;return new he(n?[n]:[])}return new he(Ge(e,t))}function Vr(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{as(()=>{try{e==null||e()}catch(n){N(n,"V.ready")}t()})})}function ui(e){return new he(qr(e))}var li=((e,t)=>_r(e,t));Object.assign(li,Ln,{query:_r,ready:Vr,fromHtml:ui,Collection:he,magic:O});var Wr=li;se();ht();se();var _c=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Vc=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Wc=/^rgba?\(([^)]+)\)$/i,zc=/^hsla?\(([^)]+)\)$/i;function di(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Qc(e,t,n){let r=(e%360+360)%360,o=ee(t/100,0,1),s=ee(n/100,0,1),i=(1-Math.abs(2*s-1))*o,a=i*(1-Math.abs(r/60%2-1)),c=s-i/2,u=Math.floor(r/60)%6,l=[[i,a,0],[a,i,0],[0,i,a],[0,a,i],[a,0,i],[i,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function ge(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=_c.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=Vc.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Wc.exec(t);if(o){let[i,a,c]=di(o[1]);return i===void 0||a===void 0||c===void 0?null:{r:ee(i,0,255),g:ee(a,0,255),b:ee(c,0,255)}}let s=zc.exec(t);if(s){let[i,a,c]=di(s[1]);return i===void 0||a===void 0||c===void 0?null:Qc(i,a,c)}return null}function ee(e,t,n){return e<t?t:e>n?n:e}function kt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function zr(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Kc(e){let t=kt(e.r),n=kt(e.g),r=kt(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,s=.2119034982*t+.6806995451*n+.1073969566*r,i=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(s),u=Math.cbrt(i);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function Gc(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,s=n*n*n,i=r*r*r;return{r:zr(4.0767416621*o-3.3077115913*s+.2309699292*i),g:zr(-1.2684380046*o+2.6097574011*s-.3413193965*i),b:zr(-.0041960863*o-.7034186147*s+1.707614701*i)}}function Hn(e){let t=Kc(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 fi(e){let t=e.h*Math.PI/180;return Gc({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function Et(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=fi({l:ee(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(ee(o.r,0,1)*255),g:Math.round(ee(o.g,0,1)*255),b:Math.round(ee(o.b,0,1)*255)};t*=.92}let n=fi({l:ee(e.l,0,1),c:0,h:e.h});return{r:Math.round(ee(n.r,0,1)*255),g:Math.round(ee(n.g,0,1)*255),b:Math.round(ee(n.b,0,1)*255)}}function Qr(e){return ee(Math.round(e),0,255).toString(16).padStart(2,"0")}function Ye(e){return`#${Qr(e.r)}${Qr(e.g)}${Qr(e.b)}`}function xt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function yi(e){return Ye(Et(e))}function Gr(e){return .2126*kt(e.r)+.7152*kt(e.g)+.0722*kt(e.b)}function Yr(e,t){let n=typeof e=="string"?ge(e):e,r=typeof t=="string"?ge(t):t;if(!n||!r)return 1;let o=Gr(n),s=Gr(r),i=Math.max(o,s),a=Math.min(o,s);return(i+.05)/(a+.05)}var vi={r:255,g:255,b:255},Dn={r:0,g:0,b:0};function zt(e){let t=typeof e=="string"?ge(e):e;return t?Yr(t,vi)>=Yr(t,Dn)?"#ffffff":"#000000":"#ffffff"}var Xr=[50,100,200,300,400,500,600,700,800,900],bi=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Yc=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],wi=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Xc=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function Ti(e,t=!1){var a;let n=typeof e=="string"?(a=ge(e))!=null?a:Dn:e,r=Hn(n),o=t?wi:bi,s=t?Xc:Yc,i={};return Xr.forEach((c,u)=>{i[String(c)]=yi({l:o[u],c:r.c*s[u],h:r.h})}),i}var In={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"}},xi=["primary","accent","success","warning","danger","info"],Jr="voodoo:palette",pi="voodoo-palette",Jc="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Zc="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function mi(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var eu=/^([\d.]+)(px|rem|em)$/;function tu(e){let t=(e||"12px").trim(),n=eu.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],s=i=>`${Math.round(i*1e3)/1e3}${o}`;return{"--v-radius":s(r),"--v-radius-sm":s(Math.max(r*.55,0)),"--v-radius-lg":s(r*1.5),"--v-radius-xl":s(r*2),"--v-radius-full":"999px"}}function hi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of xi){let m=(u=ge(e[d]))!=null?u:Dn,g=Hn(m),h=Ti(m,t);r[d]=h;for(let P of Xr)n[`--v-${d}-${P}`]=h[String(P)];let y=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,S=t?{l:Math.min(y.l+.07,.94),c:y.c*.95,h:y.h}:{l:Math.max(y.l-.055,.12),c:y.c,h:y.h},V=t?{l:Math.min(y.l+.13,.97),c:y.c*.88,h:y.h}:{l:Math.max(y.l-.105,.1),c:y.c,h:y.h},k=Et(y),v=Et(S),I=Et(V);n[`--v-${d}`]=Ye(t?k:m),n[`--v-${d}-hover`]=Ye(v),n[`--v-${d}-active`]=Ye(I),n[`--v-${d}-contrast`]=zt(t?k:m),n[`--v-${d}-contrast-hover`]=zt(v),n[`--v-${d}-contrast-active`]=zt(I);let D=h[50],C=h[100],W=t?h[800]:h[700];n[`--v-${d}-soft`]=D,n[`--v-${d}-soft-hover`]=C,n[`--v-${d}-soft-text`]=W,n[`--v-${d}-ring`]=xt(k,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let s=(f=ge((l=e.neutral)!=null?l:e.primary))!=null?f:Dn,i=Hn(s).h,a=(d,m)=>yi({l:d,c:m,h:i}),c={};if(Xr.forEach((d,m)=>{let g=t?wi:bi;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let d=Et({l:.24,c:.028,h:i});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"]=Ye(d),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=xt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${xt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${xt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${xt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=zt((p=ge(n["--v-surface"]))!=null?p:vi),{vars:n,scales:r,contrast:o}}function Kr(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
139
139
|
`);return`${e} {
|
|
140
140
|
${n}
|
|
141
141
|
}`}var Kt=null,Qt=null;function nu(e){var r,o,s,i,a,c,u,l,f;let t=(r=In[e.preset])!=null?r:In.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(s=e.accent)!=null?s:t.accent,success:(i=e.success)!=null?i:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(u=e.info)!=null?u:t.info,neutral:(l=e.neutral)!=null?l:t.neutral};for(let p of xi)ge(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(f=e.radius)!=null?f:"12px",font:mi(e.font,Jc),mono:mi(e.monoFont,Zc)}}function ru(e){if(typeof document=="undefined"||!w.injectStyles)return;We();let t=document.getElementById(pi);t||(t=document.createElement("style"),t.id=pi,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function $n(e={}){let{colors:t,radius:n,font:r,mono:o}=nu(e),s=hi(t,!1),i=hi(t,!0),a={...tu(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",Kr(":root",{...a,...s.vars}),`@media (prefers-color-scheme: dark) {
|
package/dist/voodoo.full.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.3
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -7136,7 +7136,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
7136
7136
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
7137
7137
|
return rootScope.data;
|
|
7138
7138
|
}
|
|
7139
|
-
var version2 = "0.12.
|
|
7139
|
+
var version2 = "0.12.3";
|
|
7140
7140
|
var core = {
|
|
7141
7141
|
// Utilities first: Voodoo's own names can override.
|
|
7142
7142
|
...utils_exports,
|
package/dist/voodoo.full.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.3
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -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 kh(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 Eh({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||kh(e),[o,...i]=r.split(/[.\s]+/),s=Q((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=Q((u=V(e,"debounce"))!=null?u:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=Ye(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var Th=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Th)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{Eh({el:n,scope:r,cleanup:i,run:a=>{let l=Yr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),f=u?q(u,r,"v-params"):void 0;Kr({el:n,scope:r,method:t,url:l,body:d,params:f,event:a})}})});function Yr(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=Yr(n,t);r&&Kr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Yr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Kr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Kr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,f;let o=e,i=Yr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=Q((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((f=V(e,"min-length"))!=null?f:0),c=Ye(()=>{let p=o.value.trim();p.length<l||Kr({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=hi(()=>Yr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:Q((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:Q((d=V(e,"timeout"))!=null?d:void 0,he.defaults.timeout),jsonPath:V(e,"json-path"),poll:Q((u=V(e,"poll"))!=null?u:void 0,0),manual:Ha(e,"manual"),onSuccess:f=>Zn(e,"voodoo:success",{data:f}),onError:(f,p)=>Zn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:j.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])y(e,()=>{},{priority:j.TRANSITION});Td(Hd);Pd(Bt);Bd(Mu);ru();au();var Xr=new Map;function Lu(e,t){let n=Xr.get(e);return n||Xr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Lh(e,t){let n=Lu(e,r=>{n(),t(r)});return n}function Mh(e,t){let n=Xr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){W(o,`event "${e}"`)}}function Sh(e,t){var n;if(!t){Xr.delete(e);return}(n=Xr.get(e))==null||n.delete(t)}function Mu(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(h=n.updated)==null||h.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Ch(e){return Object.defineProperties(Ke.data,Object.getOwnPropertyDescriptors(e)),Ke.data}var Ah="0.12.2",yi={...Ea,version:Ah,config:w,reactive:Y,ref:Ge,shallowRef:_s,computed:an,effect:Pe,watch:Ie,watchEffect:Ks,nextTick:ft,toRaw:Me,markRaw:Rr,unref:Ws,stop:Pn,effectScope:js,EffectScope:ot,flushSync:Fs,data:Ch,store:ti,stores:$t,removeStore:Ud,storeNames:ni,scope:Ke,component:jt,components:He,directive:Mu,directives:Mt,magic:N,magics:Pr,createApp:jd,start:Ad,whenReady:Fr,whenElement:Zo,walk:ne,refresh:$d,destroy:G,stopObserving:Rd,getScope:it,findScope:Ce,addCleanup:Be,parseAttribute:Fn,parse:ze,tokenize:jo,evaluate:P,evaluateIn:q,stringify:Lt,clearParseCache:ed,globals:Oe,http:he,request:Vt,HttpError:Ee,resource:hi,toast:st,storage:fe,session:di,cookie:ui,cache:fi,url:_t,theme:mt,clipboard:mi,screen:Qe,network:Wt,enter:_r,leave:Wr,fadeIn:Qn,fadeOut:Jn,slideUp:mn,slideDown:pn,viewTransition:gi,injectStyle:Z,ensureTokens:ge,on:Lu,once:Lh,off:Sh,emit:Mh,use(e,t){Uo(yi,e,t)},onError(e){Is(e)},instances:Rt,Scope:St,PRIORITY:j,VoodooSyntaxError:te,VoodooRuntimeError:xe};Vd(yi);de();var Rh=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 Nu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function at(e){return e.length<2?e:Array.from(new Set(e))}function vn(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Na(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 Ou(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function $h(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof vt)return e.toArray();if(typeof e=="string")return hn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=hn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function hn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Ou(o))return Na(o);let i=[];for(let s of $h(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return at(i)}if(e instanceof vt)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return at(o)}return[]}function Su(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Ou(r.trim())?Na(r):[document.createTextNode(r)]}if(e instanceof vt)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function xi(e,t,n){let r=Nu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Rh.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Dh(e,t){for(let[n,r]of Object.entries(t))xi(e,n,r)}function Cu(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 Au(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Fu=new WeakMap;function Ru(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function $u(e){e.removeAttribute("hidden");let t=Fu.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 Du(e){let t=e.style.display;t&&t!=="none"&&Fu.set(e,t),e.style.display="none"}var Pu="input,select,textarea";function Hu(e){return e.matches(Pu)?[e]:Array.from(e.querySelectorAll(Pu))}function Ph(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 wi=new WeakMap;function Hh(e){let t=wi.get(e);return t||wi.set(e,t=[]),t}var vt=class e{constructor(t=[]){H(this,"length");H(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(at(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(at(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(at(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(at(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(at(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(at([...this.elements,...hn(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))G(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))G(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=vn(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=Cu(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Au(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Au(String(n));if(t.length<2){let i=this.elements[0];return i?Cu(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)Dh(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Nu(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)xi(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)xi(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)xi(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=vn(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=vn(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of Su(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=hn(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=hn(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Su(t))r.insertBefore(o,n);G(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=hn(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);G(n),n.remove()}}return this}remove(){for(let t of this.elements)G(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))G(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of vn(t)){let d=u=>{if(!o){i.call(l,u);return}let f=u.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,u)};l.addEventListener(c,d,s),Hh(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?vn(t):null;for(let a of this.elements){let l=wi.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),f=o===null||d.selector===o,p=i===null||d.handler===i;u&&f&&p?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}wi.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)$u(t);return this}hide(){for(let t of this.elements)Du(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Ru(n):t)?$u(n):Du(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Qn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Jn(n,t);return this}slideUp(t=240){for(let n of this.elements)mn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),pn(n,t);return this}slideToggle(t=240){for(let n of this.elements)Ru(n)?(n.removeAttribute("hidden"),pn(n,t)):mn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Hu(t)){if(!Ph(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 Hu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(p):n[u]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[u]=p:n[u]=[m,p];continue}n[u]=p}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&G(n),ne(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)G(t);return this}};function Oa(e,t){if(typeof e=="function"){Fa(e);let n=typeof document!="undefined"?document.documentElement:null;return new vt(n?[n]:[])}return new vt(hn(e,t))}function Fa(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{zd(()=>{try{e==null||e()}catch(n){W(n,"V.ready")}t()})})}function Iu(e){return new vt(Na(e))}de();ce();var gn=new Map,je={emit(e,t){let n=gn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=gn.get(e);return n||gn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=gn.get(e))==null||n.delete(t)},clear(e){e?gn.delete(e):gn.clear()},count(e){var t,n;return(n=(t=gn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ki="__voodooRoute",ju=10,ht=[],qu=new Map,Ei=new Map,er="inicial",Ti=!1,Vu=!1;function Nh(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ue=Y(Nh());function Gr(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Uu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function Oh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function ja(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=Uu(t.slice(i+1)),t=t.slice(0,i)),{path:Gr(t),query:o,hash:n}}function Fh(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function _u(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?ja(window.location.hash.slice(1)||"/"):{path:Gr(Fh(window.location.pathname)),query:Uu(window.location.search),hash:window.location.hash.slice(1)}}function Wu(e,t,n){let r=Oh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function qa(e){let t=Wu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var za=!1,Li=!1;function Va(e,t,n){if(!za)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;za=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){Li=!0;try{window.location.hash=o}finally{setTimeout(()=>{Li=!1},0)}}}function Ku(e,t){let n=e==="*"?"*":Gr(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function Ih(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ia).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ia(i)!==o.value)return null;r++;continue}n[o.value]=Ia(i),r++}return r===t.length?n:null}function Ia(e){try{return decodeURIComponent(e)}catch(t){return e}}function zh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of ht){let o=Ih(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ua(e){var t,n;return e&&(n=(t=ht.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function tr(e){let{path:t,query:n,hash:r}=ja(e);return _a(t,n,r)}function _a(e,t,n){var o,i;let r=zh(e);return{path:e,fullPath:Wu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function nr(){return{path:ue.path,fullPath:ue.fullPath,params:{...ue.params},query:{...ue.query},hash:ue.hash,name:ue.name,meta:ue.meta,matched:ue.matched}}function Wa(e){ue.path=e.path,ue.fullPath=e.fullPath,ue.params=e.params,ue.query=e.query,ue.hash=e.hash,ue.name=e.name,ue.meta=e.meta,ue.matched=e.matched;let t=Ua(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ka(e,t){let n=Ua(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function Si(){typeof window!="undefined"&&qu.set(er,window.scrollY)}function Ya(e,t,n){typeof window!="undefined"&&Se(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Kt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Yu();let n=nr(),r=tr(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>ju)return X(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ka(r,n);if(d===!1)return je.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=tr(d);continue}break}Si();let o=le("rota"),i={...(a=t.state)!=null?a:{},[ki]:o},s=qa(r);return Va(i,s,t.replace===!0),er=o,Wa(r),t.scroll!==!1&&Ya(r,n,null),(l=U.afterEach)==null||l.call(U,nr(),n),je.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function Bh(e){var c,d;if(Li)return;let{path:t,query:n,hash:r}=_u(),o=_a(t,n,r),i=nr();if(o.fullPath===i.fullPath)return;let s=await Ka(o,i);if(s===!1){Va({[ki]:er},qa(i),!0),je.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Kt(s,{replace:!0});return}Si();let a=e.state,l=a&&a[ki]||le("rota");er=l,Wa(o),Ya(o,i,(c=qu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,nr(),i),je.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function Mi(e){Bh(e)}function Yu(){Ti||typeof window=="undefined"||(Ti=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",Mi),U.mode==="hash"&&window.addEventListener("hashchange",Mi),window.addEventListener("beforeunload",Si))}function jh(){!Ti||typeof window=="undefined"||(Ti=!1,window.removeEventListener("popstate",Mi),window.removeEventListener("hashchange",Mi),window.removeEventListener("beforeunload",Si),za=!1,Li=!1)}async function qh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=_u(),r=nr(),o=_a(e,t,n);for(let s=0;;s++){if(s>ju){X("Router: too many redirects in the initial route.");return}let a=await Ka(o,r);if(a===!1)return;if(typeof a=="string"){o=tr(a);continue}break}er=le("rota"),Va({[ki]:er},qa(o),!0),Wa(o),o.hash&&Ya(o,r,null),(i=U.afterEach)==null||i.call(U,nr(),r)}function Vh(e,t){let n=Ku(e,t),r=ht.findIndex(o=>o.pattern===n.pattern);r>-1?ht.splice(r,1,n):ht.push(n)}function Uh(e){let t=e==="*"?"*":Gr(e),n=ht.findIndex(r=>r.pattern===t);n>-1&&ht.splice(n,1)}function _h(){return[...ht].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function Wh(e){e?Ei.delete(e):Ei.clear()}function Kh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Gr((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,ht.length=0;for(let[u,f]of Object.entries((d=e.routes)!=null?d:{}))ht.push(Ku(u,f));return Vu=!0,Yu(),qh(),Qr}var Yh={get current(){return ue},push:(e,t={})=>Kt(e,t),replace:(e,t={})=>Kt(e,{...t,replace:!0}),navigate:Kt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:tr,addRoute:Vh,removeRoute:Uh,patterns:_h,stop:jh,clearViewCache:Wh,get ready(){return Vu}},Qr=Object.defineProperties(Kh,Object.getOwnPropertyDescriptors(Yh));N("$route",()=>ue);N("$router",()=>Qr);async function Xh(e){let t=Ei.get(e);if(t!==void 0)return t;let n=await he.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return Ei.set(e,r),r}function Gh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{Go(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))G(u);e.textContent=""},c=(u,f)=>{if(l(),u!=null&&u.component){let p=document.createElement("div");p.setAttribute(`${w.prefix}component`,u.component),p.className="v-router-page",e.appendChild(p),ne(p,t);return}e.innerHTML=f!=null?f:i;for(let p of Array.from(e.childNodes))ne(p,t)},d=async(u,f)=>{let p=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{p=await Xh(u.view)}catch(m){W(m,`v-router-view loading "${u.view}"`),p=""}finally{e.classList.remove("v-router-loading")}if(f!==a)return}s?gi(()=>c(u,p)):c(u,p)};r(()=>{let u=ue.matched;Gh(ue.params);let f=Ua(u);d(f,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var Qh=/^[a-z][a-z0-9+.-]*:/i;function zu(e){return!!(!e||e.startsWith("//")||Qh.test(e))}function Bu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ba(e,t){let{path:n}=ja(e);return n==="/"||t?ue.path===n:ue.path===n||ue.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=Bu(e,t,i);d&&(zu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Kt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=Bu(e,t,i);if(!l||zu(l))return;let c=Ba(l,!0),d=c||Ba(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ba(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});de();ce();var Jh="voodoo:locale",z=Y({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),rr=Jh,or="",Xa=new Map;function Ci(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function Ai(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var Xu=new Map;function Zh(e,t){try{let n=Xu.get(e);return n||Xu.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var eg=["zero","one","two","few","many","other"];function tg(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=Zh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=eg.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var ng=/\{\s*([\w.$-]+)\s*\}/g;function rg(e,t){return e.indexOf("{")===-1?e:e.replace(ng,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function og(e){return e==null?{}:typeof e=="number"?{n:e}:e}function ir(e,t){var i,s;if(!e)return"";let n=og(t),r=z.locale,o=null;for(let a of Ai(r))if(o=Ci(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of Ai(z.fallback))if(o=Ci(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=tg(l,Number.isNaN(a)?0:a,r)}return rg(o,n)}function ig(e,t){let n=t!=null?t:z.locale;for(let r of Ai(n))if(Ci(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of Ai(z.fallback))if(Ci(r,e)!==null)return!0}return!1}function Gu(e,t={}){return xa(e,{...t,locale:z.locale})}function Qu(e,t){return ya(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Ju(e,t="short"){return wa(e,t,z.locale)}function Zu(e){return ka(e,z.locale)}function $i(){return z.locale}function sg(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function Ri(e,t){let n=z.messages[e];return n?oi(n,t):z.messages[e]=t,e}async function Ga(e,t){if(typeof t!="string"){Ri(e,t);return}let n=Xa.get(e);if(n)return n;let r=he.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&Ri(e,o)}).catch(o=>{W(o,`i18n ao carregar "${t}"`)}).finally(()=>{Xa.delete(e)});return Xa.set(e,r),r}function Jr(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,si(t,z.currency),rr&&fe.set(rr,t),typeof document!="undefined"&&(document.documentElement.lang=t),je.emit("locale",{from:n,to:t}),!z.messages[t]&&or?Ga(t,or.replace("{locale}",t)):Promise.resolve()}function ef(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function ag(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))Ri(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,or=(a=e.loadPath)!=null?a:or,e.persist===!1?rr=null:typeof e.persist=="string"&&(rr=e.persist);let t=rr?fe.get(rr):void 0,n=e.detect===!1?null:ef(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,si(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&or&&Ga(r,or.replace("{locale}",r)),Zr}var lg={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:ir,te:ig,n:Gu,c:Qu,d:Ju,rt:Zu,setLocale:Jr,getLocale:$i,addMessages:Ri,loadMessages:Ga,messagesOf:sg,detectLocale:ef},Zr=Object.defineProperties(ag,Object.getOwnPropertyDescriptors(lg));N("$t",()=>ir);N("$locale",()=>z.locale);N("$i18n",()=>Zr);N("$n",()=>Gu);N("$c",()=>Qu);N("$d",()=>Ju);N("$rt",()=>Zu);var cg=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function dg(e,t){let n=e.trim();if(!n)return"";if(cg.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function ug(e,t){var o;let n=(o=Te(e,`${w.prefix}t-params`))!=null?o:Te(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=dg(n,o);if(!i)return;let s=ir(i,ug(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&Jr(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});de();ce();Ae();Ae();ce();var Qa=new WeakMap;function Xt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function Di(e,t){return zt(e,`${w.prefix}${t}`)||zt(e,`data-v-${t}`)}function ee(e,t){let n=Qa.get(e);return n&&t in n?n[t]:Xt(e,t)}function Pi(e,t,n){var o;let r=(o=Qa.get(e))!=null?o:{};r[t]=n,Qa.set(e,r)}function K(e){y(e,({el:t,expression:n})=>{Pi(t,e,n)},{priority:j.BIND})}function pe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var fg=`
|
|
138
|
+
`)}))}function kh(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 Eh({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||kh(e),[o,...i]=r.split(/[.\s]+/),s=Q((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=Q((u=V(e,"debounce"))!=null?u:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=Ye(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var Th=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Th)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{Eh({el:n,scope:r,cleanup:i,run:a=>{let l=Yr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),f=u?q(u,r,"v-params"):void 0;Kr({el:n,scope:r,method:t,url:l,body:d,params:f,event:a})}})});function Yr(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=Yr(n,t);r&&Kr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Yr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Kr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Kr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,f;let o=e,i=Yr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=Q((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((f=V(e,"min-length"))!=null?f:0),c=Ye(()=>{let p=o.value.trim();p.length<l||Kr({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=hi(()=>Yr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:Q((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:Q((d=V(e,"timeout"))!=null?d:void 0,he.defaults.timeout),jsonPath:V(e,"json-path"),poll:Q((u=V(e,"poll"))!=null?u:void 0,0),manual:Ha(e,"manual"),onSuccess:f=>Zn(e,"voodoo:success",{data:f}),onError:(f,p)=>Zn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:j.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])y(e,()=>{},{priority:j.TRANSITION});Td(Hd);Pd(Bt);Bd(Mu);ru();au();var Xr=new Map;function Lu(e,t){let n=Xr.get(e);return n||Xr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Lh(e,t){let n=Lu(e,r=>{n(),t(r)});return n}function Mh(e,t){let n=Xr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){W(o,`event "${e}"`)}}function Sh(e,t){var n;if(!t){Xr.delete(e);return}(n=Xr.get(e))==null||n.delete(t)}function Mu(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(h=n.updated)==null||h.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Ch(e){return Object.defineProperties(Ke.data,Object.getOwnPropertyDescriptors(e)),Ke.data}var Ah="0.12.3",yi={...Ea,version:Ah,config:w,reactive:Y,ref:Ge,shallowRef:_s,computed:an,effect:Pe,watch:Ie,watchEffect:Ks,nextTick:ft,toRaw:Me,markRaw:Rr,unref:Ws,stop:Pn,effectScope:js,EffectScope:ot,flushSync:Fs,data:Ch,store:ti,stores:$t,removeStore:Ud,storeNames:ni,scope:Ke,component:jt,components:He,directive:Mu,directives:Mt,magic:N,magics:Pr,createApp:jd,start:Ad,whenReady:Fr,whenElement:Zo,walk:ne,refresh:$d,destroy:G,stopObserving:Rd,getScope:it,findScope:Ce,addCleanup:Be,parseAttribute:Fn,parse:ze,tokenize:jo,evaluate:P,evaluateIn:q,stringify:Lt,clearParseCache:ed,globals:Oe,http:he,request:Vt,HttpError:Ee,resource:hi,toast:st,storage:fe,session:di,cookie:ui,cache:fi,url:_t,theme:mt,clipboard:mi,screen:Qe,network:Wt,enter:_r,leave:Wr,fadeIn:Qn,fadeOut:Jn,slideUp:mn,slideDown:pn,viewTransition:gi,injectStyle:Z,ensureTokens:ge,on:Lu,once:Lh,off:Sh,emit:Mh,use(e,t){Uo(yi,e,t)},onError(e){Is(e)},instances:Rt,Scope:St,PRIORITY:j,VoodooSyntaxError:te,VoodooRuntimeError:xe};Vd(yi);de();var Rh=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 Nu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function at(e){return e.length<2?e:Array.from(new Set(e))}function vn(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Na(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 Ou(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function $h(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof vt)return e.toArray();if(typeof e=="string")return hn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=hn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function hn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Ou(o))return Na(o);let i=[];for(let s of $h(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return at(i)}if(e instanceof vt)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return at(o)}return[]}function Su(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Ou(r.trim())?Na(r):[document.createTextNode(r)]}if(e instanceof vt)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function xi(e,t,n){let r=Nu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Rh.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Dh(e,t){for(let[n,r]of Object.entries(t))xi(e,n,r)}function Cu(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 Au(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Fu=new WeakMap;function Ru(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function $u(e){e.removeAttribute("hidden");let t=Fu.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 Du(e){let t=e.style.display;t&&t!=="none"&&Fu.set(e,t),e.style.display="none"}var Pu="input,select,textarea";function Hu(e){return e.matches(Pu)?[e]:Array.from(e.querySelectorAll(Pu))}function Ph(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 wi=new WeakMap;function Hh(e){let t=wi.get(e);return t||wi.set(e,t=[]),t}var vt=class e{constructor(t=[]){H(this,"length");H(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(at(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(at(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(at(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(at(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(at(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(at([...this.elements,...hn(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))G(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))G(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=vn(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=Cu(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Au(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Au(String(n));if(t.length<2){let i=this.elements[0];return i?Cu(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)Dh(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Nu(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)xi(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)xi(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)xi(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=vn(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=vn(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of Su(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=hn(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=hn(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Su(t))r.insertBefore(o,n);G(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=hn(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);G(n),n.remove()}}return this}remove(){for(let t of this.elements)G(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))G(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of vn(t)){let d=u=>{if(!o){i.call(l,u);return}let f=u.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,u)};l.addEventListener(c,d,s),Hh(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?vn(t):null;for(let a of this.elements){let l=wi.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),f=o===null||d.selector===o,p=i===null||d.handler===i;u&&f&&p?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}wi.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)$u(t);return this}hide(){for(let t of this.elements)Du(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Ru(n):t)?$u(n):Du(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Qn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Jn(n,t);return this}slideUp(t=240){for(let n of this.elements)mn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),pn(n,t);return this}slideToggle(t=240){for(let n of this.elements)Ru(n)?(n.removeAttribute("hidden"),pn(n,t)):mn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Hu(t)){if(!Ph(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 Hu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(p):n[u]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[u]=p:n[u]=[m,p];continue}n[u]=p}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&G(n),ne(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)G(t);return this}};function Oa(e,t){if(typeof e=="function"){Fa(e);let n=typeof document!="undefined"?document.documentElement:null;return new vt(n?[n]:[])}return new vt(hn(e,t))}function Fa(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{zd(()=>{try{e==null||e()}catch(n){W(n,"V.ready")}t()})})}function Iu(e){return new vt(Na(e))}de();ce();var gn=new Map,je={emit(e,t){let n=gn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=gn.get(e);return n||gn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=gn.get(e))==null||n.delete(t)},clear(e){e?gn.delete(e):gn.clear()},count(e){var t,n;return(n=(t=gn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ki="__voodooRoute",ju=10,ht=[],qu=new Map,Ei=new Map,er="inicial",Ti=!1,Vu=!1;function Nh(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ue=Y(Nh());function Gr(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Uu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function Oh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function ja(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=Uu(t.slice(i+1)),t=t.slice(0,i)),{path:Gr(t),query:o,hash:n}}function Fh(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function _u(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?ja(window.location.hash.slice(1)||"/"):{path:Gr(Fh(window.location.pathname)),query:Uu(window.location.search),hash:window.location.hash.slice(1)}}function Wu(e,t,n){let r=Oh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function qa(e){let t=Wu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var za=!1,Li=!1;function Va(e,t,n){if(!za)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;za=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){Li=!0;try{window.location.hash=o}finally{setTimeout(()=>{Li=!1},0)}}}function Ku(e,t){let n=e==="*"?"*":Gr(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function Ih(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ia).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ia(i)!==o.value)return null;r++;continue}n[o.value]=Ia(i),r++}return r===t.length?n:null}function Ia(e){try{return decodeURIComponent(e)}catch(t){return e}}function zh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of ht){let o=Ih(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ua(e){var t,n;return e&&(n=(t=ht.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function tr(e){let{path:t,query:n,hash:r}=ja(e);return _a(t,n,r)}function _a(e,t,n){var o,i;let r=zh(e);return{path:e,fullPath:Wu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function nr(){return{path:ue.path,fullPath:ue.fullPath,params:{...ue.params},query:{...ue.query},hash:ue.hash,name:ue.name,meta:ue.meta,matched:ue.matched}}function Wa(e){ue.path=e.path,ue.fullPath=e.fullPath,ue.params=e.params,ue.query=e.query,ue.hash=e.hash,ue.name=e.name,ue.meta=e.meta,ue.matched=e.matched;let t=Ua(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ka(e,t){let n=Ua(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function Si(){typeof window!="undefined"&&qu.set(er,window.scrollY)}function Ya(e,t,n){typeof window!="undefined"&&Se(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Kt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Yu();let n=nr(),r=tr(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>ju)return X(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ka(r,n);if(d===!1)return je.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=tr(d);continue}break}Si();let o=le("rota"),i={...(a=t.state)!=null?a:{},[ki]:o},s=qa(r);return Va(i,s,t.replace===!0),er=o,Wa(r),t.scroll!==!1&&Ya(r,n,null),(l=U.afterEach)==null||l.call(U,nr(),n),je.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function Bh(e){var c,d;if(Li)return;let{path:t,query:n,hash:r}=_u(),o=_a(t,n,r),i=nr();if(o.fullPath===i.fullPath)return;let s=await Ka(o,i);if(s===!1){Va({[ki]:er},qa(i),!0),je.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Kt(s,{replace:!0});return}Si();let a=e.state,l=a&&a[ki]||le("rota");er=l,Wa(o),Ya(o,i,(c=qu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,nr(),i),je.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function Mi(e){Bh(e)}function Yu(){Ti||typeof window=="undefined"||(Ti=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",Mi),U.mode==="hash"&&window.addEventListener("hashchange",Mi),window.addEventListener("beforeunload",Si))}function jh(){!Ti||typeof window=="undefined"||(Ti=!1,window.removeEventListener("popstate",Mi),window.removeEventListener("hashchange",Mi),window.removeEventListener("beforeunload",Si),za=!1,Li=!1)}async function qh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=_u(),r=nr(),o=_a(e,t,n);for(let s=0;;s++){if(s>ju){X("Router: too many redirects in the initial route.");return}let a=await Ka(o,r);if(a===!1)return;if(typeof a=="string"){o=tr(a);continue}break}er=le("rota"),Va({[ki]:er},qa(o),!0),Wa(o),o.hash&&Ya(o,r,null),(i=U.afterEach)==null||i.call(U,nr(),r)}function Vh(e,t){let n=Ku(e,t),r=ht.findIndex(o=>o.pattern===n.pattern);r>-1?ht.splice(r,1,n):ht.push(n)}function Uh(e){let t=e==="*"?"*":Gr(e),n=ht.findIndex(r=>r.pattern===t);n>-1&&ht.splice(n,1)}function _h(){return[...ht].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function Wh(e){e?Ei.delete(e):Ei.clear()}function Kh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Gr((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,ht.length=0;for(let[u,f]of Object.entries((d=e.routes)!=null?d:{}))ht.push(Ku(u,f));return Vu=!0,Yu(),qh(),Qr}var Yh={get current(){return ue},push:(e,t={})=>Kt(e,t),replace:(e,t={})=>Kt(e,{...t,replace:!0}),navigate:Kt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:tr,addRoute:Vh,removeRoute:Uh,patterns:_h,stop:jh,clearViewCache:Wh,get ready(){return Vu}},Qr=Object.defineProperties(Kh,Object.getOwnPropertyDescriptors(Yh));N("$route",()=>ue);N("$router",()=>Qr);async function Xh(e){let t=Ei.get(e);if(t!==void 0)return t;let n=await he.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return Ei.set(e,r),r}function Gh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{Go(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))G(u);e.textContent=""},c=(u,f)=>{if(l(),u!=null&&u.component){let p=document.createElement("div");p.setAttribute(`${w.prefix}component`,u.component),p.className="v-router-page",e.appendChild(p),ne(p,t);return}e.innerHTML=f!=null?f:i;for(let p of Array.from(e.childNodes))ne(p,t)},d=async(u,f)=>{let p=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{p=await Xh(u.view)}catch(m){W(m,`v-router-view loading "${u.view}"`),p=""}finally{e.classList.remove("v-router-loading")}if(f!==a)return}s?gi(()=>c(u,p)):c(u,p)};r(()=>{let u=ue.matched;Gh(ue.params);let f=Ua(u);d(f,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var Qh=/^[a-z][a-z0-9+.-]*:/i;function zu(e){return!!(!e||e.startsWith("//")||Qh.test(e))}function Bu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ba(e,t){let{path:n}=ja(e);return n==="/"||t?ue.path===n:ue.path===n||ue.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=Bu(e,t,i);d&&(zu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Kt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=Bu(e,t,i);if(!l||zu(l))return;let c=Ba(l,!0),d=c||Ba(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ba(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});de();ce();var Jh="voodoo:locale",z=Y({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),rr=Jh,or="",Xa=new Map;function Ci(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function Ai(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var Xu=new Map;function Zh(e,t){try{let n=Xu.get(e);return n||Xu.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var eg=["zero","one","two","few","many","other"];function tg(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=Zh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=eg.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var ng=/\{\s*([\w.$-]+)\s*\}/g;function rg(e,t){return e.indexOf("{")===-1?e:e.replace(ng,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function og(e){return e==null?{}:typeof e=="number"?{n:e}:e}function ir(e,t){var i,s;if(!e)return"";let n=og(t),r=z.locale,o=null;for(let a of Ai(r))if(o=Ci(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of Ai(z.fallback))if(o=Ci(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=tg(l,Number.isNaN(a)?0:a,r)}return rg(o,n)}function ig(e,t){let n=t!=null?t:z.locale;for(let r of Ai(n))if(Ci(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of Ai(z.fallback))if(Ci(r,e)!==null)return!0}return!1}function Gu(e,t={}){return xa(e,{...t,locale:z.locale})}function Qu(e,t){return ya(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Ju(e,t="short"){return wa(e,t,z.locale)}function Zu(e){return ka(e,z.locale)}function $i(){return z.locale}function sg(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function Ri(e,t){let n=z.messages[e];return n?oi(n,t):z.messages[e]=t,e}async function Ga(e,t){if(typeof t!="string"){Ri(e,t);return}let n=Xa.get(e);if(n)return n;let r=he.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&Ri(e,o)}).catch(o=>{W(o,`i18n ao carregar "${t}"`)}).finally(()=>{Xa.delete(e)});return Xa.set(e,r),r}function Jr(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,si(t,z.currency),rr&&fe.set(rr,t),typeof document!="undefined"&&(document.documentElement.lang=t),je.emit("locale",{from:n,to:t}),!z.messages[t]&&or?Ga(t,or.replace("{locale}",t)):Promise.resolve()}function ef(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function ag(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))Ri(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,or=(a=e.loadPath)!=null?a:or,e.persist===!1?rr=null:typeof e.persist=="string"&&(rr=e.persist);let t=rr?fe.get(rr):void 0,n=e.detect===!1?null:ef(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,si(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&or&&Ga(r,or.replace("{locale}",r)),Zr}var lg={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:ir,te:ig,n:Gu,c:Qu,d:Ju,rt:Zu,setLocale:Jr,getLocale:$i,addMessages:Ri,loadMessages:Ga,messagesOf:sg,detectLocale:ef},Zr=Object.defineProperties(ag,Object.getOwnPropertyDescriptors(lg));N("$t",()=>ir);N("$locale",()=>z.locale);N("$i18n",()=>Zr);N("$n",()=>Gu);N("$c",()=>Qu);N("$d",()=>Ju);N("$rt",()=>Zu);var cg=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function dg(e,t){let n=e.trim();if(!n)return"";if(cg.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function ug(e,t){var o;let n=(o=Te(e,`${w.prefix}t-params`))!=null?o:Te(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=dg(n,o);if(!i)return;let s=ir(i,ug(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&Jr(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});de();ce();Ae();Ae();ce();var Qa=new WeakMap;function Xt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function Di(e,t){return zt(e,`${w.prefix}${t}`)||zt(e,`data-v-${t}`)}function ee(e,t){let n=Qa.get(e);return n&&t in n?n[t]:Xt(e,t)}function Pi(e,t,n){var o;let r=(o=Qa.get(e))!=null?o:{};r[t]=n,Qa.set(e,r)}function K(e){y(e,({el:t,expression:n})=>{Pi(t,e,n)},{priority:j.BIND})}function pe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var fg=`
|
|
139
139
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
140
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
141
|
`,Yt=null;function Je(e){if(typeof document=="undefined")return;Z("ui-live",fg),(!Yt||!Yt.isConnected)&&(Yt=document.createElement("div"),Yt.className="v-visually-hidden",Yt.setAttribute("role","status"),Yt.setAttribute("aria-live","polite"),document.body.appendChild(Yt));let t=Yt;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Hi(e,t,n){return Xo(e,t).filter(r=>zn(r,n)===e)}Ae();ce();var pg=`
|
package/dist/voodoo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.3
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -7124,7 +7124,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
7124
7124
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
7125
7125
|
return rootScope.data;
|
|
7126
7126
|
}
|
|
7127
|
-
var version2 = "0.12.
|
|
7127
|
+
var version2 = "0.12.3";
|
|
7128
7128
|
var core = {
|
|
7129
7129
|
// Utilities first: Voodoo's own names can override.
|
|
7130
7130
|
...utils_exports,
|
package/dist/voodoo.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.3
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -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 cf(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function uf({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||cf(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=_((d=D(e,"debounce"))!=null?d:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=we(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var df=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of df)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{uf({el:n,scope:r,cleanup:i,run:a=>{let l=jn(o,r);if(!l)return;let c=D(n,"body")||D(n,"data-body"),u=c?O(c,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),f=d?O(d,r,"v-params"):void 0;In({el:n,scope:r,method:t,url:l,body:u,params:f,event:a})}})});function jn(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=jn(n,t);r&&In({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=jn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){In({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),In({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,f;let o=e,i=jn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),l=Number((f=D(e,"min-length"))!=null?f:0),c=we(()=>{let p=o.value.trim();p.length<l||In({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),u=()=>c();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),c.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=Pr(()=>jn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((l=D(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=D(e,"retry"))!=null?c:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:Li(e,"manual"),onSuccess:f=>dn(e,"voodoo:success",{data:f}),onError:(f,p)=>dn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:P.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])b(e,()=>{},{priority:P.TRANSITION});wa(Ma);Sa(it);Na(Tl);Za();rl();var Bn=new Map;function xl(e,t){let n=Bn.get(e);return n||Bn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ff(e,t){let n=xl(e,r=>{n(),t(r)});return n}function pf(e,t){let n=Bn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){q(o,`event "${e}"`)}}function mf(e,t){var n;if(!t){Bn.delete(e);return}(n=Bn.get(e))==null||n.delete(t)}function Tl(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,l(c)),(d=n.beforeMount)==null||d.call(n,i.el,l(c)),i.effect(()=>{var m,v;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(v=n.updated)==null||v.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function gf(e){return Object.defineProperties(je.data,Object.getOwnPropertyDescriptors(e)),je.data}var vf="0.12.2",Or={...pi,version:vf,config:E,reactive:V,ref:Te,shallowRef:jo,computed:wt,effect:ve,watch:he,watchEffect:qo,nextTick:bt,toRaw:ie,markRaw:kn,unref:Bo,stop:Ut,effectScope:Oo,EffectScope:Re,flushSync:Ho,data:gf,store:Tr,stores:St,removeStore:Ia,storeNames:ja,scope:je,component:Jt,components:ce,directive:Tl,directives:Ge,magic:H,magics:Sn,createApp:Oa,start:Ta,whenReady:Rn,whenElement:Er,walk:W,refresh:La,destroy:U,stopObserving:ka,getScope:Yt,findScope:De,addCleanup:ke,parseAttribute:Kt,parse:He,tokenize:dr,evaluate:M,evaluateIn:O,stringify:Qe,clearParseCache:Ys,globals:pe,http:me,request:at,HttpError:re,resource:Pr,toast:Pe,storage:G,session:Mr,cookie:Cr,cache:Rr,url:ct,theme:qe,clipboard:bi,screen:Ne,network:Rt,enter:Fn,leave:$n,fadeIn:cn,fadeOut:un,slideUp:Dt,slideDown:Ht,viewTransition:ll,injectStyle:Q,ensureTokens:se,on:xl,once:ff,off:mf,emit:pf,use(e,t){pr(Or,e,t)},onError(e){Do(e)},instances:br,Scope:xt,PRIORITY:P,VoodooSyntaxError:z,VoodooRuntimeError:J};$a(Or);X();var hf=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function Dl(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Oe(e){return e.length<2?e:Array.from(new Set(e))}function Pt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Ai(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function Pl(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function yf(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ze)return e.toArray();if(typeof e=="string")return Nt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Nt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Nt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Pl(o))return Ai(o);let i=[];for(let s of yf(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Oe(i)}if(e instanceof ze)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return Oe(o)}return[]}function kl(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Pl(r.trim())?Ai(r):[document.createTextNode(r)]}if(e instanceof ze)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function Fr(e,t,n){let r=Dl(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!hf.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function bf(e,t){for(let[n,r]of Object.entries(t))Fr(e,n,r)}function Ll(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function Al(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Nl=new WeakMap;function Sl(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Ml(e){e.removeAttribute("hidden");let t=Nl.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function Cl(e){let t=e.style.display;t&&t!=="none"&&Nl.set(e,t),e.style.display="none"}var Rl="input,select,textarea";function Hl(e){return e.matches(Rl)?[e]:Array.from(e.querySelectorAll(Rl))}function wf(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var $r=new WeakMap;function Ef(e){let t=$r.get(e);return t||$r.set(e,t=[]),t}var ze=class e{constructor(t=[]){S(this,"length");S(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(Oe(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Oe(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(Oe(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(Oe(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(Oe(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(Oe(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Oe(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Oe(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(Oe([...this.elements,...Nt(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))U(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))U(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=Pt(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=Ll(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Al(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Al(String(n));if(t.length<2){let i=this.elements[0];return i?Ll(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)bf(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Dl(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Fr(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)Fr(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)Fr(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Pt(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=Pt(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of kl(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=Nt(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=Nt(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of kl(t))r.insertBefore(o,n);U(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Nt(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);U(n),n.remove()}}return this}remove(){for(let t of this.elements)U(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))U(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of Pt(t)){let u=d=>{if(!o){i.call(l,d);return}let f=d.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,d)};l.addEventListener(c,u,s),Ef(l).push({type:c,selector:o,handler:i,wrapped:u,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Pt(t):null;for(let a of this.elements){let l=$r.get(a);if(!l)continue;let c=[];for(let u of l){let d=!s||s.includes(u.type),f=o===null||u.selector===o,p=i===null||u.handler===i;d&&f&&p?a.removeEventListener(u.type,u.wrapped,u.options):c.push(u)}$r.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)Ml(t);return this}hide(){for(let t of this.elements)Cl(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Sl(n):t)?Ml(n):Cl(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)un(n,t);return this}slideUp(t=240){for(let n of this.elements)Dt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ht(n,t);return this}slideToggle(t=240){for(let n of this.elements)Sl(n)?(n.removeAttribute("hidden"),Ht(n,t)):Dt(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Hl(t)){if(!wf(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of Hl(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let u=l.name.endsWith("[]"),d=u?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(u){let m=n[d];Array.isArray(m)?m.push(p):n[d]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[d]=p:n[d]=[m,p];continue}n[d]=p}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&U(n),W(n,De(n.parentNode));return this}destroy(){for(let t of this.elements)U(t);return this}};function Si(e,t){if(typeof e=="function"){Mi(e);let n=typeof document!="undefined"?document.documentElement:null;return new ze(n?[n]:[])}return new ze(Nt(e,t))}function Mi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Pa(()=>{try{e==null||e()}catch(n){q(n,"V.ready")}t()})})}function Ol(e){return new ze(Ai(e))}X();ee();Ee();Ee();ee();var Ci=new WeakMap;function dt(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Ir(e,t){return ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`)}function j(e,t){let n=Ci.get(e);return n&&t in n?n[t]:dt(e,t)}function jr(e,t,n){var o;let r=(o=Ci.get(e))!=null?o:{};r[t]=n,Ci.set(e,r)}function F(e){b(e,({el:t,expression:n})=>{jr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ue(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var xf=`
|
|
138
|
+
`)}))}function cf(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function uf({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||cf(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=_((d=D(e,"debounce"))!=null?d:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=we(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var df=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of df)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{uf({el:n,scope:r,cleanup:i,run:a=>{let l=jn(o,r);if(!l)return;let c=D(n,"body")||D(n,"data-body"),u=c?O(c,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),f=d?O(d,r,"v-params"):void 0;In({el:n,scope:r,method:t,url:l,body:u,params:f,event:a})}})});function jn(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=jn(n,t);r&&In({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=jn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){In({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),In({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,f;let o=e,i=jn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),l=Number((f=D(e,"min-length"))!=null?f:0),c=we(()=>{let p=o.value.trim();p.length<l||In({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),u=()=>c();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),c.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=Pr(()=>jn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((l=D(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=D(e,"retry"))!=null?c:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:Li(e,"manual"),onSuccess:f=>dn(e,"voodoo:success",{data:f}),onError:(f,p)=>dn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:P.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])b(e,()=>{},{priority:P.TRANSITION});wa(Ma);Sa(it);Na(Tl);Za();rl();var Bn=new Map;function xl(e,t){let n=Bn.get(e);return n||Bn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ff(e,t){let n=xl(e,r=>{n(),t(r)});return n}function pf(e,t){let n=Bn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){q(o,`event "${e}"`)}}function mf(e,t){var n;if(!t){Bn.delete(e);return}(n=Bn.get(e))==null||n.delete(t)}function Tl(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,l(c)),(d=n.beforeMount)==null||d.call(n,i.el,l(c)),i.effect(()=>{var m,v;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(v=n.updated)==null||v.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function gf(e){return Object.defineProperties(je.data,Object.getOwnPropertyDescriptors(e)),je.data}var vf="0.12.3",Or={...pi,version:vf,config:E,reactive:V,ref:Te,shallowRef:jo,computed:wt,effect:ve,watch:he,watchEffect:qo,nextTick:bt,toRaw:ie,markRaw:kn,unref:Bo,stop:Ut,effectScope:Oo,EffectScope:Re,flushSync:Ho,data:gf,store:Tr,stores:St,removeStore:Ia,storeNames:ja,scope:je,component:Jt,components:ce,directive:Tl,directives:Ge,magic:H,magics:Sn,createApp:Oa,start:Ta,whenReady:Rn,whenElement:Er,walk:W,refresh:La,destroy:U,stopObserving:ka,getScope:Yt,findScope:De,addCleanup:ke,parseAttribute:Kt,parse:He,tokenize:dr,evaluate:M,evaluateIn:O,stringify:Qe,clearParseCache:Ys,globals:pe,http:me,request:at,HttpError:re,resource:Pr,toast:Pe,storage:G,session:Mr,cookie:Cr,cache:Rr,url:ct,theme:qe,clipboard:bi,screen:Ne,network:Rt,enter:Fn,leave:$n,fadeIn:cn,fadeOut:un,slideUp:Dt,slideDown:Ht,viewTransition:ll,injectStyle:Q,ensureTokens:se,on:xl,once:ff,off:mf,emit:pf,use(e,t){pr(Or,e,t)},onError(e){Do(e)},instances:br,Scope:xt,PRIORITY:P,VoodooSyntaxError:z,VoodooRuntimeError:J};$a(Or);X();var hf=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function Dl(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Oe(e){return e.length<2?e:Array.from(new Set(e))}function Pt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Ai(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function Pl(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function yf(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ze)return e.toArray();if(typeof e=="string")return Nt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Nt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Nt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Pl(o))return Ai(o);let i=[];for(let s of yf(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Oe(i)}if(e instanceof ze)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return Oe(o)}return[]}function kl(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Pl(r.trim())?Ai(r):[document.createTextNode(r)]}if(e instanceof ze)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function Fr(e,t,n){let r=Dl(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!hf.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function bf(e,t){for(let[n,r]of Object.entries(t))Fr(e,n,r)}function Ll(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function Al(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Nl=new WeakMap;function Sl(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Ml(e){e.removeAttribute("hidden");let t=Nl.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function Cl(e){let t=e.style.display;t&&t!=="none"&&Nl.set(e,t),e.style.display="none"}var Rl="input,select,textarea";function Hl(e){return e.matches(Rl)?[e]:Array.from(e.querySelectorAll(Rl))}function wf(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var $r=new WeakMap;function Ef(e){let t=$r.get(e);return t||$r.set(e,t=[]),t}var ze=class e{constructor(t=[]){S(this,"length");S(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(Oe(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Oe(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(Oe(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(Oe(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(Oe(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(Oe(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Oe(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Oe(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(Oe([...this.elements,...Nt(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))U(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))U(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=Pt(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=Ll(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Al(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Al(String(n));if(t.length<2){let i=this.elements[0];return i?Ll(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)bf(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Dl(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Fr(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)Fr(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)Fr(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Pt(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=Pt(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of kl(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=Nt(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=Nt(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of kl(t))r.insertBefore(o,n);U(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Nt(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);U(n),n.remove()}}return this}remove(){for(let t of this.elements)U(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))U(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of Pt(t)){let u=d=>{if(!o){i.call(l,d);return}let f=d.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,d)};l.addEventListener(c,u,s),Ef(l).push({type:c,selector:o,handler:i,wrapped:u,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Pt(t):null;for(let a of this.elements){let l=$r.get(a);if(!l)continue;let c=[];for(let u of l){let d=!s||s.includes(u.type),f=o===null||u.selector===o,p=i===null||u.handler===i;d&&f&&p?a.removeEventListener(u.type,u.wrapped,u.options):c.push(u)}$r.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)Ml(t);return this}hide(){for(let t of this.elements)Cl(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Sl(n):t)?Ml(n):Cl(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)un(n,t);return this}slideUp(t=240){for(let n of this.elements)Dt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ht(n,t);return this}slideToggle(t=240){for(let n of this.elements)Sl(n)?(n.removeAttribute("hidden"),Ht(n,t)):Dt(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Hl(t)){if(!wf(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of Hl(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let u=l.name.endsWith("[]"),d=u?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(u){let m=n[d];Array.isArray(m)?m.push(p):n[d]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[d]=p:n[d]=[m,p];continue}n[d]=p}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&U(n),W(n,De(n.parentNode));return this}destroy(){for(let t of this.elements)U(t);return this}};function Si(e,t){if(typeof e=="function"){Mi(e);let n=typeof document!="undefined"?document.documentElement:null;return new ze(n?[n]:[])}return new ze(Nt(e,t))}function Mi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Pa(()=>{try{e==null||e()}catch(n){q(n,"V.ready")}t()})})}function Ol(e){return new ze(Ai(e))}X();ee();Ee();Ee();ee();var Ci=new WeakMap;function dt(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Ir(e,t){return ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`)}function j(e,t){let n=Ci.get(e);return n&&t in n?n[t]:dt(e,t)}function jr(e,t,n){var o;let r=(o=Ci.get(e))!=null?o:{};r[t]=n,Ci.set(e,r)}function F(e){b(e,({el:t,expression:n})=>{jr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ue(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var xf=`
|
|
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
|
`,ut=null;function Ae(e){if(typeof document=="undefined")return;Q("ui-live",xf),(!ut||!ut.isConnected)&&(ut=document.createElement("div"),ut.className="v-visually-hidden",ut.setAttribute("role","status"),ut.setAttribute("aria-live","polite"),document.body.appendChild(ut));let t=ut;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Br(e,t,n){return hr(e,t).filter(r=>Qt(r,n)===e)}Ee();ee();var Tf=`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voodoojs",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Voodoo.js: the HTML-first JavaScript framework. Build reactive applications directly in HTML: fine-grained reactivity, components, HTTP, forms, validation, router and UI. No mandatory build step, no runtime dependencies, no Virtual DOM, no eval.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|