-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
6 lines (4 loc) · 43.8 KB
/
index.js
1
2
3
4
5
6
(()=>{var Te=!1,Ie=!1,N=[],Pe=-1;function Un(e){Jn(e)}function Jn(e){N.includes(e)||N.push(e),Vn()}function Tt(e){let t=N.indexOf(e);t!==-1&&t>Pe&&N.splice(t,1)}function Vn(){!Ie&&!Te&&(Te=!0,queueMicrotask(Yn))}function Yn(){Te=!1,Ie=!0;for(let e=0;e<N.length;e++)N[e](),Pe=e;N.length=0,Pe=-1,Ie=!1}var H,D,W,It,$e=!0;function Gn(e){$e=!1,e(),$e=!0}function Xn(e){H=e.reactive,W=e.release,D=t=>e.effect(t,{scheduler:n=>{$e?Un(n):n()}}),It=e.raw}function ht(e){D=e}function Zn(e){let t=()=>{};return[r=>{let i=D(r);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()}]}function Pt(e,t){let n=!0,r,i=D(()=>{let o=e();JSON.stringify(o),n?r=o:queueMicrotask(()=>{t(o,r),r=o}),n=!1});return()=>W(i)}function X(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function I(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>I(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)I(r,t,!1),r=r.nextElementSibling}function O(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var gt=!1;function Qn(){gt&&O("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),gt=!0,document.body||O("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),X(document,"alpine:init"),X(document,"alpine:initializing"),Ze(),nr(t=>C(t,I)),Ye(t=>Ve(t)),kt((t,n)=>{nt(t,n).forEach(r=>r())});let e=t=>!he(t.parentElement,!0);Array.from(document.querySelectorAll(jt().join(","))).filter(e).forEach(t=>{C(t)}),X(document,"alpine:initialized")}var Je=[],$t=[];function Rt(){return Je.map(e=>e())}function jt(){return Je.concat($t).map(e=>e())}function Nt(e){Je.push(e)}function Ft(e){$t.push(e)}function he(e,t=!1){return ge(e,n=>{if((t?jt():Rt()).some(i=>n.matches(i)))return!0})}function ge(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return ge(e.parentElement,t)}}function er(e){return Rt().some(t=>e.matches(t))}var Lt=[];function tr(e){Lt.push(e)}function C(e,t=I,n=()=>{}){gr(()=>{t(e,(r,i)=>{n(r,i),Lt.forEach(o=>o(r,i)),nt(r,r.attributes).forEach(o=>o()),r._x_ignore&&i()})})}function Ve(e){I(e,t=>{Ht(t),rr(t)})}var Bt=[],Dt=[],Kt=[];function nr(e){Kt.push(e)}function Ye(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Dt.push(t))}function kt(e){Bt.push(e)}function zt(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Ht(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}function rr(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var Ge=new MutationObserver(et),Xe=!1;function Ze(){Ge.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Xe=!0}function Wt(){ir(),Ge.disconnect(),Xe=!1}var J=[];function ir(){let e=Ge.takeRecords();J.push(()=>e.length>0&&et(e));let t=J.length;queueMicrotask(()=>{if(J.length===t)for(;J.length>0;)J.shift()()})}function y(e){if(!Xe)return e();Wt();let t=e();return Ze(),t}var Qe=!1,de=[];function or(){Qe=!0}function sr(){Qe=!1,et(de),de=[]}function et(e){if(Qe){de=de.concat(e);return}let t=new Set,n=new Set,r=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.add(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&n.add(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,u=e[o].oldValue,l=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},c=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&u===null?l():s.hasAttribute(a)?(c(),l()):c()}i.forEach((o,s)=>{Ht(s,o)}),r.forEach((o,s)=>{Bt.forEach(a=>a(s,o))});for(let o of n)t.has(o)||(Dt.forEach(s=>s(o)),Ve(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,Kt.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,n=null,r=null,i=null}function qt(e){return te(k(e))}function ee(e,t,n){return e._x_dataStack=[t,...k(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function k(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?k(e.host):e.parentNode?k(e.parentNode):[]}function te(e){return new Proxy({objects:e},ar)}var ar={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(n=>Object.prototype.hasOwnProperty.call(n,t))},get({objects:e},t,n){return t=="toJSON"?ur:Reflect.get(e.find(r=>Object.prototype.hasOwnProperty.call(r,t))||{},t,n)},set({objects:e},t,n,r){let i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?Reflect.set(i,t,n,r):Reflect.set(i,t,n)}};function ur(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function Ut(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).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?r[o]=s.initialize(e,u,o):t(s)&&s!==r&&!(s instanceof Element)&&n(s,u)})};return n(e)}function Jt(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>lr(r,i),s=>Re(r,i,s),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,s,a)=>{let u=r.initialize(o,s,a);return n.initialValue=u,i(o,s,a)}}else n.initialValue=r;return n}}function lr(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Re(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Re(e[t[0]],t.slice(1),n)}}var Vt={};function S(e,t){Vt[e]=t}function je(e,t){return Object.entries(Vt).forEach(([n,r])=>{let i=null;function o(){if(i)return i;{let[s,a]=en(t);return i={interceptor:Jt,...s},Ye(t,a),i}}Object.defineProperty(e,`$${n}`,{get(){return r(t,o())},enumerable:!1})}),e}function cr(e,t,n,...r){try{return n(...r)}catch(i){Q(i,e,t)}}function Q(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 ce=!0;function Yt(e){let t=ce;ce=!1;let n=e();return ce=t,n}function F(e,t,n={}){let r;return b(e,t)(i=>r=i,n),r}function b(...e){return Gt(...e)}var Gt=Xt;function fr(e){Gt=e}function Xt(e,t){let n={};je(n,e);let r=[n,...k(e)],i=typeof t=="function"?dr(r,t):_r(r,t,e);return cr.bind(null,e,t,i)}function dr(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(te([r,...e]),i);pe(n,o)}}var Ae={};function pr(e,t){if(Ae[e])return Ae[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return Q(s,t,e),Promise.resolve()}})();return Ae[e]=o,o}function _r(e,t,n){let r=pr(t,n);return(i=()=>{},{scope:o={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let a=te([o,...e]);if(typeof r=="function"){let u=r(r,a).catch(l=>Q(l,n,t));r.finished?(pe(i,r.result,a,s,n),r.result=void 0):u.then(l=>{pe(i,l,a,s,n)}).catch(l=>Q(l,n,t)).finally(()=>r.result=void 0)}}}function pe(e,t,n,r,i){if(ce&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(s=>pe(e,s,n,r)).catch(s=>Q(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var tt="x-";function q(e=""){return tt+e}function hr(e){tt=e}var Ne={};function g(e,t){return Ne[e]=t,{before(n){if(!Ne[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}let r=j.indexOf(n);j.splice(r>=0?r:j.indexOf("DEFAULT"),0,e)}}}function nt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,u])=>({name:a,value:u})),s=Zt(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 r={};return t.map(rn((o,s)=>r[o]=s)).filter(sn).map(yr(r,n)).sort(vr).map(o=>xr(e,o))}function Zt(e){return Array.from(e).map(rn()).filter(t=>!sn(t))}var Fe=!1,G=new Map,Qt=Symbol();function gr(e){Fe=!0;let t=Symbol();Qt=t,G.set(t,[]);let n=()=>{for(;G.get(t).length;)G.get(t).shift()();G.delete(t)},r=()=>{Fe=!1,n()};e(n),r()}function en(e){let t=[],n=a=>t.push(a),[r,i]=Zn(e);return t.push(i),[{Alpine:re,effect:r,cleanup:n,evaluateLater:b.bind(b,e),evaluate:F.bind(F,e)},()=>t.forEach(a=>a())]}function xr(e,t){let n=()=>{},r=Ne[t.type]||n,[i,o]=en(e);zt(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Fe?G.get(Qt).push(r):r())};return s.runCleanups=o,s}var tn=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),nn=e=>e;function rn(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=on.reduce((o,s)=>s(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var on=[];function rt(e){on.push(e)}function sn({name:e}){return an().test(e)}var an=()=>new RegExp(`^${tt}([^:^.]+)\\b`);function yr(e,t){return({name:n,value:r})=>{let i=n.match(an()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(u=>u.replace(".","")),expression:r,original:a}}}var Le="DEFAULT",j=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Le,"teleport"];function vr(e,t){let n=j.indexOf(e.type)===-1?Le:e.type,r=j.indexOf(t.type)===-1?Le:t.type;return j.indexOf(n)-j.indexOf(r)}var Be=[],it=!1;function ot(e=()=>{}){return queueMicrotask(()=>{it||setTimeout(()=>{De()})}),new Promise(t=>{Be.push(()=>{e(),t()})})}function De(){for(it=!1;Be.length;)Be.shift()()}function mr(){it=!0}function st(e,t){return Array.isArray(t)?xt(e,t.join(" ")):typeof t=="object"&&t!==null?br(e,t):typeof t=="function"?st(e,t()):xt(e,t)}function xt(e,t){let n=o=>o.split(" ").filter(Boolean),r=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(r(t))}function br(e,t){let n=a=>a.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([a,u])=>u?n(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,u])=>u?!1:n(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),r.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 xe(e,t){return typeof t=="object"&&t!==null?wr(e,t):Er(e,t)}function wr(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=Sr(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{xe(e,n)}}function Er(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Sr(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ke(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}g("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r!==!1&&(!r||typeof r=="boolean"?Or(e,n,t):Ar(e,r,t))});function Ar(e,t,n){un(e,st,""),{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}}[n](t)}function Or(e,t,n){un(e,xe);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((_,x)=>x<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((_,x)=>x>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),u=s||t.includes("scale"),l=a?0:1,c=u?V(t,"scale",95)/100:1,d=V(t,"delay",0)/1e3,p=V(t,"origin","center"),v="opacity, transform",M=V(t,"duration",150)/1e3,ie=V(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:p,transitionDelay:`${d}s`,transitionProperty:v,transitionDuration:`${M}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:l,transform:`scale(${c})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:p,transitionDelay:`${d}s`,transitionProperty:v,transitionDuration:`${ie}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${c})`})}function un(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){ke(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){ke(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let s=ln(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=u=>{let l=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(a)]).then(([c])=>c());return delete u._x_hidePromise,delete u._x_hideChildren,l};a(e).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function ln(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:ln(t)}function ke(e,t,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),s();return}let a,u,l;Cr(e,{start(){a=t(e,r)},during(){u=t(e,n)},before:o,end(){a(),l=t(e,i)},after:s,cleanup(){u(),l()}})}function Cr(e,t){let n,r,i,o=Ke(()=>{y(()=>{n=!0,r||t.before(),i||(t.end(),De()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Ke(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},y(()=>{t.start(),t.during()}),mr(),requestAnimationFrame(()=>{if(n)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),y(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(y(()=>{t.end()}),De(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function V(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"||t==="delay"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}var P=!1;function ne(e,t=()=>{}){return(...n)=>P?t(...n):e(...n)}function Mr(e){return(...t)=>P&&e(...t)}var cn=[];function ye(e){cn.push(e)}function Tr(e,t){cn.forEach(n=>n(e,t)),P=!0,fn(()=>{C(t,(n,r)=>{r(n,()=>{})})}),P=!1}var ze=!1;function Ir(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),P=!0,ze=!0,fn(()=>{Pr(t)}),P=!1,ze=!1}function Pr(e){let t=!1;C(e,(r,i)=>{I(r,(o,s)=>{if(t&&er(o))return s();t=!0,i(o,s)})})}function fn(e){let t=D;ht((n,r)=>{let i=t(n);return W(i),()=>{}}),e(),ht(t)}function dn(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=H({})),e._x_bindings[t]=n,t=r.includes("camel")?Dr(t):t,t){case"value":$r(e,n);break;case"style":jr(e,n);break;case"class":Rr(e,n);break;case"selected":case"checked":Nr(e,t,n);break;default:pn(e,t,n);break}}function $r(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=fe(e.value)===t:e.checked=yt(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>yt(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Br(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function Rr(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=st(e,t)}function jr(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=xe(e,t)}function Nr(e,t,n){pn(e,t,n),Lr(e,t,n)}function pn(e,t,n){[null,void 0,!1].includes(n)&&Kr(t)?e.removeAttribute(t):(_n(t)&&(n=t),Fr(e,t,n))}function Fr(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Lr(e,t,n){e[t]!==n&&(e[t]=n)}function Br(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function Dr(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function yt(e,t){return e==t}function fe(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}function _n(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 Kr(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function kr(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:hn(e,t,n)}function zr(e,t,n,r=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=r,Yt(()=>F(e,i.expression))}return hn(e,t,n)}function hn(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:_n(t)?!![t,"true"].includes(r):r}function gn(e,t){var n;return function(){var r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}function xn(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function yn({get:e,set:t},{get:n,set:r}){let i=!0,o,s,a=D(()=>{let u=e(),l=n();if(i)r(Oe(u)),i=!1;else{let c=JSON.stringify(u),d=JSON.stringify(l);c!==o?r(Oe(u)):c!==d&&t(Oe(l))}o=JSON.stringify(e()),s=JSON.stringify(n())});return()=>{W(a)}}function Oe(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Hr(e){(Array.isArray(e)?e:[e]).forEach(n=>n(re))}var R={},vt=!1;function Wr(e,t){if(vt||(R=H(R),vt=!0),t===void 0)return R[e];R[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&R[e].init(),Ut(R[e])}function qr(){return R}var vn={};function Ur(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?mn(e,n()):(vn[e]=n,()=>{})}function Jr(e){return Object.entries(vn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function mn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=Zt(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),nt(e,i,n).map(s=>{r.push(s.runCleanups),s()}),()=>{for(;r.length;)r.pop()()}}var bn={};function Vr(e,t){bn[e]=t}function Yr(e,t){return Object.entries(bn).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var Gr={get reactive(){return H},get release(){return W},get effect(){return D},get raw(){return It},version:"3.13.5",flushAndStopDeferringMutations:sr,dontAutoEvaluateFunctions:Yt,disableEffectScheduling:Gn,startObservingMutations:Ze,stopObservingMutations:Wt,setReactivityEngine:Xn,onAttributeRemoved:zt,onAttributesAdded:kt,closestDataStack:k,skipDuringClone:ne,onlyDuringClone:Mr,addRootSelector:Nt,addInitSelector:Ft,interceptClone:ye,addScopeToNode:ee,deferMutations:or,mapAttributes:rt,evaluateLater:b,interceptInit:tr,setEvaluator:fr,mergeProxies:te,extractProp:zr,findClosest:ge,onElRemoved:Ye,closestRoot:he,destroyTree:Ve,interceptor:Jt,transition:ke,setStyles:xe,mutateDom:y,directive:g,entangle:yn,throttle:xn,debounce:gn,evaluate:F,initTree:C,nextTick:ot,prefixed:q,prefix:hr,plugin:Hr,magic:S,store:Wr,start:Qn,clone:Ir,cloneNode:Tr,bound:kr,$data:qt,watch:Pt,walk:I,data:Vr,bind:Ur},re=Gr;function wn(e,t){let n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}var Xr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zi=wn(Xr+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),Zr=Object.freeze({}),Qi=Object.freeze([]),Qr=Object.prototype.hasOwnProperty,ve=(e,t)=>Qr.call(e,t),L=Array.isArray,Z=e=>En(e)==="[object Map]",ei=e=>typeof e=="string",at=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",ti=Object.prototype.toString,En=e=>ti.call(e),Sn=e=>En(e).slice(8,-1),ut=e=>ei(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,be=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ni=/-(\w)/g,eo=be(e=>e.replace(ni,(t,n)=>n?n.toUpperCase():"")),ri=/\B([A-Z])/g,to=be(e=>e.replace(ri,"-$1").toLowerCase()),An=be(e=>e.charAt(0).toUpperCase()+e.slice(1)),no=be(e=>e?`on${An(e)}`:""),On=(e,t)=>e!==t&&(e===e||t===t),He=new WeakMap,Y=[],A,B=Symbol("iterate"),We=Symbol("Map key iterate");function ii(e){return e&&e._isEffect===!0}function oi(e,t=Zr){ii(e)&&(e=e.raw);let n=ui(e,t);return t.lazy||n(),n}function si(e){e.active&&(Cn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var ai=0;function ui(e,t){let n=function(){if(!n.active)return e();if(!Y.includes(n)){Cn(n);try{return ci(),Y.push(n),A=n,e()}finally{Y.pop(),Mn(),A=Y[Y.length-1]}}};return n.id=ai++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Cn(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var z=!0,lt=[];function li(){lt.push(z),z=!1}function ci(){lt.push(z),z=!0}function Mn(){let e=lt.pop();z=e===void 0?!0:e}function E(e,t,n){if(!z||A===void 0)return;let r=He.get(e);r||He.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(A)||(i.add(A),A.deps.push(i),A.options.onTrack&&A.options.onTrack({effect:A,target:e,type:t,key:n}))}function $(e,t,n,r,i,o){let s=He.get(e);if(!s)return;let a=new Set,u=c=>{c&&c.forEach(d=>{(d!==A||d.allowRecurse)&&a.add(d)})};if(t==="clear")s.forEach(u);else if(n==="length"&&L(e))s.forEach((c,d)=>{(d==="length"||d>=r)&&u(c)});else switch(n!==void 0&&u(s.get(n)),t){case"add":L(e)?ut(n)&&u(s.get("length")):(u(s.get(B)),Z(e)&&u(s.get(We)));break;case"delete":L(e)||(u(s.get(B)),Z(e)&&u(s.get(We)));break;case"set":Z(e)&&u(s.get(B));break}let l=c=>{c.options.onTrigger&&c.options.onTrigger({effect:c,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),c.options.scheduler?c.options.scheduler(c):c()};a.forEach(l)}var fi=wn("__proto__,__v_isRef,__isVue"),Tn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(at)),di=In(),pi=In(!0),mt=_i();function _i(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){let r=h(this);for(let o=0,s=this.length;o<s;o++)E(r,"get",o+"");let i=r[t](...n);return i===-1||i===!1?r[t](...n.map(h)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){li();let r=h(this)[t].apply(this,n);return Mn(),r}}),e}function In(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Ii:jn:t?Ti:Rn).get(r))return r;let s=L(r);if(!e&&s&&ve(mt,i))return Reflect.get(mt,i,o);let a=Reflect.get(r,i,o);return(at(i)?Tn.has(i):fi(i))||(e||E(r,"get",i),t)?a:qe(a)?!s||!ut(i)?a.value:a:me(a)?e?Nn(a):pt(a):a}}var hi=gi();function gi(e=!1){return function(n,r,i,o){let s=n[r];if(!e&&(i=h(i),s=h(s),!L(n)&&qe(s)&&!qe(i)))return s.value=i,!0;let a=L(n)&&ut(r)?Number(r)<n.length:ve(n,r),u=Reflect.set(n,r,i,o);return n===h(o)&&(a?On(i,s)&&$(n,"set",r,i,s):$(n,"add",r,i)),u}}function xi(e,t){let n=ve(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&$(e,"delete",t,void 0,r),i}function yi(e,t){let n=Reflect.has(e,t);return(!at(t)||!Tn.has(t))&&E(e,"has",t),n}function vi(e){return E(e,"iterate",L(e)?"length":B),Reflect.ownKeys(e)}var mi={get:di,set:hi,deleteProperty:xi,has:yi,ownKeys:vi},bi={get:pi,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}},ct=e=>me(e)?pt(e):e,ft=e=>me(e)?Nn(e):e,dt=e=>e,we=e=>Reflect.getPrototypeOf(e);function oe(e,t,n=!1,r=!1){e=e.__v_raw;let i=h(e),o=h(t);t!==o&&!n&&E(i,"get",t),!n&&E(i,"get",o);let{has:s}=we(i),a=r?dt:n?ft: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 se(e,t=!1){let n=this.__v_raw,r=h(n),i=h(e);return e!==i&&!t&&E(r,"has",e),!t&&E(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function ae(e,t=!1){return e=e.__v_raw,!t&&E(h(e),"iterate",B),Reflect.get(e,"size",e)}function bt(e){e=h(e);let t=h(this);return we(t).has.call(t,e)||(t.add(e),$(t,"add",e,e)),this}function wt(e,t){t=h(t);let n=h(this),{has:r,get:i}=we(n),o=r.call(n,e);o?$n(n,r,e):(e=h(e),o=r.call(n,e));let s=i.call(n,e);return n.set(e,t),o?On(t,s)&&$(n,"set",e,t,s):$(n,"add",e,t),this}function Et(e){let t=h(this),{has:n,get:r}=we(t),i=n.call(t,e);i?$n(t,n,e):(e=h(e),i=n.call(t,e));let o=r?r.call(t,e):void 0,s=t.delete(e);return i&&$(t,"delete",e,void 0,o),s}function St(){let e=h(this),t=e.size!==0,n=Z(e)?new Map(e):new Set(e),r=e.clear();return t&&$(e,"clear",void 0,void 0,n),r}function ue(e,t){return function(r,i){let o=this,s=o.__v_raw,a=h(s),u=t?dt:e?ft:ct;return!e&&E(a,"iterate",B),s.forEach((l,c)=>r.call(i,u(l),u(c),o))}}function le(e,t,n){return function(...r){let i=this.__v_raw,o=h(i),s=Z(o),a=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,l=i[e](...r),c=n?dt:t?ft:ct;return!t&&E(o,"iterate",u?We:B),{next(){let{value:d,done:p}=l.next();return p?{value:d,done:p}:{value:a?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function T(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";console.warn(`${An(e)} operation ${n}failed: target is readonly.`,h(this))}return e==="delete"?!1:this}}function wi(){let e={get(o){return oe(this,o)},get size(){return ae(this)},has:se,add:bt,set:wt,delete:Et,clear:St,forEach:ue(!1,!1)},t={get(o){return oe(this,o,!1,!0)},get size(){return ae(this)},has:se,add:bt,set:wt,delete:Et,clear:St,forEach:ue(!1,!0)},n={get(o){return oe(this,o,!0)},get size(){return ae(this,!0)},has(o){return se.call(this,o,!0)},add:T("add"),set:T("set"),delete:T("delete"),clear:T("clear"),forEach:ue(!0,!1)},r={get(o){return oe(this,o,!0,!0)},get size(){return ae(this,!0)},has(o){return se.call(this,o,!0)},add:T("add"),set:T("set"),delete:T("delete"),clear:T("clear"),forEach:ue(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=le(o,!1,!1),n[o]=le(o,!0,!1),t[o]=le(o,!1,!0),r[o]=le(o,!0,!0)}),[e,n,t,r]}var[Ei,Si,Ai,Oi]=wi();function Pn(e,t){let n=t?e?Oi:Ai:e?Si:Ei;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ve(n,i)&&i in r?n:r,i,o)}var Ci={get:Pn(!1,!1)},Mi={get:Pn(!0,!1)};function $n(e,t,n){let r=h(n);if(r!==n&&t.call(e,r)){let i=Sn(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 Rn=new WeakMap,Ti=new WeakMap,jn=new WeakMap,Ii=new WeakMap;function Pi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $i(e){return e.__v_skip||!Object.isExtensible(e)?0:Pi(Sn(e))}function pt(e){return e&&e.__v_isReadonly?e:Fn(e,!1,mi,Ci,Rn)}function Nn(e){return Fn(e,!0,bi,Mi,jn)}function Fn(e,t,n,r,i){if(!me(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=$i(e);if(s===0)return e;let a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function h(e){return e&&h(e.__v_raw)||e}function qe(e){return!!(e&&e.__v_isRef===!0)}S("nextTick",()=>ot);S("dispatch",e=>X.bind(X,e));S("watch",(e,{evaluateLater:t,cleanup:n})=>(r,i)=>{let o=t(r),a=Pt(()=>{let u;return o(l=>u=l),u},i);n(a)});S("store",qr);S("data",e=>qt(e));S("root",e=>he(e));S("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=te(Ri(e))),e._x_refs_proxy));function Ri(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}var Ce={};function Ln(e){return Ce[e]||(Ce[e]=0),++Ce[e]}function ji(e,t){return ge(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Ni(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Ln(t))}S("id",(e,{cleanup:t})=>(n,r=null)=>{let i=`${n}${r?`-${r}`:""}`;return Fi(e,i,t,()=>{let o=ji(e,n),s=o?o._x_ids[n]:Ln(n);return r?`${n}-${s}-${r}`:`${n}-${s}`})});ye((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Fi(e,t,n,r){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n(()=>{delete e._x_id[t]}),i}S("el",e=>e);Bn("Focus","focus","focus");Bn("Persist","persist","persist");function Bn(e,t,n){S(t,r=>O(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}g("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),s=()=>{let c;return o(d=>c=d),c},a=r(`${t} = __placeholder`),u=c=>a(()=>{},{scope:{__placeholder:c}}),l=s();u(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let c=e._x_model.get,d=e._x_model.set,p=yn({get(){return c()},set(v){d(v)}},{get(){return s()},set(v){u(v)}});i(p)})});g("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&O("x-teleport can only be used on a <template> tag",e);let i=At(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{o.addEventListener(a,u=>{u.stopPropagation(),e.dispatchEvent(new u.constructor(u.type,u))})}),ee(o,{},e);let s=(a,u,l)=>{l.includes("prepend")?u.parentNode.insertBefore(a,u):l.includes("append")?u.parentNode.insertBefore(a,u.nextSibling):u.appendChild(a)};y(()=>{s(o,i,t),C(o),o._x_ignore=!0}),e._x_teleportPutBack=()=>{let a=At(n);y(()=>{s(e._x_teleport,a,t)})},r(()=>o.remove())});var Li=document.createElement("div");function At(e){let t=ne(()=>document.querySelector(e),()=>Li)();return t||O(`Cannot find x-teleport element for selector: "${e}"`),t}var Dn=()=>{};Dn.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};g("ignore",Dn);g("effect",ne((e,{expression:t},{effect:n})=>{n(b(e,t))}));function Ue(e,t,n,r){let i=e,o=u=>r(u),s={},a=(u,l)=>c=>l(u,c);if(n.includes("dot")&&(t=Bi(t)),n.includes("camel")&&(t=Di(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let u=n[n.indexOf("debounce")+1]||"invalid-wait",l=_e(u.split("ms")[0])?Number(u.split("ms")[0]):250;o=gn(o,l)}if(n.includes("throttle")){let u=n[n.indexOf("throttle")+1]||"invalid-wait",l=_e(u.split("ms")[0])?Number(u.split("ms")[0]):250;o=xn(o,l)}return n.includes("prevent")&&(o=a(o,(u,l)=>{l.preventDefault(),u(l)})),n.includes("stop")&&(o=a(o,(u,l)=>{l.stopPropagation(),u(l)})),n.includes("self")&&(o=a(o,(u,l)=>{l.target===e&&u(l)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,(u,l)=>{e.contains(l.target)||l.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&u(l))})),n.includes("once")&&(o=a(o,(u,l)=>{u(l),i.removeEventListener(t,o,s)})),o=a(o,(u,l)=>{ki(t)&&zi(l,n)||u(l)}),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Bi(e){return e.replace(/-/g,".")}function Di(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function _e(e){return!Array.isArray(e)&&!isNaN(e)}function Ki(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function ki(e){return["keydown","keyup"].includes(e)}function zi(e,t){let n=t.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,_e((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,_e((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Ot(e.key).includes(n[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&Ot(e.key).includes(n[0]))}function Ot(e){if(!e)return[];e=Ki(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:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}g("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=b(o,n),a;typeof n=="string"?a=b(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=b(o,`${n()} = __placeholder`):a=()=>{};let u=()=>{let p;return s(v=>p=v),Ct(p)?p.get():p},l=p=>{let v;s(M=>v=M),Ct(v)?v.set(p):a(()=>{},{scope:{__placeholder:p}})};typeof n=="string"&&e.type==="radio"&&y(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var c=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let d=P?()=>{}:Ue(e,c,t,p=>{l(Hi(e,t,p,u()))});if(t.includes("fill")&&([void 0,null,""].includes(u())||e.type==="checkbox"&&Array.isArray(u()))&&e.dispatchEvent(new Event(c,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=d,i(()=>e._x_removeModelListeners.default()),e.form){let p=Ue(e.form,"reset",[],v=>{ot(()=>e._x_model&&e._x_model.set(e.value))});i(()=>p())}e._x_model={get(){return u()},set(p){l(p)}},e._x_forceModelUpdate=p=>{p===void 0&&typeof n=="string"&&n.match(/\./)&&(p=""),window.fromModel=!0,y(()=>dn(e,"value",p)),delete window.fromModel},r(()=>{let p=u();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(p)})});function Hi(e,t,n,r){return y(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(e.type==="checkbox")if(Array.isArray(r)){let i=null;return t.includes("number")?i=Me(n.target.value):t.includes("boolean")?i=fe(n.target.value):i=n.target.value,n.target.checked?r.concat([i]):r.filter(o=>!Wi(o,i))}else return n.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return Me(o)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return fe(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text):t.includes("number")?Me(n.target.value):t.includes("boolean")?fe(n.target.value):t.includes("trim")?n.target.value.trim():n.target.value})}function Me(e){let t=e?parseFloat(e):null;return qi(t)?t:e}function Wi(e,t){return e==t}function qi(e){return!Array.isArray(e)&&!isNaN(e)}function Ct(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}g("cloak",e=>queueMicrotask(()=>y(()=>e.removeAttribute(q("cloak")))));Ft(()=>`[${q("init")}]`);g("init",ne((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));g("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{y(()=>{e.textContent=o})})})});g("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{y(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,C(e),delete e._x_ignoreSelf})})})});rt(tn(":",nn(q("bind:"))));var Kn=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o})=>{if(!t){let a={};Jr(a),b(e,r)(l=>{mn(e,l,i)},{scope:a});return}if(t==="key")return Ui(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=b(e,r);o(()=>s(a=>{a===void 0&&typeof r=="string"&&r.match(/\./)&&(a=""),y(()=>dn(e,t,a,n))}))};Kn.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};g("bind",Kn);function Ui(e,t){e._x_keyExpression=t}Nt(()=>`[${q("data")}]`);g("data",(e,{expression:t},{cleanup:n})=>{if(Ji(e))return;t=t===""?"{}":t;let r={};je(r,e);let i={};Yr(i,r);let o=F(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),je(o,e);let s=H(o);Ut(s);let a=ee(e,s);s.init&&F(e,s.init),n(()=>{s.destroy&&F(e,s.destroy),a()})});ye((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Ji(e){return P?ze?!0:e.hasAttribute("data-has-alpine-state"):!1}g("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=b(e,n);e._x_doHide||(e._x_doHide=()=>{y(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{y(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),u=Ke(d=>d?s():o(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,s,o):d?a():o()}),l,c=!0;r(()=>i(d=>{!c&&d===l||(t.includes("immediate")&&(d?a():o()),u(d),l=d,c=!1)}))});g("for",(e,{expression:t},{effect:n,cleanup:r})=>{let i=Yi(t),o=b(e,i.items),s=b(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>Vi(e,i,o,s)),r(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Vi(e,t,n,r){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;n(s=>{Gi(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let a=e._x_lookup,u=e._x_prevKeys,l=[],c=[];if(i(s))s=Object.entries(s).map(([f,_])=>{let x=Mt(t,_,f,s);r(m=>c.push(m),{scope:{index:f,...x}}),l.push(x)});else for(let f=0;f<s.length;f++){let _=Mt(t,s[f],f,s);r(x=>c.push(x),{scope:{index:f,..._}}),l.push(_)}let d=[],p=[],v=[],M=[];for(let f=0;f<u.length;f++){let _=u[f];c.indexOf(_)===-1&&v.push(_)}u=u.filter(f=>!v.includes(f));let ie="template";for(let f=0;f<c.length;f++){let _=c[f],x=u.indexOf(_);if(x===-1)u.splice(f,0,_),d.push([ie,f]);else if(x!==f){let m=u.splice(f,1)[0],w=u.splice(x-1,1)[0];u.splice(f,0,w),u.splice(x,0,m),p.push([m,w])}else M.push(_);ie=_}for(let f=0;f<v.length;f++){let _=v[f];a[_]._x_effects&&a[_]._x_effects.forEach(Tt),a[_].remove(),a[_]=null,delete a[_]}for(let f=0;f<p.length;f++){let[_,x]=p[f],m=a[_],w=a[x],K=document.createElement("div");y(()=>{w||O('x-for ":key" is undefined or invalid',o),w.after(K),m.after(w),w._x_currentIfEl&&w.after(w._x_currentIfEl),K.before(m),m._x_currentIfEl&&m.after(m._x_currentIfEl),K.remove()}),w._x_refreshXForScope(l[c.indexOf(x)])}for(let f=0;f<d.length;f++){let[_,x]=d[f],m=_==="template"?o:a[_];m._x_currentIfEl&&(m=m._x_currentIfEl);let w=l[x],K=c[x],U=document.importNode(o.content,!0).firstElementChild,_t=H(w);ee(U,_t,o),U._x_refreshXForScope=Hn=>{Object.entries(Hn).forEach(([Wn,qn])=>{_t[Wn]=qn})},y(()=>{m.after(U),C(U)}),typeof K=="object"&&O("x-for key cannot be an object, it must be a string or an integer",o),a[K]=U}for(let f=0;f<M.length;f++)a[M[f]]._x_refreshXForScope(l[c.indexOf(M[f])]);o._x_prevKeys=c})}function Yi(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(n,"").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 Mt(e,t,n,r){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]=n),e.collection&&(i[e.collection]=r),i}function Gi(e){return!Array.isArray(e)&&!isNaN(e)}function kn(){}kn.inline=(e,{expression:t},{cleanup:n})=>{let r=he(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};g("ref",kn);g("if",(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&O("x-if can only be used on a <template> tag",e);let i=b(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return ee(a,{},e),y(()=>{e.after(a),C(a)}),e._x_currentIfEl=a,e._x_undoIf=()=>{I(a,u=>{u._x_effects&&u._x_effects.forEach(Tt)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(a=>{a?o():s()})),r(()=>e._x_undoIf&&e._x_undoIf())});g("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>Ni(e,i))});ye((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});rt(tn("@",nn(q("on:"))));g("on",ne((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?b(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Ue(e,t,n,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));Ee("Collapse","collapse","collapse");Ee("Intersect","intersect","intersect");Ee("Focus","trap","focus");Ee("Mask","mask","mask");function Ee(e,t,n){g(t,r=>O(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}re.setEvaluator(Xt);re.setReactivityEngine({reactive:pt,effect:oi,release:si,raw:h});var Xi=re,Se=Xi;window.navigator&&navigator.serviceWorker&&navigator.serviceWorker.getRegistrations().then(function(e){for(let t of e)t.unregister()});window.Alpine=Se;var zn=3e4;Se.data("mainApp",()=>({userName:null,userEmail:null,formSuccess:!1,formFailure:!1,get nameWithLeadingSpace(){return this.userName?" "+this.userName:""},get successName(){if(!this.userName)return"";let e=this.userName.split(" ");return e.length==2&&e[0]?", "+e[0]:", "+this.userName},summonCalendly(e){let t={url:"https://calendly.com/jgoldfar/intro"};return(this.userName||this.userEmail)&&(t.prefill={name:this.userName??void 0,email:this.userEmail??void 0}),Calendly.initPopupWidget(t),!1},submitForm(e){e.preventDefault();let t=new FormData(e.target);return fetch("https://usebasin.com/f/c5e3a00dbed9",{method:"POST",headers:{Accept:"application/json"},body:t}).then(n=>{n.status===200?this.formSuccess=!0:(this.formFailure=!0,setTimeout(()=>{this.formFailure=!1},zn))}).catch(n=>{this.formFailure=!0,console.log(n),setTimeout(()=>{this.formFailure=!1},zn)})}}));Se.start();})();
//# sourceMappingURL=/index.js.map