(()=>{var bt=!1,vt=!1,K=[],wt=-1,Fe=!1,At=!1;function wr(e){_n(e)}function Ar(){At=!0}function Or(){At=!1,Sr()}function _n(e){K.includes(e)||(K.push(e),e._x_schedulerPriority!==void 0&&(Fe=!0)),Sr()}function he(e){let t=K.indexOf(e);t!==-1&&t>wt&&K.splice(t,1)}function Sr(){if(!vt&&!bt){if(At)return;bt=!0,queueMicrotask(gn)}}function gn(){bt=!1,vt=!0;for(let e=0;exn(i,n,t));for(let i=0;ie.effect(t,{scheduler:r=>{Ot?wr(r):r()}}),St=e.raw}function Nt(e){j=e}function Cr(e){let t=()=>{};return[(i,n)=>{let s=n?.priority==="structural"?En++:void 0,o=j(i);return s!==void 0&&o!==void 0&&(o._x_schedulerPriority={el:e,order:s}),e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(o),t=()=>{o!==void 0&&(e._x_effects.delete(o),q(o))},o},()=>{t()}]}function $e(e,t){let r=!0,i,n,s=j(()=>{let o=e(),a=JSON.stringify(o);if(!r&&(typeof o=="object"||o!==i)){let c=typeof i=="object"?JSON.parse(n):i;queueMicrotask(()=>{t(o,c)})}i=o,n=a,r=!1});return()=>{he(s),q(s)}}async function Rr(e){Ar();try{await e(),await Promise.resolve()}finally{Or()}}var kr=[],Dr=[],Pr=[];function Ir(e){Pr.push(e)}function me(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Dr.push(t))}function He(e){kr.push(e)}function Be(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Tt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,i])=>{(t===void 0||t.includes(r))&&(i.forEach(n=>n()),delete e._x_attributeCleanups[r])})}function Mr(e){for(e._x_effects?.forEach(he);e._x_cleanups?.length;)e._x_cleanups.pop()()}var Ke=new MutationObserver(qe),Ct=!1;function Oe(){Ke.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ct=!0}function Rt(){bn(),Ke.disconnect(),Ct=!1}var te=[];function bn(){let e=Ke.takeRecords();te.push(()=>e.length>0&&qe(e));let t=te.length;queueMicrotask(()=>{if(te.length===t)for(;te.length>0;)te.shift()()})}function Lr(){for(;te.length>0;)te.shift()();let e=Ke.takeRecords();e.length>0&&qe(e)}function _(e){if(!Ct)return e();Rt();try{return e()}finally{Oe()}}var kt=!1,Ve=[];function Ur(){kt=!0}function jr(){kt=!1,qe(Ve),Ve=[]}function qe(e){if(kt){Ve=Ve.concat(e);return}let t=[],r=new Set,i=new Map,n=new Map;for(let s=0;s{o.nodeType===1&&o._x_marker&&r.add(o)}),e[s].addedNodes.forEach(o=>{if(o.nodeType===1){if(r.has(o)){r.delete(o);return}o._x_marker||t.push(o)}})),e[s].type==="attributes")){let o=e[s].target,a=e[s].attributeName,c=e[s].oldValue,l=()=>{i.has(o)||i.set(o,[]),i.get(o).push({name:a,value:o.getAttribute(a)})},u=()=>{n.has(o)||n.set(o,[]),n.get(o).push(a)};o.hasAttribute(a)&&c===null?l():o.hasAttribute(a)?(u(),l()):u()}n.forEach((s,o)=>{Tt(o,s)}),i.forEach((s,o)=>{kr.forEach(a=>a(o,s))});for(let s of r)t.some(o=>o.contains(s))||Dr.forEach(o=>o(s));for(let s of t)s.isConnected&&Pr.forEach(o=>o(s));t=null,r=null,i=null,n=null}function ze(e){return P(z(e))}function F(e,t,r){return e._x_dataStack=[t,...z(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}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 P(e){return new Proxy({objects:e},vn)}function Fr(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:Fr(Object.getPrototypeOf(e),t)}var vn={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?wn:Reflect.get(e.find(i=>Reflect.has(i,t))||{},t,r)},set({objects:e},t,r,i){let n;for(let o of e)if(n=Fr(o,t),n)break;n||(n=e[e.length-1]);let s=Object.getOwnPropertyDescriptor(n,t);return s?.set&&s?.get?s.set.call(i,r)||!0:Reflect.set(n,t,r)}};function wn(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function _e(e,t=()=>{}){let r=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,i=(n,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:a,enumerable:c}])=>{if(c===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=s===""?o:`${s}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?n[o]=a.initialize(e,l,o,t):r(a)&&a!==n&&!(a instanceof Element)&&i(a,l)})};return i(e)}function We(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(i,n,s,o){return e(this.initialValue,()=>An(i,n),a=>Dt(i,n,a),n,s,o)}};return t(r),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let n=r.initialize.bind(r);r.initialize=(s,o,a,c)=>{let l=i.initialize(s,o,a,c);return r.initialValue=l,n(s,o,a,c)}}else r.initialValue=i;return r}}function An(e,t){return t.split(".").reduce((r,i)=>r[i],e)}function Dt(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]]={}),Dt(e[t[0]],t.slice(1),r)}}var $r={};function v(e,t){$r[e]=t}function X(e,t){let r=On(t);return Object.entries($r).forEach(([i,n])=>{Object.defineProperty(e,`$${i}`,{get(){return n(t,r)},enumerable:!1})}),e}function On(e){let[t,r]=Pt(e),i={interceptor:We,...t};return me(e,r),i}function It(e,t,r,...i){try{return r(...i)}catch(n){re(n,e,t)}}function re(...e){return Vr(...e)}var Vr=Sn;function Hr(e){Vr=e}function Sn(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message} ${r?'Expression: "'+r+`" `:""}`,t),setTimeout(()=>{throw e},0)}var Z=!0;function Ge(e){let t=Z;Z=!1;let r=e();return Z=t,r}function I(e,t,r={}){let i;return b(e,t)(n=>i=n,r),i}function b(...e){return Br(...e)}var Br=()=>{};function Kr(e){Br=e}var qr;function zr(e){qr=e}function Wr(e,t){return(r=()=>{},{scope:i={},params:n=[],context:s}={})=>{if(!Z){Mt(r,t,P([i,...e]),n);return}let o=t.apply(P([i,...e]),n);Mt(r,o)}}function Mt(e,t,r,i,n){if(Z&&typeof t=="function"){let s=t.apply(r,i);s instanceof Promise?s.then(o=>Mt(e,o,r,i)).catch(o=>re(o,n,t)):e(s)}else typeof t=="object"&&t instanceof Promise?t.then(s=>e(s)):e(t)}function Gr(...e){return qr(...e)}var jt="x-";function R(e=""){return jt+e}function Yr(e){jt=e}var Ye={};function h(e,t){return Ye[e]=t,{before(r){if(!Ye[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let i=ie.indexOf(r);ie.splice(i>=0?i:ie.indexOf("DEFAULT"),0,e)}}}function Jr(e){return Object.keys(Ye).includes(e)}function ne(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let s=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),o=Ft(s);s=s.map(a=>o.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(s)}let i={};return t.map(Qr((s,o)=>i[s]=o)).filter(ti).map(Tn(i,r)).sort(Cn).map(s=>Nn(e,s))}function Ft(e){return Array.from(e).map(Qr()).filter(t=>!ti(t))}var Lt=!1,Se=new Map,Xr=Symbol();function Zr(e){Lt=!0;let t=Symbol();Xr=t,Se.set(t,[]);let r=()=>{for(;Se.get(t).length;)Se.get(t).shift()();Se.delete(t)},i=()=>{Lt=!1,r()};e(r),i()}function Pt(e){let t=[],r=a=>t.push(a),[i,n]=Cr(e);return t.push(n),[{Alpine:W,effect:i,cleanup:r,evaluateLater:b.bind(b,e),evaluate:I.bind(I,e)},()=>t.forEach(a=>a())]}function Nn(e,t){let r=()=>{},i=Ye[t.type]||r,[n,s]=Pt(e);Be(e,t.original,s);let o=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,n),i=i.bind(i,e,t,n),Lt?Se.get(Xr).push(i):i())};return o.runCleanups=s,o}var Je=(e,t)=>({name:r,value:i})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:i}),Xe=e=>e;function Qr(e=()=>{}){return({name:t,value:r})=>{let{name:i,value:n}=ei.reduce((s,o)=>o(s),{name:t,value:r});return i!==t&&e(i,t),{name:i,value:n}}}var ei=[];function ge(e){ei.push(e)}function ti({name:e}){return ri().test(e)}var ri=()=>new RegExp(`^${jt}([^:^.]+)\\b`);function Tn(e,t){return({name:r,value:i})=>{r===i&&(i="");let n=r.match(ri()),s=r.match(/:([a-zA-Z0-9\-_:]+)/),o=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:n?n[1]:null,value:s?s[1]:null,modifiers:o.map(c=>c.replace(".","")),expression:i,original:a}}}var Ut="DEFAULT",ie=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",Ut,"teleport"];function Cn(e,t){let r=ie.indexOf(e.type)===-1?Ut:e.type,i=ie.indexOf(t.type)===-1?Ut:t.type;return ie.indexOf(r)-ie.indexOf(i)}function $(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(n=>$(n,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let i=e.firstElementChild;for(;i;)$(i,t,!1),i=i.nextElementSibling}var V=!1;function O(e,t=()=>{}){return(...r)=>V?t(...r):e(...r)}function ii(e){return(...t)=>V&&e(...t)}var ni=[];function H(e){ni.push(e)}function si(e,t){ni.forEach(r=>r(e,t)),V=!0,ai(()=>{S(t,(r,i)=>{i(r,()=>{})})}),V=!1}var Ze=!1;function oi(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),V=!0,Ze=!0,ai(()=>{Rn(t)}),V=!1,Ze=!1}function Rn(e){let t=!1;S(e,(i,n)=>{$(i,(s,o)=>{if(t&&ci(s))return o();t=!0,n(s,o)})})}function ai(e){let t=j;Nt((r,i)=>{let n=t(r);return q(n),()=>{}}),e(),Nt(t)}var Qe=0;function li(e,t){let r=e._x_deferInit;r||(r=e._x_deferInit={pending:0,ownsIgnore:!e._x_ignore,queuedAttributes:new Map},r.ownsIgnore&&(e._x_ignore=!0),Qe++),r.pending++,Promise.resolve(t).catch(i=>{try{re(i,e)}catch(n){setTimeout(()=>{throw n},0)}}).then(()=>kn(e,r))}function kn(e,t){t.pending--,!(t.pending>0)&&(Lr(),!(t.pending>0)&&e._x_deferInit===t&&(delete e._x_deferInit,t.ownsIgnore&&delete e._x_ignore,Qe--,e.isConnected&&(Dn(t),S(e))))}function ui(e,t){if(Qe===0)return!1;let r=N(e,i=>i._x_deferInit);return r?(fi(r._x_deferInit,e,t.map(({name:i})=>i)),!0):!1}function fi(e,t,r){let i=e.queuedAttributes.get(t);(!i||i.marker!==t._x_marker)&&(i={marker:t._x_marker,names:new Set},e.queuedAttributes.set(t,i)),r.forEach(n=>i.names.add(n))}function Dn(e){e.queuedAttributes.forEach((t,r)=>{if(!r.isConnected||!r._x_marker||r._x_marker!==t.marker)return;let i=N(r,s=>s._x_deferInit);if(i){fi(i._x_deferInit,r,Array.from(t.names));return}let n=Array.from(t.names).filter(s=>r.hasAttribute(s)).map(s=>({name:s,value:r.getAttribute(s)}));n.length!==0&&ne(r,n).forEach(s=>s())})}H((e,t)=>{Qe!==0&&(!e||e.nodeType!==1||!t||t.nodeType!==1||N(e,r=>r._x_deferInit)&&(t._x_ignore=!0))});function se(e,t,r={},i={}){return e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...i}))}function T(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var pi=!1;function di(){pi&&T("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),pi=!0,document.body||T("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `