@qwik.dev/core 2.0.0-beta.29 → 2.0.0-beta.30

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/dist/core.min.mjs CHANGED
@@ -1 +1,2 @@
1
- function t(t){let n="";const e=t.length;let i=0,r=i;for(;i<e;i++){const e=t.charCodeAt(i);if(60===e)n+=t.substring(r,i)+"&lt;";else if(62===e)n+=t.substring(r,i)+"&gt;";else if(38===e)n+=t.substring(r,i)+"&amp;";else if(34===e)n+=t.substring(r,i)+"&quot;";else{if(39!==e)continue;n+=t.substring(r,i)+"&#39;"}r=i+1}return 0===r?t:n+t.substring(r)}function n(t){let n="";for(let e=0;e<t.length;e++)"\\"===t.charAt(e)&&e+1<t.length?(n+=t.charAt(e+1),e++):n+=t.charAt(e);return n}function e(t,n=Ze){let e,i=!1;try{e=t(),i=!0}catch(t){e=t}if(!Ge(e))return i?e:n(e);let r=Ye;const s=async e=>{for(;Ge(e);)try{return await e,await t()}catch(t){if(!Ge(t)){e=t;break}if(! --r){e=Error("Exceeded max retry count in retryOnPromise");break}e=t}return n(e)};return i?e.catch(s):s(e)}function i(t){if(t.endsWith("$")){const[n,e]=(t=>{let n,e=-1;return t.startsWith("on")?(n="q-e:",e=2):t.startsWith("window:on")?(n="q-w:",e=9):t.startsWith("document:on")&&(n="q-d:",e=11),[n,e]})(t);if(-1!==e){const i=t.slice(e,-1);return"DOMContentLoaded"===i?n+"-d-o-m-content-loaded":((t,n)=>n+ii(t))("-"===i.charAt(0)?i.slice(1):i.toLowerCase(),n)}}return null}function r(t,n,e){if((t=>"class"===t)(t)){const t=oi(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(ee(t))throw se(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e];null!=i&&"function"!=typeof i&&(e.startsWith("--")?n.push(e+":"+i):n.push(li(e)+":"+ci(e,i)))}return n.join(";")}}return t+""})(n):(t=>t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t))(t)||"number"==typeof n?n=(t=>null!=t?t+"":null)(n):!1===n||null==n?n=null:!0===n&&(t=>t.startsWith("preventdefault:"))(t)&&(n="");return n}function s(t,n,e,i=!1){const r=t.ownerDocument.createElementNS(e,n);for(const n of t.attributes)n.name!==Je&&r.setAttribute(n.name,n.value);if(i)for(const n of t.childNodes){const t=n.nodeType;3===t?r.appendChild(n.cloneNode()):1===t&&r.appendChild(s(n,n.localName,e,i))}return r}function o(t,n){const e=!t||!(!mo(t)||(i=t,1536&i.flags));var i;const r=!e&&_i(mo(t));let s=_e,o=0;const l="string"==typeof n||Ls(n);return l&&(t=>"string"==typeof t?Pi(t):!!Ls(t)&&(Pi(mo(t))||!!(512&t.flags)))(n)?(s=Pe,o=512):l&&(t=>"string"==typeof t?Ai(t):!!Ls(t)&&(Ai(mo(t))||!!(1024&t.flags)))(n)?(s=Ae,o=1024):!t||r||e||(s=512&t.flags?Pe:1024&t.flags?Ae:_e,o=1536&t.flags),Ni.elementNamespace=s,Ni.elementNamespaceFlag=o,Ni}function l(t,n){const e=d(n).priority;let i=Di.length;for(let t=0;t<Di.length;t++)if(e<d(Di[t]).priority){i=t;break}Di.splice(i,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function c(){for(let t=0;t<Di.length;t++){const n=Di[t];let e=!1;for(let t=0;t<Wi.length;t++)if(zo(n,Wi[t])){e=!0;break}if(!e)return n}return null}function u(t,n){Wi.push(t),a(t,n,!0),n.o++}function f(t,n){const e=Wi.indexOf(t);if(-1!==e){const t=Wi.length-1;e!==t&&(Wi[e]=Wi[t]),Wi.pop(),n.o--}l(n,t)}function a(t,n,e){e||(t.flags&=-257);const i=Di.indexOf(t);-1!==i&&(Di.splice(i,1),n.o--)}function h(t,n,e){n.position=e,e&&It(e)&&((t,n,e)=>{a(e,t);const i=d(e);if(i===n)return;const r=i.afterFlushTasks;if(r&&r.length>0){const t=n.afterFlushTasks;t?t.push(...r):n.afterFlushTasks=r}const s=i.extraPromises;if(s&&s.length>0){const t=n.extraPromises;t?t.push(...s):n.extraPromises=s}const o=i.journal;if(o&&o.length>0){const t=n.journal;t?t.push(...o):n.journal=o}})(t,n,e)}function d(t){return Ui.get(t)??null}function p(t){return new Proxy({},new er(t))}function $(t,n,e){t[Ii]||(t[Ii]=new Map);const i=t[Ii];let r=i.get(n);return r||(r=new fr(t,n),i.set(n,r)),e&&(r.data=e),r}function y(t,n){zs(n)&&Ls(n)&&go(n);const e=n[Ii];if(e){for(const[,n]of e)m(t,n);e.clear()}}function m(t,n){const e=n.backRef;if(e){for(const i of e)if(i instanceof mr)b(i,n);else if(i instanceof Bi)w(t,i,n);else if(cr(i))v(i[Xi],n);else if(t.h.has(i)){const e=t.h.get(i);v(Oc(e),n)}e.clear()}}function w(t,n,e){const i=n.p;i&&i.has(e)&&i.delete(e),n instanceof Ar&&!i?.size&&(n.$=void 0,y(t,n))}function b(t,n){const e=t.p;e&&e.has(n)&&e.delete(n);const i=t.m;i&&i.has(n)&&i.delete(n);const r=t.k;r&&r.has(n)&&r.delete(n),t.q()}function v(t,n){const e=t?.p;if(e)for(const[t,i]of e.entries())i.has(n)&&(i.delete(n),0===i.size&&e.delete(t))}function g(t,n){Ir(this,n),eu[0].value="number"===n.type?n.valueAsNumber:n.value}function S(t,n){Ir(this,n),eu[0].value=n.checked}function k(t,n){if(Ir(this,n),eu)for(const t of eu)t instanceof mr&&64&t.R&&t.j()}function x(t,n,...e){const i={children:arguments.length>2?e.flat(100):null};let r=null;for(const t in n)"key"==t?r=n[t]:i[t]=n[t];return Qr(t,n,null,i.children,0,r)}function q(t,n){const e=j(t);let i=t;const r="q-e:qvisible";return Ke(e,t=>{const e=!t;let s=null;for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let l=t,c=o;if(e){if(o!==r&&!o.startsWith("q-d:")&&!o.startsWith("q-w:"))continue;if(!s){const[t,n]=C(i);i=n,s=t}l=s}l&&("script"===l.type&&o===r&&(c="q-d:qinit"),R(l,c,n[o]))}return i})}function R(t,n,e){const i=t.constProps||={},r=i[n];null==r?i[n]=e:Array.isArray(r)?r.push(...e):i[n]=[r,...e],t.varProps[n]&&(Array.isArray(r)?r.push(...i[n]):t.varProps[n]=[r,...e],i[n]=void 0)}function j(t){const n=[t];for(;n.length;){const t=n.shift();if(zr(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(ee(t))n.push(...t);else{if(Ge(t))return Ke(t,t=>j(t));if(gc(t))return j(t.untrackedValue)}}return null}function C(t){if(zr(t)){const n=E();return t.type===Kr||Su(t.type)?(null==t.children?t.children=n:ee(t.children)?t.children.push(n):t.children=[t.children,n],[n,t]):[n,Ur(Kr,null,null,[t,n],0,null)]}if("object"!=typeof(n=t)&&"function"!=typeof n||null==n){const n=E();return[n,Ur(Kr,null,null,[t,n],0,null)]}var n;if(ee(t)&&t.length>0){const[n,e]=C(t[0]);return[n,t]}return[null,t]}function E(){return new Tr("script",null,{hidden:""},null,0,null)}function O(t,n,e,i){if(null!=e){if(i){const i=(t=>{switch(t){case"xlink:href":case"xlink:actuate":case"xlink:arcrole":case"xlink:role":case"xlink:show":case"xlink:title":case"xlink:type":return"http://www.w3.org/1999/xlink";case"xml:base":case"xml:lang":case"xml:space":return"http://www.w3.org/XML/1998/namespace";default:return null}})(n);if(i)return void((t,n,e,i)=>{us||(us=t.setAttributeNS),us.call(t,n,e,i)})(t,i,n,e)}r=t,cs||(cs=r.setAttribute),cs.call(r,n,e)}var r}function _(t){return!t.startsWith("q:")&&!t.startsWith(We)}function P(t,n,i,r){if(!i.isConnected)return;r||(r=Ko(n,i));const s=r.O,o=r.$;Gs(s,o);let l=t;if(64&o.flags){let e;128&o.flags||(e=!0,o.flags|=128);const r=e?s._:null,c=Js(o,Le,r);if(null!==c)l=()=>t(n,i,c);else{const e=Js(o,De,r);null!==e&&(l=()=>t(n,i,...e))}}return e(()=>{if(!(32&o.flags))return Gt(r,l,[n,i])},t=>s.handleError(t,o))}function A(t,n){if(!n.isConnected)return;const e=Ko(t,n);return"string"==typeof this&&iu(ru(e.O,this)),P(eu[0],t,n,e)}function N(t){return t?t.nextSibling:null}function I(t,n,e,i,r,s){import.meta.env.TEST&&r&&Bs(n,He,r),Bs(n,e,s),zt(t,bs(n.node,e,i,r,!!(512&n.flags)))}function M(t,n,e){if(t.N=e,t.M=null,t.T=vo(e),D(t,n,!0),!(32&t.N.flags))for(;t.L.length;){for(;t.D<t.W;){if("string"==typeof t.U)lt(t,t.U);else if("number"==typeof t.U)lt(t,t.U+"");else if(t.U&&"object"==typeof t.U)if(zr(t.U)){const n=t.U.type;"string"==typeof n?(G(t),Z(t,t.U,n),t.U.constProps&&gs.call(t.U.constProps,Be)||gs.call(t.U.varProps,Be)?H(t,!1):z(t,t.U.children,!0)):"function"==typeof n&&(n===Kr?(G(t),it(t,"F",t.U.key),z(t,t.U.children,!0)):n===ns?(G(t),Q(t)||z(t,t.U.children,!0)):n===ft?(U(t),z(t,t.U.children,!0,!1)):n===rs||n===is?Y(t):(G(t),rt(t,n)))}else if(Array.isArray(t.U))z(t,t.U,!1);else if(gc(t.U)){it(t,"S",null);const n=t.U instanceof Ar?t.U.J():t.U,e=t.T?.[Ii]?.get(".")?.backRef;let i=e?.has(n);if(e&&n instanceof Ar&&(i=mt(e,n)),!i){const e=t.M||t.T;z(t,T(t,()=>el(n,e,".",t.O)),!0)}}else Ge(t.U)&&(it(t,"A",null),t.B.push(t.U,t.M||t.T));else t.U===es||lt(t,"");F(t)}Y(t),V(t),L(t)}}function T(t,n){try{return n()}catch(i){if(Ge(i)){const r=i.then(()=>e(n));return t.B.push(r,t.M||t.T),null}throw i}}function F(t){if(t.H){if(t.D++,t.D<t.W)t.U=t.Y[t.D];else if(t.L.length>0&&!1===t.L[t.L.length-1])return L(t);null!==t.M?t.M=null:t.T=N(t.T)}else t.H=!0}function z(t,n,e,i=!0){if(i&&(null==n||e&&ee(n)&&0===n.length))H(t);else{if(D(t,n,e),e){const n=t.G||!!t.M||!vo(t.T);t.G=n,t.X=null,t.K=null,t.Z=null,t.N=t.M||t.T,t.T=vo(t.N),t.M=null}t.H=!1}}function L(t){t.L.pop()&&(t.G=t.L.pop(),t.X=t.L.pop(),t.K=t.L.pop(),t.Z=t.L.pop(),t.M=t.L.pop(),t.T=t.L.pop(),t.N=t.L.pop()),t.U=t.L.pop(),t.W=t.L.pop(),t.D=t.L.pop(),t.Y=t.L.pop(),F(t)}function D(t,n,e){t.L.push(t.Y,t.D,t.W,t.U),e&&t.L.push(t.N,t.T,t.M,t.Z,t.K,t.X,t.G),t.L.push(e),Array.isArray(n)?(t.D=0,t.W=n.length,t.Y=n,t.U=t.W>0?n[0]:null):void 0===n?(t.D=0,t.U=null,t.Y=null,t.W=0):(t.D=0,t.U=n,t.Y=null,t.W=1)}function W(t){return t.M?t.T:N(t.T)}function U(t){const n=t.U.key;t.T=Js(t.N,n,n=>Zs(t.O.rootVNode,n)),t.T=t.T&&32&t.T.flags?null:t.T,null==t.T&&(t.M=Fs(),Bs(t.M,pe,n),t.M.slotParent=t.N,Bs(t.N,n,t.M))}function Q(t){const n=Bo(t.N),e=((t,n)=>{const e=t.U,i=e.constProps;if(i&&"object"==typeof i&&gs.call(i,"name")){const e=i.name;if(n&&e instanceof Ar)return el(e,n,":",t.O)}return sr(e,"name")||""})(t,n),i=n?Js(n,e,null):null;if(null==i)return t.M=Fs(),Bs(t.M,pe,e),n&&Bs(n,e,t.M),ao(t.tt,t.N,t.M,t.T&&W(t)),!1;if(i===t.T);else{const r=i.parent;t.M=i,Bs(t.M,pe,e),n&&Bs(n,e,t.M),fo(t.tt,t.M),ao(t.tt,t.N,t.M,t.T&&W(t)),r&&Ls(r)&&!r.firstChild&&mo(r)===Oe&&$o(t.tt,r.parent,r,!0)}return!0}function V(t){if(t.X){for(const n of t.X.values())32&n.flags||(dt(t.O,t.tt,n,t.nt),$o(t.tt,t.N,n,!0));t.X.clear(),t.X=null}t.T=null}function J(t){for(;t.B.length;){const n=t.B.shift(),e=t.B.shift();if(Ge(n))return n.then(n=>(M(t,n,e),J(t))).catch(n=>(t.O.handleError(n,e),J(t)));M(t,n,e)}if(t.et.length){const n=t.et.splice(0);return Promise.all(n).then(()=>J(t))}}function B(t){t.tt=null,t.nt=null}function H(t,n=!0){const e=t.T&&vo(t.T);if(null!==e){let i=e;for(;i;)dt(t.O,t.tt,i,t.nt),i=i.nextSibling;yo(t.tt,t.T,e,n)}}function Y(t){if(null!==t.T)for(;t.T;){const n=t.T;t.T=N(t.T),t.N===n.parent&&(dt(t.O,t.tt,n,t.nt),$o(t.tt,t.N,n,!0))}}function G(t){if(null!==t.T&&Us(t.T)){const n=t.T;t.T=N(t.T),$o(t.tt,t.N,n,!0)}}function X(n,i,s,l){const c=((t,n)=>{const e=o(po(t.N,!0),n),i=import.meta.env.TEST?t.O.document:document,r=0===e.elementNamespaceFlag?i.createElement(n):i.createElementNS(e.elementNamespace,n);return t.M=Is(r,n),t.M.flags|=e.elementNamespaceFlag,r})(n,s),{constProps:u}=i;if(u)for(const i in u){let o=u[i];if(ei(i))K(i,o,c,n.M,n);else{if("ref"===i){if(gc(o)){o.value=c;continue}if("function"==typeof o){o(c);continue}if(null==o)continue;throw se(15,[l])}if(gc(o)){const t=n.M,r=o;o=e(()=>el(r,t,i,n.O,n.rt.it))}if(Ge(o)){const t=n.M,e=o.then(e=>O(c,i,r(i,e,n.st),!!(512&t.flags)));n.et.push(e);continue}if(i!==Be)if("textarea"!==s||"value"!==i)O(c,i,r(i,o,n.st),!!(512&n.M.flags));else{if(o&&"string"!=typeof o)continue;c.value=t(o||"")}else o&&(c.innerHTML=o+"",c.setAttribute(Ce,"html"))}}const f=i.key;f&&(n.M.key=f),n.st&&(gs.call(i.varProps,"class")||i.constProps&&gs.call(i.constProps,"class")||c.setAttribute("class",n.st)),so(n.tt,n.N,n.M,n.T)}function K(t,n,e,i,r){const s=t.slice(2);if(Array.isArray(n)){const t=n,i=[];for(let n=0;n<t.length;n++){const e=t[n];if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];n&&i.push(P.bind(null,n))}else e&&i.push(P.bind(null,e))}i.length>0&&((e._qDispatch||={})[s]=i)}else n&&((e._qDispatch||={})[s]=[P.bind(null,n)]);"e"!==t.charAt(2)&&Hs(r.tt,i,t,""),((t,n)=>{const e=import.meta.env.TEST?t.O.document.defaultView:window;e&&(e._qwikEv||=[]).push(n)})(r,s)}function Z(t,n,e){if(t.G)X(t,n,e,null);else{const i=t.T&&Ls(t.T),r=i&&e===mo(t.T),s=n.key;r&&s===(i&&t.T.key)?nt(t,e,s):et(t,e,s,tt(e,s),t.N)&&X(t,n,e,null)}const i=n.varProps;i&&((t,n,e,i)=>{t.G||Gs(t.O,n);const r=n.props;for(const s in e){const o=e[s];if(r&&gs.call(r,s)){const e=r[s];if(o!==e){if(o instanceof Ar&&e instanceof Ar&&yt(o,e))continue;ks(t,n,s,o,i)}}else null!=o&&ks(t,n,s,o,i)}if(r)for(const s in r)gs.call(e,s)||":"===s.charAt(0)||ei(s)||ks(t,n,s,null,i)})(t,t.M||t.T,i,null)}function tt(t,n){return null==n?null:t?t+":"+n:n}function nt(t,n,e){const i=tt(n,e);return!(!i||!t.X?.has(i)||(t.X.delete(i),0))}function et(t,n,e,i,r,s){if(t.M=((t,n,e)=>{let i=null;if(null===t.K){const r=t.T;if(r){const i=Ls(r)?mo(r):null;if((ct(r)||ut(r,t.O._))===e&&i===n)return r}t.K=new Map,t.Z=[];let s=t.T;for(;s;){const r=Ls(s)?mo(s):null,o=ct(s)||ut(s,t.O._);null===i&&o==e&&r==n?i=s:null===o?t.Z.push(r,s):t.K.set(tt(r,o),s),s=s.nextSibling}}else if(null===e){for(let e=0;e<t.Z.length;e+=2)if(t.Z[e]===n){i=t.Z[e+1],t.Z.splice(e,2);break}}else{const r=tt(n,e),s=t.K.get(r);s&&(i=s,t.K.delete(r))}return((t,n)=>{if(!n){if(t.T){const n=Ls(t.T)?mo(t.T):null,e=ct(t.T)||ut(t.T,t.O._);if(null!=e){const i=tt(n,e);t.X||=new Map,t.X.set(i,t.T),t.K?.delete(i)}}return}let e=t.T;for(;e&&e!==n;){const n=Ls(e)?mo(e):null,i=ct(e)||ut(e,t.O._);if(null!=i){const r=tt(n,i);t.X||=new Map,t.X.set(r,e),t.K?.delete(r)}e=e.nextSibling}})(t,i),i})(t,n,e),t.M)return i||ao(t.tt,r,t.M,t.T),t.T=t.M,t.M=null,!1;if(null!=i){const n=t.X?.get(i)||null;if(n){if(t.X.delete(i),s&&t.T){const n=ct(t.T)||ut(t.T,t.O._);if(null!=n){const e=tt(Ls(t.T)?mo(t.T):null,n);null!=e&&(t.X||=new Map,t.X.set(e,t.T))}}return n!==t.T&&ao(t.tt,r,n,t.T),t.T=n,t.M=null,!1}}return!0}function it(t,n,e){const i="F"===n,r=ct(t.T);if(!t.T||!Qs(t.T)||r!==e||i&&!e)return null===e||t.G?(oo(t.tt,t.N,t.M=Fs(),t.T&&W(t)),void(t.M.key=e)):void(et(t,null,e,tt(null,e),t.N,!0)&&(oo(t.tt,t.N,t.M=Fs(),t.T&&W(t)),t.M.key=e));nt(t,null,r)}function rt(t,n){const e=n[gu];let i=t.M||t.T;const r=t.U;if(e){const n=r.props;let s=!1;const[o]=e,l=o.ot,c=ut(i,t.O._),u=r.key||l;if(u===(ct(i)||c)?l===c?nt(t,null,u):(st(t,i,o,n),i=t.M,s=!0):(et(t,null,u,u,t.N)&&(st(t,i,o,n),s=!0),i=t.M||t.T),i){const e=Js(i,Te,t.O._);if(!s){const l=((t,n,e,i)=>{let r=!1;if(e){const t=at(n[Hi],e[Hi],e[Xi],i,!1);r||=t;const s=at(n[Yi],e[Yi],e[Xi],i,!0);r||=s,e[Gi]=n[Gi]}else n&&(Bs(t,Te,n),e=n);return r})(i,n,e,t.O);l&&null==r.key&&(st(t,i,o,n),i=t.M,s=!0),s||=l}s&&(Bs(i,ae,o),i.flags&=-33,Ft(t.O,i,4,t.nt))}((t,n,e)=>{const i=Array.isArray(n)?n:[n],r=t=>new Tr(ft,null,null,[],0,t),s=[];if(e){const t=e.props;if(t)for(const n in t)_(n)&&Xn(s,n,r(n),0)}if(0!==s.length||null!=n){for(let t=0;t<i.length;t++){const n=i[t],e=(zr(n)&&sr(n,pe)||"")+"",o=Gn(s,e,0);let l;o>=0?l=s[o+1]:s.splice(~o,0,e,l=r(e)),!1===n||l.children.push(n)}for(let t=s.length-2;t>=0;t-=2)s.splice(t,1);z(t,s,!0)}})(t,r.children,i)}else{const e=r.key,s=e===ct(i),o=ut(i,t.O._);if(i&&null!=o||!i?(ot(t),i=t.M):s?nt(t,null,e):(et(t,null,e,e,t.N)&&ot(t),i=t.M||t.T),i){let e=i;for(;e&&(!Qs(e)||null===Js(e,ae,null));)e=e.parent||Bo(e);const s=ts(t.O,i,e||t.O.rootVNode,n,r.props);t.B.push(s,i)}}}function st(t,n,e,i){n&&y(t.O,n),oo(t.tt,t.N,t.M=Fs(),t.T&&W(t));const r=t.U;Bs(t.M,ae,e),Bs(t.M,Te,i),t.M.key=r.key}function ot(t){oo(t.tt,t.N,t.M=Fs(),t.T&&W(t));const n=t.U;Bs(t.M,Te,n.props),n.key&&(t.M.key=n.key)}function lt(t,n){if(null!==t.T&&3===Vo(t.T))return n!==wo(t.T)?void bo(t.tt,t.T,n):void 0;so(t.tt,t.N,t.M=Ts((import.meta.env.TEST?t.O.document:document).createTextNode(n),n),t.T)}function ct(t){return null==t||Us(t)?null:t.key}function ut(t,n){if(null==t||Us(t))return null;const e=Js(t,ae,n);return e?e.ot:null}function ft(){}function at(t,n,e,i,r=!0){if(ht(t)&&ht(n))return!1;e.O=i;let s=!1;if(t)for(const i in t)if("children"!==i&&i!==ge&&(!n||t[i]!==n[i])){if(!r)return!0;n&&(n[i]=t[i]),rr(e,i)||(s=!0)}if(n)for(const i in n)"children"===i||i===ge||t&&gs.call(t,i)||!r||(delete n[i],rr(e,i)||(s=!0));return s}function ht(t){return!t||gi(t)}function dt(t,n,e,i=null){let r=e;if(Us(e))return void $t(r);let s=null;for(;;){const o=r.flags;if(3&o){if(y(t,r),$t(r),2&o&&null!==Js(r,ae,null)){const e=t.getHostProp(r,Fe);if(e)for(let n=0;n<e.length;n++){const s=e[n];if(ne(s)){const n=bc(s);if(n&&1&s.R){s.R|=16,Ft(t,r,64,i);continue}(s instanceof Bi||Ic(s))&&y(t,s),(n||s instanceof mr)&&vs(s)}}const s=r.props;if(s)for(const e of Object.keys(s))if(_(e)){const r=s[e];if(r){s[e]=null;const o="string"==typeof r?Zs(t.rootVNode,r):r;let l=vo(o);for(;l;)dt(t,n,l,i),l=l.nextSibling;pt(n,o)}}}if(Vs(r)){if(r===e){const t=vo(r);if(t)return void Wt(t,()=>{})}}else{const t=vo(r);if(t){r=t;continue}}}else 4&o&&$t(r);if(r===e)return;const l=r.nextSibling;if(l)r=l;else{for(s=r.parent;s;){if(s===e)return;const t=s.nextSibling;if(t){r=t;break}s=s.parent}if(null==s)return}}}function pt(t,n){const e=n.parent;e&&1&e.flags&&mo(e)===Oe&&$o(t,e,n,!0)}function $t(t){t.flags|=32}function yt(t,n){return t===n||n.lt===t.lt&&((t,n)=>{if(t===n)return!0;if(!t||!n||t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0})(n.ct,t.ct)}function mt(t,n){if(!(n instanceof Ar))return!1;for(const e of t)if(e instanceof Ar&&yt(e,n))return!0;return!1}function wt(t,n,e){t.dirty&=-2;const i=n.getHostProp(t,Fe);if(!i||0===i.length)return;let r;for(const s of i)if(s instanceof wc){const i=s;if(!(4&i.R))continue;if(1&i.R)(e.afterFlushTasks||=[]).push(i);else{const s=!!(8&i.R),o=mc(i,n,t);Ge(o)&&(s?r=r?r.then(()=>o):o:(e.extraPromises||=[]).push(o))}}return r}function bt(t,n,e,i){t.dirty&=-3;const r=t;let s=(t=>{const n=t.props;return n?.[Vi]})(t);if(s)return gc(s)&&(s=s.value),Ss(n,e,s,r,i,null)}function vt(t,n,i,r){t.dirty&=-5;const s=t,o=n.getHostProp(s,ae);if(!o)return;const l=n.getHostProp(s,Te)||null,c=Xe(()=>ts(n,s,s,o,l),t=>{const o=n.getHostProp(s,be);return e(()=>Ss(n,i,t,s,r,ni(o)))},t=>{n.handleError(t,s)});return Ge(c)?c:void 0}function gt(t,n,e,i,r,s=null){n.push(bs(t.node,e,i,s,!!(512&t.flags))),r||(t.props&&null==i?delete t.props[e]:(t.props||={})[e]=i)}function St(t,n){if(t.dirty&=-9,!(1&t.flags))return;const e=(t=>(t.props||={})[Qi]??null)(t);if(!e||0===e.size)return;const i=t;for(const[t,r]of e.entries()){let e=r.value;gc(e)&&(e=e.value),gt(i,n,t,e,r.isConst,r.scopedStyleIdPrefix)}(t=>{delete(t.props||={})[Qi]})(t)}function kt(t,n){t.dirty&=-65;const e=n.getHostProp(t,Fe);if(e&&0!==e.length)for(const t of e)t instanceof wc&&16&t.R&&(t.R&=-17,vs(t))}function xt(t,n){t.dirty&=-17;const i=n.getHostProp(t,Ji);if(!i)return;const r=i.p,s=Kt();return s.O=n,Ke(e(()=>Yt.call(i,s,i.j)),()=>{if(2&i.R)return i.R&=-3,qc(n,i,r)})}function qt(t){let n=null,e=null,i=null;const s=new Set,o=()=>{if(i){if(1===i.length)qs(n,i[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<i.length;n++)t.appendChild(i[n]);qs(n,t,e)}i=null,n=null,e=null,s.clear()}};for(let l=0;l<t.length;l++){const c=t[l];if(c instanceof ps){if(n===c.parent&&e===c.beforeTarget){i||(i=[]),i.push(c.target),s.add(c.target);continue}if(!i){n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}if(n===c.parent){o(),n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}if(s.has(c.target)||e&&c.target===e||n&&c.target===n){o(),n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}qs(c.parent,c.target,c.beforeTarget)}else if(c instanceof as)(s.has(c.target)||e&&c.target===e||n&&c.target===n)&&o(),c.target.remove();else{if(c instanceof hs){(s.has(c.target)||e&&c.target===e||n&&c.target===n)&&o(),c.target.textContent="";continue}if(c instanceof ds)c.target.nodeValue=c.text;else if(c instanceof $s){const t=c.target,e=c.attrName,i=c.attrValue,s=null!=i?r(e,i,c.scopedStyleIdPrefix):null,l=null==s||!1===s;Rs(t,e)?t[e]=js(s):e===Be?(n===t&&o(),t.innerHTML=s,t.setAttribute(Ce,"html")):l?t.removeAttribute(e):"value"===e&&e in t?t.value=s:O(t,e,s,c.isSvg)}}}o()}function Rt(){_s||(_s=!0,Cs())}function jt(){_s||(_s=!0,Os())}function Ct(t={timeBudget:1e3/60}){_s=!1;let n=null;for(;n=c();)Et(n,t)}function Et(t,n){const{timeBudget:e}=n,i=import.meta.env.TEST?Ei():In,r=performance.now(),s=d(t);if(s.promise)return;const o=s.container;if(!t.dirty)return void Ot(o,t,s,i);const l=s.journal||=[];let c=null;for(;c=s.position;){if(s.promise)return;if(!(127&c.dirty)){h(o,s,At(c,t));continue}if(32&c.flags){if(64&c.dirty)kt(c,o);else if(32&c.dirty){const n=Pt(o,s,c,t);if(null!==n){c=n;continue}}c.dirty&=-128,h(o,s,At(c,t));continue}let n;try{if(1&c.dirty)n=wt(c,o,s);else if(2&c.dirty)n=bt(c,o,l,t);else if(4&c.dirty)n=vt(c,o,l,t);else if(8&c.dirty)St(c,l);else if(16&c.dirty)n=xt(c,o);else if(32&c.dirty){const n=Pt(o,s,c,t);if(null!==n){c=n;continue}}}catch(t){o.handleError(t,c)}if(n&&Ge(n)){s.promise=n,u(t,o);const e=c;return void n.catch(t=>{o.handleError(t,e)}).finally(()=>{s.promise=null,f(t,o),Rt()})}if(performance.now()-r>=e)return void jt()}Ot(o,t,s,i)}function Ot(t,n,e,i){if(!(127&n.dirty)){if(a(n,t),i||((t,n)=>{const e=d(t),i=e.journal;i&&i.length>0&&(qt(i),e.journal=null),((t,n)=>{const e=n.afterFlushTasks;if(!e||0===e.length)return void(n.afterFlushTasks=null);let i;for(const n of e){const e=mc(n,t,n.ut);Ge(e)&&(i=i?i.then(()=>e):e)}i&&(n.extraPromises||=[]).push(i),n.afterFlushTasks=null})(n,e)})(n,t),e.extraPromises)return void Promise.all(e.extraPromises).then(()=>{_t(t)});_t(t)}}function _t(t){t.ft()}function Pt(t,n,e,i){const r=e.dirtyChildren;if(!r||0===r.length)return e.dirty&=-33,null;((t,n)=>{let e=0;for(let i=0;i<t.length;i++){const r=t[i];if(r.parent===n){if(e!==i){const n=t[e];t[e]=r,t[i]=n}e++}}})(r,e),e.nextDirtyChildIndex=0;const s=At(r[0],i);return h(t,n,s),s}function At(t,n){if(t===n)return 127&n.dirty?n:null;let e=null;if(t.slotParent&&32&t.slotParent.dirty?e=t.slotParent:t.parent&&32&t.parent.dirty&&(e=t.parent),!e)return 127&n.dirty?n:null;const i=e.dirtyChildren;let r=e.nextDirtyChildIndex;const s=i.length;let o=s;for(;o-- >0;){const t=i[r];if(127&t.dirty)return e.nextDirtyChildIndex=(r+1)%s,t;r++,r===s&&(r=0)}return e.dirty&=-33,e.dirtyChildren=null,e.nextDirtyChildIndex=0,At(e,n)}function Nt(t,n,e){Ui.set(n,{afterFlushTasks:null,extraPromises:null,journal:null,container:t,position:n,priority:e,promise:null});const i=n;return i.flags|=256,l(t,i),Rt(),i}function It(t){return!!(256&t.flags)}function Mt(t,n){if(!(1&n.flags))return 8&n.dirty&&((t,n)=>{n.dirty&=-9;const e=n.getProp(Qi);if(e&&0!==e.size)for(const[i,s]of e.entries()){let e=s.value;gc(e)&&(e=e.value);const o=r(i,e,s.scopedStyleIdPrefix);t.addBackpatchEntry(n.id,i,o)}})(t,n),16&n.dirty&&xt(n,t),127&n.dirty&&Hn(`A chore was scheduled on a host element that has already been streamed to the client.\n This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).\n \n Problematic chore:\n - Host: ${""+n}\n - Nearest element location: ${n.currentFile}\n \n This is often caused by modifying a signal in an already rendered component during SSR.`),void(n.dirty&=-128);let e=null;if(1&n.dirty){const i=((t,n)=>{n.dirty&=-2;const e=n.getProp(Fe);if(!e||0===e.length)return null;let i=null;for(const r of e)if(r instanceof wc){const e=r;if(!(4&e.R))continue;const s=mc(e,t,n);i=i?i.then(()=>s):s}return i})(t,n);Ge(i)&&(e=i)}return n.dirty&=-124,e||void 0}function Tt(t){for(let n=0;n<Ps.length;n++){const e=Ps[n],i=Ps[n+1]||t;i.dirty|=32,i.dirtyChildren||=[],i.dirtyChildren.includes(e)||i.dirtyChildren.push(e)}}function Ft(t,n,e,i=null){const r=n.dirty;if(n.dirty|=e,import.meta.env.TEST?Ei():In){const e=Mt(t,n);return void(Ge(e)&&(t.l=t.l?t.l.then(()=>e):e))}const s=127&e;if((s?127&r:r)||n===i)return;const o=n.slotParent||n.parent;if(i&&s&&o&&!o.dirty)((t,n)=>{Ps.push(t);let e=t.slotParent||t.parent;for(;e;){const i=127&e.dirty,r=It(e);if(e===n||i){if(Tt(e),r){const n=d(e);n.position!==e&&(n.position=t)}return void(Ps.length=0)}if(r){const n=d(e);n.position!==e&&(n.position=t)}Ps.push(e),e=e.slotParent||e.parent}Ps.length=0,(()=>{throw Yn(!1,"Cursor root not found in current path!")})()})(n,i);else if(o&&127&o.dirty){if(s&&(o.dirty|=32),o.dirtyChildren||=[],o.dirtyChildren.includes(n)||o.dirtyChildren.push(n),s&&n.dirtyChildren){const t=(t=>{for(;t;){if(It(t))return t;t=t.parent||t.slotParent}return null})(n);if(t){const e=d(t);let i=e.position;if(i)for(;i!==t;)if(i=i.slotParent||i.parent,i===n){e.position=n;break}}}}else It(n)||(t=>{Ps.push(t);let n=t.slotParent||t.parent;for(;n;){if(It(n))return Tt(n),Ps.length=0,!0;Ps.push(n),n=n.slotParent||n.parent}return Ps.length=0,!1})(n)||Nt(t,n,0)}function zt(t,n){t.push(n)}function Lt(t,n,e,i){const r=t.value,s=n.slice(2),o=r.split("|").map(t=>nn(t,e));(i._qDispatch||={})[s]=o}function Dt(t,n,e){let i=vo(n);for(;i;)Us(i)?(Ks(t,i),e(i,n)):Ls(i)?e(i,n):Dt(t,i,e),i=i.nextSibling}function Wt(t,n){let e=t;if(Us(t))return void n?.(t,null);let i=null;for(;;){if(n?.(e,i))return;const r=vo(e);if(r){e=r;continue}if(e===t)return;const s=e.nextSibling;if(s)e=s;else{for(i=e.parent;i;){if(i===t)return;const n=i.nextSibling;if(n){e=n;break}i=i.parent}if(null==i)return}}}function Ut(t,n,e,i){const r="string"==typeof n,s=n.length;for(;t;){const o=t.nodeValue;let l;if(r)l=o?.startsWith(n);else for(let t=0;t<s;t++)if(o?.startsWith(n[t])){l=!0;break}if(l)return e.call(t)||null;let c=i.call(t);for(c||(c=e.call(t));!c&&(c=Oo(t),c);)t=c,c=e.call(c);t=c}return null}function Qt(t,n,e){t[Ii]?((t,n)=>{for(const[e,i]of n)t.set(e,i)})(t[Ii],e._(n)):Object.defineProperty(t,Ii,{get(){const i=e._(n);return t[Ii]=i,i},set(n){Object.defineProperty(t,Ii,{value:n,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0})}function Vt(t=20,n="",e=!1,i=!1,r=!0,s=null){if(this&&!s)try{s=(()=>{let t=this;for(;t;){if(Ls(t)){const n=Sn(t.node);return n?gn(n):null}t=t.parent}return null})()}catch{}let o=this;if(0===t)return"...";if(null===o)return"null";if(void 0===o)return"undefined";const l=[];do{if(Us(o))l.push(xn(wo(o)));else if(Qs(o)){const e=["["+(o.flags>>>12)+"]"];o.dirty&&e.push(" dirty:"+o.dirty),s&&Fo(s,o).forEach(t=>{if(t!==ce&&t!==He){const n=Js(o,t,null);e.push(" "+t+"="+xn(n))}});const i=(r?"":"")+(ue[Js(o,ce,null)||"V"]||ue.V)+(r?"":"");l.push("<"+i+e.join("")+">");const c=vo(o);c&&l.push(" "+Vt.call(c,t-1,n+" ",!0,!0,r)),l.push("</"+i+">")}else if(Ls(o)){const i=mo(o),c=[];It(o)&&c.push(" cursor"),o.dirty&&c.push(" dirty:"+o.dirty),o.dirtyChildren&&c.push(` dirtyChildren[${o.dirtyChildren.length}]`);const u=s?Fo(s,o):[];for(const t of u){const n=Js(o,t,null);c.push(" "+t+"="+xn(n))}const f=Do(o);if(f){const t=Io(f).qVNodeData?.get(f);t&&c.push(" q:vnodeData="+xn(t))}const a=f.attributes;for(let t=0;t<a.length;t++){const n=a[t];-1===u.indexOf(n.name)&&c.push(" "+n.name+(n.value?"="+xn(n.value):""))}if(l.push("<"+i+c.join("")+">"),Ws(o)||e){const e=vo(o);e&&l.push(" "+Vt.call(e,t-1,n+" ",!0,!0,r))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+i+">")}o=i&&o.nextSibling||null}while(o);return l.join("\n"+n)}function Jt(t){return!t.hasAttribute(Je)||"STYLE"===t.nodeName&&(t.hasAttribute(be)||t.hasAttribute(ye))}function Bt(t){if(void 0===Ho){const n=Go();if(n&&n.ht)return n.ht;if(void 0!==t)return t;throw Error("Reading `locale` outside of context.")}return Ho}function Ht(t,n){const e=Ho;try{return Ho=t,n()}finally{Ho=e}}function Yt(t,n,...e){return Gt.call(this,t,n,e)}function Gt(t,n,e){const i=Yo;try{return Yo=t,n.apply(this,e)}finally{Yo=i}}function Xt(t,n,e){const i={$:n,dt:Ne,$t:void 0,ht:t,O:e,yt:void 0};return Qn(i),i}function Kt(t,n,e){const i={$:n,dt:e,$t:void 0,ht:t||(e&&ne(e)&&"locale"in e?e.locale:void 0),O:void 0};return Qn(i),i}function Zt(t,n,e){let i=n.wt,r=n.bt;const s=Ci();if(s){const t=s.chunkForSymbol(i,r);t&&(r=t[1],i=t[0])}var o;if(le(o=n)&&o.wt==oe)r="",i=t.vt(null,0,n.resolved)+"";else{if(r||(r=t.gt(n.ot)),!r)throw se(14,[n.wt]);r.startsWith("./")&&(r=r.slice(2))}const l=n.getCaptured();let c=null;if(l&&l.length>0&&(c=l.map(n=>""+t.St(n)).join(" ")),e)return[r,i,c];let u=`${r}#${i}`;return c&&(u+="#"+c),u}function tn(t,n,e,i){return cu(t,n,null,null,e,i)}function nn(t,n){const[e,i,r]=t.split("#");return tn(e,i,r||null,n)}function en(t,n){return n?t.rootVNode?Zs(t.rootVNode,n):void 0:t.element?.ownerDocument}function rn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function sn(t,n){return n.kt&&"{"===n.kt[0]&&(n.kt=`(${n.kt})`),[t.vt(n.kt,n.ct.length,n.lt),n.ct]}function on(t){return Object.prototype.hasOwnProperty.call(t,ge)?t[ge]:void 0}function ln(t,n,e){return()=>{t.currentStyleScoped=n,t.parentComponentFrame=e}}async function cn(t,n,i){const r=[n],s=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n===Ul){const t=r.pop();await e(()=>r.push(t()));continue}"function"!=typeof n?un(t,s,n,i):n===Promise?r.push(await r.pop()):await n.apply(t)}})()}function un(t,n,e,i){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(e+"");else if("string"==typeof e)t.textNode(e);else if("object"==typeof e)if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)n(e[t]);else if(gc(e)){((t,n)=>{const e=n instanceof Ar?n.J():n;e instanceof mr&&e.xt>0&&(t.St(e),t.qt.add(e))})(t.serializationCtx,e),t.openFragment(nr);const i=t.getOrCreateLastNode(),r=e instanceof Ar?e.J():e;n(t.closeFragment),n(()=>el(r,i,".",t)),n(Ul)}else if(Ge(e))t.openFragment(nr),n(t.closeFragment),n(e),n(Promise),n(()=>t.streamHandler.flush());else if((t=>!!t[Symbol.asyncIterator])(e))n(async()=>{for await(const n of e)await cn(t,n,{currentStyleScoped:i.currentStyleScoped,parentComponentFrame:i.parentComponentFrame}),t.streamHandler.flush()});else{const r=e,s=r.type;if("string"==typeof s){((t,n)=>{null==sr(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")})(r,i.currentStyleScoped);const e=t.openElement(s,r.key,r.varProps,r.constProps,i.currentStyleScoped,null,!!(4&r.flags));e&&t.htmlNode(e),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const o=r.children;null!=o&&n(o)}else if(re(s))if(s===Kr){t.openFragment(null!=r.key?{[Me]:r.key}:{}),n(t.closeFragment);const e=r.children;null!=e&&n(e)}else if(s===ns){const e=i.parentComponentFrame;if(e){const s={};s["q:sparent"]=e.componentNode.id||"",t.openProjection(s);const o=e.componentNode,l=t.getOrCreateLastNode(),c=((t,n,e)=>{const i=n.constProps;if(i&&"object"==typeof i&&"name"in i){const n=i.name;if(n instanceof Ar)return el(n,t,":",e)}return sr(n,"name")||Ie})(o,r,t);s[pe]=c,n(ln(i,i.currentStyleScoped,i.parentComponentFrame)),n(t.closeProjection);const u=r.children||null,f=e.consumeChildrenForSlot(l,c)||u;u&&f!==u&&t.addUnclaimedProjection(e,Ie,u),n(f),n(ln(i,e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(nr),t.closeFragment()}else if(s===rs)t.commentNode(sr(r,"data")||"");else if(s===os){t.streamHandler.flush();const e=r.children;let s;s=re(e)?e({async write(n){await cn(t,n,{currentStyleScoped:i.currentStyleScoped,parentComponentFrame:i.parentComponentFrame}),t.streamHandler.flush()}}):e,n(s),Ge(s)&&n(Promise)}else if(s===is)t.htmlNode(sr(r,"data"));else if(s===ss)t.streamHandler.streamBlockStart(),n(()=>t.streamHandler.streamBlockEnd()),n(r.children);else if(Su(s)){t.openComponent({});const e=t.getOrCreateLastNode(),o=t.getParentComponentFrame();o.distributeChildrenIntoSlots(r.children,i.currentStyleScoped,i.parentComponentFrame);const l=((t,n,e)=>{const i=t.getOrCreateLastNode(),[r]=e[gu],s=n.props;return s&&s.children&&delete s.children,i.setProp(ae,r),i.setProp(Te,s),null!==n.key&&i.setProp(Me,n.key),ts(t,i,i,r,s)})(t,r,s);if(n(ln(i,i.currentStyleScoped,i.parentComponentFrame)),n(t.closeComponent),Ge(l))n(async()=>{const t=await l,r=ni(e.getProp(be));n(t),n(ln(i,r,o))});else{n(l);const t=ni(e.getProp(be));n(ln(i,t,o))}}else{t.openFragment({[Me]:r.key}),n(t.closeFragment);const e=t.getParentComponentFrame(),i=((t,n,e,i)=>{const r=t.getOrCreateLastNode();return ts(t,r,n,e,i.props)})(t,e&&e.componentNode,s,r);n(i),Ge(i)&&n(Promise)}}}function fn(t,n,e,i){let r=null;const s=e,o=t=>{r=(null==r?"":r+"|")+t},l=n=>(n.wt.startsWith("_")||!n.Rt?.length&&!i||(n=cu(null,"_run",A,null,[n])),Zt(t,n));if(Array.isArray(s))for(let e=0;e<s.length;e++){const r=s[e];if(le(r))o(l(r)),an(t,n,r);else if(null!=r){const e=fn(t,n,r,i);e&&o(e)}}else le(s)&&(r=l(s),an(t,n,s));return r}function an(t,n,e){const i=[(r=n).charAt(2),r.substring(4)];var r;if(i){const[n,r]=i,s=((t,n)=>t+":"+n)(n,r);t.jt.add(s),t.Ct.add(e)}}function hn(t){Go()&&(nc||=ql(tc,"_hmr"),Gl((t=>"qHmr"+t.replace(/[^a-zA-Z0-9_]/g,"_"))(t),nc))}function dn(t,n,e,i,r){const s=Fs();return Bs(s,pe,r),s.parent=n,Bs(n,r,s),Bs(s,ae,e),Bs(s,Te,i),s.dirty=4,Nt(t,s,1),s}function pn(t,n){Bs(t,he,n),t.flags|=2048}function $n(t,n,e){Bs(n,Te,e),Ft(t,n,4)}function yn(t,n,e,i){Bs(n,i,null);const r=[];if(dt(t,r,e),ro(r),2048&e.flags){const t=Js(e,he,null);t&&t.replaceChildren(),Bs(e,he,null),e.flags&=-2049}}function mn(t,n,e){if(0===n)return e;const i=vl(t,n,e);return lc(n)&&sc(t,i,n,e),i}function wn(t,n){if(t)for(const e of t)e.backRef||=new Set,e.backRef.add(n)}function bn(t,n){if(t)for(const[,e]of t)wn(e,n)}function vn(t){const n=Sn(t);if(!n)throw se(24);return gn(n)}function gn(t){const n=t;return n.qContainer||=new $c(n)}function Sn(t){return t.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}function kn(t,n){const e=vn(n);"string"==typeof this&&iu(ru(e,this));const i=eu[0];i.R|=4,Ft(e,i.ut,1)}function xn(t){try{if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return'"'+t+'"';if("number"==typeof t||"boolean"==typeof t)return t+"";if(bc(t))return`Task(${xn(t.Et)})`;if(le(t))return`Qrl(${t.wt})`;if("object"==typeof t||"function"==typeof t){if(Cc.includes(t))return"*";try{if(Cc.push(t),Array.isArray(t))return zs(t)?"("+(Js(t,ce,null)||"vnode")+")":t.map(xn);if(gc(t))return t instanceof Ar?"WrappedSignal":t instanceof $r?"ComputedSignal":"Signal";if(Ic(t))return"Store";if(zr(t))return Ec(t);if(zs(t))return"("+(Js(t,ce,null)||"vnode")+")"}finally{Cc.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}function qn(t,n,e){return new Proxy(n,new Tc(e,t||null))}function Rn(t,n,e,i){const r=e.p||=new Map;let s=r.get(n);s||(s=new Set,r.set(n,s)),Sc(s,i),kc(i,t),(import.meta.env.TEST?!pc(e.O):In)&&xc(i,e.O)}function jn(t,n,e,i){e[t]=n;const r=Cn(e,t,i.p);r&&qc(i.O,i,r)}function Cn(t,n,e){let i;if(e)if(Array.isArray(t))for(const t of e.values()){i||=new Set;for(const n of t)i.add(n)}else i=e.get(n);const r=e?.get(dr);if(r){i||=new Set;for(const t of r)i.add(t)}return i}function En(t,n){const e=(t,n)=>1===t&&"string"==typeof n,i=t=>14===t,r=n=>{const e=t[n+1].split(" ");let i=t,r=1,s=0,o=0,l=null;for(let n=0;n<e.length;n++)if(l=i,s=2*parseInt(e[n],10),o=s+1,r=i[s],i=i[o],1===r){const n=2*i;r=t[n],i=t[n+1]}l&&(l[s]=1,l[o]=n/2),t[n]=r,t[n+1]=i};for(let s=0;s<t.length;s+=2)e(t[s],t[s+1])?r(s):i(t[s])&&(n.Ot=t[s+1])}async function On(t){const n=Dl(null,null,()=>"",()=>{},new WeakMap);return n.St(t),await n._t(),""+n.Pt}function _n(t){if(null==t)throw Error("No state data to deserialize");const n=JSON.parse(t);if(!Array.isArray(n)||n.length<2||"number"!=typeof n[0])throw Error("Invalid state data");const e=(t=>{let n;const e={_:t=>Pn(t,n),getSyncFn:()=>()=>{},h:new WeakMap,element:null,Ot:null};return En(t,e),n=fc(e,t),e.At=n,e})(n);return mn(e,n[0],n[1])}function Pn(t,n){return"string"==typeof t?n[t=parseInt(t,10)]:n[t]}function An(t,n){const e=Go();return e?.O?.Nt[t]??n}import{p as Nn}from"@qwik.dev/core/preloader";const In=!1,Mn=!0,Tn=!1,Fn=globalThis,zn=!1!==Fn.qDev,Ln=!1!==Fn.qSerialize,Dn=!1!==Fn.qDynamicPlatform,Wn=!0===Fn.qTest,Un=!0===Fn.qRuntimeQrl,Qn=t=>{zn&&Object.seal(t)},Vn=zn?"background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;":"",Jn=/*#__PURE__*/new Set,Bn=(t,...n)=>{if(zn){const e="warn"+t;Jn.has(e)||(Jn.add(e),Hn(t,...n))}},Hn=(t,...n)=>{zn&&console.warn("%cQWIK WARN",Vn,t,...n)},Yn=(t,n,...e)=>{const i=n instanceof Error?n:Error(n);return!Wn&&console.error("%cQWIK ERROR",Vn,i.message,...e,i.stack),t&&!Wn&&setTimeout(()=>{throw i},0),i},Gn=(t,n,e)=>{let i=e>>1,r=t.length-2>>1;for(;i<=r;){const e=i+(r-i>>1),s=t[e<<1];if(s===n)return e<<1;s<n?i=e+1:r=e-1}return~(i<<1)},Xn=(t,n,e,i,r=!1)=>{const s=Gn(t,n,i);s>=0?null!=e||r?t[s+1]=e:t.splice(s,2):(null!=e||r)&&t.splice(-1^s,0,n,e)},Kn=(t,n,e)=>{const i=Gn(t,n,e);return i>=0?t[i+1]:null},Zn=(t,n,e)=>Gn(t,n,e)>=0,te=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},ne=t=>"object"==typeof t&&null!==t,ee=t=>Array.isArray(t),ie=t=>"string"==typeof t,re=t=>"function"==typeof t,se=(t,n=[])=>{const e=((t,...n)=>{if(zn){let e=["Error while serializing class or style attributes","Scheduler not found","track() received object, without prop to track","Only primitive and object literals can be serialized. {{0}}","You can render over a existing q:container. Skipping render().","QRL is not a function","Dynamic import {{0}} not found","Unknown type argument","Actual value for useContext({{0}}) can not be found, make sure some ancestor component has set a value using useContextProvider(). In the browser make sure that the context was used during SSR so its state was serialized.","Invoking 'use*()' method outside of invocation context.","Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nSee https://qwik.dev/docs/core/tasks/#use-method-rules",'The provided Context reference "{{0}}" is not a valid context created by createContextId()',"SsrError(tag): {{0}}","QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.","QRLs can not be dynamically resolved, because it does not have a chunk path","{{0}}\nThe JSX ref attribute must be a Signal","Serialization Error: Deserialization of data type {{0}} is not implemented","Serialization Error: Expected vnode for ref prop, but got {{0}}","Serialization Error: Cannot allocate data type {{0}}","Serialization Error: Missing root id for {{0}}","Serialization Error: Serialization of data type {{0}} is not implemented","Serialization Error: Unvisited {{0}}","Serialization Error: Missing QRL chunk for {{0}}","{{0}}\nThe value of the textarea must be a string found {{1}}","Unable to find q:container","Element must have 'q:container' attribute.","Unknown vnode type {{0}}.","Materialize error: missing element: {{0}} {{1}} {{2}}","Cannot coerce a Signal, use `.value` instead","useComputed$ QRL {{0}} {{1}} cannot return a Promise",'===\nQwik version {{0}} already imported while importing {{1}}.\nThis can lead to issues due to duplicated shared structures.\nVerify that the Qwik libraries you\'re using are in "resolve.noExternal[]" and in "optimizeDeps.exclude".\n===\n',"WrappedSignal is read-only","Attribute value is unsafe for SSR {{0}}","SerializerSymbol function returned rejected promise","Serialization Error: Cannot serialize function: {{0}}"][t]??"";return n.length&&(e=e.replaceAll(/{{(\d+)}}/g,(t,e)=>{let i=n[e];return i&&ne(i)&&i.constructor===Object&&(i=JSON.stringify(i).slice(0,50)),i})),`Code(Q${t}): ${e}`}return`Code(Q${t}) https://github.com/QwikDev/qwik/blob/build/v2/packages/qwik/src/core/shared/error/error.ts#${n.join()}L${9+t}`})(t,...n);return((t,...n)=>Yn(zn,t,...n))(e,...n)},oe="<sync>",le=t=>"function"==typeof t&&"function"==typeof t.getSymbol,ce="q:type",ue={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},fe=124,ae="q:renderFn",he="q:targetEl",de="⚡️",pe="q:slot",$e="q:s",ye="q:style",me="style[q\\:style]",we=me+",style[q\\:sstyle]",be="q:sstyle",ve="q:ctx",ge="q:brefs",Se=(t,n)=>t["qFuncs_"+n]||[],ke="q:base",xe="q:container-island",qe="/"+xe,Re="q:ignore",je="/"+Re,Ce="q:container",Ee="/"+Ce,Oe="q:template",_e="http://www.w3.org/1999/xhtml",Pe="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1998/Math/MathML",Ne="qRender",Ie="",Me="q:key",Te="q:props",Fe="q:seq",ze="q:seqIdx",Le="q:p",De="q:ps",We=":",Ue=":on",Qe=":onIdx",Ve=":onFlags",Je=":",Be="dangerouslySetInnerHTML",He="__scopedStyleIdPrefix__",Ye=100,Ge=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,Xe=(t,n,e)=>{try{const i=t();return Ge(i)?i.then(n,e):n(i)}catch(t){return e(t)}},Ke=(t,n)=>Ge(t)?t.then(n):n(t),Ze=t=>{throw t},ti=t=>de+t,ni=t=>{if(t){let n=0;do{t=t.substring(0,n)+ti(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},ei=t=>113===t.charCodeAt(0)&&45===t.charCodeAt(1)&&58===t.charCodeAt(3),ii=t=>t.replace(/([A-Z-])/g,t=>"-"+t.toLowerCase()),ri=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexShrink","gridArea","gridRow","gridRowEnd","gridRowStart","gridColumn","gridColumnEnd","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","MozAnimationIterationCount","MozBoxFlex","msFlex","msFlexPositive","WebkitAnimationIterationCount","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitColumnCount","WebkitColumns","WebkitFlex","WebkitFlexGrow","WebkitFlexShrink","WebkitLineClamp"]),si=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return(+Math.abs(n)).toString(36)},oi=t=>{if(!t)return"";if(ie(t))return t.trim();const n=[];if(ee(t))for(const e of t){const t=oi(e);t&&n.push(t)}else for(const[e,i]of Object.entries(t))i&&n.push(e.trim());return n.join(" ")},li=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),ci=(t,n)=>"number"!=typeof n||0===n||ri.has(t)?n:n+"px",ui=document,fi=ui.createElement("link").relList.supports("modulepreload")?"modulePreload":"preload",ai=/\.[mc]?js$/,hi=t=>{let n=di.get(t);if(!n){let e;n=((t,n)=>({It:t,At:ai.test(t)?0:3,Mt:n,Tt:1,Ft:Date.now(),zt:0,Lt:0}))(t,e),di.set(t,n)}return n},di=new Map;let pi=0;const $i=[],yi=()=>{if($i.length)for(;$i.length;){const t=$i[0];if(!(1-t.Tt>=.99||pi<5))break;$i.shift(),mi(t)}},mi=t=>{if(t.At>=2)return;pi++;const n=Date.now();t.zt=n-t.Ft,t.At=2;const e=ui.createElement("link");e.href=""+new URL("undefined"+t.It,ui.baseURI),e.rel=fi,e.as="script",e.onload=e.onerror=()=>{pi--;const i=Date.now();t.Lt=i-n,t.At=4,e.remove(),yi()},ui.head.appendChild(e)},wi=(t,n,e)=>{if(e?.has(t))return;const i=t.Tt;if(t.Tt=n,!(i-t.Tt<.01)&&t.Mt){e||=new Set,e.add(t);const n=1-t.Tt;for(const i of t.Mt){const t=hi(i.It);if(0===t.Tt)continue;let r;if(1===n||n>=.99&&vi<100)vi++,r=Math.min(.01,1-i.Dt);else{const e=(1-i.Dt*n)/i.Wt;r=Math.max(.02,t.Tt*e),i.Wt=e}wi(t,r,e)}}},bi=(t,n)=>{const e=hi(t);e&&e.Tt>n&&wi(e,n)};let vi;document.addEventListener("qsymbol",t=>{const{symbol:n,href:e}=t.detail;e&&(t=>{if(!t?.length)return;vi=0;let n=0;if(Array.isArray(t))for(let e=t.length-1;e>=0;e--){const i=t[e];"number"==typeof i?n=1-i/10:bi(i,n)}else bi(t,n);yi()})(n.slice(n.lastIndexOf("_")+1))});const gi=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},Si=",",ki="2.0.0-beta.29-dev+bc61b71",xi=()=>({isServer:In,importSymbol(t,n,e){if(!n)throw se(14,[e]);if(!t)throw se(13,[n,e]);const i=""+qi(t.ownerDocument,t,n),r=new URL(i);return r.hash="",import(r.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),qi=(t,n,e)=>{const i=t.baseURI,r=new URL(n.getAttribute(ke)??i,i);return new URL(e,r)};let Ri=/*#__PURE__ */xi();const ji=t=>Ri=t,Ci=()=>Ri,Ei=()=>!!Dn&&Ri.isServer,Oi=t=>1===t.nodeType,_i=t=>"foreignObject"===t,Pi=t=>"svg"===t||_i(t),Ai=t=>"math"===t,Ni={elementNamespace:_e,elementNamespaceFlag:0},Ii=Symbol();class Mi{[Ii]=void 0}class Ti{flags;parent;previousSibling;nextSibling;props;[Ii]=void 0;slotParent=null;dirty=0;dirtyChildren=null;nextDirtyChildIndex=0;constructor(t,n,e,i,r){this.flags=t,this.parent=n,this.previousSibling=e,this.nextSibling=i,this.props=r}toString(){return Object.prototype.toString.call(this)}}class Fi extends Ti{key;firstChild;lastChild;constructor(t,n,e,i,r,s,o,l){super(n,e,i,r,s),this.key=t,this.firstChild=o,this.lastChild=l}}class zi extends Fi{node;elementName;constructor(t,n,e,i,r,s,o,l,c,u){super(t,n,e,i,r,s,o,l),this.node=c,this.elementName=u}}class Li extends Ti{node;text;constructor(t,n,e,i,r,s,o){super(t,n,e,i,r),this.node=s,this.text=o}}const Di=[],Wi=[],Ui=new WeakMap,Qi=":nodeProps",Vi=":nodeDiff",Ji=":signal";class Bi{Ut;p=void 0;O=null;Qt=null;constructor(t,n){this.O=t||Go()?.O||null,this.Ut=n}trigger(){qc(this.O,this,this.p)}force(){qc(this.O,this,this.p)}get untrackedValue(){return this.Ut}set untrackedValue(t){this.Ut=t}get value(){const t=this.untrackedValue,n=Go();if(!n)return t;null===this.O&&(this.O=n.O);const e=n.$t;return e&&(Sc(this.p||=new Set,e),kc(e,this),(import.meta.env.TEST?!pc(this.O):In)&&xc(e,this.O)),t}set value(t){t!==this.Ut&&(this.Ut=t,qc(this.O,this,this.p))}valueOf(){if(zn)throw se(28)}toString(){return this.constructor.name}toJSON(){return{value:this.Ut}}}const Hi=Symbol(),Yi=Symbol(),Gi=Symbol(),Xi=Symbol(),Ki=Symbol(),Zi=Symbol(),tr=[],nr={};Object.freeze(tr),Object.freeze(nr);class er{owner;p=void 0;O=null;constructor(t){this.owner=t}get(t,n){if(n===Hi)return this.owner.constProps;if(n===Yi)return this.owner.varProps;if(n===Gi)return this.owner;if(n===Xi)return this;let e;if("children"===n)e=this.owner.children;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=i(n);t&&(n=t)}e=sr(this.owner,n),n in this.owner.varProps&&ir(this,n)}return e instanceof Ar&&4&e.R?e.value:e}set(t,n,e){if(n===Gi)this.owner=e;else if("children"===n)this.owner.children=e;else if(n===Hi)this.owner.constProps=e;else if(n===Yi)this.owner.varProps=e;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=i(n);t&&(n=t)}this.owner.constProps&&n in this.owner.constProps&&delete this.owner.constProps[n],this.owner.varProps===nr?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==e&&(this.owner.varProps[n]=e,rr(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&rr(this,n),this.owner.constProps&&(e=delete this.owner.constProps[n]||e),null!=this.owner.children&&"children"===n&&(this.owner.children=null,e=!0),e}has(t,n){if("children"===n)return null!=this.owner.children;if(n===Hi||n===Yi)return!0;const e=n in this.owner.varProps;if("string"==typeof n&&(e&&ir(this,n),"string"==typeof this.owner.type)){const t=i(n);t&&(n=t)}return e||!!this.owner.constProps&&n in this.owner.constProps}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n?this.owner.children:this.owner.constProps&&n in this.owner.constProps?this.owner.constProps[n]:this.owner.varProps[n]}}ownKeys(){const t=Object.keys(this.owner.varProps);if(null!=this.owner.children&&t.push("children"),this.owner.constProps)for(const n in this.owner.constProps)-1===t.indexOf(n)&&t.push(n);return t}}const ir=(t,n)=>{const e=Go();e&&null===t.O&&e.O&&(t.O=e.O);const i=e?.$t;i&&Rn(t.owner._proxy,n,t,i)},rr=(t,n)=>{const e=((t,n)=>t?.get(n))(t.p,n);return e&&qc(t.O,t,e),!!e},sr=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],or=t=>t?Yi in t?"children"in t?{...t[Yi],children:t.children}:t[Yi]:t:null,lr=t=>t&&Hi in t?t[Hi]:null,cr=t=>t&&Yi in t,ur=Symbol();class fr{consumer;property;backRef;data;constructor(t,n,e=null,i=null){this.consumer=t,this.property=n,this.backRef=e,this.data=i}}const ar=Symbol(),hr=Symbol(),dr=Symbol(),pr=(t,n)=>(e,i)=>{const r=Kt();return r.$t=$(t,":"),r.O=n||void 0,Yt(r,()=>{if(re(e))return e();if(i)return e[i];if(gc(e))return e.value;if(ne(e)&&Ic(e))return Rn(_c(e),dr,Oc(e),r.$t),e;throw se(2)})};class $r extends Bi{Vt;R;[Ii]=void 0;constructor(t,n,e=17){super(t||Go()?.O,ur),this.Vt=n,this.R=e}invalidate(){this.R|=1;const t=Kt();t.O=this.O||void 0;const n=e(Gt.bind(this,t,this.j));n&&n.catch(t=>{this.O?this.O.handleError(t,null):console.error("Error during computation",t)})}get untrackedValue(){return this.j(),this.Ut}set untrackedValue(t){this.Ut=t}j(){if(!(1&this.R))return;const t=this.Vt;vc(t);const n=Go(),e=n?.$t;if(n){const t=$(this,".");m(this.O,t),n.$t=t}try{const e=t.getFn(n)();if(Ge(e))throw se(29,[t.dev?t.dev.file:"",t.ot]);this.R&=-2,super.value=e}finally{n&&(n.$t=e)}}}class yr{Jt;Bt=null;Ht=!1;Yt=!0;Gt;Xt;Kt;constructor(t){this.Jt=t}get track(){return this.Gt||=pr(this.Jt,this.Jt.O)}get abortSignal(){return(this.Kt||=new AbortController).signal}cache(){}get previous(){const t=this.Jt.Ut;if(t!==ur)return t}cleanup(t){"function"==typeof t&&(this.Xt||=[]).push(t)}}class mr extends $r{Zt=!1;tn=void 0;m=void 0;k=void 0;nn=null;en=[];rn=1;xt=0;sn;[Ii]=void 0;constructor(t,n,e=17,i){super(t,n,e);const r=i?.interval,s=i?.concurrency??1,o=i?.initial,l=i?.timeout,c=i?.eagerCleanup,u=i?.clientOnly;if(void 0!==o){const t="function"==typeof o?o():o;this.Ut=t}this.rn=s,l&&(this.sn=l),c&&(this.R|=32),u&&(this.R|=64),r&&(this.interval=r)}get untrackedValue(){if(this.j(),this.nn?.Bt){if(this.Ut===ur||(import.meta.env.TEST?Ei():In))throw this.nn?.Bt;return this.Ut}if(this.tn)throw this.tn;if((import.meta.env.TEST?Ei():In)&&64&this.R&&this.Ut===ur)throw Error("Cannot read .value from clientOnly");return this.Ut}set untrackedValue(t){this.Ut=t}get loading(){const t=this.untrackedLoading,n=Go();if(n&&(this.O||=n.O||null)){const t=n.$t;t&&(Sc(this.m||=new Set,t),kc(t,this),xc(t,this.O))}return t}set untrackedLoading(t){t!==this.Zt&&(this.Zt=t,qc(this.O,this,this.m))}get untrackedLoading(){if(this.j(),(import.meta.env.TEST?Ei():In)&&this.nn?.Bt)throw this.nn?.Bt;return this.Zt}get error(){const t=this.untrackedError,n=Go();if(n&&(this.O||=n.O||null)){const t=n.$t;t&&(Sc(this.k||=new Set,t),kc(t,this),xc(t,this.O))}return t}set untrackedError(t){t!==this.tn&&(this.tn=t,qc(this.O,this,this.k))}get untrackedError(){return this.tn}get interval(){return this.xt}set interval(t){this.ln(),this.xt=t,this.xt>0&&this.p?.size&&this.cn()}async invalidate(){this.R|=1,this.ln(),(this.p?.size||this.m?.size||this.k?.size)&&(await!0,this.j())}abort(t){this.nn&&this.un(this.nn,t)}q(){32&this.R&&!this.fn()&&(import.meta.env.TEST?!Ei():Mn)&&setTimeout(()=>{this.fn()||this.abort()})}async promise(){for(this.j();this.nn?.Bt;)await(this.nn?.Bt)}j(){if(!(1&this.R))return;if((import.meta.env.TEST?Ei():In)&&64&this.R)return this.Zt=!0,void this.O?.serializationCtx.qt.add(this);if(this.ln(),this.nn&&this.un(this.nn),this.en.length>=(0===this.rn?1/0:this.rn))return;this.R&=-2;const t=new yr(this);this.nn=t,this.en.push(t),t.Bt=this.an(t)}async an(t){const n=()=>t===this.nn;this.untrackedLoading=!0;const i=this.Vt.resolved||await this.Vt.resolve();try{this.sn&&(this.hn=setTimeout(()=>{t.Kt?.abort();const e=Error("timeout");n()&&(this.untrackedError=e,t.Yt=!1)},this.sn));const r=await e(i.bind(null,t));if(t.Bt=null,t.Yt){const n=this.en.indexOf(t);if(-1!==n)for(let t=0;t<n;t++)this.en[t].Yt=!1;this.untrackedError=void 0,this.value=r}}catch(e){t.Bt=null,n()&&(this.untrackedError=e)}n()&&(clearTimeout(this.hn),1&this.R?this.j():(this.untrackedLoading=!1,this.cn()))}async dn(){this.ln(),clearTimeout(this.hn),this.nn&&await this.un(this.nn),await Promise.all(this.en.map(t=>t.Bt))}ln(){void 0!==this.pn&&(clearTimeout(this.pn),this.pn=void 0)}cn(){(import.meta.env.TEST?!Ei():Mn)&&this.xt>0&&(this.ln(),this.pn=setTimeout(this.invalidate.bind(this),this.xt),this.pn?.unref?.())}fn(){return!!(this.p?.size||this.m?.size||this.k?.size)}async un(t,n){if(t.Ht)return t.Bt;t.Ht=!0,t.Kt?.abort(n),t.Bt=Promise.resolve(t.Bt).then(()=>t.Bt=this.$n(t))}async $n(t){const n=t.Xt;if(n?.length){const t=t=>{const n=this.O?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)};await Promise.all(n.map(n=>{try{const e=n();if(Ge(e))return e.catch(t)}catch(n){t(n)}})),n.length=0}const e=this.en,i=e.indexOf(t);-1!==i&&e.splice(i,1),this.j()}}const wr=t=>(n,...e)=>t.call(null,yu(n),...e);class br extends $r{constructor(t,n){super(t,n,17)}yn=!1;j(){if(!(1&this.R))return;vc(this.Vt),this.R&=-2;let t=this.Vt.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,i=t.update,r=this.Ut===ur?e:this.Ut,s=nl(()=>this.yn?i?.(r)||r:n(r),this,".",this.O);this.yn=!0,(this.yn&&"undefined"!==s||s!==this.Ut)&&(this.Ut=s,qc(this.O,this,this.p))}}const vr=(t,n)=>new $r(n?.container||null,t,jc(n?.serializationStrategy||"always")),gr=(t,n)=>new mr(n?.container||null,t,jc(n?.serializationStrategy||"always"),n),Sr=t=>new br(null,t),kr=t=>new Bi(null,t),xr=/*#__PURE__*/wr(vr),qr=/*#__PURE__*/wr(gr),Rr=wr(Sr),jr=t=>t.value,Cr=(t,n)=>t[n],Er=t=>1===t.length?gc(t[0])?t[0].Qt||=new Ar(null,jr,t,null):Ic(t[0])?new Ar(null,jr,t,null):t[0].value:new Ar(null,Cr,t,null),Or=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!ne(n))return n[e];if(gc(n))return n instanceof Ar&&4&n.R?n:Er(t);if(cr(n)){const i=n[Hi],r=n[Yi];if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];if(Object.prototype.hasOwnProperty.call(r,e))return _r(r[e],t)}else{const i=_c(n);if(i)return _r(i[e],t)}return n[e]},_r=(t,n)=>gc(t)?t:Er(n),Pr=(t,n)=>{const e=Or(t,n);return e===Ki?t[n]:e};class Ar extends Bi{ct;lt;kt;R;$=void 0;[Ii]=void 0;constructor(t,n,e,i,r=5){super(t,ur),this.ct=e,this.lt=n,this.kt=i,this.R=r}invalidate(){this.R|=1;try{this.j()}catch(t){this.O&&this.$&&(this.O.setHostProp(this.$,Ji,this),Ft(this.O,this.$,16))}2&this.R&&(this.R&=-3,qc(this.O,this,this.p))}get untrackedValue(){return this.j(),this.Ut}j(){if(!(1&this.R))return;const t=nl(()=>this.lt(...this.ct),this,".",this.O);this.R&=-3,t!==this.Ut&&(this.R|=2,this.Ut=t)}J(){return this.lt===jr&&gc(this.ct[0])?this.ct[0]:this}set value(t){throw se(31)}get value(){return super.value}}class Nr{data;constructor(t){this.data=t}}const Ir=(t,n)=>{if("string"==typeof t){const e=vn(n);iu(ru(e,t))}return null},Mr=Object.prototype.hasOwnProperty;class Tr{type;children;flags;toSort;key;varProps;constProps;dev;_proxy=null;constructor(t,n,e,i,r,s,o,l){this.type=t,this.children=i,this.flags=r,this.toSort=!!o,this.key=null==s?null:"string"==typeof s?s:""+s,this.varProps=!n||gi(n)?nr:n,this.constProps=!e||gi(e)?null:e,zn&&l&&(this.dev={...l,stack:Error().stack?.split("\n").slice(2).join("\n")}),Qn(this)}get props(){return this._proxy||=p(this)}}const Fr=(t,n,e)=>{let i=t[n];if(!i)return t[n]=e,!0;Array.isArray(i)?i.push(e):i=t[n]=[i,e]},zr=t=>zn?t instanceof Tr||!!(ne(t)&&Mr.call(t,"key")&&Mr.call(t,"props")&&Mr.call(t,"type"))&&!cr(t)&&(Hn('Duplicate implementations of "JSXNode" found'),!0):t instanceof Tr,Lr="bind:value",Dr="bind:checked",Wr=Object.prototype.hasOwnProperty,Ur=(t,n,e,i,r,s,o)=>new Tr(t,n,e,i,r,s,!1,o),Qr=(t,n,e,r,s,o,l)=>{let c=!1,u=!1,f=!1,a=null,h=null;if("string"==typeof t){if(e){const t=new Set;for(const n in e){const r=i(n);r?(u||(e={...e},u=!0),Wr.call(e,r)&&!t.has(r)||(e[r]=e[n]),delete e[n]):n===Dr?h=e[n]:n===Lr&&(a=e[n]),t.add(n)}}if(n){const t=new Set;for(const e in n){const r=i(e);r?(f||(n={...n},f=!0),Wr.call(n,r)&&!t.has(r)||(n[r]=n[e]),delete n[e],c=!0):e===Dr?h=n[e]:e===Lr&&(a=n[e]),t.add(e)}}if(h||a)if(f||(n={...n},f=!0),n||={},h){n&&Wr.call(n,Dr)&&delete n[Dr],e&&Wr.call(e,Dr)&&(u||(e={...e},u=!0),delete e[Dr]),n.checked=h;const t=cu(null,"_chk",S,null,[h]);if(e&&Wr.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],c=Fr(n,"q-e:input",t)||c}c=Fr(n,"q-e:input",t)||c}else if(a){n&&Wr.call(n,Lr)&&delete n[Lr],e&&Wr.call(e,Lr)&&(u||(e={...e},u=!0),delete e[Lr]),n.value=a;const t=cu(null,"_val",g,null,[a]);if(e&&Wr.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],c=Fr(n,"q-e:input",t)||c}c=Fr(n,"q-e:input",t)||c}n&&Wr.call(n,"className")&&(f||(n={...n},f=!0),n.class=n.className,n.className=void 0,c=!0,zn&&Bn(`jsx${l?` ${l.fileName}${l?.lineNumber?":"+l.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`)),e&&Wr.call(e,"className")&&(u||(e={...e},u=!0),e.class=e.className,e.className=void 0,zn&&Bn(`jsx${l?` ${l.fileName}${l?.lineNumber?":"+l.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`))}if(n)for(const t in n)"children"===t?(f||(n={...n},f=!0),r||=n.children,delete n.children):"key"===t?(f||(n={...n},f=!0),o||=n.key,delete n.key):(e&&t in e||null===n[t])&&(f||(n={...n},f=!0),delete n[t]);return new Tr(t,n,e,r,s,o,c||!0,l)},Vr=(t,n,e,i)=>Yr(t,n,i),Jr=(t,n,e,i,r)=>Yr(t,{...e,...n},r),Br=(t,n,e,i,r,s)=>Yr(t,{...e,...n,children:i},s),Hr=t=>t.children,Yr=(t,n,e,i,r)=>Qr(t,n,null,null,0,e,r),Gr=Yr,Xr=Yr,Kr=t=>t.children,Zr=(t,n)=>new Tr(Hr,null,null,t.children,0,n),ts=(t,n,e,i,r)=>{const s=Xt(t.ht,e||n,t);let o;e&&(s.$t=$(e,":"),s.O=t),t.ensureProjectionResolved(n);let l=!1;if(null===i&&(i=t.getHostProp(n,ae)),le(i))"children"in(r=r||t.getHostProp(n,Te)||nr)&&delete r.children,o=i.getFn(s);else if(Su(i)){const t=i;o=()=>Gt(s,t,[r||nr,null,0])}else{l=!0;const t=i;o=()=>Gt(s,t,[r||nr])}const c=import.meta.env.TEST?Ei():In,u=(e=0)=>Xe(()=>(l||(t.setHostProp(n,ze,null),t.setHostProp(n,Qe,null)),e>0&&zs(n)&&y(t,n),Ke(o(r),t=>Ke(s.yt,()=>t))),i=>{if(c&&!l&&4&n.dirty&&(n.dirty&=-5,e<Ye))return u(e+1);const r=t.getHostProp(n,Ue);return r?q(i,r):i},t=>{if(Ge(t)&&e<Ye)return t.then(()=>u(++e));if(e>=Ye)throw Error("Max retry count of component execution reached");throw t});return u()},ns=t=>Ur(Hr,null,{[$e]:""},t.children,0,t.name??""),es=Symbol(),is=()=>null,rs=()=>null,ss=t=>t.children,os=(t,n)=>Yr(Zr,{children:Yr(ls,t)},n),ls=()=>null;let cs=null,us=null;const fs=(t,n=[],e={})=>{let i=null;const r=t[Hi];if(r)for(const t in r)n.includes(t)||(i||={},i[t]=r[t]);const s=e,o=t[Yi];for(const t in o)n.includes(t)||(s[t]=o[t]);return p(new Tr(null,s,i,null,0,null))};class as{target;constructor(t){this.target=t}}class hs{target;constructor(t){this.target=t}}class ds{target;text;constructor(t,n){this.target=t,this.text=n}}class ps{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class $s{target;attrName;attrValue;scopedStyleIdPrefix;isSvg;constructor(t,n,e,i,r){this.target=t,this.attrName=n,this.attrValue=e,this.scopedStyleIdPrefix=i,this.isSvg=r}}const ys=t=>new as(t),ms=(t,n)=>new ds(t,n),ws=(t,n,e)=>new ps(t,n,e),bs=(t,n,e,i=null,r=!1)=>new $s(t,n,e,i,r),vs=t=>{if(t.dn){try{t.dn()}catch(t){Yn(!1,t)}t.dn=null}},gs=Object.prototype.hasOwnProperty,Ss=(t,n,e,i,r,s)=>{const o=((t,n,e,i)=>({O:t,tt:n,nt:e,st:i,L:[],B:[],et:[],N:null,T:null,M:null,K:null,Z:null,X:null,Y:null,U:null,D:0,W:0,H:!0,G:!1,rt:{it:new Nr({st:i,mn:!0}),wn:new Nr({st:i,mn:!1})}}))(t,n,r,s);M(o,e,i);const l=J(o);if(Ge(l))return l.finally(()=>{B(o)});B(o)},ks=(t,n,i,r,s)=>{if(ei(i))return void K(i,r,n.node,n,t);if(i===Le||i===De)return Bs(n,i,r),void(n.flags|=192);const o=r;if("ref"===i){const t=n.node;if(gc(r))return void(r.value=t);if("function"==typeof r)return void r(t);throw se(15,[s])}const l=n[Ii]?.get(i);if(gc(r)){const s=r instanceof Ar?r.J():r;if(l?.backRef?.has(s))return;l&&m(t.O,l);const o=n;r=e(()=>el(s,o,i,t.O,t.rt.wn))}else l&&m(t.O,l);if(Ge(r)){const e=n,s=r.then(n=>{I(t.tt,e,i,n,t.st,o)});return void t.et.push(s)}I(t.tt,n,i,r,t.st,o)};let xs=null;const qs=(t,n,e)=>{xs||(xs=t.insertBefore),xs.call(t,n,e)},Rs=(t,n)=>("allowfullscreen"==n||"async"==n||"autofocus"==n||"autoplay"==n||"checked"==n||"controls"==n||"default"==n||"defer"==n||"disabled"==n||"formnovalidate"==n||"inert"==n||"ismap"==n||"itemscope"==n||"loop"==n||"multiple"==n||"muted"==n||"nomodule"==n||"novalidate"==n||"open"==n||"playsinline"==n||"readonly"==n||"required"==n||"reversed"==n||"selected"==n)&&n in t,js=t=>"false"!==t&&!!t,Cs=(Es=Ct,()=>queueMicrotask(Es));var Es;const Os=(t=>{let n;if("undefined"!=typeof MessageChannel){const e=new MessageChannel;e.port1.onmessage=()=>t(),n=()=>e.port2.postMessage(null)}else n=()=>setTimeout(t);return n})(Ct);let _s=!1;const Ps=[],As=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},Ns=t=>{let n=null;return e=>(n||(n=As(e,t)),n.call(e))},Is=(t,n,e=null)=>{const i=new zi(e,-4087,null,null,null,null,null,null,t,n);return t.vNode=i,i},Ms=t=>{const n=new zi(null,-4095,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},Ts=(t,n)=>new Li(-4084,null,null,null,null,t,n),Fs=()=>new Fi(null,-4094,null,null,null,null,null,null),zs=t=>t instanceof Ti,Ls=t=>!(1&~t.flags),Ds=t=>!!(5&t.flags),Ws=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,Us=t=>!(4&~t.flags),Qs=t=>!(2&~t.flags),Vs=t=>!(2&~t.flags)&&null!==Js(t,pe,null),Js=(t,n,e)=>{if(Ls(t)||Qs(t)){const i=t.props?.[n]??null;if("string"==typeof i&&e){const r=e(i);return t.props[n]=r,r}return i}return null},Bs=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},Hs=(t,n,e,i,r=null)=>{Ls(n)&&(import.meta.env.TEST&&r&&Bs(n,He,r),Bs(n,e,i),zt(t,bs(n.node,e,i,r,!!(512&n.flags))))},Ys=t=>{if(t.key)return;const n=qo(t.node,Je);n&&(t.key=n)},Gs=(t,n)=>{if(1==(15&n.flags)){const e=n;e.flags^=8;const i=e.node,r=i.attributes;let s=!1;for(let n=0;n<r.length;n++){const o=r[n],l=o.name;if(ei(l))Lt(o,l,t,i);else if(s);else if(l!==Je&&l)if(l.startsWith(Ce)){const t=o.value;"html"===t?Bs(e,"dangerouslySetInnerHTML",i.innerHTML):"text"===t&&"value"in i&&Bs(e,"value",i.value)}else Bs(e,l,o.value);else{const t=o.value;t&&(e.key=t),s=!0}}null===Js(e,Le,null)&&null===Js(e,De,null)||(n.flags|=64)}},Xs=(t,n,e)=>{let i=t;for(;e&&i&&Qs(i);){const t=n?i.firstChild:i.lastChild;if(!t)break;if(5&t.flags)return t;i=t}for(;i;){let t=n?i.nextSibling:i.previousSibling;if(t&&5&t.flags)return t;if(!t){let e=i.parent;if(e&&!Qs(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!Qs(e))return null;if(!t)return null;if(Us(t)&&e&&Ls(e))return null}for(;t;){if(i=t,5&i.flags&&Do(i))return i;t=n?i.firstChild:i.lastChild}}return null},Ks=(t,n)=>{const e=n;if(!(8&e.flags)){const i=ho(n,!0),r=e.node,s=Io(i);let o=Xs(n,!1,!0);const l=Xs(n,!0,!0),c=r||(l&&Ls(l)?l.node:l?.node)||null;let u=c;for(;o&&Us(o);){if(!(8&o.flags)){const n=s.createTextNode(o.text);zt(t,ws(n,i,u)),u=n,o.node=n,o.flags|=8}o=Xs(o,!1,!0)}for(o=n;o&&Us(o);){const n=Xs(o,!0,!0),e=!n||!Us(n);if(!(8&o.flags)){if(e&&r)zt(t,ms(r,o.text));else{const n=s.createTextNode(o.text);zt(t,ws(n,i,c)),o.node=n}o.flags|=8}o=n}}},Zs=(t,n)=>{let e=t;const i=t.node,{qVNodeRefs:r}=i;let s,o=-1;if("string"==typeof n)o=parseInt(n),s=r.get(o);else{s=n;const t=s.vNode;if(t)return t}if(zs(s))e=s;else{let t=s;const n=[s];for(;t&&t!==i&&!t.vNode;)t=t.parentElement,n.push(t);t.vNode&&(e=t.vNode);for(let t=n.length-2;t>=0;t--)e=eo(e,n[t]);-1!=o&&(s.vNode=e,r.set(o,e))}if("string"==typeof n){const t=n.length;let i=io(n,t),r=0;for(;i<t;){const t=n.charCodeAt(i);r*=26,t>=97?r+=t-97:(r+=t-65,e=to(e,r),r=0),i++}}return e},to=(t,n)=>{let e=vo(t);for(;e.flags>>>12!==n;)e=e.nextSibling;return e},no=[],eo=(t,n)=>{let e=vo(t);for(;e&&(!(e instanceof zi)||e.node!==n);)if(Qs(e)){const t=e.nextSibling,n=vo(e);n?(t&&no.push(t),e=n):e=t||(no.length?no.pop():null)}else{const t=e.nextSibling;e=t||t||no.pop()}for(;no.length;)no.pop();return e},io=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},ro=qt,so=(t,n,e,i)=>{const r=Ls(n);r&&go(n);const s=e.parent;if(e===i){if(s)return;i=null}uo(t,s,n,e);const o=e.node,l=32&n.flags,c=r?n.node:ho(n,!1);c&&!l&&zt(t,ws(o,c,lo(t,n,i)?.node??null)),co(n,e,i),l&&(e.flags|=32)},oo=(t,n,e,i)=>{const r=Ls(n);r&&go(n);const l=e.parent;if(e===i){if(l)return;i=null}uo(t,l,n,e);const c=32&n.flags,u=!r&&2048&n.flags?n.props?.[he]:null,f=u?null:r?n:po(n,!1),a=u||f?.node,h=lo(t,n,i),d=h?.node??null;if(Vs(e)&&f&&1536&f.flags){const r=po(n,!1),l=lo(t,n,i)?.node??null,{elementNamespace:c,elementNamespaceFlag:u}=o(r,e);Dt(t,e,n=>{if(Us(n))zt(t,ws(n.node,a,l));else{if((1536&n.flags)!==u){const t=((t,n,e,i)=>{let r=t,l=null,c=null,u=null;for(;r;){let f=null,a=null;if(Ls(r)){f=r.node;const t=mo(r),l=r.parent,h=null==c?n:l&&po(l,!0);if(h){const t=o(h,mo(r));e=t.elementNamespace,i=t.elementNamespaceFlag}const d=vo(r);if(a=s(f,t,e,!d),f.remove(),null==c&&(c=a),u&&u.appendChild(a),r.node=a,r.flags&=-1537,r.flags|=i,d){r=d,u=a;continue}if(ko(f)){const t=gn(f);if(t){const n=vo(t.rootVNode);if(n){r=n,u=a;continue}}}}if(r===t)return c;const h=r.nextSibling;if(h)r=h;else{for(l=r.parent;l;){if(l===t)return c;const n=l.nextSibling;if(n)return r=n,c;l=l.parent}if(null==l)return c}}return c})(n,r,c,u);t&&(n.node=t)}zt(t,ws(n.node,a,l))}})}else a&&!c&&Dt(t,e,n=>{zt(t,ws(n.node,a,d))});co(n,e,i),c&&(e.flags|=32)},lo=(t,n,e)=>{let i=null;return null==e?Qs(n)&&(i=Xs(n,!0,!1)):i=Qs(e)?Xs(e,!0,!0):e,i&&Us(i)&&Ks(t,i),i},co=(t,n,e)=>{const i=e?e.previousSibling:t.lastChild;e?e.previousSibling=n:t.lastChild=n,i?i.nextSibling=n:t.firstChild=n,n.previousSibling=i,n.nextSibling=e,n.parent=t},uo=(t,n,e,i)=>{n&&(i.previousSibling||i.nextSibling||n!==e)&&$o(t,n,i,!1)},fo=(t,n)=>{let e=n;for(;e&&Qs(e);)e=e.lastChild;!e||!Us(e)||8&e.flags||Ks(t,e)},ao=(t,n,e,i)=>{Ds(e)?so(t,n,e,i):oo(t,n,e,i)},ho=(t,n)=>{for(;t&&!Ls(t);){if(2048&t.flags)return t.props?.[he];t=t.parent||(n?t.slotParent:null)}return t?t.node:null},po=(t,n)=>{for(;t&&!Ls(t);)t=t.parent||(n?t.slotParent:null);return t},$o=(t,n,e,i)=>{if(Us(e)&&Ks(t,e),i){if(null!==Js(n,Be,null))return;Ds(e)?zt(t,ys(e.node)):Dt(t,e,n=>{zt(t,ys(n.node))})}const r=e.previousSibling,s=e.nextSibling;r?r.nextSibling=s:n.firstChild=s,s?s.previousSibling=r:n.lastChild=r,e.previousSibling=null,e.nextSibling=null},yo=(t,n,e,i=!0)=>{ho(n,!0)&&i&&(Ds(n)?zt(t,new hs(n.node)):Dt(t,n,n=>{zt(t,ys(n.node))}));const r=e.previousSibling;r?r.nextSibling=null:n.firstChild=null,n.lastChild=r},mo=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,i=No(t).toLowerCase();e=n.elementName=i,n.flags|=(t=>{switch(Ao(t)){case Pe:return 512;case Ae:return 1024;default:return 0}})(t)}return e},wo=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},bo=(t,n,e)=>{Ks(t,n),n.text=e,zt(t,ms(n.node,e))},vo=t=>{if(Us(t))return null;let n=t.firstChild;return void 0===n&&(n=go(t)),n},go=t=>{const e=t;let i=e.firstChild;return void 0===i&&(i=e.parent&&ko(e.node)?e.firstChild=e.lastChild=null:(t=>{const e=t.node,i=Po(e),r=Io(e)?.qVNodeData?.get(e);return((t,e,i,r)=>{if(Ys(t),r){if(r.charCodeAt(0)===fe&&r.charCodeAt(1)===fe){const n=(t=>{const n=t.indexOf("||",2);return{elementVNodeData:t.substring(2,n),virtualVNodeData:t.substring(n+2)}})(r);r=n.virtualVNodeData;const e=Mo(t,i,n.elementVNodeData);if(!r)return e}return((t,e,i,r)=>{let s=0,o=null,l=null,c=null;const u=n=>{n.flags=4095&n.flags|s<<12,s++,l&&(l.nextSibling=n),n.previousSibling=l,n.parent=t,o||(t.firstChild=o=n),l=n};let f=0,a=null,h=null;const d=t=>{const n=Jo(t);return!n||n&&Jt(t)};let p=null;if(To(e,($,y,m,w,b)=>{if(Wo($())){for(;d(r);)if(!(r=Eo(r)))throw se(27,[e,$(),b]);a=null,c=null;let t=0;for(;Wo($());)t*=10,t+=m()-48;for(;t--;){const n=Ms(r);for(Ys(n),u(n),r=Eo(r);Jo(r)&&Jt(r);)if(!(r=Eo(r))&&t>0)throw se(27,[e,$(),b])}}else if(59===$())Bs(t,be,y());else if(60===$())(p||=[]).push(t),Bs(t,ae,y());else if(61===$()){h||(h=vn(i));const n=y();h.bn(parseInt(n),t)}else if(62===$())Bs(t,Te,y());else if(64===$()){let e;w(b+1)===fe?(m(),e=decodeURI(n(y())),m()):e=y(),t.key=e}else if(91===$())Bs(t,Fe,y());else if(94===$())Bs(t,ze,y());else if(96===$())h||(h=vn(i)),Qt(t,y(),h);else if(63===$())h||(h=vn(i)),t.slotParent=Zs(h.rootVNode,y());else if(93===$())Bs(t,ve,y());else if(123===$())m(),u(Fs()),Qo.push(t,o,l,c,s),s=0,t=l,o=l=null;else if($()===fe){const e=n(y()),i=n(y());Bs(t,e,i)}else if(125===$())m(),t.lastChild=l,s=Qo.pop(),c=Qo.pop(),l=Qo.pop(),o=Qo.pop(),t=Qo.pop();else if(126===$()){const e=n(y());Bs(t,pe,e)}else{for(;Jo(r)&&Jt(r);)r=Eo(r);const t=r&&3===Ro(r)?r:null;null===a&&(a=t?t.nodeValue:null,f=0);let n=0;for(;Uo($());)n+=m()-97,n*=26;n+=m()-65;const e=null===a?"":a.substring(f,f+n);u(c=((t,n,e)=>new Li(-4092,null,t,null,null,n,e))(c,t,e)),f+=n}}),p){h||(h=vn(i));for(let t=0;t<p.length;t++)h.ensureProjectionResolved(p[t]);p=null}return t.lastChild=l,o})(t,r,e,i)}return Mo(t,i)})(t,e,i,r)})(e)),i};let So=null;const ko=t=>(So||(So=t.hasAttribute),So.call(t,Ce));let xo=null;const qo=(t,n)=>(xo||(xo=t.getAttribute),xo.call(t,n)),Ro=Ns("nodeType"),jo=t=>{const n=Ro(t);return 3===n||1===n};let Co=null;const Eo=t=>{for(Co||(Co=As(t,"nextSibling")),_o||(_o=As(t,"firstChild"));t;)if(null!==(t=Co.call(t))){const n=Ro(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(Re))return Ut(t,xe,Co,_o);if(t.nodeValue?.startsWith(qe))return Ut(t,[xe,je],Co,_o);if(n?.startsWith(Ce))for(;t&&(t=Co.call(t))&&(8!==Ro(t)||!t.nodeValue?.startsWith(Ee)););}}return t},Oo=Ns("parentNode");let _o=null;const Po=t=>{if(_o||(_o=As(t,"firstChild")),(t=t&&_o.call(t))&&8===Ro(t)&&t.nodeValue?.startsWith(Re))return Co||(Co=As(t,"nextSibling")),Ut(t,xe,Co,_o);for(;t&&!jo(t);)t=Eo(t);return t},Ao=Ns("namespaceURI"),No=Ns("nodeName"),Io=Ns("ownerDocument"),Mo=(t,n,e)=>{let i=null;const r=()=>{for(;Jo(s)&&Jt(s);)s=Eo(s)};let s=n;r();let o=null;for(;s;){const n=Ro(s);let e=null;3===n?e=Ts(s,s.textContent??void 0):1===n&&(e=Ms(s),Ys(e)),e&&(e.parent=t,o&&(o.nextSibling=e),e.previousSibling=o,o=e),i||(t.firstChild=i=o),s=Eo(s),r()}if(t.lastChild=o||null,t.firstChild=i,e){let n=null;To(e,(e,i)=>{if(61===e()){n||(n=vn(t.node));const e=i();n.bn(parseInt(e),t)}else 96===e()?(n||(n=vn(t.node)),Qt(t,i(),n)):i()})}return i},To=(t,n)=>{let e=0,i=0,r=0;const s=n=>n<t.length?t.charCodeAt(n):0,o=()=>0!==r?r:r=s(e),l=()=>(i=o(),r=0,e++,i),c=()=>{l();const n=e;for(;o()<=58&&0!==r||92===r||95===r||r>=65&&r<=90||r>=97&&r<=122;)l();return t.substring(n,e)};for(;0!==o();)n(o,c,l,s,e)},Fo=(t,n)=>{if(3&n.flags){Gs(t,n);const e=[],i=n.props;if(i)for(const t in i)t.startsWith(Je)||e.push(t);return e}return[]},zo=(t,n)=>{let e=Lo(t);for(;e;){if(e===n)return!0;e=Lo(e)}return!1},Lo=t=>t.parent||t.slotParent,Do=t=>null===t||Qs(t)?null:t.node,Wo=t=>48<=t&&t<=57,Uo=t=>97<=t&&t<=122,Qo=[],Vo=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw se(26,[n])},Jo=t=>t&&"object"==typeof t&&1===Ro(t),Bo=t=>{let n=1;for(;n--;){for(;t&&(!Qs(t)||null===Js(t,ae,null));){const e=t.slotParent,i=Qs(t)&&e;i&&n++,t=i||t.parent}n>0&&(t=t.parent)}return t};let Ho,Yo;const Go=()=>Yo,Xo=()=>{const t=Go();if(!t||t.dt!==Ne)throw se(10);return t},Ko=(t,n)=>{const e=vn(n),i=Zs(e.rootVNode,n),r=e.ht;r&&(t=>{Ho=t})(r);const s=Kt(r,i,t);return s.O=e,s},Zo=(t,...n)=>{if("function"==typeof t){if(!Yo)return t(...n);{const e=Yo.$t;try{return Yo.$t=void 0,t(...n)}finally{Yo.$t=e}}}return gc(t)?t.untrackedValue:Nc(t)},tl=/*#__PURE__*/Xt(void 0,void 0,void 0),nl=(t,n,e,i,r)=>{const s=tl.$t,o=tl.O;try{return tl.$t=$(n,e,r),tl.O=i,Gt(tl,t)}finally{tl.$t=s,tl.O=o}},el=(t,n,e,i,r)=>(t instanceof Ar&&t.$!==n&&n&&(t.$=n),nl(()=>t.value,n,e,i,r)),il=()=>Go()?.$,rl=()=>{const t=Go();if(t)return t.dt},sl=()=>{const t=Go();if(t)return t.O},ol=t=>t,ll=t=>t.l||Promise.resolve(),cl=()=>{const t=Xo(),n=t.$;let e=t.O.getHostProp(n,Fe);null===e&&(e=[],t.O.setHostProp(n,Fe,e));let i=t.O.getHostProp(n,ze);for(null===i&&(i=0),t.O.setHostProp(n,ze,i+1);e.length<=i;)e.push(void 0);return{val:e[i],set:t=>(zn&&Ln&&Vc(t),e[i]=t),i,iCtx:t}},ul=t=>/*#__PURE__*/Object.freeze({id:ii(t)}),fl=(t,n)=>{const{val:e,set:i,iCtx:r}=cl();void 0===e&&(zn&&hl(t),zn&&Ln&&Vc(n),r.O.setContext(r.$,t,n),i(1))},al=(t,n)=>{const{val:e,set:i,iCtx:r}=cl();if(void 0!==e)return e;zn&&hl(t);const s=r.O.resolveContext(r.$,t);if("function"==typeof n)return i(Yt(void 0,n,s));if(void 0!==s)return i(s);if(void 0!==n)return i(n);throw se(8,[t.id])},hl=t=>{if(!ne(t)||"string"!=typeof t.id||0===t.id.length)throw se(11,[t])},dl=t=>{const n=(()=>{const t=Go();if(!t)throw se(9);return t})(),e=n.$;if(e)return n.O?.resolveContext(e,t)},pl=/*#__PURE__*/ul("qk-error"),$l=[void 0,null,!0,!1,"",tr,nr,ur,dr,Zi,ns,Kr,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],yl=["undefined","null","true","false","''","EMPTY_ARRAY","EMPTY_OBJ","NEEDS_COMPUTATION","STORE_ALL_PROPS","_UNINITIALIZED","Slot","Fragment","NaN","Infinity","-Infinity","MAX_SAFE_INTEGER","MAX_SAFE_INTEGER-1","MIN_SAFE_INTEGER"],ml=["Plain","RootRef","ForwardRef","Constant","Array","Object","URL","Date","Regex","QRL","VNode","RefVNode","BigInt","URLSearchParams","ForwardRefs","Error","Promise","Set","Map","Uint8Array","Task","Component","Signal","WrappedSignal","ComputedSignal","AsyncSignal","SerializerSignal","Store","FormData","JSXNode","PropsProxy","SubscriptionData","EffectSubscription"],wl=new WeakMap,bl=new Map,vl=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t._(e);case 2:if(!t.Ot)return Zi;const i=t.Ot[e];return-1===i||void 0===i?Zi:t._(i);case 3:return $l[e];case 4:return Array(e.length/2);case 5:return{};case 9:{let n;if("string"==typeof e){const[i,r,s]=e.split("#");n=tn(t._(i),t._(r),s||null,t)}else n=tn("",e+"",null,t);return n}case 20:return new wc(-1,-1,null,null,null,null);case 6:return new URL(e);case 7:return new Date(e);case 8:const r=e.lastIndexOf("/");return RegExp(e.slice(1,r),e.slice(r+1));case 15:return Error();case 21:return vu(null);case 22:return new Bi(t,0);case 23:return new Ar(t,null,null,null);case 24:return new $r(t,null);case 25:return new mr(t,null,void 0,{interval:0});case 26:return new br(t,null);case 27:{const n=e,i=n[0],r=n[1],s=vl(t,i,r),o=Mc(s,0,t);return lc(i)&&bl.set(s,{t:i,v:r}),n[0]=0,n[1]=s,o}case 13:return new URLSearchParams(e);case 28:return new FormData;case 29:return new Tr(null,null,null,null,0,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let s,o;const l=new Promise((t,n)=>{s=t,o=n});return wl.set(l,[s,o]),l.catch(()=>{}),l;case 19:const c=e.length,u=3&c;return new Uint8Array(3*(c>>>2)+(u?u-1:0));case 30:return p(null);case 10:return en(t,e);case 11:const f=en(t,e);if(zs(f))return go(f),Do(f);throw se(17,[typeof f]);case 31:return new Nr({});case 32:return new fr(null,null,null,null);default:throw se(18,[n])}},gl=/\(\s*(['"])([^\1]+)\1\s*\)/,Sl=/Promise\s*\.\s*resolve/,kl=/[\\/(]([\w\d.\-_]+\.(js|ts)x?):/,xl=(t,n,e,i=0)=>{let r=null,s=null;if(re(t)){if(s=t,Ln){let n;const e=t+"";if((n=e.match(gl))&&n[2])r=n[2];else{if(!(n=e.match(Sl)))throw se(6,[e]);{const t="QWIK-SELF",e=Error(t).stack.split("\n"),s=e.findIndex(n=>n.includes(t));n=e[s+2+i].match(kl),r=n?n[1]:"main"}}}}else{if(!ie(t))throw se(7,[t]);r=t}return cu(r,n,null,s,e)},ql=(t,n,e)=>cu(null,n,t,null,e),Rl=(t,n)=>cu(null,t,null,null,n),jl=(t,n,e)=>{const i=Rl(t,e);return i.vn.dev=n,i},Cl=(t,n,e,i)=>{const r=xl(t,n,i,1);return r.vn.dev=e,r},El=(t,n,e,i)=>{const r=ql(t,n,i);return r.vn.dev=e,r},Ol=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),_l=(t,n,e)=>new Ar(null,t,n,e||null);class Pl{gn;Sn=0;Ot=[];kn=0;xn=new Set;qn=new Map;Rn;jn=new Map;Pt;constructor(t){this.gn=t,this.Pt=t.Pt}async serialize(){await this.outputRoots()}outputArray(t,n,e){this.Pt.write("[");let i,r=!1;if(n)i=t.length;else{for(i=t.length-1;i>=0&&void 0===t[i];)i--;i++}for(let n=0;n<i;n++)r?this.Pt.write(Si):r=!0,e(t[n],n);this.Pt.write("]")}stringNeedsJsonEscape$(t){for(let n=0;n<t.length;n++){const e=t.charCodeAt(n);if(e<32||34===e||92===e)return!0}return!1}output(t,n,e){if("number"==typeof n)this.Pt.write(t+Si+n);else if("string"==typeof n){const e=this.stringNeedsJsonEscape$(n)?JSON.stringify(n):'"'+n+'"';this.Pt.write(t+Si);let i=-1,r=0;for(;-1!==(i=e.indexOf("</",r));)this.Pt.write(e.slice(r,i)),this.Pt.write("<\\/"),r=i+2;this.Pt.write(0===r?e:e.slice(r))}else this.Pt.write(t+Si),this.outputArray(n,!!e,(t,n)=>{this.writeValue(t,n)})}getSeenRefOrOutput(t,n,e){let i=this.gn.getSeenRef(t);const r=!e&&this.qn.get(t);if(!i){if(e)return!0;if("number"!=typeof r)return this.gn.Cn(t,this.Rn,n);i=this.gn.St(t,!0)}i.Rn&&(this.Rn?this.gn.En(i):(this.gn.En(i,n),t=this.gn.On[n])),"number"==typeof r&&(this.Ot[r]=i._n,this.qn.delete(t));const s=t instanceof zl?t.Pn:i._n;if(!this.Rn&&s===n)return i;this.output(1,s)}writeValue(t,n){if(Yc(t))this.output(3,0);else switch(typeof t){case"undefined":this.output(3,0);break;case"boolean":this.output(3,t?2:3);break;case"number":Number.isNaN(t)?this.output(3,12):Number.isFinite(t)?t===Number.MAX_SAFE_INTEGER?this.output(3,15):t===Number.MAX_SAFE_INTEGER-1?this.output(3,16):t===Number.MIN_SAFE_INTEGER?this.output(3,17):this.output(0,t):this.output(3,t<0?14:13);break;case"string":0===t.length?this.output(3,4):(t.length<4||this.getSeenRefOrOutput(t,n))&&this.output(0,t);break;case"bigint":(t<1e4&&t>-1e3||this.getSeenRefOrOutput(t,n))&&this.output(12,""+t);break;case"symbol":t===ur?this.output(3,7):t===dr?this.output(3,8):t===Zi&&this.output(3,9);break;case"function":if(t===ns)this.output(3,10);else if(t===Kr)this.output(3,11);else if(le(t)){if(this.getSeenRefOrOutput(t,n)){const[n,e,i]=Zt(this.gn,t,!0);let r;if(""!==n){r=`${this.gn.St(n)}#${this.gn.St(e)}${i?"#"+i:""}`;const s=this.jn.get(r);if(s){const t=this.gn.St(s);return void this.output(1,t)}this.jn.set(r,t)}else r=+e;this.output(9,r)}}else{if(!Su(t))throw se(34,[""+t]);{const[n]=t[gu];this.gn.An.add(n.wt),this.output(21,[n])}}break;case"object":if(t===tr)this.output(3,5);else if(t===nr)this.output(3,6);else if(null===t)this.output(3,1);else if(t instanceof zl)this.output(1,t.Pn);else{const e=this.getSeenRefOrOutput(t,n);if(e){const n=this.Rn;this.Rn=e,this.writeObjectValue(t),this.Rn=n}}break;default:throw se(20,[typeof t])}}writeObjectValue(t){if(cr(t)){const n=t[Gi];this.output(30,[Tl(n),n.varProps,n.constProps,t[Xi].p])}else if(t instanceof Nr)this.output(31,[t.data.st,t.data.mn]);else if(t instanceof fr)this.output(32,[t.consumer,t.property,t.data]);else if(Ic(t)){const n=Oc(t),e=_c(t),i=n.R,r=n.p,s=[];for(const t in e){const n=this.gn.h.get(e[t]);n&&s.push(n)}const o=[e,i,r,...s];for(;void 0===o[o.length-1];)o.pop();this.output(27,o)}else if(Rc(t)){const n=t[Kc](t);if(Ge(n)){const t=this.resolvePromise(n,(t,n)=>new Al(26,t,n,void 0,void 0));this.output(2,t)}else{const t=this.Rn._n;this.Rn=this.Rn.Rn,this.writeValue(n,t)}}else if((t=>{const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype})(t))if(Array.isArray(t))this.output(4,t);else{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e];Yc(i)||n.push(e,i)}this.output(5,n.length?n:0)}else if(this.gn.Nn(t))t.In.vnodeData[0]|=16,this.output(11,t.In.id);else if(t instanceof Bi){if(t instanceof br){const n=((t,n)=>n===ur?n:Ke(t.Vt.resolved||t.Vt.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&Kc in n&&(e=n[Kc](n)),void 0===e&&(e=ur),e}))(t,t.Ut);if(Ge(n)){const e=this.resolvePromise(n,(n,e)=>new Al(26,n,e,t.p,t.Vt));this.output(2,e)}else this.output(26,[t.Vt,t.p,n]);return}if(t instanceof Ar)this.output(23,[...sn(this.gn,t),t.R,t.$,...t.p||[]]);else if(t instanceof $r){let n=t.Ut;const e=16&t.R,i=8&t.R,r=1&t.R,s=Yc(t.Ut),o=t instanceof mr,l=o&&t.xt>0?t.xt:void 0,c=o&&1!==t.rn?t.rn:void 0,u=o&&0!==t.sn?t.sn:void 0,f=o&&-25&t.R||void 0;r||s?n=ur:e?n=t.Ut:i&&(n=ur);const a=[t.Vt,t.p];o&&(a.push(t.m,t.k,t.tn),a.push(f||void 0));let h=!1;n===ur&&void 0===l&&void 0===c&&void 0===u||(a.push(n),void 0===n&&(h=!0)),o&&(a.push(l),a.push(c),a.push(u)),this.output(o?25:24,a,h)}else{const n=t.Ut,e=void 0===n,i=[n];t.p&&i.push(...t.p),this.output(22,i,e)}}else if(t instanceof URL)this.output(6,t.href);else if(t instanceof Date)this.output(7,Number.isNaN(t.valueOf())?"":t.valueOf());else if(t instanceof RegExp)this.output(8,""+t);else if(t instanceof Error){const n=[t.message];n.push(...Object.entries(t).flat()),this.output(15,n)}else if(this.gn.Mn(t)){const n=this.gn.St(t);this.gn.Tn(t,"q:id",n+""),this.output(10,t.id);const e=t.vnodeData;if(e&&(Nl(e,t=>this.gn.St(t)),e[0]|=16),t.children){const n=t.children.length;for(let e=0;e<n;e++){const n=t.children[e].vnodeData;if(n){for(let t=0;t<n.length;t++){const e=n[t];if(Il(e)){const t=on(e);t&&this.gn.St(t)}}n[0]|=16}}}}else if("undefined"!=typeof FormData&&t instanceof FormData){const n=[];for(const[e,i]of t.entries())"string"==typeof i&&n.push(e,i);this.output(28,n)}else if(t instanceof URLSearchParams)this.output(13,""+t);else if(t instanceof Set)this.output(17,[...t.values()]);else if(t instanceof Map){const n=[];for(const[e,i]of t.entries())n.push(e,i);this.output(18,n)}else if(zr(t)){const n=[t.type,t.key,t.varProps,t.constProps,t.children,t.toSort||void 0];for(;void 0===n[n.length-1];)n.pop();this.output(29,n)}else if(t instanceof wc){const n=[t.Et,t.R,t._n,t.ut,t.At];for(;void 0===n[n.length-1];)n.pop();this.output(20,n)}else if(Ge(t)){const n=this.resolvePromise(t,(t,n)=>new Al(16,t,n));this.output(2,n)}else if(t instanceof Al)if(26===t.Fn)if(t.Et)this.output(26,[t.Et,t.p,t.zn]);else{if(!t.Ln)throw console.error(t.zn),se(33);{const n=this.Rn._n;this.Rn=this.Rn.Rn,this.writeValue(t.zn,n)}}else this.output(16,[t.Ln,t.zn]);else if(t instanceof Uint8Array){let n="";const e=t.length;for(let i=0;i<e;i++)n+=String.fromCharCode(t[i]);const i=btoa(n).replace(/=+$/,"");this.output(19,i)}else if(t instanceof Ml){const n=t.Dn;if(this.getSeenRefOrOutput(n,this.Rn._n,!0)){let t=this.qn.get(n);void 0===t&&(t=this.kn++,this.qn.set(n,t),this.Ot[t]=-1),this.output(2,t)}}else{if(!zs(t))throw se(20,[typeof t]);this.output(3,0)}}resolvePromise(t,n){const e=this.kn++;return t.then(i=>{this.xn.delete(t),this.Ot[e]=this.gn.St(n(!0,i))}).catch(i=>{this.xn.delete(t),this.Ot[e]=this.gn.St(n(!1,i))}),this.xn.add(t),e}async outputRoots(){this.Pt.write("[");const{On:t}=this.gn;for(;this.Sn<t.length||this.xn.size;){0!==this.Sn&&this.Pt.write(Si);let n=!1;for(;this.Sn<t.length;this.Sn++)n?this.Pt.write(Si):n=!0,this.writeValue(t[this.Sn],this.Sn);if(this.xn.size)try{await Promise.race(this.xn)}catch{}}if(this.Ot.length){let t=this.Ot.length-1;for(;t>=0&&-1===this.Ot[t];)t--;if(t>=0){this.Pt.write(Si),this.Pt.write(14+Si);const n=t===this.Ot.length-1?this.Ot:this.Ot.slice(0,t+1);this.outputArray(n,!0,t=>{this.Pt.write(t+"")})}}this.Pt.write("]")}}class Al{Fn;Ln;zn;p;Et;constructor(t,n,e,i,r){this.Fn=t,this.Ln=n,this.zn=e,this.p=i,this.Et=r}}const Nl=(t,n)=>{const e=t.length;for(let i=0;i<e;i++){const e=t[i];if(Il(e))for(const t in e){const i=e[t];null==i||"string"==typeof i||t===Te&&gi(i)||n(i)}}},Il=t=>"object"==typeof t&&null!==t&&!gi(t);class Ml{Dn;constructor(t){this.Dn=t}}const Tl=t=>new Ml(t);let Fl=()=>!1;class zl{Pn;constructor(t){this.Pn=t}}class Ll{NodeConstructor;DomRefConstructor;gt;Tn;h;Pt;Wn=new Map;Un=new Map;Qn=[];On=[];qt=new Set;Ct=new Set;jt=new Set;An=new Set;Vn;constructor(t,n,e,i,r,s){this.NodeConstructor=t,this.DomRefConstructor=n,this.gt=e,this.Tn=i,this.h=r,this.Pt=s,this.Vn=new Pl(this)}async _t(){return await this.Vn.serialize()}getSeenRef(t){return this.Wn.get(t)}Cn(t,n,e){const i={_n:e,Rn:n};return this.Wn.set(t,i),i}Jn(t){const n=[];for(;t.Rn;)n.unshift(t._n),t=t.Rn;return n.unshift(t._n),n.join(" ")}En(t,n){const e=this.Jn(t);void 0===n&&(n=this.On.length),this.On[n]=new zl(e),t.Rn=null,t._n=n}St(t,n=!1){let e,i=this.Wn.get(t);return i?(i.Rn&&this.En(i),e=i._n):(e=this.On.length,i={_n:e},this.Wn.set(t,i),this.On.push(t)),n?i:e}Mn(t){return!!this.NodeConstructor&&t instanceof this.NodeConstructor}Nn(t){return!!this.DomRefConstructor&&t instanceof this.DomRefConstructor}Bn(t){const n=this.Wn.get(t);return n&&(n.Rn?void 0:n._n)}vt(t,n,e){const i=null==t;i&&(t=e.serialized||""+e);let r=this.Un.get(t);if(void 0===r)if(r=this.Qn.length,this.Un.set(t,r),i)this.Qn.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;this.Qn.push(e+=")=>"+t)}return r}}const Dl=(t,n,e,i,r,s)=>{if(!s){const t=[];s={write:n=>t.push(n),toString:()=>t.join("")}}return Fl=n?t=>t instanceof n:()=>!1,new Ll(t,n,e,i,r,s)};class Wl{Hn;h;ht;_;Nt;Yn=0;Gn=null;Xn=null;l=null;u=null;o=0;constructor(t,n){this.Nt=t,this.ht=n,this.Hn=ki,this.h=new WeakMap,this._=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,i){return el(t,n,e,this,i)}serializationCtxFactory(t,n,e,i){return Dl(t,n,e,this.setHostProp.bind(this),this.h,i)}ft(){0===this.o&&(this.u?.(),this.l=null)}}class Ul{}const Ql=()=>eu,Vl=async t=>{const[n,e]=eu,i=await n(t);return i&&"object"==typeof i?e.r?Object.assign(e.r,i):e.r=qn(n.O,i,1):e.r=i,{r:e.r}},Jl=(t,n)=>{const{val:e,set:i,iCtx:r}=cl();if(e)return e;const s=cu(null,"_rsc",Vl,null,[t,{}],r.O),o=gr(s,{timeout:n?.timeout,container:r.O,concurrency:0});o.j();const l={__brand:"resource",signal:o,get value(){return o.promise().then(()=>o.error?Promise.reject(o.error):o.value.r)},get loading(){return o.loading}};return i(l),l},Bl=({value:t,onResolved:n,onPending:e,onRejected:i})=>{if(Ge(t))return t.then(n,i);const r=Hl(t),s=r?t.signal:t;if(e&&s.loading)return e();if(i&&s.error)return i(s.error);const o=r?s.value?.r:s.value;return Ge(o)?o.then(n,i):n(o)},Hl=t=>t&&"resource"===t.__brand,Yl=(t,n)=>{Kl("q-e:",t,n)},Gl=(t,n)=>{Kl("q-d:",t,n)},Xl=(t,n)=>{Kl("q-w:",t,n)},Kl=(t,n,e)=>{const{isAdded:i,addEvent:r}=Zl();if(!i&&e)if(Array.isArray(n))for(const i of n)r(t+ii(i),e);else r(t+ii(n),e)},Zl=()=>{const t=Xo(),n=t.$;let e=t.O.getHostProp(n,Ue);null===e&&(e={},t.O.setHostProp(n,Ue,e));let i=t.O.getHostProp(n,Qe);null===i&&(i=0),t.O.setHostProp(n,Qe,i+1);let r=t.O.getHostProp(n,Ve);for(null===r&&(r=[],t.O.setHostProp(n,Ve,r));r.length<=i;)r.push(!1);return{isAdded:r[i],addEvent:(t,n)=>{r[i]=!0;let s=e[t];s||(e[t]=s=[]),s.push(n)}}},tc=(t,n)=>{const e=Ko(t,n),i=e.O;let r=e.$;if(!i||!r)return;if(!i.getHostProp(r,ae)){const t=i.getParentHost(r);if(!t)return;r=t}const s=i.getHostProp(r,ae);if(s){const t=s.__proto__,n=t.vn,e=n.bt;if(e){const s=e.split("?")[0]+"?t="+Date.now();n.bt=s,n.Kn=void 0,t.resolved=void 0,Ft(i,r,4)}}};let nc,ec=Promise.resolve();const ic=new Set(["constructor","prototype","toString","valueOf","toJSON","then"]),rc=(t,n)=>"string"==typeof t&&"__proto__"!==t&&("function"!=typeof n||!ic.has(t)),sc=(t,n,e,i)=>{if(0!==e)switch(4!==e&&Array.isArray(i)&&(i=oc(t,i)),e){case 4:oc(t,i,n);break;case 5:if(0===i)break;for(let t=0;t<i.length;t+=2){const e=i[t],r=i[t+1];rc(e,r)&&(n[e]=r)}break;case 20:const r=n,s=i;r.Et=s[0],r.R=s[1],r._n=s[2],r.ut=s[3],r.At=s[4];break;case 21:n[gu][0]=i[0];break;case 27:{const e=Nc(n),r=bl.get(e);r&&(bl.delete(e),sc(t,e,r.t,r.v));const[,s,o]=i,l=Oc(n);l.R=s,l.p=o,bn(l.p,e);break}case 22:{const t=n,e=i;t.Ut=e[0],t.p=new Set(e.slice(1)),wn(t.p,t);break}case 23:{const e=n,r=i;e.lt=t.getSyncFn(r[0]),e.ct=r[1],e.Ut=ur,e.R=r[2],e.R|=1,e.$=r[3],e.p=new Set(r.slice(4)),(t=>{if(null!==t.$&&zs(t.$)){const n=t.$,e=t.p;let i=!1;if(e)for(const r of e){const e=r.property;if(ie(e)){const r=Js(n,e,null);if(null!==r){t.Ut=r,i=!0;break}}}if(!i){const e=vo(n);e&&n.firstChild===n.lastChild&&Us(e)&&(t.Ut=wo(e))}}})(e),wn(e.p,e);break}case 25:{const t=n,e=i;t.Vt=e[0],t.p=new Set(e[1]),t.m=new Set(e[2]),t.k=new Set(e[3]),t.tn=e[4],t.R=e[5]??0,64&t.R&&(t.Zt=!0),e.length>6&&(t.Ut=e[6]),t.Ut===ur&&(t.R|=1),t.interval=e[7]??0,t.rn=e[8]??1,t.sn=e[9]??0,wn(t.p,t),wn(t.m,t),wn(t.k,t);break}case 26:case 24:{const r=n,s=i;r.Vt=s[0];const o=r.Vt.resolve(t).catch(()=>{});ec=ec.finally(()=>o),s[1]&&(r.p=new Set(s[1])),s.length>2&&(r.Ut=s[2]),26!==e&&r.Ut!==ur&&(r.R&=-2),wn(r.p,r);break}case 15:{const t=i;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 28:{const t=n,e=i;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 29:{const t=n,[e,r,s,o,l,c]=i;t.type=e,t.key=r,t.varProps=s,t.constProps=o||null,t.children=l,t.toSort=!!c;break}case 17:{const t=n,e=i;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 18:{const t=n,e=i;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 16:{const t=n,[e,r]=i,[s,o]=wl.get(t);e?s(r):o(r);break}case 19:const o=n,l=atob(i);let c=0;for(const t of l)o[c++]=t.charCodeAt(0);break;case 30:const u=n,f=i;let a=f[0];a===Zi&&(a=new Tr(Kr,f[1],f[2],null,0,null),a._proxy=u),u[Gi]=a;const h=u[Xi];h.p=f[3],bn(h.p,u);break;case 31:{const t=n;t.data.st=i[0],t.data.mn=i[1];break}case 32:{const t=n,e=i;t.consumer=e[0],t.property=e[1],t.data=e[2],(t=>{const n=import.meta.env.TEST?Ei():In,e=t.consumer;n&&!e||(e[Ii]||=new Map,e[Ii].set(t.property,t))})(t);break}default:throw se(16,[e])}},oc=(t,n,e=Array(n.length/2))=>{for(let i=0;i<n.length;i+=2)e[i/2]=mn(t,n[i],n[i+1]);return e},lc=t=>t>=15||4===t||5===t,cc=new WeakMap,uc=Symbol(),fc=(t,n)=>{if(!Array.isArray(n)||zs(n)||ne(e=n)&&uc in e)return n;var e;let i=cc.get(n);if(!i){const e=Array(n.length/2).fill(void 0);i=new Proxy(e,new ac(t,n)),cc.set(n,i)}return i};class ac{O;Zn;te;constructor(t,n){this.O=t,this.Zn=n,this.te=this.Zn.length/2}get(t,n,e){if(n===uc)return t;const i="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(i)||i<0||i>=this.te)return Reflect.get(t,n,e);const r=2*i,s=this.Zn[r],o=this.Zn[r+1];if(0===s)return o;const l=this.O,c=vl(l,s,o);return Reflect.set(t,n,c),this.Zn[r]=0,this.Zn[r+1]=c,lc(s)&&sc(l,c,s,o),c}has(t,n){return n===uc||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,i){if(n===uc)return!1;const r=Reflect.set(t,n,e,i),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.Zn.length/2)return r;const o=2*s;return this.Zn[o]=0,this.Zn[o+1]=e,!0}}const hc=t=>33<=t&&t<=46,dc=(t,n,e)=>{let i=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===i&&hc(e))break;123===e?i++:125===e&&i--,n++}}return n},pc=t=>t instanceof $c;class $c extends Wl{element;qContainer;qManifestHash;rootVNode;document;h=new WeakMap;ne;Gn;Ot=null;vNodeLocate=t=>Zs(this.rootVNode,t);ee;ie;re=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(Ce),!this.qContainer)throw se(25);this.document=t.ownerDocument,this.element=t,this.Xn=t.getAttribute(ke),this.Gn=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=Ms(this.element),this.ee=[],this.ie=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,i="q:ignore",r="/"+i,s="q:container-island",o="/"+s,l=t.qVNodeData||(t.qVNodeData=new WeakMap),c=t.body,u=c.getAttribute,f=c.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(c,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach(t=>{const n=t.closest("[q\\:container]");n.qVnodeData=t.textContent,n.qVNodeRefs=new Map}),t.querySelectorAll("[q\\:shadowroot]").forEach(t=>{const n=t.shadowRoot;n&&h(n)})};h(t);const d=t=>{const l=a.call(t);if(1===l)return null===u.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===l){const l=t.nodeValue||"";if(l.startsWith(s))return 65;if(l.startsWith(i))return 16;if(l.startsWith(n))return 9;if(l.startsWith(o))return 64;if(l.startsWith(r))return 32;if(l.startsWith(e))return 8}return 0},p=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},$=(n,e,i,r,s,o)=>{const c=s.length;let u=0,f=-1,a=0,h=0,y=0,m=-1,w=null;const b=()=>{let t=0;for(;hc(y=s.charCodeAt(a))&&(t+=1<<y-33,a++,!(a>=c)););return t};do{if(i===r)return;w=null;const v=i==e?2:d(i);if(3===v){const t=i;let e=i;for(;e&&!(w=p(e));)e=e.parentNode;$(n,t,i,w,t.qVnodeData||"",t.qVNodeRefs)}else if(16===v){let t=i;do{if(t=n.nextNode(),!t)throw Error(`Island inside \x3c!--${i?.nodeValue}--\x3e not found!`)}while(65!==d(t));w=null}else if(64===v){let t;w=i;do{if(w=n.nextNode(),!w)throw Error("Ignore block not closed!");t=d(w)}while(32!==t&&65!==t);w=null}else if(9===v){w=i;do{if(w=p(w),!w)throw Error(`\x3c!--${i?.nodeValue}--\x3e not closed!`)}while(8!==d(w));$(n,i,i,w,"",null)}else if(6===v){w=p(i);const n=i,e=n?.shadowRoot;e&&$(t.createTreeWalker(e,129),null,e,null,"",null)}if(!(2&~v)){if(f<u&&(-1===f&&(f=0),a=h,a<c?(f+=b(),126===y&&(m=f,a++,y=a<c?s.charCodeAt(h):33),h=dc(s,a,c)):f=Number.MAX_SAFE_INTEGER),u===f){m===u&&o.set(u,i);const t=s.substring(a,h);l.set(i,t)}u++}}while(i=w||n.nextNode())},y=t.createTreeWalker(t,129);$(y,null,y.firstChild(),null,"",null)}(n),this.ne=Se(n,this.Gn)||tr,this.se(),t.setAttribute(Ce,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.ee=JSON.parse(e[e.length-1].textContent),En(this.ee,this),this.ie=fc(this,this.ee)),this.oe(),!Wn&&t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}oe(){const t=this.element.ownerDocument,n=t.head,e=t.body.querySelectorAll(we),i=e.length;if(i){const r=t.createDocumentFragment();for(let t=0;t<i;t++)r.appendChild(e[t]);n.appendChild(r)}}bn(t,n){this.ie[t]=n}parseQRL(t){return nn(t,this)}handleError(t,n){if(zn&&n){if("undefined"!=typeof document){const e=()=>{const e=n,i=e.parent,r=e.nextSibling,s=[],o=((t,n,e,i)=>{const r=n.createElement("errored-host");i&&i instanceof Error&&(r.props={error:i}),r.setAttribute("q:key","_error_");const s=Is(r,"errored-host");if(Ds(e))ao(t,s,e,null);else{const n=[];Dt(t,e,t=>{n.push(t)});for(let e=0;e<n.length;e++)ao(t,s,n[e],null)}return s})(s,document,e,t),l=Ls(e)&&i||e;so(s,l,o,l===e?null:r)};this.l?this.l.then(e):e()}if(t&&t instanceof Error&&("hostElement"in t||(t.hostElement=n+"")),!(t=>!(t&&t instanceof Error&&"plugin"in t))(t))throw t}const e=n&&this.resolveContext(n,pl);if(!e)throw t;e.error=t}setContext(t,n,e){let i=this.getHostProp(t,ve);null==i&&this.setHostProp(t,ve,i=[]),Xn(i,n.id,e,0,!0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,ve);if(null!=e&&Zn(e,n.id,0))return Kn(e,n.id,0);t=this.getParentHost(t)}}getParentHost(t){let n=t.parent;for(;n;)if(Qs(n)){if(null!==Js(n,ae,null))return n;n=n.parent||n.slotParent}else n=n.parent;return null}setHostProp(t,n,e){Bs(t,n,e)}getHostProp(t,n){const e=t;let i=null;switch(n){case Fe:case Te:case ae:case ve:case ge:i=this._;break;case ze:case Qe:i=parseInt}return Js(e,n,i)}ensureProjectionResolved(t){if(!(16&t.flags)){t.flags|=16;const n=t.props;if(n)for(const t of Object.keys(n))if(_(t)){const e=n[t];if("string"==typeof e){const i=this.vNodeLocate(e);n[t]=i}}}}_=t=>Pn(t,this.ie);getSyncFn(t){return this.ne[t]}le(t,n,e,i){if(i){const t=this.getHostProp(e,be),i=new Set((t=>t?.split(" ")??null)(t));i.add(n),this.setHostProp(e,be,(t=>Array.from(t).join(" "))(i))}if(null==this.re&&(this.re=new Set,this.element.querySelectorAll(me).forEach(t=>{this.re.add(t.getAttribute(ye))})),!this.re.has(n)){this.re.add(n);const e=this.document.createElement("style");e.setAttribute(ye,n),e.textContent=t,this.document.head.appendChild(e)}}se(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const i=n[e];i.name!==Je&&(t[i.name]=i.value)}this.Nt={containerAttributes:t}}}const yc=(t,n)=>{const{val:e,set:i,iCtx:r,i:s}=cl();if(e)return;i(1);const o=new wc(6|(!1===n?.deferUpdates?0:8),s,r.$,t,void 0,null);i(o);const l=r.O,{yt:c}=r,u=Ke(c,()=>mc(o,l,r.$));Ge(u)&&(r.yt=u)},mc=(t,n,e)=>{t.R&=-5,vs(t);const i=Kt(n.ht,e,"qTask");i.O=n;const r=t.Et.getFn(i,()=>y(n,t)),s=pr(t,n),[o]=((t,n)=>{let e=null;return[i=>{"function"==typeof i&&(e||(e=[],t.dn=()=>{t.dn=null;for(const t of e)try{t()}catch(t){n(t)}}),e.push(i))},e??[]]})(t,t=>n.handleError(t,e)),l={track:s,cleanup:o};return Xe(()=>r(l),o,i=>{if(Ge(i))return i.then(()=>mc(t,n,e));n.handleError(i,e)})};class wc extends Mi{R;_n;ut;Et;At;dn;constructor(t,n,e,i,r,s){super(),this.R=t,this._n=n,this.ut=e,this.Et=i,this.At=r,this.dn=s}}const bc=t=>t instanceof wc,vc=t=>{if(!t.resolved)throw t.resolve()},gc=t=>t instanceof Bi,Sc=(t,n)=>{t.add(n)},kc=(t,n)=>{(t.backRef||=new Set).add(n)},xc=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,i=t.property;let r=null;bc(e)?r=e.Et:e instanceof $r?r=e.Vt:":"===i&&(r=n.getHostProp(e,ae)),r&&n.serializationCtx.Ct.add(r)}},qc=(t,n,e)=>{const i=!import.meta.env.TEST||!Ei();if(e){const r=e=>{const r=e.consumer,s=e.property;if(bc(r))r.R|=4,Ft(t,r.ut,1);else if(r instanceof Bi)r.invalidate();else if(":"===s)Ft(t,r,4);else if("."===s)i&&(o=r,l=n,(o.props||={})[Vi]=l,Ft(t,r,2));else{const o=e.data;if(o instanceof Nr){const e=o.data,l={isConst:e.mn,scopedStyleIdPrefix:e.st,value:n};if(i)((t,n,e)=>{const i=t.props||={};let r=i[Qi];r||(r=new Map,i[Qi]=r),r.set(n,e)})(r,s,l);else{const t=r;let n=t.getProp(Qi);n||(n=new Map,t.setProp(Qi,n)),n.set(s,l)}Ft(t,r,8)}}var o,l},s=Array.from(e);for(const t of s)r(t)}},Rc=t=>ne(t)&&"function"==typeof t[Kc],jc=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Cc=[],Ec=t=>{if(zr(t)){if("function"==typeof t.type){const n=t.type[gu];if(n){const[t]=n;return"Component("+t.wt+")"}return"Function("+t.type.name+")"}let n="<"+t.type;if(t.props){for(const[e,i]of Object.entries(t.props))n+=" "+e+"="+xn(i);const e=t.children;null!=e?(n+=">",Array.isArray(e)?e.forEach(t=>{n+=Ec(t)}):n+=Ec(e),n+="</"+t.type+">"):n+="/>"}return n}return t+""},Oc=t=>t[hr],_c=t=>t?.[ar]||null,Pc=(t,n)=>{const e=Oc(t);e&&e.force(n)},Ac=(t,n)=>{const e=Oc(t);return!!e&&(e.p?.get(n)?.size??0)>0},Nc=t=>_c(t)||t,Ic=t=>ar in t,Mc=(t,n,e)=>{if(te(t)&&e){let i=e.h.get(t);return i||(i=qn(e,t,n),e.h.set(t,i)),i}return t};class Tc{R;O;p=void 0;constructor(t,n){this.R=t,this.O=n}toString(){return"[Store]"}force(t){const n=_c(this);qc(this.O,this,Cn(n,t,this.p))}get(t,n){if("symbol"==typeof n)return n===ar?t:n===hr?this:t[n];const e=Go(),i=t[n];if(e){if(null===this.O){if(!e.O)return i;this.O=e.O}const r=e.$t;r&&Rn(t,Array.isArray(t)?dr:n,this,r)}return"toString"===n&&i===Object.prototype.toString?this.toString:1&this.R&&ne(i)&&!Object.isFrozen(i)&&!Ic(i)&&!Object.isFrozen(t)?Mc(i,this.R,this.O):i}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const i=1&this.R?Nc(e):e;return n in t?i!==t[n]&&jn(n,i,t,this):jn(n,i,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Array.isArray(t)||qc(this.O,this,Cn(t,n,this.p)),!0)}has(t,n){if(n===ar)return!0;if("string"==typeof n){const e=Go();if(e){const i=e.$t;i&&Rn(t,Array.isArray(t)?dr:n,this,i)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=Go(),e=n?.$t;return e&&Rn(t,dr,this,e),Reflect.ownKeys(t)}getOwnPropertyDescriptor(t,n){const e=Reflect.getOwnPropertyDescriptor(t,n);return Array.isArray(t)||"symbol"==typeof n||e&&!e.configurable?e:{enumerable:!0,configurable:!0}}}const Fc=(t,n)=>t[n],zc=(t,n=new WeakSet)=>{if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return!0;if("object"==typeof t){if(n.has(t))return!0;n.add(t);const e=Object.getPrototypeOf(t);if(Ic(t)&&(t=_c(t)),e==Object.prototype){for(const e in t)if(!zc(Zo(Fc,t,e),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!zc(t[e],n))return!1;return!0}if(bc(t))return!0;if(cr(t))return!0;if(Ge(t))return!0;if(zr(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(t instanceof RegExp)return!0;if(t instanceof URLSearchParams)return!0;if(t instanceof FormData)return!0;if(t instanceof Set)return!0;if(t instanceof Map)return!0;if(t instanceof Uint8Array)return!0;if(t instanceof Nr)return!0;if(Fl?.(t))return!0}else if("function"==typeof t){if(le(t)||Su(t)||t===ns||t===Kr)return!0}else if(t===Zi||t===ur||t===dr)return!0;return!1},Lc=(t,n)=>{let e=zs(t)?Vt.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?t+"":(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(ne(e)){if(n.has(e))return`[Circular ${e.constructor.name}]`;n.add(e)}return e},2)})(t);return e.length>500&&(e=e.slice(0,500)+'"...'),e=e.replace(/\n/g,"\n"+n),e.includes("\n")?e=`\n${n}${e}`:e};let Dc=!1;const Wc=(t,n=!1,e="",i=20)=>{const r=n?"":"",s=n?"":"",o=""===e,l=[];for(let o=0;o<t.length;o++){if(i&&o>2*i){l.push("...");break}const c=t[o];let u=t[++o];if(0===c){"number"!=typeof u&&"string"!=typeof u&&(Dc=!0);const t=`{${ne(u)?u.constructor.name:typeof u}}`;l.push(`${r}${t}${s} ${Lc(u,e+" ")}`)}else 3===c?u=Qc(u):"string"==typeof u?(u=JSON.stringify(u),u.length>120&&(u=u.slice(0,120)+'"...')):14===c?u=`[\n${e} ${u.join(`\n${e} `)}\n${e}]`:Array.isArray(u)&&(u=u.length?`[\n${Wc(u,n,e+" ")}\n${e}]`:"[]"),l.push(`${r}${Uc(c)}${s} ${u}`)}const c=l.map((t,n)=>`${e}${o?n+" ":""}${t}`).join("\n");if(o){const n=Dc?"":`(${JSON.stringify(t).length} chars)`;return Dc=!1,`\n${c}\n${n}`}return c},Uc=t=>ml[t]||`Unknown(${t})`,Qc=t=>yl[t]||`Unknown(${t})`,Vc=(t,n)=>Zo(Jc,t,new WeakSet,"_",n),Jc=(t,n,e,i)=>{const r=Nc(t);if(null==r)return t;if(Hc(r)){if("object"==typeof r){if(n.has(r))return t;n.add(r)}if(gc(r))return t;if(zc(r))return t;const s=typeof r;if("object"===s){if(Ge(r))return t;if((t=>t&&"number"==typeof t.nodeType)(r))return t;if(ee(r)){let i=0;return r.forEach((t,s)=>{if(s!==i)throw se(3,[r]);Jc(t,n,e+"["+s+"]"),i=s+1}),t}if(r.__brand)return t;if(te(r)){for(const[t,i]of Object.entries(r))Jc(i,n,e+"."+t);return t}}let o;if(o=i||"Value cannot be serialized","_"!==e&&(o+=` in ${e},`),"object"===s)o+=` because it's an instance of "${t?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.dev/docs/advanced/dollar/`;else if("function"===s){const n=t.name;o+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${t+""});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw se(3,[o])}return t},Bc=/*#__PURE__*/new WeakSet,Hc=t=>!ne(t)&&!re(t)||!Bc.has(t)&&!(Xc in t),Yc=t=>!!t&&(ne(t)||"function"==typeof t)&&(Bc.has(t)||Xc in t),Gc=t=>((ne(t)&&null!==t||"function"==typeof t)&&Bc.add(t),t),Xc=Symbol(),Kc=Symbol();class Zc{bt;wt;ce;Kn;O;dev;constructor(t,n,e,i,r){this.bt=t,this.wt=n,this.ce=e,this.Kn=i,i&&this.ue(i),!r||i||"string"!=typeof t||e||(this.O=r),zn&&(this.dev=null),t&&Nn(t,.8)}get ot(){return(t=>{const n=t.lastIndexOf("_")+1;return t.slice(n)})(this.wt)}ue(t){this.Kn=t,Ge(t)&&t.then(t=>this.Kn=t,t=>{console.error(`qrl ${this.wt} failed to load`,t),this.Kn=null})}fe(){if(null!=this.Kn)return this.Kn;if(""===this.bt){const t=this.O.Gn,n=this.O.element?.ownerDocument||document,e=Se(n,t);return this.Kn=e[+this.wt]}this.bt&&Nn(this.bt,1);const t=this.wt,n=this.ce?this.ce().then(n=>n[t]):Ci().importSymbol(this.O?.element,this.bt,t);return this.ue(n),this.Kn}}const tu=t=>Object.prototype.hasOwnProperty.call(t,"resolved")?t:Object.getPrototypeOf(t);class nu extends Function{vn;resolved=void 0;Rt;O;constructor(t,n,e){if(super(),this.vn=t,n&&(this.Rt=n,"string"==typeof n&&(this.O=e),zn&&n&&"object"==typeof n))for(const t of n)Vc(t,"Captured variable in the closure can not be serialized");null==t.Kn||"string"==typeof this.Rt||Ge(t.Kn)||(this.resolved=ou(this,t.Kn))}w(t){return uu(new nu(this.vn,t,this.Rt?this.O:void 0))}s(t){const n=tu(this);n.vn.ue(t),n.resolved=ou(n,t)}get bt(){return this.vn.bt}get wt(){return this.vn.wt}get ot(){return this.vn.ot}get dev(){return this.vn.dev}ae(t,...n){if(this.resolved)return this.resolved.apply(t,n);const e=Go();return this.resolve(e?.O).then(()=>Gt.call(t,e,this.resolved,n))}async resolve(t){const n=tu(this);return Ke(lu(n,t),()=>n.resolved)}getSymbol(){return this.wt}getHash(){return this.ot}getCaptured(){const t=tu(this);return su(t),t.Rt}getFn(t,n){const e=tu(this),i=(...r)=>e.resolved?n&&!1===n()?void 0:Gt(t,e.resolved,r):e.resolve().then(t=>{if(zn&&!re(t))throw se(5);return i(...r)});return i}}let eu=null;const iu=t=>{eu=t},ru=(t,n)=>{const e=[];for(const i of n.split(" "))e.push(t._(i));return e},su=t=>{eu=t.Rt;const n=t.O;if("string"==typeof eu){if(!n)throw se(13);const e=ec;if(eu=t.Rt=ru(n,eu),ec!==e)return ec}},ou=(t,n)=>"function"==typeof n&&t.Rt?function(...e){return su(t),n.apply(this,e)}:n,lu=(t,n)=>{const e=t.vn,i="string"==typeof t.Rt;if(i&&!t.O&&(t.O=n||Go()?.O),t.resolved)return;const r=du(),s=Go(),o=e.fe(),l=Ke(o,n=>{t.resolved=ou(t,n)});l&&au(e.wt,s?.$ instanceof zi?s?.$.node:void 0,r);const c=i&&t.O&&su(t);return c?c.then(()=>l):l},cu=(t,n,e,i,r,s)=>uu(new nu(new Zc(t,n,i,e,s),r,s)),uu=t=>{const n=async function(...n){return t.ae(this,...n)};return Object.setPrototypeOf(n,t),n},fu=/*#__PURE__*/new Set,au=(t,n,e)=>{fu.has(t)||(fu.add(t),hu("qsymbol",{symbol:t,element:n,reqTime:e}))},hu=(t,n)=>{Wn||Ei()||"object"!=typeof document||document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},du=()=>Wn||Ei()?0:"object"==typeof performance?performance.now():0;let pu=0;const $u=t=>{if(!Un&&zn)throw Error("Optimizer should replace all usages of $() with some special syntax. If you need to create a QRL manually, use inlinedQrl() instead.");return cu(null,"s"+pu++,t,null,null)},yu=$u,mu=t=>t,wu=t=>{if(!Un&&zn)throw Error("Optimizer should replace all usages of sync$() with some special syntax. If you need to create a QRL manually, use inlinedSyncQrl() instead.");return zn&&(t=Function("return "+t)()),cu("",oe,t,null,null)},bu=(t,n)=>(void 0===n&&(n=""+t),t.serialized=n,cu("",oe,t,null,null)),vu=t=>{function n(n,e,i=0){const r=(Wn?"sX":t.ot.slice(0,4))+":"+(e||""),s=()=>{};return s[gu]=[t],Qr(s,n,null,n.children,i,r)}return n[gu]=[t],n},gu=Symbol(),Su=t=>"function"==typeof t&&void 0!==t[gu],ku=t=>vu(yu(t)),xu=wr(mu),qu=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!Oi(n);)n=n.nextSibling;t=n}if(zn&&t.hasAttribute(Ce))throw se(4,[t]);t.setAttribute(Ce,"resumed");const i=vn(t);i.Nt=e.serverData||{};const r=i.rootVNode;return Bs(r,Vi,n),Ft(i,r,2),await i.l,{cleanup:()=>{dt(i,[],i.rootVNode)}}},Ru=(t,n)=>{const{val:e,set:i,iCtx:r}=cl();if(null!=e)return e;const s=re(t)?Yt(void 0,t):t;if(!1===n?.reactive)return i(s),s;{const t=r.O,e=Mc(s,n?.deep??1?1:0,t);return i(e),e}},ju=()=>{const{val:t,set:n,iCtx:e}=cl();if(null!=t)return t;const i=e.O.Xn||"",r=i?si(i).substring(0,3):"",s=e.O.getHostProp(e.$,ae);let o=`${r}${s?.getHash().substring(0,3)||""}${(e.O.Yn++).toString(36)||""}`,l=o.charCodeAt(0);return l>=48&&l<=57&&(l+=17,o=String.fromCharCode(l)+o.substring(1)),n(o)},Cu=/*#__PURE__*/new Map,Eu=(t,n)=>{if(zn)return Ou(t,n);let e=Cu.get(n);return e||Cu.set(n,e=Ou(t,n)),e},Ou=(t,n)=>{function e(n){l.push(t.substring(f,n)),f=n}function i(t){a===Tu||s()||(e(t),l.push(".",de,n))}function r(n){let e=0;if(t.charCodeAt(u)===tf)for(let n=1;n<10;n++)if(t.charCodeAt(u+n)===tf){e=n+1;break}t:for(let i=3;i<n.length;i++){const r=n[i];for(let n=0;n<r.length;n++)if((t.charCodeAt(u+n+e)|af)!==r.charCodeAt(n))continue t;return u+=r.length+e,!0}return!1}function s(){return-1!==c.indexOf(Tu)||-1!==c.indexOf(zu)}const o=t.length,l=[],c=[];let u=0,f=u,a=Iu,h=0;for(;u<o;){const n=u;let o=t.charCodeAt(u++);o===uf&&(u++,o=of);const l=mf[a];for(let d=0;d<l.length;d++){const p=l[d],[$,y,m]=p;if(($===h||$===Qu||$===Vu&&_u(h)||$===Bu&&Nu(h))&&(y===o||y===Qu||y===Vu&&_u(o)||y===Ju&&!_u(o)&&o!==nf||y===Bu&&Nu(o))&&(3==p.length||r(p))){if(p.length>3&&(o=t.charCodeAt(u-1)),m===Wu||m==Uu){m===Uu&&(a!==Mu||s()?Pu(o)||i(u-(y==Ju?1:y==Zu?2:0)):(Pu(o)?e(u-2):i(u-2),f++)),y===Ju&&(u--,o=h);do{a=c.pop()||Iu,a===Tu&&(e(u-1),f++)}while(Au(a))}else c.push(a),a===Tu&&m===Iu?(e(u-8),f=u):m===Fu&&i(n),a=m;break}}h=o}return e(u),l.join("")},_u=t=>t>=ef&&t<=rf||t>=of&&t<=lf||t>=hf&&t<=df||t>=128||t===ff||t===tf,Pu=t=>t===sf||t===nf||t===cf||t===Ku||_u(t),Au=t=>t===Lu||t===zu||t===Du||t===Tu,Nu=t=>t===Xu||t===Hu||t===Yu||t===Gu,Iu=0,Mu=2,Tu=5,Fu=6,zu=10,Lu=11,Du=12,Wu=17,Uu=18,Qu=0,Vu=1,Ju=2,Bu=3,Hu=9,Yu=10,Gu=13,Xu=32,Ku=35,Zu=41,tf=45,nf=46,ef=48,rf=57,sf=58,of=65,lf=90,cf=91,uf=92,ff=95,af=32,hf=97,df=122,pf=123,$f=125,yf=/*@__PURE__*/(()=>[[Qu,39,14],[Qu,34,15],[Qu,47,16,"*"]])(),mf=/*@__PURE__*/(()=>[[[Qu,42,Mu],[Qu,cf,7],[Qu,sf,Fu,":","before","after","first-letter","first-line"],[Qu,sf,Tu,"global"],[Qu,sf,3,"has","host-context","not","where","is","matches","any"],[Qu,sf,4],[Qu,Vu,1],[Qu,nf,1],[Qu,Ku,1],[Qu,64,zu,"keyframe"],[Qu,64,Lu,"media","supports","container"],[Qu,64,Du],[Qu,pf,13],[47,42,16],[Qu,59,Wu],[Qu,$f,Wu],[Qu,Zu,Wu],...yf],[[Qu,Ju,Uu]],[[Qu,Ju,Uu]],[[Qu,40,Iu],[Qu,Ju,Uu]],[[Qu,40,8],[Qu,Ju,Uu]],[[Qu,40,Iu],[Qu,Ju,Wu]],[[Qu,Ju,Wu]],[[Qu,93,Uu],[Qu,39,14],[Qu,34,15]],[[Qu,Zu,Wu],...yf],[[Qu,$f,Wu],...yf],[[Qu,$f,Wu],[Bu,Vu,1],[Qu,sf,Tu,"global"],[Qu,pf,13],...yf],[[Qu,pf,Iu],[Qu,59,Wu],...yf],[[Qu,59,Wu],[Qu,pf,9],...yf],[[Qu,$f,Wu],[Qu,pf,13],[Qu,40,8],...yf],[[Qu,39,Wu]],[[Qu,34,Wu]],[[42,47,Wu]]])(),wf=t=>({styleId:Sf(t,t=>t,!1)}),bf=/*#__PURE__*/wr(wf),vf=t=>({scopeId:de+Sf(t,Eu,!0)}),gf=/*#__PURE__*/wr(vf),Sf=(t,n,e)=>{const{val:i,set:r,iCtx:s,i:o}=cl();if(i)return i;const l=(c=o,`${si(t.ot)}-${c}`);var c;const u=s.$;if(r(l),!t.resolved)throw t.resolve().then(t=>s.O.le(n(t,l),l,u,e));return s.O.le(n(t.resolved,l),l,u,e),l},kf=t=>{const n=re(t)&&!Su(t)?Yt(void 0,t):t;return kr(n)},xf=t=>qf(kf,t),qf=(t,...n)=>{const{val:e,set:i}=cl();return null!=e?e:i(t=re(t)&&!Su(t)?Zo(t,...n):t)},Rf=(t,n)=>(t.resolve(),vr(t,n)),jf=(t,n)=>qf(Rf,t,n),Cf=wr(jf),Ef=t=>(t.resolve(),Sr(t)),Of=t=>qf(Ef,t),_f=wr(Of),Pf=(t,n)=>{const{val:e,set:i,i:r,iCtx:s}=cl(),o=n?.strategy??"intersection-observer";if(e)return void(32&e.R||Ei()||(e.R|=32,Af(e,o)));let l;Ei()?l=1:(l=5,t.resolve(),Ft(s.O,s.$,1));const c=new wc(l,r,s.$,t,void 0,null);i(c),Af(c,o)},Af=(t,n)=>{"intersection-observer"===n?Yl("qvisible",Nf(t)):"document-ready"===n?Gl("qinit",Nf(t)):"document-idle"===n&&Gl("qidle",Nf(t))},Nf=t=>cu(null,"_task",kn,null,[t]),If=wr(Jl),Mf=/*#__PURE__*/wr(yc),Tf=/*#__PURE__*/wr(Pf),Ff=(t,n)=>(t.resolve(),gr(t,n)),zf=(t,n)=>qf(Ff,t,n),Lf=wr(zf),Df=()=>{const t=Ru({error:void 0});return fl(pl,t),t},Wf=t=>{import.meta;const n=import.meta.env.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};e.path=t?.path?.startsWith?.("/")?t.path:n+e.path;let i=Uf.replace('"_URL_"',JSON.stringify(e.path.split("/").pop()));return i=i.replaceAll(/\s\s+/gm,""),Ur("script",null,{dangerouslySetInnerHTML:"("+i+")(navigator.serviceWorker);",nonce:e.nonce},null,0,"prefetch-service-worker")},Uf=/*#__PURE__*/""+(t=>{"getRegistrations"in t&&t.getRegistrations().then(t=>{t.forEach(t=>{t.active&&t.active.scriptURL.endsWith("_URL_")&&t.unregister().catch(console.error)})}),"caches"in window&&caches.keys().then(t=>{const n=t.find(t=>t.startsWith("QwikBundles"));n&&caches.delete(n).catch(console.error)}).catch(console.error)}),Qf=()=>null;globalThis.__qwik&&se(30,[globalThis.__qwik,ki]),globalThis.__qwik=ki,import.meta.hot&&import.meta.hot.dispose(()=>{globalThis.__qwik=void 0});export{$u as $,Kr as Fragment,Xc as NoSerializeSymbol,Qf as PrefetchGraph,Wf as PrefetchServiceWorker,Zr as RenderOnce,Bl as Resource,rs as SSRComment,is as SSRRaw,os as SSRStream,ss as SSRStreamBlock,Kc as SerializerSymbol,es as SkipRender,ns as Slot,Hi as _CONST_PROPS,$c as _DomContainer,Ii as _EFFECT_BACK_REF,tr as _EMPTY_ARRAY,nr as _EMPTY_OBJ,Ki as _IMMUTABLE,Wl as _SharedContainer,Nr as _SubscriptionData,Zi as _UNINITIALIZED,Yi as _VAR_PROPS,dn as _addProjection,eu as _captures,S as _chk,cu as _createQRL,_n as _deserialize,Wc as _dumpState,Mt as _executeSsrChores,_l as _fnSignal,lr as _getConstProps,sl as _getContextContainer,rl as _getContextEvent,il as _getContextHostElement,vn as _getDomContainer,Sn as _getQContainerElement,or as _getVarProps,Ac as _hasStoreEffects,tc as _hmr,zr as _isJSXNode,Ic as _isStore,rn as _isStringifiable,bc as _isTask,ol as _jsxBranch,Vr as _jsxC,Br as _jsxQ,Jr as _jsxS,Ur as _jsxSorted,Qr as _jsxSplit,Gn as _mapApp_findIndx,Kn as _mapArray_get,Xn as _mapArray_set,Rl as _noopQrl,jl as _noopQrlDEV,En as _preprocessState,bu as _qrlSync,Zt as _qrlToString,Ol as _regSymbol,yn as _removeProjection,k as _res,dl as _resolveContextWithoutSequentialScope,fs as _restProps,Vl as _rsc,A as _run,On as _serialize,fn as _setEvent,pn as _setProjectionTarget,kn as _task,$n as _updateProjectionProps,hn as _useHmr,g as _val,Vc as _verifySerializable,Gs as _vnode_ensureElementInflated,Fo as _vnode_getAttrKeys,vo as _vnode_getFirstChild,Ws as _vnode_isMaterialized,Us as _vnode_isTextVNode,Qs as _vnode_isVirtualVNode,Vt as _vnode_toString,ll as _waitUntilRendered,cn as _walkJSX,Or as _wrapProp,Pr as _wrapSignal,ku as component$,vu as componentQrl,qr as createAsync$,gr as createAsyncQrl,xr as createComputed$,vr as createComputedQrl,ul as createContextId,x as createElement,Rr as createSerializer$,Sr as createSerializerQrl,kr as createSignal,xu as event$,mu as eventQrl,Pc as forceStoreEffects,vn as getDomContainer,Bt as getLocale,Ci as getPlatform,x as h,wr as implicit$FirstArg,ql as inlinedQrl,El as inlinedQrlDEV,Mn as isBrowser,Tn as isDev,In as isServer,gc as isSignal,Yr as jsx,Gr as jsxDEV,Xr as jsxs,Gc as noSerialize,xl as qrl,Cl as qrlDEV,qu as render,ji as setPlatform,wu as sync$,Zo as untrack,Nc as unwrapStore,Lf as useAsync$,zf as useAsyncQrl,Cf as useComputed$,jf as useComputedQrl,qf as useConstant,al as useContext,fl as useContextProvider,Df as useErrorBoundary,ju as useId,Ql as useLexicalScope,Yl as useOn,Gl as useOnDocument,Xl as useOnWindow,If as useResource$,Jl as useResourceQrl,_f as useSerializer$,Of as useSerializerQrl,An as useServerData,xf as useSignal,Ru as useStore,bf as useStyles$,wf as useStylesQrl,gf as useStylesScoped$,vf as useStylesScopedQrl,Mf as useTask$,yc as useTaskQrl,Tf as useVisibleTask$,Pf as useVisibleTaskQrl,ki as version,Ht as withLocale};
1
+ function t(t){let n="";for(let e=0;e<t.length;e++)"\\"===t.charAt(e)&&e+1<t.length?(n+=t.charAt(e+1),e++):n+=t.charAt(e);return n}function n(t,n=dr){let e,r=!1;try{e=t(),r=!0}catch(t){e=t}if(!fr(e))return r?e:n(e);let i=ur;const s=async e=>{for(;fr(e);)try{return await e,await t()}catch(t){if(!fr(t)){e=t;break}if(! --i){e=Error("Exceeded max retry count in retryOnPromise");break}e=t}return n(e)};return r?e.catch(s):s(e)}function e(t){if(t.endsWith("$")){const[n,e]=(t=>{let n,e=-1;return t.startsWith("on")?(n="q-e:",e=2):t.startsWith("window:on")?(n="q-w:",e=9):t.startsWith("document:on")&&(n="q-d:",e=11),[n,e]})(t);if(-1!==e){const r=t.slice(e,-1);return"DOMContentLoaded"===r?n+"-d-o-m-content-loaded":((t,n)=>n+mr(t))("-"===r.charAt(0)?r.slice(1):r.toLowerCase(),n)}}return null}function r(t,n,e){if((t=>"class"===t)(t)){const t=vr(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(ye(t))throw be(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];null!=r&&"function"!=typeof r&&(e.startsWith("--")?n.push(e+":"+r):n.push(gr(e)+":"+Sr(e,r)))}return n.join(";")}}return t+""})(n):(t=>t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t))(t)||"number"==typeof n?n=(t=>null!=t?t+"":null)(n):!1===n||null==n?n=null:!0===n&&(t=>t.startsWith("preventdefault:"))(t)&&(n="");return n}function i(t,n,e,r=!1){const s=t.ownerDocument.createElementNS(e,n);for(const n of t.attributes)n.name!==or&&s.setAttribute(n.name,n.value);if(r)for(const n of t.childNodes){const t=n.nodeType;3===t?s.appendChild(n.cloneNode()):1===t&&s.appendChild(i(n,n.localName,e,r))}return s}function s(t,n){const e=!t||!(!Io(t)||(r=t,1536&r.flags));var r;const i=!e&&Vr(Io(t));let s=Ve,o=0;const l="string"==typeof n||ro(n);return l&&(t=>"string"==typeof t?Jr(t):!!ro(t)&&(Jr(Io(t))||!!(512&t.flags)))(n)?(s=Je,o=512):l&&(t=>"string"==typeof t?Br(t):!!ro(t)&&(Br(Io(t))||!!(1024&t.flags)))(n)?(s=Be,o=1024):!t||i||e||(s=512&t.flags?Je:1024&t.flags?Be:Ve,o=1536&t.flags),Hr.elementNamespace=s,Hr.elementNamespaceFlag=o,Hr}function o(t,n){const e=h(n).priority;let r=ni.length;for(let t=0;t<ni.length;t++)if(e<h(ni[t]).priority){r=t;break}ni.splice(r,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function l(){for(let t=0;t<ni.length;t++){const n=ni[t];let e=!1;for(let t=0;t<ei.length;t++)if(rl(n,ei[t])){e=!0;break}if(!e)return n}return null}function c(t,n){ei.push(t),f(t,n,!0),n.o++}function u(t,n){const e=ei.indexOf(t);if(-1!==e){const t=ei.length-1;e!==t&&(ei[e]=ei[t]),ei.pop(),n.o--}o(n,t)}function f(t,n,e){e||(t.flags&=-257);const r=ni.indexOf(t);-1!==r&&(ni.splice(r,1),n.o--)}function a(t,n,e){n.position=e,e&&Xt(e)&&((t,n,e)=>{f(e,t);const r=h(e);if(r===n)return;const i=r.afterFlushTasks;if(i&&i.length>0){const t=n.afterFlushTasks;t?t.push(...i):n.afterFlushTasks=i}const s=r.extraPromises;if(s&&s.length>0){const t=n.extraPromises;t?t.push(...s):n.extraPromises=s}const o=r.journal;if(o&&o.length>0){const t=n.journal;t?t.push(...o):n.journal=o}})(t,n,e)}function h(t){return ri.get(t)??null}function d(t){return new Proxy({},new yi(t))}function $(t,n,e){t[Yr]||(t[Yr]=new Map);const r=t[Yr];let i=r.get(n);return i||(i=new qi(t,n),r.set(n,i)),e&&(i.data=e),i}function p(t,n){eo(n)&&ro(n)&&zo(n);const e=n[Yr];if(e){for(const[,n]of e)y(t,n);e.clear()}}function y(t,n){const e=n.backRef;if(e){for(const r of e)if(r instanceof Ai)w(r,n);else if(r instanceof li)m(t,r,n);else if(ki(r))b(r[ai],n);else if(t.h.has(r)){const e=t.h.get(r);b(Vc(e),n)}e.clear()}}function m(t,n,e){const r=n.$;r&&r.has(e)&&r.delete(e),n instanceof Hi&&!r?.size&&(n.p=void 0,p(t,n))}function w(t,n){const e=t.$;e&&e.has(n)&&e.delete(n);const r=t.m;r&&r.has(n)&&r.delete(n);const i=t.k;i&&i.has(n)&&i.delete(n),t.q()}function b(t,n){const e=t?.$;if(e)for(const[t,r]of e.entries())r.has(n)&&(r.delete(n),0===r.size&&e.delete(t))}function v(t,n){Xi(this,n),gu[0].value="number"===n.type?n.valueAsNumber:n.value}function g(t,n){Xi(this,n),gu[0].value=n.checked}function S(t,n){if(Xi(this,n),gu)for(const t of gu)t instanceof Ai&&64&t.R&&t.j()}function k(t,n,...e){const r={children:arguments.length>2?e.flat(100):null};let i=null;for(const t in n)"key"==t?i=n[t]:r[t]=n[t];return ss(t,n,null,r.children,0,i)}function x(t,n){const e=R(t);let r=t;const i="q-e:qvisible";return hr(e,t=>{const e=!t;let s=null;for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let l=t,c=o;if(e){if(o!==i&&!o.startsWith("q-d:")&&!o.startsWith("q-w:"))continue;if(!s){const[t,n]=E(r);r=n,s=t}l=s}l&&("script"===l.type&&o===i&&(c="q-d:qinit"),q(l,c,n[o]))}return r})}function q(t,n,e){const r=t.constProps||={},i=r[n];null==i?r[n]=e:Array.isArray(i)?i.push(...e):r[n]=[i,...e],t.varProps[n]&&(Array.isArray(i)?i.push(...r[n]):t.varProps[n]=[i,...e],r[n]=void 0)}function R(t){const n=[t];for(;n.length;){const t=n.shift();if(ts(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(ye(t))n.push(...t);else{if(fr(t))return hr(t,t=>R(t));if(Mc(t))return R(t.untrackedValue)}}return null}function E(t){if(ts(t)){const n=C();return t.type===ds||Du(t.type)?(null==t.children?t.children=n:ye(t.children)?t.children.push(n):t.children=[t.children,n],[n,t]):[n,is(ds,null,null,[t,n],0,null)]}if("object"!=typeof(n=t)&&"function"!=typeof n||null==n){const n=C();return[n,is(ds,null,null,[t,n],0,null)]}var n;if(ye(t)&&t.length>0){const[n,e]=E(t[0]);return[n,t]}return[null,t]}function C(){return new Ki("script",null,{hidden:""},null,0,null)}function j(t,n,e,r){if(null!=e){if(r){const r=(t=>{switch(t){case"xlink:href":case"xlink:actuate":case"xlink:arcrole":case"xlink:role":case"xlink:show":case"xlink:title":case"xlink:type":return"http://www.w3.org/1999/xlink";case"xml:base":case"xml:lang":case"xml:space":return"http://www.w3.org/XML/1998/namespace";default:return null}})(n);if(r)return void((t,n,e,r)=>{xs||(xs=t.setAttributeNS),xs.call(t,n,e,r)})(t,r,n,e)}i=t,ks||(ks=i.setAttribute),ks.call(i,n,e)}var i}function _(t){return!t.startsWith("q:")&&!t.startsWith(er)}function O(t,e,r,i){if(!r.isConnected)return;i||(i=yl(e,r));const s=i._,o=i.p;$o(s,o);let l=t;if(64&o.flags){let n;128&o.flags||(n=!0,o.flags|=128);const i=n?s.O:null,c=uo(o,tr,i);if(null!==c)l=()=>t(e,r,c);else{const n=uo(o,nr,i);null!==n&&(l=()=>t(e,r,...n))}}return n(()=>{if(!(32&o.flags))return hn(i,l,[e,r])},t=>s.handleError(t,o))}function A(t,n){if(!n.isConnected)return;const e=yl(t,n);return"string"==typeof this&&Su(ku(e._,this)),O(gu[0],t,n,e)}function P(t){return t.N===t.M?t.T:null}function N(t){return t.L||P(t)}function I(t,n){const e=(t=>t?t.nextSibling:null)(n);return e===P(t)?null:e}function M(t,n,e,r,i,s){import.meta.env.TEST&&i&&fo(n,cr,i),fo(n,e,s),tn(t,Is(n.node,e,r,i,!!(512&n.flags)))}function T(t,n,e,r){return{_:t,D:n,U:e,W:r,J:[],B:[],H:[],N:null,L:null,Y:null,T:null,M:null,X:null,G:null,K:null,Z:null,tt:null,nt:0,et:0,rt:!0,it:!1,st:{ot:new Yi({W:r,lt:!0}),ct:new Yi({W:r,lt:!1})}}}function F(t,n,e,r,i){const s=t??T(n,e,r,i);return((t,n,e,r,i)=>{t._=n,t.D=e,t.U=r,t.W=i,t.st.ot.data.W=i,t.st.ct.data.W=i,t.B.length=0,t.H.length=0})(s,n,e,r,i),s}function z(t,n,e,r=Fo(e),i=null,s=!1){L(t,n,e,r,i,s);const o=X(t);if(fr(o))return o.finally(()=>{G(t)});G(t)}function L(t,n,e,r=Fo(e),i=null,s=!1){const o=t.it;t.it=s||o,t.N=e,t.Y=null,t.L=r,t.T=i,t.M=e,V(t,n,!0);try{if(32&t.N.flags)return;for(;t.J.length;){for(;t.nt<t.et;){if("string"==typeof t.tt)yt(t,t.tt);else if("number"==typeof t.tt)yt(t,t.tt+"");else if(t.tt&&"object"==typeof t.tt)if(ts(t.tt)){const n=t.tt.type;"string"==typeof n?(tt(t),ct(t,t.tt,n),t.tt.constProps&&Ts.call(t.tt.constProps,lr)||Ts.call(t.tt.varProps,lr)?t.Y||K(t,!1):W(t,t.tt.children,!0)):"function"==typeof n&&(n===ds?(tt(t),ht(t,"F",t.tt.key),W(t,t.tt.children,!0)):n===ys?(tt(t),H(t)||W(t,t.tt.children,!0)):n===bt?(B(t),W(t,t.tt.children,!0,!1)):n===bs||n===ws?Z(t):(tt(t),dt(t,n)))}else if(Array.isArray(t.tt))W(t,t.tt,!1);else if(Mc(t.tt)){ht(t,"S",null);const n=t.tt instanceof Hi?t.tt.ut():t.tt,e=t.L?.[Yr]?.get(".")?.backRef;let r=e?.has(n);if(e&&n instanceof Hi&&(r=Rt(e,n)),!r){const e=t.Y||t.L;W(t,D(t,()=>vl(n,e,".",t._)),!0)}}else fr(t.tt)&&(ht(t,"A",null),t.B.push(t.tt,t.Y||t.L));else t.tt===ms||yt(t,"");U(t)}Z(t),Y(t),Q(t)}}finally{t.it=o}}function D(t,e){try{return e()}catch(r){if(fr(r)){const i=r.then(()=>n(e));return t.B.push(i,t.Y||t.L),null}throw r}}function U(t){if(t.rt){if(t.nt++,t.nt<t.et)t.tt=t.Z[t.nt];else if(t.J.length>0&&!1===t.J[t.J.length-1])return Q(t);null!==t.Y?t.Y=null:t.L=I(t,t.L)}else t.rt=!0}function W(t,n,e,r=!0){if(r&&(null==n||e&&ye(n)&&0===n.length))K(t);else{if(V(t,n,e),e){const n=t.it||!!t.Y||!Fo(t.L);t.it=n,t.K=null,t.X=null,t.G=null,t.N=t.Y||t.L,t.L=Fo(t.N),t.Y=null}t.rt=!1}}function Q(t){t.J.pop()&&(t.it=t.J.pop(),t.K=t.J.pop(),t.X=t.J.pop(),t.G=t.J.pop(),t.Y=t.J.pop(),t.L=t.J.pop(),t.N=t.J.pop()),t.tt=t.J.pop(),t.et=t.J.pop(),t.nt=t.J.pop(),t.Z=t.J.pop(),U(t)}function V(t,n,e){t.J.push(t.Z,t.nt,t.et,t.tt),e&&t.J.push(t.N,t.L,t.Y,t.G,t.X,t.K,t.it),t.J.push(e),Array.isArray(n)?(t.nt=0,t.et=n.length,t.Z=n,t.tt=t.et>0?n[0]:null):void 0===n?(t.nt=0,t.tt=null,t.Z=null,t.et=0):(t.nt=0,t.tt=n,t.Z=null,t.et=1)}function J(t){return t.Y?N(t):I(t,t.L)||P(t)}function B(t){const n=t.tt.key;t.L=uo(t.N,n,n=>wo(t._.rootVNode,n)),t.L=t.L&&32&t.L.flags?null:t.L,null==t.L&&(t.Y=no(),fo(t.Y,Ce,n),t.Y.slotParent=t.N,fo(t.N,n,t.Y))}function H(t){const n=al(t.N),e=((t,n)=>{const e=t.tt,r=e.constProps;if(r&&"object"==typeof r&&Ts.call(r,"name")){const e=r.name;if(n&&e instanceof Hi)return vl(e,n,":",t._)}return bi(e,"name")||""})(t,n),r=n?uo(n,e,null):null;if(null==r)return t.Y=no(),fo(t.Y,Ce,e),n&&fo(n,e,t.Y),_o(t.D,t.N,t.Y,J(t)),!1;if(r===t.L);else{const i=r.parent;t.Y=r,fo(t.Y,Ce,e),n&&fo(n,e,t.Y),jo(t.D,t.Y),_o(t.D,t.N,t.Y,J(t)),i&&ro(i)&&!i.firstChild&&Io(i)===Qe&&Po(t.D,i.parent,i,!0)}return!0}function Y(t){if(t.K){for(const n of t.K.values())32&n.flags||(St(t._,t.D,n,t.U),Po(t.D,t.N,n,!0));t.K.clear(),t.K=null}t.L=null}function X(t){for(;t.B.length;){const n=t.B.shift(),e=t.B.shift();if(fr(n))return n.then(n=>(L(t,n,e),X(t))).catch(n=>(t._.handleError(n,e),X(t)));L(t,n,e)}if(t.H.length){const n=t.H.splice(0);return Promise.all(n).then(()=>X(t))}}function G(t){t.D=null,t.U=null}function K(t,n=!0){const e=t.L&&Fo(t.L);if(null!==e){let r=e;for(;r;)St(t._,t.D,r,t.U),r=r.nextSibling;No(t.D,t.L,e,n)}}function Z(t){const n=P(t);if(null!==t.L&&t.L!==n)for(;t.L&&t.L!==n;){const n=t.L;t.L=I(t,t.L),t.N===n.parent&&(St(t._,t.D,n,t.U),Po(t.D,t.N,n,!0))}}function tt(t){if(null!==t.L&&oo(t.L)){const n=t.L;t.L=I(t,t.L),Po(t.D,t.N,n,!0)}}function nt(t,n,e){if(Mc(t))return t.value=n,!0;if("function"==typeof t)return t(n),!0;if(null==t)return!0;throw be(15,[e])}function et(t,e,r,i,s){return n(()=>vl(i,e,r,t,s))}function rt(t,n,e,i,s){const o=t.W,l=i.then(t=>j(n,e,r(e,t,o),s));t.H.push(l)}function it(t,n){n&&(t.innerHTML=n+"",t.setAttribute(Ue,"html"))}function st(t,n){return n&&"string"!=typeof n||(t.value=(t=>{let n="";const e=t.length;let r=0,i=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(i,r)+"&lt;";else if(62===e)n+=t.substring(i,r)+"&gt;";else if(38===e)n+=t.substring(i,r)+"&amp;";else if(34===e)n+=t.substring(i,r)+"&quot;";else{if(39!==e)continue;n+=t.substring(i,r)+"&#39;"}i=r+1}return 0===i?t:n+t.substring(i)})(n||"")),!0}function ot(t,n,e,i){const o=((t,n)=>{const e=s(Ao(t.N,!0),n),r=import.meta.env.TEST?t._.document:document,i=0===e.elementNamespaceFlag?r.createElement(n):r.createElementNS(e.elementNamespace,n);return t.Y=Ks(i,n),t.Y.flags|=e.elementNamespaceFlag,i})(t,e),l=t.Y,c=!!(512&l.flags),{constProps:u}=n;if(u)for(const n in u){let s=u[n];yr(n)?lt(n,s,o,l,t):"ref"===n&&nt(s,o,i)||(Mc(s)&&(s=et(t._,t.Y,n,s,t.st.ot)),fr(s)?rt(t,o,n,s,c):n!==lr?"textarea"===e&&"value"===n&&st(o,s)||j(o,n,r(n,s,t.W),c):it(o,s))}const f=n.key;f&&(t.Y.key=f),t.W&&(Ts.call(n.varProps,"class")||n.constProps&&Ts.call(n.constProps,"class")||o.setAttribute("class",t.W)),xo(t.D,t.N,t.Y,N(t))}function lt(t,n,e,r,i){const s=t.slice(2);if(Array.isArray(n)){const t=n,r=[];for(let n=0;n<t.length;n++){const e=t[n];if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];n&&r.push(O.bind(null,n))}else e&&r.push(O.bind(null,e))}r.length>0&&((e._qDispatch||={})[s]=1===r.length?r[0]:r)}else n&&((e._qDispatch||={})[s]=O.bind(null,n));"e"!==t.charAt(2)&&ao(i.D,r,t,""),((t,n)=>{const e=import.meta.env.TEST?t._.document.defaultView:window;e&&(e._qwikEv||=[]).push(n)})(i,s)}function ct(t,n,e){if(t.it)ot(t,n,e,null);else{const r=t.L&&ro(t.L),i=r&&e===Io(t.L),s=n.key;i&&s===(r&&t.L.key)?ft(t,e,s):at(t,e,s,ut(e,s),t.N)&&ot(t,n,e,null)}const r=n.varProps;r&&((t,n,e,r)=>{t.it||$o(t._,n);const i=n.props;for(const s in e){const o=e[s];if(i&&Ts.call(i,s)){const e=i[s];if(o!==e){if(o instanceof Hi&&e instanceof Hi&&qt(o,e))continue;Ls(t,n,s,o,r)}}else null!=o&&Ls(t,n,s,o,r)}if(i)for(const s in i)Ts.call(e,s)||":"===s.charAt(0)||yr(s)||Ls(t,n,s,null,r)})(t,t.Y||t.L,r,null)}function ut(t,n){return null==n?null:t?t+":"+n:n}function ft(t,n,e){const r=ut(n,e);return!(!r||!t.K?.has(r)||(t.K.delete(r),0))}function at(t,n,e,r,i,s){if(t.Y=((t,n,e)=>{let r=null;if(null===t.X){const i=t.L;if(i){const r=ro(i)?Io(i):null;if((mt(i)||wt(i,t._.O))===e&&r===n)return i}t.X=new Map,t.G=[];const s=P(t);let o=t.L;for(;o&&o!==s;){const i=ro(o)?Io(o):null,s=mt(o)||wt(o,t._.O);null===r&&s==e&&i==n?r=o:null===s?t.G.push(i,o):t.X.set(ut(i,s),o),o=o.nextSibling}}else if(null===e){for(let e=0;e<t.G.length;e+=2)if(t.G[e]===n){r=t.G[e+1],t.G.splice(e,2);break}}else{const i=ut(n,e),s=t.X.get(i);s&&(r=s,t.X.delete(i))}return((t,n)=>{if(!n){if(t.L){const n=ro(t.L)?Io(t.L):null,e=mt(t.L)||wt(t.L,t._.O);if(null!=e){const r=ut(n,e);t.K||=new Map,t.K.set(r,t.L),t.X?.delete(r)}}return}const e=P(t);let r=t.L;for(;r&&r!==n&&r!==e;){const n=ro(r)?Io(r):null,e=mt(r)||wt(r,t._.O);if(null!=e){const i=ut(n,e);t.K||=new Map,t.K.set(i,r),t.X?.delete(i)}r=r.nextSibling}})(t,r),r})(t,n,e),t.Y)return r||_o(t.D,i,t.Y,N(t)),t.L=t.Y,t.Y=null,!1;if(null!=r){const n=t.K?.get(r)||null;if(n){if(t.K.delete(r),s&&t.L){const n=mt(t.L)||wt(t.L,t._.O);if(null!=n){const e=ut(ro(t.L)?Io(t.L):null,n);null!=e&&(t.K||=new Map,t.K.set(e,t.L))}}return n!==t.L&&_o(t.D,i,n,N(t)),t.L=n,t.Y=null,!1}}return!0}function ht(t,n,e){const r="F"===n,i=mt(t.L);if(!t.L||!lo(t.L)||i!==e||r&&!e)return null===e||t.it?(qo(t.D,t.N,t.Y=no(),J(t)),void(t.Y.key=e)):void(at(t,null,e,ut(null,e),t.N,!0)&&(qo(t.D,t.N,t.Y=no(),J(t)),t.Y.key=e));ft(t,null,i)}function dt(t,n){const e=n[Lu];let r=t.Y||t.L;const i=t.tt;if(e){const n=i.props;let s=!1;const[o]=e,l=o.ft,c=wt(r,t._.O),u=i.key||l;if(u===(mt(r)||c)?l===c?ft(t,null,u):($t(t,r,o,n),r=t.Y,s=!0):(at(t,null,u,u,t.N)&&($t(t,r,o,n),s=!0),r=t.Y||t.L),r){const e=uo(r,Ge,t._.O);if(!s){const l=((t,n,e,r)=>{let i=!1;if(e){const t=vt(n[ci],e[ci],e[ai],r,!1);i||=t;const s=vt(n[ui],e[ui],e[ai],r,!0);i||=s,e[fi]=n[fi]}else n&&(fo(t,Ge,n),e=n);return i})(r,n,e,t._);l&&null==i.key&&($t(t,r,o,n),r=t.Y,s=!0),s||=l}s&&(fo(r,qe,o),r.flags&=-33,Zt(t._,r,4,t.U))}((t,n,e)=>{const r=Array.isArray(n)?n:[n],i=t=>new Ki(bt,null,null,[],0,t),s=[];if(e){const t=e.props;if(t)for(const n in t)_(n)&&ae(s,n,i(n),0)}if(0!==s.length||null!=n){for(let t=0;t<r.length;t++){const n=r[t],e=(ts(n)&&bi(n,Ce)||"")+"",o=fe(s,e,0);let l;o>=0?l=s[o+1]:s.splice(~o,0,e,l=i(e)),!1===n||l.children.push(n)}for(let t=s.length-2;t>=0;t-=2)s.splice(t,1);W(t,s,!0)}})(t,i.children,r)}else{const e=i.key,s=e===mt(r),o=wt(r,t._.O);if(r&&null!=o||!r?(pt(t),r=t.Y):s?ft(t,null,e):(at(t,null,e,e,t.N)&&pt(t),r=t.Y||t.L),r){let e=r;for(;e&&(!lo(e)||null===uo(e,qe,null));)e=e.parent||al(e);const s=ps(t._,r,e||t._.rootVNode,n,i.props);t.B.push(s,r)}}}function $t(t,n,e,r){n&&p(t._,n),qo(t.D,t.N,t.Y=no(),J(t));const i=t.tt;fo(t.Y,qe,e),fo(t.Y,Ge,r),t.Y.key=i.key}function pt(t){qo(t.D,t.N,t.Y=no(),J(t));const n=t.tt;fo(t.Y,Ge,n.props),n.key&&(t.Y.key=n.key)}function yt(t,n){if(null!==t.L&&3===ul(t.L))return n!==Mo(t.L)?void To(t.D,t.L,n):void 0;xo(t.D,t.N,t.Y=to((import.meta.env.TEST?t._.document:document).createTextNode(n),n),N(t))}function mt(t){return null==t||oo(t)?null:t.key}function wt(t,n){if(null==t||oo(t))return null;const e=uo(t,qe,n);return e?e.ft:null}function bt(){}function vt(t,n,e,r,i=!0){if(gt(t)&&gt(n))return!1;e._=r;let s=!1;if(t)for(const r in t)if("children"!==r&&r!==Ie&&(!n||t[r]!==n[r])){if(!i)return!0;n&&(n[r]=t[r]),wi(e,r)||(s=!0)}if(n)for(const r in n)"children"===r||r===Ie||t&&Ts.call(t,r)||!i||(delete n[r],wi(e,r)||(s=!0));return s}function gt(t){return!t||Ir(t)}function St(t,n,e,r=null){let i=e;if(oo(e))return void xt(i);let s=null;for(;;){const o=i.flags;if(3&o){if(p(t,i),xt(i),2&o&&null!==uo(i,qe,null)){const e=t.getHostProp(i,Ke);if(e)for(let n=0;n<e.length;n++){const s=e[n];if(pe(s)){const n=Nc(s);if(n&&1&s.R){s.R|=16,Zt(t,i,64,r);continue}(s instanceof li||Xc(s))&&p(t,s),(n||s instanceof Ai)&&Ms(s)}}const s=i.props;if(s)for(const e of Object.keys(s))if(_(e)){const i=s[e];if(i){s[e]=null;const o="string"==typeof i?wo(t.rootVNode,i):i;let l=Fo(o);for(;l;)St(t,n,l,r),l=l.nextSibling;kt(n,o)}}}if(co(i)){if(i===e){const t=Fo(i);if(t)return void rn(t,()=>{})}}else{const t=Fo(i);if(t){i=t;continue}}}else 4&o&&xt(i);if(i===e)return;const l=i.nextSibling;if(l)i=l;else{for(s=i.parent;s;){if(s===e)return;const t=s.nextSibling;if(t){i=t;break}s=s.parent}if(null==s)return}}}function kt(t,n){const e=n.parent;e&&1&e.flags&&Io(e)===Qe&&Po(t,e,n,!0)}function xt(t){t.flags|=32}function qt(t,n){return t===n||n.ht===t.ht&&((t,n)=>{if(t===n)return!0;if(!t||!n||t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0})(n.dt,t.dt)}function Rt(t,n){if(!(n instanceof Hi))return!1;for(const e of t)if(e instanceof Hi&&qt(e,n))return!0;return!1}function Et(t,n,e,r){const i=r(t,n);return i.key=e,i}function Ct(t,n,e,r,i,s){const o=Array(s-i+1);for(let l=i;l<=s;l++){const s=n[l]??(n[l]=e(t[l],l));o[l-i]=Et(t[l],l,s,r)}return o}function jt(t,n,e){let r=n?n.previousSibling:t.lastChild;for(let t=1;t<e&&r;t++)r=r.previousSibling;return r}function _t(t,n,e,r,i,s,o){const l=t,c=i.length,u=Fo(e),f=T(l,n,r,null),a=Array(c);if(null===u)return c>0?zs(l,n,Ct(i,a,s,o,0,c-1),e,null,null,r,null,!0,f):void 0;if(0===c)return void No(n,e,u,!0);let h=0,d=c-1,$=u;for(;$&&h<=d&&$.key===(a[h]??=s(i[h],h));)$=$.nextSibling,h++;if(null===$){if(h>d)return;return zs(l,n,Ct(i,a,s,o,h,d),e,null,null,r,null,!0,f)}if(h>d)return void No(n,e,$,!0);const p=$.previousSibling;let y=e.lastChild;for(;y!==p&&d>=h&&y.key===(a[d]??=s(i[d],d));)y=y.previousSibling,d--;const m=y?y.nextSibling:$;if(h>d){let t=$;for(;t&&t!==m;){const r=t.nextSibling;Po(n,e,t,!0),t=r}return}if(y===p){const t=m;return zs(l,n,Ct(i,a,s,o,h,d),e,t,t,r,null,!0,f)}for(let t=h;t<=d;t++)a[t]??=s(i[t],t);const w=d-h+1,b=new Map;for(let t=h;t<=d;t++)b.set(a[t],t-h);const v=((t,n=null)=>{const e=[];let r=t;for(;r&&(e.push(r),r!==n);)r=r.nextSibling;return e})($,y),g=[],S=new Map;for(let t=0;t<v.length;t++){const r=v[t],i=r.key;b.has(i)?(S.set(i,g.length),g.push(r)):Po(n,e,r,!0)}const k=new Int32Array(w);k.fill(-1);const x=[],q=[];for(let t=0;t<w;t++){const n=S.get(a[h+t]);void 0!==n&&(k[t]=n,q.push(t),x.push(n))}const R=new Uint8Array(w),E=(t=>{const n=t.length;if(0===n)return[];const e=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){const n=t[i];let s=0,o=e.length;for(;s<o;){const r=s+o>>1;t[e[r]]<n?s=r+1:o=r}s>0&&(r[i]=e[s-1]),s===e.length?e.push(i):e[s]=i}const i=[];let s=e[e.length-1];for(;-1!==s;)i.push(s),s=r[s];return i.reverse(),i})(x);for(let t=0;t<E.length;t++)R[q[E[t]]]=1;let C=d,j=m;const _=()=>{for(;C>=h;){const t=C-h;if(1===R[t]){j=g[k[t]],C--;continue}const s=k[t];if(-1!==s){const t=g[s];(null===j?e.lastChild===t:t.nextSibling===j)||_o(n,e,t,j),j=t,C--;continue}let c=C;for(;c>h;){const t=c-1-h;if(1===R[t]||-1!==k[t])break;c--}const u=C-c+1,d=zs(l,n,Ct(i,a,null,o,c,C),e,j,j,r,null,!0,f);return hr(d,()=>{const t=jt(e,j,u);return j=t,C=c-1,_()})}};return _()}function Ot(t,n,e){t.dirty&=-2;const r=n.getHostProp(t,Ke);if(!r||0===r.length)return;let i;for(const s of r)if(s instanceof Pc){const r=s;if(!(4&r.R))continue;if(1&r.R)(e.afterFlushTasks||=[]).push(r);else{const s=!!(8&r.R),o=Ac(r,n,t);fr(o)&&(s?i=i?i.then(()=>o):o:(e.extraPromises||=[]).push(o))}}return i}function At(t,n){(t.props||={})[si]=n}function Pt(t,n,e,r){t.dirty&=-3;const i=t;let s=(t=>{const n=t.props;return n?.[si]})(t);if(s)return At(t,null),Mc(s)&&(s=s.value),Fs(n,e,s,i,r,null)}function Nt(t,e,r,i){t.dirty&=-5;const s=t,o=e.getHostProp(s,qe);if(!o)return;const l=e.getHostProp(s,Ge)||null,c=ar(()=>ps(e,s,s,o,l),t=>{const o=e.getHostProp(s,Pe);return n(()=>Fs(e,r,t,s,i,pr(o)))},t=>{e.handleError(t,s)});return fr(c)?c:void 0}function It(t,n,e,r,i,s=null){n.push(Is(t.node,e,r,s,!!(512&t.flags))),i||(t.props&&null==r?delete t.props[e]:(t.props||={})[e]=r)}function Mt(t,n){if(t.dirty&=-9,!(1&t.flags))return;const e=(t=>(t.props||={})[ii]??null)(t);if(!e||0===e.size)return;const r=t;for(const[t,i]of e.entries()){let e=i.value;Mc(e)&&(e=e.value),It(r,n,t,e,i.isConst,i.scopedStyleIdPrefix)}(t=>{delete(t.props||={})[ii]})(t)}function Tt(t,n){t.dirty&=-65;const e=n.getHostProp(t,Ke);if(e&&0!==e.length)for(const t of e)t instanceof Pc&&16&t.R&&(t.R&=-17,Ms(t))}function Ft(t,e){t.dirty&=-17;const r=e.getHostProp(t,oi);if(!r)return;const i=r.$,s=$n();return s._=e,hr(n(()=>an.call(r,s,r.j)),()=>{if(2&r.R)return r.R&=-3,Lc(e,r,i)})}function zt(t,n,e,r){t.dirty&=-129;const i=t,s=n.getHostProp(i,Ge)||null;if(!s)return;let o=vi(s,"items");Mc(o)&&(o=ml(o));const l=vi(s,"key$"),c=vi(s,"item$"),u=l.resolved,f=c.resolved;return void 0!==u&&void 0!==f?_t(n,e,i,r,o,u,f):hr(l.resolve(),t=>hr(c.resolve(),s=>_t(n,e,i,r,o,t,s)))}function Lt(t){let n=null,e=null,i=null;const s=new Set,o=()=>{if(i){if(1===i.length)Us(n,i[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<i.length;n++)t.appendChild(i[n]);Us(n,t,e)}i=null,n=null,e=null,s.clear()}};for(let l=0;l<t.length;l++){const c=t[l];if(c instanceof js){if(n===c.parent&&e===c.beforeTarget){i||(i=[]),i.push(c.target),s.add(c.target);continue}if(!i){n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}if(n===c.parent){o(),n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}if(s.has(c.target)||e&&c.target===e||n&&c.target===n){o(),n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}Us(c.parent,c.target,c.beforeTarget)}else if(c instanceof Rs)(s.has(c.target)||e&&c.target===e||n&&c.target===n)&&o(),c.target.remove();else{if(c instanceof Es){(s.has(c.target)||e&&c.target===e||n&&c.target===n)&&o(),c.target.textContent="";continue}if(c instanceof Cs)c.target.nodeValue=c.text;else if(c instanceof _s){const t=c.target,e=c.attrName,i=c.attrValue,s=null!=i?r(e,i,c.scopedStyleIdPrefix):null,l=null==s||!1===s;Ws(t,e)?t[e]=Qs(s):e===lr?(n===t&&o(),t.innerHTML=s,t.setAttribute(Ue,"html")):l?t.removeAttribute(e):"value"===e&&e in t?t.value=s:j(t,e,s,c.isSvg)}}}o()}function Dt(){Hs||(Hs=!0,Vs())}function Ut(){Hs||(Hs=!0,Bs())}function Wt(t={timeBudget:1e3/60}){Hs=!1;let n=null;for(;n=l();)Qt(n,t)}function Qt(t,n){const{timeBudget:e}=n,r=import.meta.env.TEST?Wr():Xn,i=performance.now(),s=h(t);if(s.promise)return;const o=s.container;if(!t.dirty)return void Vt(o,t,s,r);const l=s.journal||=[];let f=null;for(;f=s.position;){if(s.promise)return;if(!(255&f.dirty)){a(o,s,Ht(f,t));continue}if(32&f.flags){if(64&f.dirty)Tt(f,o);else if(32&f.dirty){const n=Bt(o,s,f,t);if(null!==n){f=n;continue}}f.dirty&=-256,a(o,s,Ht(f,t));continue}let n;try{if(1&f.dirty)n=Ot(f,o,s);else if(2&f.dirty)n=Pt(f,o,l,t);else if(4&f.dirty)n=Nt(f,o,l,t);else if(128&f.dirty)n=zt(f,o,l,t);else if(8&f.dirty)Mt(f,l);else if(16&f.dirty)n=Ft(f,o);else if(32&f.dirty){const n=Bt(o,s,f,t);if(null!==n){f=n;continue}}}catch(t){o.handleError(t,f)}if(n&&fr(n)){s.promise=n,c(t,o);const e=f;return void n.catch(t=>{o.handleError(t,e)}).finally(()=>{s.promise=null,u(t,o),Dt()})}if(performance.now()-i>=e)return void Ut()}Vt(o,t,s,r)}function Vt(t,n,e,r){if(!(255&n.dirty)){if(f(n,t),r||((t,n)=>{const e=h(t),r=e.journal;r&&r.length>0&&(Lt(r),e.journal=null),((t,n)=>{const e=n.afterFlushTasks;if(!e||0===e.length)return void(n.afterFlushTasks=null);let r;for(const n of e){const e=Ac(n,t,n.$t);fr(e)&&(r=r?r.then(()=>e):e)}r&&(n.extraPromises||=[]).push(r),n.afterFlushTasks=null})(n,e)})(n,t),e.extraPromises)return void Promise.all(e.extraPromises).then(()=>{Jt(t)});Jt(t)}}function Jt(t){t.yt()}function Bt(t,n,e,r){const i=e.dirtyChildren;if(!i||0===i.length)return e.dirty&=-33,null;((t,n)=>{let e=0;for(let r=0;r<t.length;r++){const i=t[r];if(i.parent===n){if(e!==r){const n=t[e];t[e]=i,t[r]=n}e++}}})(i,e),e.nextDirtyChildIndex=0;const s=Ht(i[0],r);return a(t,n,s),s}function Ht(t,n){if(t===n)return 255&n.dirty?n:null;let e=null;if(t.slotParent&&32&t.slotParent.dirty?e=t.slotParent:t.parent&&32&t.parent.dirty&&(e=t.parent),!e)return 255&n.dirty?n:null;const r=e.dirtyChildren;let i=e.nextDirtyChildIndex;const s=r.length;let o=s;for(;o-- >0;){const t=r[i];if(255&t.dirty)return e.nextDirtyChildIndex=(i+1)%s,t;i++,i===s&&(i=0)}return e.dirty&=-33,e.dirtyChildren=null,e.nextDirtyChildIndex=0,Ht(e,n)}function Yt(t,n,e){ri.set(n,{afterFlushTasks:null,extraPromises:null,journal:null,container:t,position:n,priority:e,promise:null});const r=n;return r.flags|=256,o(t,r),Dt(),r}function Xt(t){return!!(256&t.flags)}function Gt(t,n){if(!(1&n.flags))return 8&n.dirty&&((t,n)=>{n.dirty&=-9;const e=n.getProp(ii);if(e&&0!==e.size)for(const[i,s]of e.entries()){let e=s.value;Mc(e)&&(e=e.value);const o=r(i,e,s.scopedStyleIdPrefix);t.addBackpatchEntry(n.id,i,o)}})(t,n),16&n.dirty&&Ft(n,t),255&n.dirty&&ce(`A chore was scheduled on a host element that has already been streamed to the client.\n This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).\n \n Problematic chore:\n - Host: ${""+n}\n - Nearest element location: ${n.currentFile}\n \n This is often caused by modifying a signal in an already rendered component during SSR.`),void(n.dirty&=-256);let e=null;if(1&n.dirty){const r=((t,n)=>{n.dirty&=-2;const e=n.getProp(Ke);if(!e||0===e.length)return null;let r=null;for(const i of e)if(i instanceof Pc){const e=i;if(!(4&e.R))continue;const s=Ac(e,t,n);r=r?r.then(()=>s):s}return r})(t,n);fr(r)&&(e=r)}if(128&n.dirty){const r=(async(t,n)=>{n.dirty&=-129;const e=t.getHostProp(n,Ge)||null;if(!e)return;let r=vi(e,"items");Mc(r)&&(r=ml(r));const i=await vi(e,"key$").resolve(),s=await vi(e,"item$").resolve(),o=[];for(let t=0;t<r.length;t++){const n=r[t],e=s(n,t),l=i(n,t);e.key=l,o.push(e)}await t.renderJSX(o,{currentStyleScoped:null,parentComponentFrame:t.getComponentFrame(0)})})(t,n);e=e?e.then(()=>r):r}return n.dirty&=-252,e||void 0}function Kt(t){for(let n=0;n<Ys.length;n++){const e=Ys[n],r=Ys[n+1]||t;r.dirty|=32,r.dirtyChildren||=[],r.dirtyChildren.includes(e)||r.dirtyChildren.push(e)}}function Zt(t,n,e,r=null){const i=n.dirty;if(n.dirty|=e,import.meta.env.TEST?Wr():Xn){const e=Gt(t,n);return void(fr(e)&&(t.l=t.l?t.l.then(()=>e):e))}const s=255&e;if((s?255&i:i)||n===r)return;const o=n.slotParent||n.parent;if(r&&s&&o&&!o.dirty)((t,n)=>{Ys.push(t);let e=t.slotParent||t.parent;for(;e;){const r=255&e.dirty,i=Xt(e);if(e===n||r){if(Kt(e),i){const n=h(e);n.position!==e&&(n.position=t)}return void(Ys.length=0)}if(i){const n=h(e);n.position!==e&&(n.position=t)}Ys.push(e),e=e.slotParent||e.parent}Ys.length=0,(()=>{throw ue(!1,"Cursor root not found in current path!")})()})(n,r);else if(o&&255&o.dirty){if(s&&(o.dirty|=32),o.dirtyChildren||=[],o.dirtyChildren.includes(n)||o.dirtyChildren.push(n),s&&n.dirtyChildren){const t=(t=>{for(;t;){if(Xt(t))return t;t=t.parent||t.slotParent}return null})(n);if(t){const e=h(t);let r=e.position;if(r)for(;r!==t;)if(r=r.slotParent||r.parent,r===n){e.position=n;break}}}}else Xt(n)||(t=>{Ys.push(t);let n=t.slotParent||t.parent;for(;n;){if(Xt(n))return Kt(n),Ys.length=0,!0;Ys.push(n),n=n.slotParent||n.parent}return Ys.length=0,!1})(n)||Yt(t,n,0)}function tn(t,n){t.push(n)}function nn(t,n,e,r){const i=t.value,s=n.slice(2),o=i.split("|"),l=[];for(let t=0;t<o.length;t++){const n=po(mn(o[t],e));l.push(O.bind(null,n))}(r._qDispatch||={})[s]=1===l.length?l[0]:l}function en(t,n,e){let r=Fo(n);for(;r;)oo(r)?(mo(t,r),e(r,n)):ro(r)?e(r,n):en(t,r,e),r=r.nextSibling}function rn(t,n){let e=t;if(oo(t))return void n?.(t,null);let r=null;for(;;){if(n?.(e,r))return;const i=Fo(e);if(i){e=i;continue}if(e===t)return;const s=e.nextSibling;if(s)e=s;else{for(r=e.parent;r;){if(r===t)return;const n=r.nextSibling;if(n){e=n;break}r=r.parent}if(null==r)return}}}function sn(t,n,e,r){const i="string"==typeof n,s=n.length;for(;t;){const o=t.nodeValue;let l;if(i)l=o?.startsWith(n);else for(let t=0;t<s;t++)if(o?.startsWith(n[t])){l=!0;break}if(l)return e.call(t)||null;let c=r.call(t);for(c||(c=e.call(t));!c&&(c=Ho(t),c);)t=c,c=e.call(c);t=c}return null}function on(t,n,e){t[Yr]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[Yr],e.O(n)):Object.defineProperty(t,Yr,{get(){const r=e.O(n);return t[Yr]=r,r},set(n){Object.defineProperty(t,Yr,{value:n,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0})}function ln(t=20,n="",e=!1,r=!1,i=!0,s=null){if(this&&!s)try{s=(()=>{let t=this;for(;t;){if(ro(t)){const n=Tn(t.node);return n?Mn(n):null}t=t.parent}return null})()}catch{}let o=this;if(0===t)return"...";if(null===o)return"null";if(void 0===o)return"undefined";const l=[];do{if(oo(o))l.push(zn(Mo(o)));else if(lo(o)){const e=["["+(o.flags>>>12)+"]"];o.dirty&&e.push(" dirty:"+o.dirty),s&&el(s,o).forEach(t=>{if(t!==Se&&t!==cr){const n=uo(o,t,null);e.push(" "+t+"="+zn(n))}});const r=(i?"":"")+(ke[uo(o,Se,null)||"V"]||ke.V)+(i?"":"");l.push("<"+r+e.join("")+">");const c=Fo(o);c&&l.push(" "+ln.call(c,t-1,n+" ",!0,!0,i)),l.push("</"+r+">")}else if(ro(o)){const r=Io(o),c=[];Xt(o)&&c.push(" cursor"),o.dirty&&c.push(" dirty:"+o.dirty),o.dirtyChildren&&c.push(` dirtyChildren[${o.dirtyChildren.length}]`);const u=s?el(s,o):[];for(const t of u){const n=uo(o,t,null);c.push(" "+t+"="+zn(n))}const f=sl(o);if(f){const t=Zo(f).qVNodeData?.get(f);t&&c.push(" q:vnodeData="+zn(t))}const a=f.attributes;for(let t=0;t<a.length;t++){const n=a[t];-1===u.indexOf(n.name)&&c.push(" "+n.name+(n.value?"="+zn(n.value):""))}if(l.push("<"+r+c.join("")+">"),so(o)||e){const e=Fo(o);e&&l.push(" "+ln.call(e,t-1,n+" ",!0,!0,i))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+r+">")}o=r&&o.nextSibling||null}while(o);return l.join("\n"+n)}function cn(t){return!t.hasAttribute(or)||"STYLE"===t.nodeName&&(t.hasAttribute(Pe)||t.hasAttribute(_e))}function un(t){if(void 0===hl){const n=$l();if(n&&n.wt)return n.wt;if(void 0!==t)return t;throw Error("Reading `locale` outside of context.")}return hl}function fn(t,n){const e=hl;try{return hl=t,n()}finally{hl=e}}function an(t,n,...e){return hn.call(this,t,n,e)}function hn(t,n,e){const r=dl;try{return dl=t,n.apply(this,e)}finally{dl=r}}function dn(t,n,e){const r={p:n,bt:He,vt:void 0,wt:t,_:e,gt:void 0};return ie(r),r}function $n(t,n,e){const r={p:n,bt:e,vt:void 0,wt:t||(e&&pe(e)&&"locale"in e?e.locale:void 0),_:void 0};return ie(r),r}function pn(t,n,e){let r=n.St,i=n.kt;const s=Ur();if(s){const t=s.chunkForSymbol(r,i);t&&(i=t[1],r=t[0])}var o;if(ge(o=n)&&o.St==ve)i="",r=t.xt(null,0,n.resolved)+"";else{if(i||(i=t.qt(n.ft)),!i)throw be(14,[n.St]);i.startsWith("./")&&(i=i.slice(2))}const l=n.getCaptured();let c=null;if(l&&l.length>0&&(c=l.map(n=>""+t.Rt(n)).join(" ")),e)return[i,r,c];let u=`${i}#${r}`;return c&&(u+="#"+c),u}function yn(t,n,e,r){return Eu(t,n,null,null,e,r)}function mn(t,n){const[e,r,i]=t.split("#");return yn(e,r,i||null,n)}function wn(t,n){return n?t.rootVNode?wo(t.rootVNode,n):void 0:t.element?.ownerDocument}function bn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function vn(t,n){return n.Et&&"{"===n.Et[0]&&(n.Et=`(${n.Et})`),[t.xt(n.Et,n.dt.length,n.ht),n.dt]}function gn(t){return Object.prototype.hasOwnProperty.call(t,Ie)?t[Ie]:void 0}function Sn(t,n,e){return()=>{t.currentStyleScoped=n,t.parentComponentFrame=e}}async function kn(t,e,r){const i=[e],s=t=>i.push(t);await(async()=>{for(;i.length;){const e=i.pop();if(e===ic){const t=i.pop();await n(()=>i.push(t()));continue}"function"!=typeof e?xn(t,s,e,r):e===Promise?i.push(await i.pop()):await e.apply(t)}})()}function xn(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(e+"");else if("string"==typeof e)t.textNode(e);else if("object"==typeof e)if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)n(e[t]);else if(Mc(e)){((t,n)=>{const e=n instanceof Hi?n.ut():n;e instanceof Ai&&e.Ct>0&&(t.Rt(e),t.jt.add(e))})(t.serializationCtx,e),t.openFragment(pi);const r=t.getOrCreateLastNode(),i=e instanceof Hi?e.ut():e;n(t.closeFragment),n(()=>vl(i,r,".",t)),n(ic)}else if(fr(e))t.openFragment(pi),n(t.closeFragment),n(e),n(Promise),n(()=>t.streamHandler.flush());else if((t=>!!t[Symbol.asyncIterator])(e))n(async()=>{for await(const n of e)await kn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),t.streamHandler.flush()});else{const i=e,s=i.type;if("string"==typeof s){((t,n)=>{null==bi(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")})(i,r.currentStyleScoped);const e=t.openElement(s,i.key,i.varProps,i.constProps,r.currentStyleScoped,null,!!(4&i.flags));e&&t.htmlNode(e),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const o=i.children;null!=o&&n(o)}else if(we(s))if(s===ds){t.openFragment(null!=i.key?{[Xe]:i.key}:{}),n(t.closeFragment);const e=i.children;null!=e&&n(e)}else if(s===ys){const e=r.parentComponentFrame;if(e){const s={};s["q:sparent"]=e.componentNode.id||"",t.openProjection(s);const o=e.componentNode,l=t.getOrCreateLastNode(),c=((t,n,e)=>{const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof Hi)return vl(n,t,":",e)}return bi(n,"name")||Ye})(o,i,t);s[Ce]=c,n(Sn(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeProjection);const u=i.children||null,f=e.consumeChildrenForSlot(l,c)||u;u&&f!==u&&t.addUnclaimedProjection(e,Ye,u),n(f),n(Sn(r,e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(pi),t.closeFragment()}else if(s===bs)t.commentNode(bi(i,"data")||"");else if(s===gs){t.streamHandler.flush();const e=i.children;let s;s=we(e)?e({async write(n){await kn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),t.streamHandler.flush()}}):e,n(s),fr(s)&&n(Promise)}else if(s===ws)t.htmlNode(bi(i,"data"));else if(s===vs)t.streamHandler.streamBlockStart(),n(()=>t.streamHandler.streamBlockEnd()),n(i.children);else if(Du(s)){t.openComponent({});const e=t.getOrCreateLastNode(),o=t.getParentComponentFrame();o.distributeChildrenIntoSlots(i.children,r.currentStyleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getOrCreateLastNode(),[i]=e[Lu],s=n.props;return s&&s.children&&delete s.children,r.setProp(qe,i),r.setProp(Ge,s),null!==n.key&&r.setProp(Xe,n.key),ps(t,r,r,i,s)})(t,i,s);if(n(Sn(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeComponent),fr(l))n(async()=>{const t=await l,i=pr(e.getProp(Pe));n(t),n(Sn(r,i,o))});else{n(l);const t=pr(e.getProp(Pe));n(Sn(r,t,o))}}else{t.openFragment({[Xe]:i.key}),n(t.closeFragment);const e=t.getParentComponentFrame(),r=((t,n,e,r)=>{const i=t.getOrCreateLastNode();return ps(t,i,n,e,r.props)})(t,e&&e.componentNode,s,i);n(r),fr(r)&&n(Promise)}}}function qn(t,n,e,r){let i=null;const s=e,o=t=>{i=(null==i?"":i+"|")+t},l=n=>(n.St.startsWith("_")||!n._t?.length&&!r||(n=Eu(null,"_run",A,null,[n])),pn(t,n));if(Array.isArray(s))for(let e=0;e<s.length;e++){const i=s[e];if(ge(i))o(l(i)),Rn(t,n,i);else if(null!=i){const e=qn(t,n,i,r);e&&o(e)}}else ge(s)&&(i=l(s),Rn(t,n,s));return i}function Rn(t,n,e){const r=[(i=n).charAt(2),i.substring(4)];var i;if(r){const[n,i]=r,s=((t,n)=>t+":"+n)(n,i);t.Ot.add(s),t.At.add(e)}}function En(t){$l()&&(yc||=Ll(pc,"_hmr"),ac((t=>"qHmr"+t.replace(/[^a-zA-Z0-9_]/g,"_"))(t),yc))}function Cn(t,n,e,r,i){const s=no();return fo(s,Ce,i),s.parent=n,fo(n,i,s),fo(s,qe,e),fo(s,Ge,r),s.dirty=4,Yt(t,s,1),s}function jn(t,n){fo(t,Re,n),t.flags|=2048}function _n(t,n,e){fo(n,Ge,e),Zt(t,n,4)}function On(t,n,e,r){fo(n,r,null);const i=[];if(St(t,i,e),ko(i),2048&e.flags){const t=uo(e,Re,null);t&&t.replaceChildren(),fo(e,Re,null),e.flags&=-2049}}function An(t,n,e){if(0===n)return e;const r=Fl(t,n,e);return Sc(n)&&vc(t,r,n,e),r}function Pn(t,n){if(t)for(const e of t)e.backRef||=new Set,e.backRef.add(n)}function Nn(t,n){if(t)for(const[,e]of t)Pn(e,n)}function In(t){const n=Tn(t);if(!n)throw be(24);return Mn(n)}function Mn(t){const n=t;return n.qContainer||=new _c(n)}function Tn(t){return t.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}function Fn(t,n){const e=In(n);"string"==typeof this&&Su(ku(e,this));const r=gu[0];r.R|=4,Zt(e,r.$t,1)}function zn(t){try{if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return'"'+t+'"';if("number"==typeof t||"boolean"==typeof t)return t+"";if(Nc(t))return`Task(${zn(t.Pt)})`;if(ge(t))return`Qrl(${t.St})`;if("object"==typeof t||"function"==typeof t){if(Wc.includes(t))return"*";try{if(Wc.push(t),Array.isArray(t))return eo(t)?"("+(uo(t,Se,null)||"vnode")+")":t.map(zn);if(Mc(t))return t instanceof Hi?"WrappedSignal":t instanceof _i?"ComputedSignal":"Signal";if(Xc(t))return"Store";if(ts(t))return Qc(t);if(eo(t))return"("+(uo(t,Se,null)||"vnode")+")"}finally{Wc.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}function Ln(t,n,e){return new Proxy(n,new Kc(e,t||null))}function Dn(t,n,e,r){const i=e.$||=new Map;let s=i.get(n);s||(s=new Set,i.set(n,s)),Tc(s,r),Fc(r,t),(import.meta.env.TEST?!jc(e._):Xn)&&zc(r,e._)}function Un(t,n,e,r){e[t]=n;const i=Wn(e,t,r.$);i&&Lc(r._,r,i)}function Wn(t,n,e){let r;if(e)if(Array.isArray(t))for(const t of e.values()){r||=new Set;for(const n of t)r.add(n)}else r=e.get(n);const i=e?.get(Ci);if(i){r||=new Set;for(const t of i)r.add(t)}return r}function Qn(t,n){const e=(t,n)=>1===t&&"string"==typeof n,r=t=>14===t,i=n=>{const e=t[n+1].split(" ");let r=t,i=1,s=0,o=0,l=null;for(let n=0;n<e.length;n++)if(l=r,s=2*parseInt(e[n],10),o=s+1,i=r[s],r=r[o],1===i){const n=2*r;i=t[n],r=t[n+1]}l&&(l[s]=1,l[o]=n/2),t[n]=i,t[n+1]=r};for(let s=0;s<t.length;s+=2)e(t[s],t[s+1])?i(s):r(t[s])&&(n.Nt=t[s+1])}async function Vn(t){const n=ec(null,null,()=>"",()=>{},new WeakMap);return n.Rt(t),await n.It(),""+n.Mt}function Jn(t){if(null==t)throw Error("No state data to deserialize");const n=JSON.parse(t);if(!Array.isArray(n)||n.length<2||"number"!=typeof n[0])throw Error("Invalid state data");const e=(t=>{let n;const e={O:t=>Bn(t,n),getSyncFn:()=>()=>{},h:new WeakMap,element:null,Nt:null};return Qn(t,e),n=qc(e,t),e.Tt=n,e})(n);return An(e,n[0],n[1])}function Bn(t,n){return"string"==typeof t?n[t=parseInt(t,10)]:n[t]}function Hn(t,n){const e=$l();return e?._?.Ft[t]??n}import{p as Yn}from"@qwik.dev/core/preloader";const Xn=!1,Gn=!0,Kn=!1,Zn=globalThis,te=!1!==Zn.qDev,ne=!1!==Zn.qDynamicPlatform,ee=!0===Zn.qTest,re=!0===Zn.qRuntimeQrl,ie=t=>{te&&Object.seal(t)},se=te?"background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;":"",oe=/*#__PURE__*/new Set,le=(t,...n)=>{if(te){const e="warn"+t;oe.has(e)||(oe.add(e),ce(t,...n))}},ce=(t,...n)=>{te&&console.warn("%cQWIK WARN",se,t,...n)},ue=(t,n,...e)=>{const r=n instanceof Error?n:Error(n);return!ee&&console.error("%cQWIK ERROR",se,r.message,...e,r.stack),t&&!ee&&setTimeout(()=>{throw r},0),r},fe=(t,n,e)=>{let r=e>>1,i=t.length-2>>1;for(;r<=i;){const e=r+(i-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:i=e-1}return~(r<<1)},ae=(t,n,e,r,i=!1)=>{const s=fe(t,n,r);s>=0?null!=e||i?t[s+1]=e:t.splice(s,2):(null!=e||i)&&t.splice(-1^s,0,n,e)},he=(t,n,e)=>{const r=fe(t,n,e);return r>=0?t[r+1]:null},de=(t,n,e)=>fe(t,n,e)>=0,$e=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},pe=t=>"object"==typeof t&&null!==t,ye=t=>Array.isArray(t),me=t=>"string"==typeof t,we=t=>"function"==typeof t,be=(t,n=[])=>{const e=((t,...n)=>{if(te){let e=["Error while serializing class or style attributes","Scheduler not found","track() received object, without prop to track","Only primitive and object literals can be serialized. {{0}}","You can render over a existing q:container. Skipping render().","QRL is not a function","Dynamic import {{0}} not found","Unknown type argument","Actual value for useContext({{0}}) can not be found, make sure some ancestor component has set a value using useContextProvider(). In the browser make sure that the context was used during SSR so its state was serialized.","Invoking 'use*()' method outside of invocation context.","Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nSee https://qwik.dev/docs/core/tasks/#use-method-rules",'The provided Context reference "{{0}}" is not a valid context created by createContextId()',"SsrError(tag): {{0}}","QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.","QRLs can not be dynamically resolved, because it does not have a chunk path","{{0}}\nThe JSX ref attribute must be a Signal","Serialization Error: Deserialization of data type {{0}} is not implemented","Serialization Error: Expected vnode for ref prop, but got {{0}}","Serialization Error: Cannot allocate data type {{0}}","Serialization Error: Missing root id for {{0}}","Serialization Error: Serialization of data type {{0}} is not implemented","Serialization Error: Unvisited {{0}}","Serialization Error: Missing QRL chunk for {{0}}","{{0}}\nThe value of the textarea must be a string found {{1}}","Unable to find q:container","Element must have 'q:container' attribute.","Unknown vnode type {{0}}.","Materialize error: missing element: {{0}} {{1}} {{2}}","Cannot coerce a Signal, use `.value` instead","useComputed$ QRL {{0}} {{1}} cannot return a Promise",'===\nQwik version {{0}} already imported while importing {{1}}.\nThis can lead to issues due to duplicated shared structures.\nVerify that the Qwik libraries you\'re using are in "resolve.noExternal[]" and in "optimizeDeps.exclude".\n===\n',"WrappedSignal is read-only","Attribute value is unsafe for SSR {{0}}","SerializerSymbol function returned rejected promise","Serialization Error: Cannot serialize function: {{0}}"][t]??"";return n.length&&(e=e.replaceAll(/{{(\d+)}}/g,(t,e)=>{let r=n[e];return r&&pe(r)&&r.constructor===Object&&(r=JSON.stringify(r).slice(0,50)),r})),`Code(Q${t}): ${e}`}return`Code(Q${t}) https://github.com/QwikDev/qwik/blob/build/v2/packages/qwik/src/core/shared/error/error.ts#${n.join()}L${9+t}`})(t,...n);return((t,...n)=>ue(te,t,...n))(e,...n)},ve="<sync>",ge=t=>"function"==typeof t&&"function"==typeof t.getSymbol,Se="q:type",ke={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},xe=124,qe="q:renderFn",Re="q:targetEl",Ee="⚡️",Ce="q:slot",je="q:s",_e="q:style",Oe="style[q\\:style]",Ae=Oe+",style[q\\:sstyle]",Pe="q:sstyle",Ne="q:ctx",Ie="q:brefs",Me=(t,n)=>t["qFuncs_"+n]||[],Te="q:base",Fe="q:container-island",ze="/"+Fe,Le="q:ignore",De="/"+Le,Ue="q:container",We="/"+Ue,Qe="q:template",Ve="http://www.w3.org/1999/xhtml",Je="http://www.w3.org/2000/svg",Be="http://www.w3.org/1998/Math/MathML",He="qRender",Ye="",Xe="q:key",Ge="q:props",Ke="q:seq",Ze="q:seqIdx",tr="q:p",nr="q:ps",er=":",rr=":on",ir=":onIdx",sr=":onFlags",or=":",lr="dangerouslySetInnerHTML",cr="__scopedStyleIdPrefix__",ur=100,fr=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,ar=(t,n,e)=>{try{const r=t();return fr(r)?r.then(n,e):n(r)}catch(t){return e(t)}},hr=(t,n)=>fr(t)?t.then(n):n(t),dr=t=>{throw t},$r=t=>Ee+t,pr=t=>{if(t){let n=0;do{t=t.substring(0,n)+$r(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},yr=t=>113===t.charCodeAt(0)&&45===t.charCodeAt(1)&&58===t.charCodeAt(3),mr=t=>t.replace(/([A-Z-])/g,t=>"-"+t.toLowerCase()),wr=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexShrink","gridArea","gridRow","gridRowEnd","gridRowStart","gridColumn","gridColumnEnd","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","MozAnimationIterationCount","MozBoxFlex","msFlex","msFlexPositive","WebkitAnimationIterationCount","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitColumnCount","WebkitColumns","WebkitFlex","WebkitFlexGrow","WebkitFlexShrink","WebkitLineClamp"]),br=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return(+Math.abs(n)).toString(36)},vr=t=>{if(!t)return"";if(me(t))return t.trim();const n=[];if(ye(t))for(const e of t){const t=vr(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")},gr=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Sr=(t,n)=>"number"!=typeof n||0===n||wr.has(t)?n:n+"px",kr=document,xr=kr.createElement("link").relList.supports("modulepreload")?"modulePreload":"preload",qr=/\.[mc]?js$/,Rr=t=>{let n=Er.get(t);if(!n){let e;n=((t,n)=>({zt:t,Tt:qr.test(t)?0:3,Lt:n,Dt:1,Ut:Date.now(),Wt:0,Qt:0}))(t,e),Er.set(t,n)}return n},Er=new Map;let Cr=0;const jr=[],_r=()=>{if(jr.length)for(;jr.length;){const t=jr[0];if(!(1-t.Dt>=.99||Cr<5))break;jr.shift(),Or(t)}},Or=t=>{if(t.Tt>=2)return;Cr++;const n=Date.now();t.Wt=n-t.Ut,t.Tt=2;const e=kr.createElement("link");e.href=""+new URL("undefined"+t.zt,kr.baseURI),e.rel=xr,e.as="script",e.onload=e.onerror=()=>{Cr--;const r=Date.now();t.Qt=r-n,t.Tt=4,e.remove(),_r()},kr.head.appendChild(e)},Ar=(t,n,e)=>{if(e?.has(t))return;const r=t.Dt;if(t.Dt=n,!(r-t.Dt<.01)&&t.Lt){e||=new Set,e.add(t);const n=1-t.Dt;for(const r of t.Lt){const t=Rr(r.zt);if(0===t.Dt)continue;let i;if(1===n||n>=.99&&Nr<100)Nr++,i=Math.min(.01,1-r.Vt);else{const e=(1-r.Vt*n)/r.Jt;i=Math.max(.02,t.Dt*e),r.Jt=e}Ar(t,i,e)}}},Pr=(t,n)=>{const e=Rr(t);e&&e.Dt>n&&Ar(e,n)};let Nr;document.addEventListener("qsymbol",t=>{const{symbol:n,href:e}=t.detail;e&&(t=>{if(!t?.length)return;Nr=0;let n=0;if(Array.isArray(t))for(let e=t.length-1;e>=0;e--){const r=t[e];"number"==typeof r?n=1-r/10:Pr(r,n)}else Pr(t,n);_r()})(n.slice(n.lastIndexOf("_")+1))});const Ir=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},Mr=",",Tr="2.0.0-beta.30-dev+5421ed4",Fr=()=>({isServer:Xn,importSymbol(t,n,e){if(!n)throw be(14,[e]);if(!t)throw be(13,[n,e]);const r=""+zr(t.ownerDocument,t,n),i=new URL(r);return i.hash="",import(i.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),zr=(t,n,e)=>{const r=t.baseURI,i=new URL(n.getAttribute(Te)??r,r);return new URL(e,i)};let Lr=/*#__PURE__ */Fr();const Dr=t=>Lr=t,Ur=()=>Lr,Wr=()=>!!ne&&Lr.isServer,Qr=t=>1===t.nodeType,Vr=t=>"foreignObject"===t,Jr=t=>"svg"===t||Vr(t),Br=t=>"math"===t,Hr={elementNamespace:Ve,elementNamespaceFlag:0},Yr=Symbol();class Xr{[Yr]=void 0}class Gr{flags;parent;previousSibling;nextSibling;props;[Yr]=void 0;slotParent=null;dirty=0;dirtyChildren=null;nextDirtyChildIndex=0;constructor(t,n,e,r,i){this.flags=t,this.parent=n,this.previousSibling=e,this.nextSibling=r,this.props=i}toString(){return Object.prototype.toString.call(this)}}class Kr extends Gr{key;firstChild;lastChild;constructor(t,n,e,r,i,s,o,l){super(n,e,r,i,s),this.key=t,this.firstChild=o,this.lastChild=l}}class Zr extends Kr{node;elementName;constructor(t,n,e,r,i,s,o,l,c,u){super(t,n,e,r,i,s,o,l),this.node=c,this.elementName=u}}class ti extends Gr{node;text;constructor(t,n,e,r,i,s,o){super(t,n,e,r,i),this.node=s,this.text=o}}const ni=[],ei=[],ri=new WeakMap,ii=":nodeProps",si=":nodeDiff",oi=":signal";class li{Bt;$=void 0;_=null;Ht=null;constructor(t,n){this._=t||$l()?._||null,this.Bt=n}trigger(){Lc(this._,this,this.$)}force(){Lc(this._,this,this.$)}get untrackedValue(){return this.Bt}set untrackedValue(t){this.Bt=t}get value(){const t=this.untrackedValue,n=$l();if(!n)return t;null===this._&&(this._=n._);const e=n.vt;return e&&(Tc(this.$||=new Set,e),Fc(e,this),(import.meta.env.TEST?!jc(this._):Xn)&&zc(e,this._)),t}set value(t){t!==this.Bt&&(this.Bt=t,Lc(this._,this,this.$))}valueOf(){if(te)throw be(28)}toString(){return this.constructor.name}toJSON(){return{value:this.Bt}}}const ci=Symbol(),ui=Symbol(),fi=Symbol(),ai=Symbol(),hi=Symbol(),di=Symbol(),$i=[],pi={};Object.freeze($i),Object.freeze(pi);class yi{owner;$=void 0;_=null;constructor(t){this.owner=t}get(t,n){if(n===ci)return this.owner.constProps;if(n===ui)return this.owner.varProps;if(n===fi)return this.owner;if(n===ai)return this;let r;if("children"===n)r=this.owner.children;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}r=bi(this.owner,n),n in this.owner.varProps&&mi(this,n)}return r instanceof Hi&&4&r.R?r.value:r}set(t,n,r){if(n===fi)this.owner=r;else if("children"===n)this.owner.children=r;else if(n===ci)this.owner.constProps=r;else if(n===ui)this.owner.varProps=r;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}this.owner.constProps&&n in this.owner.constProps&&delete this.owner.constProps[n],this.owner.varProps===pi?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==r&&(this.owner.varProps[n]=r,wi(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&wi(this,n),this.owner.constProps&&(e=delete this.owner.constProps[n]||e),null!=this.owner.children&&"children"===n&&(this.owner.children=null,e=!0),e}has(t,n){if("children"===n)return null!=this.owner.children;if(n===ci||n===ui)return!0;const r=n in this.owner.varProps;if("string"==typeof n&&(r&&mi(this,n),"string"==typeof this.owner.type)){const t=e(n);t&&(n=t)}return r||!!this.owner.constProps&&n in this.owner.constProps}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n?this.owner.children:this.owner.constProps&&n in this.owner.constProps?this.owner.constProps[n]:this.owner.varProps[n]}}ownKeys(){const t=Object.keys(this.owner.varProps);if(null!=this.owner.children&&t.push("children"),this.owner.constProps)for(const n in this.owner.constProps)-1===t.indexOf(n)&&t.push(n);return t}}const mi=(t,n)=>{const e=$l();e&&null===t._&&e._&&(t._=e._);const r=e?.vt;r&&Dn(t.owner._proxy,n,t,r)},wi=(t,n)=>{const e=((t,n)=>t?.get(n))(t.$,n);return e&&Lc(t._,t,e),!!e},bi=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],vi=(t,n)=>gi(t)?.[n]||Si(t)?.[n]||null,gi=t=>t?ui in t?"children"in t?{...t[ui],children:t.children}:t[ui]:t:null,Si=t=>t&&ci in t?t[ci]:null,ki=t=>t&&ui in t,xi=Symbol();class qi{consumer;property;backRef;data;constructor(t,n,e=null,r=null){this.consumer=t,this.property=n,this.backRef=e,this.data=r}}const Ri=Symbol(),Ei=Symbol(),Ci=Symbol(),ji=(t,n)=>(e,r)=>{const i=$n();return i.vt=$(t,":"),i._=n||void 0,an(i,()=>{if(we(e))return e();if(r)return e[r];if(Mc(e))return e.value;if(pe(e)&&Xc(e))return Dn(Jc(e),Ci,Vc(e),i.vt),e;throw be(2)})};class _i extends li{Yt;R;[Yr]=void 0;constructor(t,n,e=17){super(t||$l()?._,xi),this.Yt=n,this.R=e}invalidate(){this.R|=1;const t=$n();t._=this._||void 0;const e=n(hn.bind(this,t,this.j));e&&e.catch(t=>{this._?this._.handleError(t,null):console.error("Error during computation",t)})}get untrackedValue(){return this.j(),this.Bt}set untrackedValue(t){this.Bt=t}j(){if(!(1&this.R))return;const t=this.Yt;Ic(t);const n=$l(),e=n?.vt;if(n){const t=$(this,".");y(this._,t),n.vt=t}try{const e=t.getFn(n)();if(fr(e))throw be(29,[t.dev?t.dev.file:"",t.ft]);this.R&=-2,super.value=e}finally{n&&(n.vt=e)}}}class Oi{Xt;Gt=null;Kt=!1;Zt=!0;tn;nn;en;constructor(t){this.Xt=t}get track(){return this.tn||=ji(this.Xt,this.Xt._)}get abortSignal(){return(this.en||=new AbortController).signal}cache(){}get previous(){const t=this.Xt.Bt;if(t!==xi)return t}cleanup(t){"function"==typeof t&&(this.nn||=[]).push(t)}}class Ai extends _i{rn=!1;sn=void 0;m=void 0;k=void 0;ln=null;cn=[];un=1;Ct=0;fn;[Yr]=void 0;constructor(t,n,e=17,r){super(t,n,e);const i=r?.interval,s=r?.concurrency??1,o=r?.initial,l=r?.timeout,c=r?.eagerCleanup,u=r?.clientOnly;if(void 0!==o){const t="function"==typeof o?o():o;this.Bt=t}this.un=s,l&&(this.fn=l),c&&(this.R|=32),u&&(this.R|=64),i&&(this.interval=i)}get untrackedValue(){if(this.j(),this.ln?.Gt){if(this.Bt===xi||(import.meta.env.TEST?Wr():Xn))throw this.ln?.Gt;return this.Bt}if(this.sn)throw this.sn;if((import.meta.env.TEST?Wr():Xn)&&64&this.R&&this.Bt===xi)throw Error("Cannot read .value from clientOnly");return this.Bt}set untrackedValue(t){this.Bt=t}get loading(){const t=this.untrackedLoading,n=$l();if(n&&(this._||=n._||null)){const t=n.vt;t&&(Tc(this.m||=new Set,t),Fc(t,this),zc(t,this._))}return t}set untrackedLoading(t){t!==this.rn&&(this.rn=t,Lc(this._,this,this.m))}get untrackedLoading(){if(this.j(),(import.meta.env.TEST?Wr():Xn)&&this.ln?.Gt)throw this.ln?.Gt;return this.rn}get error(){const t=this.untrackedError,n=$l();if(n&&(this._||=n._||null)){const t=n.vt;t&&(Tc(this.k||=new Set,t),Fc(t,this),zc(t,this._))}return t}set untrackedError(t){t!==this.sn&&(this.sn=t,Lc(this._,this,this.k))}get untrackedError(){return this.sn}get interval(){return this.Ct}set interval(t){this.an(),this.Ct=t,this.Ct>0&&this.$?.size&&this.hn()}async invalidate(){this.R|=1,this.an(),(this.$?.size||this.m?.size||this.k?.size)&&(await!0,this.j())}abort(t){this.ln&&this.dn(this.ln,t)}q(){32&this.R&&!this.$n()&&(import.meta.env.TEST?!Wr():Gn)&&setTimeout(()=>{this.$n()||this.abort()})}async promise(){for(this.j();this.ln?.Gt;)await(this.ln?.Gt)}j(){if(!(1&this.R))return;if((import.meta.env.TEST?Wr():Xn)&&64&this.R)return this.rn=!0,void this._?.serializationCtx.jt.add(this);if(this.an(),this.ln&&this.dn(this.ln),this.cn.length>=(0===this.un?1/0:this.un))return;this.R&=-2;const t=new Oi(this);this.ln=t,this.cn.push(t),t.Gt=this.pn(t)}async pn(t){const e=()=>t===this.ln;this.untrackedLoading=!0;const r=this.Yt.resolved||await this.Yt.resolve();try{this.fn&&(this.yn=setTimeout(()=>{t.en?.abort();const n=Error("timeout");e()&&(this.untrackedError=n,t.Zt=!1)},this.fn));const i=await n(r.bind(null,t));if(t.Gt=null,t.Zt){const n=this.cn.indexOf(t);if(-1!==n)for(let t=0;t<n;t++)this.cn[t].Zt=!1;this.untrackedError=void 0,this.value=i}}catch(n){t.Gt=null,e()&&(this.untrackedError=n)}e()&&(clearTimeout(this.yn),1&this.R?this.j():(this.untrackedLoading=!1,this.hn()))}async mn(){this.an(),clearTimeout(this.yn),this.ln&&await this.dn(this.ln),await Promise.all(this.cn.map(t=>t.Gt))}an(){void 0!==this.wn&&(clearTimeout(this.wn),this.wn=void 0)}hn(){(import.meta.env.TEST?!Wr():Gn)&&this.Ct>0&&(this.an(),this.wn=setTimeout(this.invalidate.bind(this),this.Ct),this.wn?.unref?.())}$n(){return!!(this.$?.size||this.m?.size||this.k?.size)}async dn(t,n){if(t.Kt)return t.Gt;t.Kt=!0,t.en?.abort(n),t.Gt=Promise.resolve(t.Gt).then(()=>t.Gt=this.bn(t))}async bn(t){const n=t.nn;if(n?.length){const t=t=>{const n=this._?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)};await Promise.all(n.map(n=>{try{const e=n();if(fr(e))return e.catch(t)}catch(n){t(n)}})),n.length=0}const e=this.cn,r=e.indexOf(t);-1!==r&&e.splice(r,1),this.j()}}const Pi=t=>(n,...e)=>t.call(null,Iu(n),...e);class Ni extends _i{constructor(t,n){super(t,n,17)}vn=!1;j(){if(!(1&this.R))return;Ic(this.Yt);const t=ml(this.Yt.resolved),{deserialize:n,initial:e}=t,r=t.update,i=this.Bt===xi?e:this.Bt,s=bl(()=>this.vn?r?.(i)||i:n(i),this,".",this._);this.vn=!0,this.R&=-2,(this.vn&&"undefined"!==s||s!==this.Bt)&&(this.Bt=s,Lc(this._,this,this.$))}}const Ii=(t,n)=>new _i(n?.container||null,t,Uc(n?.serializationStrategy||"always")),Mi=(t,n)=>new Ai(n?.container||null,t,Uc(n?.serializationStrategy||"always"),n),Ti=t=>new Ni(null,t),Fi=t=>new li(null,t),zi=/*#__PURE__*/Pi(Ii),Li=/*#__PURE__*/Pi(Mi),Di=Pi(Ti),Ui=t=>t.value,Wi=(t,n)=>t[n],Qi=t=>1===t.length?Mc(t[0])?t[0].Ht||=new Hi(null,Ui,t,null):Xc(t[0])?new Hi(null,Ui,t,null):t[0].value:new Hi(null,Wi,t,null),Vi=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!pe(n))return n[e];if(Mc(n))return n instanceof Hi&&4&n.R?n:Qi(t);if(ki(n)){const r=n[ci],i=n[ui];if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];if(Object.prototype.hasOwnProperty.call(i,e))return Ji(i[e],t)}else{const r=Jc(n);if(r)return Ji(r[e],t)}return n[e]},Ji=(t,n)=>Mc(t)?t:Qi(n),Bi=(t,n)=>{const e=Vi(t,n);return e===hi?t[n]:e};class Hi extends li{dt;ht;Et;R;p=void 0;[Yr]=void 0;constructor(t,n,e,r,i=5){super(t,xi),this.dt=e,this.ht=n,this.Et=r,this.R=i}invalidate(){this.R|=1;try{this.j()}catch(t){this._&&this.p&&(this._.setHostProp(this.p,oi,this),Zt(this._,this.p,16))}2&this.R&&(this.R&=-3,Lc(this._,this,this.$))}get untrackedValue(){return this.j(),this.Bt}j(){if(!(1&this.R))return;const t=bl(()=>this.ht(...this.dt),this,".",this._);this.R&=-3,t!==this.Bt&&(this.R|=2,this.Bt=t)}ut(){return this.ht===Ui&&Mc(this.dt[0])?this.dt[0]:this}set value(t){throw be(31)}get value(){return super.value}}class Yi{data;constructor(t){this.data=t}}const Xi=(t,n)=>{if("string"==typeof t){const e=In(n);Su(ku(e,t))}return null},Gi=Object.prototype.hasOwnProperty;class Ki{type;children;flags;toSort;key;varProps;constProps;dev;_proxy=null;constructor(t,n,e,r,i,s,o,l){this.type=t,this.children=r,this.flags=i,this.toSort=!!o,this.key=null==s?null:"string"==typeof s?s:""+s,this.varProps=!n||Ir(n)?pi:n,this.constProps=!e||Ir(e)?null:e,te&&l&&(this.dev={...l,stack:Error().stack?.split("\n").slice(2).join("\n")}),ie(this)}get props(){return this._proxy||=d(this)}}const Zi=(t,n,e)=>{let r=t[n];if(!r)return t[n]=e,!0;Array.isArray(r)?r.push(e):r=t[n]=[r,e]},ts=t=>te?t instanceof Ki||!!(pe(t)&&Gi.call(t,"key")&&Gi.call(t,"props")&&Gi.call(t,"type"))&&!ki(t)&&(ce('Duplicate implementations of "JSXNode" found'),!0):t instanceof Ki,ns="bind:value",es="bind:checked",rs=Object.prototype.hasOwnProperty,is=(t,n,e,r,i,s,o)=>new Ki(t,n,e,r,i,s,!1,o),ss=(t,n,r,i,s,o,l)=>{let c=!1,u=!1,f=!1,a=null,h=null;if("string"==typeof t){if(r){const t=new Set;for(const n in r){const i=e(n);i?(u||(r={...r},u=!0),rs.call(r,i)&&!t.has(i)||(r[i]=r[n]),delete r[n]):n===es?h=r[n]:n===ns&&(a=r[n]),t.add(n)}}if(n){const t=new Set;for(const r in n){const i=e(r);i?(f||(n={...n},f=!0),rs.call(n,i)&&!t.has(i)||(n[i]=n[r]),delete n[r],c=!0):r===es?h=n[r]:r===ns&&(a=n[r]),t.add(r)}}if(h||a)if(f||(n={...n},f=!0),n||={},h){n&&rs.call(n,es)&&delete n[es],r&&rs.call(r,es)&&(u||(r={...r},u=!0),delete r[es]),n.checked=h;const t=Eu(null,"_chk",g,null,[h]);if(r&&rs.call(r,"q-e:input")){u||(r={...r},u=!0);const t=r["q-e:input"];delete r["q-e:input"],c=Zi(n,"q-e:input",t)||c}c=Zi(n,"q-e:input",t)||c}else if(a){n&&rs.call(n,ns)&&delete n[ns],r&&rs.call(r,ns)&&(u||(r={...r},u=!0),delete r[ns]),n.value=a;const t=Eu(null,"_val",v,null,[a]);if(r&&rs.call(r,"q-e:input")){u||(r={...r},u=!0);const t=r["q-e:input"];delete r["q-e:input"],c=Zi(n,"q-e:input",t)||c}c=Zi(n,"q-e:input",t)||c}n&&rs.call(n,"className")&&(f||(n={...n},f=!0),n.class=n.className,n.className=void 0,c=!0,te&&le(`jsx${l?` ${l.fileName}${l?.lineNumber?":"+l.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`)),r&&rs.call(r,"className")&&(u||(r={...r},u=!0),r.class=r.className,r.className=void 0,te&&le(`jsx${l?` ${l.fileName}${l?.lineNumber?":"+l.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`))}if(n)for(const t in n)"children"===t?(f||(n={...n},f=!0),i||=n.children,delete n.children):"key"===t?(f||(n={...n},f=!0),o||=n.key,delete n.key):(r&&t in r||null===n[t])&&(f||(n={...n},f=!0),delete n[t]);return new Ki(t,n,r,i,s,o,c||!0,l)},os=(t,n,e,r)=>fs(t,n,r),ls=(t,n,e,r,i)=>fs(t,{...e,...n},i),cs=(t,n,e,r,i,s)=>fs(t,{...e,...n,children:r},s),us=t=>t.children,fs=(t,n,e,r,i)=>ss(t,n,null,null,0,e,i),as=fs,hs=fs,ds=t=>t.children,$s=(t,n)=>new Ki(us,null,null,t.children,0,n),ps=(t,n,e,r,i)=>{const s=dn(t.wt,e||n,t);let o;e&&(s.vt=$(e,":"),s._=t),t.ensureProjectionResolved(n);let l=!1;if(null===r&&(r=t.getHostProp(n,qe)),ge(r))"children"in(i=i||t.getHostProp(n,Ge)||pi)&&delete i.children,o=r.getFn(s);else if(Du(r)){const t=r;o=()=>hn(s,t,[i||pi,null,0])}else{l=!0;const t=r;o=()=>hn(s,t,[i||pi])}const c=import.meta.env.TEST?Wr():Xn,u=(e=0)=>ar(()=>(l||(t.setHostProp(n,Ze,null),t.setHostProp(n,ir,null)),e>0&&eo(n)&&p(t,n),hr(o(i),t=>hr(s.gt,()=>t))),r=>{if(c&&!l&&4&n.dirty&&(n.dirty&=-5,e<ur))return u(e+1);const i=t.getHostProp(n,rr);return i?x(r,i):r},t=>{if(fr(t)&&e<ur)return t.then(()=>u(++e));if(e>=ur)throw Error("Max retry count of component execution reached");throw t});return u()},ys=t=>is(us,null,{[je]:""},t.children,0,t.name??""),ms=Symbol(),ws=()=>null,bs=()=>null,vs=t=>t.children,gs=(t,n)=>fs($s,{children:fs(Ss,t)},n),Ss=()=>null;let ks=null,xs=null;const qs=(t,n=[],e={})=>{let r=null;const i=t[ci];if(i)for(const t in i)n.includes(t)||(r||={},r[t]=i[t]);const s=e,o=t[ui];for(const t in o)n.includes(t)||(s[t]=o[t]);return d(new Ki(null,s,r,null,0,null))};class Rs{target;constructor(t){this.target=t}}class Es{target;constructor(t){this.target=t}}class Cs{target;text;constructor(t,n){this.target=t,this.text=n}}class js{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class _s{target;attrName;attrValue;scopedStyleIdPrefix;isSvg;constructor(t,n,e,r,i){this.target=t,this.attrName=n,this.attrValue=e,this.scopedStyleIdPrefix=r,this.isSvg=i}}const Os=t=>new Rs(t),As=t=>new Es(t),Ps=(t,n)=>new Cs(t,n),Ns=(t,n,e)=>new js(t,n,e),Is=(t,n,e,r=null,i=!1)=>new _s(t,n,e,r,i),Ms=t=>{if(t.mn){try{t.mn()}catch(t){ue(!1,t)}t.mn=null}},Ts=Object.prototype.hasOwnProperty,Fs=(t,n,e,r,i,s,o)=>z(F(o,t,n,i,s),e,r),zs=(t,n,e,r,i,s,o,l,c=!1,u)=>z(F(u,t,n,o,l),e,r,i,s,c),Ls=(t,n,e,r,i)=>{if(yr(e))return void lt(e,r,n.node,n,t);if(e===tr||e===nr)return fo(n,e,r),void(n.flags|=192);const s=r;if("ref"===e&&nt(r,n.node,i))return;const o=n[Yr]?.get(e);if(Mc(r)){const i=r instanceof Hi?r.ut():r;if(o?.backRef?.has(i))return;o&&y(t._,o),r=et(t._,n,e,i,t.st.ct)}else o&&y(t._,o);if(fr(r)){const i=n,o=r.then(n=>{M(t.D,i,e,n,t.W,s)});return void t.H.push(o)}M(t.D,n,e,r,t.W,s)};let Ds=null;const Us=(t,n,e)=>{Ds||(Ds=t.insertBefore),Ds.call(t,n,e)},Ws=(t,n)=>("allowfullscreen"==n||"async"==n||"autofocus"==n||"autoplay"==n||"checked"==n||"controls"==n||"default"==n||"defer"==n||"disabled"==n||"formnovalidate"==n||"inert"==n||"ismap"==n||"itemscope"==n||"loop"==n||"multiple"==n||"muted"==n||"nomodule"==n||"novalidate"==n||"open"==n||"playsinline"==n||"readonly"==n||"required"==n||"reversed"==n||"selected"==n)&&n in t,Qs=t=>"false"!==t&&!!t,Vs=(Js=Wt,()=>queueMicrotask(Js));var Js;const Bs=(t=>{let n;if("undefined"!=typeof MessageChannel){const e=new MessageChannel;e.port1.onmessage=()=>t(),n=()=>e.port2.postMessage(null)}else n=()=>setTimeout(t);return n})(Wt);let Hs=!1;const Ys=[],Xs=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},Gs=t=>{let n=null;return e=>(n||(n=Xs(e,t)),n.call(e))},Ks=(t,n,e=null)=>{const r=new Zr(e,-4087,null,null,null,null,null,null,t,n);return t.vNode=r,r},Zs=t=>{const n=new Zr(null,-4095,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},to=(t,n)=>new ti(-4084,null,null,null,null,t,n),no=()=>new Kr(null,-4094,null,null,null,null,null,null),eo=t=>t instanceof Gr,ro=t=>!(1&~t.flags),io=t=>!!(5&t.flags),so=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,oo=t=>!(4&~t.flags),lo=t=>!(2&~t.flags),co=t=>!(2&~t.flags)&&null!==uo(t,Ce,null),uo=(t,n,e)=>{if(ro(t)||lo(t)){const r=t.props?.[n]??null;if("string"==typeof r&&e){const i=e(r);return t.props[n]=i,i}return r}return null},fo=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},ao=(t,n,e,r,i=null)=>{ro(n)&&(import.meta.env.TEST&&i&&fo(n,cr,i),fo(n,e,r),tn(t,Is(n.node,e,r,i,!!(512&n.flags))))},ho=t=>{if(t.key)return;const n=Wo(t.node,or);n&&(t.key=n)},$o=(t,n)=>{if(1==(15&n.flags)){const e=n;e.flags^=8;const r=e.node,i=r.attributes;let s=!1;for(let n=0;n<i.length;n++){const o=i[n],l=o.name;if(yr(l))nn(o,l,t,r);else if(s);else if(l!==or&&l)if(l.startsWith(Ue)){const t=o.value;"html"===t?fo(e,"dangerouslySetInnerHTML",r.innerHTML):"text"===t&&"value"in r&&fo(e,"value",r.value)}else fo(e,l,o.value);else{const t=o.value;t&&(e.key=t),s=!0}}null===uo(e,tr,null)&&null===uo(e,nr,null)||(n.flags|=64)}},po=t=>{if("_run"===t.St){const n=t.getCaptured()?.[0];if(ge(n))return n}return t},yo=(t,n,e)=>{let r=t;for(;e&&r&&lo(r);){const t=n?r.firstChild:r.lastChild;if(!t)break;if(5&t.flags)return t;r=t}for(;r;){let t=n?r.nextSibling:r.previousSibling;if(t&&5&t.flags)return t;if(!t){let e=r.parent;if(e&&!lo(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!lo(e))return null;if(!t)return null;if(oo(t)&&e&&ro(e))return null}for(;t;){if(r=t,5&r.flags&&sl(r))return r;t=n?r.firstChild:r.lastChild}}return null},mo=(t,n)=>{const e=n;if(!(8&e.flags)){const r=Oo(n,!0),i=e.node,s=Zo(r);let o=yo(n,!1,!0);const l=yo(n,!0,!0),c=i||(l&&ro(l)?l.node:l?.node)||null;let u=c;for(;o&&oo(o);){if(!(8&o.flags)){const n=s.createTextNode(o.text);tn(t,Ns(n,r,u)),u=n,o.node=n,o.flags|=8}o=yo(o,!1,!0)}for(o=n;o&&oo(o);){const n=yo(o,!0,!0),e=!n||!oo(n);if(!(8&o.flags)){if(e&&i)tn(t,Ps(i,o.text));else{const n=s.createTextNode(o.text);tn(t,Ns(n,r,c)),o.node=n}o.flags|=8}o=n}}},wo=(t,n)=>{let e=t;const r=t.node,{qVNodeRefs:i}=r;let s,o=-1;if("string"==typeof n)o=parseInt(n),s=i.get(o);else{s=n;const t=s.vNode;if(t)return t}if(eo(s))e=s;else{let t=s;const n=[s];for(;t&&t!==r&&!t.vNode;)t=t.parentElement,n.push(t);t.vNode&&(e=t.vNode);for(let t=n.length-2;t>=0;t--)e=go(e,n[t]);-1!=o&&(s.vNode=e,i.set(o,e))}if("string"==typeof n){const t=n.length;let r=So(n,t),i=0;for(;r<t;){const t=n.charCodeAt(r);i*=26,t>=97?i+=t-97:(i+=t-65,e=bo(e,i),i=0),r++}}return e},bo=(t,n)=>{let e=Fo(t);for(;e.flags>>>12!==n;)e=e.nextSibling;return e},vo=[],go=(t,n)=>{let e=Fo(t);for(;e&&(!(e instanceof Zr)||e.node!==n);)if(lo(e)){const t=e.nextSibling,n=Fo(e);n?(t&&vo.push(t),e=n):e=t||(vo.length?vo.pop():null)}else{const t=e.nextSibling;e=t||t||vo.pop()}for(;vo.length;)vo.pop();return e},So=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},ko=Lt,xo=(t,n,e,r)=>{const i=ro(n);i&&zo(n);const s=e.parent;if(e===r){if(s)return;r=null}Co(t,s,n,e);const o=e.node,l=32&n.flags,c=i?n.node:Oo(n,!1);c&&!l&&tn(t,Ns(o,c,Ro(t,n,r)?.node??null)),Eo(n,e,r),l&&(e.flags|=32)},qo=(t,n,e,r)=>{const o=ro(n);o&&zo(n);const l=e.parent;if(e===r){if(l)return;r=null}Co(t,l,n,e);const c=32&n.flags,u=!o&&2048&n.flags?n.props?.[Re]:null,f=u?null:o?n:Ao(n,!1),a=u||f?.node,h=Ro(t,n,r),d=h?.node??null;if(co(e)&&f&&1536&f.flags){const o=Ao(n,!1),l=Ro(t,n,r)?.node??null,{elementNamespace:c,elementNamespaceFlag:u}=s(o,e);en(t,e,n=>{if(oo(n))tn(t,Ns(n.node,a,l));else{if((1536&n.flags)!==u){const t=((t,n,e,r)=>{let o=t,l=null,c=null,u=null;for(;o;){let f=null,a=null;if(ro(o)){f=o.node;const t=Io(o),l=o.parent,h=null==c?n:l&&Ao(l,!0);if(h){const t=s(h,Io(o));e=t.elementNamespace,r=t.elementNamespaceFlag}const d=Fo(o);if(a=i(f,t,e,!d),f.remove(),null==c&&(c=a),u&&u.appendChild(a),o.node=a,o.flags&=-1537,o.flags|=r,d){o=d,u=a;continue}if(Do(f)){const t=Mn(f);if(t){const n=Fo(t.rootVNode);if(n){o=n,u=a;continue}}}}if(o===t)return c;const h=o.nextSibling;if(h)o=h;else{for(l=o.parent;l;){if(l===t)return c;const n=l.nextSibling;if(n)return o=n,c;l=l.parent}if(null==l)return c}}return c})(n,o,c,u);t&&(n.node=t)}tn(t,Ns(n.node,a,l))}})}else a&&!c&&en(t,e,n=>{tn(t,Ns(n.node,a,d))});Eo(n,e,r),c&&(e.flags|=32)},Ro=(t,n,e)=>{let r=null;return null==e?lo(n)&&(r=yo(n,!0,!1)):r=lo(e)?yo(e,!0,!0):e,r&&oo(r)&&mo(t,r),r},Eo=(t,n,e)=>{const r=e?e.previousSibling:t.lastChild;e?e.previousSibling=n:t.lastChild=n,r?r.nextSibling=n:t.firstChild=n,n.previousSibling=r,n.nextSibling=e,n.parent=t},Co=(t,n,e,r)=>{n&&(r.previousSibling||r.nextSibling||n!==e)&&Po(t,n,r,!1)},jo=(t,n)=>{let e=n;for(;e&&lo(e);)e=e.lastChild;!e||!oo(e)||8&e.flags||mo(t,e)},_o=(t,n,e,r)=>{io(e)?xo(t,n,e,r):qo(t,n,e,r)},Oo=(t,n)=>{for(;t&&!ro(t);){if(2048&t.flags)return t.props?.[Re];t=t.parent||(n?t.slotParent:null)}return t?t.node:null},Ao=(t,n)=>{for(;t&&!ro(t);)t=t.parent||(n?t.slotParent:null);return t},Po=(t,n,e,r)=>{if(oo(e)&&mo(t,e),r){if(null!==uo(n,lr,null))return;io(e)?tn(t,Os(e.node)):en(t,e,n=>{tn(t,Os(n.node))})}const i=e.previousSibling,s=e.nextSibling;i?i.nextSibling=s:n.firstChild=s,s?s.previousSibling=i:n.lastChild=i,e.previousSibling=null,e.nextSibling=null},No=(t,n,e,r=!0)=>{const i=Oo(n,!0);if(i&&r)if(io(n))tn(t,As(n.node));else{const e=Ao(n,!1);e&&e.firstChild===n&&e.lastChild===n?tn(t,As(i)):en(t,n,n=>{tn(t,Os(n.node))})}const s=e.previousSibling;s?s.nextSibling=null:n.firstChild=null,n.lastChild=s},Io=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,r=Ko(t).toLowerCase();e=n.elementName=r,n.flags|=(t=>{switch(Go(t)){case Je:return 512;case Be:return 1024;default:return 0}})(t)}return e},Mo=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},To=(t,n,e)=>{mo(t,n),n.text=e,tn(t,Ps(n.node,e))},Fo=t=>{if(oo(t))return null;let n=t.firstChild;return void 0===n&&(n=zo(t)),n},zo=n=>{const e=n;let r=e.firstChild;return void 0===r&&(r=e.parent&&Do(e.node)?e.firstChild=e.lastChild=null:(n=>{const e=n.node,r=Xo(e),i=Zo(e)?.qVNodeData?.get(e);return((n,e,r,i)=>{if(ho(n),i){if(i.charCodeAt(0)===xe&&i.charCodeAt(1)===xe){const t=(t=>{const n=t.indexOf("||",2);return{elementVNodeData:t.substring(2,n),virtualVNodeData:t.substring(n+2)}})(i);i=t.virtualVNodeData;const e=tl(n,r,t.elementVNodeData);if(!i)return e}return((n,e,r,i)=>{let s=0,o=null,l=null,c=null;const u=t=>{t.flags=4095&t.flags|s<<12,s++,l&&(l.nextSibling=t),t.previousSibling=l,t.parent=n,o||(n.firstChild=o=t),l=t};let f=0,a=null,h=null;const d=t=>{const n=fl(t);return!n||n&&cn(t)};let $=null;if(nl(e,(p,y,m,w,b)=>{if(ol(p())){for(;d(i);)if(!(i=Bo(i)))throw be(27,[e,p(),b]);a=null,c=null;let t=0;for(;ol(p());)t*=10,t+=m()-48;for(;t--;){const n=Zs(i);for(ho(n),u(n),i=Bo(i);fl(i)&&cn(i);)if(!(i=Bo(i))&&t>0)throw be(27,[e,p(),b])}}else if(59===p())fo(n,Pe,y());else if(60===p())($||=[]).push(n),fo(n,qe,y());else if(61===p()){h||(h=In(r));const t=y();h.gn(parseInt(t),n)}else if(62===p())fo(n,Ge,y());else if(64===p()){let e;w(b+1)===xe?(m(),e=decodeURI(t(y())),m()):e=y(),n.key=e}else if(91===p())fo(n,Ke,y());else if(94===p())fo(n,Ze,y());else if(96===p())h||(h=In(r)),on(n,y(),h);else if(63===p())h||(h=In(r)),n.slotParent=wo(h.rootVNode,y());else if(93===p())fo(n,Ne,y());else if(123===p())m(),u(no()),cl.push(n,o,l,c,s),s=0,n=l,o=l=null;else if(p()===xe){const e=t(y()),r=t(y());fo(n,e,r)}else if(125===p())m(),n.lastChild=l,s=cl.pop(),c=cl.pop(),l=cl.pop(),o=cl.pop(),n=cl.pop();else if(126===p()){const e=t(y());fo(n,Ce,e)}else{for(;fl(i)&&cn(i);)i=Bo(i);const t=i&&3===Qo(i)?i:null;null===a&&(a=t?t.nodeValue:null,f=0);let n=0;for(;ll(p());)n+=m()-97,n*=26;n+=m()-65;const e=null===a?"":a.substring(f,f+n);u(c=((t,n,e)=>new ti(-4092,null,t,null,null,n,e))(c,t,e)),f+=n}}),$){h||(h=In(r));for(let t=0;t<$.length;t++)h.ensureProjectionResolved($[t]);$=null}return n.lastChild=l,o})(n,i,e,r)}return tl(n,r)})(n,e,r,i)})(e)),r};let Lo=null;const Do=t=>(Lo||(Lo=t.hasAttribute),Lo.call(t,Ue));let Uo=null;const Wo=(t,n)=>(Uo||(Uo=t.getAttribute),Uo.call(t,n)),Qo=Gs("nodeType"),Vo=t=>{const n=Qo(t);return 3===n||1===n};let Jo=null;const Bo=t=>{for(Jo||(Jo=Xs(t,"nextSibling")),Yo||(Yo=Xs(t,"firstChild"));t;)if(null!==(t=Jo.call(t))){const n=Qo(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(Le))return sn(t,Fe,Jo,Yo);if(t.nodeValue?.startsWith(ze))return sn(t,[Fe,De],Jo,Yo);if(n?.startsWith(Ue))for(;t&&(t=Jo.call(t))&&(8!==Qo(t)||!t.nodeValue?.startsWith(We)););}}return t},Ho=Gs("parentNode");let Yo=null;const Xo=t=>{if(Yo||(Yo=Xs(t,"firstChild")),(t=t&&Yo.call(t))&&8===Qo(t)&&t.nodeValue?.startsWith(Le))return Jo||(Jo=Xs(t,"nextSibling")),sn(t,Fe,Jo,Yo);for(;t&&!Vo(t);)t=Bo(t);return t},Go=Gs("namespaceURI"),Ko=Gs("nodeName"),Zo=Gs("ownerDocument"),tl=(t,n,e)=>{let r=null;const i=()=>{for(;fl(s)&&cn(s);)s=Bo(s)};let s=n;i();let o=null;for(;s;){const n=Qo(s);let e=null;3===n?e=to(s,s.textContent??void 0):1===n&&(e=Zs(s),ho(e)),e&&(e.parent=t,o&&(o.nextSibling=e),e.previousSibling=o,o=e),r||(t.firstChild=r=o),s=Bo(s),i()}if(t.lastChild=o||null,t.firstChild=r,e){let n=null;nl(e,(e,r)=>{if(61===e()){n||(n=In(t.node));const e=r();n.gn(parseInt(e),t)}else 96===e()?(n||(n=In(t.node)),on(t,r(),n)):r()})}return r},nl=(t,n)=>{let e=0,r=0,i=0;const s=n=>n<t.length?t.charCodeAt(n):0,o=()=>0!==i?i:i=s(e),l=()=>(r=o(),i=0,e++,r),c=()=>{l();const n=e;for(;o()<=58&&0!==i||92===i||95===i||i>=65&&i<=90||i>=97&&i<=122;)l();return t.substring(n,e)};for(;0!==o();)n(o,c,l,s,e)},el=(t,n)=>{if(3&n.flags){$o(t,n);const e=[],r=n.props;if(r)for(const t in r)t.startsWith(or)||e.push(t);return e}return[]},rl=(t,n)=>{let e=il(t);for(;e;){if(e===n)return!0;e=il(e)}return!1},il=t=>t.parent||t.slotParent,sl=t=>null===t||lo(t)?null:t.node,ol=t=>48<=t&&t<=57,ll=t=>97<=t&&t<=122,cl=[],ul=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw be(26,[n])},fl=t=>t&&"object"==typeof t&&1===Qo(t),al=t=>{let n=1;for(;n--;){for(;t&&(!lo(t)||null===uo(t,qe,null));){const e=t.slotParent,r=lo(t)&&e;r&&n++,t=r||t.parent}n>0&&(t=t.parent)}return t};let hl,dl;const $l=()=>dl,pl=()=>{const t=$l();if(!t||t.bt!==He)throw be(10);return t},yl=(t,n)=>{const e=In(n),r=wo(e.rootVNode,n),i=e.wt;i&&(t=>{hl=t})(i);const s=$n(i,r,t);return s._=e,s},ml=(t,...n)=>{if("function"==typeof t){if(!dl)return t(...n);{const e=dl.vt;try{return dl.vt=void 0,t(...n)}finally{dl.vt=e}}}return Mc(t)?t.untrackedValue:Yc(t)},wl=/*#__PURE__*/dn(void 0,void 0,void 0),bl=(t,n,e,r,i)=>{const s=wl.vt,o=wl._;try{return wl.vt=$(n,e,i),wl._=r,hn(wl,t)}finally{wl.vt=s,wl._=o}},vl=(t,n,e,r,i)=>(t instanceof Hi&&t.p!==n&&n&&(t.p=n),bl(()=>t.value,n,e,r,i)),gl=()=>$l()?.p,Sl=()=>{const t=$l();if(t)return t.bt},kl=()=>{const t=$l();if(t)return t._},xl=t=>t,ql=t=>t.l||Promise.resolve(),Rl=()=>{const t=pl(),n=t.p;let e=t._.getHostProp(n,Ke);null===e&&(e=[],t._.setHostProp(n,Ke,e));let r=t._.getHostProp(n,Ze);for(null===r&&(r=0),t._.setHostProp(n,Ze,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>(te&&ou(t),e[r]=t),i:r,iCtx:t}},El=t=>/*#__PURE__*/Object.freeze({id:mr(t)}),Cl=(t,n)=>{const{val:e,set:r,iCtx:i}=Rl();void 0===e&&(te&&_l(t),te&&ou(n),i._.setContext(i.p,t,n),r(1))},jl=(t,n)=>{const{val:e,set:r,iCtx:i}=Rl();if(void 0!==e)return e;te&&_l(t);const s=i._.resolveContext(i.p,t);if("function"==typeof n)return r(an(void 0,n,s));if(void 0!==s)return r(s);if(void 0!==n)return r(n);throw be(8,[t.id])},_l=t=>{if(!pe(t)||"string"!=typeof t.id||0===t.id.length)throw be(11,[t])},Ol=t=>{const n=(()=>{const t=$l();if(!t)throw be(9);return t})(),e=n.p;if(e)return n._?.resolveContext(e,t)},Al=/*#__PURE__*/El("qk-error"),Pl=[void 0,null,!0,!1,"",$i,pi,xi,Ci,di,ys,ds,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],Nl=["undefined","null","true","false","''","EMPTY_ARRAY","EMPTY_OBJ","NEEDS_COMPUTATION","STORE_ALL_PROPS","_UNINITIALIZED","Slot","Fragment","NaN","Infinity","-Infinity","MAX_SAFE_INTEGER","MAX_SAFE_INTEGER-1","MIN_SAFE_INTEGER"],Il=["Plain","RootRef","ForwardRef","Constant","Array","Object","URL","Date","Regex","QRL","VNode","RefVNode","BigInt","URLSearchParams","ForwardRefs","Error","Promise","Set","Map","Uint8Array","Task","Component","Signal","WrappedSignal","ComputedSignal","AsyncSignal","SerializerSignal","Store","FormData","JSXNode","PropsProxy","SubscriptionData","EffectSubscription"],Ml=new WeakMap,Tl=new Map,Fl=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t.O(e);case 2:if(!t.Nt)return di;const r=t.Nt[e];return-1===r||void 0===r?di:t.O(r);case 3:return Pl[e];case 4:return Array(e.length/2);case 5:return{};case 9:{let n;if("string"==typeof e){const[r,i,s]=e.split("#");n=yn(t.O(r),t.O(i),s||null,t)}else n=yn("",e+"",null,t);return n}case 20:return new Pc(-1,-1,null,null,null,null);case 6:return new URL(e);case 7:return new Date(e);case 8:const i=e.lastIndexOf("/");return RegExp(e.slice(1,i),e.slice(i+1));case 15:return Error();case 21:return zu(null);case 22:return new li(t,0);case 23:return new Hi(t,null,null,null);case 24:return new _i(t,null);case 25:return new Ai(t,null,void 0,{interval:0});case 26:return new Ni(t,null);case 27:{const n=e,r=n[0],i=n[1],s=Fl(t,r,i),o=Gc(s,0,t);return Sc(r)&&Tl.set(s,{t:r,v:i}),n[0]=0,n[1]=s,o}case 13:return new URLSearchParams(e);case 28:return new FormData;case 29:return new Ki(null,null,null,null,0,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let s,o;const l=new Promise((t,n)=>{s=t,o=n});return Ml.set(l,[s,o]),l.catch(()=>{}),l;case 19:const c=e.length,u=3&c;return new Uint8Array(3*(c>>>2)+(u?u-1:0));case 30:return d(null);case 10:return wn(t,e);case 11:const f=wn(t,e);if(eo(f))return zo(f),sl(f);throw be(17,[typeof f]);case 31:return new Yi({});case 32:return new qi(null,null,null,null);default:throw be(18,[n])}},zl=(t,n,e)=>{let r=null,i=null;if(we(t))i=t;else{if(!me(t))throw be(7,[t]);r=t}return Eu(r,n,null,i,e)},Ll=(t,n,e)=>Eu(null,n,t,null,e),Dl=(t,n)=>Eu(null,t,null,null,n),Ul=(t,n,e)=>{const r=Dl(t,e);return r.Sn.dev=n,r},Wl=(t,n,e,r)=>{const i=zl(t,n,r);return i.Sn.dev=e,i},Ql=(t,n,e,r)=>{const i=Ll(t,n,r);return i.Sn.dev=e,i},Vl=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),Jl=(t,n,e)=>new Hi(null,t,n,e||null);class Bl{kn;xn=0;Nt=[];qn=0;Rn=new Set;En=new Map;Cn;jn=new Map;Mt;constructor(t){this.kn=t,this.Mt=t.Mt}async serialize(){await this.outputRoots()}outputArray(t,n,e){this.Mt.write("[");let r,i=!1;if(n)r=t.length;else{for(r=t.length-1;r>=0&&void 0===t[r];)r--;r++}for(let n=0;n<r;n++)i?this.Mt.write(Mr):i=!0,e(t[n],n);this.Mt.write("]")}stringNeedsJsonEscape$(t){for(let n=0;n<t.length;n++){const e=t.charCodeAt(n);if(e<32||34===e||92===e)return!0}return!1}output(t,n,e){if("number"==typeof n)this.Mt.write(t+Mr+n);else if("string"==typeof n){const e=this.stringNeedsJsonEscape$(n)?JSON.stringify(n):'"'+n+'"';this.Mt.write(t+Mr);let r=-1,i=0;for(;-1!==(r=e.indexOf("</",i));)this.Mt.write(e.slice(i,r)),this.Mt.write("<\\/"),i=r+2;this.Mt.write(0===i?e:e.slice(i))}else this.Mt.write(t+Mr),this.outputArray(n,!!e,(t,n)=>{this.writeValue(t,n)})}getSeenRefOrOutput(t,n,e){let r=this.kn.getSeenRef(t);const i=!e&&this.En.get(t);if(!r){if(e)return!0;if("number"!=typeof i)return this.kn._n(t,this.Cn,n);r=this.kn.Rt(t,!0)}r.Cn&&(this.Cn?this.kn.On(r):(this.kn.On(r,n),t=this.kn.An[n])),"number"==typeof i&&(this.Nt[i]=r.Pn,this.En.delete(t));const s=t instanceof tc?t.Nn:r.Pn;if(!this.Cn&&s===n)return r;this.output(1,s)}writeValue(t,n){if(fu(t))this.output(3,0);else switch(typeof t){case"undefined":this.output(3,0);break;case"boolean":this.output(3,t?2:3);break;case"number":Number.isNaN(t)?this.output(3,12):Number.isFinite(t)?t===Number.MAX_SAFE_INTEGER?this.output(3,15):t===Number.MAX_SAFE_INTEGER-1?this.output(3,16):t===Number.MIN_SAFE_INTEGER?this.output(3,17):this.output(0,t):this.output(3,t<0?14:13);break;case"string":0===t.length?this.output(3,4):(t.length<4||this.getSeenRefOrOutput(t,n))&&this.output(0,t);break;case"bigint":(t<1e4&&t>-1e3||this.getSeenRefOrOutput(t,n))&&this.output(12,""+t);break;case"symbol":t===xi?this.output(3,7):t===Ci?this.output(3,8):t===di&&this.output(3,9);break;case"function":if(t===ys)this.output(3,10);else if(t===ds)this.output(3,11);else if(ge(t)){if(this.getSeenRefOrOutput(t,n)){const[n,e,r]=pn(this.kn,t,!0);let i;if(""!==n){i=`${this.kn.Rt(n)}#${this.kn.Rt(e)}${r?"#"+r:""}`;const s=this.jn.get(i);if(s){const t=this.kn.Rt(s);return void this.output(1,t)}this.jn.set(i,t)}else i=+e;this.output(9,i)}}else{if(!Du(t))throw be(34,[""+t]);{const[n]=t[Lu];this.kn.In.add(n.St),this.output(21,[n])}}break;case"object":if(t===$i)this.output(3,5);else if(t===pi)this.output(3,6);else if(null===t)this.output(3,1);else if(t instanceof tc)this.output(1,t.Nn);else{const e=this.getSeenRefOrOutput(t,n);if(e){const n=this.Cn;this.Cn=e,this.writeObjectValue(t),this.Cn=n}}break;default:throw be(20,[typeof t])}}writeObjectValue(t){if(ki(t)){const n=t[fi];this.output(30,[Kl(n),n.varProps,n.constProps,t[ai].$])}else if(t instanceof Yi)this.output(31,[t.data.W,t.data.lt]);else if(t instanceof qi)this.output(32,[t.consumer,t.property,t.data]);else if(Xc(t)){const n=Vc(t),e=Jc(t),r=n.R,i=n.$,s=[];for(const t in e){const n=this.kn.h.get(e[t]);n&&s.push(n)}const o=[e,r,i,...s];for(;void 0===o[o.length-1];)o.pop();this.output(27,o)}else if(Dc(t)){const n=t[du](t);if(fr(n)){const t=this.resolvePromise(n,(t,n)=>new Hl(26,t,n,void 0,void 0));this.output(2,t)}else{const t=this.Cn.Pn;this.Cn=this.Cn.Cn,this.writeValue(n,t)}}else if((t=>{const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype})(t))if(Array.isArray(t))this.output(4,t);else{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];fu(r)||n.push(e,r)}this.output(5,n.length?n:0)}else if(this.kn.Mn(t))t.Tn.vnodeData[0]|=16,this.output(11,t.Tn.id);else if(t instanceof li){if(t instanceof Ni){const n=((t,n)=>n===xi?n:hr(t.Yt.resolved||t.Yt.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&du in n&&(e=n[du](n)),void 0===e&&(e=xi),e}))(t,t.Bt);if(fr(n)){const e=this.resolvePromise(n,(n,e)=>new Hl(26,n,e,t.$,t.Yt));this.output(2,e)}else this.output(26,[t.Yt,t.$,n]);return}if(t instanceof Hi)this.output(23,[...vn(this.kn,t),t.R,t.p,...t.$||[]]);else if(t instanceof _i){let n=t.Bt;const e=16&t.R,r=8&t.R,i=1&t.R,s=fu(t.Bt),o=t instanceof Ai,l=o&&t.Ct>0?t.Ct:void 0,c=o&&1!==t.un?t.un:void 0,u=o&&0!==t.fn?t.fn:void 0,f=o&&-25&t.R||void 0;i||s?n=xi:e?n=t.Bt:r&&(n=xi);const a=[t.Yt,t.$];o&&(a.push(t.m,t.k,t.sn),a.push(f||void 0));let h=!1;n===xi&&void 0===l&&void 0===c&&void 0===u||(a.push(n),void 0===n&&(h=!0)),o&&(a.push(l),a.push(c),a.push(u)),this.output(o?25:24,a,h)}else{const n=t.Bt,e=void 0===n,r=[n];t.$&&r.push(...t.$),this.output(22,r,e)}}else if(t instanceof URL)this.output(6,t.href);else if(t instanceof Date)this.output(7,Number.isNaN(t.valueOf())?"":t.valueOf());else if(t instanceof RegExp)this.output(8,""+t);else if(t instanceof Error){const n=[t.message];n.push(...Object.entries(t).flat()),this.output(15,n)}else if(this.kn.Fn(t)){const n=this.kn.Rt(t);this.kn.zn(t,"q:id",n+""),this.output(10,t.id);const e=t.vnodeData;if(e&&(Yl(e,t=>this.kn.Rt(t)),e[0]|=16),t.children){const n=t.children.length;for(let e=0;e<n;e++){const n=t.children[e].vnodeData;if(n){for(let t=0;t<n.length;t++){const e=n[t];if(Xl(e)){const t=gn(e);t&&this.kn.Rt(t)}}n[0]|=16}}}}else if("undefined"!=typeof FormData&&t instanceof FormData){const n=[];for(const[e,r]of t.entries())"string"==typeof r&&n.push(e,r);this.output(28,n)}else if(t instanceof URLSearchParams)this.output(13,""+t);else if(t instanceof Set)this.output(17,[...t.values()]);else if(t instanceof Map){const n=[];for(const[e,r]of t.entries())n.push(e,r);this.output(18,n)}else if(ts(t)){const n=[t.type,t.key,t.varProps,t.constProps,t.children,t.toSort||void 0];for(;void 0===n[n.length-1];)n.pop();this.output(29,n)}else if(t instanceof Pc){const n=[t.Pt,t.R,t.Pn,t.$t,t.Tt];for(;void 0===n[n.length-1];)n.pop();this.output(20,n)}else if(fr(t)){const n=this.resolvePromise(t,(t,n)=>new Hl(16,t,n));this.output(2,n)}else if(t instanceof Hl)if(26===t.Ln)if(t.Pt)this.output(26,[t.Pt,t.$,t.Dn]);else{if(!t.Un)throw console.error(t.Dn),be(33);{const n=this.Cn.Pn;this.Cn=this.Cn.Cn,this.writeValue(t.Dn,n)}}else this.output(16,[t.Un,t.Dn]);else if(t instanceof Uint8Array){let n="";const e=t.length;for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);const r=btoa(n).replace(/=+$/,"");this.output(19,r)}else if(t instanceof Gl){const n=t.Wn;if(this.getSeenRefOrOutput(n,this.Cn.Pn,!0)){let t=this.En.get(n);void 0===t&&(t=this.qn++,this.En.set(n,t),this.Nt[t]=-1),this.output(2,t)}}else{if(!eo(t))throw be(20,[typeof t]);this.output(3,0)}}resolvePromise(t,n){const e=this.qn++;return t.then(r=>{this.Rn.delete(t),this.Nt[e]=this.kn.Rt(n(!0,r))}).catch(r=>{this.Rn.delete(t),this.Nt[e]=this.kn.Rt(n(!1,r))}),this.Rn.add(t),e}async outputRoots(){this.Mt.write("[");const{An:t}=this.kn;for(;this.xn<t.length||this.Rn.size;){0!==this.xn&&this.Mt.write(Mr);let n=!1;for(;this.xn<t.length;this.xn++)n?this.Mt.write(Mr):n=!0,this.writeValue(t[this.xn],this.xn);if(this.Rn.size)try{await Promise.race(this.Rn)}catch{}}if(this.Nt.length){let t=this.Nt.length-1;for(;t>=0&&-1===this.Nt[t];)t--;if(t>=0){this.Mt.write(Mr),this.Mt.write(14+Mr);const n=t===this.Nt.length-1?this.Nt:this.Nt.slice(0,t+1);this.outputArray(n,!0,t=>{this.Mt.write(t+"")})}}this.Mt.write("]")}}class Hl{Ln;Un;Dn;$;Pt;constructor(t,n,e,r,i){this.Ln=t,this.Un=n,this.Dn=e,this.$=r,this.Pt=i}}const Yl=(t,n)=>{const e=t.length;for(let r=0;r<e;r++){const e=t[r];if(Xl(e))for(const t in e){const r=e[t];null==r||"string"==typeof r||t===Ge&&Ir(r)||n(r)}}},Xl=t=>"object"==typeof t&&null!==t&&!Ir(t);class Gl{Wn;constructor(t){this.Wn=t}}const Kl=t=>new Gl(t);let Zl=()=>!1;class tc{Nn;constructor(t){this.Nn=t}}class nc{NodeConstructor;DomRefConstructor;qt;zn;h;Mt;Qn=new Map;Vn=new Map;Jn=[];An=[];jt=new Set;At=new Set;Ot=new Set;In=new Set;Bn;constructor(t,n,e,r,i,s){this.NodeConstructor=t,this.DomRefConstructor=n,this.qt=e,this.zn=r,this.h=i,this.Mt=s,this.Bn=new Bl(this)}async It(){return await this.Bn.serialize()}getSeenRef(t){return this.Qn.get(t)}_n(t,n,e){const r={Pn:e,Cn:n};return this.Qn.set(t,r),r}Hn(t){const n=[];for(;t.Cn;)n.unshift(t.Pn),t=t.Cn;return n.unshift(t.Pn),n.join(" ")}On(t,n){const e=this.Hn(t);void 0===n&&(n=this.An.length),this.An[n]=new tc(e),t.Cn=null,t.Pn=n}Rt(t,n=!1){let e,r=this.Qn.get(t);return r?(r.Cn&&this.On(r),e=r.Pn):(e=this.An.length,r={Pn:e},this.Qn.set(t,r),this.An.push(t)),n?r:e}Fn(t){return!!this.NodeConstructor&&t instanceof this.NodeConstructor}Mn(t){return!!this.DomRefConstructor&&t instanceof this.DomRefConstructor}Yn(t){const n=this.Qn.get(t);return n&&(n.Cn?void 0:n.Pn)}xt(t,n,e){const r=null==t;r&&(t=e.serialized||""+e);let i=this.Vn.get(t);if(void 0===i)if(i=this.Jn.length,this.Vn.set(t,i),r)this.Jn.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;this.Jn.push(e+=")=>"+t)}return i}}const ec=(t,n,e,r,i,s)=>{if(!s){const t=[];s={write:n=>t.push(n),toString:()=>t.join("")}}return Zl=n?t=>t instanceof n:()=>!1,new nc(t,n,e,r,i,s)};class rc{Xn;h;wt;O;Ft;Gn=0;Kn=null;Zn=null;l=null;u=null;o=0;constructor(t,n){this.Ft=t,this.wt=n,this.Xn=Tr,this.h=new WeakMap,this.O=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,r){return vl(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return ec(t,n,e,this.setHostProp.bind(this),this.h,r)}yt(){0===this.o&&(this.u?.(),this.l=null)}}class ic{}const sc=()=>gu,oc=async t=>{const[n,e]=gu,r=await n(t);return r&&"object"==typeof r?e.r?Object.assign(e.r,r):e.r=Ln(n._,r,1):e.r=r,{r:e.r}},lc=(t,n)=>{const{val:e,set:r,iCtx:i}=Rl();if(e)return e;const s=Eu(null,"_rsc",oc,null,[t,{}],i._),o=Mi(s,{timeout:n?.timeout,container:i._,concurrency:0});o.j();const l={__brand:"resource",signal:o,get value(){return o.promise().then(()=>o.error?Promise.reject(o.error):o.value.r)},get loading(){return o.loading}};return r(l),l},cc=({value:t,onResolved:n,onPending:e,onRejected:r})=>{if(fr(t))return t.then(n,r);const i=uc(t),s=i?t.signal:t;if(e&&s.loading)return e();if(r&&s.error)return r(s.error);const o=i?s.value?.r:s.value;return fr(o)?o.then(n,r):n(o)},uc=t=>t&&"resource"===t.__brand,fc=(t,n)=>{dc("q-e:",t,n)},ac=(t,n)=>{dc("q-d:",t,n)},hc=(t,n)=>{dc("q-w:",t,n)},dc=(t,n,e)=>{const{isAdded:r,addEvent:i}=$c();if(!r&&e)if(Array.isArray(n))for(const r of n)i(t+mr(r),e);else i(t+mr(n),e)},$c=()=>{const t=pl(),n=t.p;let e=t._.getHostProp(n,rr);null===e&&(e={},t._.setHostProp(n,rr,e));let r=t._.getHostProp(n,ir);null===r&&(r=0),t._.setHostProp(n,ir,r+1);let i=t._.getHostProp(n,sr);for(null===i&&(i=[],t._.setHostProp(n,sr,i));i.length<=r;)i.push(!1);return{isAdded:i[r],addEvent:(t,n)=>{i[r]=!0;let s=e[t];s||(e[t]=s=[]),s.push(n)}}},pc=(t,n)=>{const e=yl(t,n),r=e._;let i=e.p;if(!r||!i)return;if(!r.getHostProp(i,qe)){const t=r.getParentHost(i);if(!t)return;i=t}const s=r.getHostProp(i,qe);if(s){const t=s.Sn,n=t.kt;if(n){const e=n.split("?")[0]+"?t="+Date.now();t.kt=e,t.te=void 0,s.resolved=void 0,Zt(r,i,4)}}};let yc,mc=Promise.resolve();const wc=new Set(["constructor","prototype","toString","valueOf","toJSON","then"]),bc=(t,n)=>"string"==typeof t&&"__proto__"!==t&&("function"!=typeof n||!wc.has(t)),vc=(t,n,e,r)=>{if(0!==e)switch(4!==e&&Array.isArray(r)&&(r=gc(t,r)),e){case 4:gc(t,r,n);break;case 5:if(0===r)break;for(let t=0;t<r.length;t+=2){const e=r[t],i=r[t+1];bc(e,i)&&(n[e]=i)}break;case 20:const i=n,s=r;i.Pt=s[0],i.R=s[1],i.Pn=s[2],i.$t=s[3],i.Tt=s[4];break;case 21:n[Lu][0]=r[0];break;case 27:{const e=Yc(n),i=Tl.get(e);i&&(Tl.delete(e),vc(t,e,i.t,i.v));const[,s,o]=r,l=Vc(n);l.R=s,l.$=o,Nn(l.$,e);break}case 22:{const t=n,e=r;t.Bt=e[0],t.$=new Set(e.slice(1)),Pn(t.$,t);break}case 23:{const e=n,i=r;e.ht=t.getSyncFn(i[0]),e.dt=i[1],e.Bt=xi,e.R=i[2],e.R|=1,e.p=i[3],e.$=new Set(i.slice(4)),(t=>{if(null!==t.p&&eo(t.p)){const n=t.p,e=t.$;let r=!1;if(e)for(const i of e){const e=i.property;if(me(e)){const i=uo(n,e,null);if(null!==i){t.Bt=i,r=!0;break}}}if(!r){const e=Fo(n);e&&n.firstChild===n.lastChild&&oo(e)&&(t.Bt=Mo(e))}}})(e),Pn(e.$,e);break}case 25:{const t=n,e=r;t.Yt=e[0],t.$=new Set(e[1]),t.m=new Set(e[2]),t.k=new Set(e[3]),t.sn=e[4],t.R=e[5]??0,64&t.R&&(t.rn=!0),e.length>6&&(t.Bt=e[6]),t.Bt===xi&&(t.R|=1),t.interval=e[7]??0,t.un=e[8]??1,t.fn=e[9]??0,Pn(t.$,t),Pn(t.m,t),Pn(t.k,t);break}case 26:case 24:{const i=n,s=r;i.Yt=s[0];const o=i.Yt.resolve(t).catch(()=>{});mc=mc.finally(()=>o),s[1]&&(i.$=new Set(s[1])),s.length>2&&(i.Bt=s[2]),26!==e&&i.Bt!==xi&&(i.R&=-2),Pn(i.$,i);break}case 15:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 28:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 29:{const t=n,[e,i,s,o,l,c]=r;t.type=e,t.key=i,t.varProps=s,t.constProps=o||null,t.children=l,t.toSort=!!c;break}case 17:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 18:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 16:{const t=n,[e,i]=r,[s,o]=Ml.get(t);e?s(i):o(i);break}case 19:const o=n,l=atob(r);let c=0;for(const t of l)o[c++]=t.charCodeAt(0);break;case 30:const u=n,f=r;let a=f[0];a===di&&(a=new Ki(ds,f[1],f[2],null,0,null),a._proxy=u),u[fi]=a;const h=u[ai];h.$=f[3],Nn(h.$,u);break;case 31:{const t=n;t.data.W=r[0],t.data.lt=r[1];break}case 32:{const t=n,e=r;t.consumer=e[0],t.property=e[1],t.data=e[2],(t=>{const n=import.meta.env.TEST?Wr():Xn,e=t.consumer;n&&!e||(e[Yr]||=new Map,e[Yr].set(t.property,t))})(t);break}default:throw be(16,[e])}},gc=(t,n,e=Array(n.length/2))=>{for(let r=0;r<n.length;r+=2)e[r/2]=An(t,n[r],n[r+1]);return e},Sc=t=>t>=15||4===t||5===t,kc=new WeakMap,xc=Symbol(),qc=(t,n)=>{if(!Array.isArray(n)||eo(n)||pe(e=n)&&xc in e)return n;var e;let r=kc.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new Rc(t,n)),kc.set(n,r)}return r};class Rc{_;ne;ee;constructor(t,n){this._=t,this.ne=n,this.ee=this.ne.length/2}get(t,n,e){if(n===xc)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.ee)return Reflect.get(t,n,e);const i=2*r,s=this.ne[i],o=this.ne[i+1];if(0===s)return o;const l=this._,c=Fl(l,s,o);return Reflect.set(t,n,c),this.ne[i]=0,this.ne[i+1]=c,Sc(s)&&vc(l,c,s,o),c}has(t,n){return n===xc||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===xc)return!1;const i=Reflect.set(t,n,e,r),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.ne.length/2)return i;const o=2*s;return this.ne[o]=0,this.ne[o+1]=e,!0}}const Ec=t=>33<=t&&t<=46,Cc=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===r&&Ec(e))break;123===e?r++:125===e&&r--,n++}}return n},jc=t=>t instanceof _c;class _c extends rc{element;qContainer;qManifestHash;rootVNode;document;h=new WeakMap;re;Kn;Nt=null;vNodeLocate=t=>wo(this.rootVNode,t);ie;se;oe=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(Ue),!this.qContainer)throw be(25);this.document=t.ownerDocument,this.element=t,this.Zn=t.getAttribute(Te),this.Kn=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=Zs(this.element),this.ie=[],this.se=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",i="/"+r,s="q:container-island",o="/"+s,l=t.qVNodeData||(t.qVNodeData=new WeakMap),c=t.body,u=c.getAttribute,f=c.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(c,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach(t=>{const n=t.closest("[q\\:container]");n.qVnodeData=t.textContent,n.qVNodeRefs=new Map}),t.querySelectorAll("[q\\:shadowroot]").forEach(t=>{const n=t.shadowRoot;n&&h(n)})};h(t);const d=t=>{const l=a.call(t);if(1===l)return null===u.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===l){const l=t.nodeValue||"";if(l.startsWith(s))return 65;if(l.startsWith(r))return 16;if(l.startsWith(n))return 9;if(l.startsWith(o))return 64;if(l.startsWith(i))return 32;if(l.startsWith(e))return 8}return 0},$=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},p=(n,e,r,i,s,o)=>{const c=s.length;let u=0,f=-1,a=0,h=0,y=0,m=-1,w=null;const b=()=>{let t=0;for(;Ec(y=s.charCodeAt(a))&&(t+=1<<y-33,a++,!(a>=c)););return t};do{if(r===i)return;w=null;const v=r==e?2:d(r);if(3===v){const t=r;let e=r;for(;e&&!(w=$(e));)e=e.parentNode;p(n,t,r,w,t.qVnodeData||"",t.qVNodeRefs)}else if(16===v){let t=r;do{if(t=n.nextNode(),!t)throw Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));w=null}else if(64===v){let t;w=r;do{if(w=n.nextNode(),!w)throw Error("Ignore block not closed!");t=d(w)}while(32!==t&&65!==t);w=null}else if(9===v){w=r;do{if(w=$(w),!w)throw Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(w));p(n,r,r,w,"",null)}else if(6===v){w=$(r);const n=r,e=n?.shadowRoot;e&&p(t.createTreeWalker(e,129),null,e,null,"",null)}if(!(2&~v)){if(f<u&&(-1===f&&(f=0),a=h,a<c?(f+=b(),126===y&&(m=f,a++,y=a<c?s.charCodeAt(h):33),h=Cc(s,a,c)):f=Number.MAX_SAFE_INTEGER),u===f){m===u&&o.set(u,r);const t=s.substring(a,h);l.set(r,t)}u++}}while(r=w||n.nextNode())},y=t.createTreeWalker(t,129);p(y,null,y.firstChild(),null,"",null)}(n),this.re=Me(n,this.Kn)||$i,this.le(),t.setAttribute(Ue,"resumed"),t.qContainer=this,t.qDestroy=()=>this.mn();const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.ie=JSON.parse(e[e.length-1].textContent),Qn(this.ie,this),this.se=qc(this,this.ie)),this.ce(),!ee&&t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}mn(){this.vNodeLocate=()=>null,this.ie.length=0,this.se.length=0,this.O=()=>{};const t=this.element;t.qContainer=void 0,t.qVnodeData=void 0,t.qVNodeRefs=void 0,t.removeAttribute(Ue),t.ownerDocument.qVNodeData=void 0}ce(){const t=this.element.ownerDocument,n=t.head,e=t.body.querySelectorAll(Ae),r=e.length;if(r){const i=t.createDocumentFragment();for(let t=0;t<r;t++)i.appendChild(e[t]);n.appendChild(i)}}gn(t,n){this.se[t]=n}parseQRL(t){return mn(t,this)}handleError(t,n){if(te&&n){if("undefined"!=typeof document){const e=()=>{const e=n,r=e.parent,i=e.nextSibling,s=[],o=((t,n,e,r)=>{const i=n.createElement("errored-host");r&&r instanceof Error&&(i.props={error:r}),i.setAttribute("q:key","_error_");const s=Ks(i,"errored-host");if(io(e))_o(t,s,e,null);else{const n=[];en(t,e,t=>{n.push(t)});for(let e=0;e<n.length;e++)_o(t,s,n[e],null)}return s})(s,document,e,t),l=ro(e)&&r||e;xo(s,l,o,l===e?null:i)};this.l?this.l.then(e):e()}if(t&&t instanceof Error&&("hostElement"in t||(t.hostElement=n+"")),!(t=>!(t&&t instanceof Error&&"plugin"in t))(t))throw t}const e=n&&this.resolveContext(n,Al);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,Ne);null==r&&this.setHostProp(t,Ne,r=[]),ae(r,n.id,e,0,!0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,Ne);if(null!=e&&de(e,n.id,0))return he(e,n.id,0);t=this.getParentHost(t)}}getParentHost(t){let n=t.parent;for(;n;)if(lo(n)){if(null!==uo(n,qe,null))return n;n=n.parent||n.slotParent}else n=n.parent;return null}setHostProp(t,n,e){fo(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case Ke:case Ge:case qe:case Ne:case Ie:r=this.O;break;case Ze:case ir:r=parseInt}return uo(e,n,r)}ensureProjectionResolved(t){if(!(16&t.flags)){t.flags|=16;const n=t.props;if(n)for(const t of Object.keys(n))if(_(t)){const e=n[t];if("string"==typeof e){const r=this.vNodeLocate(e);n[t]=r}}}}O=t=>Bn(t,this.se);getSyncFn(t){return this.re[t]}ue(t,n,e,r){if(r){const t=this.getHostProp(e,Pe),r=new Set((t=>t?.split(" ")??null)(t));r.add(n),this.setHostProp(e,Pe,(t=>Array.from(t).join(" "))(r))}if(null==this.oe&&(this.oe=new Set,this.element.querySelectorAll(Oe).forEach(t=>{this.oe.add(t.getAttribute(_e))})),!this.oe.has(n)){this.oe.add(n);const e=this.document.createElement("style");e.setAttribute(_e,n),e.textContent=t,this.document.head.appendChild(e)}}le(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==or&&(t[r.name]=r.value)}this.Ft={containerAttributes:t}}}const Oc=(t,n)=>{const{val:e,set:r,iCtx:i,i:s}=Rl();if(e)return;r(1);const o=new Pc(6|(!1===n?.deferUpdates?0:8),s,i.p,t,void 0,null);r(o);const l=i._,{gt:c}=i,u=hr(c,()=>Ac(o,l,i.p));fr(u)&&(i.gt=u)},Ac=(t,n,e)=>{const r=t.fe;if(r)return r;t.R&=-5;const i=t=>n.handleError(t,e);let s=null;const o=hr(((t,n)=>{const e=t.ae;if(e)return e;const r=t.mn;if(r){t.mn=null;try{const e=r();if(fr(e)){const r=Promise.resolve(e).then(()=>{},t=>{n(t)}).finally(()=>{t.ae===r&&(t.ae=void 0)});return t.ae=r,r}}catch(t){n(t)}}})(t,i),()=>{const r=$n(n.wt,e,"qTask");r._=n;const o=t.Pt.getFn(r,()=>p(n,t)),l=ji(t,n),[c]=((t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.mn=()=>{t.mn=null;let r=null;for(const t of e)try{const e=t();fr(e)&&(r||=[]).push(e.catch(n))}catch(t){n(t)}if(e=null,r?.length)return Promise.all(r).then(()=>{})}),e.push(r))},e??[]]})(t,i),u={track:l,cleanup:c};return ar(()=>o(u),c,r=>{if(fr(r))return r.then(()=>(t.fe===s&&(t.fe=null),Ac(t,n,e)));i(r)})});return fr(o)?(s=o.finally(()=>{t.fe===s&&(t.fe=null)}),t.fe=s,s):o};class Pc extends Xr{R;Pn;$t;Pt;Tt;mn;ae;fe=null;constructor(t,n,e,r,i,s){super(),this.R=t,this.Pn=n,this.$t=e,this.Pt=r,this.Tt=i,this.mn=s}}const Nc=t=>t instanceof Pc,Ic=t=>{if(!t.resolved)throw t.resolve()},Mc=t=>t instanceof li,Tc=(t,n)=>{t.add(n)},Fc=(t,n)=>{(t.backRef||=new Set).add(n)},zc=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,r=t.property;let i=null;Nc(e)?i=e.Pt:e instanceof _i?i=e.Yt:":"===r&&(i=n.getHostProp(e,qe)),i&&n.serializationCtx.At.add(i)}},Lc=(t,n,e)=>{const r=!import.meta.env.TEST||!Wr();if(e){const i=e=>{const i=e.consumer,s=e.property;if(Nc(i))i.R|=4,Zt(t,i.$t,1);else if(i instanceof li)i.invalidate();else if(":"===s)Zt(t,i,4);else if("."===s)r&&(At(i,n),Zt(t,i,2));else{const o=e.data;if(o instanceof Yi){const e=o.data,l={isConst:e.lt,scopedStyleIdPrefix:e.W,value:n};if(r)((t,n,e)=>{const r=t.props||={};let i=r[ii];i||(i=new Map,r[ii]=i),i.set(n,e)})(i,s,l);else{const t=i;let n=t.getProp(ii);n||(n=new Map,t.setProp(ii,n)),n.set(s,l)}Zt(t,i,8)}}},s=Array.from(e);for(let t=0;t<s.length;t++)i(s[t])}},Dc=t=>pe(t)&&"function"==typeof t[du],Uc=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Wc=[],Qc=t=>{if(ts(t)){if("function"==typeof t.type){const n=t.type[Lu];if(n){const[t]=n;return"Component("+t.St+")"}return"Function("+t.type.name+")"}let n="<"+t.type;if(t.props){for(const[e,r]of Object.entries(t.props))n+=" "+e+"="+zn(r);const e=t.children;null!=e?(n+=">",Array.isArray(e)?e.forEach(t=>{n+=Qc(t)}):n+=Qc(e),n+="</"+t.type+">"):n+="/>"}return n}return t+""},Vc=t=>t[Ei],Jc=t=>t?.[Ri]||null,Bc=(t,n)=>{const e=Vc(t);e&&e.force(n)},Hc=(t,n)=>{const e=Vc(t);return!!e&&(e.$?.get(n)?.size??0)>0},Yc=t=>Jc(t)||t,Xc=t=>Ri in t,Gc=(t,n,e)=>{if($e(t)&&e){let r=e.h.get(t);return r||(r=Ln(e,t,n),e.h.set(t,r)),r}return t};class Kc{R;_;$=void 0;constructor(t,n){this.R=t,this._=n}toString(){return"[Store]"}force(t){const n=Jc(this);Lc(this._,this,Wn(n,t,this.$))}get(t,n){if("symbol"==typeof n)return n===Ri?t:n===Ei?this:t[n];const e=$l(),r=t[n];if(e){if(null===this._){if(!e._)return r;this._=e._}const i=e.vt;i&&Dn(t,Array.isArray(t)?Ci:n,this,i)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.R&&pe(r)&&!Object.isFrozen(r)&&!Xc(r)&&!Object.isFrozen(t)?Gc(r,this.R,this._):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.R?Yc(e):e;return n in t?r!==t[n]&&Un(n,r,t,this):Un(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Array.isArray(t)||Lc(this._,this,Wn(t,n,this.$)),!0)}has(t,n){if(n===Ri)return!0;if("string"==typeof n){const e=$l();if(e){const r=e.vt;r&&Dn(t,Array.isArray(t)?Ci:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=$l(),e=n?.vt;return e&&Dn(t,Ci,this,e),Reflect.ownKeys(t)}getOwnPropertyDescriptor(t,n){const e=Reflect.getOwnPropertyDescriptor(t,n);return Array.isArray(t)||"symbol"==typeof n||e&&!e.configurable?e:{enumerable:!0,configurable:!0}}}const Zc=(t,n)=>t[n],tu=(t,n=new WeakSet)=>{if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return!0;if("object"==typeof t){if(n.has(t))return!0;n.add(t);const e=Object.getPrototypeOf(t);if(Xc(t)&&(t=Jc(t)),e==Object.prototype){for(const e in t)if(!tu(ml(Zc,t,e),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!tu(t[e],n))return!1;return!0}if(Nc(t))return!0;if(ki(t))return!0;if(fr(t))return!0;if(ts(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(t instanceof RegExp)return!0;if(t instanceof URLSearchParams)return!0;if(t instanceof FormData)return!0;if(t instanceof Set)return!0;if(t instanceof Map)return!0;if(t instanceof Uint8Array)return!0;if(t instanceof Yi)return!0;if(Zl?.(t))return!0}else if("function"==typeof t){if(ge(t)||Du(t)||t===ys||t===ds)return!0}else if(t===di||t===xi||t===Ci)return!0;return!1},nu=(t,n)=>{let e=eo(t)?ln.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?t+"":(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(pe(e)){if(n.has(e))return`[Circular ${e.constructor.name}]`;n.add(e)}return e},2)})(t);return e.length>500&&(e=e.slice(0,500)+'"...'),e=e.replace(/\n/g,"\n"+n),e.includes("\n")?e=`\n${n}${e}`:e};let eu=!1;const ru=(t,n=!1,e="",r=20)=>{const i=n?"":"",s=n?"":"",o=""===e,l=[];for(let o=0;o<t.length;o++){if(r&&o>2*r){l.push("...");break}const c=t[o];let u=t[++o];if(0===c){"number"!=typeof u&&"string"!=typeof u&&(eu=!0);const t=`{${pe(u)?u.constructor.name:typeof u}}`;l.push(`${i}${t}${s} ${nu(u,e+" ")}`)}else 3===c?u=su(u):"string"==typeof u?(u=JSON.stringify(u),u.length>120&&(u=u.slice(0,120)+'"...')):14===c?u=`[\n${e} ${u.join(`\n${e} `)}\n${e}]`:Array.isArray(u)&&(u=u.length?`[\n${ru(u,n,e+" ")}\n${e}]`:"[]"),l.push(`${i}${iu(c)}${s} ${u}`)}const c=l.map((t,n)=>`${e}${o?n+" ":""}${t}`).join("\n");if(o){const n=eu?"":`(${JSON.stringify(t).length} chars)`;return eu=!1,`\n${c}\n${n}`}return c},iu=t=>Il[t]||`Unknown(${t})`,su=t=>Nl[t]||`Unknown(${t})`,ou=(t,n)=>ml(lu,t,new WeakSet,"_",n),lu=(t,n,e,r)=>{const i=Yc(t);if(null==i)return t;if(uu(i)){if("object"==typeof i){if(n.has(i))return t;n.add(i)}if(Mc(i))return t;if(tu(i))return t;const s=typeof i;if("object"===s){if(fr(i))return t;if((t=>t&&"number"==typeof t.nodeType)(i))return t;if(ye(i)){let r=0;return i.forEach((t,s)=>{if(s!==r)throw be(3,[i]);lu(t,n,e+"["+s+"]"),r=s+1}),t}if(i.__brand)return t;if($e(i)){for(const[t,r]of Object.entries(i))lu(r,n,e+"."+t);return t}}let o;if(o=r||"Value cannot be serialized","_"!==e&&(o+=` in ${e},`),"object"===s)o+=` because it's an instance of "${t?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.dev/docs/advanced/dollar/`;else if("function"===s){const n=t.name;o+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${t+""});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw be(3,[o])}return t},cu=/*#__PURE__*/new WeakSet,uu=t=>!pe(t)&&!we(t)||!cu.has(t)&&!(hu in t),fu=t=>!!t&&(pe(t)||"function"==typeof t)&&(cu.has(t)||hu in t),au=t=>((pe(t)&&null!==t||"function"==typeof t)&&cu.add(t),t),hu=Symbol(),du=Symbol();class $u{kt;St;he;te;_;dev;constructor(t,n,e,r,i){this.kt=t,this.St=n,this.he=e,this.te=r,r&&this.de(r),!i||r||"string"!=typeof t||e||(this._=i),te&&(this.dev=null),t&&Yn(t,.8)}get ft(){return(t=>{const n=t.lastIndexOf("_")+1;return t.slice(n)})(this.St)}de(t){this.te=t,fr(t)&&t.then(t=>this.te=t,t=>{console.error(`qrl ${this.St} failed to load`,t),this.te=null})}$e(){if(null!=this.te)return this.te;if(""===this.kt){const t=this._.Kn,n=this._.element?.ownerDocument||document,e=Me(n,t);return this.te=e[+this.St]}this.kt&&Yn(this.kt,1);const t=this.St,n=this.he?this.he().then(n=>n[t]):Ur().importSymbol(this._?.element,this.kt,t);return this.de(n),this.te}}const pu=Symbol(),yu=t=>t?.[pu]??t;class mu{Sn;resolved=void 0;_t;_;constructor(t,n,e){if(this.Sn=t,n&&(this._t=n,"string"==typeof n&&(this._=e),te&&n&&"object"==typeof n))for(const t of n)ou(t,"Captured variable in the closure can not be serialized");null==t.te||"string"==typeof this._t||fr(t.te)||(this.resolved=qu(this,t.te))}}const wu=function(t,...n){const e=yu(this);if(e.resolved)return e.resolved.apply(t,n);const r=$l();return bu.call(e,r?._).then(()=>hn.call(t,r,e.resolved,n))},bu=async function(t){const n=yu(this);return hr(Ru(n,t),()=>n.resolved)},vu=Object.create(Function.prototype,{resolved:{get(){return this[pu].resolved},set(t){this[pu].resolved=t}},_t:{get(){return this[pu]._t},set(t){this[pu]._t=t}},_:{get(){return this[pu]._},set(t){this[pu]._=t}},Sn:{get(){return this[pu].Sn}},kt:{get(){return this[pu].Sn.kt}},St:{get(){return this[pu].Sn.St}},ft:{get(){return this[pu].Sn.ft}},dev:{get(){return this[pu].Sn.dev}},pe:{value:wu},w:{value:function(t){const n=yu(this);return Cu(new mu(n.Sn,t,n._t?n._:void 0))}},s:{value:function(t){const n=yu(this);n.Sn.de(t),n.resolved=qu(n,t)}},resolve:{value:bu},getSymbol:{value:function(){return yu(this).Sn.St}},getHash:{value:function(){return yu(this).Sn.ft}},getCaptured:{value:function(){const t=yu(this);return xu(t),t._t}},getFn:{value:function(t,n){const e=yu(this),r=(...i)=>e.resolved?n&&!1===n()?void 0:hn(t,e.resolved,i):bu.call(e).then(t=>{if(te&&!we(t))throw be(5);return r(...i)});return r}}});let gu=null;const Su=t=>{gu=t},ku=(t,n)=>{const e=[];for(const r of n.split(" "))e.push(t.O(r));return e},xu=t=>{gu=t._t;const n=t._;if("string"==typeof gu){if(!n)throw be(13);const e=mc;if(gu=t._t=ku(n,gu),mc!==e)return mc}},qu=(t,n)=>"function"==typeof n&&t._t?function(...e){return xu(t),n.apply(this,e)}:n,Ru=(t,n)=>{const e=t.Sn,r="string"==typeof t._t;if(r&&!t._&&(t._=n||$l()?._),t.resolved)return;const i=Au(),s=$l(),o=e.$e(),l=hr(o,n=>{t.resolved=qu(t,n)});l&&_u(e.St,s?.p instanceof Zr?s?.p.node:void 0,i);const c=r&&t._&&xu(t);return c?c.then(()=>l):l},Eu=(t,n,e,r,i,s)=>Cu(new mu(new $u(t,n,r,e,s),i,s)),Cu=t=>{const n=async function(...t){return wu.call(n,this,...t)};return n[pu]=t,Object.setPrototypeOf(n,vu),n},ju=/*#__PURE__*/new Set,_u=(t,n,e)=>{ju.has(t)||(ju.add(t),Ou("qsymbol",{symbol:t,element:n,reqTime:e}))},Ou=(t,n)=>{ee||Wr()||"object"!=typeof document||document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},Au=()=>ee||Wr()?0:"object"==typeof performance?performance.now():0;let Pu=0;const Nu=t=>{if(!re&&te)throw Error("Optimizer should replace all usages of $() with some special syntax. If you need to create a QRL manually, use inlinedQrl() instead.");return Eu(null,"s"+Pu++,t,null,null)},Iu=Nu,Mu=t=>t,Tu=t=>{if(!re&&te)throw Error("Optimizer should replace all usages of sync$() with some special syntax. If you need to create a QRL manually, use inlinedSyncQrl() instead.");return te&&(t=Function("return "+t)()),Eu("",ve,t,null,null)},Fu=(t,n)=>(void 0===n&&(n=""+t),t.serialized=n,Eu("",ve,t,null,null)),zu=t=>{function n(n,e,r=0){const i=(ee?"sX":t.ft.slice(0,4))+":"+(e||""),s=()=>{};return s[Lu]=[t],ss(s,n,null,n.children,r,i)}return n[Lu]=[t],n},Lu=Symbol(),Du=t=>"function"==typeof t&&void 0!==t[Lu],Uu=t=>zu(Iu(t)),Wu=Pi(Mu),Qu=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!Qr(n);)n=n.nextSibling;t=n}if(te&&t.hasAttribute(Ue))throw be(4,[t]);t.setAttribute(Ue,"resumed");const r=In(t);r.Ft=e.serverData||{};const i=r.rootVNode;return fo(i,si,n),Zt(r,i,2),await r.l,{cleanup:()=>{St(r,[],r.rootVNode)}}},Vu=(t,n)=>{const{val:e,set:r,iCtx:i}=Rl();if(null!=e)return e;const s=we(t)?an(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=i._,e=Gc(s,n?.deep??1?1:0,t);return r(e),e}},Ju=()=>{const{val:t,set:n,iCtx:e}=Rl();if(null!=t)return t;const r=e._.Zn||"",i=r?br(r).substring(0,3):"",s=e._.getHostProp(e.p,qe);let o=`${i}${s?.getHash().substring(0,3)||""}${(e._.Gn++).toString(36)||""}`,l=o.charCodeAt(0);return l>=48&&l<=57&&(l+=17,o=String.fromCharCode(l)+o.substring(1)),n(o)},Bu=/*#__PURE__*/new Map,Hu=(t,n)=>{if(te)return Yu(t,n);let e=Bu.get(n);return e||Bu.set(n,e=Yu(t,n)),e},Yu=(t,n)=>{function e(n){l.push(t.substring(f,n)),f=n}function r(t){a===ef||s()||(e(t),l.push(".",Ee,n))}function i(n){let e=0;if(t.charCodeAt(u)===vf)for(let n=1;n<10;n++)if(t.charCodeAt(u+n)===vf){e=n+1;break}t:for(let r=3;r<n.length;r++){const i=n[r];for(let n=0;n<i.length;n++)if((t.charCodeAt(u+n+e)|_f)!==i.charCodeAt(n))continue t;return u+=i.length+e,!0}return!1}function s(){return-1!==c.indexOf(ef)||-1!==c.indexOf(sf)}const o=t.length,l=[],c=[];let u=0,f=u,a=tf,h=0;for(;u<o;){const n=u;let o=t.charCodeAt(u++);o===Cf&&(u++,o=qf);const l=Mf[a];for(let d=0;d<l.length;d++){const $=l[d],[p,y,m]=$;if((p===h||p===ff||p===af&&Xu(h)||p===df&&Zu(h))&&(y===o||y===ff||y===af&&Xu(o)||y===hf&&!Xu(o)&&o!==gf||y===df&&Zu(o))&&(3==$.length||i($))){if($.length>3&&(o=t.charCodeAt(u-1)),m===cf||m==uf){m===uf&&(a!==nf||s()?Gu(o)||r(u-(y==hf?1:y==bf?2:0)):(Gu(o)?e(u-2):r(u-2),f++)),y===hf&&(u--,o=h);do{a=c.pop()||tf,a===ef&&(e(u-1),f++)}while(Ku(a))}else c.push(a),a===ef&&m===tf?(e(u-8),f=u):m===rf&&r(n),a=m;break}}h=o}return e(u),l.join("")},Xu=t=>t>=Sf&&t<=kf||t>=qf&&t<=Rf||t>=Of&&t<=Af||t>=128||t===jf||t===vf,Gu=t=>t===xf||t===gf||t===Ef||t===wf||Xu(t),Ku=t=>t===of||t===sf||t===lf||t===ef,Zu=t=>t===mf||t===$f||t===pf||t===yf,tf=0,nf=2,ef=5,rf=6,sf=10,of=11,lf=12,cf=17,uf=18,ff=0,af=1,hf=2,df=3,$f=9,pf=10,yf=13,mf=32,wf=35,bf=41,vf=45,gf=46,Sf=48,kf=57,xf=58,qf=65,Rf=90,Ef=91,Cf=92,jf=95,_f=32,Of=97,Af=122,Pf=123,Nf=125,If=/*@__PURE__*/(()=>[[ff,39,14],[ff,34,15],[ff,47,16,"*"]])(),Mf=/*@__PURE__*/(()=>[[[ff,42,nf],[ff,Ef,7],[ff,xf,rf,":","before","after","first-letter","first-line"],[ff,xf,ef,"global"],[ff,xf,3,"has","host-context","not","where","is","matches","any"],[ff,xf,4],[ff,af,1],[ff,gf,1],[ff,wf,1],[ff,64,sf,"keyframe"],[ff,64,of,"media","supports","container"],[ff,64,lf],[ff,Pf,13],[47,42,16],[ff,59,cf],[ff,Nf,cf],[ff,bf,cf],...If],[[ff,hf,uf]],[[ff,hf,uf]],[[ff,40,tf],[ff,hf,uf]],[[ff,40,8],[ff,hf,uf]],[[ff,40,tf],[ff,hf,cf]],[[ff,hf,cf]],[[ff,93,uf],[ff,39,14],[ff,34,15]],[[ff,bf,cf],...If],[[ff,Nf,cf],...If],[[ff,Nf,cf],[df,af,1],[ff,xf,ef,"global"],[ff,Pf,13],...If],[[ff,Pf,tf],[ff,59,cf],...If],[[ff,59,cf],[ff,Pf,9],...If],[[ff,Nf,cf],[ff,Pf,13],[ff,40,8],...If],[[ff,39,cf]],[[ff,34,cf]],[[42,47,cf]]])(),Tf=t=>({styleId:Df(t,t=>t,!1)}),Ff=/*#__PURE__*/Pi(Tf),zf=t=>({scopeId:Ee+Df(t,Hu,!0)}),Lf=/*#__PURE__*/Pi(zf),Df=(t,n,e)=>{const{val:r,set:i,iCtx:s,i:o}=Rl();if(r)return r;const l=(c=o,`${br(t.ft)}-${c}`);var c;const u=s.p;if(i(l),!t.resolved)throw t.resolve().then(t=>s._.ue(n(t,l),l,u,e));return s._.ue(n(t.resolved,l),l,u,e),l},Uf=t=>{const n=we(t)&&!Du(t)?an(void 0,t):t;return Fi(n)},Wf=t=>Qf(Uf,t),Qf=(t,...n)=>{const{val:e,set:r}=Rl();return null!=e?e:r(t=we(t)&&!Du(t)?ml(t,...n):t)},Vf=(t,n)=>(t.resolve(),Ii(t,n)),Jf=(t,n)=>Qf(Vf,t,n),Bf=Pi(Jf),Hf=t=>(t.resolve(),Ti(t)),Yf=t=>Qf(Hf,t),Xf=Pi(Yf),Gf=(t,n)=>{const{val:e,set:r,i,iCtx:s}=Rl(),o=n?.strategy??"intersection-observer";if(e)return void(32&e.R||Wr()||(e.R|=32,Kf(e,o)));let l;Wr()?l=1:(l=5,t.resolve(),Zt(s._,s.p,1));const c=new Pc(l,i,s.p,t,void 0,null);r(c),Kf(c,o)},Kf=(t,n)=>{"intersection-observer"===n?fc("qvisible",Zf(t)):"document-ready"===n?ac("qinit",Zf(t)):"document-idle"===n&&ac("qidle",Zf(t))},Zf=t=>Eu(null,"_task",Fn,null,[t]),ta=Pi(lc),na=/*#__PURE__*/Pi(Oc),ea=/*#__PURE__*/Pi(Gf),ra=(t,n)=>(t.resolve(),Mi(t,n)),ia=(t,n)=>Qf(ra,t,n),sa=Pi(ia),oa=()=>{const t=Vu({error:void 0});return Cl(Al,t),t},la=async({track:t})=>{const n=gu[0];t(()=>n.items);const e=$l(),r=e._;Zt(r,e.p,128),(import.meta.env.TEST?Wr():Xn)&&await r.l},ca=t=>{if(!__EXPERIMENTAL__.each)throw Error('Each is experimental and must be enabled with `experimental: ["each"]` in the `qwikVite` plugin.');return Oc(/*#__PURE__*/Ll(la,"_eaT",[t])),ms},ua=/*#__PURE__*/zu(
2
+ /*#__PURE__*/Ll(ca,"_eaC")),fa=t=>{import.meta;const n=import.meta.env.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};e.path=t?.path?.startsWith?.("/")?t.path:n+e.path;let r=aa.replace('"_URL_"',JSON.stringify(e.path.split("/").pop()));return r=r.replaceAll(/\s\s+/gm,""),is("script",null,{dangerouslySetInnerHTML:"("+r+")(navigator.serviceWorker);",nonce:e.nonce},null,0,"prefetch-service-worker")},aa=/*#__PURE__*/""+(t=>{"getRegistrations"in t&&t.getRegistrations().then(t=>{t.forEach(t=>{t.active&&t.active.scriptURL.endsWith("_URL_")&&t.unregister().catch(console.error)})}),"caches"in window&&caches.keys().then(t=>{const n=t.find(t=>t.startsWith("QwikBundles"));n&&caches.delete(n).catch(console.error)}).catch(console.error)}),ha=()=>null;globalThis.__qwik&&be(30,[globalThis.__qwik,Tr]),globalThis.__qwik=Tr,import.meta.hot&&import.meta.hot.dispose(()=>{globalThis.__qwik=void 0});export{Nu as $,ua as Each,ds as Fragment,hu as NoSerializeSymbol,ha as PrefetchGraph,fa as PrefetchServiceWorker,$s as RenderOnce,cc as Resource,bs as SSRComment,ws as SSRRaw,gs as SSRStream,vs as SSRStreamBlock,du as SerializerSymbol,ms as SkipRender,ys as Slot,ci as _CONST_PROPS,_c as _DomContainer,Yr as _EFFECT_BACK_REF,$i as _EMPTY_ARRAY,pi as _EMPTY_OBJ,hi as _IMMUTABLE,rc as _SharedContainer,Yi as _SubscriptionData,di as _UNINITIALIZED,ui as _VAR_PROPS,Cn as _addProjection,gu as _captures,g as _chk,Eu as _createQRL,Jn as _deserialize,ru as _dumpState,ca as _eaC,la as _eaT,Gt as _executeSsrChores,Jl as _fnSignal,Si as _getConstProps,kl as _getContextContainer,Sl as _getContextEvent,gl as _getContextHostElement,In as _getDomContainer,Tn as _getQContainerElement,gi as _getVarProps,Hc as _hasStoreEffects,pc as _hmr,ts as _isJSXNode,Xc as _isStore,bn as _isStringifiable,Nc as _isTask,xl as _jsxBranch,os as _jsxC,cs as _jsxQ,ls as _jsxS,is as _jsxSorted,ss as _jsxSplit,fe as _mapApp_findIndx,he as _mapArray_get,ae as _mapArray_set,Dl as _noopQrl,Ul as _noopQrlDEV,Qn as _preprocessState,Fu as _qrlSync,pn as _qrlToString,Vl as _regSymbol,On as _removeProjection,S as _res,Ol as _resolveContextWithoutSequentialScope,qs as _restProps,oc as _rsc,A as _run,Vn as _serialize,qn as _setEvent,jn as _setProjectionTarget,Fn as _task,_n as _updateProjectionProps,En as _useHmr,v as _val,ou as _verifySerializable,$o as _vnode_ensureElementInflated,el as _vnode_getAttrKeys,Fo as _vnode_getFirstChild,so as _vnode_isMaterialized,oo as _vnode_isTextVNode,lo as _vnode_isVirtualVNode,ln as _vnode_toString,ql as _waitUntilRendered,kn as _walkJSX,Vi as _wrapProp,Bi as _wrapSignal,Uu as component$,zu as componentQrl,Li as createAsync$,Mi as createAsyncQrl,zi as createComputed$,Ii as createComputedQrl,El as createContextId,k as createElement,Di as createSerializer$,Ti as createSerializerQrl,Fi as createSignal,Wu as event$,Mu as eventQrl,Bc as forceStoreEffects,In as getDomContainer,un as getLocale,Ur as getPlatform,k as h,Pi as implicit$FirstArg,Ll as inlinedQrl,Ql as inlinedQrlDEV,Gn as isBrowser,Kn as isDev,Xn as isServer,Mc as isSignal,fs as jsx,as as jsxDEV,hs as jsxs,au as noSerialize,zl as qrl,Wl as qrlDEV,Qu as render,Dr as setPlatform,Tu as sync$,ml as untrack,Yc as unwrapStore,sa as useAsync$,ia as useAsyncQrl,Bf as useComputed$,Jf as useComputedQrl,Qf as useConstant,jl as useContext,Cl as useContextProvider,oa as useErrorBoundary,Ju as useId,sc as useLexicalScope,fc as useOn,ac as useOnDocument,hc as useOnWindow,ta as useResource$,lc as useResourceQrl,Xf as useSerializer$,Yf as useSerializerQrl,Hn as useServerData,Wf as useSignal,Vu as useStore,Ff as useStyles$,Tf as useStylesQrl,Lf as useStylesScoped$,zf as useStylesScopedQrl,na as useTask$,Oc as useTaskQrl,ea as useVisibleTask$,Gf as useVisibleTaskQrl,Tr as version,fn as withLocale};