var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=!1,d=!1,f=[],p=-1,m=!1;function h(e){v(e)}function g(){m=!0}function _(){m=!1,b()}function v(e){f.includes(e)||f.push(e),b()}function y(e){let t=f.indexOf(e);t!==-1&&t>p&&f.splice(t,1)}function b(){if(!d&&!u){if(m)return;u=!0,queueMicrotask(x)}}function x(){u=!1,d=!0;for(let e=0;ee.effect(t,{scheduler:e=>{E?h(e):e()}}),T=e.raw}function ne(e){C=e}function re(e){let t=()=>{};return[n=>{let r=C(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),w(r))},r},()=>{t()}]}function ie(e,t){let n=!0,r,i,a=C(()=>{let a=e(),o=JSON.stringify(a);if(!n&&(typeof a==`object`||a!==r)){let e=typeof r==`object`?JSON.parse(i):r;queueMicrotask(()=>{t(a,e)})}r=a,i=o,n=!1});return()=>w(a)}async function D(e){g();try{await e(),await Promise.resolve()}finally{_()}}var ae=[],oe=[],O=[];function se(e){O.push(e)}function ce(e,t){typeof t==`function`?(e._x_cleanups||=[],e._x_cleanups.push(t)):(t=e,oe.push(t))}function k(e){ae.push(e)}function le(e,t,n){e._x_attributeCleanups||={},e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function ue(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(e=>e()),delete e._x_attributeCleanups[n])})}function de(e){for(e._x_effects?.forEach(y);e._x_cleanups?.length;)e._x_cleanups.pop()()}var fe=new MutationObserver(Se),pe=!1;function me(){fe.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),pe=!0}function he(){_e(),fe.disconnect(),pe=!1}var ge=[];function _e(){let e=fe.takeRecords();ge.push(()=>e.length>0&&Se(e));let t=ge.length;queueMicrotask(()=>{if(ge.length===t)for(;ge.length>0;)ge.shift()()})}function A(e){if(!pe)return e();he();let t=e();return me(),t}var ve=!1,ye=[];function be(){ve=!0}function xe(){ve=!1,Se(ye),ye=[]}function Se(e){if(ve){ye=ye.concat(e);return}let t=[],n=new Set,r=new Map,i=new Map;for(let a=0;a{e.nodeType===1&&e._x_marker&&n.add(e)}),e[a].addedNodes.forEach(e=>{if(e.nodeType===1){if(n.has(e)){n.delete(e);return}e._x_marker||t.push(e)}})),e[a].type===`attributes`)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&o===null?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach((e,t)=>{ue(t,e)}),r.forEach((e,t)=>{ae.forEach(n=>n(t,e))});for(let e of n)t.some(t=>t.contains(e))||oe.forEach(t=>t(e));for(let e of t)e.isConnected&&O.forEach(t=>t(e));t=null,n=null,r=null,i=null}function Ce(e){return M(we(e))}function j(e,t,n){return e._x_dataStack=[t,...we(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function we(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot==`function`&&e instanceof ShadowRoot?we(e.host):e.parentNode?we(e.parentNode):[]}function M(e){return new Proxy({objects:e},Ee)}function Te(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:Te(Object.getPrototypeOf(e),t)}var Ee={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(e=>Object.keys(e))))},has({objects:e},t){return t!=Symbol.unscopables&&e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t))},get({objects:e},t,n){return t==`toJSON`?De:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n)},set({objects:e},t,n,r){let i;for(let n of e)if(i=Te(n,t),i)break;i||=e[e.length-1];let a=Object.getOwnPropertyDescriptor(i,t);return a?.set&&a?.get?a.set.call(r,n)||!0:Reflect.set(i,t,n)}};function De(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function Oe(e){let t=e=>typeof e==`object`&&!Array.isArray(e)&&e!==null,n=(r,i=``)=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([a,{value:o,enumerable:s}])=>{if(s===!1||o===void 0||typeof o==`object`&&o&&o.__v_skip)return;let c=i===``?a:`${i}.${a}`;typeof o==`object`&&o&&o._x_interceptor?r[a]=o.initialize(e,c,a):t(o)&&o!==r&&!(o instanceof Element)&&n(o,c)})};return n(e)}function ke(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,()=>Ae(t,n),e=>je(t,n,e),n,r)}};return t(n),e=>{if(typeof e==`object`&&e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,a)=>{let o=e.initialize(r,i,a);return n.initialValue=o,t(r,i,a)}}else n.initialValue=e;return n}}function Ae(e,t){return t.split(`.`).reduce((e,t)=>e[t],e)}function je(e,t,n){if(typeof t==`string`&&(t=t.split(`.`)),t.length===1)e[t[0]]=n;else if(t.length===0)throw error;else if(e[t[0]])return je(e[t[0]],t.slice(1),n);else return e[t[0]]={},je(e[t[0]],t.slice(1),n)}var Me={};function N(e,t){Me[e]=t}function Ne(e,t){let n=Pe(t);return Object.entries(Me).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function Pe(e){let[t,n]=ut(e),r={interceptor:ke,...t};return ce(e,n),r}function Fe(e,t,n,...r){try{return n(...r)}catch(n){Ie(n,e,t)}}function Ie(...e){return Le(...e)}var Le=ze;function Re(e){Le=e}function ze(e,t,n=void 0){e=Object.assign(e??{message:`No error message given.`},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?`Expression: "`+n+`" `:``}`,t),setTimeout(()=>{throw e},0)}var P=!0;function Be(e){let t=P;P=!1;let n=e();return P=t,n}function Ve(e,t,n={}){let r;return F(e,t)(e=>r=e,n),r}function F(...e){return He(...e)}var He=()=>{};function Ue(e){He=e}var We;function Ge(e){We=e}function Ke(e,t){let n={};Ne(n,e);let r=[n,...we(e)],i=typeof t==`function`?qe(r,t):Xe(r,t,e);return Fe.bind(null,e,t,i)}function qe(e,t){return(n=()=>{},{scope:r={},params:i=[],context:a}={})=>{if(!P){Ze(n,t,M([r,...e]),i);return}Ze(n,t.apply(M([r,...e]),i))}}var Je={};function Ye(e,t){if(Je[e])return Je[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,i=(()=>{try{let t=new n([`__self`,`scope`],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return Ie(n,t,e),Promise.resolve()}})();return Je[e]=i,i}function Xe(e,t,n){let r=Ye(t,n);return(i=()=>{},{scope:a={},params:o=[],context:s}={})=>{r.result=void 0,r.finished=!1;let c=M([a,...e]);if(typeof r==`function`){let e=r.call(s,r,c).catch(e=>Ie(e,n,t));r.finished?(Ze(i,r.result,c,o,n),r.result=void 0):e.then(e=>{Ze(i,e,c,o,n)}).catch(e=>Ie(e,n,t)).finally(()=>r.result=void 0)}}}function Ze(e,t,n,r,i){if(P&&typeof t==`function`){let a=t.apply(n,r);a instanceof Promise?a.then(t=>Ze(e,t,n,r)).catch(e=>Ie(e,i,t)):e(a)}else typeof t==`object`&&t instanceof Promise?t.then(t=>e(t)):e(t)}function Qe(...e){return We(...e)}function $e(e,t,n={}){let r={};Ne(r,e);let i=[r,...we(e)],a=M([n.scope??{},...i]),o=n.params??[];if(t.includes(`await`)){let e=Object.getPrototypeOf(async function(){}).constructor;return new e([`scope`],`with (scope) { let __result = ${/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t}; return __result }`).call(n.context,a)}{let e=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,r=Function([`scope`],`with (scope) { let __result = ${e}; return __result }`).call(n.context,a);return typeof r==`function`&&P?r.apply(a,o):r}}var et=`x-`;function I(e=``){return et+e}function tt(e){et=e}var nt={};function L(e,t){return nt[e]=t,{before(t){if(!nt[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);return}let n=R.indexOf(t);R.splice(n>=0?n:R.indexOf(`DEFAULT`),0,e)}}}function rt(e){return Object.keys(nt).includes(e)}function it(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),r=at(n);n=n.map(e=>r.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let r={};return t.map(mt((e,t)=>r[e]=t)).filter(_t).map(yt(r,n)).sort(xt).map(t=>dt(e,t))}function at(e){return Array.from(e).map(mt()).filter(e=>!_t(e))}var ot=!1,st=new Map,ct=Symbol();function lt(e){ot=!0;let t=Symbol();ct=t,st.set(t,[]);let n=()=>{for(;st.get(t).length;)st.get(t).shift()();st.delete(t)};e(n),ot=!1,n()}function ut(e){let t=[],n=e=>t.push(e),[r,i]=re(e);return t.push(i),[{Alpine:$n,effect:r,cleanup:n,evaluateLater:F.bind(F,e),evaluate:Ve.bind(Ve,e)},()=>t.forEach(e=>e())]}function dt(e,t){let n=nt[t.type]||(()=>{}),[r,i]=ut(e);le(e,t.original,i);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),ot?st.get(ct).push(n):n())};return a.runCleanups=i,a}var ft=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),pt=e=>e;function mt(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=ht.reduce((e,t)=>t(e),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var ht=[];function gt(e){ht.push(e)}function _t({name:e}){return vt().test(e)}var vt=()=>RegExp(`^${et}([^:^.]+)\\b`);function yt(e,t){return({name:n,value:r})=>{n===r&&(r=``);let i=n.match(vt()),a=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:a?a[1]:null,modifiers:o.map(e=>e.replace(`.`,``)),expression:r,original:s}}}var bt=`DEFAULT`,R=[`ignore`,`ref`,`id`,`data`,`anchor`,`bind`,`init`,`for`,`model`,`modelable`,`transition`,`show`,`if`,bt,`teleport`];function xt(e,t){let n=R.indexOf(e.type)===-1?bt:e.type,r=R.indexOf(t.type)===-1?bt:t.type;return R.indexOf(n)-R.indexOf(r)}function St(e,t,n={},r={}){return e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0,...r}))}function Ct(e,t){if(typeof ShadowRoot==`function`&&e instanceof ShadowRoot){Array.from(e.children).forEach(e=>Ct(e,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Ct(r,t,!1),r=r.nextElementSibling}function z(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var wt=!1;function Tt(){wt&&z(`Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.`),wt=!0,document.body||z("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `