snipe-it/public/js/dist/all-defer.js
snipe 81b9753b79 Merge remote-tracking branch 'origin/develop'
Signed-off-by: snipe <[email protected]>

# Conflicts:
#	public/js/dist/all-defer.js
#	public/mix-manifest.json
2024-02-15 09:58:09 +00:00

2 lines
42 KiB
JavaScript

(()=>{var e,t,n,r,i=!1,o=!1,a=[],s=-1;function l(e){!function(e){a.includes(e)||a.push(e);o||i||(i=!0,queueMicrotask(u))}(e)}function c(e){let t=a.indexOf(e);-1!==t&&t>s&&a.splice(t,1)}function u(){i=!1,o=!0;for(let e=0;e<a.length;e++)a[e](),s=e;a.length=0,s=-1,o=!1}var f=!0;function d(e){t=e}function _(e,r){let i,o=!0,a=t((()=>{let t=e();JSON.stringify(t),o?i=t:queueMicrotask((()=>{r(t,i),i=t})),o=!1}));return()=>n(a)}function p(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function h(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>h(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let r=e.firstElementChild;for(;r;)h(r,t),r=r.nextElementSibling}function x(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var g=!1;var m=[],v=[];function y(){return m.map((e=>e()))}function b(){return m.concat(v).map((e=>e()))}function w(e){m.push(e)}function E(e){v.push(e)}function A(e,t=!1){return O(e,(e=>{if((t?b():y()).some((t=>e.matches(t))))return!0}))}function O(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return O(e.parentElement,t)}}var S=[];function k(e,t=h,n=(()=>{})){!function(e){ve=!0;let t=Symbol();be=t,ye.set(t,[]);let n=()=>{for(;ye.get(t).length;)ye.get(t).shift()();ye.delete(t)},r=()=>{ve=!1,n()};e(n),r()}((()=>{t(e,((e,t)=>{n(e,t),S.forEach((n=>n(e,t))),ge(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function j(e){h(e,(e=>{R(e),function(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}(e)}))}var C=[],$=[],N=[];function M(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,$.push(t))}function L(e){C.push(e)}function P(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function R(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,r])=>{(void 0===t||t.includes(n))&&(r.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var T=new MutationObserver(K),z=!1;function B(){T.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),z=!0}function I(){!function(){let e=T.takeRecords();D.push((()=>e.length>0&&K(e)));let t=D.length;queueMicrotask((()=>{if(D.length===t)for(;D.length>0;)D.shift()()}))}(),T.disconnect(),z=!1}var D=[];function q(e){if(!z)return e();I();let t=e();return B(),t}var F=!1,W=[];function K(e){if(F)return void(W=W.concat(e));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&&("childList"===e[o].type&&(e[o].addedNodes.forEach((e=>1===e.nodeType&&t.add(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.add(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,a=e[o].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},l=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&null===a?s():t.hasAttribute(n)?(l(),s()):l()}i.forEach(((e,t)=>{R(t,e)})),r.forEach(((e,t)=>{C.forEach((n=>n(t,e)))}));for(let e of n)t.has(e)||($.forEach((t=>t(e))),j(e));t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.has(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,N.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,r=null,i=null}function U(e){return H(J(e))}function V(e,t,n){return e._x_dataStack=[t,...J(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function J(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?J(e.host):e.parentNode?J(e.parentNode):[]}function H(e){return new Proxy({objects:e},Z)}var Z={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some((e=>Object.prototype.hasOwnProperty.call(e,t))),get:({objects:e},t,n)=>"toJSON"==t?X:Reflect.get(e.find((e=>Object.prototype.hasOwnProperty.call(e,t)))||{},t,n),set({objects:e},t,n,r){const i=e.find((e=>Object.prototype.hasOwnProperty.call(e,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 X(){return Reflect.ownKeys(this).reduce(((e,t)=>(e[t]=Reflect.get(this,t),e)),{})}function Y(e){let t=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([i,{value:o,enumerable:a}])=>{if(!1===a||void 0===o)return;let s=""===r?i:`${r}.${i}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[i]=o.initialize(e,s,i):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||t(o,s)}))};return t(e)}function G(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>Q(t,n,e)),n,r)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,o)=>{let a=e.initialize(r,i,o);return n.initialValue=a,t(r,i,o)}}else n.initialValue=e;return n}}function Q(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),Q(e[t[0]],t.slice(1),n)}e[t[0]]=n}var ee={};function te(e,t){ee[e]=t}function ne(e,t){return Object.entries(ee).forEach((([n,r])=>{let i=null;Object.defineProperty(e,`$${n}`,{get:()=>r(t,function(){if(i)return i;{let[e,n]=we(t);return i={interceptor:G,...e},M(t,n),i}}()),enumerable:!1})})),e}function re(e,t,n,...r){try{return n(...r)}catch(n){ie(n,e,t)}}function ie(e,t,n){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}var oe=!0;function ae(e){let t=oe;oe=!1;let n=e();return oe=t,n}function se(e,t,n={}){let r;return le(e,t)((e=>r=e),n),r}function le(...e){return ce(...e)}var ce=ue;function ue(e,t){let n={};ne(n,e);let r=[n,...J(e)],i="function"==typeof t?function(e,t){return(n=(()=>{}),{scope:r={},params:i=[]}={})=>{de(n,t.apply(H([r,...e]),i))}}(r,t):function(e,t,n){let r=function(e,t){if(fe[e])return fe[e];let n=Object.getPrototypeOf((async function(){})).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e;let 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 fe[e]=i,i}(t,n);return(i=(()=>{}),{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let s=H([o,...e]);if("function"==typeof r){let e=r(r,s).catch((e=>ie(e,n,t)));r.finished?(de(i,r.result,s,a,n),r.result=void 0):e.then((e=>{de(i,e,s,a,n)})).catch((e=>ie(e,n,t))).finally((()=>r.result=void 0))}}}(r,t,e);return re.bind(null,e,t,i)}var fe={};function de(e,t,n,r,i){if(oe&&"function"==typeof t){let o=t.apply(n,r);o instanceof Promise?o.then((t=>de(e,t,n,r))).catch((e=>ie(e,i,t))):e(o)}else"object"==typeof t&&t instanceof Promise?t.then((t=>e(t))):e(t)}var _e="x-";function pe(e=""){return _e+e}var he={};function xe(e,t){return he[e]=t,{before(t){if(!he[t])return void console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);const n=$e.indexOf(t);$e.splice(n>=0?n:$e.indexOf("DEFAULT"),0,e)}}}function ge(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=me(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={},i=t.map(Ae(((e,t)=>r[e]=t))).filter(ke).map(function(e,t){return({name:n,value:r})=>{let i=n.match(je()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map((e=>e.replace(".",""))),expression:r,original:s}}}(r,n)).sort(Ne);return i.map((t=>function(e,t){let n=()=>{},r=he[t.type]||n,[i,o]=we(e);P(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),ve?ye.get(be).push(r):r())};return a.runCleanups=o,a}(e,t)))}function me(e){return Array.from(e).map(Ae()).filter((e=>!ke(e)))}var ve=!1,ye=new Map,be=Symbol();function we(e){let r=[],[i,o]=function(e){let r=()=>{};return[i=>{let o=t(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(o),r=()=>{void 0!==o&&(e._x_effects.delete(o),n(o))},o},()=>{r()}]}(e);r.push(o);return[{Alpine:ft,effect:i,cleanup:e=>r.push(e),evaluateLater:le.bind(le,e),evaluate:se.bind(se,e)},()=>r.forEach((e=>e()))]}var Ee=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r});function Ae(e=(()=>{})){return({name:t,value:n})=>{let{name:r,value:i}=Oe.reduce(((e,t)=>t(e)),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Oe=[];function Se(e){Oe.push(e)}function ke({name:e}){return je().test(e)}var je=()=>new RegExp(`^${_e}([^:^.]+)\\b`);var Ce="DEFAULT",$e=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Ce,"teleport"];function Ne(e,t){let n=-1===$e.indexOf(e.type)?Ce:e.type,r=-1===$e.indexOf(t.type)?Ce:t.type;return $e.indexOf(n)-$e.indexOf(r)}var Me=[],Le=!1;function Pe(e=(()=>{})){return queueMicrotask((()=>{Le||setTimeout((()=>{Re()}))})),new Promise((t=>{Me.push((()=>{e(),t()}))}))}function Re(){for(Le=!1;Me.length;)Me.shift()()}function Te(e,t){return Array.isArray(t)?ze(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],a=[];return i.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),a.push(t))})),r.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{a.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?Te(e,t()):ze(e,t)}function ze(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function Be(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,r])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,r)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{Be(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Ie(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function De(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),r=(()=>{})){Fe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=(()=>{}),r=(()=>{})){Fe(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function qe(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:qe(t)}function Fe(e,t,{during:n,start:r,end:i}={},o=(()=>{}),a=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return o(),void a();let s,l,c;!function(e,t){let n,r,i,o=Ie((()=>{q((()=>{n=!0,r||t.before(),i||(t.end(),Re()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Ie((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},q((()=>{t.start(),t.during()})),Le=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),q((()=>{t.before()})),r=!0,requestAnimationFrame((()=>{n||(q((()=>{t.end()})),Re(),setTimeout(e._x_transitioning.finish,o+a),i=!0)}))}))}(e,{start(){s=t(e,r)},during(){l=t(e,n)},before:o,end(){s(),c=t(e,i)},after:a,cleanup(){l(),c()}})}function We(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t||"delay"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}xe("transition",((e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),!1!==r&&(r&&"boolean"!=typeof r?function(e,t,n){De(e,Te,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,r,t):function(e,t,n){De(e,Be);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(((e,n)=>n<t.indexOf("out"))));t.includes("out")&&!r&&(t=t.filter(((e,n)=>n>t.indexOf("out"))));let a=!t.includes("opacity")&&!t.includes("scale"),s=a||t.includes("opacity"),l=a||t.includes("scale"),c=s?0:1,u=l?We(t,"scale",95)/100:1,f=We(t,"delay",0)/1e3,d=We(t,"origin","center"),_="opacity, transform",p=We(t,"duration",150)/1e3,h=We(t,"duration",75)/1e3,x="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:d,transitionDelay:`${f}s`,transitionProperty:_,transitionDuration:`${p}s`,transitionTimingFunction:x},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:d,transitionDelay:`${f}s`,transitionProperty:_,transitionDuration:`${h}s`,transitionTimingFunction:x},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}(e,n,t))})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){const i="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>i(n);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():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(r))),e._x_transitioning&&e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(r),queueMicrotask((()=>{let t=qe(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):i((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Ke=!1;function Ue(e,t=(()=>{})){return(...n)=>Ke?t(...n):e(...n)}var Ve=[];function Je(e){Ve.push(e)}var He=!1;function Ze(e){let r=t;d(((e,t)=>{let i=r(e);return n(i),()=>{}})),e(),d(r)}function Xe(t,n,r,i=[]){switch(t._x_bindings||(t._x_bindings=e({})),t._x_bindings[n]=r,n=i.includes("camel")?n.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):n){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked="boolean"==typeof t?Qe(e.value)===t:Ge(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>Ge(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=void 0===t?"":t}}(t,r);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=Be(e,t)}(t,r);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=Te(e,t)}(t,r);break;case"selected":case"checked":!function(e,t,n){Ye(e,t,n),function(e,t,n){e[t]!==n&&(e[t]=n)}(e,t,n)}(t,n,r);break;default:Ye(t,n,r)}}function Ye(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(et(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}function Ge(e,t){return e==t}function Qe(e){return!![1,"1","true","on","yes",!0].includes(e)||![0,"0","false","off","no",!1].includes(e)&&(e?Boolean(e):null)}function et(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 tt(e,t,n){let r=e.getAttribute(t);return null===r?"function"==typeof n?n():n:""===r||(et(t)?!![t,"true"].includes(r):r)}function nt(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 rt(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout((()=>n=!1),t))}}function it({get:e,set:r},{get:i,set:o}){let a,s,l=!0,c=t((()=>{let t=e(),n=i();if(l)o(ot(t)),l=!1;else{let e=JSON.stringify(t),i=JSON.stringify(n);e!==a?o(ot(t)):e!==i&&r(ot(n))}a=JSON.stringify(e()),s=JSON.stringify(i())}));return()=>{n(c)}}function ot(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var at={},st=!1;var lt={};function ct(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map((([e,t])=>({name:e,value:t}))),o=me(i);return i=i.map((e=>o.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),ge(e,i,n).map((e=>{r.push(e.runCleanups),e()})),()=>{for(;r.length;)r.pop()()}}var ut={};var ft={get reactive(){return e},get release(){return n},get effect(){return t},get raw(){return r},version:"3.13.5",flushAndStopDeferringMutations:function(){F=!1,K(W),W=[]},dontAutoEvaluateFunctions:ae,disableEffectScheduling:function(e){f=!1,e(),f=!0},startObservingMutations:B,stopObservingMutations:I,setReactivityEngine:function(i){e=i.reactive,n=i.release,t=e=>i.effect(e,{scheduler:e=>{f?l(e):e()}}),r=i.raw},onAttributeRemoved:P,onAttributesAdded:L,closestDataStack:J,skipDuringClone:Ue,onlyDuringClone:function(e){return(...t)=>Ke&&e(...t)},addRootSelector:w,addInitSelector:E,interceptClone:Je,addScopeToNode:V,deferMutations:function(){F=!0},mapAttributes:Se,evaluateLater:le,interceptInit:function(e){S.push(e)},setEvaluator:function(e){ce=e},mergeProxies:H,extractProp:function(e,t,n,r=!0){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];if(e._x_inlineBindings&&void 0!==e._x_inlineBindings[t]){let n=e._x_inlineBindings[t];return n.extract=r,ae((()=>se(e,n.expression)))}return tt(e,t,n)},findClosest:O,onElRemoved:M,closestRoot:A,destroyTree:j,interceptor:G,transition:Fe,setStyles:Be,mutateDom:q,directive:xe,entangle:it,throttle:rt,debounce:nt,evaluate:se,initTree:k,nextTick:Pe,prefixed:pe,prefix:function(e){_e=e},plugin:function(e){(Array.isArray(e)?e:[e]).forEach((e=>e(ft)))},magic:te,store:function(t,n){if(st||(at=e(at),st=!0),void 0===n)return at[t];at[t]=n,"object"==typeof n&&null!==n&&n.hasOwnProperty("init")&&"function"==typeof n.init&&at[t].init(),Y(at[t])},start:function(){var e;g&&x("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),g=!0,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?"),p(document,"alpine:init"),p(document,"alpine:initializing"),B(),e=e=>k(e,h),N.push(e),M((e=>j(e))),L(((e,t)=>{ge(e,t).forEach((e=>e()))})),Array.from(document.querySelectorAll(b().join(","))).filter((e=>!A(e.parentElement,!0))).forEach((e=>{k(e)})),p(document,"alpine:initialized")},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Ke=!0,He=!0,Ze((()=>{!function(e){let t=!1;k(e,((e,n)=>{h(e,((e,r)=>{if(t&&function(e){return y().some((t=>e.matches(t)))}(e))return r();t=!0,n(e,r)}))}))}(t)})),Ke=!1,He=!1},cloneNode:function(e,t){Ve.forEach((n=>n(e,t))),Ke=!0,Ze((()=>{k(t,((e,t)=>{t(e,(()=>{}))}))})),Ke=!1},bound:function(e,t,n){return e._x_bindings&&void 0!==e._x_bindings[t]?e._x_bindings[t]:tt(e,t,n)},$data:U,watch:_,walk:h,data:function(e,t){ut[e]=t},bind:function(e,t){let n="function"!=typeof t?()=>t:t;return e instanceof Element?ct(e,n()):(lt[e]=n,()=>{})}};function dt(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var _t,pt=Object.freeze({}),ht=(Object.freeze([]),Object.prototype.hasOwnProperty),xt=(e,t)=>ht.call(e,t),gt=Array.isArray,mt=e=>"[object Map]"===wt(e),vt=e=>"symbol"==typeof e,yt=e=>null!==e&&"object"==typeof e,bt=Object.prototype.toString,wt=e=>bt.call(e),Et=e=>wt(e).slice(8,-1),At=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Ot=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},St=/-(\w)/g,kt=(Ot((e=>e.replace(St,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),jt=(Ot((e=>e.replace(kt,"-$1").toLowerCase())),Ot((e=>e.charAt(0).toUpperCase()+e.slice(1)))),Ct=(Ot((e=>e?`on${jt(e)}`:"")),(e,t)=>e!==t&&(e==e||t==t)),$t=new WeakMap,Nt=[],Mt=Symbol("iterate"),Lt=Symbol("Map key iterate");var Pt=0;function Rt(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var Tt=!0,zt=[];function Bt(){const e=zt.pop();Tt=void 0===e||e}function It(e,t,n){if(!Tt||void 0===_t)return;let r=$t.get(e);r||$t.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(_t)||(i.add(_t),_t.deps.push(i),_t.options.onTrack&&_t.options.onTrack({effect:_t,target:e,type:t,key:n}))}function Dt(e,t,n,r,i,o){const a=$t.get(e);if(!a)return;const s=new Set,l=e=>{e&&e.forEach((e=>{(e!==_t||e.allowRecurse)&&s.add(e)}))};if("clear"===t)a.forEach(l);else if("length"===n&&gt(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&l(e)}));else switch(void 0!==n&&l(a.get(n)),t){case"add":gt(e)?At(n)&&l(a.get("length")):(l(a.get(Mt)),mt(e)&&l(a.get(Lt)));break;case"delete":gt(e)||(l(a.get(Mt)),mt(e)&&l(a.get(Lt)));break;case"set":mt(e)&&l(a.get(Mt))}s.forEach((a=>{a.options.onTrigger&&a.options.onTrigger({effect:a,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),a.options.scheduler?a.options.scheduler(a):a()}))}var qt=dt("__proto__,__v_isRef,__isVue"),Ft=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(vt)),Wt=Jt(),Kt=Jt(!0),Ut=Vt();function Vt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=jn(this);for(let e=0,t=this.length;e<t;e++)It(n,"get",e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(jn)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){zt.push(Tt),Tt=!1;const n=jn(this)[t].apply(this,e);return Bt(),n}})),e}function Jt(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?An:En:t?wn:bn).get(n))return n;const o=gt(n);if(!e&&o&&xt(Ut,r))return Reflect.get(Ut,r,i);const a=Reflect.get(n,r,i);if(vt(r)?Ft.has(r):qt(r))return a;if(e||It(n,"get",r),t)return a;if(Cn(a)){return!o||!At(r)?a.value:a}return yt(a)?e?Sn(a):On(a):a}}function Ht(e=!1){return function(t,n,r,i){let o=t[n];if(!e&&(r=jn(r),o=jn(o),!gt(t)&&Cn(o)&&!Cn(r)))return o.value=r,!0;const a=gt(t)&&At(n)?Number(n)<t.length:xt(t,n),s=Reflect.set(t,n,r,i);return t===jn(i)&&(a?Ct(r,o)&&Dt(t,"set",n,r,o):Dt(t,"add",n,r)),s}}var Zt={get:Wt,set:Ht(),deleteProperty:function(e,t){const n=xt(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Dt(e,"delete",t,void 0,r),i},has:function(e,t){const n=Reflect.has(e,t);return vt(t)&&Ft.has(t)||It(e,"has",t),n},ownKeys:function(e){return It(e,"iterate",gt(e)?"length":Mt),Reflect.ownKeys(e)}},Xt={get:Kt,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Yt=e=>yt(e)?On(e):e,Gt=e=>yt(e)?Sn(e):e,Qt=e=>e,en=e=>Reflect.getPrototypeOf(e);function tn(e,t,n=!1,r=!1){const i=jn(e=e.__v_raw),o=jn(t);t!==o&&!n&&It(i,"get",t),!n&&It(i,"get",o);const{has:a}=en(i),s=r?Qt:n?Gt:Yt;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function nn(e,t=!1){const n=this.__v_raw,r=jn(n),i=jn(e);return e!==i&&!t&&It(r,"has",e),!t&&It(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function rn(e,t=!1){return e=e.__v_raw,!t&&It(jn(e),"iterate",Mt),Reflect.get(e,"size",e)}function on(e){e=jn(e);const t=jn(this);return en(t).has.call(t,e)||(t.add(e),Dt(t,"add",e,e)),this}function an(e,t){t=jn(t);const n=jn(this),{has:r,get:i}=en(n);let o=r.call(n,e);o?yn(n,r,e):(e=jn(e),o=r.call(n,e));const a=i.call(n,e);return n.set(e,t),o?Ct(t,a)&&Dt(n,"set",e,t,a):Dt(n,"add",e,t),this}function sn(e){const t=jn(this),{has:n,get:r}=en(t);let i=n.call(t,e);i?yn(t,n,e):(e=jn(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,a=t.delete(e);return i&&Dt(t,"delete",e,void 0,o),a}function ln(){const e=jn(this),t=0!==e.size,n=mt(e)?new Map(e):new Set(e),r=e.clear();return t&&Dt(e,"clear",void 0,void 0,n),r}function cn(e,t){return function(n,r){const i=this,o=i.__v_raw,a=jn(o),s=t?Qt:e?Gt:Yt;return!e&&It(a,"iterate",Mt),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function un(e,t,n){return function(...r){const i=this.__v_raw,o=jn(i),a=mt(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=i[e](...r),u=n?Qt:t?Gt:Yt;return!t&&It(o,"iterate",l?Lt:Mt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function fn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${jt(e)} operation ${n}failed: target is readonly.`,jn(this))}return"delete"!==e&&this}}function dn(){const e={get(e){return tn(this,e)},get size(){return rn(this)},has:nn,add:on,set:an,delete:sn,clear:ln,forEach:cn(!1,!1)},t={get(e){return tn(this,e,!1,!0)},get size(){return rn(this)},has:nn,add:on,set:an,delete:sn,clear:ln,forEach:cn(!1,!0)},n={get(e){return tn(this,e,!0)},get size(){return rn(this,!0)},has(e){return nn.call(this,e,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:cn(!0,!1)},r={get(e){return tn(this,e,!0,!0)},get size(){return rn(this,!0)},has(e){return nn.call(this,e,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:cn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=un(i,!1,!1),n[i]=un(i,!0,!1),t[i]=un(i,!1,!0),r[i]=un(i,!0,!0)})),[e,n,t,r]}var[_n,pn,hn,xn]=dn();function gn(e,t){const n=t?e?xn:hn:e?pn:_n;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(xt(n,r)&&r in t?n:t,r,i)}var mn={get:gn(!1,!1)},vn={get:gn(!0,!1)};function yn(e,t,n){const r=jn(n);if(r!==n&&t.call(e,r)){const t=Et(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" 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,wn=new WeakMap,En=new WeakMap,An=new WeakMap;function On(e){return e&&e.__v_isReadonly?e:kn(e,!1,Zt,mn,bn)}function Sn(e){return kn(e,!0,Xt,vn,En)}function kn(e,t,n,r,i){if(!yt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Et(s));var s;if(0===a)return e;const l=new Proxy(e,2===a?r:n);return i.set(e,l),l}function jn(e){return e&&jn(e.__v_raw)||e}function Cn(e){return Boolean(e&&!0===e.__v_isRef)}te("nextTick",(()=>Pe)),te("dispatch",(e=>p.bind(p,e))),te("watch",((e,{evaluateLater:t,cleanup:n})=>(e,r)=>{let i=t(e),o=_((()=>{let e;return i((t=>e=t)),e}),r);n(o)})),te("store",(function(){return at})),te("data",(e=>U(e))),te("root",(e=>A(e))),te("refs",(e=>(e._x_refs_proxy||(e._x_refs_proxy=H(function(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}(e))),e._x_refs_proxy)));var $n={};function Nn(e){return $n[e]||($n[e]=0),++$n[e]}function Mn(e,t,n){te(t,(r=>x(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r)))}te("id",((e,{cleanup:t})=>(n,r=null)=>function(e,t,n,r){e._x_id||(e._x_id={});if(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}(e,`${n}${r?`-${r}`:""}`,t,(()=>{let t=function(e,t){return O(e,(e=>{if(e._x_ids&&e._x_ids[t])return!0}))}(e,n),i=t?t._x_ids[n]:Nn(n);return r?`${n}-${i}-${r}`:`${n}-${i}`})))),Je(((e,t)=>{e._x_id&&(t._x_id=e._x_id)})),te("el",(e=>e)),Mn("Focus","focus","focus"),Mn("Persist","persist","persist"),xe("modelable",((e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),a=()=>{let e;return o((t=>e=t)),e},s=r(`${t} = __placeholder`),l=e=>s((()=>{}),{scope:{__placeholder:e}}),c=a();l(c),queueMicrotask((()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.set,r=it({get:()=>t(),set(e){n(e)}},{get:()=>a(),set(e){l(e)}});i(r)}))})),xe("teleport",((e,{modifiers:t,expression:n},{cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&x("x-teleport can only be used on a <template> tag",e);let i=Pn(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((t=>{o.addEventListener(t,(t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))}))})),V(o,{},e);let a=(e,t,n)=>{n.includes("prepend")?t.parentNode.insertBefore(e,t):n.includes("append")?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};q((()=>{a(o,i,t),k(o),o._x_ignore=!0})),e._x_teleportPutBack=()=>{let r=Pn(n);q((()=>{a(e._x_teleport,r,t)}))},r((()=>o.remove()))}));var Ln=document.createElement("div");function Pn(e){let t=Ue((()=>document.querySelector(e)),(()=>Ln))();return t||x(`Cannot find x-teleport element for selector: "${e}"`),t}var Rn=()=>{};function Tn(e,t,n,r){let i=e,o=e=>r(e),a={},s=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))}(t)),n.includes("passive")&&(a.passive=!0),n.includes("capture")&&(a.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=zn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=nt(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=zn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=rt(o,t)}return n.includes("prevent")&&(o=s(o,((e,t)=>{t.preventDefault(),e(t)}))),n.includes("stop")&&(o=s(o,((e,t)=>{t.stopPropagation(),e(t)}))),n.includes("self")&&(o=s(o,((t,n)=>{n.target===e&&t(n)}))),(n.includes("away")||n.includes("outside"))&&(i=document,o=s(o,((t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))}))),n.includes("once")&&(o=s(o,((e,n)=>{e(n),i.removeEventListener(t,o,a)}))),o=s(o,((e,r)=>{(function(e){return["keydown","keyup"].includes(e)})(t)&&function(e,t){let n=t.filter((e=>!["window","document","prevent","stop","once","capture"].includes(e)));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,zn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let e=n.indexOf("throttle");n.splice(e,zn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Bn(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter((e=>n.includes(e)));if(n=n.filter((e=>!r.includes(e))),r.length>0){if(r.filter((t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`]))).length===r.length&&Bn(e.key).includes(n[0]))return!1}return!0}(r,n)||e(r)})),i.addEventListener(t,o,a),()=>{i.removeEventListener(t,o,a)}}function zn(e){return!Array.isArray(e)&&!isNaN(e)}function Bn(e){if(!e)return[];var t;e=[" ","_"].includes(t=e)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let n={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 n[e]=e,Object.keys(n).map((t=>{if(n[t]===e)return t})).filter((e=>e))}function In(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function Dn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.get&&"function"==typeof e.set}Rn.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}))},xe("ignore",Rn),xe("effect",Ue(((e,{expression:t},{effect:n})=>{n(le(e,t))}))),xe("model",((e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let a,s=le(o,n);a="string"==typeof n?le(o,`${n} = __placeholder`):"function"==typeof n&&"string"==typeof n()?le(o,`${n()} = __placeholder`):()=>{};let l=()=>{let e;return s((t=>e=t)),Dn(e)?e.get():e},c=e=>{let t;s((e=>t=e)),Dn(t)?t.set(e):a((()=>{}),{scope:{__placeholder:e}})};"string"==typeof n&&"radio"===e.type&&q((()=>{e.hasAttribute("name")||e.setAttribute("name",n)}));var u="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let f=Ke?()=>{}:Tn(e,u,t,(n=>{c(function(e,t,n,r){return q((()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return null!==n.detail&&void 0!==n.detail?n.detail:n.target.value;if("checkbox"===e.type){if(Array.isArray(r)){let e=null;return e=t.includes("number")?In(n.target.value):t.includes("boolean")?Qe(n.target.value):n.target.value,n.target.checked?r.concat([e]):r.filter((t=>!(t==e)))}return n.target.checked}return"select"===e.tagName.toLowerCase()&&e.multiple?t.includes("number")?Array.from(n.target.selectedOptions).map((e=>In(e.value||e.text))):t.includes("boolean")?Array.from(n.target.selectedOptions).map((e=>Qe(e.value||e.text))):Array.from(n.target.selectedOptions).map((e=>e.value||e.text)):t.includes("number")?In(n.target.value):t.includes("boolean")?Qe(n.target.value):t.includes("trim")?n.target.value.trim():n.target.value}))}(e,t,n,l()))}));if(t.includes("fill")&&([void 0,null,""].includes(l())||"checkbox"===e.type&&Array.isArray(l()))&&e.dispatchEvent(new Event(u,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=f,i((()=>e._x_removeModelListeners.default())),e.form){let t=Tn(e.form,"reset",[],(t=>{Pe((()=>e._x_model&&e._x_model.set(e.value)))}));i((()=>t()))}e._x_model={get:()=>l(),set(e){c(e)}},e._x_forceModelUpdate=t=>{void 0===t&&"string"==typeof n&&n.match(/\./)&&(t=""),window.fromModel=!0,q((()=>Xe(e,"value",t))),delete window.fromModel},r((()=>{let n=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)}))})),xe("cloak",(e=>queueMicrotask((()=>q((()=>e.removeAttribute(pe("cloak")))))))),E((()=>`[${pe("init")}]`)),xe("init",Ue(((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1)))),xe("text",((e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n((()=>{i((t=>{q((()=>{e.textContent=t}))}))}))})),xe("html",((e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n((()=>{i((t=>{q((()=>{e.innerHTML=t,e._x_ignoreSelf=!0,k(e),delete e._x_ignoreSelf}))}))}))})),Se(Ee(":",pe("bind:")));var qn=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o})=>{if(!t){let t={};return a=t,Object.entries(lt).forEach((([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t(...e)})})),void le(e,r)((t=>{ct(e,t,i)}),{scope:t})}var a;if("key"===t)return function(e,t){e._x_keyExpression=t}(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=le(e,r);o((()=>s((i=>{void 0===i&&"string"==typeof r&&r.match(/\./)&&(i=""),q((()=>Xe(e,t,i,n)))}))))};function Fn(e,t,n,r){let i={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map((e=>e.trim())).forEach(((e,n)=>{i[e]=t[n]}))}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map((e=>e.trim())).forEach((e=>{i[e]=t[e]}))}else i[e.item]=t;return e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function Wn(){}function Kn(e,t,n){xe(t,(r=>x(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r)))}qn.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})},xe("bind",qn),w((()=>`[${pe("data")}]`)),xe("data",((t,{expression:n},{cleanup:r})=>{if(function(e){return!!Ke&&(!!He||e.hasAttribute("data-has-alpine-state"))}(t))return;n=""===n?"{}":n;let i={};ne(i,t);let o={};var a,s;a=o,s=i,Object.entries(ut).forEach((([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t.bind(s)(...e),enumerable:!1})}));let l=se(t,n,{scope:o});void 0!==l&&!0!==l||(l={}),ne(l,t);let c=e(l);Y(c);let u=V(t,c);c.init&&se(t,c.init),r((()=>{c.destroy&&se(t,c.destroy),u()}))})),Je(((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))})),xe("show",((e,{modifiers:t,expression:n},{effect:r})=>{let i=le(e,n);e._x_doHide||(e._x_doHide=()=>{q((()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)}))}),e._x_doShow||(e._x_doShow=()=>{q((()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display")}))});let o,a=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(s),c=Ie((e=>e?s():a()),(t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,s,a):t?l():a()})),u=!0;r((()=>i((e=>{(u||e!==o)&&(t.includes("immediate")&&(e?l():a()),c(e),o=e,u=!1)}))))})),xe("for",((t,{expression:n},{effect:r,cleanup:i})=>{let o=function(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 a=i[1].replace(n,"").trim(),s=a.match(t);s?(o.item=a.replace(t,"").trim(),o.index=s[1].trim(),s[2]&&(o.collection=s[2].trim())):o.item=a;return o}(n),a=le(t,o.items),s=le(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},r((()=>function(t,n,r,i){let o=e=>"object"==typeof e&&!Array.isArray(e),a=t;r((r=>{var s;s=r,!Array.isArray(s)&&!isNaN(s)&&r>=0&&(r=Array.from(Array(r).keys(),(e=>e+1))),void 0===r&&(r=[]);let l=t._x_lookup,u=t._x_prevKeys,f=[],d=[];if(o(r))r=Object.entries(r).map((([e,t])=>{let o=Fn(n,t,e,r);i((e=>d.push(e)),{scope:{index:e,...o}}),f.push(o)}));else for(let e=0;e<r.length;e++){let t=Fn(n,r[e],e,r);i((e=>d.push(e)),{scope:{index:e,...t}}),f.push(t)}let _=[],p=[],h=[],g=[];for(let e=0;e<u.length;e++){let t=u[e];-1===d.indexOf(t)&&h.push(t)}u=u.filter((e=>!h.includes(e)));let m="template";for(let e=0;e<d.length;e++){let t=d[e],n=u.indexOf(t);if(-1===n)u.splice(e,0,t),_.push([m,e]);else if(n!==e){let t=u.splice(e,1)[0],r=u.splice(n-1,1)[0];u.splice(e,0,r),u.splice(n,0,t),p.push([t,r])}else g.push(t);m=t}for(let e=0;e<h.length;e++){let t=h[e];l[t]._x_effects&&l[t]._x_effects.forEach(c),l[t].remove(),l[t]=null,delete l[t]}for(let e=0;e<p.length;e++){let[t,n]=p[e],r=l[t],i=l[n],o=document.createElement("div");q((()=>{i||x('x-for ":key" is undefined or invalid',a),i.after(o),r.after(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.before(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.remove()})),i._x_refreshXForScope(f[d.indexOf(n)])}for(let t=0;t<_.length;t++){let[n,r]=_[t],i="template"===n?a:l[n];i._x_currentIfEl&&(i=i._x_currentIfEl);let o=f[r],s=d[r],c=document.importNode(a.content,!0).firstElementChild,u=e(o);V(c,u,a),c._x_refreshXForScope=e=>{Object.entries(e).forEach((([e,t])=>{u[e]=t}))},q((()=>{i.after(c),k(c)})),"object"==typeof s&&x("x-for key cannot be an object, it must be a string or an integer",a),l[s]=c}for(let e=0;e<g.length;e++)l[g[e]]._x_refreshXForScope(f[d.indexOf(g[e])]);a._x_prevKeys=d}))}(t,o,a,s))),i((()=>{Object.values(t._x_lookup).forEach((e=>e.remove())),delete t._x_prevKeys,delete t._x_lookup}))})),Wn.inline=(e,{expression:t},{cleanup:n})=>{let r=A(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n((()=>delete r._x_refs[t]))},xe("ref",Wn),xe("if",((e,{expression:t},{effect:n,cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&x("x-if can only be used on a <template> tag",e);let i=le(e,t);n((()=>i((t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;V(t,{},e),q((()=>{e.after(t),k(t)})),e._x_currentIfEl=t,e._x_undoIf=()=>{h(t,(e=>{e._x_effects&&e._x_effects.forEach(c)})),t.remove(),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})))),r((()=>e._x_undoIf&&e._x_undoIf()))})),xe("id",((e,{expression:t},{evaluate:n})=>{n(t).forEach((t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Nn(t))}(e,t)))})),Je(((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)})),Se(Ee("@",pe("on:"))),xe("on",Ue(((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?le(e,r):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=Tn(e,t,n,(e=>{o((()=>{}),{scope:{$event:e},params:[e]})}));i((()=>a()))}))),Kn("Collapse","collapse","collapse"),Kn("Intersect","intersect","intersect"),Kn("Focus","trap","focus"),Kn("Mask","mask","mask"),ft.setEvaluator(ue),ft.setReactivityEngine({reactive:On,effect:function(e,t=pt){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!Nt.includes(n)){Rt(n);try{return zt.push(Tt),Tt=!0,Nt.push(n),_t=n,e()}finally{Nt.pop(),Bt(),_t=Nt[Nt.length-1]}}};return n.id=Pt++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(Rt(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:jn});var Un=ft;window.Alpine=Un,queueMicrotask((()=>{Un.start()}))})();