turbo_ready 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b993e17245216b897140b5e4476fed7f00e3795d9ef9ceebcb6691469210ce7
4
- data.tar.gz: 653d43fab1bd749e70b93e8886e19522d597202f1625d481b37375b70638f95f
3
+ metadata.gz: 6c18879899ba91131127e6f8d03a90ea56ad4f7917bac8a5d403dbf626532d3f
4
+ data.tar.gz: 470e38e24eb8ef1e3fd60bd4629eb41137418ca8f3f362a2429a5da16b657f78
5
5
  SHA512:
6
- metadata.gz: 6d0197d33498f79600397767dd8cc1ed55cc388da38a67e38749b0088dc9fcd276f0e17f12a5fe84e44507e7c195c55fcbe5fd2ed05b1c51493d941045b52475
7
- data.tar.gz: 3d94b12994fc7c95598163de5164ab325398bd9052b7634e097a65d394844562d9b6e73491e9ea347f61dd9c678ba8f2bc16ea1546af050b836961b5023aaf50
6
+ metadata.gz: 5f0379ef951c692aba3cda0e8939f5259621e8f8fc0175190c84a50f57a980c0580ca78142bbfbc806d4da36c43bd0f6bbf369e7991b89a84c10143c8ca739c0
7
+ data.tar.gz: 1e0e6882ee9ee786003a65b02104f10038b3901ce9966972d65acae9ee084dc4667e84fcfa702ce3d3642d37fa09f2d21fc4f53303c77f7a38d95d1665d6a33b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- turbo_ready (0.1.1)
4
+ turbo_ready (0.1.2)
5
5
  rails (>= 6.1)
6
6
  turbo-rails (>= 1.1)
7
7
 
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  </h1>
12
12
  <p align="center">
13
13
  <a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
14
- <img alt="Lines of Code" src="https://img.shields.io/badge/loc-170-47d299.svg" />
14
+ <img alt="Lines of Code" src="https://img.shields.io/badge/loc-167-47d299.svg" />
15
15
  </a>
16
16
  <a href="https://codeclimate.com/github/hopsoft/turbo_ready/maintainability">
17
17
  <img src="https://api.codeclimate.com/v1/badges/a69b6f73abc3ccd49261/maintainability" />
@@ -3,5 +3,5 @@ function rr(e,t,n={}){let r=new CustomEvent(t,n);e.forEach(i=>i.dispatchEvent(r)
3
3
  ${n?'Expression: "'+n+`"
4
4
 
5
5
  `:""}`,t),setTimeout(()=>{throw e},0)}var ve=!0;function br(e){let t=ve;ve=!1,e(),ve=t}function Z(e,t,n={}){let r;return C(e,t)(i=>r=i,n),r}function C(...e){return Vt(...e)}var Vt=Ut;function wr(e){Vt=e}function Ut(e,t){let n={};Ue(n,e);let r=[n,...Q(e)];if(typeof t=="function")return Er(r,t);let i=Sr(r,t,e);return yr.bind(null,e,t,i)}function Er(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let a=t.apply(pe([r,...e]),i);me(n,a)}}var De={};function Ar(e,t){if(De[e])return De[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,a=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(o){return ce(o,t,e),Promise.resolve()}})();return De[e]=a,a}function Sr(e,t,n){let r=Ar(t,n);return(i=()=>{},{scope:a={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let s=pe([a,...e]);if(typeof r=="function"){let l=r(r,s).catch(u=>ce(u,n,t));r.finished?(me(i,r.result,s,o,n),r.result=void 0):l.then(u=>{me(i,u,s,o,n)}).catch(u=>ce(u,n,t)).finally(()=>r.result=void 0)}}}function me(e,t,n,r,i){if(ve&&typeof t=="function"){let a=t.apply(n,r);a instanceof Promise?a.then(o=>me(e,o,n,r)).catch(o=>ce(o,i,t)):e(a)}else e(t)}var ut="x-";function ne(e=""){return ut+e}function Or(e){ut=e}var Yt={};function E(e,t){Yt[e]=t}function ct(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let a=Object.entries(e._x_virtualDirectives).map(([s,l])=>({name:s,value:l})),o=Gt(a);a=a.map(s=>o.find(l=>l.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(a)}let r={};return t.map(en((a,o)=>r[a]=o)).filter(nn).map(Mr(r,n)).sort(Nr).map(a=>Tr(e,a))}function Gt(e){return Array.from(e).map(en()).filter(t=>!nn(t))}var Ye=!1,oe=new Map,Jt=Symbol();function Cr(e){Ye=!0;let t=Symbol();Jt=t,oe.set(t,[]);let n=()=>{for(;oe.get(t).length;)oe.get(t).shift()();oe.delete(t)},r=()=>{Ye=!1,n()};e(n),r()}function Zt(e){let t=[],n=s=>t.push(s),[r,i]=cr(e);return t.push(i),[{Alpine:_e,effect:r,cleanup:n,evaluateLater:C.bind(C,e),evaluate:Z.bind(Z,e)},()=>t.forEach(s=>s())]}function Tr(e,t){let n=()=>{},r=Yt[t.type]||n,[i,a]=Zt(e);pr(e,t.original,a);let o=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Ye?oe.get(Jt).push(r):r())};return o.runCleanups=a,o}var Qt=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Xt=e=>e;function en(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=tn.reduce((a,o)=>o(a),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var tn=[];function ft(e){tn.push(e)}function nn({name:e}){return rn().test(e)}var rn=()=>new RegExp(`^${ut}([^:^.]+)\\b`);function Mr(e,t){return({name:n,value:r})=>{let i=n.match(rn()),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(l=>l.replace(".","")),expression:r,original:s}}}var Ge="DEFAULT",he=["ignore","ref","data","id","tabs","radio","switch","disclosure","bind","init","for","mask","model","modelable","transition","show","if",Ge,"teleport"];function Nr(e,t){let n=he.indexOf(e.type)===-1?Ge:e.type,r=he.indexOf(t.type)===-1?Ge:t.type;return he.indexOf(n)-he.indexOf(r)}function le(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Je=[],dt=!1;function an(e=()=>{}){return queueMicrotask(()=>{dt||setTimeout(()=>{Ze()})}),new Promise(t=>{Je.push(()=>{e(),t()})})}function Ze(){for(dt=!1;Je.length;)Je.shift()()}function Rr(){dt=!0}function G(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>G(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)G(r,t,!1),r=r.nextElementSibling}function X(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Pr(){document.body||X("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),le(document,"alpine:init"),le(document,"alpine:initializing"),Bt(),fr(t=>H(t,G)),Kt(t=>Ir(t)),dr((t,n)=>{ct(t,n).forEach(r=>r())});let e=t=>!we(t.parentElement,!0);Array.from(document.querySelectorAll(ln())).filter(e).forEach(t=>{H(t)}),le(document,"alpine:initialized")}var pt=[],on=[];function sn(){return pt.map(e=>e())}function ln(){return pt.concat(on).map(e=>e())}function un(e){pt.push(e)}function cn(e){on.push(e)}function we(e,t=!1){return Ee(e,n=>{if((t?ln():sn()).some(i=>n.matches(i)))return!0})}function Ee(e,t){if(!!e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return Ee(e.parentElement,t)}}function $r(e){return sn().some(t=>e.matches(t))}function H(e,t=G){Cr(()=>{t(e,(n,r)=>{ct(n,n.attributes).forEach(i=>i()),n._x_ignore&&r()})})}function Ir(e){G(e,t=>Dt(t))}function _t(e,t){return Array.isArray(t)?Mt(e,t.join(" ")):typeof t=="object"&&t!==null?kr(e,t):typeof t=="function"?_t(e,t()):Mt(e,t)}function Mt(e,t){let n=a=>a.split(" ").filter(Boolean),r=a=>a.split(" ").filter(o=>!e.classList.contains(o)).filter(Boolean),i=a=>(e.classList.add(...a),()=>{e.classList.remove(...a)});return t=t===!0?t="":t||"",i(r(t))}function kr(e,t){let n=s=>s.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([s,l])=>l?n(s):!1).filter(Boolean),i=Object.entries(t).flatMap(([s,l])=>l?!1:n(s)).filter(Boolean),a=[],o=[];return i.forEach(s=>{e.classList.contains(s)&&(e.classList.remove(s),o.push(s))}),r.forEach(s=>{e.classList.contains(s)||(e.classList.add(s),a.push(s))}),()=>{o.forEach(s=>e.classList.add(s)),a.forEach(s=>e.classList.remove(s))}}function Ae(e,t){return typeof t=="object"&&t!==null?Lr(e,t):Fr(e,t)}function Lr(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=jr(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Ae(e,n)}}function Fr(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function jr(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Qe(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}E("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r?Kr(e,r,t):Dr(e,n,t)});function Kr(e,t,n){fn(e,_t,""),{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 Dr(e,t,n){fn(e,Ae);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),a=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((v,y)=>y<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((v,y)=>y>t.indexOf("out")));let o=!t.includes("opacity")&&!t.includes("scale"),s=o||t.includes("opacity"),l=o||t.includes("scale"),u=s?0:1,f=l?ie(t,"scale",95)/100:1,_=ie(t,"delay",0),x=ie(t,"origin","center"),R="opacity, transform",w=ie(t,"duration",150)/1e3,J=ie(t,"duration",75)/1e3,d="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:x,transitionDelay:_,transitionProperty:R,transitionDuration:`${w}s`,transitionTimingFunction:d},e._x_transition.enter.start={opacity:u,transform:`scale(${f})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),a&&(e._x_transition.leave.during={transformOrigin:x,transitionDelay:_,transitionProperty:R,transitionDuration:`${J}s`,transitionTimingFunction:d},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${f})`})}function fn(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=()=>{}){Xe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){Xe(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,a=()=>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):a():e._x_transition?e._x_transition.in(n):a();return}e._x_hidePromise=e._x_transition?new Promise((o,s)=>{e._x_transition.out(()=>{},()=>o(r)),e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let o=dn(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):i(()=>{let s=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(s)]).then(([f])=>f());return delete l._x_hidePromise,delete l._x_hideChildren,u};s(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function dn(e){let t=e.parentNode;if(!!t)return t._x_hidePromise?t:dn(t)}function Xe(e,t,{during:n,start:r,end:i}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){a(),o();return}let s,l,u;Br(e,{start(){s=t(e,r)},during(){l=t(e,n)},before:a,end(){s(),u=t(e,i)},after:o,cleanup(){l(),u()}})}function Br(e,t){let n,r,i,a=Qe(()=>{A(()=>{n=!0,r||t.before(),i||(t.end(),Ze()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:Qe(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},A(()=>{t.start(),t.during()}),Rr(),requestAnimationFrame(()=>{if(n)return;let o=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,s=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),A(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(A(()=>{t.end()}),Ze(),setTimeout(e._x_transitioning.finish,o+s),i=!0)})})}function ie(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"){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 et=!1;function Se(e,t=()=>{}){return(...n)=>et?t(...n):e(...n)}function Hr(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),et=!0,qr(()=>{zr(t)}),et=!1}function zr(e){let t=!1;H(e,(r,i)=>{G(r,(a,o)=>{if(t&&$r(a))return o();t=!0,i(a,o)})})}function qr(e){let t=fe;Ct((n,r)=>{let i=t(n);return be(i),()=>{}}),e(),Ct(t)}function pn(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=te({})),e._x_bindings[t]=n,t=r.includes("camel")?Zr(t):t,t){case"value":Wr(e,n);break;case"style":Ur(e,n);break;case"class":Vr(e,n);break;default:Yr(e,t,n);break}}function Wr(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=Nt(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>Nt(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Jr(e,t);else{if(e.value===t)return;e.value=t}}function Vr(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=_t(e,t)}function Ur(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Ae(e,t)}function Yr(e,t,n){[null,void 0,!1].includes(n)&&Qr(t)?e.removeAttribute(t):(_n(t)&&(n=t),Gr(e,t,n))}function Gr(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Jr(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function Zr(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Nt(e,t){return e==t}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 Qr(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Xr(e,t,n){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:_n(t)?!![t,"true"].includes(r):r}function hn(e,t){var n;return function(){var r=this,i=arguments,a=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(a,t)}}function gn(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function ei(e){e(_e)}var W={},Rt=!1;function ti(e,t){if(Rt||(W=te(W),Rt=!0),t===void 0)return W[e];W[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&W[e].init(),zt(W[e])}function ni(){return W}var vn={};function ri(e,t){let n=typeof t!="function"?()=>t:t;e instanceof Element?xn(e,n()):vn[e]=n}function ii(e){return Object.entries(vn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function xn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([o,s])=>({name:o,value:s})),a=Gt(i);i=i.map(o=>a.find(s=>s.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),ct(e,i,n).map(o=>{r.push(o.runCleanups),o()})}var mn={};function ai(e,t){mn[e]=t}function oi(e,t){return Object.entries(mn).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var si={get reactive(){return te},get release(){return be},get effect(){return fe},get raw(){return kt},version:"3.10.4",flushAndStopDeferringMutations:xr,dontAutoEvaluateFunctions:br,disableEffectScheduling:lr,setReactivityEngine:ur,closestDataStack:Q,skipDuringClone:Se,addRootSelector:un,addInitSelector:cn,addScopeToNode:de,deferMutations:vr,mapAttributes:ft,evaluateLater:C,setEvaluator:wr,mergeProxies:pe,findClosest:Ee,closestRoot:we,interceptor:qt,transition:Xe,setStyles:Ae,mutateDom:A,directive:E,throttle:gn,debounce:hn,evaluate:Z,initTree:H,nextTick:an,prefixed:ne,prefix:Or,plugin:ei,magic:k,store:ti,start:Pr,clone:Hr,bound:Xr,$data:Ht,data:ai,bind:ri},_e=si;function yn(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 li="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ha=yn(li+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),ui=Object.freeze({}),ga=Object.freeze([]),bn=Object.assign,ci=Object.prototype.hasOwnProperty,Oe=(e,t)=>ci.call(e,t),U=Array.isArray,ue=e=>wn(e)==="[object Map]",fi=e=>typeof e=="string",ht=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",di=Object.prototype.toString,wn=e=>di.call(e),En=e=>wn(e).slice(8,-1),gt=e=>fi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Te=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pi=/-(\w)/g,va=Te(e=>e.replace(pi,(t,n)=>n?n.toUpperCase():"")),_i=/\B([A-Z])/g,xa=Te(e=>e.replace(_i,"-$1").toLowerCase()),An=Te(e=>e.charAt(0).toUpperCase()+e.slice(1)),ma=Te(e=>e?`on${An(e)}`:""),Sn=(e,t)=>e!==t&&(e===e||t===t),tt=new WeakMap,ae=[],j,Y=Symbol("iterate"),nt=Symbol("Map key iterate");function hi(e){return e&&e._isEffect===!0}function gi(e,t=ui){hi(e)&&(e=e.raw);let n=mi(e,t);return t.lazy||n(),n}function vi(e){e.active&&(On(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var xi=0;function mi(e,t){let n=function(){if(!n.active)return e();if(!ae.includes(n)){On(n);try{return bi(),ae.push(n),j=n,e()}finally{ae.pop(),Cn(),j=ae[ae.length-1]}}};return n.id=xi++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function On(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var ee=!0,vt=[];function yi(){vt.push(ee),ee=!1}function bi(){vt.push(ee),ee=!0}function Cn(){let e=vt.pop();ee=e===void 0?!0:e}function I(e,t,n){if(!ee||j===void 0)return;let r=tt.get(e);r||tt.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(j)||(i.add(j),j.deps.push(i),j.options.onTrack&&j.options.onTrack({effect:j,target:e,type:t,key:n}))}function z(e,t,n,r,i,a){let o=tt.get(e);if(!o)return;let s=new Set,l=f=>{f&&f.forEach(_=>{(_!==j||_.allowRecurse)&&s.add(_)})};if(t==="clear")o.forEach(l);else if(n==="length"&&U(e))o.forEach((f,_)=>{(_==="length"||_>=r)&&l(f)});else switch(n!==void 0&&l(o.get(n)),t){case"add":U(e)?gt(n)&&l(o.get("length")):(l(o.get(Y)),ue(e)&&l(o.get(nt)));break;case"delete":U(e)||(l(o.get(Y)),ue(e)&&l(o.get(nt)));break;case"set":ue(e)&&l(o.get(Y));break}let u=f=>{f.options.onTrigger&&f.options.onTrigger({effect:f,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:a}),f.options.scheduler?f.options.scheduler(f):f()};s.forEach(u)}var wi=yn("__proto__,__v_isRef,__isVue"),Tn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(ht)),Ei=Me(),Ai=Me(!1,!0),Si=Me(!0),Oi=Me(!0,!0),ye={};["includes","indexOf","lastIndexOf"].forEach(e=>{let t=Array.prototype[e];ye[e]=function(...n){let r=m(this);for(let a=0,o=this.length;a<o;a++)I(r,"get",a+"");let i=t.apply(r,n);return i===-1||i===!1?t.apply(r,n.map(m)):i}});["push","pop","shift","unshift","splice"].forEach(e=>{let t=Array.prototype[e];ye[e]=function(...n){yi();let r=t.apply(this,n);return Cn(),r}});function Me(e=!1,t=!1){return function(r,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&a===(e?t?Li:Hn:t?ki:Bn).get(r))return r;let o=U(r);if(!e&&o&&Oe(ye,i))return Reflect.get(ye,i,a);let s=Reflect.get(r,i,a);return(ht(i)?Tn.has(i):wi(i))||(e||I(r,"get",i),t)?s:rt(s)?!o||!gt(i)?s.value:s:Ce(s)?e?zn(s):bt(s):s}}var Ci=Mn(),Ti=Mn(!0);function Mn(e=!1){return function(n,r,i,a){let o=n[r];if(!e&&(i=m(i),o=m(o),!U(n)&&rt(o)&&!rt(i)))return o.value=i,!0;let s=U(n)&&gt(r)?Number(r)<n.length:Oe(n,r),l=Reflect.set(n,r,i,a);return n===m(a)&&(s?Sn(i,o)&&z(n,"set",r,i,o):z(n,"add",r,i)),l}}function Mi(e,t){let n=Oe(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&z(e,"delete",t,void 0,r),i}function Ni(e,t){let n=Reflect.has(e,t);return(!ht(t)||!Tn.has(t))&&I(e,"has",t),n}function Ri(e){return I(e,"iterate",U(e)?"length":Y),Reflect.ownKeys(e)}var Nn={get:Ei,set:Ci,deleteProperty:Mi,has:Ni,ownKeys:Ri},Rn={get:Si,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}},ya=bn({},Nn,{get:Ai,set:Ti}),ba=bn({},Rn,{get:Oi}),xt=e=>Ce(e)?bt(e):e,mt=e=>Ce(e)?zn(e):e,yt=e=>e,Ne=e=>Reflect.getPrototypeOf(e);function Re(e,t,n=!1,r=!1){e=e.__v_raw;let i=m(e),a=m(t);t!==a&&!n&&I(i,"get",t),!n&&I(i,"get",a);let{has:o}=Ne(i),s=r?yt:n?mt:xt;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Pe(e,t=!1){let n=this.__v_raw,r=m(n),i=m(e);return e!==i&&!t&&I(r,"has",e),!t&&I(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function $e(e,t=!1){return e=e.__v_raw,!t&&I(m(e),"iterate",Y),Reflect.get(e,"size",e)}function Pn(e){e=m(e);let t=m(this);return Ne(t).has.call(t,e)||(t.add(e),z(t,"add",e,e)),this}function $n(e,t){t=m(t);let n=m(this),{has:r,get:i}=Ne(n),a=r.call(n,e);a?Dn(n,r,e):(e=m(e),a=r.call(n,e));let o=i.call(n,e);return n.set(e,t),a?Sn(t,o)&&z(n,"set",e,t,o):z(n,"add",e,t),this}function In(e){let t=m(this),{has:n,get:r}=Ne(t),i=n.call(t,e);i?Dn(t,n,e):(e=m(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&z(t,"delete",e,void 0,a),o}function kn(){let e=m(this),t=e.size!==0,n=ue(e)?new Map(e):new Set(e),r=e.clear();return t&&z(e,"clear",void 0,void 0,n),r}function Ie(e,t){return function(r,i){let a=this,o=a.__v_raw,s=m(o),l=t?yt:e?mt:xt;return!e&&I(s,"iterate",Y),o.forEach((u,f)=>r.call(i,l(u),l(f),a))}}function ge(e,t,n){return function(...r){let i=this.__v_raw,a=m(i),o=ue(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),f=n?yt:t?mt:xt;return!t&&I(a,"iterate",l?nt:Y),{next(){let{value:_,done:x}=u.next();return x?{value:_,done:x}:{value:s?[f(_[0]),f(_[1])]:f(_),done:x}},[Symbol.iterator](){return this}}}}function B(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";console.warn(`${An(e)} operation ${n}failed: target is readonly.`,m(this))}return e==="delete"?!1:this}}var Ln={get(e){return Re(this,e)},get size(){return $e(this)},has:Pe,add:Pn,set:$n,delete:In,clear:kn,forEach:Ie(!1,!1)},Fn={get(e){return Re(this,e,!1,!0)},get size(){return $e(this)},has:Pe,add:Pn,set:$n,delete:In,clear:kn,forEach:Ie(!1,!0)},jn={get(e){return Re(this,e,!0)},get size(){return $e(this,!0)},has(e){return Pe.call(this,e,!0)},add:B("add"),set:B("set"),delete:B("delete"),clear:B("clear"),forEach:Ie(!0,!1)},Kn={get(e){return Re(this,e,!0,!0)},get size(){return $e(this,!0)},has(e){return Pe.call(this,e,!0)},add:B("add"),set:B("set"),delete:B("delete"),clear:B("clear"),forEach:Ie(!0,!0)},Pi=["keys","values","entries",Symbol.iterator];Pi.forEach(e=>{Ln[e]=ge(e,!1,!1),jn[e]=ge(e,!0,!1),Fn[e]=ge(e,!1,!0),Kn[e]=ge(e,!0,!0)});function ke(e,t){let n=t?e?Kn:Fn:e?jn:Ln;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Oe(n,i)&&i in r?n:r,i,a)}var $i={get:ke(!1,!1)},wa={get:ke(!1,!0)},Ii={get:ke(!0,!1)},Ea={get:ke(!0,!0)};function Dn(e,t,n){let r=m(n);if(r!==n&&t.call(e,r)){let i=En(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 Bn=new WeakMap,ki=new WeakMap,Hn=new WeakMap,Li=new WeakMap;function Fi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ji(e){return e.__v_skip||!Object.isExtensible(e)?0:Fi(En(e))}function bt(e){return e&&e.__v_isReadonly?e:qn(e,!1,Nn,$i,Bn)}function zn(e){return qn(e,!0,Rn,Ii,Hn)}function qn(e,t,n,r,i){if(!Ce(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=i.get(e);if(a)return a;let o=ji(e);if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function m(e){return e&&m(e.__v_raw)||e}function rt(e){return Boolean(e&&e.__v_isRef===!0)}k("nextTick",()=>an);k("dispatch",e=>le.bind(le,e));k("watch",(e,{evaluateLater:t,effect:n})=>(r,i)=>{let a=t(r),o=!0,s,l=n(()=>a(u=>{JSON.stringify(u),o?s=u:queueMicrotask(()=>{i(u,s),s=u}),o=!1}));e._x_effects.delete(l)});k("store",ni);k("data",e=>Ht(e));k("root",e=>we(e));k("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=pe(Ki(e))),e._x_refs_proxy));function Ki(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}var Be={};function Wn(e){return Be[e]||(Be[e]=0),++Be[e]}function Di(e,t){return Ee(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Bi(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Wn(t))}k("id",e=>(t,n=null)=>{let r=Di(e,t),i=r?r._x_ids[t]:Wn(t);return n?`${t}-${i}-${n}`:`${t}-${i}`});k("el",e=>e);Vn("Focus","focus","focus");Vn("Persist","persist","persist");function Vn(e,t,n){k(t,r=>X(`You can't use [$${directiveName}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}E("modelable",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t),a=()=>{let u;return i(f=>u=f),u},o=r(`${t} = __placeholder`),s=u=>o(()=>{},{scope:{__placeholder:u}}),l=a();s(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,f=e._x_model.set;n(()=>s(u())),n(()=>f(a()))})});E("teleport",(e,{expression:t},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&X("x-teleport can only be used on a <template> tag",e);let r=document.querySelector(t);r||X(`Cannot find x-teleport element for selector: "${t}"`);let i=e.content.cloneNode(!0).firstElementChild;e._x_teleport=i,i._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{i.addEventListener(a,o=>{o.stopPropagation(),e.dispatchEvent(new o.constructor(o.type,o))})}),de(i,{},e),A(()=>{r.appendChild(i),H(i),i._x_ignore=!0}),n(()=>i.remove())});var Un=()=>{};Un.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})};E("ignore",Un);E("effect",(e,{expression:t},{effect:n})=>n(C(e,t)));function Yn(e,t,n,r){let i=e,a=l=>r(l),o={},s=(l,u)=>f=>u(l,f);if(n.includes("dot")&&(t=Hi(t)),n.includes("camel")&&(t=zi(t)),n.includes("passive")&&(o.passive=!0),n.includes("capture")&&(o.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("prevent")&&(a=s(a,(l,u)=>{u.preventDefault(),l(u)})),n.includes("stop")&&(a=s(a,(l,u)=>{u.stopPropagation(),l(u)})),n.includes("self")&&(a=s(a,(l,u)=>{u.target===e&&l(u)})),(n.includes("away")||n.includes("outside"))&&(i=document,a=s(a,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),n.includes("once")&&(a=s(a,(l,u)=>{l(u),i.removeEventListener(t,a,o)})),a=s(a,(l,u)=>{Wi(t)&&Vi(u,n)||l(u)}),n.includes("debounce")){let l=n[n.indexOf("debounce")+1]||"invalid-wait",u=it(l.split("ms")[0])?Number(l.split("ms")[0]):250;a=hn(a,u)}if(n.includes("throttle")){let l=n[n.indexOf("throttle")+1]||"invalid-wait",u=it(l.split("ms")[0])?Number(l.split("ms")[0]):250;a=gn(a,u)}return i.addEventListener(t,a,o),()=>{i.removeEventListener(t,a,o)}}function Hi(e){return e.replace(/-/g,".")}function zi(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function it(e){return!Array.isArray(e)&&!isNaN(e)}function qi(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Wi(e){return["keydown","keyup"].includes(e)}function Vi(e,t){let n=t.filter(a=>!["window","document","prevent","stop","once"].includes(a));if(n.includes("debounce")){let a=n.indexOf("debounce");n.splice(a,it((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Pt(e.key).includes(n[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(a=>n.includes(a));return n=n.filter(a=>!i.includes(a)),!(i.length>0&&i.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),e[`${o}Key`])).length===i.length&&Pt(e.key).includes(n[0]))}function Pt(e){if(!e)return[];e=qi(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:"="};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}E("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let a=C(e,n),o=`${n} = rightSideOfExpression($event, ${n})`,s=C(e,o);var l=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let u=Ui(e,t,n),f=Yn(e,l,t,x=>{s(()=>{},{scope:{$event:x,rightSideOfExpression:u}})});e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=f,i(()=>e._x_removeModelListeners.default());let _=C(e,`${n} = __placeholder`);e._x_model={get(){let x;return a(R=>x=R),x},set(x){_(()=>{},{scope:{__placeholder:x}})}},e._x_forceModelUpdate=()=>{a(x=>{x===void 0&&n.match(/\./)&&(x=""),window.fromModel=!0,A(()=>pn(e,"value",x)),delete window.fromModel})},r(()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()})});function Ui(e,t,n){return e.type==="radio"&&A(()=>{e.hasAttribute("name")||e.setAttribute("name",n)}),(r,i)=>A(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail||r.target.value;if(e.type==="checkbox")if(Array.isArray(i)){let a=t.includes("number")?He(r.target.value):r.target.value;return r.target.checked?i.concat([a]):i.filter(o=>!Yi(o,a))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map(a=>{let o=a.value||a.text;return He(o)}):Array.from(r.target.selectedOptions).map(a=>a.value||a.text);{let a=r.target.value;return t.includes("number")?He(a):t.includes("trim")?a.trim():a}}})}function He(e){let t=e?parseFloat(e):null;return Gi(t)?t:e}function Yi(e,t){return e==t}function Gi(e){return!Array.isArray(e)&&!isNaN(e)}E("cloak",e=>queueMicrotask(()=>A(()=>e.removeAttribute(ne("cloak")))));cn(()=>`[${ne("init")}]`);E("init",Se((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));E("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(a=>{A(()=>{e.textContent=a})})})});E("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(a=>{A(()=>{e.innerHTML=a,e._x_ignoreSelf=!0,H(e),delete e._x_ignoreSelf})})})});ft(Qt(":",Xt(ne("bind:"))));E("bind",(e,{value:t,modifiers:n,expression:r,original:i},{effect:a})=>{if(!t){let s={};ii(s),C(e,r)(u=>{xn(e,u,i)},{scope:s});return}if(t==="key")return Ji(e,r);let o=C(e,r);a(()=>o(s=>{s===void 0&&typeof r=="string"&&r.match(/\./)&&(s=""),A(()=>pn(e,t,s,n))}))});function Ji(e,t){e._x_keyExpression=t}un(()=>`[${ne("data")}]`);E("data",Se((e,{expression:t},{cleanup:n})=>{t=t===""?"{}":t;let r={};Ue(r,e);let i={};oi(i,r);let a=Z(e,t,{scope:i});a===void 0&&(a={}),Ue(a,e);let o=te(a);zt(o);let s=de(e,o);o.init&&Z(e,o.init),n(()=>{o.destroy&&Z(e,o.destroy),s()})}));E("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=C(e,n);e._x_doHide||(e._x_doHide=()=>{A(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{A(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let a=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},s=()=>setTimeout(o),l=Qe(_=>_?o():a(),_=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,_,o,a):_?s():a()}),u,f=!0;r(()=>i(_=>{!f&&_===u||(t.includes("immediate")&&(_?s():a()),l(_),u=_,f=!1)}))});E("for",(e,{expression:t},{effect:n,cleanup:r})=>{let i=Qi(t),a=C(e,i.items),o=C(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>Zi(e,i,a,o)),r(()=>{Object.values(e._x_lookup).forEach(s=>s.remove()),delete e._x_prevKeys,delete e._x_lookup})});function Zi(e,t,n,r){let i=o=>typeof o=="object"&&!Array.isArray(o),a=e;n(o=>{Xi(o)&&o>=0&&(o=Array.from(Array(o).keys(),d=>d+1)),o===void 0&&(o=[]);let s=e._x_lookup,l=e._x_prevKeys,u=[],f=[];if(i(o))o=Object.entries(o).map(([d,v])=>{let y=$t(t,v,d,o);r(O=>f.push(O),{scope:{index:d,...y}}),u.push(y)});else for(let d=0;d<o.length;d++){let v=$t(t,o[d],d,o);r(y=>f.push(y),{scope:{index:d,...v}}),u.push(v)}let _=[],x=[],R=[],w=[];for(let d=0;d<l.length;d++){let v=l[d];f.indexOf(v)===-1&&R.push(v)}l=l.filter(d=>!R.includes(d));let J="template";for(let d=0;d<f.length;d++){let v=f[d],y=l.indexOf(v);if(y===-1)l.splice(d,0,v),_.push([J,d]);else if(y!==d){let O=l.splice(d,1)[0],T=l.splice(y-1,1)[0];l.splice(d,0,T),l.splice(y,0,O),x.push([O,T])}else w.push(v);J=v}for(let d=0;d<R.length;d++){let v=R[d];s[v]._x_effects&&s[v]._x_effects.forEach(It),s[v].remove(),s[v]=null,delete s[v]}for(let d=0;d<x.length;d++){let[v,y]=x[d],O=s[v],T=s[y],D=document.createElement("div");A(()=>{T.after(D),O.after(T),T._x_currentIfEl&&T.after(T._x_currentIfEl),D.before(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),D.remove()}),Tt(T,u[f.indexOf(y)])}for(let d=0;d<_.length;d++){let[v,y]=_[d],O=v==="template"?a:s[v];O._x_currentIfEl&&(O=O._x_currentIfEl);let T=u[y],D=f[y],$=document.importNode(a.content,!0).firstElementChild;de($,te(T),a),A(()=>{O.after($),H($)}),typeof D=="object"&&X("x-for key cannot be an object, it must be a string or an integer",a),s[D]=$}for(let d=0;d<w.length;d++)Tt(s[w[d]],u[f.indexOf(w[d])]);a._x_prevKeys=f})}function Qi(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(r);if(!i)return;let a={};a.items=i[2].trim();let o=i[1].replace(n,"").trim(),s=o.match(t);return s?(a.item=o.replace(t,"").trim(),a.index=s[1].trim(),s[2]&&(a.collection=s[2].trim())):a.item=o,a}function $t(e,t,n,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,s)=>{i[o]=t[s]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{i[o]=t[o]}):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function Xi(e){return!Array.isArray(e)&&!isNaN(e)}function Gn(){}Gn.inline=(e,{expression:t},{cleanup:n})=>{let r=we(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};E("ref",Gn);E("if",(e,{expression:t},{effect:n,cleanup:r})=>{let i=C(e,t),a=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let s=e.content.cloneNode(!0).firstElementChild;return de(s,{},e),A(()=>{e.after(s),H(s)}),e._x_currentIfEl=s,e._x_undoIf=()=>{G(s,l=>{l._x_effects&&l._x_effects.forEach(It)}),s.remove(),delete e._x_currentIfEl},s},o=()=>{!e._x_undoIf||(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(s=>{s?a():o()})),r(()=>e._x_undoIf&&e._x_undoIf())});E("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>Bi(e,i))});ft(Qt("@",Xt(ne("on:"))));E("on",Se((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let a=r?C(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=Yn(e,t,n,s=>{a(()=>{},{scope:{$event:s},params:[s]})});i(()=>o())}));Le("Collapse","collapse","collapse");Le("Intersect","intersect","intersect");Le("Focus","trap","focus");Le("Mask","mask","mask");function Le(e,t,n){E(t,r=>X(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}_e.setEvaluator(Ut);_e.setReactivityEngine({reactive:bt,effect:gi,release:vi,raw:m});var ea=_e,wt=ea;var ta=class{el=void 0;constructor(e){this.el=e}traversals={first:"firstElementChild",next:"nextElementSibling",parent:"parentElement"};nodes(){return this.traversals={first:"firstChild",next:"nextSibling",parent:"parentNode"},this}first(){return this.teleportTo(this.el[this.traversals.first])}next(){return this.teleportTo(this.teleportBack(this.el[this.traversals.next]))}before(e){return this.el[this.traversals.parent].insertBefore(e,this.el),e}replace(e){return this.el[this.traversals.parent].replaceChild(e,this.el),e}append(e){return this.el.appendChild(e),e}teleportTo(e){return e&&(e._x_teleport?e._x_teleport:e)}teleportBack(e){return e&&(e._x_teleportBack?e._x_teleportBack:e)}};function S(e){return new ta(e)}function na(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function ra(e){return e.nodeType===3||e.nodeType===8}var Jn=()=>{},Zn=()=>{};async function Et(e,t,n){let r,i,a,o,s,l,u,f,_,x,R;function w(c){if(!!R)return Zn((c||"").replace(`
6
- `,"\\n"),r,i),new Promise(p=>Jn=()=>p())}function J(c={}){let p=P=>P.getAttribute("key"),h=()=>{};s=c.updating||h,l=c.updated||h,u=c.removing||h,f=c.removed||h,_=c.adding||h,x=c.added||h,a=c.key||p,o=c.lookahead||!1,R=c.debug||!1}async function d(c,p){if(v(c,p)){let P=y(c,p);return await w("Swap elements"),P}let h=!1;if(!re(s,c,p,()=>h=!0)){if(window.Alpine&&ia(c,p,()=>h=!0),ra(p)){await O(c,p),l(c,p);return}h||await T(c,p),l(c,p),await D(c,p)}}function v(c,p){return c.nodeType!=p.nodeType||c.nodeName!=p.nodeName||$(c)!=$(p)}function y(c,p){if(re(u,c))return;let h=p.cloneNode(!0);re(_,h)||(S(c).replace(h),f(c),x(h))}async function O(c,p){let h=p.nodeValue;c.nodeValue!==h&&(c.nodeValue=h,await w("Change text node to: "+h))}async function T(c,p){if(c._x_isShown&&!p._x_isShown||!c._x_isShown&&p._x_isShown)return;let h=Array.from(c.attributes),P=Array.from(p.attributes);for(let K=h.length-1;K>=0;K--){let L=h[K].name;p.hasAttribute(L)||(c.removeAttribute(L),await w("Remove attribute"))}for(let K=P.length-1;K>=0;K--){let L=P[K].name,b=P[K].value;c.getAttribute(L)!==b&&(c.setAttribute(L,b),await w(`Set [${L}] attribute to: "${b}"`))}}async function D(c,p){let h=c.childNodes,P=p.childNodes,K=At(P),L=At(h),b=S(p).nodes().first(),g=S(c).nodes().first(),q={};for(;b;){let M=$(b),F=$(g);if(!g)if(M&&q[M]){let N=q[M];S(c).append(N),g=N,await w("Add element (from key)")}else{let N=tr(b,c)||{};await w("Add element: "+(N.outerHTML||N.nodeValue)),b=S(b).nodes().next();continue}if(o){let N=S(b).next(),St=!1;for(;!St&&N;)g.isEqualNode(N)&&(St=!0,g=Fe(b,g),F=$(g),await w("Move element (lookahead)")),N=S(N).next()}if(M!==F){if(!M&&F){q[F]=g,g=Fe(b,g),q[F].remove(),g=S(g).nodes().next(),b=S(b).nodes().next(),await w('No "to" key');continue}if(M&&!F&&L[M]&&(g=S(g).replace(L[M]),await w('No "from" key')),M&&F){q[F]=g;let N=L[M];if(N)g=S(g).replace(N),await w('Move "from" key');else{q[F]=g,g=Fe(b,g),q[F].remove(),g=S(g).next(),b=S(b).next(),await w("Swap elements with keys");continue}}}let nr=g&&S(g).nodes().next();await d(g,b),b=b&&S(b).nodes().next(),g=nr}let je=[];for(;g;)re(u,g)||je.push(g),g=S(g).nodes().next();for(;je.length;){let M=je.shift();M.remove(),await w("remove el"),f(M)}}function $(c){return c&&c.nodeType===1&&a(c)}function At(c){let p={};return c.forEach(h=>{let P=$(h);P&&(p[P]=h)}),p}function tr(c,p){if(!re(_,c)){let h=c.cloneNode(!0);return S(p).append(h),x(h),h}return null}function Fe(c,p){if(!re(_,c)){let h=c.cloneNode(!0);return S(p).before(h),x(h),h}return p}return J(n),r=e,i=na(t),window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.clone(e,i)),await w(),await d(e,i),r=void 0,i=void 0,e}Et.step=()=>Jn();Et.log=e=>{Zn=e};function re(e,...t){let n=!1;return e(...t,()=>n=!0),n}function ia(e,t,n){e.nodeType===1&&e._x_dataStack&&window.Alpine.clone(e,t)}function aa(e){e.morph=Et}var Qn=aa;wt.plugin(Qn);var oa=/INPUT/i,sa=/date|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/i,la=/TEXTAREA/i;function ua(e,t,n,r){if(e.nodeType!==Node.ELEMENT_NODE)return;let i=!1;if(i=e.tagName.match(la),i||(i=e===document.activeElement&&e.tagName.match(oa)&&e.getAttribute("type").match(sa),i))return r()}function ca(e,t){e.forEach(n=>wt.morph(n,t,{updating:ua}))}var Xn=ca;function fa(e,t,n){if(e.match(/^dispatch(Event)?$/))return Ot(n,t[0],t[1]||{});if(e.match(/^morph|mutate$/))return Xn(n,t[0]);if(e.endsWith("="))return n.forEach(r=>r[e.slice(0,-1).trim()]=t[0]);n.forEach(r=>r[e].apply(r,t))}function da(){let e=JSON.parse(this.templateContent.textContent),{id:t,selector:n,receiver:r,method:i,args:a}=e,o=[self];n&&(o=Array.from(document.querySelectorAll(n))),r&&(o=o.map(s=>{let l=s,u=r.split(".");for(;u.length>0;)l=l[u.shift()];return l})),fa(i,a,o)}var er=da;function pa(e){e.invoke=er}var Ia={initialize:pa};export{Ia as default};
6
+ `,"\\n"),r,i),new Promise(p=>Jn=()=>p())}function J(c={}){let p=P=>P.getAttribute("key"),h=()=>{};s=c.updating||h,l=c.updated||h,u=c.removing||h,f=c.removed||h,_=c.adding||h,x=c.added||h,a=c.key||p,o=c.lookahead||!1,R=c.debug||!1}async function d(c,p){if(v(c,p)){let P=y(c,p);return await w("Swap elements"),P}let h=!1;if(!re(s,c,p,()=>h=!0)){if(window.Alpine&&ia(c,p,()=>h=!0),ra(p)){await O(c,p),l(c,p);return}h||await T(c,p),l(c,p),await D(c,p)}}function v(c,p){return c.nodeType!=p.nodeType||c.nodeName!=p.nodeName||$(c)!=$(p)}function y(c,p){if(re(u,c))return;let h=p.cloneNode(!0);re(_,h)||(S(c).replace(h),f(c),x(h))}async function O(c,p){let h=p.nodeValue;c.nodeValue!==h&&(c.nodeValue=h,await w("Change text node to: "+h))}async function T(c,p){if(c._x_isShown&&!p._x_isShown||!c._x_isShown&&p._x_isShown)return;let h=Array.from(c.attributes),P=Array.from(p.attributes);for(let K=h.length-1;K>=0;K--){let L=h[K].name;p.hasAttribute(L)||(c.removeAttribute(L),await w("Remove attribute"))}for(let K=P.length-1;K>=0;K--){let L=P[K].name,b=P[K].value;c.getAttribute(L)!==b&&(c.setAttribute(L,b),await w(`Set [${L}] attribute to: "${b}"`))}}async function D(c,p){let h=c.childNodes,P=p.childNodes,K=At(P),L=At(h),b=S(p).nodes().first(),g=S(c).nodes().first(),q={};for(;b;){let M=$(b),F=$(g);if(!g)if(M&&q[M]){let N=q[M];S(c).append(N),g=N,await w("Add element (from key)")}else{let N=tr(b,c)||{};await w("Add element: "+(N.outerHTML||N.nodeValue)),b=S(b).nodes().next();continue}if(o){let N=S(b).next(),St=!1;for(;!St&&N;)g.isEqualNode(N)&&(St=!0,g=Fe(b,g),F=$(g),await w("Move element (lookahead)")),N=S(N).next()}if(M!==F){if(!M&&F){q[F]=g,g=Fe(b,g),q[F].remove(),g=S(g).nodes().next(),b=S(b).nodes().next(),await w('No "to" key');continue}if(M&&!F&&L[M]&&(g=S(g).replace(L[M]),await w('No "from" key')),M&&F){q[F]=g;let N=L[M];if(N)g=S(g).replace(N),await w('Move "from" key');else{q[F]=g,g=Fe(b,g),q[F].remove(),g=S(g).next(),b=S(b).next(),await w("Swap elements with keys");continue}}}let nr=g&&S(g).nodes().next();await d(g,b),b=b&&S(b).nodes().next(),g=nr}let je=[];for(;g;)re(u,g)||je.push(g),g=S(g).nodes().next();for(;je.length;){let M=je.shift();M.remove(),await w("remove el"),f(M)}}function $(c){return c&&c.nodeType===1&&a(c)}function At(c){let p={};return c.forEach(h=>{let P=$(h);P&&(p[P]=h)}),p}function tr(c,p){if(!re(_,c)){let h=c.cloneNode(!0);return S(p).append(h),x(h),h}return null}function Fe(c,p){if(!re(_,c)){let h=c.cloneNode(!0);return S(p).before(h),x(h),h}return p}return J(n),r=e,i=na(t),window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.clone(e,i)),await w(),await d(e,i),r=void 0,i=void 0,e}Et.step=()=>Jn();Et.log=e=>{Zn=e};function re(e,...t){let n=!1;return e(...t,()=>n=!0),n}function ia(e,t,n){e.nodeType===1&&e._x_dataStack&&window.Alpine.clone(e,t)}function aa(e){e.morph=Et}var Qn=aa;wt.plugin(Qn);var oa=/INPUT/i,sa=/date|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/i,la=/TEXTAREA/i;function ua(e,t,n,r){if(e.nodeType!==Node.ELEMENT_NODE||e!==document.activeElement)return;if(e.tagName.match(la)||e.tagName.match(oa)&&e.getAttribute("type").match(sa))return r()}function ca(e,t){e.forEach(n=>wt.morph(n,t,{updating:ua}))}var Xn=ca;function fa(e,t,n){if(e.match(/^dispatch(Event)?$/))return Ot(n,t[0],t[1]||{});if(e.match(/^morph|mutate$/))return Xn(n,t[0]);if(e.endsWith("="))return n.forEach(r=>r[e.slice(0,-1).trim()]=t[0]);n.forEach(r=>r[e].apply(r,t))}function da(){let e=JSON.parse(this.templateContent.textContent),{id:t,selector:n,receiver:r,method:i,args:a}=e,o=[self];n&&(o=Array.from(document.querySelectorAll(n))),r&&(o=o.map(s=>{let l=s,u=r.split(".");for(;u.length>0;)l=l[u.shift()];return l})),fa(i,a,o)}var er=da;function pa(e){e.invoke=er}var Ia={initialize:pa};export{Ia as default};
7
7
  //# sourceMappingURL=turbo_ready.js.map