(function(F){typeof define=="function"&&define.amd?define(F):F()})(function(){"use strict";var F=!1,Se=!1,$=[],Ae=-1;function $r(e){Rr(e)}function Rr(e){$.includes(e)||$.push(e),jr()}function ct(e){let t=$.indexOf(e);t!==-1&&t>Ae&&$.splice(t,1)}function jr(){!Se&&!F&&(F=!0,queueMicrotask(Lr))}function Lr(){F=!1,Se=!0;for(let e=0;e<$.length;e++)$[e](),Ae=e;$.length=0,Ae=-1,Se=!1}var K,D,W,lt,Oe=!0;function Nr(e){Oe=!1,e(),Oe=!0}function Fr(e){K=e.reactive,W=e.release,D=t=>e.effect(t,{scheduler:r=>{Oe?$r(r):r()}}),lt=e.raw}function ft(e){D=e}function Kr(e){let t=()=>{};return[n=>{let i=D(n);return 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),W(i))},i},()=>{t()}]}var dt=[],pt=[],_t=[];function Dr(e){_t.push(e)}function ht(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,pt.push(t))}function Br(e){dt.push(e)}function zr(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function gt(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 Ce=new MutationObserver($e),Me=!1;function Te(){Ce.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Me=!0}function yt(){kr(),Ce.disconnect(),Me=!1}var U=[],Ie=!1;function kr(){U=U.concat(Ce.takeRecords()),U.length&&!Ie&&(Ie=!0,queueMicrotask(()=>{Hr(),Ie=!1}))}function Hr(){$e(U),U.length=0}function v(e){if(!Me)return e();yt();let t=e();return Te(),t}var Pe=!1,oe=[];function qr(){Pe=!0}function Wr(){Pe=!1,$e(oe),oe=[]}function $e(e){if(Pe){oe=oe.concat(e);return}let t=[],r=[],n=new Map,i=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,u=e[o].oldValue,c=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},l=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&u===null?c():s.hasAttribute(a)?(l(),c()):l()}i.forEach((o,s)=>{gt(s,o)}),n.forEach((o,s)=>{dt.forEach(a=>a(s,o))});for(let o of r)if(!t.includes(o)&&(pt.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,_t.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,n=null,i=null}function vt(e){return J(B(e))}function V(e,t,r){return e._x_dataStack=[t,...B(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function B(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?B(e.host):e.parentNode?B(e.parentNode):[]}function J(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(r=>Object.keys(r)))),has:(r,n)=>e.some(i=>i.hasOwnProperty(n)),get:(r,n)=>(e.find(i=>{if(i.hasOwnProperty(n)){let o=Object.getOwnPropertyDescriptor(i,n);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,u=o;s=s&&s.bind(t),a=a&&a.bind(t),s&&(s._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(i,n,{...u,get:s,set:a})}return!0}return!1})||{})[n],set:(r,n,i)=>{let o=e.find(s=>s.hasOwnProperty(n));return o?o[n]=i:e[e.length-1][n]=i,!0}});return t}function xt(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0)return;let u=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,u,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,u)})};return r(e)}function bt(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>Ur(n,i),s=>Re(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 u=n.initialize(o,s,a);return r.initialValue=u,i(o,s,a)}}else r.initialValue=n;return r}}function Ur(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Re(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]]={}),Re(e[t[0]],t.slice(1),r)}}var mt={};function E(e,t){mt[e]=t}function je(e,t){return Object.entries(mt).forEach(([r,n])=>{let i=null;function o(){if(i)return i;{let[s,a]=Ot(t);return i={interceptor:bt,...s},ht(t,a),i}}Object.defineProperty(e,`$${r}`,{get(){return n(t,o())},enumerable:!1})}),e}function Vr(e,t,r,...n){try{return r(...n)}catch(i){G(i,e,t)}}function G(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 se=!0;function Jr(e){let t=se;se=!1,e(),se=t}function z(e,t,r={}){let n;return b(e,t)(i=>n=i,r),n}function b(...e){return wt(...e)}var wt=Et;function Gr(e){wt=e}function Et(e,t){let r={};je(r,e);let n=[r,...B(e)],i=typeof t=="function"?Yr(n,t):Qr(n,t,e);return Vr.bind(null,e,t,i)}function Yr(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(J([n,...e]),i);ae(r,o)}}var Le={};function Xr(e,t){if(Le[e])return Le[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,o=(()=>{try{return new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`)}catch(s){return G(s,t,e),Promise.resolve()}})();return Le[e]=o,o}function Qr(e,t,r){let n=Xr(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=J([o,...e]);if(typeof n=="function"){let u=n(n,a).catch(c=>G(c,r,t));n.finished?(ae(i,n.result,a,s,r),n.result=void 0):u.then(c=>{ae(i,c,a,s,r)}).catch(c=>G(c,r,t)).finally(()=>n.result=void 0)}}}function ae(e,t,r,n,i){if(se&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>ae(e,s,r,n)).catch(s=>G(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Ne="x-";function k(e=""){return Ne+e}function Zr(e){Ne=e}var Fe={};function g(e,t){return Fe[e]=t,{before(r){if(!Fe[r]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const n=R.indexOf(r);R.splice(n>=0?n:R.indexOf("DEFAULT"),0,e)}}}function Ke(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,u])=>({name:a,value:u})),s=St(o);o=o.map(a=>s.find(u=>u.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(Tt((o,s)=>n[o]=s)).filter(Pt).map(rn(n,r)).sort(nn).map(o=>tn(e,o))}function St(e){return Array.from(e).map(Tt()).filter(t=>!Pt(t))}var De=!1,Y=new Map,At=Symbol();function en(e){De=!0;let t=Symbol();At=t,Y.set(t,[]);let r=()=>{for(;Y.get(t).length;)Y.get(t).shift()();Y.delete(t)},n=()=>{De=!1,r()};e(r),n()}function Ot(e){let t=[],r=a=>t.push(a),[n,i]=Kr(e);return t.push(i),[{Alpine:te,effect:n,cleanup:r,evaluateLater:b.bind(b,e),evaluate:z.bind(z,e)},()=>t.forEach(a=>a())]}function tn(e,t){let r=()=>{},n=Fe[t.type]||r,[i,o]=Ot(e);zr(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),De?Y.get(At).push(n):n())};return s.runCleanups=o,s}var Ct=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Mt=e=>e;function Tt(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=It.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var It=[];function Be(e){It.push(e)}function Pt({name:e}){return $t().test(e)}var $t=()=>new RegExp(`^${Ne}([^:^.]+)\\b`);function rn(e,t){return({name:r,value:n})=>{let i=r.match($t()),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(u=>u.replace(".","")),expression:n,original:a}}}var ze="DEFAULT",R=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",ze,"teleport"];function nn(e,t){let r=R.indexOf(e.type)===-1?ze:e.type,n=R.indexOf(t.type)===-1?ze:t.type;return R.indexOf(r)-R.indexOf(n)}function X(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function O(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>O(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)O(n,t),n=n.nextElementSibling}function C(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Rt=!1;function on(){Rt&&C("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Rt=!0,document.body||C("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `