@qwik.dev/core
Version:
An open source framework for building instant loading web apps at any scale, without the extra effort.
1 lines • 79.7 kB
JavaScript
const t=!1,n=!0,e=!1,r=(t,n,...e)=>{const r=n instanceof Error?n:new Error(n);return console.error("%cQWIK ERROR","",r.message,...e,r.stack),t&&setTimeout((()=>{throw r}),0),r},o=(t,n=[])=>{const e=(t=>`Code(Q${t}) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L${8+t}`)(t,...n);return((t,...n)=>r(!0,t,...n))(e,...n)},s="<sync>",l=t=>"function"==typeof t&&"function"==typeof t.getSymbol,i="q:renderFn",u="⚡️",c="q:slot",f="q:sparent",a="q:s",h="q:style",d="style[q\\:style]",p=d+",style[q\\:sstyle]",y="q:sstyle",$="q:ctx",w="q:brefs",b=(t,n)=>t["qFuncs_"+n]||[],m="q:base",v="q:manifest-hash",g="q:instance",k="q:container-island",S="/"+k,q="q:ignore",x="/"+q,j="q:container",P="/"+j,A="http://www.w3.org/1999/xhtml",O="http://www.w3.org/2000/svg",R="http://www.w3.org/1998/Math/MathML",C="qRender",N="q:key",I="q:props",M="q:seq",E="q:seqIdx",F=":on",W=":onIdx",_=":onFlags",L="qkssr-f",D="dangerouslySetInnerHTML",T=()=>({isServer:t,importSymbol(t,n,e){if(!n)throw o(31,[e]);if(!t)throw o(30,[n,e]);const r=U(t.ownerDocument,t,n).toString(),s=new URL(r);return s.hash="",import(s.href).then((t=>t[e]))},raf:t=>new Promise((n=>{requestAnimationFrame((()=>{n(t())}))})),nextTick:t=>new Promise((n=>{setTimeout((()=>{n(t())}))})),chunkForSymbol:(t,n)=>[t,n??"_"]}),U=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(m)??r,r);return new URL(e,o)};let z=/*#__PURE__ */T();const H=t=>z=t,V=()=>z,Q=t=>t&&"number"==typeof t.nodeType,B=t=>1===t.nodeType,J=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,G=(t,n,e)=>{try{const r=t();return J(r)?r.then(n,e):n(r)}catch(t){return e(t)}},Y=(t,n)=>J(t)?t.then(n,K):n(t),K=t=>{(t=>{throw r(!1,t,...[])})(t)},Z=t=>new Promise((n=>{setTimeout(n,t)}));function X(t,n=0){const e=e=>{if(J(e)&&n<100)return e.then(X.bind(null,t,n++));throw e};try{const n=t();return J(n)?n.catch((t=>e(t))):n}catch(t){return e(t)}}const tt=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},nt=t=>!!t&&"object"==typeof t,et=t=>Array.isArray(t),rt=t=>"string"==typeof t,ot=t=>"function"==typeof t,st=[],lt={};Object.freeze(st),Object.freeze(lt);const it=/*#__PURE__*/new Set,ut=(t,n,e=st)=>{let r=null,s=null;if(ot(t))s=t;else{if(!rt(t))throw o(12,[t]);r=t}return it.has(n)||(it.add(n),Us("qprefetch",{symbols:[n],bundles:r&&[r]})),Ls(r,n,null,s,null,e)},ct=(t,n,e=st)=>Ls(null,n,t,null,null,e),ft=(t,n=st)=>Ls(null,t,null,null,null,n),at=(t,n,e=st)=>{const r=ft(t,e);return r.dev=n,r},ht=(t,n,e,r=st)=>{const o=ut(t,n,r);return o.dev=e,o},dt=(t,n,e,r=st)=>{const o=ct(t,n,r);return o.dev=e,o},pt=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t);let yt;function $t(t){if(void 0===yt){const n=Ee();if(n&&n.t)return n.t;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return yt}function wt(t,n){const e=yt;try{return yt=t,n()}finally{yt=e}}const bt=()=>{const t=We(),n=t.o;let e=t.l.getHostProp(n,M);null===e&&(e=[],t.l.setHostProp(n,M,e));let r=t.l.getHostProp(n,E);for(null===r&&(r=0),t.l.setHostProp(n,E,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}},mt="$",vt="DOMContentLoaded",gt=t=>(t.startsWith("on")||t.startsWith("window:on")||t.startsWith("document:on"))&&t.endsWith(mt),kt=t=>t.startsWith("on:")||t.startsWith("on-window:")||t.startsWith("on-document:");function St(t){if(t.endsWith(mt)){const[n,e]=xt(t);if(-1!==e){const e=qt(t);return n+Ot(e)}}return null}function qt(t){if(t.endsWith(mt)){const[,n]=xt(t);if(-1!=n)return function(t,n=0){let e=n;const r=jt(t.charCodeAt(n));r&&e++;let o="";const s=t.substring(e,t.length-1);return s===vt?vt:(o+=r?s:s.toLowerCase(),o)}(t,n)}return null}function xt(t){let n=null,e=-1;return t.startsWith("on")?(n="on:",e=2):t.startsWith("window:on")?(n="on-window:",e=9):t.startsWith("document:on")&&(n="on-document:",e=11),[n,e]}const jt=t=>45===t,Pt=t=>{const n=t.indexOf(":");return-1!==n?t.substring(0,n):""};function At(t){return t.startsWith("preventdefault:")}const Ot=t=>t.replace(/([A-Z-])/g,"-$1").toLowerCase(),Rt=t=>(/^[\w/.-]+$/.test(t),/*#__PURE__*/Object.freeze({id:Ot(t)})),Ct=(t,n)=>{const{val:e,set:r,iCtx:o}=bt();void 0===e&&(o.l.setContext(o.o,t,n),r(1))},Nt=(t,n)=>{const{val:e,set:r,iCtx:s}=bt();if(void 0!==e)return e;const l=s.l.resolveContext(s.o,t);if("function"==typeof n)return r(Le(void 0,n,l));if(void 0!==l)return r(l);if(void 0!==n)return r(n);throw o(13,[t.id])},It=/*#__PURE__*/Rt("qk-error"),Mt="2.0.0-alpha.9-dev+56ed5bd",Et=t=>yr(xr,null,{[a]:""},t.children,0,t.name??""),Ft=Symbol("skip render"),Wt=()=>null,_t=()=>null,Lt=t=>[vr(_t,{data:"qkssr-pu"}),t.children,vr(_t,{data:"qkssr-po"})],Dt=(t,n)=>vr(jr,{children:vr(Tt,t)},n),Tt=()=>null,Ut=Symbol("invalid"),zt=Symbol("backRef");function Ht(t,n,e){t[zt]||(t[zt]=new Map);const r=t[zt];let o=r.get(n);return o||(o=[t,n],r.set(n,o)),e&&(o[3]=e),o}const Vt=t=>{if(!t.resolved)throw t.resolve()},Qt=t=>t instanceof Jt;class Bt{data;constructor(t){this.data=t}}class Jt{u;h=null;l=null;constructor(t,n){this.l=t,this.u=n}get untrackedValue(){return this.u}set untrackedValue(t){this.u=t}get value(){const t=Ee();if(t){if(null===this.l){if(!t.l)return this.untrackedValue;this.l=t.l}const n=t.p;if(n){const t=this.h||=new Set;Gt(t,n),Yt(n,this),Kt(n,this.l)}}return this.untrackedValue}set value(t){t!==this.u&&(this.u=t,Zt(this.l,this,this.h))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.u}}}const Gt=(t,n)=>{t.add(n)},Yt=(t,n)=>{t[2]||=new Set,t[2].add(n)},Kt=(t,n)=>{if(n&&!Ne(n)){const e=t[0],r=t[1];let o=null;jn(e)?o=e.$:e instanceof Xt?o=e.m:":"===r&&(o=n.getHostProp(e,i)),o&&n.serializationCtx.v.add(o)}},Zt=(t,n,e)=>{const r=Ne(t);if(e){const o=e=>{const o=e[0],s=e[1];if(jn(o)){o.k|=8;let n=3;1&o.k&&(n=32),t.S(n,o)}else if(o instanceof Jt)o instanceof Xt&&(o.m.resolved||t.S(1,null,o.m)),o.q();else if(":"===s){const n=o,e=t.getHostProp(n,i),r=t.getHostProp(n,I);t.S(6,n,e,r)}else if(r)if("."===s)t.S(4,o,o,n);else{const r=e[3];if(r instanceof Bt){const e={...r.data,j:n};t.S(5,o,s,e)}}};for(const t of e)o(t)}};class Xt extends Jt{m;k;P=!1;[zt]=null;constructor(t,n,e=1){super(t,Ut),this.m=n,this.k=e}q(){this.k|=1,this.P=!1,this.l?.S(7,null,this)}force(){this.P=!0,this.l?.S(7,null,this)}get untrackedValue(){const t=this.A();return t&&(this.P=t),this.u}A(){if(!(1&this.k))return!1;const t=this.m;Vt(t);const n=Ee(),e=n?.p;n&&(n.p=Ht(this,"."));try{const e=t.getFn(n)();if(J(e))throw o(46,[t.dev?t.dev.file:"",t.O]);this.k&=-2;const r=e!==this.u;return r&&(this.u=e),r}finally{n&&(n.p=e)}}set value(t){throw o(47)}get value(){return super.value}}class tn extends Jt{R;C;N;k;o=null;P=!1;[zt]=null;constructor(t,n,e,r,o=3){super(t,Ut),this.R=e,this.C=n,this.N=r,this.k=o}q(){this.k|=1,this.P=!1,this.l?.S(7,this.o,this)}force(){this.k|=1,this.P=!1,Zt(this.l,this,this.h)}get untrackedValue(){const t=this.A();return t&&(this.P=t),this.u}A(){if(!(1&this.k))return!1;const t=Ve((()=>this.C(...this.R)),this,".",this.l),n=t!==this.u;return n&&(this.u=t),n}set value(t){throw o(48)}get value(){return super.value}}class nn extends Xt{constructor(t,n){super(t,n)}I=!1;A(){if(!(1&this.k))return!1;Vt(this.m);let t=this.m.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,r=t.update,o=this.u===Ut?e:this.u,s=Ve((()=>this.I?r?.(o):n(o)),this,".",this.l),l=this.I&&"undefined"!==s||s!==this.u;return this.k&=-2,this.I=!0,l&&(this.u=s),l}}const en=t=>"object"==typeof t&&null!==t&&"function"==typeof t[_s],rn=Symbol("store.target"),on=Symbol("store.handler"),sn=Symbol("store.all"),ln=t=>t[on],un=t=>t?.[rn]||null,cn=t=>un(t)||t,fn=t=>rn in t;function an(t,n,e){return new Proxy(n,new dn(e,t||null))}const hn=(t,n,e)=>{if(tt(t)&&e){let r=e.M.get(t);return r||(r=an(e,t,n),e.M.set(t,r)),r}return t};class dn{k;l;h=null;constructor(t,n){this.k=t,this.l=n}toString(){return"[Store]"}get(t,n){if("symbol"==typeof n)return n===rn?t:n===on?this:t[n];const e=Ee(),r=t[n];if(e){if(null===this.l){if(!e.l)return r;this.l=e.l}const o=e.p;o&&pn(t,Array.isArray(t)?sn:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.k&&"object"==typeof r&&null!==r&&!Object.isFrozen(r)&&!fn(r)&&!Object.isFrozen(t)?hn(r,this.k,this.l):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.k?cn(e):e;return n in t?r!==t[n]&&yn(n,r,t,this):yn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Zt(this.l,this,$n(t,n,this.h)),!0)}has(t,n){if(n===rn)return!0;if("string"==typeof n){const e=Ee();if(e){const r=e.p;r&&pn(t,Array.isArray(t)?sn:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=Ee(),e=n?.p;return e&&pn(t,sn,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}}}function pn(t,n,e,r){const o=e.h||=new Map;let s=o.get(n);s||(s=new Set,o.set(n,s)),Gt(s,r),Yt(r,t),Kt(r,e.l)}function yn(t,n,e,r){e[t]=n,Zt(r.l,r,$n(e,t,r.h))}function $n(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 o=e?.get(sn);if(o){r||=new Set;for(const t of o)r.add(t)}return r||null}class wn{[zt]=null}function bn(t,n){Wr(n)&&_r(n)&&yo(n);const e=n[zt];if(e)for(const[,n]of e){const e=n[2];if(!e)return;for(const r of e)if(r instanceof Jt)mn(t,r,n);else if(t.M.has(r)){const e=t.M.get(r);vn(ln(e),n)}}}function mn(t,n,e){const r=n.h;r&&r.delete(e),n instanceof tn&&(n.o=null,bn(t,n))}function vn(t,n){const e=t?.h;if(e)for(const t of e.values())t.delete(n)}const gn=()=>{const t=Fe();let n=t.$;return n||(n=Oe(Ce(t.F)).parseQRL(decodeURIComponent(String(t.W)))),n._},kn=t=>{const{val:n,set:e,iCtx:r,i:o}=bt();if(n)return;e(1);const s=new xn(10,o,r.o,t,void 0,null);e(s);const l=r.l.S(3,s);J(l)&&l.catch((()=>{}))},Sn=(t,n,e)=>{t.k&=-9,qn(t);const r=Ue(n.t,e,void 0,"qTask");r.l=n;const s=t.$.getFn(r,(()=>bn(n,t)));let l=null;const i=r=>{"function"==typeof r&&(l||(l=[],t.L=Es((()=>{t.L=null,l.forEach((t=>{try{t()}catch(t){n.handleError(t,e)}}))}))),l.push(r))},u={track:(e,r)=>{const s=Ue();return s.p=Ht(t,":"),s.l=n,Le(s,(()=>{if(ot(e))return e();if(r)return e[r];if(Qt(e))return e.value;if(fn(e))return pn(un(e),sn,ln(e),s.p),e;throw o(2)}))},cleanup:i};return G((()=>s(u)),i,(r=>{if(J(r))return r.then((()=>Sn(t,n,e)));throw r}))},qn=t=>{const n=t.L;if(n){t.L=null;try{n()}catch(t){r(!1,t)}}};class xn extends wn{k;D;T;$;U;L;constructor(t,n,e,r,o,s){super(),this.k=t,this.D=n,this.T=e,this.$=r,this.U=o,this.L=s}}const jn=t=>t instanceof xn,Pn=(t,n)=>{const[e]=gn(),r=1&e.k?32:3;Oe(n).S(r,e)},An=t=>u+t;function On(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Rn(n))return!0;return!1}function Rn(t){return"class"===t||"className"===t}const Cn=t=>{if(t){let n=0;do{t=t.substring(0,n)+An(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},Nn=(t,n,e)=>{let r=e>>1,o=t.length-2>>1;for(;r<=o;){const e=r+(o-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:o=e-1}return~(r<<1)},In=(t,n,e,r)=>{const o=Nn(t,n,r);o>=0?null==e?t.splice(o,2):t[o+1]=e:null!=e&&t.splice(~o,0,n,e)},Mn=(t,n,e)=>{const r=Nn(t,n,e);return r>=0?t[r+1]:null},En=t=>"foreignObject"===t;function Fn(t,n,e){const r=t.ownerDocument.createElementNS(e,n),o=t.attributes;for(const t of o){const n=t.name;n&&":"!==n&&r.setAttribute(n,t.value)}return r}function Wn(t,n,e,r){Hr(t);let o=t,s=null,l=null,i=null;for(;o;){let u=null,c=null;if(_r(o)){u=o[6];const t=fo(o),s=Ho(o),f=null==l?n:s&&io(s);if(f){const t=_n(f,fo(o));e=t.elementNamespace,r=t.elementNamespaceFlag}c=Fn(u,t,e),u.remove(),null==l&&(l=c),i&&i.appendChild(c);const a=po(o);if(o[6]=c,o[0]&=-193,o[0]|=r,a){o=a,i=c;continue}if(wo(u)){const t=Re(u);if(t){const n=po(t.rootVNode);if(n){o=n,i=c;continue}}}}if(o===t)return l;const f=Wo(o);if(f)o=f;else{for(s=Ho(o);s;){if(s===t)return l;const n=Wo(s);if(n)return o=n,l;s=Ho(s)}if(null==s)return l}}return l}function _n(t,n){const e=!t||!(!fo(t)||(r=t,192&r[0]));var r;const o=!e&&En(fo(t));let s=A,l=0;const i="string"==typeof n||_r(n);return i&&function(t){return"string"==typeof t?"svg"===(n=t)||En(n):!!(64&t[0]);var n}(n)?(s=O,l=64):i&&function(t){return"string"==typeof t?"math"===t:!!(128&t[0])}(n)?(s=R,l=128):!t||o||e||(s=64&t[0]?O:128&t[0]?R:A,l=192&t[0]),{elementNamespace:s,elementNamespaceFlag:l}}const Ln=(t,n,e,r,o)=>{const s=Ue(t.t,e||void 0,void 0,C);let u;e&&(s.p=Ht(e,":"),s.l=t),t.ensureProjectionResolved(n);let c=!1;if(null===r&&(r=t.getHostProp(n,i)),l(r))(o=o||t.getHostProp(n,I)||lt).children&&delete o.children,u=r.getFn(s);else if(Zs(r)){const t=r;u=()=>De(s,t,[o||lt,null,0])}else{c=!0;const t=r;u=()=>De(s,t,[o||lt])}const f=(e=0)=>G((()=>(c||(t.setHostProp(n,E,null),t.setHostProp(n,W,null),t.setHostProp(n,I,o)),Wr(n)&&bn(t,n),u(o))),(e=>{const r=t.getHostProp(n,F);return r?function(t,n){const e=Tn(t);let r=t;return Y(e,(t=>{let e=!1;t||(e=!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(e){if("onQvisible$"===o){const[t,e]=Un(r);r=e,t&&Dn(t,"document:onQinit$",n[o])}else if(o.startsWith("document:")||o.startsWith("window:")){const[t,e]=Un(r);r=e,t&&Dn(t,o,n[o])}}else t&&Dn(t,o,n[o]);return r}))}(e,r):e}),(t=>{if(J(t)&&e<100)return t.then((()=>f(e++)));throw t}));return f()};function Dn(t,n,e){let r=t.props;r===lt&&(r=t.props={});let o=r[n];void 0===o?o=[]:Array.isArray(o)||(o=[o]),o.push(...e),r[n]=o}function Tn(t){const n=[t];for(;n.length;){const t=n.shift();if(Pr(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Array.isArray(t))n.push(...t);else{if(J(t))return Y(t,(t=>Tn(t)));if(Qt(t))return Tn(ze((()=>t.value)))}}return null}function Un(t){if(Pr(t)){const n=new qr("script",{},{type:"placeholder",hidden:""},null,3);return t.type===Et?[n,yr(Ar,null,null,[t,n],0,null)]:(null==t.children?t.children=n:Array.isArray(t.children)?t.children.push(n):t.children=[t.children,n],[n,t])}if(Array.isArray(t)&&t.length){const[n,e]=Un(t[0]);return[n,t]}return[null,null]}const zn=Symbol("CONST"),Hn=Symbol("VAR"),Vn=Symbol("IMMUTABLE");function Qn(t){return!t.startsWith("q:")&&!t.startsWith(":")}const Bn=(t,n,e={})=>{let r=null;const o=t[zn];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const s=e,l=t[Hn];for(const t in l)n.includes(t)||(s[t]=l[t]);return Rr(s,r)};function Jn(t){let n="";const e=t.length;let r=0,o=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(o,r)+"<";else if(62===e)n+=t.substring(o,r)+">";else if(38===e)n+=t.substring(o,r)+"&";else if(34===e)n+=t.substring(o,r)+""";else{if(39!==e)continue;n+=t.substring(o,r)+"'"}o=r+1}return 0===o?t:n+t.substring(o)}const Gn=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"]),Yn=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return Number(Math.abs(n)).toString(36)},Kn=t=>{if(!t)return"";if(rt(t))return t.trim();const n=[];if(et(t))for(const e of t){const t=Kn(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")};function Zn(t,n,e){if(Rn(t)){const t=Kn(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(et(t))throw o(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(e.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+Xn(e,r)))}return n.join(";")}}return String(t)})(n):function(t){return t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t)}(t)||"number"==typeof n?n=(t=>null!=t?String(t):null)(n):!1===n||null==n?n=null:!0===n&&At(t)&&(n="");return n}const Xn=(t,n)=>"number"!=typeof n||0===n||Gn.has(t)?n:n+"px",te=(t,n,e,r)=>{let s=t.H;const l=[],u=[];let a=null,h=null,d=null,p=null,y=null,$=null,b=null,m=0,v=0,g=!0;return k(n,e),function t(){for(;u.length;){const n=u.shift(),e=u.shift();if(J(n))return n.then((n=>(k(n,e),t())));k(n,e)}}();function k(n,e){for(Wr(n),Wr(e),a=e,d=null,h=po(e),O(n,!0);l.length;){for(;m<v;){if("string"==typeof b)V(b);else if("number"==typeof b)V(String(b));else if(b&&"object"==typeof b){if(Array.isArray(b))P(b,!1);else if(Qt(b))h&&bn(t,h),T(0,null),P(Qe(b,d||h,".",t),!0);else if(J(b))T(0,null),u.push(b,d||h);else if(Pr(b)){const t=b.type;"string"==typeof t?(F(),W(b,t),P(b.children,!0)):"function"==typeof t&&(t===Ar?(F(),T(0,b.key),P(b.children,!0)):t===Et?(F(),M()||P(b.children,!0)):t===re?(C(),P(b.children,!0)):t===_t||t===Wt?E():(F(),U(t)))}}else b===Ft?s=[]:V("");S()}E(),A()}}function S(){if(g){if(m++,m<v)b=$[m];else if(!1===l[l.length-1])return A();null!==d?d=null:x()}else g=!0}function q(){return h?Wo(h):null}function x(){h=q()}function P(n,e){null!=n?(O(n,e),e&&(p=null,y=null,a=d||h,h=po(a),d=null),g=!1):function(){const n=h&&po(h);if(null!==n){let e=n;for(;e;)se(t,e),e=Wo(e);co(s,h,n)}}()}function A(){l.pop()&&(p=l.pop(),y=l.pop(),d=l.pop(),h=l.pop(),a=l.pop()),b=l.pop(),v=l.pop(),m=l.pop(),$=l.pop(),S()}function O(t,n){l.push($,m,v,b),n&&l.push(a,h,d,y,p),l.push(n),Array.isArray(t)?(m=0,v=t.length,$=t,b=v>0?t[0]:null):void 0===t?(m=0,b=null,$=null,v=0):(m=0,b=t,$=null,v=1)}function R(){return d?h:q()}function C(){const n=b.key;h=To(a,n,(n=>Kr(t.rootVNode,n))),h=h&&32&h[0]?null:h,null==h&&(d=Fr(),Uo(d,c,n),Uo(d,f,a),Uo(a,n,d))}function M(){const n=Ko(a,t.rootVNode),e=function(n){const e=b,r=e.constProps;if(r&&"object"==typeof r&&"name"in r){const e=r.name;if(n&&e instanceof tn)return Qe(e,n,":",t)}return Nr(e,"name")||""}(n),r=n?To(n,e,null):null;return null==r?(so(s,a,d=Fr(),h&&R()),Uo(d,c,e),n&&Uo(n,e,d),!1):(r===h||(so(s,a,d=r,h&&R()),Uo(d,c,e),n&&Uo(n,e,d)),!0)}function E(){if(null!==h)for(;h;){const n=h;x(),a===Ho(n)&&(se(t,n),uo(s,a,n,!0))}}function F(){for(;null!==h&&Lr(h);){se(t,h);const n=h;x(),uo(s,a,n,!0)}}function W(n,e){const l=h&&_r(h)&&e===fo(h),i=n.key;let u=!1;const c=function(t){if(!t)return null;const n=t.fileName?.replace(/\\/g,"/");return n?`${n}:${t.lineNumber}:${t.columnNumber}`:null}(n.dev);l&&i===ne(h)||(d=L(e,i),null===d?u=function(n,e){const l=function(n){const e=io(a),{elementNamespace:r,elementNamespaceFlag:o}=_n(e,n),s=t.document.createElementNS(r,n);return d=Ir(s,n),d[0]|=o,s}(e),{constProps:i}=n;let u=!1;if(i)for(const n in i){let c=i[n];if(gt(n)){const t=qt(n),e=Pt(n);if(t&&(Uo(d,ue+":"+e+":"+t,c),_(t)),e){const t=St(n);t&&Lo(s,d,t,"")}u=!0}else{if("ref"===n){if(Qt(c)){c.value=l;continue}if("function"==typeof c){c(l);continue}if(null==c)continue;throw o(32,[undefined])}if(Qt(c)){const e=new Bt({B:r,J:!0});c=Qe(c,d,n,t,e)}if(n!==D)if("textarea"!==e||"value"!==n)c=Zn(n,c,r),null!=c&&l.setAttribute(n,String(c));else{if(c&&"string"!=typeof c)continue;l.value=Jn(c||"")}else l.innerHTML=c,l.setAttribute(j,"html")}}const c=n.key;return c&&(l.setAttribute(N,c),Uo(d,N,c)),!(On(n.varProps)||n.constProps&&On(n.constProps))&&r&&l.setAttribute("class",r),so(s,a,d,h),u}(n,e):(so(s,a,d,h),h=d,d=null));const f=[],p=n.varProps;for(const t in p){const n=p[t];null!=n&&In(f,t,n,0)}null!==i&&In(f,N,i,0);const y=d||h,$=y[6];$.vNode=new WeakRef(y),u=function(n,e,l){Qr(n);const i=zo(n);let u=0;const c=e.length;let f=0,a=i.length,h=u<c?e[u++]:null,d=f<a?i[f++]:null,p=!1;const y=(e,u)=>{if(e.startsWith(":"))Uo(n,e,u);else{if("ref"===e){const t=Vo(n);if(Qt(u))return void(u.value=t);if("function"==typeof u)return void u(t);throw o(32,[l])}if(Qt(u)){const o=new Bt({B:r,J:!1});u=Qe(u,n,e,t,o)}Lo(s,n,e,null!==u?Zn(e,u,r):null),null===u&&(a=i.length)}},$=(t,n)=>{const e=qt(t),r=Pt(t);if(e&&(y(":"+r+":"+e,n),_(e)),r){const n=St(t);n&&y(n,"")}};for(;null!==h||null!==d;)if(d?.startsWith(ue)||d?.startsWith("q:"))f++,d=f<a?i[f++]:null;else if(null==h)d&&kt(d)?f++:(y(d,null),f--),d=f<a?i[f++]:null;else if(null==d)gt(h)?(p=!0,$(h,e[u])):y(h,e[u]),u++,h=u<c?e[u++]:null,f++,d=f<a?i[f++]:null;else if(h==d){const t=e[u++];t!==i[f++]&&y(d,t),h=u<c?e[u++]:null,d=f<a?i[f++]:null}else h<d?(gt(h)?(p=!0,$(h,e[u])):y(h,e[u]),u++,h=u<c?e[u++]:null,f++,a=i.length,d=f<a?i[f++]:null):(kt(d)?(p=!0,f++):(y(d,null),f--),d=f<a?i[f++]:null);return p}(y,f,c)||u,u&&($.qDispatchEvent||($.qDispatchEvent=(n,e)=>{const r=n.type,o=":"+e.substring(1)+":"+r,s=[To(y,o,null),To(y,ue+o,null)];let l=!1;return s.flat(2).forEach((e=>{if(e){const r=t.S(2,y,e,[n,$]);l=l||!0===r}})),l}))}function _(n){const e=t.document.defaultView;e&&(e.qwikevents||=[]).push(n)}function L(n,e){let r=null;if(null===p){p=new Map,y=[];let o=h;for(;o;){const s=_r(o)?fo(o):null,l=ne(o)||ee(o,t.G);null===r&&l==e&&s==n?r=o:null===l?y.push(s,o):p.set(s+":"+l,o),o=Wo(o)}}else if(null===e){for(let t=0;t<y.length;t+=2)if(y[t]===n){r=y[t+1],y.splice(t,2);break}}else{const t=p.get(n+":"+e);t&&(r=t,p.delete(n+":"+e))}return r}function T(t,n){h&&Dr(h)&&ne(h)===n&&n||(null===n||(d=L(null,n),null==d)?(so(s,a,d=Fr(),h&&R()),Uo(d,N,n)):so(s,a,d,h&&R()))}function U(n){const e=n[Ks];let r=d||h;const o=b;if(e){const n=o.props;let l=!1;const[i]=e,u=i.O,f=ee(r,t.G),p=o.key||u;if(p===(ne(r)||f)?u===f&&o.key||(z(r,i,n),r=d,l=!0):(d=L(null,p),d?so(s,a,d,h):z(r,i,n),r=d,l=!0),r){const e=To(r,I,t.G);l=l||function(t,n){if(!t||!n)return!0;let e=oe(Object.keys(t),["children",w]),r=oe(Object.keys(n),["children",w]);if(e.length!==r.length)return!0;e=e.sort(),r=r.sort();for(let o=0;o<e.length;o++){const s=e[o],l=r[o];if(s!==l||t[s]!==n[l])return!0}return!1}(n,e),l&&(r[0]&=-33,t.S(6,r,i,n))}!function(t,n){const e=Array.isArray(t)?t:[t],r=t=>new qr(re,lt,null,[],0,t),o=[];if(n){const t=zo(n);for(let n=0;n<t.length;n+=2){const e=t[n];if(Qn(e)){const t=e;o.push(t),o.push(r(t))}}}if(0!==o.length||null!=t){for(let t=0;t<e.length;t++){const n=e[t],s=String(Pr(n)&&Nr(n,c)||""),l=Nn(o,s,0);let i;l>=0?i=o[l+1]:o.splice(~l,0,s,i=r(s)),!1===n||i.children.push(n)}for(let t=o.length-2;t>=0;t-=2)o.splice(t,1);P(o,!0)}}(o.children,r)}else{const e=o.key,l=e===ne(r),c=ee(r,t.G);if(l?null!=c&&(H(),r=d):(d=L(null,e),d?so(s,a,d,h):H(),r=d),r){let e=r;for(;e&&(!Dr(e)||null===To(e,i,null));)e=Ho(e);const s=Ln(t,r,e||t.rootVNode,n,o.props);u.push(s,r)}}}function z(n,e,r){n&&bn(t,n),so(s,a,d=Fr(),h&&R());const o=b;t.setHostProp(d,i,e),t.setHostProp(d,I,r),t.setHostProp(d,N,o.key)}function H(){so(s,a,d=Fr(),h&&R());const t=b;Uo(d,I,t.props),t.key&&Uo(d,N,t.key)}function V(n){if(null!==h&&3===Go(h))return n!==ao(h)?void ho(s,h,n):void 0;so(s,a,d=Er(t.document.createTextNode(n),n),h)}};function ne(t){return null==t?null:To(t,N,null)}function ee(t,n){if(null==t)return null;const e=To(t,i,n);return e?e.O:null}function re(){}function oe(t,n){for(let e=n.length-1;e>=0;e--){const r=t.indexOf(n[e]);-1!==r&&t.splice(r,1)}return t}function se(t,n){let e=n;if(Lr(n))return void ie(e);let r=null;for(;;){const o=e[0];if(3&o){if(bn(t,e),ie(e),2&o){const n=t.getHostProp(e,M);if(n)for(let e=0;e<n.length;e++){const r=n[e];if(jn(r)){const n=r;bn(t,n),1&n.k?t.S(48,n):qn(n)}}}if(2&o&&null!==To(e,i,null)){const n=zo(e);for(let e=0;e<n.length;e+=2)if(Qn(n[e])){const r=n[e+1];if(r){n[e+1]=null;const o="string"==typeof r?Kr(t.rootVNode,r):r;let s=po(o);for(;s;)se(t,s),s=Wo(s);le(t.H,o)}}}if(Tr(e)){if(e===n){const t=po(e);if(t)return void Br(t)}}else{const t=po(e);if(t){e=t;continue}}}else 4&o&&ie(e);if(e===n)return;const s=Wo(e);if(s)e=s;else{for(r=Ho(e);r;){if(r===n)return;const t=Wo(r);if(t){e=t;break}r=Ho(r)}if(null==r)return}}}function le(t,n){const e=Ho(n);e&&1&e[0]&&"q:template"===fo(e)&&uo(t,e,n,!0)}function ie(t){t[0]|=32}const ue=":",ce=t=>function(n,...e){return t.call(null,Qs(n),...e)},fe=t=>(Vt(t),new Xt(null,t)),ae=t=>(Vt(t),new nn(null,t)),he=t=>new Jt(null,t),de=/*#__PURE__*/ce(fe),pe=ce(ae),ye=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=bt();if(null!=e)return e;const l=s.l,i=we(l,n),u=new xn(12,o,s.o,t,i,null);return l.S(3,u),r(i),i},$e=t=>yr(Ar,null,null,function(t){const n=t.value;if(be(n)){{const e=n._state;if("pending"===e&&t.onPending)return Promise.resolve().then(_e(t.onPending));if("rejected"===e&&t.onRejected)return Promise.resolve(n._error).then(_e(t.onRejected));{const e=ze((()=>n._resolved));if(void 0!==e)return Promise.resolve(e).then(_e(t.onResolved))}}const e=n.value;return e?e.then(_e(t.onResolved),_e(t.onRejected)):Promise.resolve(void 0)}return J(n)?n.then(_e(t.onResolved),_e(t.onRejected)):Qt(n)?Promise.resolve(n.value).then(_e(t.onResolved),_e(t.onRejected)):Promise.resolve(n).then(_e(t.onResolved),_e(t.onRejected))}(t),0,null),we=(t,n,e)=>{const r=(t=>({__brand:"resource",value:void 0,loading:!0,_resolved:void 0,_error:void 0,_state:"pending",_timeout:t?.timeout??-1,_cache:0}))(n);return r.value=e,an(t,r,1)},be=t=>nt(t)&&"resource"===(un(t)||t).__brand,me=(t,n,e)=>{t.k&=-9,qn(t);const r=Ue(n.t,e,void 0,"qResource");r.l=n;const o=t.$.getFn(r,(()=>bn(n,t))),s=t.U,l=[];t.L=Es((()=>{l.forEach((t=>{try{t()}catch(t){n.handleError(t,e)}})),a=!0}));const i=cn(s),u={track:(e,r)=>{const o=Ue();return o.p=Ht(t,":"),o.l=n,Le(o,(()=>ot(e)?e():r?e[r]:Qt(e)?e.value:e))},cleanup(t){"function"==typeof t&&l.push(t)},cache(t){let n=0;n="immutable"===t?1/0:t,s._cache=n},previous:i._resolved};let c,f,a=!1;const h=(t,n)=>!a&&(a=!0,t?(a=!0,s.loading=!1,s._state="resolved",s._resolved=n,s._error=void 0,c(n)):(a=!0,s.loading=!1,s._state="rejected",s._error=n,f(n)),!0);l.push((()=>{if(!0===ze((()=>s.loading))){const t=ze((()=>s._resolved));h(!0,t)}})),Le(r,(()=>{s._state="pending",s.loading=!0,(s.value=new Promise(((t,n)=>{c=t,f=n}))).catch(ve)}));const d=G((()=>Promise.resolve(o(u))),(t=>{h(!0,t)}),(r=>{if(J(r))return r.then((()=>me(t,n,e)));h(!1,r)})),p=i._timeout;return p>0?Promise.race([d,Z(p).then((()=>{h(!1,new Error("timeout"))&&qn(t)}))]):d},ve=()=>{},ge=[],ke=[],Se=[],qe=[],xe=t=>t.Y||=new Promise((n=>{t.K=n})),je=(t,n,e)=>{const r=[],o=[];let s=null,l=!1;return function e(o,s=null,u=null,f=null){const a=!Ne(t),h=255!==o&&!(a&&6===o)&&2!==o,d=3===o||32===o||48===o;if(a&&(16===o||4===o||5===o))return;d&&(s.k|=8);let p={Z:o,X:d?s.D:"string"==typeof u?u:0,tt:d?s.T:s,nt:u,et:d?s:f,K:null,Y:null,rt:null,ot:!1};return p=function(t,n,e){const r=function(t,n,e){let r=0,o=t.length;for(;r<o;){const s=r+(o-r>>1),l=c(n,t[s],e);if(l<0)o=s;else{if(!(l>0))return s;r=s+1}}return~r}(t,n,e);if(r<0)return t.splice(~r,0,n),n;const o=t[r];return 4===o.Z&&(o.et=n.et),o.ot&&(o.ot=!1),o}(r,p,t.rootVNode||null),!l&&h&&(l=!0,e(16),n()?.catch?.((()=>{}))),h?xe(p):i(p,a)};function i(n,e){let o=5e3;for(;r.length;){if(o--<0)throw new Error("drainUpTo: max retries reached");if(s)return xe(s).then((()=>i(n,e))).catch((n=>{t.handleError(n,s?.tt)}));const c=r[0];if(c.ot){if(r.shift(),c===n)break}else(l=c).tt&&Wr(l.tt)&&32&l.tt[0]&&48!==c.Z?r.shift():u(c,e)}var l;return n.rt}function u(n,r){const i=n.tt;s=n;let u=null;try{switch(n.Z){case 255:r&&(l=!1);break;case 16:u=e(),l=!1;break;case 6:u=G((()=>Ln(t,i,i,n.nt,n.et)),(n=>{if(r)return n;{const e=t.getHostProp(i,y);return X((()=>te(t,n,i,Cn(e))))}}),(n=>t.handleError(n,i)));break;case 2:{const e=n.nt.getFn(),r=X((()=>e(...n.et)));if(J(r)){const e=r.finally((()=>{o.splice(o.indexOf(e),1)})).catch((e=>{t.handleError(e,n.tt)}));return o.push(e),n.rt=e,n.K?.(e),s=null,void(n.ot=!0)}u=null}break;case 3:case 32:{const e=n.et;if(4&e.k){const n=me(e,t,i);u=r?n:null}else u=Sn(e,t,i)}break;case 48:qn(n.et);break;case 4:{const e=n.nt;let r=n.et;Qt(r)&&(r=r.value),u=X((()=>te(t,r,e,null)))}break;case 5:{const e=n.tt,r=n.et;let o=r.j;Qt(o)&&(o=o.value);const s=r.J,l=t.H,i=n.X,u=Zn(i,o,r.B);s?l.push(2,e[6],i,u):Lo(l,e,i,u)}break;case 1:{const t=n.nt;u=t.resolved?null:t.resolve()}break;case 7:{const e=n.nt,r=e.P;if(e.P=!1,!e.h?.size)break;u=X((()=>{(e.A()||r)&&Zt(t,e,e.h)}))}}}catch(t){u=Promise.reject(t)}const c=(e,r)=>{s=null,n.ot=!0,r?t.handleError(r,i):(n.rt=e,n.K?.(e))};J(u)?(n.Y=u.then(c,(t=>c(void 0,t))),n.K?.(n.Y),n.K=void 0):c(u)}function c(t,n,e){const r=(240&t.Z)-(240&n.Z);if(0!==r)return r;const o=t.tt,l=n.tt;if(o!==l&&null!==o&&null!==l)if(Wr(o)&&Wr(l)){const t=((t,n,e)=>{if(t===n)return 0;let r=-1,o=-1;for(;t;)t=(ge[++r]=t)[1]||e&&To(t,f,(t=>Kr(e,t)));for(;n;)n=(ke[++o]=n)[1]||e&&To(n,f,(t=>Kr(e,t)));for(;r>=0&&o>=0;){if((t=ge[r])!==(n=ke[o])){let r=n;do{if(r=Wo(r),r===t)return 1}while(r);r=n;do{if(r=_o(r),r===t)return-1}while(r);return e&&To(n,f,(t=>Kr(e,t)))?-1:1}r--,o--}return r<o?-1:1})(o,l,e);if(0!==t)return t}else{Wr(o),Wr(l),o.toString();const t=((t,n)=>{if(t===n)return 0;let e=-1,r=-1;for(;t;)t=(Se[++e]=t).currentComponentNode;for(;n;)n=(qe[++r]=n).currentComponentNode;for(;e>=0&&r>=0;){if((t=Se[e])!==(n=qe[r]))return 1;e--,r--}return e<r?-1:1})(o,l);if(0!==t)return t}const i=(15&t.Z)-(15&n.Z);if(0!==i)return i;const u=Pe(t.X)-Pe(n.X);return 0!==u?u:t.nt!==n.nt||t.et!==n.et||n===s?1:0}},Pe=t=>"number"==typeof t?t:-1;class Ae{st;S;M;t;G;lt;it=0;ut=null;ct=null;constructor(t,n,e,r){this.lt=e,this.t=r,this.st=Mt,this.M=new WeakMap,this.G=()=>{throw Error("Not implemented")},this.S=je(this,t,n)}trackSignalValue(t,n,e,r){return Qe(t,n,e,this,r)}serializationCtxFactory(t,n,e,r,o){return as(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.M,r,o)}}function Oe(t){const n=Ce(t);if(!n)throw o(41);return Re(n)}function Re(t){let n=t.qContainer;return n||(n=new Ie(t)),n}function Ce(t){return(Array.isArray(t)?lo(t):t).closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}const Ne=t=>t instanceof Ie;class Ie extends Ae{element;qContainer;qManifestHash;rootVNode;document;H;renderDone=null;ft;M=new WeakMap;ht;ut;vNodeLocate=t=>Kr(this.rootVNode,t);dt;yt=null;$t=0;constructor(t){if(super((()=>this.scheduleRender()),(()=>oo(this.H)),{},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(j),!this.qContainer)throw o(42);this.H=[3,t.ownerDocument],this.document=t.ownerDocument,this.element=t,this.ct=t.getAttribute(m),this.ut=t.getAttribute(g),this.qManifestHash=t.getAttribute(v),this.rootVNode=Mr(this.element),this.ft=[],this.dt=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",o="/"+r,s="q:container-island",l="/"+s,i=t.qVNodeData||(t.qVNodeData=new WeakMap),u=t.body,c=u.getAttribute,f=u.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(u,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach((t=>{t.setAttribute("type","x-qwik/vnode");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 i=a.call(t);if(1===i)return null===c.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===i){const i=t.nodeValue||"";if(i.startsWith(s))return 65;if(i.startsWith(r))return 16;if(i.startsWith(n))return 5;if(i.startsWith(l))return 128;if(i.startsWith(o))return 32;if(i.startsWith(e))return 8}return 0},p=t=>33<=t&&t<=46,y=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(0===r&&p(e))break;123===e?r++:125===e&&r--,n++}return n},$=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},w=t=>{for(;t&&(t=t.firstChild)&&0===d(t););return t},b=(n,e,r,o,s,l)=>{const u=s.length;let c=0,f=-1,a=0,h=0,m=0,v=-1,g=null;const k=()=>{let t=0;for(;p(m=s.charCodeAt(a))&&(t+=1<<m-33,a++,!(a>=u)););return t};do{if(r===o)return;g=null;const p=r==e?2:d(r);if(3===p){const t=r;let e=r;for(;e&&!(g=$(e));)e=e.parentNode;b(n,t,r,g,t.qVnodeData||"",t.qVNodeRefs)}else if(16===p){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));g=null}else if(128===p){g=r;do{if(g=n.nextNode(),!g)throw new Error("Ignore block not closed!")}while(32!==d(g));g=null}else if(5===p){g=r;do{if(g=$(g),!g)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(g));b(n,r,r,g,"",null)}else if(6===p){g=$(r);const n=r,e=n?.shadowRoot;e&&b(t.createTreeWalker(e,129),null,w(e),null,"",null)}if(!(2&~p)){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=k(),126===m&&(v=f,a++,m=a<u?s.charCodeAt(h):33),h=y(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){v===c&&l.set(c,r);const t=s.substring(a,h);i.set(r,t)}c++}}while(r=g||n.nextNode())},m=t.createTreeWalker(t,129);b(m,null,m.firstChild(),null,"",null)}(n),this.ht=b(n,this.ut)||st,this.wt(),t.setAttribute(j,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.ft=JSON.parse(e[e.length-1].textContent),this.dt=ns(this,this.ft))}bt(t,n){this.dt[t]=n}parseQRL(t){return cs(this,us(t))}handleError(t,n){const e=n&&this.resolveContext(n,It);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,$);r||this.setHostProp(t,$,r=[]),In(r,n.id,e,0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,$);if(e){const t=Mn(e,n.id,0);if(t)return t}t=this.getParentHost(t)}}getParentHost(t){let n=Ho(t);for(;n;)if(Dr(n)){if(null!==To(n,i,null))return n;n=Ho(n)||To(n,f,this.vNodeLocate)}else n=Ho(n);return null}setHostProp(t,n,e){Uo(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case M:case I:case i:case $:case w:r=this.G;break;case E:case W:r=parseInt}return To(e,n,r)}scheduleRender(){return this.$t++,this.renderDone||=V().nextTick((()=>this.processChores())),this.renderDone.finally((()=>Us("qrender",{instanceHash:this.ut,renderCount:this.$t})))}processChores(){let t=this.$t;const n=this.S(255);if(J(n))return n.then((async()=>{for(;t!==this.$t;)t=this.$t,await this.S(255);this.renderDone=null}));t===this.$t?this.renderDone=null:this.processChores()}ensureProjectionResolved(t){if(!(16&t[0])){t[0]|=16;const n=zo(t);for(let t=0;t<n.length;t+=2)if(Qn(n[t])){const e=n[t+1];"string"==typeof e&&(n[t+1]=this.vNodeLocate(e))}}}G=t=>("string"==typeof t&&(t=parseFloat(t)),this.dt[t]);getSyncFn(t){return this.ht[t]}vt(t,n,e,r){if(r){const t=this.getHostProp(e,y),r=new Set(function(t){return t?.split(" ")??null}(t));r.add(n),this.setHostProp(e,y,function(t){return Array.from(t).join(" ")}(r))}if(null==this.yt&&(this.yt=new Set,this.element.querySelectorAll(d).forEach((t=>{this.yt.add(t.getAttribute(h))}))),!this.yt.has(n)){this.yt.add(n);const e=this.document.createElement("style");e.setAttribute(h,n),e.textContent=t,this.H.push(5,this.document.head,null,e)}}wt(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];":"!==r.name&&(t[r.name]=r.value)}this.lt={containerAttributes:t}}}let Me;const Ee=()=>{if(!Me){const t="undefined"!=typeof document&&document&&document.__q_context__;if(!t)return;return et(t)?document.__q_context__=Te(t):t}return Me},Fe=()=>{const t=Ee();if(!t)throw o(14);return t},We=()=>{const t=Ee();if(!t||t.gt!==C)throw o(20);return t};function _e(t){if(null==t)return t;const n=Fe();return function(...e){return De.call(this,n,t,e)}}function Le(t,n,...e){return De.call(this,t,n,e)}function De(t,n,e){const r=Me;let o;try{Me=t,o=n.apply(this,e)}finally{Me=r}return o}const Te=([t,n,e])=>{const r=Oe(t),o=Kr(r.rootVNode,t),s=r.t;return s&&function(t){yt=t}(s),Ue(s,o,t,n,e)},Ue=(t,n,e,r,o)=>({W:o,kt:0,o:n,F:e,gt:r,$:void 0,p:void 0,t:t||("object"==typeof r&&r&&"locale"in r?r.locale:void 0),l:void 0}),ze=t=>Le(void 0,t),He=/*#__PURE__*/Ue(void 0,void 0,void 0,C),Ve=(t,n,e,r,o)=>{const s=He.p,l=He.l;try{return He.p=Ht(n,e,o),He.l=r,Le(He,t)}finally{He.p=s,He.l=l}},Qe=(t,n,e,r,o)=>(t instanceof tn&&t.o!==n&&n&&(t.o=n),Ve((()=>t.value),n,e,r,o)),Be=()=>{const t=Ee();if(t){const n=t.o;let e=null;return null!=n&&(Wr(n)?_r(n)&&(e=Vo(n)):e=n),e??t.$?.St(void 0)}},Je=()=>{const t=Ee();if(t)return t.gt},Ge=t=>t,Ye=t=>{const n=Ce(t);if(!n)return Promise.resolve();const e=n.qContainer;return e?.renderDone??Promise.resolve()},Ke=(...t)=>{const[n]=gn(),e=Fe(),r=e.o;if(!r)return;const s=Oe(e.F).S;if(!s)throw o(1);return s(2,r,n,t)};class Ze{qt;xt;constructor(t,n){this.qt=t,this.xt=n}}async function Xe(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof Ze)e.currentStyleScoped=n.qt,e.parentComponentFrame=n.xt;else if("function"!=typeof n)tr(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}}})()}function tr(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(String(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(Qt(e)){t.openFragment(st);const r=t.getLastNode();n(t.closeFragment),n(Qe(e,r,".",t))}else if(J(e))t.openFragment(st),n(t.closeFragment),n(e),n(Promise),n((()=>t.commentNode(L)));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n((async()=>{for await(const n of e)await Xe(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(L)}));else{const o=e,s=o.type;if("string"==typeof s){!function(t,n){null==Nr(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const l=t.openElement(s,nr(o.varProps,o.constProps,t.serializationCtx,!0,r.styleScoped,o.key),nr(o.constProps,o.varProps,t.serializationCtx,!1,r.styleScoped),e);l&&t.htmlNode(l),n(t.closeElement),"head"===s?(n(t.additionalHeadNodes),n(t.emitQwikLoaderAtTopIfNeeded)):"body"===s&&n(t.additionalBodyNodes);const i=o.children;null!=i&&n(i)}else if(ot(s))if(s===Ar){t.openFragment(null!=o.key?[N,o.key]:st),t.addCurrentElementFrameAsComponentChild(),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(s===Et){const e=r.parentComponentFrame||t.unclaimedProjectionComponentFrameQueue.shift();if(e){const s=[];s.push(f,e.componentNode.id||""),t.openProjection(s);const l=e.componentNode,i=t.getLastNode(),u=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof tn)return Qe(n,t,":",e)}return Nr(n,"name")||""}(l,o,t);s.push(c,u),n(new Ze(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const a=o.children||null,h=e.consumeChildrenForSlot(i,u)||a;a&&h!==a&&t.addUnclaimedProjection(e,"",a),n(h),n(new Ze(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(st),t.closeFragment()}else if(s===_t)t.commentNode(Nr(o,"data")||"");else if(s===Dt){t.commentNode(L);const e=o.children;let s;s=ot(e)?e({async write(n){await Xe(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(L)}}):e,n(s),J(s)&&n(Promise)}else if(s===Wt)t.htmlNode(Nr(o,"data"));else if(Zs(s)){t.openComponent([]);const e=t.getLastNode(),l=t.getParentComponentFrame();l.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const u=((t,n,e)=>{const r=t.getLastNode(),[o]=e[Ks],s=n.props;s&&s.children&&delete s.children;const l=t.S;return r.setProp(i,o),r.setProp(I,s),null!==n.key&&r.setProp(N,n.key),l(6,r,o,s)})(t,o,s),c=Cn(e.getProp(y));n(new Ze(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),n(u),J(u)&&n(Promise),n(new Ze(c,l))}else{t.openFragment([N,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getLastNode();return Ln(t,o,n,e,r.props)})(t,e&&e.componentNode,s,o);n(r),J(r)&&n(Promise)}}}function nr(t,n,e,r,o,s){if(null==t)return null;const l=[];for(const s in t){let i=t[s];if(gt(s)){if(n){const t=rr(n,s);if(t){if(!r)continue;i=er(i,t)}}const t=or(e,s,i);t&&l.push(St(s),t)}else Qt(i)?Rn(s)?l.push(s,[i,o]):l.push(s,i):(At(s)&&lr(e,s),i=Zn(s,i,o),l.push(s,i))}return null!=s&&l.push(N,s),l}function er(t,n){let e=t;return Array.isArray(t)&&Array.isArray(n)?e=t.concat(n):Array.isArray(e)?e.push(n):Array.isArray(n)?(e=n,e.push(t)):e=[t,n],e}function rr(t,n){const e=n.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return t[n];return null}function or(t,n,e){let r=null;const o=e,s=t=>{r=(null==r?"":r+"\n")+t},i=n=>(n.jt.startsWith("_")||!n._&&!n.Pt||(n=Ls(null,"_run",Ke,null,null,[n])),ms(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(l(r))s(i(r)),sr(t,n,r);else if(null!=r){const e=or(t,n,r);e&&s(e)}}else l(o)&&(r=i(o),sr(t,n,o));return r}function sr(t,n,e){const r=qt(n);r&&(t.At.add(r),t.v.add(e))}function lr(t,n){const e=n.substring(15);e&&t.At.add(e)}const ir=t=>t.value,ur=(t,n)=>t[n],cr=t=>new tn(null,1===t.length?ir:ur,t,null),fr=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!nt(n))return n[e];if(Qt(n))return n instanceof tn&&2&n.flags?n:cr(t);if(Sr(n)){const t=n[zn];if(t&&e in t)return t[e]}else{const r=un(n);if(r){const n=r[e];return Qt(n)?n:cr(t)}}return cr(t)},ar=(t,n)=>{const e=un(t)[n];return Qt(e)?e:new tn(null,ur,[t,n],null,1)},hr=(t,n)=>{const e=fr(t,n);return e===Vn?t[n]:e},dr=(t,n,e)=>new tn(null,t,n,e||null);function pr(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const yr=(t,n,e,r,o,s)=>{const l=null==s?null:String(s);return new qr(t,n||{},e||null,r,o,l)},$r=(t,n,e,r,o,s,l)=>{let i;return i=n?Object.fromEntries(ze((()=>Object.entries(n))).filter((t=>{const n=t[0];return"children"===n?(r??=t[1],!1):"key"===n?(s=t[1],!1):!e||!(n in e)||/^on[A-Z].*\$$/.test(n)})).sort((([t],[n])=>t<n?-1:1))):"string"==typeof t?lt:{},e&&"children"in e&&(r=e.children,e.children=void 0),yr(t,i,e,r,o,s,l)},wr=(t,n,e,r)=>vr(t,n,r),br=(t,n,e,r,o)=>vr(t,{...e,...n},o),mr=(t,n,e,r,o,s)=>vr(t,{...e,...n,children:r},s),vr=(t,n,e)=>$r(t,n,null,null,0,e||null),gr=(t,n)=>{n||(n=[]);for(const e of t)et(e)?gr(e,n):n.push(e);return n};function kr(t,n,...e){const r={children:arguments.length>2?gr(e):null};let o=null;for(const t in n)"key"==t?o=n[t]:r[t]=n[t];return"string"==typeof t&&!o&&"dangerouslySetInnerHTML"in r&&(o="innerhtml"),$r(t,n,null,r.children,0,o)}const Sr=t=>t&&void 0!==t[Hn];class qr{type;varProps;constProps;children;flags;key;dev;constructor(t,n,e,r,o,s=null){this.type=t,this.varProps=n,this.constProps=e,this.children=r,this.flags=o,this.key=s}_proxy=null;get props(){return this._proxy||(this._proxy=Rr(this.varProps,this.constProps,this.children)),this._proxy}}const xr=t=>t.children,jr=(t,n)=>new qr(xr,lt,null,t.children,2,n),Pr=t=>t instanceof qr,Ar=t=>t.children,Or=(t,n,e,r,o)=>{const s=null==e?null:String(e),l=ze((()=>{const e=n.children;return"string"==typeof t&&delete n.children,e}));rt(t)&&"className"in n&&(n.class=n.className,delete n.className);const i=new qr(t,n,null,l,0,s);return i.dev={stack:(new Error).stack,...o},i};function Rr(t,n,e){return new Proxy({},new Cr(t,n,e))}class Cr{Ot;Rt;Ct;constructor(t,n,e){this.Ot=t,this.Rt=n,this.Ct=e}get(t,n){if(n===zn)return this.Rt;if(n===Hn)return this.Ot;if(null!=this.Ct&&"children"===n)return this.Ct;const e=this.Rt&&n in this.Rt?this.Rt[n]:this.Ot[n];return e instanceof tn&&2&e.k?e.value:e}set(t,n,e){return n===zn?(this.Rt=e,!0):n===Hn?(this.Ot=e,!0):(this.Rt&&n in this.Rt?this.Rt[n]=e:this.Ot[n]=e,!0)}deleteProperty(t,n){if("string"!=typeof n)return!1;let e=delete this.Ot[n];return this.Rt&&(e=delete this.Rt[n]||e),null!=this.Ct&&"children"===n&&(this.Ct=null),e}has(t,n){return"children"===n&&null!=this.Ct||n===zn||n===Hn||n in this.Ot||!!this.Rt&&n in this.Rt}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n&&null!=this.Ct?this.Ct:this.Rt&&n in this.Rt?this.Rt[n]:this.Ot[n]}}ownKeys(){const t=Object.keys(this.Ot);if(null!=this.Ct&&-1===t.indexOf("children")&&t.push("children"),this.Rt)for(const n in this.Rt)-1===t.indexOf(n)&&t.push(n);return t}}const Nr=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Ir=(t,n)=>{mo(t);const e=Zo.createElement(-247,null,null,null,null,null,t,n);return _r(e),Lr(e),Dr(e),t.vNode=new WeakRef(e),e},Mr=t=>{mo(t);const n=Zo.createElement(-255,null,null,null,void 0,void 0,t,void 0);return _r(n),Lr(n),Dr(n),t.vNode=new WeakRef(n),n},Er=(t,n)=>{const e=Zo.createText(-244,null,null,null,t,n);return mo(t),_r(e),Lr(e),Dr(e),e},Fr=()=>{const t=Zo.createVirtual(-254,null,null,null,null,null);return _r(t),Lr(t),Dr(t),t},Wr=t=>t instanceof Zo,_r=t=>!(1&~t[0]),Lr=t=>!(4&~t[0]),Dr=t=>!(2&~t[0]),Tr=t=>!(2&~t[0])&&null!==To(t,c,null),Ur=t=>(Lr(t),Vr(t),t),zr=t=>{Vr(t)},Hr=t=>(_r(t),Vr(t),t),Vr=t=>{if(t)switch(7&t[0]){case 1:return"Element";case 2:return"Virtual";case 4:return"Text"}return"<unknown>"},Qr=t=>{if(1==(15&t[0])){const n=t;n[0]^=8;const e=n[6],r=e.attributes,o=zo(n);for(let t=0;t<r.length;t++){const n=r[t],s=n.name;if(":"===s||!s)break;s.startsWith(j)?"html"===n.value?In(o,D,e.innerHTML,0):"text"===n.value&&"value"in e&&In(o,"value",e.value,0):s.startsWith("on:")||In(o,s,n.value,0)}}};function Br(t){let n=t;if(Lr(t))return;let e=null;for(;;){const r=po(n);if(r){n=r;continue}if(n===t)return;const o=Wo(n);if(o)n=o;else{for(e=Ho(n);e;){if(e===t)return;const r=Wo(e);if(r){n=r;break}e=Ho(e)}if(null==e)return}}}function Jr(t,n,e=!1,r=[]){if((t=>!!(5&t[0]))(n))return Lr(n)&&Yr(t,n),r.push(e?n:Vo(n)),r;let o=po(n);for(;o;)_r(o)?r.push(e?o:Vo(o)):Lr(o)?(Yr(t,o),r.push(e?o:Vo(o))):Jr(t,o,!!e,r),o=Wo(o);return r}const Gr=(t,n,e)=>{const r=n?4:5,o=n?3:2;let s=t;for(;e&&s&&Dr(s);){const t=s[r];if(!t)break;if(5&t[0])return t;s=t}for(;s;){let t=s[o];if(t&&5&t[0])return t;if(!t){let n=s[1];if(n&&!Dr(n))return null;for(;n&&!(t=n[o]);)if(n=n[1],n&&!Dr(n))return null;if(!t)return null;if(Lr(t)&&n&&_r(n))return null}for(;t;){if(s=t,5&s[0]&&Vo(s))return s;t=s[r]}}return null},Yr=(t,n)=>{const e=Ur(n);if(!(8&e[0])){const r=lo(n),o=e[4],s=r.ownerDocument;let l=Gr(n,!1,!0);const i=o||Gr(n,!0,!0)?.[6]||null;let u=i;for(;l&&Lr(l);){if(!(8&l[0])){const n=s.createTextNode(l[5]);t.push(5,r,u,n),u=n,l[4]=n,l[0]|=8}l=Gr(l,!1,!0)}for(l=n;l&&Lr(l);){const n=Gr(l,!0,!0),e=!n||!Lr(n);if(!(8&l[0])){if(e&&o)t.push(1,o,l[5]);else{const n=s.createTextNode(l[5]);t.push(5,r,i,n),l[4]=n}l[0]|=8}l=n}}},Kr=(t,n)=>{Hr(t);let e=t;const r=t[6],{qVNodeRefs:o}=r;let s,l=-1;if("string"==typeof n)l=parseInt(n),s=o.get(l);else{s=n;const t=s.vNode?.deref();if(t)return t}if(Wr(s))e=s;else{r.contains(s);let t=s;const n=[s];for(;t&&t!==r;)t=t.parentElement,n.push(t);for(let t=n.length-2;t>=0;t--)e=to(e,n[t]);-1!=l&&o.set(l,e)}if("string"==typeof n){const t=n.length;let r=no(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=Zr(e,o),o=0),r++}}return e},Zr=(t,n)=>{let e=po(t);for(;e[0]>>>8!==n;)e=Wo(e);return e},Xr=[],to=(t,n)=>{Hr(t);let e=po(t);for(;e&&e[6]!==n;)if(Dr(e)){const t=Wo(e),n=po(e);n?(t&&Xr.push(t),e=n):e=t||(Xr.length?Xr.pop():null)}else{const t=Wo(e);e=t||t||Xr.pop()}for(;Xr.length;)Xr.pop();return Hr(e),e},no=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},eo=t=>"false"!==t&&Boolean(t),ro=(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,oo=t=>{let n=0;const e=t.length;for(;n<e;)switch(t[n++]){case 1:t[n++].nodeValue=t[n++];break;case 2:const r=t[n++];let o=t[n++];"className"===o&&(o="class");const s=t[n++];ro(r,o)?r[o]=eo(s):"value"===o&&o in r?r.value=String(s):o===D?(r.innerHTML=s,r.setAttribute(j,"html")):null==s||!1===s?r.removeAttribute(o):r.setAttribute(o,String(s));break;case 3:const l=t[n++],i=l.head,u=l.querySelectorAll(p);for(let t=0;t<u.length;t++)i.appendChild(u[t]);break;case 4:const c=t[n++];let f;for(;n<e&&"number"!=typeof(f=t[n]);)c.removeChild(f),n++;break;case 5:const a=t[n++],h=t[n++];let d;for(;n<e&&"number"!=typeof(d=t[n]);)a.insertBefore(d,h),n++}t.length=0},so=(t,n,e,r)=>{zr(n),_r(n)&&yo(n);const o=e[1];if(e===r){if(o)return;r=null}o&&(e[2]||e[3]||o!==n)&&uo(t,o,e,!1);let s=null;null==r?Dr(n)&&(s=Gr(n,!0,!1)):s=Dr(r)?Gr(r,!0,!0):r,s&&((t,n)=>{Lr(n)&&Yr(t,n)})(t,s);const l=io(n),i=l&&l[6];if(i){const n=function(t,n,e){const{elementNamespace:r,elementNamespaceFlag:o}=_n(n,e);let s=[];if(r===A)s=Jr(t,e);else{const l=Jr(t,e,!0);for(let t=0;t<l.length;t++){const e=l[t];if(Lr(e)){s.push(e[4]);continue}if((192&e[0])==(192&n[0])){s.push(e[6]);continue}const i=Wn(e,n,r,o);i&&s.push(i)}}return s}(t,l,e);n.length&&t.push(5,i,Vo(s),...n)}const u=r,c=u?u[2]:n[5];u?u[2]=e:n[5]=e,c?c[3]=e:n[4]=e,e[2]=c,e[3]=u,e[1]=n},lo=t=>(t=io(t))&&t[6],io=t=>{for(;t&&!_r(t);)t=t[1];return t},uo=(t,n,e,r)=>{if(Ho(e),Lr(e)&&Yr(t,e),r){const r=lo(n);if(Do(n,D))return;const o=Jr(t,e);r&&o.length&&t.push(4,r,...o)}const o=e[2],s=e[3];o?o[3]=s:n[4]=s,s?s[2]=o:n[5]=o,e[2]=null,e[3]=null},co=(t,n,e)=>{const r=lo(n),o=Jr(t,e);r&&o.length&&t.push(4,r,...o);const s=e[2];s?s[3]=null:n[4]=null,n[5]=s},fo=t=>{const n=Hr(t);let e=n[7];if(void 0===e){const t=n[6],r=Co(t).toLowerCase();e=n[7]=r,n[0]|=(t=>{switch(Oo(t)){case O:return 64;case R:return 128;default:return 0}})(t)}return e},ao=t=>{const n=Ur(t);let e=n[5];return void 0===e&&(e=n[5]=n[4].nodeValue),e},ho=(t,n,e)=>{Yr(t,n),t.push(1,n[4],n[5]=e)},po=t=>{if(Lr(t))return null;let n=t[4];return void 0===n&&(n=yo(t)),n},yo=t=>{const n=Hr(t);let e=n[4];return void 0===e&&(e=n[1]&&wo(n[6])?n[4]=n[5]=null:(t=>{const n=t[6],e=Po(n),r=n.ownerDocument?.qVNodeData?.get(n);return((t,n,e,r)=>{if(r){if(124===r.charCodeAt(0)){const n=1;let o=1;for(;124!==r.charCodeAt(o);)o++;const s=r.substring(n,o);r=r.substring(o+1);const l=Mo(t,e,s);if(!r)return l}return function(t,n,e,r){let s=0,l=null,u=null,a=null;const h=n=>{n[0]=255&n[0]|s<<8,s++,u&&(u[3]=n),n[2]=u,n[1]=t,l||(t[4]=l=n),u=n};let d=0,p=null,w=null;return Fo(n,((b,m,v,g)=>{if(Qo(b())){for(;!Yo