Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alpinejs

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alpinejs - npm Package Compare versions

Comparing version 3.3.4 to 3.3.5

2

dist/cdn.min.js

@@ -5,2 +5,2 @@ (()=>{var De=!1,Pe=!1,Y=[];function mt(e){Rr(e)}function Rr(e){Y.includes(e)||Y.push(e),Cr()}function Cr(){!Pe&&!De&&(De=!0,queueMicrotask(Mr))}function Mr(){De=!1,Pe=!0;for(let e=0;e<Y.length;e++)Y[e]();Y.length=0,Pe=!1}var w,C,z,Ie,Le=!0;function ht(e){Le=!1,e(),Le=!0}function gt(e){w=e.reactive,z=e.release,C=t=>e.effect(t,{scheduler:r=>{Le?mt(r):r()}}),Ie=e.raw}function $e(e){C=e}function _t(e){let t=()=>{};return[n=>{let i=C(n);e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),z(i))}},()=>{t()}]}var yt=[],xt=[],bt=[];function wt(e){bt.push(e)}function vt(e){xt.push(e)}function Et(e){yt.push(e)}function St(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Fe(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&n.forEach(i=>i()),delete e._x_attributeCleanups[r]})}var je=new MutationObserver(At),Ke=!1;function ze(){je.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ke=!0}function Nr(){je.disconnect(),Ke=!1}var J=[],Ve=!1;function Dr(){J=J.concat(je.takeRecords()),J.length&&!Ve&&(Ve=!0,queueMicrotask(()=>{kr(),Ve=!1}))}function kr(){At(J),J.length=0}function h(e){if(!Ke)return e();Dr(),Nr();let t=e();return ze(),t}function At(e){let t=[],r=[],n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.push(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.push(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,c=e[o].oldValue,l=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(u(),l()):u()}i.forEach((o,s)=>{Fe(s,o)}),n.forEach((o,s)=>{yt.forEach(a=>a(s,o))});for(let o of t)r.includes(o)||bt.forEach(s=>s(o));for(let o of r)t.includes(o)||xt.forEach(s=>s(o));t=null,r=null,n=null,i=null}function V(e,t,r){return e._x_dataStack=[t,...Z(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function He(e,t){let r=e._x_dataStack[0];Object.entries(t).forEach(([n,i])=>{r[n]=i})}function Z(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Z(e.host):e.parentNode?Z(e.parentNode):[]}function Q(e){return new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(t=>Object.keys(t)))),has:(t,r)=>e.some(n=>n.hasOwnProperty(r)),get:(t,r)=>(e.find(n=>n.hasOwnProperty(r))||{})[r],set:(t,r,n)=>{let i=e.find(o=>o.hasOwnProperty(r));return i?i[r]=n:e[e.length-1][r]=n,!0}})}function Ot(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(n).forEach(([o,s])=>{let a=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,a,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,a)})};return r(e)}function pe(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>Pr(n,i),s=>Be(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let c=n.initialize(o,s,a);return r.initialValue=c,i(o,s,a)}}else r.initialValue=n;return r}}function Pr(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Be(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Be(e[t[0]],t.slice(1),r)}}var Tt={};function x(e,t){Tt[e]=t}function X(e,t){return Object.entries(Tt).forEach(([r,n])=>{Object.defineProperty(e,`$${r}`,{get(){return n(t,{Alpine:S,interceptor:pe})},enumerable:!1})}),e}function b(e,t,r={}){let n;return g(e,t)(i=>n=i,r),n}function g(...e){return Rt(...e)}var Rt=qe;function Ct(e){Rt=e}function qe(e,t){let r={};X(r,e);let n=[r,...Z(e)];if(typeof t=="function")return Ir(n,t);let i=Lr(n,t);return $r.bind(null,e,t,i)}function Ir(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(Q([n,...e]),i);me(r,o)}}var Ue={};function Fr(e){if(Ue[e])return Ue[e];let t=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)/.test(e)?`(() => { ${e} })()`:e,n=new t(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Ue[e]=n,n}function Lr(e,t){let r=Fr(t);return(n=()=>{},{scope:i={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let s=Q([i,...e]),a=r(r,s);r.finished?me(n,r.result,s,o):a.then(c=>{me(n,c,s,o)})}}function me(e,t,r,n){if(typeof t=="function"){let i=t.apply(r,n);i instanceof Promise?i.then(o=>me(e,o,r,n)):e(i)}else e(t)}function $r(e,t,r,...n){try{return r(...n)}catch(i){throw console.warn(`Alpine Expression Error: ${i.message}

`,e),i}}var We="x-";function A(e=""){return We+e}function Mt(e){We=e}var Nt={};function p(e,t){Nt[e]=t}function ee(e,t,r){let n={};return Array.from(t).map(kt((o,s)=>n[o]=s)).filter(Dt).map(Kr(n,r)).sort(zr).map(o=>jr(e,o))}function Pt(e){return Array.from(e).map(kt()).filter(t=>!Dt(t))}var Ge=!1,te=new Map,It=Symbol();function Lt(e){Ge=!0;let t=Symbol();It=t,te.set(t,[]);let r=()=>{for(;te.get(t).length;)te.get(t).shift()();te.delete(t)},n=()=>{Ge=!1,r()};e(r),n()}function jr(e,t){let r=()=>{},n=Nt[t.type]||r,i=[],o=d=>i.push(d),[s,a]=_t(e);i.push(a);let c={Alpine:S,effect:s,cleanup:o,evaluateLater:g.bind(g,e),evaluate:b.bind(b,e)},l=()=>i.forEach(d=>d());St(e,t.original,l);let u=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,c),n=n.bind(n,e,t,c),Ge?te.get(It).push(n):n())};return u.runCleanups=l,u}var he=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),ge=e=>e;function kt(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=$t.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var $t=[];function H(e){$t.push(e)}function Dt({name:e}){return Ft().test(e)}var Ft=()=>new RegExp(`^${We}([^:^.]+)\\b`);function Kr(e,t){return({name:r,value:n})=>{let i=r.match(Ft()),o=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var Ye="DEFAULT",_e=["ignore","ref","data","bind","init","for","model","transition","show","if",Ye,"element"];function zr(e,t){let r=_e.indexOf(e.type)===-1?Ye:e.type,n=_e.indexOf(t.type)===-1?Ye:t.type;return _e.indexOf(r)-_e.indexOf(n)}function $(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}var Je=[],Ze=!1;function B(e){Je.push(e),queueMicrotask(()=>{Ze||setTimeout(()=>{ye()})})}function ye(){for(Ze=!1;Je.length;)Je.shift()()}function jt(){Ze=!0}function N(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>N(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)N(n,t,!1),n=n.nextElementSibling}function xe(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function zt(){document.body||xe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),$(document,"alpine:init"),$(document,"alpine:initializing"),ze(),wt(t=>O(t,N)),vt(t=>B(()=>Vr(t))),Et((t,r)=>{ee(t,r).forEach(n=>n())});let e=t=>!k(t.parentElement,!0);Array.from(document.querySelectorAll(Kt())).filter(e).forEach(t=>{O(t)}),$(document,"alpine:initialized")}var Qe=[],Vt=[];function Ht(){return Qe.map(e=>e())}function Kt(){return Qe.concat(Vt).map(e=>e())}function be(e){Qe.push(e)}function Bt(e){Vt.push(e)}function k(e,t=!1){if(!e)return;if((t?Kt():Ht()).some(n=>e.matches(n)))return e;if(!!e.parentElement)return k(e.parentElement,t)}function qt(e){return Ht().some(t=>e.matches(t))}function O(e,t=N){Lt(()=>{t(e,(r,n)=>{ee(r,r.attributes).forEach(i=>i()),r._x_ignore&&n()})})}function Vr(e){N(e,t=>Fe(t))}function we(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function ve(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function Ut(e){e(S)}var q={},Wt=!1;function Gt(e,t){if(Wt||(q=w(q),Wt=!0),t===void 0)return q[e];q[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&q[e].init()}function Yt(){return q}var Xe=!1;function U(e){return(...t)=>Xe||e(...t)}function Jt(e,t){t._x_dataStack=e._x_dataStack,Xe=!0,Br(()=>{Hr(t)}),Xe=!1}function Hr(e){let t=!1;O(e,(n,i)=>{N(n,(o,s)=>{if(t&&qt(o))return s();t=!0,i(o,s)})})}function Br(e){let t=C;$e((r,n)=>{let i=t(r);return z(i),()=>{}}),e(),$e(t)}var Zt={};function Qt(e,t){Zt[e]=t}function Xt(e,t){return Object.entries(Zt).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var qr={get reactive(){return w},get release(){return z},get effect(){return C},get raw(){return Ie},version:"3.3.4",disableEffectScheduling:ht,setReactivityEngine:gt,addRootSelector:be,mapAttributes:H,evaluateLater:g,setEvaluator:Ct,closestRoot:k,interceptor:pe,mutateDom:h,directive:p,throttle:ve,debounce:we,evaluate:b,initTree:O,nextTick:B,prefix:Mt,plugin:Ut,magic:x,store:Gt,start:zt,clone:Jt,data:Qt},S=qr;function et(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var io={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},oo={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"};var Ur="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var so=et(Ur+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var er=Object.freeze({}),ao=Object.freeze([]);var Wr=Object.prototype.hasOwnProperty,re=(e,t)=>Wr.call(e,t),D=Array.isArray,W=e=>tr(e)==="[object Map]";var Gr=e=>typeof e=="string",Ee=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object";var Yr=Object.prototype.toString,tr=e=>Yr.call(e),tt=e=>tr(e).slice(8,-1);var Se=e=>Gr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var Ae=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Jr=/-(\w)/g,co=Ae(e=>e.replace(Jr,(t,r)=>r?r.toUpperCase():"")),Zr=/\B([A-Z])/g,lo=Ae(e=>e.replace(Zr,"-$1").toLowerCase()),rt=Ae(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Ae(e=>e?`on${rt(e)}`:""),nt=(e,t)=>e!==t&&(e===e||t===t);var it=new WeakMap,ie=[],T,F=Symbol("iterate"),ot=Symbol("Map key iterate");function Qr(e){return e&&e._isEffect===!0}function rr(e,t=er){Qr(e)&&(e=e.raw);let r=Xr(e,t);return t.lazy||r(),r}function ir(e){e.active&&(nr(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var en=0;function Xr(e,t){let r=function(){if(!r.active)return e();if(!ie.includes(r)){nr(r);try{return tn(),ie.push(r),T=r,e()}finally{ie.pop(),or(),T=ie[ie.length-1]}}};return r.id=en++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function nr(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var G=!0,st=[];function rn(){st.push(G),G=!1}function tn(){st.push(G),G=!0}function or(){let e=st.pop();G=e===void 0?!0:e}function v(e,t,r){if(!G||T===void 0)return;let n=it.get(e);n||it.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(T)||(i.add(T),T.deps.push(i),T.options.onTrack&&T.options.onTrack({effect:T,target:e,type:t,key:r}))}function P(e,t,r,n,i,o){let s=it.get(e);if(!s)return;let a=new Set,c=u=>{u&&u.forEach(d=>{(d!==T||d.allowRecurse)&&a.add(d)})};if(t==="clear")s.forEach(c);else if(r==="length"&&D(e))s.forEach((u,d)=>{(d==="length"||d>=n)&&c(u)});else switch(r!==void 0&&c(s.get(r)),t){case"add":D(e)?Se(r)&&c(s.get("length")):(c(s.get(F)),W(e)&&c(s.get(ot)));break;case"delete":D(e)||(c(s.get(F)),W(e)&&c(s.get(ot)));break;case"set":W(e)&&c(s.get(F));break}let l=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(l)}var nn=et("__proto__,__v_isRef,__isVue"),sr=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Ee)),on=ar();var sn=ar(!0);var cr=an();function an(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=m(this);for(let o=0,s=this.length;o<s;o++)v(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(m)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){rn();let n=m(this)[t].apply(this,r);return or(),n}}),e}function ar(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?ln:ur:t?cn:lr).get(n))return n;let s=D(n);if(!e&&s&&re(cr,i))return Reflect.get(cr,i,o);let a=Reflect.get(n,i,o);return(Ee(i)?sr.has(i):nn(i))||(e||v(n,"get",i),t)?a:at(a)?!s||!Se(i)?a.value:a:ne(a)?e?fr(a):Oe(a):a}}var fn=un();function un(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=m(i),s=m(s),!D(r)&&at(s)&&!at(i)))return s.value=i,!0;let a=D(r)&&Se(n)?Number(n)<r.length:re(r,n),c=Reflect.set(r,n,i,o);return r===m(o)&&(a?nt(i,s)&&P(r,"set",n,i,s):P(r,"add",n,i)),c}}function dn(e,t){let r=re(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&P(e,"delete",t,void 0,n),i}function pn(e,t){let r=Reflect.has(e,t);return(!Ee(t)||!sr.has(t))&&v(e,"has",t),r}function mn(e){return v(e,"iterate",D(e)?"length":F),Reflect.ownKeys(e)}var hn={get:on,set:fn,deleteProperty:dn,has:pn,ownKeys:mn},gn={get:sn,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}};var ct=e=>ne(e)?Oe(e):e,lt=e=>ne(e)?fr(e):e,ut=e=>e,Te=e=>Reflect.getPrototypeOf(e);function Re(e,t,r=!1,n=!1){e=e.__v_raw;let i=m(e),o=m(t);t!==o&&!r&&v(i,"get",t),!r&&v(i,"get",o);let{has:s}=Te(i),a=n?ut:r?lt:ct;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Ce(e,t=!1){let r=this.__v_raw,n=m(r),i=m(e);return e!==i&&!t&&v(n,"has",e),!t&&v(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Me(e,t=!1){return e=e.__v_raw,!t&&v(m(e),"iterate",F),Reflect.get(e,"size",e)}function dr(e){e=m(e);let t=m(this);return Te(t).has.call(t,e)||(t.add(e),P(t,"add",e,e)),this}function mr(e,t){t=m(t);let r=m(this),{has:n,get:i}=Te(r),o=n.call(r,e);o?pr(r,n,e):(e=m(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?nt(t,s)&&P(r,"set",e,t,s):P(r,"add",e,t),this}function hr(e){let t=m(this),{has:r,get:n}=Te(t),i=r.call(t,e);i?pr(t,r,e):(e=m(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&P(t,"delete",e,void 0,o),s}function gr(){let e=m(this),t=e.size!==0,r=W(e)?new Map(e):new Set(e),n=e.clear();return t&&P(e,"clear",void 0,void 0,r),n}function Ne(e,t){return function(n,i){let o=this,s=o.__v_raw,a=m(s),c=t?ut:e?lt:ct;return!e&&v(a,"iterate",F),s.forEach((l,u)=>n.call(i,c(l),c(u),o))}}function ke(e,t,r){return function(...n){let i=this.__v_raw,o=m(i),s=W(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),u=r?ut:t?lt:ct;return!t&&v(o,"iterate",c?ot:F),{next(){let{value:d,done:E}=l.next();return E?{value:d,done:E}:{value:a?[u(d[0]),u(d[1])]:u(d),done:E}},[Symbol.iterator](){return this}}}}function I(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${rt(e)} operation ${r}failed: target is readonly.`,m(this))}return e==="delete"?!1:this}}function _n(){let e={get(o){return Re(this,o)},get size(){return Me(this)},has:Ce,add:dr,set:mr,delete:hr,clear:gr,forEach:Ne(!1,!1)},t={get(o){return Re(this,o,!1,!0)},get size(){return Me(this)},has:Ce,add:dr,set:mr,delete:hr,clear:gr,forEach:Ne(!1,!0)},r={get(o){return Re(this,o,!0)},get size(){return Me(this,!0)},has(o){return Ce.call(this,o,!0)},add:I("add"),set:I("set"),delete:I("delete"),clear:I("clear"),forEach:Ne(!0,!1)},n={get(o){return Re(this,o,!0,!0)},get size(){return Me(this,!0)},has(o){return Ce.call(this,o,!0)},add:I("add"),set:I("set"),delete:I("delete"),clear:I("clear"),forEach:Ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ke(o,!1,!1),r[o]=ke(o,!0,!1),t[o]=ke(o,!1,!0),n[o]=ke(o,!0,!0)}),[e,r,t,n]}var[yn,xn,bn,wn]=_n();function _r(e,t){let r=t?e?wn:bn:e?xn:yn;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(re(r,i)&&i in n?r:n,i,o)}var vn={get:_r(!1,!1)};var En={get:_r(!0,!1)};function pr(e,t,r){let n=m(r);if(n!==r&&t.call(e,n)){let i=tt(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var lr=new WeakMap,cn=new WeakMap,ur=new WeakMap,ln=new WeakMap;function Sn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function An(e){return e.__v_skip||!Object.isExtensible(e)?0:Sn(tt(e))}function Oe(e){return e&&e.__v_isReadonly?e:yr(e,!1,hn,vn,lr)}function fr(e){return yr(e,!0,gn,En,ur)}function yr(e,t,r,n,i){if(!ne(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=An(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function m(e){return e&&m(e.__v_raw)||e}function at(e){return Boolean(e&&e.__v_isRef===!0)}x("nextTick",()=>B);x("dispatch",e=>$.bind($,e));x("watch",e=>(t,r)=>{let n=g(e,t),i=!0,o;C(()=>n(s=>{let a=document.createElement("div");a.dataset.throwAway=s,i?o=s:queueMicrotask(()=>{r(s,o),o=s}),i=!1}))});x("store",Yt);x("root",e=>k(e));x("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=Q(On(e))),e._x_refs_proxy));function On(e){let t=[],r=e;for(;r;)r._x_refs&&t.push(r._x_refs),r=r.parentNode;return t}x("el",e=>e);function oe(e,t){return Array.isArray(t)?xr(e,t.join(" ")):typeof t=="object"&&t!==null?Tn(e,t):typeof t=="function"?oe(e,t()):xr(e,t)}function xr(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function Tn(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,c])=>c?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,c])=>c?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function se(e,t){return typeof t=="object"&&t!==null?Rn(e,t):Cn(e,t)}function Rn(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],e.style.setProperty(Mn(n),i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{se(e,r)}}function Cn(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r)}}function Mn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ae(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}p("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n?Nn(e,n,t):kn(e,r,t)});function Nn(e,t,r){br(e,oe,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function kn(e,t,r){br(e,se);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((_,y)=>y<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((_,y)=>y>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),l=a?0:1,u=c?ce(t,"scale",95)/100:1,d=ce(t,"delay",0),E=ce(t,"origin","center"),L="opacity, transform",j=ce(t,"duration",150)/1e3,fe=ce(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:E,transitionDelay:d,transitionProperty:L,transitionDuration:`${j}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:E,transitionDelay:d,transitionProperty:L,transitionDuration:`${fe}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function br(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){wr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end,entering:!0},n,i)},out(n=()=>{},i=()=>{}){wr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end,entering:!1},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=r;if(t){e._x_transition?e._x_transition.in(r):i();return}e._x_hidePromise=e._x_transition?new Promise((o,s)=>{e._x_transition.out(()=>{},()=>o(n)),e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let o=vr(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):queueMicrotask(()=>{let s=a=>{let c=Promise.all([a._x_hidePromise,...(a._x_hideChildren||[]).map(s)]).then(([l])=>l());return delete a._x_hidePromise,delete a._x_hideChildren,c};s(e).catch(a=>{if(!a.isFromCancelledTransition)throw a})})})};function vr(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:vr(t)}function wr(e,t,{during:r,start:n,end:i,entering:o}={},s=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){s(),a();return}let c,l,u;Dn(e,{start(){c=t(e,n)},during(){l=t(e,r)},before:s,end(){c(),u=t(e,i)},after:a,cleanup(){l(),u()}},o)}function Dn(e,t,r){let n,i,o,s=ae(()=>{h(()=>{n=!0,i||t.before(),o||(t.end(),ye()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:ae(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s,entering:r},h(()=>{t.start(),t.during()}),jt(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,c=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),h(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(h(()=>{t.end()}),ye(),setTimeout(e._x_transitioning.finish,a+c),o=!0)})})}function ce(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var Er=()=>{};Er.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};p("ignore",Er);p("effect",(e,{expression:t},{effect:r})=>r(g(e,t)));function le(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=w({})),e._x_bindings[t]=r,t=n.includes("camel")?Fn(t):t,t){case"value":Pn(e,r);break;case"style":Ln(e,r);break;case"class":In(e,r);break;default:$n(e,t,r);break}}function Pn(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=Sr(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>Sr(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")jn(e,t);else{if(e.value===t)return;e.value=t}}function In(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=oe(e,t)}function Ln(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=se(e,t)}function $n(e,t,r){[null,void 0,!1].includes(r)&&Vn(t)?e.removeAttribute(t):(zn(t)&&(r=t),Kn(e,t,r))}function Kn(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function jn(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Fn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Sr(e,t){return e==t}function zn(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Vn(e){return!["aria-pressed","aria-checked"].includes(e)}function ue(e,t,r,n){let i=e,o=c=>n(c),s={},a=(c,l)=>u=>l(c,u);if(r.includes("dot")&&(t=Hn(t)),r.includes("camel")&&(t=Bn(t)),r.includes("passive")&&(s.passive=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("self")&&(o=a(o,(c,l)=>{l.target===e&&c(l)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,l)=>{e.contains(l.target)||e.offsetWidth<1&&e.offsetHeight<1||c(l)})),o=a(o,(c,l)=>{qn(t)&&Un(l,r)||c(l)}),r.includes("debounce")){let c=r[r.indexOf("debounce")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=we(o,l)}if(r.includes("throttle")){let c=r[r.indexOf("throttle")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=ve(o,l)}return r.includes("once")&&(o=a(o,(c,l)=>{c(l),i.removeEventListener(t,o,s)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Hn(e){return e.replace(/-/g,".")}function Bn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function ft(e){return!Array.isArray(e)&&!isNaN(e)}function Wn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function qn(e){return["keydown","keyup"].includes(e)}function Un(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,ft((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&Ar(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&Ar(e.key).includes(r[0]))}function Ar(e){if(!e)return[];e=Wn(e);let t={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}p("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=g(e,r),s=`${r} = rightSideOfExpression($event, ${r})`,a=g(e,s);var c=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let l=Gn(e,t,r),u=ue(e,c,t,d=>{a(()=>{},{scope:{$event:d,rightSideOfExpression:l}})});i(()=>u()),e._x_forceModelUpdate=()=>{o(d=>{d===void 0&&r.match(/\./)&&(d=""),window.fromModel=!0,h(()=>le(e,"value",d)),delete window.fromModel})},n(()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()})});function Gn(e,t,r){return e.type==="radio"&&h(()=>{e.hasAttribute("name")||e.setAttribute("name",r)}),(n,i)=>h(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail||n.target.value;if(e.type==="checkbox")if(Array.isArray(i)){let o=t.includes("number")?dt(n.target.value):n.target.value;return n.target.checked?i.concat([o]):i.filter(s=>!Yn(s,o))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(o=>{let s=o.value||o.text;return dt(s)}):Array.from(n.target.selectedOptions).map(o=>o.value||o.text);{let o=n.target.value;return t.includes("number")?dt(o):t.includes("trim")?o.trim():o}}})}function dt(e){let t=e?parseFloat(e):null;return Jn(t)?t:e}function Yn(e,t){return e==t}function Jn(e){return!Array.isArray(e)&&!isNaN(e)}p("cloak",e=>queueMicrotask(()=>h(()=>e.removeAttribute(A("cloak")))));Bt(()=>`[${A("init")}]`);p("init",U((e,{expression:t})=>typeof t=="string"?!!t.trim()&&b(e,t,{},!1):b(e,t,{},!1)));p("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{h(()=>{e.textContent=o})})})});p("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{e.innerHTML=o})})});H(he(":",ge(A("bind:"))));p("bind",(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t)return Zn(e,n,i,o);if(t==="key")return Qn(e,n);let s=g(e,n);o(()=>s(a=>{a===void 0&&n.match(/\./)&&(a=""),h(()=>le(e,t,a,r))}))});function Zn(e,t,r,n){let i=g(e,t),o=[];n(()=>{for(;o.length;)o.pop()();i(s=>{let a=Object.entries(s).map(([c,l])=>({name:c,value:l}));Pt(a).forEach(({name:c,value:l},u)=>{a[u]={name:`x-bind:${c}`,value:`"${l}"`}}),ee(e,a,r).map(c=>{o.push(c.runCleanups),c()})})})}function Qn(e,t){e._x_keyExpression=t}be(()=>`[${A("data")}]`);p("data",U((e,{expression:t},{cleanup:r})=>{t=t===""?"{}":t;let n={};X(n,e);let i={};Xt(i,n);let o=b(e,t,{scope:i});X(o,e);let s=w(o);Ot(s);let a=V(e,s);s.init&&b(e,s.init),r(()=>{a(),s.destroy&&b(e,s.destroy)})}));p("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=g(e,r),o=()=>h(()=>{e.style.display="none",e._x_isShown=!1}),s=()=>h(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_isShown=!0}),a=()=>setTimeout(s),c=ae(d=>d?s():o(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,s,o):d?a():o()}),l,u=!0;n(()=>i(d=>{!u&&d===l||(t.includes("immediate")&&(d?a():o()),c(d),l=d,u=!1)}))});p("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=ei(t),o=g(e,i.items),s=g(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>Xn(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Xn(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{ti(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let a=e._x_lookup,c=e._x_prevKeys,l=[],u=[];if(i(s))s=Object.entries(s).map(([f,_])=>{let y=Or(t,_,f,s);n(R=>u.push(R),{scope:{index:f,...y}}),l.push(y)});else for(let f=0;f<s.length;f++){let _=Or(t,s[f],f,s);n(y=>u.push(y),{scope:{index:f,..._}}),l.push(_)}let d=[],E=[],L=[],j=[];for(let f=0;f<c.length;f++){let _=c[f];u.indexOf(_)===-1&&L.push(_)}c=c.filter(f=>!L.includes(f));let fe="template";for(let f=0;f<u.length;f++){let _=u[f],y=c.indexOf(_);if(y===-1)c.splice(f,0,_),d.push([fe,f]);else if(y!==f){let R=c.splice(f,1)[0],M=c.splice(y-1,1)[0];c.splice(f,0,M),c.splice(y,0,R),E.push([R,M])}else j.push(_);fe=_}for(let f=0;f<L.length;f++){let _=L[f];a[_].remove(),a[_]=null,delete a[_]}for(let f=0;f<E.length;f++){let[_,y]=E[f],R=a[_],M=a[y],K=document.createElement("div");h(()=>{M.after(K),R.after(M),K.before(R),K.remove()}),He(M,l[u.indexOf(y)])}for(let f=0;f<d.length;f++){let[_,y]=d[f],R=_==="template"?o:a[_],M=l[y],K=u[y],de=document.importNode(o.content,!0).firstElementChild;V(de,w(M),o),h(()=>{R.after(de),O(de)}),typeof K=="object"&&xe("x-for key cannot be an object, it must be a string or an integer",o),a[K]=de}for(let f=0;f<j.length;f++)He(a[j[f]],l[u.indexOf(j[f])]);o._x_prevKeys=u})}function ei(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Or(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function ti(e){return!Array.isArray(e)&&!isNaN(e)}function Tr(){}Tr.inline=(e,{expression:t},{cleanup:r})=>{let n=k(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};p("ref",Tr);p("if",(e,{expression:t},{effect:r,cleanup:n})=>{let i=g(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return V(a,{},e),h(()=>{e.after(a),O(a)}),e._x_currentIfEl=a,e._x_undoIf=()=>{a.remove(),delete e._x_currentIfEl},a},s=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});H(he("@",ge(A("on:"))));p("on",U((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?g(e,n):()=>{},s=ue(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));S.setEvaluator(qe);S.setReactivityEngine({reactive:Oe,effect:rr,release:ir,raw:m});var pt=S;window.Alpine=pt;queueMicrotask(()=>{pt.start()});})();
`,e),i}}var We="x-";function A(e=""){return We+e}function Mt(e){We=e}var Nt={};function p(e,t){Nt[e]=t}function ee(e,t,r){let n={};return Array.from(t).map(kt((o,s)=>n[o]=s)).filter(Dt).map(Kr(n,r)).sort(zr).map(o=>jr(e,o))}function Pt(e){return Array.from(e).map(kt()).filter(t=>!Dt(t))}var Ge=!1,te=new Map,It=Symbol();function Lt(e){Ge=!0;let t=Symbol();It=t,te.set(t,[]);let r=()=>{for(;te.get(t).length;)te.get(t).shift()();te.delete(t)},n=()=>{Ge=!1,r()};e(r),n()}function jr(e,t){let r=()=>{},n=Nt[t.type]||r,i=[],o=d=>i.push(d),[s,a]=_t(e);i.push(a);let c={Alpine:S,effect:s,cleanup:o,evaluateLater:g.bind(g,e),evaluate:b.bind(b,e)},l=()=>i.forEach(d=>d());St(e,t.original,l);let u=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,c),n=n.bind(n,e,t,c),Ge?te.get(It).push(n):n())};return u.runCleanups=l,u}var he=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),ge=e=>e;function kt(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=$t.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var $t=[];function H(e){$t.push(e)}function Dt({name:e}){return Ft().test(e)}var Ft=()=>new RegExp(`^${We}([^:^.]+)\\b`);function Kr(e,t){return({name:r,value:n})=>{let i=r.match(Ft()),o=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var Ye="DEFAULT",_e=["ignore","ref","data","bind","init","for","model","transition","show","if",Ye,"element"];function zr(e,t){let r=_e.indexOf(e.type)===-1?Ye:e.type,n=_e.indexOf(t.type)===-1?Ye:t.type;return _e.indexOf(r)-_e.indexOf(n)}function $(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}var Je=[],Ze=!1;function B(e){Je.push(e),queueMicrotask(()=>{Ze||setTimeout(()=>{ye()})})}function ye(){for(Ze=!1;Je.length;)Je.shift()()}function jt(){Ze=!0}function N(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>N(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)N(n,t,!1),n=n.nextElementSibling}function xe(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function zt(){document.body||xe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),$(document,"alpine:init"),$(document,"alpine:initializing"),ze(),wt(t=>O(t,N)),vt(t=>B(()=>Vr(t))),Et((t,r)=>{ee(t,r).forEach(n=>n())});let e=t=>!k(t.parentElement,!0);Array.from(document.querySelectorAll(Kt())).filter(e).forEach(t=>{O(t)}),$(document,"alpine:initialized")}var Qe=[],Vt=[];function Ht(){return Qe.map(e=>e())}function Kt(){return Qe.concat(Vt).map(e=>e())}function be(e){Qe.push(e)}function Bt(e){Vt.push(e)}function k(e,t=!1){if(!e)return;if((t?Kt():Ht()).some(n=>e.matches(n)))return e;if(!!e.parentElement)return k(e.parentElement,t)}function qt(e){return Ht().some(t=>e.matches(t))}function O(e,t=N){Lt(()=>{t(e,(r,n)=>{ee(r,r.attributes).forEach(i=>i()),r._x_ignore&&n()})})}function Vr(e){N(e,t=>Fe(t))}function we(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function ve(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function Ut(e){e(S)}var q={},Wt=!1;function Gt(e,t){if(Wt||(q=w(q),Wt=!0),t===void 0)return q[e];q[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&q[e].init()}function Yt(){return q}var Xe=!1;function U(e){return(...t)=>Xe||e(...t)}function Jt(e,t){t._x_dataStack=e._x_dataStack,Xe=!0,Br(()=>{Hr(t)}),Xe=!1}function Hr(e){let t=!1;O(e,(n,i)=>{N(n,(o,s)=>{if(t&&qt(o))return s();t=!0,i(o,s)})})}function Br(e){let t=C;$e((r,n)=>{let i=t(r);return z(i),()=>{}}),e(),$e(t)}var Zt={};function Qt(e,t){Zt[e]=t}function Xt(e,t){return Object.entries(Zt).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var qr={get reactive(){return w},get release(){return z},get effect(){return C},get raw(){return Ie},version:"3.3.5",disableEffectScheduling:ht,setReactivityEngine:gt,addRootSelector:be,mapAttributes:H,evaluateLater:g,setEvaluator:Ct,closestRoot:k,interceptor:pe,mutateDom:h,directive:p,throttle:ve,debounce:we,evaluate:b,initTree:O,nextTick:B,prefix:Mt,plugin:Ut,magic:x,store:Gt,start:zt,clone:Jt,data:Qt},S=qr;function et(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var io={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},oo={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"};var Ur="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var so=et(Ur+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var er=Object.freeze({}),ao=Object.freeze([]);var Wr=Object.prototype.hasOwnProperty,re=(e,t)=>Wr.call(e,t),D=Array.isArray,W=e=>tr(e)==="[object Map]";var Gr=e=>typeof e=="string",Ee=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object";var Yr=Object.prototype.toString,tr=e=>Yr.call(e),tt=e=>tr(e).slice(8,-1);var Se=e=>Gr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var Ae=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Jr=/-(\w)/g,co=Ae(e=>e.replace(Jr,(t,r)=>r?r.toUpperCase():"")),Zr=/\B([A-Z])/g,lo=Ae(e=>e.replace(Zr,"-$1").toLowerCase()),rt=Ae(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Ae(e=>e?`on${rt(e)}`:""),nt=(e,t)=>e!==t&&(e===e||t===t);var it=new WeakMap,ie=[],T,F=Symbol("iterate"),ot=Symbol("Map key iterate");function Qr(e){return e&&e._isEffect===!0}function rr(e,t=er){Qr(e)&&(e=e.raw);let r=Xr(e,t);return t.lazy||r(),r}function ir(e){e.active&&(nr(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var en=0;function Xr(e,t){let r=function(){if(!r.active)return e();if(!ie.includes(r)){nr(r);try{return tn(),ie.push(r),T=r,e()}finally{ie.pop(),or(),T=ie[ie.length-1]}}};return r.id=en++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function nr(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var G=!0,st=[];function rn(){st.push(G),G=!1}function tn(){st.push(G),G=!0}function or(){let e=st.pop();G=e===void 0?!0:e}function v(e,t,r){if(!G||T===void 0)return;let n=it.get(e);n||it.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(T)||(i.add(T),T.deps.push(i),T.options.onTrack&&T.options.onTrack({effect:T,target:e,type:t,key:r}))}function P(e,t,r,n,i,o){let s=it.get(e);if(!s)return;let a=new Set,c=u=>{u&&u.forEach(d=>{(d!==T||d.allowRecurse)&&a.add(d)})};if(t==="clear")s.forEach(c);else if(r==="length"&&D(e))s.forEach((u,d)=>{(d==="length"||d>=n)&&c(u)});else switch(r!==void 0&&c(s.get(r)),t){case"add":D(e)?Se(r)&&c(s.get("length")):(c(s.get(F)),W(e)&&c(s.get(ot)));break;case"delete":D(e)||(c(s.get(F)),W(e)&&c(s.get(ot)));break;case"set":W(e)&&c(s.get(F));break}let l=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(l)}var nn=et("__proto__,__v_isRef,__isVue"),sr=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Ee)),on=ar();var sn=ar(!0);var cr=an();function an(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=m(this);for(let o=0,s=this.length;o<s;o++)v(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(m)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){rn();let n=m(this)[t].apply(this,r);return or(),n}}),e}function ar(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?ln:ur:t?cn:lr).get(n))return n;let s=D(n);if(!e&&s&&re(cr,i))return Reflect.get(cr,i,o);let a=Reflect.get(n,i,o);return(Ee(i)?sr.has(i):nn(i))||(e||v(n,"get",i),t)?a:at(a)?!s||!Se(i)?a.value:a:ne(a)?e?fr(a):Oe(a):a}}var fn=un();function un(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=m(i),s=m(s),!D(r)&&at(s)&&!at(i)))return s.value=i,!0;let a=D(r)&&Se(n)?Number(n)<r.length:re(r,n),c=Reflect.set(r,n,i,o);return r===m(o)&&(a?nt(i,s)&&P(r,"set",n,i,s):P(r,"add",n,i)),c}}function dn(e,t){let r=re(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&P(e,"delete",t,void 0,n),i}function pn(e,t){let r=Reflect.has(e,t);return(!Ee(t)||!sr.has(t))&&v(e,"has",t),r}function mn(e){return v(e,"iterate",D(e)?"length":F),Reflect.ownKeys(e)}var hn={get:on,set:fn,deleteProperty:dn,has:pn,ownKeys:mn},gn={get:sn,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}};var ct=e=>ne(e)?Oe(e):e,lt=e=>ne(e)?fr(e):e,ut=e=>e,Te=e=>Reflect.getPrototypeOf(e);function Re(e,t,r=!1,n=!1){e=e.__v_raw;let i=m(e),o=m(t);t!==o&&!r&&v(i,"get",t),!r&&v(i,"get",o);let{has:s}=Te(i),a=n?ut:r?lt:ct;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Ce(e,t=!1){let r=this.__v_raw,n=m(r),i=m(e);return e!==i&&!t&&v(n,"has",e),!t&&v(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Me(e,t=!1){return e=e.__v_raw,!t&&v(m(e),"iterate",F),Reflect.get(e,"size",e)}function dr(e){e=m(e);let t=m(this);return Te(t).has.call(t,e)||(t.add(e),P(t,"add",e,e)),this}function mr(e,t){t=m(t);let r=m(this),{has:n,get:i}=Te(r),o=n.call(r,e);o?pr(r,n,e):(e=m(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?nt(t,s)&&P(r,"set",e,t,s):P(r,"add",e,t),this}function hr(e){let t=m(this),{has:r,get:n}=Te(t),i=r.call(t,e);i?pr(t,r,e):(e=m(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&P(t,"delete",e,void 0,o),s}function gr(){let e=m(this),t=e.size!==0,r=W(e)?new Map(e):new Set(e),n=e.clear();return t&&P(e,"clear",void 0,void 0,r),n}function Ne(e,t){return function(n,i){let o=this,s=o.__v_raw,a=m(s),c=t?ut:e?lt:ct;return!e&&v(a,"iterate",F),s.forEach((l,u)=>n.call(i,c(l),c(u),o))}}function ke(e,t,r){return function(...n){let i=this.__v_raw,o=m(i),s=W(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),u=r?ut:t?lt:ct;return!t&&v(o,"iterate",c?ot:F),{next(){let{value:d,done:E}=l.next();return E?{value:d,done:E}:{value:a?[u(d[0]),u(d[1])]:u(d),done:E}},[Symbol.iterator](){return this}}}}function I(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${rt(e)} operation ${r}failed: target is readonly.`,m(this))}return e==="delete"?!1:this}}function _n(){let e={get(o){return Re(this,o)},get size(){return Me(this)},has:Ce,add:dr,set:mr,delete:hr,clear:gr,forEach:Ne(!1,!1)},t={get(o){return Re(this,o,!1,!0)},get size(){return Me(this)},has:Ce,add:dr,set:mr,delete:hr,clear:gr,forEach:Ne(!1,!0)},r={get(o){return Re(this,o,!0)},get size(){return Me(this,!0)},has(o){return Ce.call(this,o,!0)},add:I("add"),set:I("set"),delete:I("delete"),clear:I("clear"),forEach:Ne(!0,!1)},n={get(o){return Re(this,o,!0,!0)},get size(){return Me(this,!0)},has(o){return Ce.call(this,o,!0)},add:I("add"),set:I("set"),delete:I("delete"),clear:I("clear"),forEach:Ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ke(o,!1,!1),r[o]=ke(o,!0,!1),t[o]=ke(o,!1,!0),n[o]=ke(o,!0,!0)}),[e,r,t,n]}var[yn,xn,bn,wn]=_n();function _r(e,t){let r=t?e?wn:bn:e?xn:yn;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(re(r,i)&&i in n?r:n,i,o)}var vn={get:_r(!1,!1)};var En={get:_r(!0,!1)};function pr(e,t,r){let n=m(r);if(n!==r&&t.call(e,n)){let i=tt(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var lr=new WeakMap,cn=new WeakMap,ur=new WeakMap,ln=new WeakMap;function Sn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function An(e){return e.__v_skip||!Object.isExtensible(e)?0:Sn(tt(e))}function Oe(e){return e&&e.__v_isReadonly?e:yr(e,!1,hn,vn,lr)}function fr(e){return yr(e,!0,gn,En,ur)}function yr(e,t,r,n,i){if(!ne(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=An(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function m(e){return e&&m(e.__v_raw)||e}function at(e){return Boolean(e&&e.__v_isRef===!0)}x("nextTick",()=>B);x("dispatch",e=>$.bind($,e));x("watch",e=>(t,r)=>{let n=g(e,t),i=!0,o;C(()=>n(s=>{let a=document.createElement("div");a.dataset.throwAway=s,i?o=s:queueMicrotask(()=>{r(s,o),o=s}),i=!1}))});x("store",Yt);x("root",e=>k(e));x("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=Q(On(e))),e._x_refs_proxy));function On(e){let t=[],r=e;for(;r;)r._x_refs&&t.push(r._x_refs),r=r.parentNode;return t}x("el",e=>e);function oe(e,t){return Array.isArray(t)?xr(e,t.join(" ")):typeof t=="object"&&t!==null?Tn(e,t):typeof t=="function"?oe(e,t()):xr(e,t)}function xr(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function Tn(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,c])=>c?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,c])=>c?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function se(e,t){return typeof t=="object"&&t!==null?Rn(e,t):Cn(e,t)}function Rn(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],e.style.setProperty(Mn(n),i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{se(e,r)}}function Cn(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r)}}function Mn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ae(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}p("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n?Nn(e,n,t):kn(e,r,t)});function Nn(e,t,r){br(e,oe,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function kn(e,t,r){br(e,se);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((_,y)=>y<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((_,y)=>y>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),l=a?0:1,u=c?ce(t,"scale",95)/100:1,d=ce(t,"delay",0),E=ce(t,"origin","center"),L="opacity, transform",j=ce(t,"duration",150)/1e3,fe=ce(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:E,transitionDelay:d,transitionProperty:L,transitionDuration:`${j}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:E,transitionDelay:d,transitionProperty:L,transitionDuration:`${fe}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function br(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){wr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end,entering:!0},n,i)},out(n=()=>{},i=()=>{}){wr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end,entering:!1},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=()=>setTimeout(r);if(t){e._x_transition?e._x_transition.in(r):i();return}e._x_hidePromise=e._x_transition?new Promise((o,s)=>{e._x_transition.out(()=>{},()=>o(n)),e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let o=vr(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):queueMicrotask(()=>{let s=a=>{let c=Promise.all([a._x_hidePromise,...(a._x_hideChildren||[]).map(s)]).then(([l])=>l());return delete a._x_hidePromise,delete a._x_hideChildren,c};s(e).catch(a=>{if(!a.isFromCancelledTransition)throw a})})})};function vr(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:vr(t)}function wr(e,t,{during:r,start:n,end:i,entering:o}={},s=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){s(),a();return}let c,l,u;Dn(e,{start(){c=t(e,n)},during(){l=t(e,r)},before:s,end(){c(),u=t(e,i)},after:a,cleanup(){l(),u()}},o)}function Dn(e,t,r){let n,i,o,s=ae(()=>{h(()=>{n=!0,i||t.before(),o||(t.end(),ye()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:ae(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s,entering:r},h(()=>{t.start(),t.during()}),jt(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,c=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),h(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(h(()=>{t.end()}),ye(),setTimeout(e._x_transitioning.finish,a+c),o=!0)})})}function ce(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var Er=()=>{};Er.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};p("ignore",Er);p("effect",(e,{expression:t},{effect:r})=>r(g(e,t)));function le(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=w({})),e._x_bindings[t]=r,t=n.includes("camel")?Fn(t):t,t){case"value":Pn(e,r);break;case"style":Ln(e,r);break;case"class":In(e,r);break;default:$n(e,t,r);break}}function Pn(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=Sr(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>Sr(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")jn(e,t);else{if(e.value===t)return;e.value=t}}function In(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=oe(e,t)}function Ln(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=se(e,t)}function $n(e,t,r){[null,void 0,!1].includes(r)&&Vn(t)?e.removeAttribute(t):(zn(t)&&(r=t),Kn(e,t,r))}function Kn(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function jn(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Fn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Sr(e,t){return e==t}function zn(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Vn(e){return!["aria-pressed","aria-checked","aria-expanded"].includes(e)}function ue(e,t,r,n){let i=e,o=c=>n(c),s={},a=(c,l)=>u=>l(c,u);if(r.includes("dot")&&(t=Hn(t)),r.includes("camel")&&(t=Bn(t)),r.includes("passive")&&(s.passive=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("self")&&(o=a(o,(c,l)=>{l.target===e&&c(l)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,l)=>{e.contains(l.target)||e.offsetWidth<1&&e.offsetHeight<1||c(l)})),o=a(o,(c,l)=>{qn(t)&&Un(l,r)||c(l)}),r.includes("debounce")){let c=r[r.indexOf("debounce")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=we(o,l)}if(r.includes("throttle")){let c=r[r.indexOf("throttle")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=ve(o,l)}return r.includes("once")&&(o=a(o,(c,l)=>{c(l),i.removeEventListener(t,o,s)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Hn(e){return e.replace(/-/g,".")}function Bn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function ft(e){return!Array.isArray(e)&&!isNaN(e)}function Wn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function qn(e){return["keydown","keyup"].includes(e)}function Un(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,ft((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&Ar(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&Ar(e.key).includes(r[0]))}function Ar(e){if(!e)return[];e=Wn(e);let t={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}p("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=g(e,r),s=`${r} = rightSideOfExpression($event, ${r})`,a=g(e,s);var c=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let l=Gn(e,t,r),u=ue(e,c,t,d=>{a(()=>{},{scope:{$event:d,rightSideOfExpression:l}})});i(()=>u()),e._x_forceModelUpdate=()=>{o(d=>{d===void 0&&r.match(/\./)&&(d=""),window.fromModel=!0,h(()=>le(e,"value",d)),delete window.fromModel})},n(()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()})});function Gn(e,t,r){return e.type==="radio"&&h(()=>{e.hasAttribute("name")||e.setAttribute("name",r)}),(n,i)=>h(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail||n.target.value;if(e.type==="checkbox")if(Array.isArray(i)){let o=t.includes("number")?dt(n.target.value):n.target.value;return n.target.checked?i.concat([o]):i.filter(s=>!Yn(s,o))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(o=>{let s=o.value||o.text;return dt(s)}):Array.from(n.target.selectedOptions).map(o=>o.value||o.text);{let o=n.target.value;return t.includes("number")?dt(o):t.includes("trim")?o.trim():o}}})}function dt(e){let t=e?parseFloat(e):null;return Jn(t)?t:e}function Yn(e,t){return e==t}function Jn(e){return!Array.isArray(e)&&!isNaN(e)}p("cloak",e=>queueMicrotask(()=>h(()=>e.removeAttribute(A("cloak")))));Bt(()=>`[${A("init")}]`);p("init",U((e,{expression:t})=>typeof t=="string"?!!t.trim()&&b(e,t,{},!1):b(e,t,{},!1)));p("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{h(()=>{e.textContent=o})})})});p("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{e.innerHTML=o})})});H(he(":",ge(A("bind:"))));p("bind",(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t)return Zn(e,n,i,o);if(t==="key")return Qn(e,n);let s=g(e,n);o(()=>s(a=>{a===void 0&&n.match(/\./)&&(a=""),h(()=>le(e,t,a,r))}))});function Zn(e,t,r,n){let i=g(e,t),o=[];n(()=>{for(;o.length;)o.pop()();i(s=>{let a=Object.entries(s).map(([c,l])=>({name:c,value:l}));Pt(a).forEach(({name:c,value:l},u)=>{a[u]={name:`x-bind:${c}`,value:`"${l}"`}}),ee(e,a,r).map(c=>{o.push(c.runCleanups),c()})})})}function Qn(e,t){e._x_keyExpression=t}be(()=>`[${A("data")}]`);p("data",U((e,{expression:t},{cleanup:r})=>{t=t===""?"{}":t;let n={};X(n,e);let i={};Xt(i,n);let o=b(e,t,{scope:i});X(o,e);let s=w(o);Ot(s);let a=V(e,s);s.init&&b(e,s.init),r(()=>{a(),s.destroy&&b(e,s.destroy)})}));p("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=g(e,r),o=()=>h(()=>{e.style.display="none",e._x_isShown=!1}),s=()=>h(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_isShown=!0}),a=()=>setTimeout(s),c=ae(d=>d?s():o(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,s,o):d?a():o()}),l,u=!0;n(()=>i(d=>{!u&&d===l||(t.includes("immediate")&&(d?a():o()),c(d),l=d,u=!1)}))});p("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=ei(t),o=g(e,i.items),s=g(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>Xn(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Xn(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{ti(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let a=e._x_lookup,c=e._x_prevKeys,l=[],u=[];if(i(s))s=Object.entries(s).map(([f,_])=>{let y=Or(t,_,f,s);n(R=>u.push(R),{scope:{index:f,...y}}),l.push(y)});else for(let f=0;f<s.length;f++){let _=Or(t,s[f],f,s);n(y=>u.push(y),{scope:{index:f,..._}}),l.push(_)}let d=[],E=[],L=[],j=[];for(let f=0;f<c.length;f++){let _=c[f];u.indexOf(_)===-1&&L.push(_)}c=c.filter(f=>!L.includes(f));let fe="template";for(let f=0;f<u.length;f++){let _=u[f],y=c.indexOf(_);if(y===-1)c.splice(f,0,_),d.push([fe,f]);else if(y!==f){let R=c.splice(f,1)[0],M=c.splice(y-1,1)[0];c.splice(f,0,M),c.splice(y,0,R),E.push([R,M])}else j.push(_);fe=_}for(let f=0;f<L.length;f++){let _=L[f];a[_].remove(),a[_]=null,delete a[_]}for(let f=0;f<E.length;f++){let[_,y]=E[f],R=a[_],M=a[y],K=document.createElement("div");h(()=>{M.after(K),R.after(M),K.before(R),K.remove()}),He(M,l[u.indexOf(y)])}for(let f=0;f<d.length;f++){let[_,y]=d[f],R=_==="template"?o:a[_],M=l[y],K=u[y],de=document.importNode(o.content,!0).firstElementChild;V(de,w(M),o),h(()=>{R.after(de),O(de)}),typeof K=="object"&&xe("x-for key cannot be an object, it must be a string or an integer",o),a[K]=de}for(let f=0;f<j.length;f++)He(a[j[f]],l[u.indexOf(j[f])]);o._x_prevKeys=u})}function ei(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Or(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function ti(e){return!Array.isArray(e)&&!isNaN(e)}function Tr(){}Tr.inline=(e,{expression:t},{cleanup:r})=>{let n=k(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};p("ref",Tr);p("if",(e,{expression:t},{effect:r,cleanup:n})=>{let i=g(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return V(a,{},e),h(()=>{e.after(a),O(a)}),e._x_currentIfEl=a,e._x_undoIf=()=>{a.remove(),delete e._x_currentIfEl},a},s=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});H(he("@",ge(A("on:"))));p("on",U((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?g(e,n):()=>{},s=ue(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));S.setEvaluator(qe);S.setReactivityEngine({reactive:Oe,effect:rr,release:ir,raw:m});var pt=S;window.Alpine=pt;queueMicrotask(()=>{pt.start()});})();
{
"name": "alpinejs",
"version": "3.3.4",
"version": "3.3.5",
"description": "The rugged, minimal JavaScript framework",

@@ -5,0 +5,0 @@ "author": "Caleb Porzio",

@@ -128,3 +128,6 @@ import { releaseNextTicks, holdNextTicks } from '../nextTick'

window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, value, show, hide) {
let clickAwayCompatibleShow = show
// We are wrapping this function in a setTimeout here to prevent
// a race condition from happening where elements that have a
// @click.away always view themselves as shown on the page.
let clickAwayCompatibleShow = () => setTimeout(show)

@@ -131,0 +134,0 @@ if (value) {

@@ -128,3 +128,3 @@ import { reactive } from '../reactivity'

function attributeShouldntBePreservedIfFalsy(name) {
return ! ['aria-pressed', 'aria-checked'].includes(name)
return ! ['aria-pressed', 'aria-checked', 'aria-expanded'].includes(name)
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc