@ti-engine/web-framework 1.33.0 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
This document will contain the list of changes made to the framework. The format is based on the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
|
|
4
4
|
|
|
5
|
+
## Version 1.34.1
|
|
6
|
+
|
|
7
|
+
* build(deps): update `@types/node` from ^26.2.0 to ^26.5.1
|
|
8
|
+
* build(deps): update `@alpinejs/csp` from ^3.16.1 to ^3.17.3
|
|
9
|
+
* build(deps): update `openid-client` from ^6.8.5 to ^6.8.8
|
|
10
|
+
|
|
11
|
+
## Version 1.34.0
|
|
12
|
+
|
|
13
|
+
* fix(web-app): give the login error element fallback text, so it can never render as an empty box. The message
|
|
14
|
+
has been unreadable since it was added (CA-95): `x-text-label` resolves
|
|
15
|
+
`interface.default.login.error-sign-in-failed` out of **this package's** `web-server-labels.json`, and a consuming
|
|
16
|
+
application configures exactly one labels path — its own — so the key does not resolve there. The directive then
|
|
17
|
+
falls back to the element's own text content, and the element was empty. The result was a red alert box with
|
|
18
|
+
nothing in it: visibly broken, and saying nothing to the person who had just failed to sign in. An application
|
|
19
|
+
that wants it localized adds the key to its own catalogue, which is the same arrangement the Profile and About
|
|
20
|
+
screens already use.
|
|
21
|
+
* fix(web-app): drop the `error` query parameter from the address bar once the login screen has shown it, via the
|
|
22
|
+
new `tiToolbox.clearUrlParam( name )` (`history.replaceState`, so no history entry the visitor never navigated
|
|
23
|
+
to). It is a one-time message, not state: left in place, a refresh replays a sign-in failure that already
|
|
24
|
+
happened, a bookmark captures it, and the login screen cannot be returned to its blank state without editing the
|
|
25
|
+
URL by hand. The parameter itself stays, because a top-level browser navigation — an OAuth callback, or a
|
|
26
|
+
non-HTMX form post — cannot be answered with a body and still leave the visitor on the login page; a redirect is
|
|
27
|
+
the only way, and a redirect carries no payload. HTMX requests were never affected: they already receive the
|
|
28
|
+
error through the `ti:error` `HX-Trigger` and touch no query string.
|
|
29
|
+
|
|
5
30
|
## Version 1.33.0
|
|
6
31
|
|
|
7
32
|
* fix(web-handlers)!: refuse an OpenID Connect callback that cannot be completed through the normal error path
|
|
@@ -12,12 +12,17 @@
|
|
|
12
12
|
<!-- Login card -->
|
|
13
13
|
<div class="ti-login-card">
|
|
14
14
|
<!-- Error message -->
|
|
15
|
+
<!-- The element's own text is the FALLBACK the x-text-label directive falls back to, and it has to be
|
|
16
|
+
here: this key lives in the framework's web-server-labels.json, and a consuming application
|
|
17
|
+
configures exactly one labels path — its own — so the framework's catalogue is not loaded and the
|
|
18
|
+
key does not resolve. An empty element therefore rendered an empty red box: visibly broken, saying
|
|
19
|
+
nothing. An application that wants this localized adds the key to its own catalogue. -->
|
|
15
20
|
<div id="ti-error"
|
|
16
21
|
class="ti-login-error"
|
|
17
22
|
x-data="tiLoginError"
|
|
18
23
|
x-bind:class="{ visible: hasError }"
|
|
19
24
|
role="alert"
|
|
20
|
-
x-text-label="interface.default.login.error-sign-in-failed"
|
|
25
|
+
x-text-label="interface.default.login.error-sign-in-failed">Sign-in failed. Please try again.</div>
|
|
21
26
|
|
|
22
27
|
<!--ti-auth-method:local-->
|
|
23
28
|
<!-- Local auth form -->
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
(()=>{var
|
|
1
|
+
(()=>{var bt=!1,vt=!1,K=[],wt=-1,Fe=!1,At=!1;function wr(e){_n(e)}function Ar(){At=!0}function Or(){At=!1,Sr()}function _n(e){K.includes(e)||(K.push(e),e._x_schedulerPriority!==void 0&&(Fe=!0)),Sr()}function he(e){let t=K.indexOf(e);t!==-1&&t>wt&&K.splice(t,1)}function Sr(){if(!vt&&!bt){if(At)return;bt=!0,queueMicrotask(gn)}}function gn(){bt=!1,vt=!0;for(let e=0;e<K.length;e++)Fe&&yn(e),K[e](),wt=e;K.length=0,wt=-1,Fe=!1,vt=!1}function yn(e){let t=new Map,r=K.slice(e).sort((i,n)=>xn(i,n,t));for(let i=0;i<r.length;i++)K[e+i]=r[i];Fe=!1}function xn(e,t,r){return Et(e)?Et(t)?vr(e._x_schedulerPriority.el,r)-vr(t._x_schedulerPriority.el,r)||e._x_schedulerPriority.order-t._x_schedulerPriority.order:-1:Et(t)?1:0}function Et(e){return e._x_schedulerPriority!==void 0}function vr(e,t){if(t.has(e))return t.get(e);let r=0,i=e;for(;e;)r++,e._x_teleportBack?e=e._x_teleportBack:typeof ShadowRoot=="function"&&e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentElement;return t.set(i,r),r}var D,j,q,St,En=0,Ot=!0;function Nr(e){Ot=!1,e(),Ot=!0}function Tr(e){D=e.reactive,q=e.release,j=t=>e.effect(t,{scheduler:r=>{Ot?wr(r):r()}}),St=e.raw}function Nt(e){j=e}function Cr(e){let t=()=>{};return[(i,n)=>{let s=n?.priority==="structural"?En++:void 0,o=j(i);return s!==void 0&&o!==void 0&&(o._x_schedulerPriority={el:e,order:s}),e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(o),t=()=>{o!==void 0&&(e._x_effects.delete(o),q(o))},o},()=>{t()}]}function $e(e,t){let r=!0,i,n,s=j(()=>{let o=e(),a=JSON.stringify(o);if(!r&&(typeof o=="object"||o!==i)){let c=typeof i=="object"?JSON.parse(n):i;queueMicrotask(()=>{t(o,c)})}i=o,n=a,r=!1});return()=>{he(s),q(s)}}async function Rr(e){Ar();try{await e(),await Promise.resolve()}finally{Or()}}var kr=[],Dr=[],Pr=[];function Ir(e){Pr.push(e)}function me(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Dr.push(t))}function He(e){kr.push(e)}function Be(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Tt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,i])=>{(t===void 0||t.includes(r))&&(i.forEach(n=>n()),delete e._x_attributeCleanups[r])})}function Mr(e){for(e._x_effects?.forEach(he);e._x_cleanups?.length;)e._x_cleanups.pop()()}var Ke=new MutationObserver(qe),Ct=!1;function Oe(){Ke.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ct=!0}function Rt(){bn(),Ke.disconnect(),Ct=!1}var te=[];function bn(){let e=Ke.takeRecords();te.push(()=>e.length>0&&qe(e));let t=te.length;queueMicrotask(()=>{if(te.length===t)for(;te.length>0;)te.shift()()})}function Lr(){for(;te.length>0;)te.shift()();let e=Ke.takeRecords();e.length>0&&qe(e)}function _(e){if(!Ct)return e();Rt();let t=e();return Oe(),t}var kt=!1,Ve=[];function Ur(){kt=!0}function jr(){kt=!1,qe(Ve),Ve=[]}function qe(e){if(kt){Ve=Ve.concat(e);return}let t=[],r=new Set,i=new Map,n=new Map;for(let s=0;s<e.length;s++)if(!e[s].target._x_ignoreMutationObserver&&(e[s].type==="childList"&&(e[s].removedNodes.forEach(o=>{o.nodeType===1&&o._x_marker&&r.add(o)}),e[s].addedNodes.forEach(o=>{if(o.nodeType===1){if(r.has(o)){r.delete(o);return}o._x_marker||t.push(o)}})),e[s].type==="attributes")){let o=e[s].target,a=e[s].attributeName,c=e[s].oldValue,l=()=>{i.has(o)||i.set(o,[]),i.get(o).push({name:a,value:o.getAttribute(a)})},u=()=>{n.has(o)||n.set(o,[]),n.get(o).push(a)};o.hasAttribute(a)&&c===null?l():o.hasAttribute(a)?(u(),l()):u()}n.forEach((s,o)=>{Tt(o,s)}),i.forEach((s,o)=>{kr.forEach(a=>a(o,s))});for(let s of r)t.some(o=>o.contains(s))||Dr.forEach(o=>o(s));for(let s of t)s.isConnected&&Pr.forEach(o=>o(s));t=null,r=null,i=null,n=null}function ze(e){return P(z(e))}function F(e,t,r){return e._x_dataStack=[t,...z(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function z(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?z(e.host):e.parentNode?z(e.parentNode):[]}function P(e){return new Proxy({objects:e},vn)}function Fr(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:Fr(Object.getPrototypeOf(e),t)}var vn={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(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?wn:Reflect.get(e.find(i=>Reflect.has(i,t))||{},t,r)},set({objects:e},t,r,i){let n;for(let o of e)if(n=Fr(o,t),n)break;n||(n=e[e.length-1]);let s=Object.getOwnPropertyDescriptor(n,t);return s?.set&&s?.get?s.set.call(i,r)||!0:Reflect.set(n,t,r)}};function wn(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function _e(e,t=()=>{}){let r=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,i=(n,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:a,enumerable:c}])=>{if(c===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=s===""?o:`${s}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?n[o]=a.initialize(e,l,o,t):r(a)&&a!==n&&!(a instanceof Element)&&i(a,l)})};return i(e)}function We(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(i,n,s,o){return e(this.initialValue,()=>An(i,n),a=>Dt(i,n,a),n,s,o)}};return t(r),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let n=r.initialize.bind(r);r.initialize=(s,o,a,c)=>{let l=i.initialize(s,o,a,c);return r.initialValue=l,n(s,o,a,c)}}else r.initialValue=i;return r}}function An(e,t){return t.split(".").reduce((r,i)=>r[i],e)}function Dt(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Dt(e[t[0]],t.slice(1),r)}}var $r={};function v(e,t){$r[e]=t}function X(e,t){let r=On(t);return Object.entries($r).forEach(([i,n])=>{Object.defineProperty(e,`$${i}`,{get(){return n(t,r)},enumerable:!1})}),e}function On(e){let[t,r]=Pt(e),i={interceptor:We,...t};return me(e,r),i}function It(e,t,r,...i){try{return r(...i)}catch(n){re(n,e,t)}}function re(...e){return Vr(...e)}var Vr=Sn;function Hr(e){Vr=e}function Sn(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
|
|
2
2
|
|
|
3
3
|
${r?'Expression: "'+r+`"
|
|
4
4
|
|
|
5
|
-
`:""}`,e),setTimeout(()=>{throw t},0)}var W=!0;function Mt(t){let e=W;W=!1;let r=t();return W=e,r}function M(t,e,r={}){let n;return y(t,e)(i=>n=i,r),n}function y(...t){return gr(...t)}var gr=()=>{};function xr(t){gr=t}var yr;function br(t){yr=t}function wr(t,e){return(r=()=>{},{scope:n={},params:i=[],context:o}={})=>{if(!W){ye(r,e,R([n,...t]),i);return}let s=e.apply(R([n,...t]),i);ye(r,s)}}function ye(t,e,r,n,i){if(W&&typeof e=="function"){let o=e.apply(r,n);o instanceof Promise?o.then(s=>ye(t,s,r,n)).catch(s=>dt(s,i,e)):t(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>t(o)):t(e)}function Er(...t){return yr(...t)}var Ee="x-";function N(t=""){return Ee+t}function vr(t){Ee=t}var Pt={};function h(t,e){return Pt[t]=e,{before(r){if(!Pt[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${t}\` will use the default order of execution`);return}let n=Q.indexOf(r);Q.splice(n>=0?n:Q.indexOf("DEFAULT"),0,t)}}}function Ar(t){return Object.keys(Pt).includes(t)}function mt(t,e,r){if(e=Array.from(e),t._x_virtualDirectives){let o=Object.entries(t._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=ve(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let n={};return e.map(Tr((o,s)=>n[o]=s)).filter(Cr).map(Xn(n,r)).sort(Qn).map(o=>Zn(t,o))}function ve(t){return Array.from(t).map(Tr()).filter(e=>!Cr(e))}var be=!1,ht=new Map,Or=Symbol();function Sr(t){be=!0;let e=Symbol();Or=e,ht.set(e,[]);let r=()=>{for(;ht.get(e).length;)ht.get(e).shift()();ht.delete(e)},n=()=>{be=!1,r()};t(r),n()}function ge(t){let e=[],r=a=>e.push(a),[n,i]=ir(t);return e.push(i),[{Alpine:V,effect:n,cleanup:r,evaluateLater:y.bind(y,t),evaluate:M.bind(M,t)},()=>e.forEach(a=>a())]}function Zn(t,e){let r=()=>{},n=Pt[e.type]||r,[i,o]=ge(t);Nt(t,e.original,o);let s=()=>{t._x_ignore||t._x_ignoreSelf||(n.inline&&n.inline(t,e,i),n=n.bind(n,t,e,i),be?ht.get(Or).push(n):n())};return s.runCleanups=o,s}var kt=(t,e)=>({name:r,value:n})=>(r.startsWith(t)&&(r=r.replace(t,e)),{name:r,value:n}),It=t=>t;function Tr(t=()=>{}){return({name:e,value:r})=>{let{name:n,value:i}=Nr.reduce((o,s)=>s(o),{name:e,value:r});return n!==e&&t(n,e),{name:n,value:i}}}var Nr=[];function at(t){Nr.push(t)}function Cr({name:t}){return Rr().test(t)}var Rr=()=>new RegExp(`^${Ee}([^:^.]+)\\b`);function Xn(t,e){return({name:r,value:n})=>{r===n&&(n="");let i=r.match(Rr()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var we="DEFAULT",Q=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",we,"teleport"];function Qn(t,e){let r=Q.indexOf(t.type)===-1?we:t.type,n=Q.indexOf(e.type)===-1?we:e.type;return Q.indexOf(r)-Q.indexOf(n)}function tt(t,e,r={},n={}){return t.dispatchEvent(new CustomEvent(e,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...n}))}function L(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(i=>L(i,e));return}let r=!1;if(e(t,()=>r=!0),r)return;let n=t.firstElementChild;for(;n;)L(n,e,!1),n=n.nextElementSibling}function A(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Mr=!1;function Pr(){Mr&&A("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Mr=!0,document.body||A("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),tt(document,"alpine:init"),tt(document,"alpine:initializing"),pt(),ur(e=>O(e,L)),ot(e=>j(e)),Tt((e,r)=>{mt(e,r).forEach(n=>n())});let t=e=>!et(e.parentElement,!0);Array.from(document.querySelectorAll(Dr().join(","))).filter(t).forEach(e=>{O(e)}),tt(document,"alpine:initialized"),setTimeout(()=>{ei()})}var Ae=[],kr=[];function Ir(){return Ae.map(t=>t())}function Dr(){return Ae.concat(kr).map(t=>t())}function Dt(t){Ae.push(t)}function Ut(t){kr.push(t)}function et(t,e=!1){return T(t,r=>{if((e?Dr():Ir()).some(i=>r.matches(i)))return!0})}function T(t,e){if(t){if(e(t))return t;if(t._x_teleportBack)return T(t._x_teleportBack,e);if(t.parentNode instanceof ShadowRoot)return T(t.parentNode.host,e);if(t.parentElement)return T(t.parentElement,e)}}function Ur(t){return Ir().some(e=>t.matches(e))}var Lr=[];function jr(t){Lr.push(t)}var ti=1;function O(t,e=L,r=()=>{}){T(t,n=>n._x_ignore)||Sr(()=>{e(t,(n,i)=>{n._x_marker||(r(n,i),Lr.forEach(o=>o(n,i)),mt(n,n.attributes).forEach(o=>o()),n._x_ignore||(n._x_marker=ti++),n._x_ignore&&i())})})}function j(t,e=L){e(t,r=>{lr(r),le(r),delete r._x_marker})}function ei(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,r,n])=>{Ar(r)||n.some(i=>{if(document.querySelector(i))return A(`found "${i}", but missing ${e} plugin`),!0})})}var Oe=[],Se=!1;function ct(t=()=>{}){return queueMicrotask(()=>{Se||setTimeout(()=>{Lt()})}),new Promise(e=>{Oe.push(()=>{t(),e()})})}function Lt(){for(Se=!1;Oe.length;)Oe.shift()()}function $r(){Se=!0}function _t(t,e){return Array.isArray(e)?Fr(t,e.join(" ")):typeof e=="object"&&e!==null?ri(t,e):typeof e=="function"?_t(t,e()):Fr(t,e)}function Te(t){return t.split(/\s/).filter(Boolean)}function Fr(t,e){let r=i=>Te(i).filter(o=>!t.classList.contains(o)).filter(Boolean),n=i=>(t.classList.add(...i),()=>{t.classList.remove(...i)});return e=e===!0?e="":e||"",n(r(e))}function ri(t,e){let r=Object.entries(e).flatMap(([s,a])=>a?Te(s):!1).filter(Boolean),n=Object.entries(e).flatMap(([s,a])=>a?!1:Te(s)).filter(Boolean),i=[],o=[];return n.forEach(s=>{t.classList.contains(s)&&(t.classList.remove(s),o.push(s))}),r.forEach(s=>{t.classList.contains(s)||(t.classList.add(s),i.push(s))}),()=>{o.forEach(s=>t.classList.add(s)),i.forEach(s=>t.classList.remove(s))}}function rt(t,e){return typeof e=="object"&&e!==null?ni(t,e):ii(t,e)}function ni(t,e){let r={};return Object.entries(e).forEach(([n,i])=>{r[n]=t.style[n],n.startsWith("--")||(n=oi(n)),t.style.setProperty(n,i)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{rt(t,r)}}function ii(t,e){let r=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",r||"")}}function oi(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function gt(t,e=()=>{}){let r=!1;return function(){r?e.apply(this,arguments):(r=!0,t.apply(this,arguments))}}h("transition",(t,{value:e,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?ai(t,r,e):si(t,n,e))});function si(t,e,r){Br(t,_t,""),{enter:i=>{t._x_transition.enter.during=i},"enter-start":i=>{t._x_transition.enter.start=i},"enter-end":i=>{t._x_transition.enter.end=i},leave:i=>{t._x_transition.leave.during=i},"leave-start":i=>{t._x_transition.leave.start=i},"leave-end":i=>{t._x_transition.leave.end=i}}[r](e)}function ai(t,e,r){Br(t,rt);let n=!e.includes("in")&&!e.includes("out")&&!r,i=n||e.includes("in")||["enter"].includes(r),o=n||e.includes("out")||["leave"].includes(r);e.includes("in")&&!n&&(e=e.filter((p,g)=>g<e.indexOf("out"))),e.includes("out")&&!n&&(e=e.filter((p,g)=>g>e.indexOf("out")));let s=!e.includes("opacity")&&!e.includes("scale"),a=s||e.includes("opacity"),c=s||e.includes("scale"),u=a?0:1,l=c?xt(e,"scale",95)/100:1,f=xt(e,"delay",0)/1e3,w=xt(e,"origin","center"),m="opacity, transform",k=xt(e,"duration",150)/1e3,d=xt(e,"duration",75)/1e3,E="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(t._x_transition.enter.during={transformOrigin:w,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${k}s`,transitionTimingFunction:E},t._x_transition.enter.start={opacity:u,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:w,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${d}s`,transitionTimingFunction:E},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}function Br(t,e,r={}){t._x_transition||(t._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){jt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){jt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(r):o():t._x_transition?t._x_transition.in(r):o();return}t._x_hidePromise=t._x_transition?new Promise((s,a)=>{t._x_transition.out(()=>{},()=>s(n)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=zr(t);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(t)):i(()=>{let a=c=>{let u=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([l])=>l?.());return delete c._x_hidePromise,delete c._x_hideChildren,u};a(t).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function zr(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:zr(e)}function jt(t,e,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,c,u;ci(t,{start(){a=e(t,n)},during(){c=e(t,r)},before:o,end(){a(),u=e(t,i)},after:s,cleanup(){c(),u()}})}function ci(t,e){let r,n,i,o=gt(()=>{_(()=>{r=!0,n||e.before(),i||(e.end(),Lt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:gt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},_(()=>{e.start(),e.during()}),$r(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),_(()=>{e.before()}),n=!0,requestAnimationFrame(()=>{r||(_(()=>{e.end()}),Lt(),setTimeout(t._x_transitioning.finish,s+a),i=!0)})})}function xt(t,e,r){if(t.indexOf(e)===-1)return r;let n=t[t.indexOf(e)+1];if(!n||e==="scale"&&isNaN(n))return r;if(e==="duration"||e==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[n,t[t.indexOf(e)+2]].join(" "):n}var $=!1;function S(t,e=()=>{}){return(...r)=>$?e(...r):t(...r)}function Vr(t){return(...e)=>$&&t(...e)}var Hr=[];function G(t){Hr.push(t)}function qr(t,e){Hr.forEach(r=>r(t,e)),$=!0,Wr(()=>{O(e,(r,n)=>{n(r,()=>{})})}),$=!1}var $t=!1;function Kr(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),$=!0,$t=!0,Wr(()=>{ui(e)}),$=!1,$t=!1}function ui(t){let e=!1;O(t,(n,i)=>{L(n,(o,s)=>{if(e&&Ur(o))return s();e=!0,i(o,s)})})}function Wr(t){let e=D;ue((r,n)=>{let i=e(r);return B(i),()=>{}}),t(),ue(e)}function yt(t,e,r,n=[]){switch(t._x_bindings||(t._x_bindings=C({})),t._x_bindings[e]=r,e=n.includes("camel")?gi(e):e,e){case"value":li(t,r);break;case"style":pi(t,r);break;case"class":fi(t,r);break;case"selected":case"checked":di(t,e,r);break;default:Ne(t,e,r);break}}function li(t,e){if(Ft(t))t.attributes.value===void 0&&(t.value=e);else if(wt(t))Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(r=>xi(r,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")_i(t,e);else if(t.tagName==="OPTION")Ne(t,"value",e);else{if(t.value===e&&(typeof e!="object"||e===null))return;t.value=e===void 0?"":e}}function fi(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=_t(t,e)}function pi(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=rt(t,e)}function di(t,e,r){Ne(t,e,r),mi(t,e,r)}function Ne(t,e,r){[null,void 0,!1].includes(r)&&bi(e)?t.removeAttribute(e):(Gr(e)&&(r=e),wi(r)&&(r=JSON.stringify(r)),hi(t,e,r))}function hi(t,e,r){t.getAttribute(e)!=r&&t.setAttribute(e,r)}function mi(t,e,r){t[e]!==r&&(t[e]=r)}function _i(t,e){let r=[].concat(e).map(n=>n+"");Array.from(t.options).forEach(n=>{n.selected=r.includes(n.value)})}function gi(t){return t.toLowerCase().replace(/-(\w)/g,(e,r)=>r.toUpperCase())}function xi(t,e){return t==e}function bt(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?Boolean(t):null}var yi=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Gr(t){return yi.has(t)}function bi(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function wi(t){return typeof t=="object"&&t!==null}function Jr(t,e,r){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Zr(t,e,r)}function Yr(t,e,r,n=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let i=t._x_inlineBindings[e];return i.extract=n,Mt(()=>M(t,i.expression))}return Zr(t,e,r)}function Zr(t,e,r){let n=t.getAttribute(e);return n===null?typeof r=="function"?r():r:n===""?!0:Gr(e)?!![e,"true"].includes(n):n}function wt(t){return t.type==="checkbox"||t.localName==="ui-checkbox"||t.localName==="ui-switch"}function Ft(t){return t.type==="radio"||t.localName==="ui-radio"}function Bt(t,e){let r;return function(){let n=this,i=arguments,o=function(){r=null,t.apply(n,i)};clearTimeout(r),r=setTimeout(o,e)}}function zt(t,e){let r;return function(){let n=this,i=arguments;r||(t.apply(n,i),r=!0,setTimeout(()=>r=!1,e))}}function Vt({get:t,set:e},{get:r,set:n}){let i=!0,o,s,a=D(()=>{let c=t(),u=r();if(i)n(Ce(c)),i=!1;else{let l=JSON.stringify(c),f=JSON.stringify(u);l!==o?n(Ce(c)):l!==f&&e(Ce(u))}o=JSON.stringify(t()),s=JSON.stringify(r())});return()=>{B(a)}}function Ce(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function Xr(t){(Array.isArray(t)?t:[t]).forEach(r=>r(V))}var H={},Qr=!1;function tn(t,e){if(Qr||(H=C(H),Qr=!0),e===void 0)return H[t];H[t]=e,typeof e=="object"&&e!==null&&e._x_interceptor?H[t]=e.initialize(H,t,t,()=>{}):st(H[t]),typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&H[t].init()}function en(){return H}var rn={};function nn(t,e){let r=typeof e!="function"?()=>e:e;return t instanceof Element?Re(t,r()):(rn[t]=r,()=>{})}function on(t){return Object.entries(rn).forEach(([e,r])=>{Object.defineProperty(t,e,{get(){return(...n)=>r(...n)}})}),t}function Re(t,e,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(e).map(([s,a])=>({name:s,value:a})),o=ve(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),mt(t,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var sn={};function an(t,e){sn[t]=e}function cn(t,e){return Object.entries(sn).forEach(([r,n])=>{Object.defineProperty(t,r,{get(){return(...i)=>n.bind(e)(...i)},enumerable:!1})}),t}var Ei={get reactive(){return C},get release(){return B},get effect(){return D},get raw(){return ce},get transaction(){return or},version:"3.16.1",flushAndStopDeferringMutations:pr,dontAutoEvaluateFunctions:Mt,disableEffectScheduling:rr,startObservingMutations:pt,stopObservingMutations:de,setReactivityEngine:nr,onAttributeRemoved:Nt,onAttributesAdded:Tt,closestDataStack:z,skipDuringClone:S,onlyDuringClone:Vr,addRootSelector:Dt,addInitSelector:Ut,setErrorHandler:_r,interceptClone:G,addScopeToNode:U,deferMutations:fr,mapAttributes:at,evaluateLater:y,interceptInit:jr,initInterceptors:st,injectMagics:K,setEvaluator:xr,setRawEvaluator:br,mergeProxies:R,extractProp:Yr,findClosest:T,onElRemoved:ot,closestRoot:et,destroyTree:j,interceptor:Rt,transition:jt,setStyles:rt,mutateDom:_,directive:h,entangle:Vt,throttle:zt,debounce:Bt,evaluate:M,evaluateRaw:Er,initTree:O,nextTick:ct,prefixed:N,prefix:vr,plugin:Xr,magic:b,store:tn,start:Pr,clone:Kr,cloneNode:qr,bound:Jr,$data:Ct,watch:Ot,walk:L,data:an,bind:nn},V=Ei;var un=new WeakMap,ln=new Set;Object.getOwnPropertyNames(globalThis).forEach(t=>{t==="styleMedia"||t==="sharedStorage"||ln.add(globalThis[t])});var v=class{constructor(e,r,n,i){this.type=e,this.value=r,this.start=n,this.end=i}},Me=class{constructor(e){this.input=e,this.position=0,this.tokens=[]}tokenize(){for(;this.position<this.input.length&&(this.skipWhitespace(),!(this.position>=this.input.length));){let e=this.input[this.position];this.isDigit(e)?this.readNumber():this.isAlpha(e)||e==="_"||e==="$"?this.readIdentifierOrKeyword():e==='"'||e==="'"?this.readString():e==="/"&&this.peek()==="/"?this.skipLineComment():this.readOperatorOrPunctuation()}return this.tokens.push(new v("EOF",null,this.position,this.position)),this.tokens}skipWhitespace(){for(;this.position<this.input.length&&/\s/.test(this.input[this.position]);)this.position++}skipLineComment(){for(;this.position<this.input.length&&this.input[this.position]!==`
|
|
6
|
-
`;)this.position++}isDigit(
|
|
7
|
-
`;break;case"t":n+=" ";break;case"r":n+="\r";break;case"\\":n+="\\";break;case r:n+=r;break;default:n+=o}i=!1}else if(o==="\\")i=!0;else if(o===r){this.position++,this.tokens.push(new v("STRING",n,e,this.position));return}else n+=o;this.position++}throw new Error(`Unterminated string starting at position ${e}`)}readOperatorOrPunctuation(){let e=this.position,r=this.input[this.position],n=this.peek(),i=this.peek(2);if(r==="="&&n==="="&&i==="=")this.position+=3,this.tokens.push(new v("OPERATOR","===",e,this.position));else if(r==="!"&&n==="="&&i==="=")this.position+=3,this.tokens.push(new v("OPERATOR","!==",e,this.position));else if(r==="="&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","==",e,this.position));else if(r==="!"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","!=",e,this.position));else if(r==="<"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","<=",e,this.position));else if(r===">"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR",">=",e,this.position));else if(r==="&"&&n==="&")this.position+=2,this.tokens.push(new v("OPERATOR","&&",e,this.position));else if(r==="|"&&n==="|")this.position+=2,this.tokens.push(new v("OPERATOR","||",e,this.position));else if(r==="+"&&n==="+")this.position+=2,this.tokens.push(new v("OPERATOR","++",e,this.position));else if(r==="-"&&n==="-")this.position+=2,this.tokens.push(new v("OPERATOR","--",e,this.position));else{this.position++;let o="()[]{},.;:?".includes(r)?"PUNCTUATION":"OPERATOR";this.tokens.push(new v(o,r,e,this.position))}}},Pe=class{constructor(e){this.tokens=e,this.position=0}parse(){if(this.isAtEnd())throw new Error("Empty expression");let e=this.parseExpression();if(this.match("PUNCTUATION",";"),!this.isAtEnd())throw new Error(`Unexpected token: ${this.current().value}`);return e}parseExpression(){return this.parseAssignment()}parseAssignment(){let e=this.parseTernary();if(this.match("OPERATOR","=")){let r=this.parseAssignment();if(e.type==="Identifier"||e.type==="MemberExpression")return{type:"AssignmentExpression",left:e,operator:"=",right:r};throw new Error("Invalid assignment target")}return e}parseTernary(){let e=this.parseLogicalOr();if(this.match("PUNCTUATION","?")){let r=this.parseExpression();this.consume("PUNCTUATION",":");let n=this.parseExpression();return{type:"ConditionalExpression",test:e,consequent:r,alternate:n}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.match("OPERATOR","||");){let r=this.previous().value,n=this.parseLogicalAnd();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.match("OPERATOR","&&");){let r=this.previous().value,n=this.parseEquality();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseEquality(){let e=this.parseRelational();for(;this.match("OPERATOR","==","!=","===","!==");){let r=this.previous().value,n=this.parseRelational();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseRelational(){let e=this.parseAdditive();for(;this.match("OPERATOR","<",">","<=",">=");){let r=this.previous().value,n=this.parseAdditive();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseAdditive(){let e=this.parseMultiplicative();for(;this.match("OPERATOR","+","-");){let r=this.previous().value,n=this.parseMultiplicative();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseMultiplicative(){let e=this.parseUnary();for(;this.match("OPERATOR","*","/","%");){let r=this.previous().value,n=this.parseUnary();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseUnary(){if(this.match("OPERATOR","++","--")){let e=this.previous().value,r=this.parseUnary();return{type:"UpdateExpression",operator:e,argument:r,prefix:!0}}if(this.match("OPERATOR","!","-","+")){let e=this.previous().value,r=this.parseUnary();return{type:"UnaryExpression",operator:e,argument:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parseMember();return this.match("OPERATOR","++","--")?{type:"UpdateExpression",operator:this.previous().value,argument:e,prefix:!1}:e}parseMember(){let e=this.parsePrimary();for(;;)if(this.match("PUNCTUATION",".")){let r=this.consume("IDENTIFIER");e={type:"MemberExpression",object:e,property:{type:"Identifier",name:r.value},computed:!1}}else if(this.match("PUNCTUATION","[")){let r=this.parseExpression();this.consume("PUNCTUATION","]"),e={type:"MemberExpression",object:e,property:r,computed:!0}}else if(this.match("PUNCTUATION","(")){let r=this.parseArguments();e={type:"CallExpression",callee:e,arguments:r}}else break;return e}parseArguments(){let e=[];if(!this.check("PUNCTUATION",")"))do e.push(this.parseExpression());while(this.match("PUNCTUATION",","));return this.consume("PUNCTUATION",")"),e}parsePrimary(){if(this.match("NUMBER"))return{type:"Literal",value:this.previous().value};if(this.match("STRING"))return{type:"Literal",value:this.previous().value};if(this.match("BOOLEAN"))return{type:"Literal",value:this.previous().value};if(this.match("NULL"))return{type:"Literal",value:null};if(this.match("UNDEFINED"))return{type:"Literal",value:void 0};if(this.match("IDENTIFIER"))return{type:"Identifier",name:this.previous().value};if(this.match("PUNCTUATION","(")){let e=this.parseExpression();return this.consume("PUNCTUATION",")"),e}if(this.match("PUNCTUATION","["))return this.parseArrayLiteral();if(this.match("PUNCTUATION","{"))return this.parseObjectLiteral();throw new Error(`Unexpected token: ${this.current().type} "${this.current().value}"`)}parseArrayLiteral(){let e=[];for(;!this.check("PUNCTUATION","]")&&!this.isAtEnd()&&(e.push(this.parseExpression()),this.match("PUNCTUATION",","));)if(this.check("PUNCTUATION","]"))break;return this.consume("PUNCTUATION","]"),{type:"ArrayExpression",elements:e}}parseObjectLiteral(){let e=[];for(;!this.check("PUNCTUATION","}")&&!this.isAtEnd();){let r,n=!1;if(this.match("STRING"))r={type:"Literal",value:this.previous().value};else if(this.match("IDENTIFIER"))r={type:"Identifier",name:this.previous().value};else if(this.match("PUNCTUATION","["))r=this.parseExpression(),n=!0,this.consume("PUNCTUATION","]");else throw new Error("Expected property key");this.consume("PUNCTUATION",":");let i=this.parseExpression();if(e.push({type:"Property",key:r,value:i,computed:n,shorthand:!1}),this.match("PUNCTUATION",",")){if(this.check("PUNCTUATION","}"))break}else break}return this.consume("PUNCTUATION","}"),{type:"ObjectExpression",properties:e}}match(...e){for(let r=0;r<e.length;r++){let n=e[r];if(r===0&&e.length>1){let i=n;for(let o=1;o<e.length;o++)if(this.check(i,e[o]))return this.advance(),!0;return!1}else if(e.length===1)return this.checkType(n)?(this.advance(),!0):!1}return!1}check(e,r){return this.isAtEnd()?!1:r!==void 0?this.current().type===e&&this.current().value===r:this.current().type===e}checkType(e){return this.isAtEnd()?!1:this.current().type===e}advance(){return this.isAtEnd()||this.position++,this.previous()}isAtEnd(){return this.current().type==="EOF"}current(){return this.tokens[this.position]}previous(){return this.tokens[this.position-1]}consume(e,r){if(r!==void 0){if(this.check(e,r))return this.advance();throw new Error(`Expected ${e} "${r}" but got ${this.current().type} "${this.current().value}"`)}if(this.check(e))return this.advance();throw new Error(`Expected ${e} but got ${this.current().type} "${this.current().value}"`)}},ke=class{evaluate({node:e,scope:r={},context:n=null,forceBindingRootScopeToFunctions:i=!0}){switch(e.type){case"Literal":return e.value;case"Identifier":if(e.name in r){let p=r[e.name];return this.checkForDangerousValues(p),typeof p=="function"?p.bind(r):p}throw new Error(`Undefined variable: ${e.name}`);case"MemberExpression":let o=this.evaluate({node:e.object,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(o==null)throw new Error("Cannot read property of null or undefined");let s;e.computed?s=this.evaluate({node:e.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):s=e.property.name,this.checkForDangerousKeywords(s);let a=o[s];return this.checkForDangerousValues(a),typeof a=="function"?i?a.bind(r):a.bind(o):a;case"CallExpression":let c=e.arguments.map(p=>this.evaluate({node:p,scope:r,context:n,forceBindingRootScopeToFunctions:i})),u;if(e.callee.type==="MemberExpression"){let p=this.evaluate({node:e.callee.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g;e.callee.computed?g=this.evaluate({node:e.callee.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):g=e.callee.property.name,this.checkForDangerousKeywords(g);let I=p[g];if(typeof I!="function")throw new Error("Value is not a function");u=I.apply(p,c)}else if(e.callee.type==="Identifier"){let p=e.callee.name,g;if(p in r)g=r[p];else throw new Error(`Undefined variable: ${p}`);if(typeof g!="function")throw new Error("Value is not a function");let I=n!==null?n:r;u=g.apply(I,c)}else{let p=this.evaluate({node:e.callee,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(typeof p!="function")throw new Error("Value is not a function");u=p.apply(n,c)}return this.checkForDangerousValues(u),u;case"UnaryExpression":let l=this.evaluate({node:e.argument,scope:r,context:n,forceBindingRootScopeToFunctions:i});switch(e.operator){case"!":return!l;case"-":return-l;case"+":return+l;default:throw new Error(`Unknown unary operator: ${e.operator}`)}case"UpdateExpression":if(e.argument.type==="Identifier"){let p=e.argument.name;if(!(p in r))throw new Error(`Undefined variable: ${p}`);let g=r[p];return e.operator==="++"?r[p]=g+1:e.operator==="--"&&(r[p]=g-1),e.prefix?r[p]:g}else if(e.argument.type==="MemberExpression"){let p=this.evaluate({node:e.argument.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g=e.argument.computed?this.evaluate({node:e.argument.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):e.argument.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");this.checkForDangerousKeywords(g);let I=p[g];return e.operator==="++"?p[g]=I+1:e.operator==="--"&&(p[g]=I-1),e.prefix?p[g]:I}throw new Error("Invalid update expression target");case"BinaryExpression":let f=this.evaluate({node:e.left,scope:r,context:n,forceBindingRootScopeToFunctions:i}),w=()=>this.evaluate({node:e.right,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(e.operator==="&&")return f&&w();if(e.operator==="||")return f||w();let m=w();switch(e.operator){case"+":return f+m;case"-":return f-m;case"*":return f*m;case"/":return f/m;case"%":return f%m;case"==":return f==m;case"!=":return f!=m;case"===":return f===m;case"!==":return f!==m;case"<":return f<m;case">":return f>m;case"<=":return f<=m;case">=":return f>=m;default:throw new Error(`Unknown binary operator: ${e.operator}`)}case"ConditionalExpression":return this.evaluate({node:e.test,scope:r,context:n,forceBindingRootScopeToFunctions:i})?this.evaluate({node:e.consequent,scope:r,context:n,forceBindingRootScopeToFunctions:i}):this.evaluate({node:e.alternate,scope:r,context:n,forceBindingRootScopeToFunctions:i});case"AssignmentExpression":let d=this.evaluate({node:e.right,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(e.left.type==="Identifier")return r[e.left.name]=d,d;if(e.left.type==="MemberExpression"){let p=this.evaluate({node:e.left.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g=e.left.computed?this.evaluate({node:e.left.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):e.left.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");return this.checkForDangerousKeywords(g),p[g]=d,d}throw new Error("Invalid assignment target");case"ArrayExpression":return e.elements.map(p=>this.evaluate({node:p,scope:r,context:n,forceBindingRootScopeToFunctions:i}));case"ObjectExpression":let E={};for(let p of e.properties){let g=p.computed?this.evaluate({node:p.key,scope:r,context:n,forceBindingRootScopeToFunctions:i}):p.key.type==="Identifier"?p.key.name:this.evaluate({node:p.key,scope:r,context:n,forceBindingRootScopeToFunctions:i}),I=this.evaluate({node:p.value,scope:r,context:n,forceBindingRootScopeToFunctions:i});E[g]=I}return E;default:throw new Error(`Unknown node type: ${e.type}`)}}isDOMObject(e){return e instanceof Node||typeof CSSStyleDeclaration<"u"&&e instanceof CSSStyleDeclaration||typeof DOMStringMap<"u"&&e instanceof DOMStringMap||typeof DOMTokenList<"u"&&e instanceof DOMTokenList||typeof NamedNodeMap<"u"&&e instanceof NamedNodeMap}checkForDangerousKeywords(e){if(["constructor","prototype","__proto__","__defineGetter__","__defineSetter__","insertAdjacentHTML","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS"].includes(e))throw new Error(`Accessing "${e}" is prohibited in the CSP build`)}checkForDangerousValues(e){if(e!==null&&!(typeof e!="object"&&typeof e!="function")&&!un.has(e)){if(e instanceof HTMLIFrameElement||e instanceof HTMLScriptElement)throw new Error("Accessing iframes and scripts is prohibited in the CSP build");if(ln.has(e))throw new Error("Accessing global variables is prohibited in the CSP build");return un.set(e,!0),!0}}};function Ie(t){try{let r=new Me(t).tokenize(),i=new Pe(r).parse(),o=new ke;return function(s={}){let{scope:a={},context:c=null,forceBindingRootScopeToFunctions:u=!1}=s;return o.evaluate({node:i,scope:a,context:c,forceBindingRootScopeToFunctions:u})}}catch(e){throw new Error(`CSP Parser Error: ${e.message}`)}}function fn(t,e,r={}){let n=dn(t),i=R([r.scope??{},...n]),o=r.params??[],a=Ie(e)({scope:i,forceBindingRootScopeToFunctions:!0});return typeof a=="function"&&W?a.apply(i,o):a}function pn(t,e){let r=dn(t);if(typeof e=="function")return wr(r,e);let n=vi(t,e,r);return xe.bind(null,t,e,n)}function dn(t){let e={};return K(e,t),[e,...z(t)]}function vi(t,e,r){if(t instanceof HTMLIFrameElement)throw new Error("Evaluating expressions on an iframe is prohibited in the CSP build");if(t instanceof HTMLScriptElement)throw new Error("Evaluating expressions on a script is prohibited in the CSP build");return(n=()=>{},{scope:i={},params:o=[]}={})=>{let s=R([i,...r]),c=Ie(e)({scope:s,forceBindingRootScopeToFunctions:!0});if(W&&typeof c=="function"){let u=c.apply(c,o);u instanceof Promise?u.then(l=>n(l)):n(u)}else typeof c=="object"&&c instanceof Promise?c.then(u=>n(u)):n(c)}}function De(t,e){let r=Object.create(null),n=t.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return e?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var Ai="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var ca=De(Ai+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var hn=Object.freeze({}),ua=Object.freeze([]);var Oi=Object.prototype.hasOwnProperty,Et=(t,e)=>Oi.call(t,e),J=Array.isArray,ut=t=>mn(t)==="[object Map]";var Si=t=>typeof t=="string",Ht=t=>typeof t=="symbol",vt=t=>t!==null&&typeof t=="object";var Ti=Object.prototype.toString,mn=t=>Ti.call(t),Ue=t=>mn(t).slice(8,-1);var qt=t=>Si(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t;var Kt=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Ni=/-(\w)/g,la=Kt(t=>t.replace(Ni,(e,r)=>r?r.toUpperCase():"")),Ci=/\B([A-Z])/g,fa=Kt(t=>t.replace(Ci,"-$1").toLowerCase()),Le=Kt(t=>t.charAt(0).toUpperCase()+t.slice(1)),pa=Kt(t=>t?`on${Le(t)}`:""),je=(t,e)=>t!==e&&(t===t||e===e);var $e=new WeakMap,At=[],F,nt=Symbol("iterate"),Fe=Symbol("Map key iterate");function Ri(t){return t&&t._isEffect===!0}function wn(t,e=hn){Ri(t)&&(t=t.raw);let r=Pi(t,e);return e.lazy||r(),r}function En(t){t.active&&(vn(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var Mi=0;function Pi(t,e){let r=function(){if(!r.active)return t();if(!At.includes(r)){vn(r);try{return Ii(),At.push(r),F=r,t()}finally{At.pop(),An(),F=At[At.length-1]}}};return r.id=Mi++,r.allowRecurse=!!e.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=t,r.deps=[],r.options=e,r}function vn(t){let{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}var lt=!0,ze=[];function ki(){ze.push(lt),lt=!1}function Ii(){ze.push(lt),lt=!0}function An(){let t=ze.pop();lt=t===void 0?!0:t}function P(t,e,r){if(!lt||F===void 0)return;let n=$e.get(t);n||$e.set(t,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(F)||(i.add(F),F.deps.push(i),F.options.onTrack&&F.options.onTrack({effect:F,target:t,type:e,key:r}))}function Z(t,e,r,n,i,o){let s=$e.get(t);if(!s)return;let a=new Set,c=l=>{l&&l.forEach(f=>{(f!==F||f.allowRecurse)&&a.add(f)})};if(e==="clear")s.forEach(c);else if(r==="length"&&J(t))s.forEach((l,f)=>{(f==="length"||f>=n)&&c(l)});else switch(r!==void 0&&c(s.get(r)),e){case"add":J(t)?qt(r)&&c(s.get("length")):(c(s.get(nt)),ut(t)&&c(s.get(Fe)));break;case"delete":J(t)||(c(s.get(nt)),ut(t)&&c(s.get(Fe)));break;case"set":ut(t)&&c(s.get(nt));break}let u=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:t,key:r,type:e,newValue:n,oldValue:i,oldTarget:o}),l.options.scheduler?l.options.scheduler(l):l()};a.forEach(u)}var Di=De("__proto__,__v_isRef,__isVue"),On=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Ht)),Ui=Sn();var Li=Sn(!0);var _n=ji();function ji(){let t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){let n=x(this);for(let o=0,s=this.length;o<s;o++)P(n,"get",o+"");let i=n[e](...r);return i===-1||i===!1?n[e](...r.map(x)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){ki();let n=x(this)[e].apply(this,r);return An(),n}}),t}function Sn(t=!1,e=!1){return function(n,i,o){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_raw"&&o===(t?e?to:Rn:e?Qi:Cn).get(n))return n;let s=J(n);if(!t&&s&&Et(_n,i))return Reflect.get(_n,i,o);let a=Reflect.get(n,i,o);return(Ht(i)?On.has(i):Di(i))||(t||P(n,"get",i),e)?a:Be(a)?!s||!qt(i)?a.value:a:vt(a)?t?Mn(a):Qt(a):a}}var $i=Fi();function Fi(t=!1){return function(r,n,i,o){let s=r[n];if(!t&&(i=x(i),s=x(s),!J(r)&&Be(s)&&!Be(i)))return s.value=i,!0;let a=J(r)&&qt(n)?Number(n)<r.length:Et(r,n),c=Reflect.set(r,n,i,o);return r===x(o)&&(a?je(i,s)&&Z(r,"set",n,i,s):Z(r,"add",n,i)),c}}function Bi(t,e){let r=Et(t,e),n=t[e],i=Reflect.deleteProperty(t,e);return i&&r&&Z(t,"delete",e,void 0,n),i}function zi(t,e){let r=Reflect.has(t,e);return(!Ht(e)||!On.has(e))&&P(t,"has",e),r}function Vi(t){return P(t,"iterate",J(t)?"length":nt),Reflect.ownKeys(t)}var Hi={get:Ui,set:$i,deleteProperty:Bi,has:zi,ownKeys:Vi},qi={get:Li,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}};var Ve=t=>vt(t)?Qt(t):t,He=t=>vt(t)?Mn(t):t,qe=t=>t,Xt=t=>Reflect.getPrototypeOf(t);function Wt(t,e,r=!1,n=!1){t=t.__v_raw;let i=x(t),o=x(e);e!==o&&!r&&P(i,"get",e),!r&&P(i,"get",o);let{has:s}=Xt(i),a=n?qe:r?He:Ve;if(s.call(i,e))return a(t.get(e));if(s.call(i,o))return a(t.get(o));t!==i&&t.get(e)}function Gt(t,e=!1){let r=this.__v_raw,n=x(r),i=x(t);return t!==i&&!e&&P(n,"has",t),!e&&P(n,"has",i),t===i?r.has(t):r.has(t)||r.has(i)}function Jt(t,e=!1){return t=t.__v_raw,!e&&P(x(t),"iterate",nt),Reflect.get(t,"size",t)}function gn(t){t=x(t);let e=x(this);return Xt(e).has.call(e,t)||(e.add(t),Z(e,"add",t,t)),this}function xn(t,e){e=x(e);let r=x(this),{has:n,get:i}=Xt(r),o=n.call(r,t);o?Nn(r,n,t):(t=x(t),o=n.call(r,t));let s=i.call(r,t);return r.set(t,e),o?je(e,s)&&Z(r,"set",t,e,s):Z(r,"add",t,e),this}function yn(t){let e=x(this),{has:r,get:n}=Xt(e),i=r.call(e,t);i?Nn(e,r,t):(t=x(t),i=r.call(e,t));let o=n?n.call(e,t):void 0,s=e.delete(t);return i&&Z(e,"delete",t,void 0,o),s}function bn(){let t=x(this),e=t.size!==0,r=ut(t)?new Map(t):new Set(t),n=t.clear();return e&&Z(t,"clear",void 0,void 0,r),n}function Yt(t,e){return function(n,i){let o=this,s=o.__v_raw,a=x(s),c=e?qe:t?He:Ve;return!t&&P(a,"iterate",nt),s.forEach((u,l)=>n.call(i,c(u),c(l),o))}}function Zt(t,e,r){return function(...n){let i=this.__v_raw,o=x(i),s=ut(o),a=t==="entries"||t===Symbol.iterator&&s,c=t==="keys"&&s,u=i[t](...n),l=r?qe:e?He:Ve;return!e&&P(o,"iterate",c?Fe:nt),{next(){let{value:f,done:w}=u.next();return w?{value:f,done:w}:{value:a?[l(f[0]),l(f[1])]:l(f),done:w}},[Symbol.iterator](){return this}}}}function Y(t){return function(...e){{let r=e[0]?`on key "${e[0]}" `:"";console.warn(`${Le(t)} operation ${r}failed: target is readonly.`,x(this))}return t==="delete"?!1:this}}function Ki(){let t={get(o){return Wt(this,o)},get size(){return Jt(this)},has:Gt,add:gn,set:xn,delete:yn,clear:bn,forEach:Yt(!1,!1)},e={get(o){return Wt(this,o,!1,!0)},get size(){return Jt(this)},has:Gt,add:gn,set:xn,delete:yn,clear:bn,forEach:Yt(!1,!0)},r={get(o){return Wt(this,o,!0)},get size(){return Jt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Y("add"),set:Y("set"),delete:Y("delete"),clear:Y("clear"),forEach:Yt(!0,!1)},n={get(o){return Wt(this,o,!0,!0)},get size(){return Jt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Y("add"),set:Y("set"),delete:Y("delete"),clear:Y("clear"),forEach:Yt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Zt(o,!1,!1),r[o]=Zt(o,!0,!1),e[o]=Zt(o,!1,!0),n[o]=Zt(o,!0,!0)}),[t,r,e,n]}var[Wi,Gi,Ji,Yi]=Ki();function Tn(t,e){let r=e?t?Yi:Ji:t?Gi:Wi;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Et(r,i)&&i in n?r:n,i,o)}var Zi={get:Tn(!1,!1)};var Xi={get:Tn(!0,!1)};function Nn(t,e,r){let n=x(r);if(n!==r&&e.call(t,n)){let i=Ue(t);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 Cn=new WeakMap,Qi=new WeakMap,Rn=new WeakMap,to=new WeakMap;function eo(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ro(t){return t.__v_skip||!Object.isExtensible(t)?0:eo(Ue(t))}function Qt(t){return t&&t.__v_isReadonly?t:Pn(t,!1,Hi,Zi,Cn)}function Mn(t){return Pn(t,!0,qi,Xi,Rn)}function Pn(t,e,r,n,i){if(!vt(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let o=i.get(t);if(o)return o;let s=ro(t);if(s===0)return t;let a=new Proxy(t,s===2?n:r);return i.set(t,a),a}function x(t){return t&&x(t.__v_raw)||t}function Be(t){return Boolean(t&&t.__v_isRef===!0)}b("nextTick",()=>ct);b("dispatch",t=>tt.bind(tt,t));b("watch",(t,{evaluateLater:e,cleanup:r})=>(n,i)=>{let o=e(n),a=Ot(()=>{let c;return o(u=>c=u),c},i);r(a)});b("store",en);b("data",t=>Ct(t));b("root",t=>et(t));b("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=R(no(t))),t._x_refs_proxy));function no(t){let e=[];return T(t,r=>{r._x_refs&&e.push(r._x_refs)}),e}var Ke={};function We(t){return Ke[t]||(Ke[t]=0),++Ke[t]}function kn(t,e){return T(t,r=>{if(r._x_ids&&r._x_ids[e])return!0})}function In(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=We(e))}b("id",(t,{cleanup:e})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return io(t,i,e,()=>{let o=kn(t,r),s=o?o._x_ids[r]:We(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});G((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function io(t,e,r,n){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let i=n();return t._x_id[e]=i,r(()=>{delete t._x_id[e]}),i}b("el",t=>t);Dn("Focus","focus","focus");Dn("Persist","persist","persist");function Dn(t,e,r){b(e,n=>A(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}h("modelable",(t,{expression:e},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(e),s=()=>{let l;return o(f=>l=f),l},a=n(`${e} = __placeholder`),c=l=>a(()=>{},{scope:{__placeholder:l}}),u=s();c(u),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let l=t._x_model.get,f=t._x_model.setWithModifiers,w=Vt({get(){return l()},set(m){f(m)}},{get(){return s()},set(m){c(m)}});i(w)})});h("teleport",(t,{modifiers:e,expression:r},{cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&A("x-teleport can only be used on a <template> tag",t);let i=Un(r),o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(a=>{o.addEventListener(a,c=>{c.stopPropagation(),t.dispatchEvent(new c.constructor(c.type,c))})}),U(o,{},t);let s=(a,c,u)=>{u.includes("prepend")?c.parentNode.insertBefore(a,c):u.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};_(()=>{S(()=>{s(o,i,e),O(o)})()}),t._x_teleportPutBack=()=>{let a=Un(r);_(()=>{s(t._x_teleport,a,e)})},n(()=>_(()=>{o.remove(),j(o)}))});var oo=document.createElement("div");function Un(t){let e=S(()=>document.querySelector(t),()=>oo)();return e||A(`Cannot find x-teleport element for selector: "${t}"`),e}var Ln=()=>{};Ln.inline=(t,{modifiers:e},{cleanup:r})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,r(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};h("ignore",Ln);h("effect",S((t,{expression:e},{effect:r})=>{r(y(t,e))}));function q(t,e,r,n){let i=t,o=c=>n(c),s={},a=(c,u)=>l=>u(c,l);return r.includes("dot")&&(e=so(e)),r.includes("camel")&&(e=ao(e)),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("passive")&&(s.passive=r[r.indexOf("passive")+1]!=="false"),o=Ge(r,o),r.includes("prevent")&&(o=a(o,(c,u)=>{u.preventDefault(),c(u)})),r.includes("stop")&&(o=a(o,(c,u)=>{u.stopPropagation(),c(u)})),r.includes("once")&&(o=a(o,(c,u)=>{c(u),i.removeEventListener(e,o,s)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,u)=>{t.contains(u.target)||u.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&c(u))})),r.includes("self")&&(o=a(o,(c,u)=>{u.target===t&&c(u)})),e==="submit"&&(o=a(o,(c,u)=>{u.target._x_pendingModelUpdates&&u.target._x_pendingModelUpdates.forEach(l=>l()),c(u)})),(uo(e)||$n(e))&&(o=a(o,(c,u)=>{lo(u,r)||c(u)})),i.addEventListener(e,o,s),()=>{i.removeEventListener(e,o,s)}}function Ge(t,e){if(t.includes("debounce")){let r=t[t.indexOf("debounce")+1]||"invalid-wait",n=te(r.split("ms")[0])?Number(r.split("ms")[0]):250;e=Bt(e,n)}if(t.includes("throttle")){let r=t[t.indexOf("throttle")+1]||"invalid-wait",n=te(r.split("ms")[0])?Number(r.split("ms")[0]):250;e=zt(e,n)}return e}function so(t){return t.replace(/-/g,".")}function ao(t){return t.toLowerCase().replace(/-(\w)/g,(e,r)=>r.toUpperCase())}function te(t){return!Array.isArray(t)&&!isNaN(t)}function co(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function uo(t){return["keydown","keyup"].includes(t)}function $n(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function lo(t,e){let r=e.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,te((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,te((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&jn(t.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),t[`${s}Key`])).length===i.length&&($n(t.type)||jn(t.key).includes(r[0])))}function jn(t){if(!t)return[];t=co(t);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(r=>{if(e[r]===t)return r}).filter(r=>r)}h("model",(t,{modifiers:e,expression:r},{effect:n,cleanup:i})=>{let o=t;e.includes("parent")&&(o=T(t,d=>d!==t));let s=y(o,r),a;typeof r=="string"?a=y(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=y(o,`${r()} = __placeholder`):a=()=>{};let c=()=>{let d;return s(E=>d=E),Fn(d)?d.get():d},u=d=>{let E;s(p=>E=p),Fn(E)?E.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof r=="string"&&t.type==="radio"&&_(()=>{t.hasAttribute("name")||t.setAttribute("name",r)});let l=e.includes("change")||e.includes("lazy"),f=e.includes("blur"),w=e.includes("enter"),m=l||f||w,k;if($)k=()=>{};else if(m){let d=[],E=p=>u(ee(t,e,p,c()));if(l&&d.push(q(t,"change",e,E)),f&&(d.push(q(t,"blur",e,E)),t.form)){let p=t.form,g=()=>E({target:t});p._x_pendingModelUpdates||(p._x_pendingModelUpdates=[]),p._x_pendingModelUpdates.push(g),i(()=>{p._x_pendingModelUpdates&&p._x_pendingModelUpdates.splice(p._x_pendingModelUpdates.indexOf(g),1)})}w&&d.push(q(t,"keydown",e,p=>{p.key==="Enter"&&E(p)})),k=()=>d.forEach(p=>p())}else{let d=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)?"change":"input";k=q(t,d,e,E=>{u(ee(t,e,E,c()))})}if(e.includes("fill")&&([void 0,null,""].includes(c())||wt(t)&&Array.isArray(c())||t.tagName.toLowerCase()==="select"&&t.multiple)&&u(ee(t,e,{target:t},c())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=k,i(()=>t._x_removeModelListeners.default()),t.form){let d=q(t.form,"reset",[],E=>{ct(()=>t._x_model&&t._x_model.set(ee(t,e,{target:t},c())))});i(()=>d())}if(t._x_model={get(){return c()},set(d){u(d)},setWithModifiers:Ge(e,u)},t._x_forceModelUpdate=d=>{d===void 0&&typeof r=="string"&&r.match(/\./)&&(d=""),_(()=>{wt(t)?Array.isArray(d)?t.checked=d.some(E=>E==t.value):t.checked=!!d:Ft(t)?typeof d=="boolean"?t.checked=bt(t.value)===d:t.checked=t.value==d:yt(t,"value",d)})},t.tagName==="SELECT"){let d=new MutationObserver(()=>{t._x_forceModelUpdate(c())});d.observe(t,{childList:!0}),i(()=>d.disconnect())}n(()=>{let d=c();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(d)})});function ee(t,e,r,n){return _(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(wt(t))if(Array.isArray(n)){let i=null;return e.includes("number")?i=Je(r.target.value):e.includes("boolean")?i=bt(r.target.value):i=r.target.value,r.target.checked?n.includes(i)?n:n.concat([i]):n.filter(o=>!fo(o,i))}else return r.target.checked;else{if(t.tagName.toLowerCase()==="select"&&t.multiple)return e.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Je(o)}):e.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return bt(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text);{let i;return Ft(t)?r.target.checked?i=r.target.value:i=n:i=r.target.value,e.includes("number")?Je(i):e.includes("boolean")?bt(i):e.includes("trim")?i.trim():i}}})}function Je(t){let e=t?parseFloat(t):null;return po(e)?e:t}function fo(t,e){return t==e}function po(t){return!Array.isArray(t)&&!isNaN(t)}function Fn(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}h("cloak",t=>queueMicrotask(()=>_(()=>t.removeAttribute(N("cloak")))));Ut(()=>`[${N("init")}]`);h("init",S((t,{expression:e},{evaluate:r})=>typeof e=="string"?!!e.trim()&&r(e,{},!1):r(e,{},!1)));h("text",(t,{expression:e},{effect:r,evaluateLater:n})=>{let i=n(e);r(()=>{i(o=>{_(()=>{t.textContent=o})})})});h("html",(t,{expression:e},{effect:r,evaluateLater:n})=>{let i=n(e);r(()=>{i(o=>{_(()=>{t.innerHTML=o??"",t._x_ignoreSelf=!0,O(t),delete t._x_ignoreSelf})})})});at(kt(":",It(N("bind:"))));var Bn=(t,{value:e,modifiers:r,expression:n,original:i},{effect:o,cleanup:s})=>{if(!e){let c={};on(c),y(t,n)(l=>{Re(t,l,i)},{scope:c});return}if(e==="key")return ho(t,n);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let a=y(t,n);o(()=>a(c=>{c===void 0&&typeof n=="string"&&n.match(/\./)&&(c=""),_(()=>yt(t,e,c,r))})),s(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};Bn.inline=(t,{value:e,modifiers:r,expression:n})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:n,extract:!1})};h("bind",Bn);function ho(t,e){t._x_keyExpression=e}Dt(()=>`[${N("data")}]`);var it=Symbol();h("data",(t,{expression:e},{cleanup:r})=>{if(_o(t))return;let n=t[it];if(n?.expression===e)return;e=e===""?"{}":e;let i={};K(i,t);let o={};cn(o,i);let s=M(t,e,{scope:o});(s===void 0||s===!0)&&(s={}),K(s,t);let a;if(n?.reactiveData){a=n.reactiveData,mo(a,s);let u={expression:e};t[it]=u,queueMicrotask(()=>{t[it]===u&&delete t[it]})}else a=C(s);st(a,r);let c=U(t,a);a.init&&M(t,a.init),r(()=>{a.destroy&&M(t,a.destroy),c();let u={reactiveData:a};t[it]=u,queueMicrotask(()=>{t[it]===u&&delete t[it]})})});function mo(t,e){Object.keys(e).forEach(r=>{let n=Object.getOwnPropertyDescriptor(e,r),i=Object.getOwnPropertyDescriptor(t,r);n.get||n.set||i?.get||i?.set?(i&&delete t[r],i||(t[r]=void 0),n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]):t[r]=e[r]}),Object.keys(t).filter(r=>!Object.prototype.hasOwnProperty.call(e,r)).forEach(r=>delete t[r])}G((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function _o(t){return $?$t?!0:t.hasAttribute("data-has-alpine-state"):!1}h("show",(t,{modifiers:e,expression:r},{effect:n})=>{let i=y(t,r);t._x_doHide||(t._x_doHide=()=>{_(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{_(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let o=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},a=()=>setTimeout(s),c=gt(f=>f?s():o(),f=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,f,s,o):f?a():o()}),u,l=!0;n(()=>i(f=>{!l&&f===u||(e.includes("immediate")&&(f?a():o()),c(f),u=f,l=!1)}))});h("for",S((t,{expression:e},{effect:r,cleanup:n})=>{let i=yo(e),o=y(t,i.items),s=y(t,t._x_keyExpression||"index");t._x_lookup=new Map,r(()=>xo(t,i,o,s)),n(()=>{t._x_lookup.forEach(a=>_(()=>{j(a),a.remove()})),delete t._x_lookup,delete t._x_lastRenderedEl})}));function go(t){return e=>{Object.entries(e).forEach(([r,n])=>{t[r]=n})}}function xo(t,e,r,n){r(i=>{wo(i)&&(i=Array.from({length:i},(u,l)=>l+1)),i==null&&(i=[]),i instanceof Set&&(i=Array.from(i)),i instanceof Map&&(i=Array.from(i));let o=t._x_lookup,s=new Map;t._x_lookup=s;let a=Eo(i),c=Object.entries(i).map(([u,l])=>{a||(u=parseInt(u));let f=bo(e,l,u,i),w;return n(m=>{typeof m=="object"&&A("x-for key cannot be an object, it must be a string or an integer",t),o.has(m)&&(s.set(m,o.get(m)),o.delete(m)),w=m},{scope:{index:u,...f}}),[w,f]});_(()=>{o.forEach(f=>{j(f),f.remove()});let u=new Set,l=t;c.forEach(([f,w])=>{if(s.has(f)){let d=s.get(f);d._x_refreshXForScope(w),l.nextElementSibling!==d&&(l.nextElementSibling&&d.replaceWith(l.nextElementSibling),l.after(d)),l=d,d._x_currentIfEl&&(d.nextElementSibling!==d._x_currentIfEl&&l.after(d._x_currentIfEl),l=d._x_currentIfEl);return}t.content.children.length>1&&A("x-for templates require a single root element, additional elements will be ignored.",t);let m=document.importNode(t.content,!0).firstElementChild,k=C(w);U(m,k,t),m._x_refreshXForScope=go(k),s.set(f,m),u.add(m),l.after(m),l=m}),u.forEach(f=>O(f)),l!==t?t._x_lastRenderedEl=l:delete t._x_lastRenderedEl})})}function yo(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=t.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function bo(t,e,r,n){let i={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=e[a]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=e[s]}):i[t.item]=e,t.index&&(i[t.index]=r),t.collection&&(i[t.collection]=n),i}function wo(t){return typeof t!="object"&&!isNaN(t)}function Eo(t){return typeof t=="object"&&!Array.isArray(t)}function zn(){}zn.inline=(t,{expression:e},{cleanup:r})=>{let n=et(t);n&&(n._x_refs||(n._x_refs={}),n._x_refs[e]=t,r(()=>delete n._x_refs[e]))};h("ref",zn);h("if",S((t,{expression:e},{effect:r,cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&A("x-if can only be used on a <template> tag",t);let i=y(t,e),o=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let a=t.content.cloneNode(!0).firstElementChild;return U(a,{},t),_(()=>{t.after(a),O(a)}),t._x_currentIfEl=a,t._x_lastRenderedEl=a,t._x_undoIf=()=>{_(()=>{j(a),a.remove()}),delete t._x_currentIfEl,delete t._x_lastRenderedEl},a},s=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>t._x_undoIf&&t._x_undoIf())}));h("id",(t,{expression:e},{evaluate:r})=>{r(e).forEach(i=>In(t,i))});G((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});at(kt("@",It(N("on:"))));h("on",S((t,{value:e,modifiers:r,expression:n},{cleanup:i})=>{let o=n?y(t,n):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let s=q(t,e,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));re("Collapse","collapse","collapse");re("Intersect","intersect","intersect");re("Focus","trap","focus");re("Mask","mask","mask");function re(t,e,r){h(e,n=>A(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}h("html",(t,{expression:e})=>{dt(new Error("Using the x-html directive is prohibited in the CSP build"),t)});V.setEvaluator(pn);V.setRawEvaluator(fn);V.setReactivityEngine({reactive:Qt,effect:wn,release:En,raw:x});var Ye=V;window.Alpine=Ye;queueMicrotask(()=>{Ye.start()});})();
|
|
5
|
+
`:""}`,t),setTimeout(()=>{throw e},0)}var Z=!0;function Ge(e){let t=Z;Z=!1;let r=e();return Z=t,r}function I(e,t,r={}){let i;return b(e,t)(n=>i=n,r),i}function b(...e){return Br(...e)}var Br=()=>{};function Kr(e){Br=e}var qr;function zr(e){qr=e}function Wr(e,t){return(r=()=>{},{scope:i={},params:n=[],context:s}={})=>{if(!Z){Mt(r,t,P([i,...e]),n);return}let o=t.apply(P([i,...e]),n);Mt(r,o)}}function Mt(e,t,r,i,n){if(Z&&typeof t=="function"){let s=t.apply(r,i);s instanceof Promise?s.then(o=>Mt(e,o,r,i)).catch(o=>re(o,n,t)):e(s)}else typeof t=="object"&&t instanceof Promise?t.then(s=>e(s)):e(t)}function Gr(...e){return qr(...e)}var jt="x-";function R(e=""){return jt+e}function Yr(e){jt=e}var Ye={};function h(e,t){return Ye[e]=t,{before(r){if(!Ye[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let i=ie.indexOf(r);ie.splice(i>=0?i:ie.indexOf("DEFAULT"),0,e)}}}function Jr(e){return Object.keys(Ye).includes(e)}function ne(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let s=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),o=Ft(s);s=s.map(a=>o.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(s)}let i={};return t.map(Qr((s,o)=>i[s]=o)).filter(ti).map(Tn(i,r)).sort(Cn).map(s=>Nn(e,s))}function Ft(e){return Array.from(e).map(Qr()).filter(t=>!ti(t))}var Lt=!1,Se=new Map,Xr=Symbol();function Zr(e){Lt=!0;let t=Symbol();Xr=t,Se.set(t,[]);let r=()=>{for(;Se.get(t).length;)Se.get(t).shift()();Se.delete(t)},i=()=>{Lt=!1,r()};e(r),i()}function Pt(e){let t=[],r=a=>t.push(a),[i,n]=Cr(e);return t.push(n),[{Alpine:W,effect:i,cleanup:r,evaluateLater:b.bind(b,e),evaluate:I.bind(I,e)},()=>t.forEach(a=>a())]}function Nn(e,t){let r=()=>{},i=Ye[t.type]||r,[n,s]=Pt(e);Be(e,t.original,s);let o=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,n),i=i.bind(i,e,t,n),Lt?Se.get(Xr).push(i):i())};return o.runCleanups=s,o}var Je=(e,t)=>({name:r,value:i})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:i}),Xe=e=>e;function Qr(e=()=>{}){return({name:t,value:r})=>{let{name:i,value:n}=ei.reduce((s,o)=>o(s),{name:t,value:r});return i!==t&&e(i,t),{name:i,value:n}}}var ei=[];function ge(e){ei.push(e)}function ti({name:e}){return ri().test(e)}var ri=()=>new RegExp(`^${jt}([^:^.]+)\\b`);function Tn(e,t){return({name:r,value:i})=>{r===i&&(i="");let n=r.match(ri()),s=r.match(/:([a-zA-Z0-9\-_:]+)/),o=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:n?n[1]:null,value:s?s[1]:null,modifiers:o.map(c=>c.replace(".","")),expression:i,original:a}}}var Ut="DEFAULT",ie=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",Ut,"teleport"];function Cn(e,t){let r=ie.indexOf(e.type)===-1?Ut:e.type,i=ie.indexOf(t.type)===-1?Ut:t.type;return ie.indexOf(r)-ie.indexOf(i)}function $(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(n=>$(n,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let i=e.firstElementChild;for(;i;)$(i,t,!1),i=i.nextElementSibling}var V=!1;function O(e,t=()=>{}){return(...r)=>V?t(...r):e(...r)}function ii(e){return(...t)=>V&&e(...t)}var ni=[];function H(e){ni.push(e)}function si(e,t){ni.forEach(r=>r(e,t)),V=!0,ai(()=>{S(t,(r,i)=>{i(r,()=>{})})}),V=!1}var Ze=!1;function oi(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),V=!0,Ze=!0,ai(()=>{Rn(t)}),V=!1,Ze=!1}function Rn(e){let t=!1;S(e,(i,n)=>{$(i,(s,o)=>{if(t&&ci(s))return o();t=!0,n(s,o)})})}function ai(e){let t=j;Nt((r,i)=>{let n=t(r);return q(n),()=>{}}),e(),Nt(t)}var Qe=0;function li(e,t){let r=e._x_deferInit;r||(r=e._x_deferInit={pending:0,ownsIgnore:!e._x_ignore,queuedAttributes:new Map},r.ownsIgnore&&(e._x_ignore=!0),Qe++),r.pending++,Promise.resolve(t).catch(i=>{try{re(i,e)}catch(n){setTimeout(()=>{throw n},0)}}).then(()=>kn(e,r))}function kn(e,t){t.pending--,!(t.pending>0)&&(Lr(),!(t.pending>0)&&e._x_deferInit===t&&(delete e._x_deferInit,t.ownsIgnore&&delete e._x_ignore,Qe--,e.isConnected&&(Dn(t),S(e))))}function ui(e,t){if(Qe===0)return!1;let r=N(e,i=>i._x_deferInit);return r?(fi(r._x_deferInit,e,t.map(({name:i})=>i)),!0):!1}function fi(e,t,r){let i=e.queuedAttributes.get(t);(!i||i.marker!==t._x_marker)&&(i={marker:t._x_marker,names:new Set},e.queuedAttributes.set(t,i)),r.forEach(n=>i.names.add(n))}function Dn(e){e.queuedAttributes.forEach((t,r)=>{if(!r.isConnected||!r._x_marker||r._x_marker!==t.marker)return;let i=N(r,s=>s._x_deferInit);if(i){fi(i._x_deferInit,r,Array.from(t.names));return}let n=Array.from(t.names).filter(s=>r.hasAttribute(s)).map(s=>({name:s,value:r.getAttribute(s)}));n.length!==0&&ne(r,n).forEach(s=>s())})}H((e,t)=>{Qe!==0&&(!e||e.nodeType!==1||!t||t.nodeType!==1||N(e,r=>r._x_deferInit)&&(t._x_ignore=!0))});function se(e,t,r={},i={}){return e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...i}))}function T(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var pi=!1;function di(){pi&&T("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),pi=!0,document.body||T("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),se(document,"alpine:init"),se(document,"alpine:initializing"),Oe(),Ir(t=>S(t,$)),me(t=>k(t)),He((t,r)=>{ui(t,r)||ne(t,r).forEach(i=>i())});let e=t=>!oe(t.parentElement,!0);Array.from(document.querySelectorAll(_i().join(","))).filter(e).forEach(t=>{S(t)}),se(document,"alpine:initialized"),setTimeout(()=>{In()})}var $t=[],hi=[];function mi(){return $t.map(e=>e())}function _i(){return $t.concat(hi).map(e=>e())}function et(e){$t.push(e)}function tt(e){hi.push(e)}function oe(e,t=!1){return N(e,r=>{if((t?_i():mi()).some(n=>r.matches(n)))return!0})}function N(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return N(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return N(e.parentNode.host,t);if(e.parentElement)return N(e.parentElement,t)}}function ci(e){return mi().some(t=>e.matches(t))}var gi=[];function yi(e){gi.push(e)}var Pn=1;function S(e,t=$,r=()=>{}){N(e,i=>i._x_ignore)||Zr(()=>{t(e,(i,n)=>{i._x_marker||(r(i,n),gi.forEach(s=>s(i,n)),ne(i,i.attributes).forEach(s=>s()),i._x_ignore||(i._x_marker=Pn++),i._x_ignore&&n())})})}function k(e,t=$){t(e,r=>{Mr(r),Tt(r),delete r._x_marker})}function In(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,r,i])=>{Jr(r)||i.some(n=>{if(document.querySelector(n))return T(`found "${n}", but missing ${t} plugin`),!0})})}var Vt=[],Ht=!1;function ye(e=()=>{}){return queueMicrotask(()=>{Ht||setTimeout(()=>{rt()})}),new Promise(t=>{Vt.push(()=>{e(),t()})})}function rt(){for(Ht=!1;Vt.length;)Vt.shift()()}function xi(){Ht=!0}function Ne(e,t){return Array.isArray(t)?Ei(e,t.join(" ")):typeof t=="object"&&t!==null?Mn(e,t):typeof t=="function"?Ne(e,t()):Ei(e,t)}function Bt(e){return e.split(/\s/).filter(Boolean)}function Ei(e,t){let r=n=>Bt(n).filter(s=>!e.classList.contains(s)).filter(Boolean),i=n=>(e.classList.add(...n),()=>{e.classList.remove(...n)});return t=t===!0?t="":t||"",i(r(t))}function Mn(e,t){let r=Object.entries(t).flatMap(([o,a])=>a?Bt(o):!1).filter(Boolean),i=Object.entries(t).flatMap(([o,a])=>a?!1:Bt(o)).filter(Boolean),n=[],s=[];return i.forEach(o=>{e.classList.contains(o)&&(e.classList.remove(o),s.push(o))}),r.forEach(o=>{e.classList.contains(o)||(e.classList.add(o),n.push(o))}),()=>{s.forEach(o=>e.classList.add(o)),n.forEach(o=>e.classList.remove(o))}}function ae(e,t){return typeof t=="object"&&t!==null?Ln(e,t):Un(e,t)}function Ln(e,t){let r={};return Object.entries(t).forEach(([i,n])=>{r[i]=e.style[i],i.startsWith("--")||(i=jn(i)),e.style.setProperty(i,n)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{ae(e,r)}}function Un(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function jn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Te(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}h("transition",(e,{value:t,modifiers:r,expression:i},{evaluate:n})=>{typeof i=="function"&&(i=n(i)),i!==!1&&(!i||typeof i=="boolean"?$n(e,r,t):Fn(e,i,t))});function Fn(e,t,r){bi(e,Ne,""),{enter:n=>{e._x_transition.enter.during=n},"enter-start":n=>{e._x_transition.enter.start=n},"enter-end":n=>{e._x_transition.enter.end=n},leave:n=>{e._x_transition.leave.during=n},"leave-start":n=>{e._x_transition.leave.start=n},"leave-end":n=>{e._x_transition.leave.end=n}}[r](t)}function $n(e,t,r){bi(e,ae);let i=!t.includes("in")&&!t.includes("out")&&!r,n=i||t.includes("in")||["enter"].includes(r),s=i||t.includes("out")||["leave"].includes(r);t.includes("in")&&!i&&(t=t.filter((p,y)=>y<t.indexOf("out"))),t.includes("out")&&!i&&(t=t.filter((p,y)=>y>t.indexOf("out")));let o=!t.includes("opacity")&&!t.includes("scale"),a=o||t.includes("opacity"),c=o||t.includes("scale"),l=a?0:1,u=c?Ce(t,"scale",95)/100:1,f=Ce(t,"delay",0)/1e3,g=Ce(t,"origin","center"),m="opacity, transform",L=Ce(t,"duration",150)/1e3,d=Ce(t,"duration",75)/1e3,w="cubic-bezier(0.4, 0.0, 0.2, 1)";n&&(e._x_transition.enter.during={transformOrigin:g,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${L}s`,transitionTimingFunction:w},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),s&&(e._x_transition.leave.during={transformOrigin:g,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${d}s`,transitionTimingFunction:w},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function bi(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(i=()=>{},n=()=>{}){it(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,n)},out(i=()=>{},n=()=>{}){it(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,n)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,i){let n=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,s=()=>n(r);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(r):s():e._x_transition?e._x_transition.in(r):s();return}e._x_hidePromise=e._x_transition?new Promise((o,a)=>{e._x_transition.out(()=>{},()=>o(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let o=vi(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):n(()=>{let a=c=>{let l=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([u])=>u?.());return delete c._x_hidePromise,delete c._x_hideChildren,l};a(e).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function vi(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:vi(t)}function it(e,t,{during:r,start:i,end:n}={},s=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(i).length===0&&Object.keys(n).length===0){s(),o();return}let a,c,l;Vn(e,{start(){a=t(e,i)},during(){c=t(e,r)},before:s,end(){a(),l=t(e,n)},after:o,cleanup(){c(),l()}})}function Vn(e,t){let r,i,n,s=Te(()=>{_(()=>{r=!0,i||t.before(),n||(t.end(),rt()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:Te(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s},_(()=>{t.start(),t.during()}),xi(),requestAnimationFrame(()=>{if(r)return;let o=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),_(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{r||(_(()=>{t.end()}),rt(),setTimeout(e._x_transitioning.finish,o+a),n=!0)})})}function Ce(e,t,r){if(e.indexOf(t)===-1)return r;let i=e[e.indexOf(t)+1];if(!i||t==="scale"&&isNaN(i))return r;if(t==="duration"||t==="delay"){let n=i.match(/([0-9]+)ms/);if(n)return n[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}function Re(e,t,r,i=[]){switch(e._x_bindings||(e._x_bindings=D({})),e._x_bindings[t]=r,t=i.includes("camel")?Yn(t):t,t){case"value":Hn(e,r);break;case"style":Kn(e,r);break;case"class":Bn(e,r);break;case"selected":case"checked":qn(e,t,r);break;default:Kt(e,t,r);break}}function Hn(e,t){if(nt(e))e.attributes.value===void 0&&(e.value=t);else if(De(e))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(r=>Jn(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Gn(e,t);else if(e.tagName==="OPTION")Kt(e,"value",t);else{if(e.value===t&&(typeof t!="object"||t===null))return;e.value=t===void 0?"":t}}function Bn(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Ne(e,t)}function Kn(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=ae(e,t)}function qn(e,t,r){Kt(e,t,r),Wn(e,t,r)}function Kt(e,t,r){[null,void 0,!1].includes(r)&&Zn(t)?e.removeAttribute(t):(wi(t)&&(r=t),Qn(r)&&(r=JSON.stringify(r)),zn(e,t,r))}function zn(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function Wn(e,t,r){e[t]!==r&&(e[t]=r)}function Gn(e,t){let r=[].concat(t).map(i=>i+"");Array.from(e.options).forEach(i=>{i.selected=r.includes(i.value)})}function Yn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Jn(e,t){return e==t}function ke(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}var Xn=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function wi(e){return Xn.has(e)}function Zn(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Qn(e){return typeof e=="object"&&e!==null}function Ai(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Si(e,t,r)}function Oi(e,t,r,i=!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 n=e._x_inlineBindings[t];return n.extract=i,Ge(()=>I(e,n.expression))}return Si(e,t,r)}function Si(e,t,r){let i=e.getAttribute(t);return i===null?typeof r=="function"?r():r:i===""?!0:wi(t)?!![t,"true"].includes(i):i}function De(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function nt(e){return e.type==="radio"||e.localName==="ui-radio"}function st(e,t){let r;return function(){let i=this,n=arguments,s=function(){r=null,e.apply(i,n)};clearTimeout(r),r=setTimeout(s,t)}}function ot(e,t){let r;return function(){let i=this,n=arguments;r||(e.apply(i,n),r=!0,setTimeout(()=>r=!1,t))}}function at({get:e,set:t},{get:r,set:i}){let n=!0,s,o,a=j(()=>{let c=e(),l=r();if(n)i(qt(c)),n=!1;else{let u=JSON.stringify(c),f=JSON.stringify(l);u!==s?i(qt(c)):u!==f&&t(qt(l))}s=JSON.stringify(e()),o=JSON.stringify(r())});return()=>{he(a),q(a)}}function qt(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Ni(e){(Array.isArray(e)?e:[e]).forEach(r=>r(W))}var G={},Ti=!1;function Ci(e,t){if(Ti||(G=D(G),Ti=!0),t===void 0)return G[e];G[e]=t,typeof t=="object"&&t!==null&&t._x_interceptor?G[e]=t.initialize(G,e,e,()=>{}):_e(G[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&G[e].init()}function Ri(){return G}var ki={};function Di(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?zt(e,r()):(ki[e]=r,()=>{})}function Pi(e){return Object.entries(ki).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...i)=>r(...i)}})}),e}function zt(e,t,r){let i=[];for(;i.length;)i.pop()();let n=Object.entries(t).map(([o,a])=>({name:o,value:a})),s=Ft(n);return n=n.map(o=>s.find(a=>a.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),ne(e,n,r).map(o=>{i.push(o.runCleanups),o()}),()=>{for(;i.length;)i.pop()()}}var Ii={};function Mi(e,t){Ii[e]=t}function Li(e,t){return Object.entries(Ii).forEach(([r,i])=>{Object.defineProperty(e,r,{get(){return(...n)=>i.bind(t)(...n)},enumerable:!1})}),e}var es={get reactive(){return D},get release(){return q},get effect(){return j},get raw(){return St},get transaction(){return Rr},version:"3.17.3",flushAndStopDeferringMutations:jr,dontAutoEvaluateFunctions:Ge,disableEffectScheduling:Nr,startObservingMutations:Oe,stopObservingMutations:Rt,setReactivityEngine:Tr,onAttributeRemoved:Be,onAttributesAdded:He,closestDataStack:z,skipDuringClone:O,onlyDuringClone:ii,addRootSelector:et,addInitSelector:tt,setErrorHandler:Hr,interceptClone:H,addScopeToNode:F,deferMutations:Ur,mapAttributes:ge,evaluateLater:b,interceptInit:yi,initInterceptors:_e,injectMagics:X,setEvaluator:Kr,setRawEvaluator:zr,mergeProxies:P,extractProp:Oi,findClosest:N,onElRemoved:me,closestRoot:oe,destroyTree:k,interceptor:We,transition:it,setStyles:ae,mutateDom:_,deferInit:li,directive:h,entangle:at,throttle:ot,debounce:st,evaluate:I,evaluateRaw:Gr,initTree:S,nextTick:ye,prefixed:R,prefix:Yr,plugin:Ni,magic:v,store:Ci,start:di,clone:oi,cloneNode:si,bound:Ai,$data:ze,watch:$e,walk:$,data:Mi,bind:Di},W=es;var Ui=new WeakMap,ji=new Set;Object.getOwnPropertyNames(globalThis).forEach(e=>{if(e==="styleMedia"||e==="sharedStorage")return;let t;try{t=globalThis[e]}catch{return}ji.add(t)});var A=class{constructor(t,r,i,n){this.type=t,this.value=r,this.start=i,this.end=n}},ts=["IDENTIFIER","KEYWORD","BOOLEAN","NULL","UNDEFINED"],Wt=class{constructor(t){this.input=t,this.position=0,this.tokens=[]}tokenize(){for(;this.position<this.input.length&&(this.skipWhitespace(),!(this.position>=this.input.length));){let t=this.input[this.position];this.isDigit(t)?this.readNumber():this.isAlpha(t)||t==="_"||t==="$"?this.readIdentifierOrKeyword():t==='"'||t==="'"?this.readString():t==="/"&&this.peek()==="/"?this.skipLineComment():this.readOperatorOrPunctuation()}return this.tokens.push(new A("EOF",null,this.position,this.position)),this.tokens}skipWhitespace(){for(;this.position<this.input.length&&/\s/.test(this.input[this.position]);)this.position++}skipLineComment(){for(;this.position<this.input.length&&this.input[this.position]!==`
|
|
6
|
+
`;)this.position++}isDigit(t){return/[0-9]/.test(t)}isAlpha(t){return/[a-zA-Z]/.test(t)}isAlphaNumeric(t){return/[a-zA-Z0-9_$]/.test(t)}peek(t=1){return this.input[this.position+t]||""}readNumber(){let t=this.position,r=!1;for(;this.position<this.input.length;){let n=this.input[this.position];if(this.isDigit(n))this.position++;else if(n==="."&&!r)r=!0,this.position++;else break}let i=this.input.slice(t,this.position);this.tokens.push(new A("NUMBER",parseFloat(i),t,this.position))}readIdentifierOrKeyword(){let t=this.position;for(;this.position<this.input.length&&this.isAlphaNumeric(this.input[this.position]);)this.position++;let r=this.input.slice(t,this.position);["true","false","null","undefined","new","typeof","void","delete","in","instanceof"].includes(r)?r==="true"||r==="false"?this.tokens.push(new A("BOOLEAN",r==="true",t,this.position)):r==="null"?this.tokens.push(new A("NULL",null,t,this.position)):r==="undefined"?this.tokens.push(new A("UNDEFINED",void 0,t,this.position)):this.tokens.push(new A("KEYWORD",r,t,this.position)):this.tokens.push(new A("IDENTIFIER",r,t,this.position))}readString(){let t=this.position,r=this.input[this.position];this.position++;let i="",n=!1;for(;this.position<this.input.length;){let s=this.input[this.position];if(n){switch(s){case"n":i+=`
|
|
7
|
+
`;break;case"t":i+=" ";break;case"r":i+="\r";break;case"\\":i+="\\";break;case r:i+=r;break;case"u":{let o=this.input.slice(this.position+1,this.position+5);/^[0-9a-fA-F]{4}$/.test(o)?(i+=String.fromCharCode(parseInt(o,16)),this.position+=4):i+=s;break}default:i+=s}n=!1}else if(s==="\\")n=!0;else if(s===r){this.position++,this.tokens.push(new A("STRING",i,t,this.position));return}else i+=s;this.position++}throw new Error(`Unterminated string starting at position ${t}`)}readOperatorOrPunctuation(){let t=this.position,r=this.input[this.position],i=this.peek(),n=this.peek(2);if(r==="="&&i==="="&&n==="=")this.position+=3,this.tokens.push(new A("OPERATOR","===",t,this.position));else if(r==="!"&&i==="="&&n==="=")this.position+=3,this.tokens.push(new A("OPERATOR","!==",t,this.position));else if(r==="="&&i==="=")this.position+=2,this.tokens.push(new A("OPERATOR","==",t,this.position));else if(r==="!"&&i==="=")this.position+=2,this.tokens.push(new A("OPERATOR","!=",t,this.position));else if(r==="<"&&i==="=")this.position+=2,this.tokens.push(new A("OPERATOR","<=",t,this.position));else if(r===">"&&i==="=")this.position+=2,this.tokens.push(new A("OPERATOR",">=",t,this.position));else if(r==="&"&&i==="&")this.position+=2,this.tokens.push(new A("OPERATOR","&&",t,this.position));else if(r==="|"&&i==="|")this.position+=2,this.tokens.push(new A("OPERATOR","||",t,this.position));else if(r==="+"&&i==="+")this.position+=2,this.tokens.push(new A("OPERATOR","++",t,this.position));else if(r==="-"&&i==="-")this.position+=2,this.tokens.push(new A("OPERATOR","--",t,this.position));else{this.position++;let s="()[]{},.;:?".includes(r)?"PUNCTUATION":"OPERATOR";this.tokens.push(new A(s,r,t,this.position))}}},Gt=class{constructor(t){this.tokens=t,this.position=0}parse(){if(this.isAtEnd())throw new Error("Empty expression");let t=this.parseExpression();if(this.match("PUNCTUATION",";"),!this.isAtEnd())throw new Error(`Unexpected token: ${this.current().value}`);return t}parseExpression(){return this.parseAssignment()}parseAssignment(){let t=this.parseTernary();if(this.match("OPERATOR","=")){let r=this.parseAssignment();if(t.type==="Identifier"||t.type==="MemberExpression")return{type:"AssignmentExpression",left:t,operator:"=",right:r};throw new Error("Invalid assignment target")}return t}parseTernary(){let t=this.parseLogicalOr();if(this.match("PUNCTUATION","?")){let r=this.parseExpression();this.consume("PUNCTUATION",":");let i=this.parseExpression();return{type:"ConditionalExpression",test:t,consequent:r,alternate:i}}return t}parseLogicalOr(){let t=this.parseLogicalAnd();for(;this.match("OPERATOR","||");){let r=this.previous().value,i=this.parseLogicalAnd();t={type:"BinaryExpression",operator:r,left:t,right:i}}return t}parseLogicalAnd(){let t=this.parseEquality();for(;this.match("OPERATOR","&&");){let r=this.previous().value,i=this.parseEquality();t={type:"BinaryExpression",operator:r,left:t,right:i}}return t}parseEquality(){let t=this.parseRelational();for(;this.match("OPERATOR","==","!=","===","!==");){let r=this.previous().value,i=this.parseRelational();t={type:"BinaryExpression",operator:r,left:t,right:i}}return t}parseRelational(){let t=this.parseAdditive();for(;this.match("OPERATOR","<",">","<=",">=");){let r=this.previous().value,i=this.parseAdditive();t={type:"BinaryExpression",operator:r,left:t,right:i}}return t}parseAdditive(){let t=this.parseMultiplicative();for(;this.match("OPERATOR","+","-");){let r=this.previous().value,i=this.parseMultiplicative();t={type:"BinaryExpression",operator:r,left:t,right:i}}return t}parseMultiplicative(){let t=this.parseUnary();for(;this.match("OPERATOR","*","/","%");){let r=this.previous().value,i=this.parseUnary();t={type:"BinaryExpression",operator:r,left:t,right:i}}return t}parseUnary(){if(this.match("OPERATOR","++","--")){let t=this.previous().value,r=this.parseUnary();return{type:"UpdateExpression",operator:t,argument:r,prefix:!0}}if(this.match("OPERATOR","!","-","+")){let t=this.previous().value,r=this.parseUnary();return{type:"UnaryExpression",operator:t,argument:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let t=this.parseMember();return this.match("OPERATOR","++","--")?{type:"UpdateExpression",operator:this.previous().value,argument:t,prefix:!1}:t}parseMember(){let t=this.parsePrimary();for(;;)if(this.match("PUNCTUATION",".")){let r=this.consumeIdentifierName();t={type:"MemberExpression",object:t,property:{type:"Identifier",name:r},computed:!1}}else if(this.match("PUNCTUATION","[")){let r=this.parseExpression();this.consume("PUNCTUATION","]"),t={type:"MemberExpression",object:t,property:r,computed:!0}}else if(this.match("PUNCTUATION","(")){let r=this.parseArguments();t={type:"CallExpression",callee:t,arguments:r}}else break;return t}parseArguments(){let t=[];if(!this.check("PUNCTUATION",")"))do t.push(this.parseExpression());while(this.match("PUNCTUATION",","));return this.consume("PUNCTUATION",")"),t}parsePrimary(){if(this.match("NUMBER"))return{type:"Literal",value:this.previous().value};if(this.match("STRING"))return{type:"Literal",value:this.previous().value};if(this.match("BOOLEAN"))return{type:"Literal",value:this.previous().value};if(this.match("NULL"))return{type:"Literal",value:null};if(this.match("UNDEFINED"))return{type:"Literal",value:void 0};if(this.match("IDENTIFIER"))return{type:"Identifier",name:this.previous().value};if(this.match("PUNCTUATION","(")){let t=this.parseExpression();return this.consume("PUNCTUATION",")"),t}if(this.match("PUNCTUATION","["))return this.parseArrayLiteral();if(this.match("PUNCTUATION","{"))return this.parseObjectLiteral();throw new Error(`Unexpected token: ${this.current().type} "${this.current().value}"`)}parseArrayLiteral(){let t=[];for(;!this.check("PUNCTUATION","]")&&!this.isAtEnd()&&(t.push(this.parseExpression()),this.match("PUNCTUATION",","));)if(this.check("PUNCTUATION","]"))break;return this.consume("PUNCTUATION","]"),{type:"ArrayExpression",elements:t}}parseObjectLiteral(){let t=[];for(;!this.check("PUNCTUATION","}")&&!this.isAtEnd();){let r,i=!1;if(this.match("STRING"))r={type:"Literal",value:this.previous().value};else if(this.checkIdentifierName())r={type:"Identifier",name:this.consumeIdentifierName()};else if(this.match("PUNCTUATION","["))r=this.parseExpression(),i=!0,this.consume("PUNCTUATION","]");else throw new Error("Expected property key");this.consume("PUNCTUATION",":");let n=this.parseExpression();if(t.push({type:"Property",key:r,value:n,computed:i,shorthand:!1}),this.match("PUNCTUATION",",")){if(this.check("PUNCTUATION","}"))break}else break}return this.consume("PUNCTUATION","}"),{type:"ObjectExpression",properties:t}}match(...t){for(let r=0;r<t.length;r++){let i=t[r];if(r===0&&t.length>1){let n=i;for(let s=1;s<t.length;s++)if(this.check(n,t[s]))return this.advance(),!0;return!1}else if(t.length===1)return this.checkType(i)?(this.advance(),!0):!1}return!1}check(t,r){return this.isAtEnd()?!1:r!==void 0?this.current().type===t&&this.current().value===r:this.current().type===t}checkType(t){return this.isAtEnd()?!1:this.current().type===t}advance(){return this.isAtEnd()||this.position++,this.previous()}isAtEnd(){return this.current().type==="EOF"}current(){return this.tokens[this.position]}previous(){return this.tokens[this.position-1]}consume(t,r){if(r!==void 0){if(this.check(t,r))return this.advance();throw new Error(`Expected ${t} "${r}" but got ${this.current().type} "${this.current().value}"`)}if(this.check(t))return this.advance();throw new Error(`Expected ${t} but got ${this.current().type} "${this.current().value}"`)}checkIdentifierName(){return this.isAtEnd()?!1:ts.includes(this.current().type)}consumeIdentifierName(){if(!this.checkIdentifierName())throw new Error(`Expected an identifier name but got ${this.current().type} "${this.current().value}"`);let t=this.advance();switch(t.type){case"BOOLEAN":return t.value?"true":"false";case"NULL":return"null";case"UNDEFINED":return"undefined";default:return t.value}}},Yt=class{evaluate({node:t,scope:r={},context:i=null,forceBindingRootScopeToFunctions:n=!0}){switch(t.type){case"Literal":return t.value;case"Identifier":if(t.name in r){let p=r[t.name];return this.checkForDangerousValues(p),typeof p=="function"?p.bind(r):p}throw new Error(`Undefined variable: ${t.name}`);case"MemberExpression":let s=this.evaluate({node:t.object,scope:r,context:i,forceBindingRootScopeToFunctions:n});if(s==null)throw new Error("Cannot read property of null or undefined");let o;t.computed?o=this.evaluate({node:t.property,scope:r,context:i,forceBindingRootScopeToFunctions:n}):o=t.property.name,this.checkForDangerousKeywords(o);let a=s[o];return this.checkForDangerousValues(a),typeof a=="function"?n?a.bind(r):a.bind(s):a;case"CallExpression":let c=t.arguments.map(p=>this.evaluate({node:p,scope:r,context:i,forceBindingRootScopeToFunctions:n})),l;if(t.callee.type==="MemberExpression"){let p=this.evaluate({node:t.callee.object,scope:r,context:i,forceBindingRootScopeToFunctions:n}),y;t.callee.computed?y=this.evaluate({node:t.callee.property,scope:r,context:i,forceBindingRootScopeToFunctions:n}):y=t.callee.property.name,this.checkForDangerousKeywords(y);let U=p[y];if(typeof U!="function")throw new Error("Value is not a function");l=U.apply(p,c)}else if(t.callee.type==="Identifier"){let p=t.callee.name,y;if(p in r)y=r[p];else throw new Error(`Undefined variable: ${p}`);if(typeof y!="function")throw new Error("Value is not a function");let U=i!==null?i:r;l=y.apply(U,c)}else{let p=this.evaluate({node:t.callee,scope:r,context:i,forceBindingRootScopeToFunctions:n});if(typeof p!="function")throw new Error("Value is not a function");l=p.apply(i,c)}return this.checkForDangerousValues(l),l;case"UnaryExpression":let u=this.evaluate({node:t.argument,scope:r,context:i,forceBindingRootScopeToFunctions:n});switch(t.operator){case"!":return!u;case"-":return-u;case"+":return+u;default:throw new Error(`Unknown unary operator: ${t.operator}`)}case"UpdateExpression":if(t.argument.type==="Identifier"){let p=t.argument.name;if(!(p in r))throw new Error(`Undefined variable: ${p}`);let y=r[p];return t.operator==="++"?r[p]=y+1:t.operator==="--"&&(r[p]=y-1),t.prefix?r[p]:y}else if(t.argument.type==="MemberExpression"){let p=this.evaluate({node:t.argument.object,scope:r,context:i,forceBindingRootScopeToFunctions:n}),y=t.argument.computed?this.evaluate({node:t.argument.property,scope:r,context:i,forceBindingRootScopeToFunctions:n}):t.argument.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");this.checkForDangerousKeywords(y);let U=p[y];return t.operator==="++"?p[y]=U+1:t.operator==="--"&&(p[y]=U-1),t.prefix?p[y]:U}throw new Error("Invalid update expression target");case"BinaryExpression":let f=this.evaluate({node:t.left,scope:r,context:i,forceBindingRootScopeToFunctions:n}),g=()=>this.evaluate({node:t.right,scope:r,context:i,forceBindingRootScopeToFunctions:n});if(t.operator==="&&")return f&&g();if(t.operator==="||")return f||g();let m=g();switch(t.operator){case"+":return f+m;case"-":return f-m;case"*":return f*m;case"/":return f/m;case"%":return f%m;case"==":return f==m;case"!=":return f!=m;case"===":return f===m;case"!==":return f!==m;case"<":return f<m;case">":return f>m;case"<=":return f<=m;case">=":return f>=m;default:throw new Error(`Unknown binary operator: ${t.operator}`)}case"ConditionalExpression":return this.evaluate({node:t.test,scope:r,context:i,forceBindingRootScopeToFunctions:n})?this.evaluate({node:t.consequent,scope:r,context:i,forceBindingRootScopeToFunctions:n}):this.evaluate({node:t.alternate,scope:r,context:i,forceBindingRootScopeToFunctions:n});case"AssignmentExpression":let d=this.evaluate({node:t.right,scope:r,context:i,forceBindingRootScopeToFunctions:n});if(t.left.type==="Identifier")return r[t.left.name]=d,d;if(t.left.type==="MemberExpression"){let p=this.evaluate({node:t.left.object,scope:r,context:i,forceBindingRootScopeToFunctions:n}),y=t.left.computed?this.evaluate({node:t.left.property,scope:r,context:i,forceBindingRootScopeToFunctions:n}):t.left.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");return this.checkForDangerousKeywords(y),p[y]=d,d}throw new Error("Invalid assignment target");case"ArrayExpression":return t.elements.map(p=>this.evaluate({node:p,scope:r,context:i,forceBindingRootScopeToFunctions:n}));case"ObjectExpression":let w={};for(let p of t.properties){let y=p.computed?this.evaluate({node:p.key,scope:r,context:i,forceBindingRootScopeToFunctions:n}):p.key.type==="Identifier"?p.key.name:this.evaluate({node:p.key,scope:r,context:i,forceBindingRootScopeToFunctions:n}),U=this.evaluate({node:p.value,scope:r,context:i,forceBindingRootScopeToFunctions:n});w[y]=U}return w;default:throw new Error(`Unknown node type: ${t.type}`)}}isDOMObject(t){if(t instanceof Node||typeof CSSStyleDeclaration<"u"&&t instanceof CSSStyleDeclaration||typeof DOMStringMap<"u"&&t instanceof DOMStringMap||typeof DOMTokenList<"u"&&t instanceof DOMTokenList||typeof NamedNodeMap<"u"&&t instanceof NamedNodeMap)return!0;let r=t!=null&&t.constructor;return!!(r&&typeof r.name=="string"&&/^(SVG|CSS|DOM)[A-Z]/.test(r.name))}checkForDangerousKeywords(t){if(["constructor","prototype","__proto__","__defineGetter__","__defineSetter__","insertAdjacentHTML","insertAdjacentElement","insertAdjacentText","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","createElement","createElementNS","createDocumentFragment","createContextualFragment","appendChild","insertBefore","replaceChild"].includes(t))throw new Error(`Accessing "${t}" is prohibited in the CSP build`)}checkForDangerousValues(t){if(t!==null&&!(typeof t!="object"&&typeof t!="function")&&!Ui.has(t)){if(t instanceof HTMLIFrameElement||t instanceof HTMLScriptElement||typeof SVGScriptElement<"u"&&t instanceof SVGScriptElement)throw new Error("Accessing iframes and scripts is prohibited in the CSP build");if(typeof Document<"u"&&t instanceof Document)throw new Error("Accessing document objects is prohibited in the CSP build");if(ji.has(t))throw new Error("Accessing global variables is prohibited in the CSP build");return Ui.set(t,!0),!0}}};function Jt(e){try{let r=new Wt(e).tokenize(),n=new Gt(r).parse(),s=new Yt;return function(o={}){let{scope:a={},context:c=null,forceBindingRootScopeToFunctions:l=!1}=o;return s.evaluate({node:n,scope:a,context:c,forceBindingRootScopeToFunctions:l})}}catch(t){throw new Error(`CSP Parser Error: ${t.message}`)}}function Fi(e,t,r={}){let i=Vi(e),n=P([r.scope??{},...i]),s=r.params??[],a=Jt(t)({scope:n,forceBindingRootScopeToFunctions:!0});return typeof a=="function"&&Z?a.apply(n,s):a}function $i(e,t){let r=Vi(e);if(typeof t=="function")return Wr(r,t);let i=rs(e,t,r);return It.bind(null,e,t,i)}function Vi(e){let t={};return X(t,e),[t,...z(e)]}function rs(e,t,r){if(e instanceof HTMLIFrameElement)throw new Error("Evaluating expressions on an iframe is prohibited in the CSP build");if(e instanceof HTMLScriptElement)throw new Error("Evaluating expressions on a script is prohibited in the CSP build");return(i=()=>{},{scope:n={},params:s=[]}={})=>{let o=P([n,...r]),c=Jt(t)({scope:o,forceBindingRootScopeToFunctions:!0});if(Z&&typeof c=="function"){let l=c.apply(c,s);l instanceof Promise?l.then(u=>i(u)):i(l)}else typeof c=="object"&&c instanceof Promise?c.then(l=>i(l)):i(c)}}function Xt(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return r=>r in t}var is=Object.freeze({}),Ka=Object.freeze([]);var xe=Object.assign;var ns=Object.prototype.hasOwnProperty,ct=(e,t)=>ns.call(e,t),Ee=Array.isArray,be=e=>Hi(e)==="[object Map]";var ss=e=>typeof e=="string",ve=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object";var os=Object.prototype.toString,Hi=e=>os.call(e),Zt=e=>Hi(e).slice(8,-1);var lt=e=>ss(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var ut=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},as=/-\w/g,qa=ut(e=>e.replace(as,t=>t.slice(1).toUpperCase())),cs=/\B([A-Z])/g,za=ut(e=>e.replace(cs,"-$1").toLowerCase()),Qt=ut(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wa=ut(e=>e?`on${Qt(e)}`:""),Q=(e,t)=>!Object.is(e,t);var ls="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Ga=Xt(ls+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function le(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var er;var x;var tr=new WeakSet,dt=class{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,er&&(er.active?er.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tr.has(this)&&(tr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||us(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Bi(this),Wi(this);let t=x,r=M;x=this,M=!0;try{return this.fn()}finally{x!==this&&le("Active effect was not restored correctly - this is likely a Vue internal bug."),Gi(this),x=t,M=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)mr(t);this.deps=this.depsTail=void 0,Bi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){nr(this)&&this.run()}get dirty(){return nr(this)}},zi=0,Ie,Me;function us(e,t=!1){if(e.flags|=8,t){e.next=Me,Me=e;return}e.next=Ie,Ie=e}function dr(){zi++}function hr(){if(--zi>0)return;if(Me){let t=Me;for(Me=void 0;t;){let r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ie;){let t=Ie;for(Ie=void 0;t;){let r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=r}}if(e)throw e}function Wi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gi(e){let t,r=e.depsTail,i=r;for(;i;){let n=i.prevDep;i.version===-1?(i===r&&(r=n),mr(i),ps(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=r}function nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ht)||(e.globalVersion=ht,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!nr(e))))return;e.flags|=2;let t=e.dep,r=x,i=M;x=e,M=!0;try{Wi(e);let n=e.fn(e._value);(t.version===0||Q(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{x=r,M=i,Gi(e),e.flags&=-3}}function mr(e,t=!1){let{dep:r,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),r.subsHead===e&&(r.subsHead=n),r.subs===e&&(r.subs=i,!i&&r.computed)){r.computed.flags&=-5;for(let s=r.computed.deps;s;s=s.nextDep)mr(s,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function ps(e){let{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function Yi(e,t){e.effect instanceof dt&&(e=e.effect.fn);let r=new dt(e);t&&xe(r,t);try{r.run()}catch(n){throw r.stop(),n}let i=r.run.bind(r);return i.effect=r,i}function Ji(e){e.effect.stop()}var M=!0,Xi=[];function ds(){Xi.push(M),M=!1}function hs(){let e=Xi.pop();M=e===void 0?!0:e}function Bi(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let r=x;x=void 0;try{t()}finally{x=r}}}var ht=0,sr=class{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},or=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(t){if(!x||!M||x===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==x)r=this.activeLink=new sr(x,this),x.deps?(r.prevDep=x.depsTail,x.depsTail.nextDep=r,x.depsTail=r):x.deps=x.depsTail=r,Zi(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let i=r.nextDep;i.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=i),r.prevDep=x.depsTail,r.nextDep=void 0,x.depsTail.nextDep=r,x.depsTail=r,x.deps===r&&(x.deps=i)}return x.onTrack&&x.onTrack(xe({effect:x},t)),r}trigger(t){this.version++,ht++,this.notify(t)}notify(t){dr();try{for(let r=this.subsHead;r;r=r.nextSub)r.sub.onTrigger&&!(r.sub.flags&8)&&r.sub.onTrigger(xe({effect:r.sub},t));for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{hr()}}};function Zi(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Zi(i)}let r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}var ar=new WeakMap,ce=Symbol("Object iterate"),cr=Symbol("Map keys iterate"),Ue=Symbol("Array iterate");function C(e,t,r){if(M&&x){let i=ar.get(e);i||ar.set(e,i=new Map);let n=i.get(r);n||(i.set(r,n=new or),n.map=i,n.key=r),n.track({target:e,type:t,key:r})}}function ee(e,t,r,i,n,s){let o=ar.get(e);if(!o){ht++;return}let a=c=>{c&&c.trigger({target:e,type:t,key:r,newValue:i,oldValue:n,oldTarget:s})};if(dr(),t==="clear")o.forEach(a);else{let c=Ee(e),l=c&<(r);if(c&&r==="length"){let u=Number(i);o.forEach((f,g)=>{(g==="length"||g===Ue||!ve(g)&&g>=u)&&a(f)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),l&&a(o.get(Ue)),t){case"add":c?l&&a(o.get("length")):(a(o.get(ce)),be(e)&&a(o.get(cr)));break;case"delete":c||(a(o.get(ce)),be(e)&&a(o.get(cr)));break;case"set":be(e)&&a(o.get(ce));break}}hr()}function Ae(e){let t=E(e);return t===e?t:(C(t,"iterate",Ue),fe(e)?t:t.map(pe))}function _r(e){return C(e=E(e),"iterate",Ue),e}function B(e,t){return ue(e)?sn(e)?je(pe(t)):je(t):pe(t)}var ms={__proto__:null,[Symbol.iterator](){return rr(this,Symbol.iterator,e=>B(this,e))},concat(...e){return Ae(this).concat(...e.map(t=>Ee(t)?Ae(t):t))},entries(){return rr(this,"entries",e=>(e[1]=B(this,e[1]),e))},every(e,t){return Y(this,"every",e,t,void 0,arguments)},filter(e,t){return Y(this,"filter",e,t,r=>r.map(i=>B(this,i)),arguments)},find(e,t){return Y(this,"find",e,t,r=>B(this,r),arguments)},findIndex(e,t){return Y(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Y(this,"findLast",e,t,r=>B(this,r),arguments)},findLastIndex(e,t){return Y(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Y(this,"forEach",e,t,void 0,arguments)},includes(...e){return ir(this,"includes",e)},indexOf(...e){return ir(this,"indexOf",e)},join(e){return Ae(this).join(e)},lastIndexOf(...e){return ir(this,"lastIndexOf",e)},map(e,t){return Y(this,"map",e,t,void 0,arguments)},pop(){return Pe(this,"pop")},push(...e){return Pe(this,"push",e)},reduce(e,...t){return Ki(this,"reduce",e,t)},reduceRight(e,...t){return Ki(this,"reduceRight",e,t)},shift(){return Pe(this,"shift")},some(e,t){return Y(this,"some",e,t,void 0,arguments)},splice(...e){return Pe(this,"splice",e)},toReversed(){return Ae(this).toReversed()},toSorted(e){return Ae(this).toSorted(e)},toSpliced(...e){return Ae(this).toSpliced(...e)},unshift(...e){return Pe(this,"unshift",e)},values(){return rr(this,"values",e=>B(this,e))}};function rr(e,t,r){let i=_r(e),n=i[t]();return i!==e&&!fe(e)&&(n._next=n.next,n.next=()=>{let s=n._next();return s.done||(s.value=r(s.value)),s}),n}var _s=Array.prototype;function Y(e,t,r,i,n,s){let o=_r(e),a=o!==e&&!fe(e),c=o[t];if(c!==_s[t]){let f=c.apply(e,s);return a?pe(f):f}let l=r;o!==e&&(a?l=function(f,g){return r.call(this,B(e,f),g,e)}:r.length>2&&(l=function(f,g){return r.call(this,f,g,e)}));let u=c.call(o,l,i);return a&&n?n(u):u}function Ki(e,t,r,i){let n=_r(e),s=n!==e&&!fe(e),o=r,a=!1;n!==e&&(s?(a=i.length===0,o=function(l,u,f){return a&&(a=!1,l=B(e,l)),r.call(this,l,B(e,u),f,e)}):r.length>3&&(o=function(l,u,f){return r.call(this,l,u,f,e)}));let c=n[t](o,...i);return a?B(e,c):c}function ir(e,t,r){let i=E(e);C(i,"iterate",Ue);let n=i[t](...r);return(n===-1||n===!1)&&Ts(r[0])?(r[0]=E(r[0]),i[t](...r)):n}function Pe(e,t,r=[]){ds(),dr();let i=E(e)[t].apply(e,r);return hr(),hs(),i}var gs=Xt("__proto__,__v_isRef,__isVue"),Qi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ve));function ys(e){ve(e)||(e=String(e));let t=E(this);return C(t,"has",e),t.hasOwnProperty(e)}var mt=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,i){if(r==="__v_skip")return t.__v_skip;let n=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return s;if(r==="__v_raw")return i===(n?s?Ss:rn:s?Os:tn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let o=Ee(t);if(!n){let c;if(o&&(c=ms[r]))return c;if(r==="hasOwnProperty")return ys}let a=Reflect.get(t,r,Le(t)?t:i);if((ve(r)?Qi.has(r):gs(r))||(n||C(t,"get",r),s))return a;if(Le(a)){let c=o&<(r)?a:a.value;return n&&we(c)?pr(c):c}return we(a)?n?pr(a):_t(a):a}},lr=class extends mt{constructor(t=!1){super(!1,t)}set(t,r,i,n){let s=t[r],o=Ee(t)&<(r);if(!this._isShallow){let l=ue(s);if(!fe(i)&&!ue(i)&&(s=E(s),i=E(i)),!o&&Le(s)&&!Le(i))return l?(le(`Set operation on key "${String(r)}" failed: target is readonly.`,t[r]),!0):(s.value=i,!0)}let a=o?Number(r)<t.length:ct(t,r),c=Reflect.set(t,r,i,Le(t)?t:n);return t===E(n)&&c&&(a?Q(i,s)&&ee(t,"set",r,i,s):ee(t,"add",r,i)),c}deleteProperty(t,r){let i=ct(t,r),n=t[r],s=Reflect.deleteProperty(t,r);return s&&i&&ee(t,"delete",r,void 0,n),s}has(t,r){let i=Reflect.has(t,r);return(!ve(r)||!Qi.has(r))&&C(t,"has",r),i}ownKeys(t){return C(t,"iterate",Ee(t)?"length":ce),Reflect.ownKeys(t)}},ur=class extends mt{constructor(t=!1){super(!0,t)}set(t,r){return le(`Set operation on key "${String(r)}" failed: target is readonly.`,t),!0}deleteProperty(t,r){return le(`Delete operation on key "${String(r)}" failed: target is readonly.`,t),!0}},xs=new lr,Es=new ur;var fr=e=>e,ft=e=>Reflect.getPrototypeOf(e);function bs(e,t,r){return function(...i){let n=this.__v_raw,s=E(n),o=be(s),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=n[e](...i),u=r?fr:t?je:pe;return!t&&C(s,"iterate",c?cr:ce),xe(Object.create(l),{next(){let{value:f,done:g}=l.next();return g?{value:f,done:g}:{value:a?[u(f[0]),u(f[1])]:u(f),done:g}}})}}function pt(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";le(`${Qt(e)} operation ${r}failed: target is readonly.`,E(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function vs(e,t){let r={get(n){let s=this.__v_raw,o=E(s),a=E(n);e||(Q(n,a)&&C(o,"get",n),C(o,"get",a));let{has:c}=ft(o),l=t?fr:e?je:pe;if(c.call(o,n))return l(s.get(n));if(c.call(o,a))return l(s.get(a));s!==o&&s.get(n)},get size(){let n=this.__v_raw;return!e&&C(E(n),"iterate",ce),n.size},has(n){let s=this.__v_raw,o=E(s),a=E(n);return e||(Q(n,a)&&C(o,"has",n),C(o,"has",a)),n===a?s.has(n):s.has(n)||s.has(a)},forEach(n,s){let o=this,a=o.__v_raw,c=E(a),l=t?fr:e?je:pe;return!e&&C(c,"iterate",ce),a.forEach((u,f)=>n.call(s,l(u),l(f),o))}};return xe(r,e?{add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear")}:{add(n){let s=E(this),o=ft(s),a=E(n),c=!t&&!fe(n)&&!ue(n)?a:n;return o.has.call(s,c)||Q(n,c)&&o.has.call(s,n)||Q(a,c)&&o.has.call(s,a)||(s.add(c),ee(s,"add",c,c)),this},set(n,s){!t&&!fe(s)&&!ue(s)&&(s=E(s));let o=E(this),{has:a,get:c}=ft(o),l=a.call(o,n);l?qi(o,a,n):(n=E(n),l=a.call(o,n));let u=c.call(o,n);return o.set(n,s),l?Q(s,u)&&ee(o,"set",n,s,u):ee(o,"add",n,s),this},delete(n){let s=E(this),{has:o,get:a}=ft(s),c=o.call(s,n);c?qi(s,o,n):(n=E(n),c=o.call(s,n));let l=a?a.call(s,n):void 0,u=s.delete(n);return c&&ee(s,"delete",n,void 0,l),u},clear(){let n=E(this),s=n.size!==0,o=be(n)?new Map(n):new Set(n),a=n.clear();return s&&ee(n,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=bs(n,e,t)}),r}function en(e,t){let r=vs(e,t);return(i,n,s)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(ct(r,n)&&n in i?r:i,n,s)}var ws={get:en(!1,!1)};var As={get:en(!0,!1)};function qi(e,t,r){let i=E(r);if(i!==r&&t.call(e,i)){let n=Zt(e);le(`Reactive ${n} contains both the raw and reactive versions of the same object${n==="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 tn=new WeakMap,Os=new WeakMap,rn=new WeakMap,Ss=new WeakMap;function Ns(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _t(e){return ue(e)?e:nn(e,!1,xs,ws,tn)}function pr(e){return nn(e,!0,Es,As,rn)}function nn(e,t,r,i,n){if(!we(e))return le(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let s=n.get(e);if(s)return s;let o=Ns(Zt(e));if(o===0)return e;let a=new Proxy(e,o===2?i:r);return n.set(e,a),a}function sn(e){return ue(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function ue(e){return!!(e&&e.__v_isReadonly)}function fe(e){return!!(e&&e.__v_isShallow)}function Ts(e){return e?!!e.__v_raw:!1}function E(e){let t=e&&e.__v_raw;return t?E(t):e}var pe=e=>we(e)?_t(e):e,je=e=>we(e)?pr(e):e;function Le(e){return e?e.__v_isRef===!0:!1}v("nextTick",()=>ye);v("dispatch",e=>se.bind(se,e));v("watch",(e,{evaluateLater:t,cleanup:r})=>(i,n)=>{let s=t(i),a=$e(()=>{let c;return s(l=>c=l),c},n);r(a)});v("store",Ri);v("data",e=>ze(e));v("root",e=>oe(e));v("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=P(Cs(e))),e._x_refs_proxy));function Cs(e){let t=[];return N(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var gr={};function yr(e){return gr[e]||(gr[e]=0),++gr[e]}function on(e,t){return N(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function an(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=yr(t))}v("id",(e,{cleanup:t})=>(r,i=null)=>{let n=`${r}${i?`-${i}`:""}`;return Rs(e,n,t,()=>{let s=on(e,r),o=s?s._x_ids[r]:yr(r);return i?`${r}-${o}-${i}`:`${r}-${o}`})});H((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Rs(e,t,r,i){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let n=i();return e._x_id[t]=n,r(()=>{delete e._x_id[t]}),n}v("el",e=>e);cn("Focus","focus","focus");cn("Persist","persist","persist");function cn(e,t,r){v(t,i=>T(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,i))}h("modelable",(e,{expression:t},{effect:r,evaluateLater:i,cleanup:n})=>{let s=i(t),o=()=>{let u;return s(f=>u=f),u},a=i(`${t} = __placeholder`),c=u=>a(()=>{},{scope:{__placeholder:u}}),l=o();c(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,f=e._x_model.setWithModifiers,g=at({get(){return u()},set(m){f(m)}},{get(){return o()},set(m){c(m)}});n(g)})});h("teleport",(e,{modifiers:t,expression:r},{cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&T("x-teleport can only be used on a <template> tag",e);let n=ln(r),s=e.content.cloneNode(!0).firstElementChild;e._x_teleport=s,s._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),s.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{s.addEventListener(a,c=>{c.stopPropagation(),e.dispatchEvent(new c.constructor(c.type,c))})}),F(s,{},e);let o=(a,c,l)=>{l.includes("prepend")?c.parentNode.insertBefore(a,c):l.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};_(()=>{O(()=>{o(s,n,t),S(s)})()}),e._x_teleportPutBack=()=>{let a=ln(r);_(()=>{o(e._x_teleport,a,t)})},i(()=>_(()=>{s.remove(),k(s)}))});var ks=document.createElement("div");function ln(e){let t=O(()=>document.querySelector(e),()=>ks)();return t||T(`Cannot find x-teleport element for selector: "${e}"`),t}var un=()=>{};un.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};h("ignore",un);h("effect",O((e,{expression:t},{effect:r})=>{r(b(e,t))}));function J(e,t,r,i){let n=e,s=c=>i(c),o={},a=(c,l)=>u=>l(c,u);return r.includes("dot")&&(t=Ds(t)),r.includes("camel")&&(t=Ps(t)),r.includes("capture")&&(o.capture=!0),r.includes("window")&&(n=window),r.includes("document")&&(n=document),r.includes("passive")&&(o.passive=r[r.indexOf("passive")+1]!=="false"),s=xr(r,s),r.includes("prevent")&&(s=a(s,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(s=a(s,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("once")&&(s=a(s,(c,l)=>{c(l),n.removeEventListener(t,s,o)})),(r.includes("away")||r.includes("outside"))&&(n=document,s=a(s,(c,l)=>{e.contains(l.target)||l.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&c(l))})),r.includes("self")&&(s=a(s,(c,l)=>{l.target===e&&c(l)})),t==="submit"&&(s=a(s,(c,l)=>{l.target._x_pendingModelUpdates&&l.target._x_pendingModelUpdates.forEach(u=>u()),c(l)})),(Ms(t)||pn(t))&&(s=a(s,(c,l)=>{Us(l,r)||c(l)})),n.addEventListener(t,s,o),()=>{n.removeEventListener(t,s,o)}}function xr(e,t){if(e.includes("debounce")){let r=e[e.indexOf("debounce")+1]||"invalid-wait",i=gt(r.split("ms")[0])?Number(r.split("ms")[0]):250;t=st(t,i)}if(e.includes("throttle")){let r=e[e.indexOf("throttle")+1]||"invalid-wait",i=gt(r.split("ms")[0])?Number(r.split("ms")[0]):250;t=ot(t,i)}return t}function Ds(e){return e.replace(/-/g,".")}function Ps(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function gt(e){return!Array.isArray(e)&&!isNaN(e)}function Is(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Ms(e){return["keydown","keyup"].includes(e)}function pn(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}var Ls=["window","document","prevent","stop","once","capture","self","away","outside","passive","dot","camel","preserve-scroll","blur","change","lazy","number","boolean","trim","fill","unintrusive","parent"];function Us(e,t){let r=t.filter((s,o)=>s==="false"&&t[o-1]==="passive"?!1:!Ls.includes(s));if(r.includes("debounce")){let s=r.indexOf("debounce");r.splice(s,gt((r[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let s=r.indexOf("throttle");r.splice(s,gt((r[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&fn(e.key).includes(r[0]))return!1;let n=["ctrl","shift","alt","meta","cmd","super"].filter(s=>r.includes(s));return r=r.filter(s=>!n.includes(s)),!(n.length>0&&n.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),e[`${o}Key`])).length===n.length&&(pn(e.type)||fn(e.key).includes(r[0])))}function fn(e){if(!e)return[];e=Is(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:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}h("model",(e,{modifiers:t,expression:r},{effect:i,cleanup:n})=>{let s=e;t.includes("parent")&&(s=N(e,d=>d!==e));let o=b(s,r),a;typeof r=="string"?a=b(s,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=b(s,`${r()} = __placeholder`):a=()=>{};let c=()=>{let d;return o(w=>d=w),dn(d)?d.get():d},l=d=>{let w;o(p=>w=p),dn(w)?w.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof r=="string"&&e.type==="radio"&&_(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});let u=t.includes("change")||t.includes("lazy"),f=t.includes("blur"),g=t.includes("enter"),m=u||f||g,L;if(V)L=()=>{};else if(m){let d=[],w=p=>l(yt(e,t,p,c()));if(u&&d.push(J(e,"change",t,w)),f&&(d.push(J(e,"blur",t,w)),e.form)){let p=e.form,y=()=>w({target:e});p._x_pendingModelUpdates||(p._x_pendingModelUpdates=[]),p._x_pendingModelUpdates.push(y),n(()=>{p._x_pendingModelUpdates&&p._x_pendingModelUpdates.splice(p._x_pendingModelUpdates.indexOf(y),1)})}g&&d.push(J(e,"keydown",t,p=>{p.key==="Enter"&&w(p)})),L=()=>d.forEach(p=>p())}else{let d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";L=J(e,d,t,w=>{l(yt(e,t,w,c()))})}if(t.includes("fill")&&([void 0,null,""].includes(c())||De(e)&&Array.isArray(c())||e.tagName.toLowerCase()==="select"&&e.multiple)&&l(yt(e,t,{target:e},c())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=L,n(()=>e._x_removeModelListeners.default()),e.form){let d=J(e.form,"reset",[],w=>{ye(()=>e._x_model&&e._x_model.set(yt(e,t,{target:e},c())))});n(()=>d())}if(e._x_model={get(){return c()},set(d){l(d)},setWithModifiers:xr(t,l)},e._x_forceModelUpdate=d=>{d===void 0&&typeof r=="string"&&r.match(/\./)&&(d=""),_(()=>{De(e)?Array.isArray(d)?e.checked=d.some(w=>w==e.value):e.checked=!!d:nt(e)?typeof d=="boolean"?e.checked=ke(e.value)===d:e.checked=e.value==d:Re(e,"value",d)})},e.tagName==="SELECT"){let d=new MutationObserver(()=>{e._x_forceModelUpdate(c())});d.observe(e,{childList:!0}),n(()=>d.disconnect())}i(()=>{let d=c();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(d)})});function yt(e,t,r,i){return _(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(De(e))if(Array.isArray(i)){let n=null;return t.includes("number")?n=Er(r.target.value):t.includes("boolean")?n=ke(r.target.value):n=r.target.value,r.target.checked?i.includes(n)?i:i.concat([n]):i.filter(s=>!js(s,n))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map(n=>{let s=n.value||n.text;return Er(s)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(n=>{let s=n.value||n.text;return ke(s)}):Array.from(r.target.selectedOptions).map(n=>n.value||n.text);{let n;return nt(e)?r.target.checked?n=r.target.value:n=i:n=r.target.value,t.includes("number")?Er(n):t.includes("boolean")?ke(n):t.includes("trim")?n.trim():n}}})}function Er(e){let t=e?parseFloat(e):null;return Fs(t)?t:e}function js(e,t){return e==t}function Fs(e){return!Array.isArray(e)&&!isNaN(e)}function dn(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}h("cloak",e=>queueMicrotask(()=>_(()=>e.removeAttribute(R("cloak")))));tt(()=>`[${R("init")}]`);h("init",O((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));h("text",(e,{expression:t},{effect:r,evaluateLater:i})=>{let n=i(t);r(()=>{n(s=>{_(()=>{e.textContent=s})})})});h("html",(e,{expression:t},{effect:r,evaluateLater:i})=>{let n=i(t);r(()=>{n(s=>{_(()=>{Array.from(e.children).forEach(o=>k(o)),e.innerHTML=s??"",e._x_ignoreSelf=!0,S(e),delete e._x_ignoreSelf})})},{priority:"structural"})});ge(Je(":",Xe(R("bind:"))));var hn=(e,{value:t,modifiers:r,expression:i,original:n},{effect:s,cleanup:o})=>{if(!t){let c={};Pi(c),b(e,i)(u=>{zt(e,u,n)},{scope:c});return}if(t==="key")return $s(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let a=b(e,i);s(()=>a(c=>{c===void 0&&typeof i=="string"&&i.match(/\./)&&(c=""),_(()=>Re(e,t,c,r))})),o(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};hn.inline=(e,{value:t,modifiers:r,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})};h("bind",hn);function $s(e,t){e._x_keyExpression=t}et(()=>`[${R("data")}]`);var de=Symbol();h("data",(e,{expression:t},{cleanup:r})=>{if(Hs(e))return;let i=e[de];if(i?.expression===t)return;t=t===""?"{}":t;let n={};X(n,e);let s={};Li(s,n);let o=I(e,t,{scope:s});(o===void 0||o===!0)&&(o={}),X(o,e);let a;if(i?.reactiveData){a=i.reactiveData,Vs(a,o);let l={expression:t};e[de]=l,queueMicrotask(()=>{e[de]===l&&delete e[de]})}else a=D(o);_e(a,r);let c=F(e,a);O(()=>{a.init&&I(e,a.init)})(),r(()=>{a.destroy&&I(e,a.destroy),c();let l={reactiveData:a};e[de]=l,queueMicrotask(()=>{e[de]===l&&delete e[de]})})});function Vs(e,t){Object.keys(t).forEach(r=>{let i=Object.getOwnPropertyDescriptor(t,r),n=Object.getOwnPropertyDescriptor(e,r);i.get||i.set||n?.get||n?.set?(n&&delete e[r],n||(e[r]=void 0),i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]):e[r]=t[r]}),Object.keys(e).filter(r=>!Object.prototype.hasOwnProperty.call(t,r)).forEach(r=>delete e[r])}H((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Hs(e){return V?Ze?!0:e.hasAttribute("data-has-alpine-state"):!1}h("show",(e,{modifiers:t,expression:r},{effect:i})=>{let n=b(e,r);e._x_doHide||(e._x_doHide=()=>{_(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{_(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let s=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(o),c=Te(f=>f?o():s(),f=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,f,o,s):f?a():s()}),l,u=!0;i(()=>n(f=>{!u&&f===l||(t.includes("immediate")&&(f?a():s()),c(f),l=f,u=!1)}))});h("for",O((e,{expression:t},{effect:r,cleanup:i})=>{let n=qs(t),s=b(e,n.items),o=b(e,e._x_keyExpression||"index");e._x_lookup=new Map,r(()=>Ks(e,n,s,o),{priority:"structural"}),i(()=>{e._x_lookup.forEach(a=>_(()=>{k(a),a.remove()})),delete e._x_lookup,delete e._x_lastRenderedEl})}));function Bs(e){return t=>{Object.entries(t).forEach(([r,i])=>{e[r]=i})}}function Ks(e,t,r,i){r(n=>{Ws(n)&&(n=Array.from({length:n},(l,u)=>u+1)),n==null&&(n=[]),n instanceof Set&&(n=Array.from(n)),n instanceof Map&&(n=Array.from(n));let s=e._x_lookup,o=new Map;e._x_lookup=o;let a=Gs(n),c=Object.entries(n).map(([l,u])=>{a||(l=parseInt(l));let f=zs(t,u,l,n),g;return i(m=>{typeof m=="object"&&T("x-for key cannot be an object, it must be a string or an integer",e),s.has(m)&&(o.set(m,s.get(m)),s.delete(m)),g=m},{scope:{index:l,...f}}),[g,f]});_(()=>{s.forEach(f=>{k(f),f.remove()});let l=new Set,u=e;c.forEach(([f,g])=>{if(o.has(f)){let d=o.get(f);d._x_refreshXForScope(g),u.nextElementSibling!==d&&(u.nextElementSibling&&d.replaceWith(u.nextElementSibling),u.after(d)),u=d,d._x_currentIfEl&&(d.nextElementSibling!==d._x_currentIfEl&&u.after(d._x_currentIfEl),u=d._x_currentIfEl);return}e.content.children.length>1&&T("x-for templates require a single root element, additional elements will be ignored.",e);let m=document.importNode(e.content,!0).firstElementChild,L=D(g);F(m,L,e),m._x_refreshXForScope=Bs(L),o.set(f,m),l.add(m),u.after(m),u=m}),l.forEach(f=>S(f)),u!==e?e._x_lastRenderedEl=u:delete e._x_lastRenderedEl})})}function qs(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\b(?:in|of)\b([\s\S]*)/,n=e.match(i);if(!n)return;let s={};s.items=n[2].trim();let o=n[1].replace(r,"").trim(),a=o.match(t);return a?(s.item=o.replace(t,"").trim(),s.index=a[1].trim(),a[2]&&(s.collection=a[2].trim())):s.item=o,s}function zs(e,t,r,i){let n={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,a)=>{n[o]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{n[o]=t[o]}):n[e.item]=t,e.index&&(n[e.index]=r),e.collection&&(n[e.collection]=i),n}function Ws(e){return typeof e!="object"&&!isNaN(e)}function Gs(e){return typeof e=="object"&&!Array.isArray(e)}function mn(){}mn.inline=(e,{expression:t},{cleanup:r})=>{let i=oe(e);i&&(i._x_refs||(i._x_refs={}),i._x_refs[t]=e,r(()=>delete i._x_refs[t]))};h("ref",mn);h("if",O((e,{expression:t},{effect:r,cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&T("x-if can only be used on a <template> tag",e);let n=b(e,t),s=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return F(a,{},e),_(()=>{e.after(a),S(a)}),e._x_currentIfEl=a,e._x_lastRenderedEl=a,e._x_undoIf=()=>{_(()=>{k(a),a.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl},a},o=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>n(a=>{a?s():o()}),{priority:"structural"}),i(()=>e._x_undoIf&&e._x_undoIf())}));h("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(n=>an(e,n))});H((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});ge(Je("@",Xe(R("on:"))));h("on",O((e,{value:t,modifiers:r,expression:i},{cleanup:n})=>{let s=i?b(e,i):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=J(e,t,r,a=>{s(()=>{},{scope:{$event:a},params:[a]})});n(()=>o())}));xt("Collapse","collapse","collapse");xt("Intersect","intersect","intersect");xt("Focus","trap","focus");xt("Mask","mask","mask");function xt(e,t,r){h(t,i=>T(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,i))}h("html",(e,{expression:t})=>{re(new Error("Using the x-html directive is prohibited in the CSP build"),e)});W.setEvaluator($i);W.setRawEvaluator(Fi);W.setReactivityEngine({reactive:_t,effect:(e,t={})=>{let r;return r=Yi(e,{scheduler:()=>{r&&(t.scheduler?t.scheduler(r):r())}}),r},release:Ji,raw:E});var br=W;window.Alpine=br;queueMicrotask(()=>{br.start()});})();
|
|
8
|
+
/*! Bundled license information:
|
|
9
|
+
|
|
10
|
+
@vue/shared/dist/shared.esm-bundler.js:
|
|
11
|
+
(**
|
|
12
|
+
* @vue/shared v3.5.41
|
|
13
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
|
+
* @license MIT
|
|
15
|
+
**)
|
|
16
|
+
|
|
17
|
+
@vue/reactivity/dist/reactivity.esm-bundler.js:
|
|
18
|
+
(**
|
|
19
|
+
* @vue/reactivity v3.5.41
|
|
20
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
|
+
* @license MIT
|
|
22
|
+
**)
|
|
23
|
+
*/
|
|
@@ -204,6 +204,32 @@ const configureToolbox = () => {
|
|
|
204
204
|
return new URLSearchParams( window.location.search ).get( name );
|
|
205
205
|
},
|
|
206
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Removes a query parameter from the address bar without reloading or adding a history entry.
|
|
209
|
+
* <br/>
|
|
210
|
+
* For a parameter that carries a one-time message: once it has been read and shown, it has done its job, and
|
|
211
|
+
* leaving it in the URL means a refresh or a bookmark replays a failure that is no longer happening.
|
|
212
|
+
* `replaceState` rather than `pushState`, so the back button is not left stepping through states the visitor
|
|
213
|
+
* never navigated to.
|
|
214
|
+
*
|
|
215
|
+
* @method
|
|
216
|
+
* @param {string} name
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
clearUrlParam( name ) {
|
|
220
|
+
if ( !window.history || typeof window.history.replaceState !== "function" ) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
const url = new URL( window.location.href );
|
|
224
|
+
if ( !url.searchParams.has( name ) ) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
url.searchParams.delete( name );
|
|
228
|
+
// Keep a bare "?" off the end when the last parameter goes.
|
|
229
|
+
const search = url.searchParams.toString();
|
|
230
|
+
window.history.replaceState( null, "", url.pathname + ( search ? "?" + search : "" ) + url.hash );
|
|
231
|
+
},
|
|
232
|
+
|
|
207
233
|
/**
|
|
208
234
|
* Used to get the visible box of the document.
|
|
209
235
|
*
|
|
@@ -1684,6 +1710,10 @@ const configureLoginError = () => {
|
|
|
1684
1710
|
init() {
|
|
1685
1711
|
const tiToolbox = Alpine.store( "tiToolbox" );
|
|
1686
1712
|
this.hasError = Boolean( tiToolbox.getUrlParam( "error" ) );
|
|
1713
|
+
// The parameter is a one-time message, not state. Read it, show it, drop it — otherwise a refresh (or a
|
|
1714
|
+
// bookmark, or a shared link) replays a sign-in failure that already happened, and the login screen can
|
|
1715
|
+
// never be returned to its blank state without editing the URL by hand.
|
|
1716
|
+
tiToolbox.clearUrlParam( "error" );
|
|
1687
1717
|
}
|
|
1688
1718
|
};
|
|
1689
1719
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ti-engine/web-framework",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.1",
|
|
4
4
|
"description": "A web-framework based on the ti-engine. It provides a customizable ready-to-use web-server microservice and a set of tools for creating web applications. NOTICE: This is still a work in progress and the full architecture, design, and functionality are not available!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ti-engine",
|
|
@@ -112,11 +112,11 @@
|
|
|
112
112
|
"#web-server-config": "./bin/web-server.json"
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@alpinejs/csp": "^3.16.1",
|
|
116
115
|
"@ti-engine/core": "*",
|
|
116
|
+
"@alpinejs/csp": "^3.17.3",
|
|
117
117
|
"@types/express": "^5.0.6",
|
|
118
118
|
"@types/express-session": "^1.19.0",
|
|
119
|
-
"@types/node": "^26.
|
|
119
|
+
"@types/node": "^26.5.1",
|
|
120
120
|
"ajv": "^8.20.0",
|
|
121
121
|
"cookie-parser": "^1.4.7",
|
|
122
122
|
"express": "^5.2.1",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"helmet": "^8.3.0",
|
|
125
125
|
"htmx.org": "^2.0.10",
|
|
126
126
|
"lodash": "^4.18.1",
|
|
127
|
-
"openid-client": "^6.8.
|
|
127
|
+
"openid-client": "^6.8.8"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"typescript": "^7.0.2"
|