const s=document,u=window,h=new Set,f=new Set([s]);let R;const B=(t,e)=>Array.from(t.querySelectorAll(e)),j=t=>{const e=[];return f.forEach(n=>e.push(...B(n,t))),e},N=t=>{y(t),B(t,"[q\\:shadowroot]").forEach(e=>{const n=e.shadowRoot;n&&N(n)})},k=t=>t&&typeof t.then=="function";let C=!0;const P=(t,e,n=e.type)=>{let r=C;j("[on"+t+"\\:"+n+"]").forEach(o=>{r=!0,S(o,t,e,n)}),r||window[t.slice(1)].removeEventListener(n,t==="-window"?O:x)},z=t=>{if(t._qwikjson_===void 0){let e=(t===s.documentElement?s.body:t).lastElementChild;for(;e;){if(e.tagName==="SCRIPT"&&e.getAttribute("type")==="qwik/json"){t._qwikjson_=JSON.parse(e.textContent.replace(/\\x3C(\/?script)/gi,"<$1"));break}e=e.previousElementSibling}}},U=(t,e)=>new CustomEvent(t,{detail:e}),S=async(t,e,n,r=n.type)=>{const o="on"+e+":"+r;t.hasAttribute("preventdefault:"+r)&&n.preventDefault(),t.hasAttribute("stoppropagation:"+r)&&n.stopPropagation();const c=t._qc_,g=c&&c.li.filter(a=>a[0]===o);if(g&&g.length>0){for(const a of g){const p=a[1].getFn([t,n],()=>t.isConnected)(n,t),v=n.cancelBubble;k(p)&&await p,v&&n.stopPropagation()}return}const I=t.getAttribute(o);if(I){const a=t.closest("[q\\:container]"),p=a.getAttribute("q:base"),v=a.getAttribute("q:version")||"unknown",D=a.getAttribute("q:manifest-hash")||"dev",J=new URL(p,s.baseURI);for(const L of I.split(` `)){const w=new URL(L,J),M=w.href,b=w.hash.replace(/^#?([^?[|]*).*$/,"$1")||"default",V=performance.now();let l,q,_;const W=L.startsWith("#"),E={qBase:p,qManifest:D,qVersion:v,href:M,symbol:b,element:t,reqTime:V};if(W){const i=a.getAttribute("q:instance");l=(s["qFuncs_"+i]||[])[Number.parseInt(b)],l||(q="sync",_=Error("sym:"+b))}else{d("qsymbol",E);const i=w.href.split("#")[0];try{const A=import(i);z(a),l=(await A)[b],l||(q="no-symbol",_=Error(`${b} not in ${i}`))}catch(A){q||(q="async"),_=A}}if(!l){d("qerror",{importError:q,error:_,...E}),console.error(_);break}const Z=s.__q_context__;if(t.isConnected)try{s.__q_context__=[t,n,w];const i=l(n,t);k(i)&&await i}catch(i){d("qerror",{error:i,...E})}finally{s.__q_context__=Z}}}},d=(t,e)=>{s.dispatchEvent(U(t,e))},F=t=>t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase()),x=async t=>{let e=F(t.type),n=t.target;for(P("-document",t,e);n&&n.getAttribute;){const r=S(n,"",t,e);let o=t.cancelBubble;k(r)&&await r,o||(o=o||t.cancelBubble||n.hasAttribute("stoppropagation:"+t.type)),n=t.bubbles&&o!==!0?n.parentElement:null}},O=t=>{P("-window",t,F(t.type))},T=()=>{var t;const e=s.readyState;if(!R&&(e=="interactive"||e=="complete")&&(f.forEach(N),R=1,d("qinit"),((t=u.requestIdleCallback)!=null?t:u.setTimeout).bind(u)(()=>d("qidle")),h.has("qvisible"))){const n=j("[on\\:qvisible]"),r=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(r.unobserve(c.target),S(c.target,"",U("qvisible",c)))});n.forEach(o=>r.observe(o))}},m=(t,e,n,r=!1)=>{t.addEventListener(e,n,{capture:r,passive:!1})};let $;const y=(...t)=>{C=!0,clearTimeout($),$=setTimeout(()=>C=!1,2e4);for(const e of t)typeof e=="string"?h.has(e)||(f.forEach(n=>m(n,e,x,!0)),m(u,e,O,!0),h.add(e)):f.has(e)||(h.forEach(n=>m(e,n,x,!0)),f.add(e))};if(!("__q_context__"in s)){s.__q_context__=0;const t=u.qwikevents;t&&(Array.isArray(t)?y(...t):y("click","input")),u.qwikevents={events:h,roots:f,push:y},m(s,"readystatechange",T),T()}