var main=function(N){"use strict";const uo="",fo="";var Ne=!1,Ie=!1,H=[],Me=-1;function Gr(e){Qr(e)}function Qr(e){H.includes(e)||H.push(e),Zr()}function Ct(e){let t=H.indexOf(e);t!==-1&&t>Me&&H.splice(t,1)}function Zr(){!Ie&&!Ne&&(Ne=!0,queueMicrotask(Xr))}function Xr(){Ne=!1,Ie=!0;for(let e=0;ee.effect(t,{scheduler:r=>{ke?Gr(r):r()}}),Et=e.raw}function At(e){U=e}function rn(e){let t=()=>{};return[i=>{let n=U(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(n),t=()=>{n!==void 0&&(e._x_effects.delete(n),Q(n))},n},()=>{t()}]}var Ot=[],Tt=[],Lt=[];function nn(e){Lt.push(e)}function Nt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Tt.push(t))}function on(e){Ot.push(e)}function sn(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function It(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])})}var Pe=new MutationObserver(He),je=!1;function Re(){Pe.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),je=!0}function Mt(){an(),Pe.disconnect(),je=!1}var Z=[],$e=!1;function an(){Z=Z.concat(Pe.takeRecords()),Z.length&&!$e&&($e=!0,queueMicrotask(()=>{ln(),$e=!1}))}function ln(){He(Z),Z.length=0}function C(e){if(!je)return e();Mt();let t=e();return Re(),t}var qe=!1,fe=[];function cn(){qe=!0}function un(){qe=!1,He(fe),fe=[]}function He(e){if(qe){fe=fe.concat(e);return}let t=[],r=[],i=new Map,n=new Map;for(let o=0;os.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,l=e[o].oldValue,c=()=>{i.has(s)||i.set(s,[]),i.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{n.has(s)||n.set(s,[]),n.get(s).push(a)};s.hasAttribute(a)&&l===null?c():s.hasAttribute(a)?(u(),c()):u()}n.forEach((o,s)=>{It(s,o)}),i.forEach((o,s)=>{Ot.forEach(a=>a(s,o))});for(let o of r)if(!t.includes(o)&&(Tt.forEach(s=>s(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)r.includes(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,Lt.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,r=null,i=null,n=null}function kt(e){return ee(W(e))}function X(e,t,r){return e._x_dataStack=[t,...W(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function Pt(e,t){let r=e._x_dataStack[0];Object.entries(t).forEach(([i,n])=>{r[i]=n})}function W(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?W(e.host):e.parentNode?W(e.parentNode):[]}function ee(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(r=>Object.keys(r)))),has:(r,i)=>e.some(n=>n.hasOwnProperty(i)),get:(r,i)=>(e.find(n=>{if(n.hasOwnProperty(i)){let o=Object.getOwnPropertyDescriptor(n,i);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let s=o.get,a=o.set,l=o;s=s&&s.bind(t),a=a&&a.bind(t),s&&(s._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(n,i,{...l,get:s,set:a})}return!0}return!1})||{})[i],set:(r,i,n)=>{let o=e.find(s=>s.hasOwnProperty(i));return o?o[i]=n:e[e.length-1][i]=n,!0}});return t}function jt(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,r=(i,n="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0)return;let l=n===""?o:`${n}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?i[o]=s.initialize(e,l,o):t(s)&&s!==i&&!(s instanceof Element)&&r(s,l)})};return r(e)}function Rt(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(i,n,o){return e(this.initialValue,()=>fn(i,n),s=>Fe(i,n,s),n,o)}};return t(r),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let n=r.initialize.bind(r);r.initialize=(o,s,a)=>{let l=i.initialize(o,s,a);return r.initialValue=l,n(o,s,a)}}else r.initialValue=i;return r}}function fn(e,t){return t.split(".").reduce((r,i)=>r[i],e)}function Fe(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]]={}),Fe(e[t[0]],t.slice(1),r)}}var $t={};function T(e,t){$t[e]=t}function De(e,t){return Object.entries($t).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){let[n,o]=Kt(t);return n={interceptor:Rt,...n},Nt(t,o),i(t,n)},enumerable:!1})}),e}function dn(e,t,r,...i){try{return r(...i)}catch(n){te(n,e,t)}}function te(e,t,r=void 0){Object.assign(e,{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message} ${r?'Expression: "'+r+`" `:""}`,t),setTimeout(()=>{throw e},0)}var de=!0;function pn(e){let t=de;de=!1,e(),de=t}function V(e,t,r={}){let i;return A(e,t)(n=>i=n,r),i}function A(...e){return qt(...e)}var qt=Ht;function hn(e){qt=e}function Ht(e,t){let r={};De(r,e);let i=[r,...W(e)],n=typeof t=="function"?_n(i,t):mn(i,t,e);return dn.bind(null,e,t,n)}function _n(e,t){return(r=()=>{},{scope:i={},params:n=[]}={})=>{let o=t.apply(ee([i,...e]),n);pe(r,o)}}var Ke={};function gn(e,t){if(Ke[e])return Ke[e];let r=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,o=(()=>{try{return new r(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(s){return te(s,t,e),Promise.resolve()}})();return Ke[e]=o,o}function mn(e,t,r){let i=gn(t,r);return(n=()=>{},{scope:o={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let a=ee([o,...e]);if(typeof i=="function"){let l=i(i,a).catch(c=>te(c,r,t));i.finished?(pe(n,i.result,a,s,r),i.result=void 0):l.then(c=>{pe(n,c,a,s,r)}).catch(c=>te(c,r,t)).finally(()=>i.result=void 0)}}}function pe(e,t,r,i,n){if(de&&typeof t=="function"){let o=t.apply(r,i);o instanceof Promise?o.then(s=>pe(e,s,r,i)).catch(s=>te(s,n,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Be="x-";function J(e=""){return Be+e}function vn(e){Be=e}var ze={};function w(e,t){return ze[e]=t,{before(r){if(!ze[r]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const i=F.indexOf(r);F.splice(i>=0?i:F.indexOf("DEFAULT"),0,e)}}}function Ue(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=Ft(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let i={};return t.map(Ut((o,s)=>i[o]=s)).filter(Vt).map(xn(i,r)).sort(Sn).map(o=>bn(e,o))}function Ft(e){return Array.from(e).map(Ut()).filter(t=>!Vt(t))}var We=!1,re=new Map,Dt=Symbol();function yn(e){We=!0;let t=Symbol();Dt=t,re.set(t,[]);let r=()=>{for(;re.get(t).length;)re.get(t).shift()();re.delete(t)},i=()=>{We=!1,r()};e(r),i()}function Kt(e){let t=[],r=a=>t.push(a),[i,n]=rn(e);return t.push(n),[{Alpine:ae,effect:i,cleanup:r,evaluateLater:A.bind(A,e),evaluate:V.bind(V,e)},()=>t.forEach(a=>a())]}function bn(e,t){let r=()=>{},i=ze[t.type]||r,[n,o]=Kt(e);sn(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,n),i=i.bind(i,e,t,n),We?re.get(Dt).push(i):i())};return s.runCleanups=o,s}var Bt=(e,t)=>({name:r,value:i})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:i}),zt=e=>e;function Ut(e=()=>{}){return({name:t,value:r})=>{let{name:i,value:n}=Wt.reduce((o,s)=>s(o),{name:t,value:r});return i!==t&&e(i,t),{name:i,value:n}}}var Wt=[];function Ve(e){Wt.push(e)}function Vt({name:e}){return Jt().test(e)}var Jt=()=>new RegExp(`^${Be}([^:^.]+)\\b`);function xn(e,t){return({name:r,value:i})=>{let n=r.match(Jt()),o=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:n?n[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:i,original:a}}}var Je="DEFAULT",F=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",Je,"teleport"];function Sn(e,t){let r=F.indexOf(e.type)===-1?Je:e.type,i=F.indexOf(t.type)===-1?Je:t.type;return F.indexOf(r)-F.indexOf(i)}function ne(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function k(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(n=>k(n,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let i=e.firstElementChild;for(;i;)k(i,t),i=i.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function wn(){document.body||Y("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `