@qwik.dev/core 2.0.0-beta.10 → 2.0.0-beta.11

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/loader",
3
- "version": "2.0.0-beta.10-dev+4669425",
3
+ "version": "2.0.0-beta.11-dev+d7daca3",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -1,29 +1,29 @@
1
- var Gr=Object.create;var $t=Object.defineProperty;var Kr=Object.getOwnPropertyDescriptor;var Qr=Object.getOwnPropertyNames;var Jr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty;var Xr=(J,Z,se,ue)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let ae of Qr(Z))!Yr.call(J,ae)&&ae!==se&&$t(J,ae,{get:()=>Z[ae],enumerable:!(ue=Kr(Z,ae))||ue.enumerable});return J};var tt=(J,Z,se)=>(se=J!=null?Gr(Jr(J)):{},Xr(Z||!J||!J.__esModule?$t(se,"default",{value:J,enumerable:!0}):se,J));globalThis.qwikOptimizer=(function(J){/**
1
+ var Jr=Object.create;var Rt=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var Xr=Object.getOwnPropertyNames;var Vr=Object.getPrototypeOf,Zr=Object.prototype.hasOwnProperty;var eo=(J,V,ae,pe)=>{if(V&&typeof V=="object"||typeof V=="function")for(let le of Xr(V))!Zr.call(J,le)&&le!==ae&&Rt(J,le,{get:()=>V[le],enumerable:!(pe=Yr(V,le))||pe.enumerable});return J};var nt=(J,V,ae)=>(ae=J!=null?Jr(Vr(J)):{},eo(V||!J||!J.__esModule?Rt(ae,"default",{value:J,enumerable:!0}):ae,J));globalThis.qwikOptimizer=(function(J){/**
2
2
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.10-dev+4669425
3
+ * @qwik.dev/core/optimizer 2.0.0-beta.11-dev+d7daca3
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
7
- */"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Z(e={}){function n(p){if(typeof p!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(p))}function i(p,l){let s="",b=0,h=-1,I=0,w;for(let T=0;T<=p.length;++T){if(T<p.length)w=p.charCodeAt(T);else{if(w===47)break;w=47}if(w===47){if(!(h===T-1||I===1))if(h!==T-1&&I===2){if(s.length<2||b!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){const E=s.lastIndexOf("/");if(E!==s.length-1){E===-1?(s="",b=0):(s=s.slice(0,E),b=s.length-1-s.lastIndexOf("/")),h=T,I=0;continue}}else if(s.length===2||s.length===1){s="",b=0,h=T,I=0;continue}}l&&(s.length>0?s+="/..":s="..",b=2)}else s.length>0?s+="/"+p.slice(h+1,T):s=p.slice(h+1,T),b=T-h-1;h=T,I=0}else w===46&&I!==-1?++I:I=-1}return s}function r(p,l){const s=l.dir||l.root,b=l.base||(l.name||"")+(l.ext||"");return s?s===l.root?s+b:s+p+b:b}const o=function(...l){let s="",b=!1,h;for(let I=l.length-1;I>=-1&&!b;I--){let w;I>=0?w=l[I]:(h===void 0&&(e&&typeof e.cwd=="function"?h=e.cwd():typeof process<"u"&&typeof process.cwd=="function"?h=process.cwd():h="/"),w=h),n(w),w.length!==0&&(s=w+"/"+s,b=w.charCodeAt(0)===47)}return s=i(s,!b),b?s.length>0?"/"+s:"/":s.length>0?s:"."},d=function(l){if(n(l),l.length===0)return".";const s=l.charCodeAt(0)===47,b=l.charCodeAt(l.length-1)===47;return l=i(l,!s),l.length===0&&!s&&(l="."),l.length>0&&b&&(l+="/"),s?"/"+l:l},c=function(l){return n(l),l.length>0&&l.charCodeAt(0)===47},a=function(...l){if(l.length===0)return".";let s;for(let b=0;b<l.length;++b){const h=l[b];n(h),h.length>0&&(s===void 0?s=h:s+="/"+h)}return s===void 0?".":d(s)},f=function(l,s){if(n(l),n(s),l===s||(l=o(l),s=o(s),l===s))return"";let b=1;for(;b<l.length&&l.charCodeAt(b)===47;++b);const h=l.length,I=h-b;let w=1;for(;w<s.length&&s.charCodeAt(w)===47;++w);const E=s.length-w,P=I<E?I:E;let U=-1,j=0;for(;j<=P;++j){if(j===P){if(E>P){if(s.charCodeAt(w+j)===47)return s.slice(w+j+1);if(j===0)return s.slice(w+j)}else I>P&&(l.charCodeAt(b+j)===47?U=j:j===0&&(U=0));break}const H=l.charCodeAt(b+j),Y=s.charCodeAt(w+j);if(H!==Y)break;H===47&&(U=j)}let R="";for(j=b+U+1;j<=h;++j)(j===h||l.charCodeAt(j)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+s.slice(w+U):(w+=U,s.charCodeAt(w)===47&&++w,s.slice(w))},t=function(l){if(n(l),l.length===0)return".";let s=l.charCodeAt(0);const b=s===47;let h=-1,I=!0;for(let w=l.length-1;w>=1;--w)if(s=l.charCodeAt(w),s===47){if(!I){h=w;break}}else I=!1;return h===-1?b?"/":".":b&&h===1?"//":l.slice(0,h)},x=function(l,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');n(l);let b=0,h=-1,I=!0,w;if(s!==void 0&&s.length>0&&s.length<=l.length){if(s.length===l.length&&s===l)return"";let T=s.length-1,E=-1;for(w=l.length-1;w>=0;--w){const P=l.charCodeAt(w);if(P===47){if(!I){b=w+1;break}}else E===-1&&(I=!1,E=w+1),T>=0&&(P===s.charCodeAt(T)?--T===-1&&(h=w):(T=-1,h=E))}return b===h?h=E:h===-1&&(h=l.length),l.slice(b,h)}else{for(w=l.length-1;w>=0;--w)if(l.charCodeAt(w)===47){if(!I){b=w+1;break}}else h===-1&&(I=!1,h=w+1);return h===-1?"":l.slice(b,h)}},S=function(l){n(l);let s=-1,b=0,h=-1,I=!0,w=0;for(let T=l.length-1;T>=0;--T){const E=l.charCodeAt(T);if(E===47){if(!I){b=T+1;break}continue}h===-1&&(I=!1,h=T+1),E===46?s===-1?s=T:w!==1&&(w=1):s!==-1&&(w=-1)}return s===-1||h===-1||w===0||w===1&&s===h-1&&s===b+1?"":l.slice(s,h)},u=function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return r("/",l)},v=function(l){n(l);const s={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return s;let b=l.charCodeAt(0),h;const I=b===47;I?(s.root="/",h=1):h=0;let w=-1,T=0,E=-1,P=!0,U=l.length-1,j=0;for(;U>=h;--U){if(b=l.charCodeAt(U),b===47){if(!P){T=U+1;break}continue}E===-1&&(P=!1,E=U+1),b===46?w===-1?w=U:j!==1&&(j=1):w!==-1&&(j=-1)}return w===-1||E===-1||j===0||j===1&&w===E-1&&w===T+1?E!==-1&&(T===0&&I?s.base=s.name=l.slice(1,E):s.base=s.name=l.slice(T,E)):(T===0&&I?(s.name=l.slice(1,w),s.base=l.slice(1,E)):(s.name=l.slice(T,w),s.base=l.slice(T,E)),s.ext=l.slice(w,E)),T>0?s.dir=l.slice(0,T-1):I&&(s.dir="/"),s},m="/",g=":";return{relative:f,resolve:o,parse:v,format:u,join:a,isAbsolute:c,basename:x,normalize:d,dirname:t,extname:S,delimiter:g,sep:m,win32:null,posix:{relative:f,resolve:o,parse:v,format:u,join:a,isAbsolute:c,basename:x,normalize:d,dirname:t,extname:S,delimiter:g,sep:m,win32:null,posix:null}}}const se={darwin:{arm64:[{platform:"darwin",arch:"arm64",abi:null,platformArchABI:"qwik.darwin-arm64.node"}],x64:[{platform:"darwin",arch:"x64",abi:null,platformArchABI:"qwik.darwin-x64.node"}]},win32:{x64:[{platform:"win32",arch:"x64",abi:"msvc",platformArchABI:"qwik.win32-x64-msvc.node"}]},linux:{x64:[{platform:"linux",arch:"x64",abi:"gnu",platformArchABI:"qwik.linux-x64-gnu.node"}]}},ue={qwik:"2.0.0-beta.10-dev+4669425"};async function ae(){const e=nt(),n={dynamicImport:i=>{throw new Error(`Qwik Optimizer sys.dynamicImport() not implemented, trying to import: "${i}"`)},strictDynamicImport:i=>{throw new Error(`Qwik Optimizer sys.strictDynamicImport() not implemented, trying to import: "${i}"`)},path:null,cwd:()=>"/",os:"unknown",env:e};if(n.path=Z(n),e==="node"||e==="bun"){if(n.dynamicImport=i=>require(i),n.strictDynamicImport=i=>import(i),typeof TextEncoder>"u"){const i=await n.dynamicImport("node:util");globalThis.TextEncoder=i.TextEncoder,globalThis.TextDecoder=i.TextDecoder}}else(e==="webworker"||e==="browsermain")&&(n.strictDynamicImport=i=>import(i),n.dynamicImport=async i=>{const o=await(await fetch(i)).text(),d={exports:{}};return new Function("module","exports",o)(d,d.exports),d.exports});if(e!=="webworker"&&e!=="browsermain")try{n.path=await n.dynamicImport("node:path"),n.cwd=()=>process.cwd(),n.os=process.platform}catch{}return n}async function Rt(e){const n=nt();if(n==="node"||n==="bun"){const i=se[process.platform];if(i){const r=i[process.arch];if(r)for(const o of r)try{return await e.dynamicImport(`../bindings/${o.platformArchABI}`)}catch(d){console.warn(`Unable to load native binding ${o.platformArchABI}. Falling back to wasm build.`,d?.message)}}}{if(n==="node"||n==="bun"){const i=e.path.join(__dirname,"..","bindings","qwik_wasm_bg.wasm"),r=await e.dynamicImport("../bindings/qwik.wasm.cjs"),d=await(await e.dynamicImport("node:fs")).promises.readFile(i),c=await WebAssembly.compile(d);return await r.default(c),r}if(n==="webworker"||n==="browsermain"){let i=ue.qwik;const r=`qwikWasmCjs${i}`,o=`qwikWasmRsp${i}`;let d=globalThis[r],c=globalThis[o];if(!d||!c){i=ue.qwik.split("-dev")[0];const x=`https://cdn.jsdelivr.net/npm/@qwik.dev/core@${i}/bindings/`,S=new URL("./qwik.wasm.cjs",x).href,u=new URL("./qwik_wasm_bg.wasm",x).href,v=await Promise.all([fetch(S),fetch(u)]);for(const g of v)if(!g.ok)throw new Error(`Unable to fetch Qwik WASM binding from ${g.url}`);const m=v[0];globalThis[r]=d=await m.text(),globalThis[o]=c=v[1]}const a={exports:{}};new Function("module","exports",d)(a,a.exports);const t=a.exports;return await t.default(c.clone()),t}}throw new Error("Platform not supported")}const nt=()=>typeof Deno<"u"?"deno":typeof Bun<"u"?"bun":typeof process<"u"&&typeof global<"u"&&process.versions&&process.versions.node?"node":typeof self<"u"&&typeof location<"u"&&typeof navigator<"u"&&typeof fetch=="function"&&typeof WorkerGlobalScope=="function"&&typeof self.importScripts=="function"?"webworker":typeof window<"u"&&typeof document<"u"&&typeof location<"u"&&typeof navigator<"u"&&typeof Window=="function"&&typeof fetch=="function"?"browsermain":"unknown",rt=async(e={})=>{const n=e?.sys||await ae(),i=e?.binding||await Rt(n);return{async transformModules(o){return Bt(i,o)},sys:n}},Bt=(e,n)=>e.transform_modules(At(n)),At=e=>{const n={minify:"simplify",sourceMaps:!1,transpileTs:!1,transpileJsx:!1,preserveFilenames:!1,explicitExtensions:!1,mode:"lib",manualChunks:void 0,scope:void 0,regCtxName:void 0,stripEventHandlers:!1,rootDir:void 0,stripExports:void 0,stripCtxName:void 0,isServer:void 0};return Object.entries(e).forEach(([i,r])=>{r!=null&&(n[i]=r)}),n.entryStrategy=e.entryStrategy?.type??"smart",n.manualChunks=e.entryStrategy?.manual??void 0,n},Ft=(e,n=0)=>{for(let i=0;i<e.length;i++){const r=e.charCodeAt(i);n=(n<<5)-n+r,n|=0}return Number(Math.abs(n)).toString(36)},zt=new Set(["_run","_task"]);function Ht(e){const n=e.symbols;return Object.keys(n).sort((i,r)=>{const o=n[i],d=n[r];if(o.ctxKind==="eventHandler"&&d.ctxKind!=="eventHandler")return-1;if(o.ctxKind!=="eventHandler"&&d.ctxKind==="eventHandler")return 1;if(o.ctxKind==="eventHandler"&&d.ctxKind==="eventHandler"){const c=ot.indexOf(o.ctxName.toLowerCase()),a=ot.indexOf(d.ctxName.toLowerCase());if(c>-1&&a>-1){if(c<a)return-1;if(c>a)return 1}else{if(c>-1)return-1;if(a>-1)return 1}}else if(o.ctxKind==="function"&&d.ctxKind==="function"){const c=it.indexOf(o.ctxName.toLowerCase()),a=it.indexOf(d.ctxName.toLowerCase());if(c>-1&&a>-1){if(c<a)return-1;if(c>a)return 1}else{if(c>-1)return-1;if(a>-1)return 1}}return!o.parent&&d.parent?-1:o.parent&&!d.parent?1:o.hash<d.hash?-1:o.hash>d.hash?1:0})}const ot=["click","dblclick","contextmenu","auxclick","pointerdown","pointerup","pointermove","pointerover","pointerenter","pointerleave","pointerout","pointercancel","gotpointercapture","lostpointercapture","touchstart","touchend","touchmove","touchcancel","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","wheel","gesturestart","gesturechange","gestureend","keydown","keyup","keypress","input","change","search","invalid","beforeinput","select","focusin","focusout","focus","blur","submit","reset","scroll"].map(e=>`on${e.toLowerCase()}$`),it=["useTask$","useVisibleTask$","component$","useStyles$","useStylesScoped$"].map(e=>e.toLowerCase());function Wt(e){return Object.keys(e.bundles).sort(Le)}function Gt(e){const n=Ht(e),i={},r={};for(const c of n)i[c]=e.symbols[c],r[c]=e.mapping[c];const o=Wt(e),d={};for(const c of o){d[c]=e.bundles[c];const a=e.bundles[c];Array.isArray(a.imports)&&a.imports.sort(Le),Array.isArray(a.dynamicImports)&&a.dynamicImports.sort(Le);const f=[];for(const t of n)c===r[t]&&f.push(t);f.length>0&&(f.sort(Le),a.symbols=f)}return e.symbols=i,e.mapping=r,e.bundles=d,e}function Le(e,n){return e=e.toLocaleLowerCase(),n=n.toLocaleLowerCase(),e<n?-1:e>n?1:0}function st(e){if(e!=null&&e.mapping!=null&&typeof e.mapping=="object"&&e.symbols!=null&&typeof e.symbols=="object"&&e.bundles!=null&&typeof e.bundles=="object")return e}const Kt=(e,n)=>{let i=0;if(e.symbols)for(const r of e.symbols){let o=1;const d=n.symbols[r];d&&(d.ctxKind==="function"?/(component|useStyles|useStylesScoped)/i.test(d.ctxName)?o+=1:/(useComputed|useTask|useVisibleTask|useOn)/i.test(d.ctxName)&&(o+=2):(o+=1,/(click|mouse|pointer|touch|key|scroll|gesture|wheel)/i.test(d.ctxName)&&(o+=3))),i=Math.max(i,o)}return i};function Qt(e){let n=0;const i=[],r=[],o=new Map,d=new Map,c=new Set;function a(m){o.set(m,n),d.set(m,n),n++,i.push(m),c.add(m);const g=e[m].imports||[];for(const p of g)o.has(p)?c.has(p)&&d.set(m,Math.min(d.get(m),o.get(p))):(a(p),d.set(m,Math.min(d.get(m),d.get(p))));if(d.get(m)===o.get(m)){const p=[];let l;do l=i.pop(),c.delete(l),p.push(l);while(l!==m);r.push(p)}}for(const m of Object.keys(e))o.has(m)||a(m);const f=new Map;r.forEach((m,g)=>{for(const p of m)f.set(p,g)});const t=Array.from({length:r.length},()=>new Set);for(const m of Object.keys(e)){const g=f.get(m);for(const p of e[m].imports||[]){const l=f.get(p);g!==l&&t[g].add(l)}}const x=new Set,S=[];function u(m){x.add(m);for(const g of t[m])x.has(g)||u(g);S.push(m)}for(let m=0;m<r.length;m++)x.has(m)||u(m);S.reverse();const v=new Array(r.length).fill(0);for(let m=0;m<r.length;m++){let g=0;for(const p of r[m])g+=e[p].size;v[m]=g}for(let m=S.length-1;m>=0;m--){const g=S[m];let p=v[g];for(const l of t[g])p+=v[l];v[g]=p}for(let m=0;m<r.length;m++){const g=v[m];for(const p of r[m])e[p].total=g}}const at=/[/\\](core|qwik)[/\\]dist[/\\]preloader\.(|c|m)js$/,lt=/[/\\](core|qwik)[/\\]dist[/\\]core(\.min|\.prod)?\.(|c|m)js$/,ct=/[/\\](core|qwik)[/\\](dist[/\\])?qwikloader(\.debug)?\.[^/]*js$/,dt=/[/\\](core|qwik)[/\\]handlers\.(|c|m)js$/;function Jt(e,n,i,r,o,d,c){var S;const a={version:"1",manifestHash:"",options:{target:o.target,buildMode:o.buildMode,entryStrategy:o.entryStrategy&&{type:o.entryStrategy.type}},core:void 0,preloader:void 0,qwikLoader:void 0,bundleGraphAsset:void 0,injections:i,mapping:{},bundles:{},assets:{},symbols:{},bundleGraph:void 0},f=u=>{const v=r[u];if(!v){console.warn(`Client manifest generation: skipping external import "${u}"`);return}return c(v.fileName)};let t;const x=new Set(n.map(u=>u.name));for(const u of Object.values(r)){if(u.type==="asset"){u.fileName.endsWith("js.map")||(a.assets[u.fileName]={name:u.names[0],size:u.source.length});continue}const v=c(u.fileName),g={size:u.code.length,total:-1};for(const h of u.exports)x.has(h)&&(!a.mapping[h]||u.exports.length!==1)&&(a.mapping[h]=v);const p=u.imports.filter(h=>u.code.includes(e.basename(h))).map(h=>f(h)).filter(Boolean);p.length>0&&(g.imports=p);const l=u.dynamicImports.filter(h=>u.code.includes(e.basename(h))).map(h=>f(h)).filter(Boolean);l.length>0&&(g.dynamicImports=l),u.facadeModuleId&&(at.test(u.facadeModuleId)?a.preloader=v:lt.test(u.facadeModuleId)?a.core=v:ct.test(u.facadeModuleId)?a.qwikLoader=v:dt.test(u.facadeModuleId)&&(t=v));const b=(u.moduleIds||Object.keys(u.modules)).filter(h=>!h.startsWith("\0")).map(h=>e.relative(o.rootDir,h));b.length>0&&(g.origins=b,!a.preloader&&b.some(h=>at.test(h))&&(a.preloader=v),!a.core&&b.some(h=>lt.test(h))&&(a.core=v),!a.qwikLoader&&b.some(h=>ct.test(h))&&(a.qwikLoader=v),!t&&b.some(h=>dt.test(h))&&(t=v)),a.bundles[v]=g}for(const u of n){const v=u.name,m=a.mapping[v];if(!m){d(`Note: qrl ${u.name} is not in the bundle, likely tree shaken`,a);continue}((S=a.bundles[m]).symbols||(S.symbols=[])).push(v),a.symbols[v]={displayName:u.displayName,hash:u.hash,ctxKind:u.ctxKind,ctxName:u.ctxName,captures:u.captures,canonicalFilename:u.canonicalFilename,parent:u.parent,origin:u.origin,loc:u.loc,paramNames:u.paramNames,captureNames:u.captureNames}}if(t)for(const u of zt)a.symbols[u]={origin:"Qwik core",displayName:u,canonicalFilename:"",hash:u,ctxKind:"function",ctxName:u,captures:!1,parent:null,loc:[0,0]},a.mapping[u]=t;else console.error("Qwik core bundle not found, is Qwik actually used in this project?");for(const u of Object.values(a.bundles)){const v=Kt(u,a);u.interactivity=v}return Qt(a.bundles),Gt(a)}const Yt=.5/(300*1024/8),Xt=e=>{const n=e.lastIndexOf("_");return n>-1?e.slice(n+1):e};function Zt(e,n){const i=[];if(!e.bundles)return[];const r={...e.bundles};for(const[f,t]of Object.entries(e.mapping)){if(f.startsWith("_")&&f.length<10)continue;const x=Xt(f);x&&(r[x]={dynamicImports:[t]})}if(n){const f={...e,bundles:r};for(const t of n){const x=t(f);x&&Object.assign(r,x)}}for(const f of Object.keys(r)){const t=r[f],x=t.imports?.filter(u=>r[u])||[],S=t.dynamicImports?.filter(u=>r[u]&&(r[u].symbols||r[u].origins?.some(v=>!v.includes("node_modules"))))||[];r[f]={...t,imports:x,dynamicImports:S}}const o=new Set(Object.keys(r));for(const f of Object.keys(r)){for(const t of r[f].imports)o.delete(t);for(const t of r[f].dynamicImports)o.delete(t)}for(const f of o){const t=r[f];!t.imports?.length&&!t.dynamicImports?.length&&delete r[f]}const d=Object.keys(r),c=new Map,a=(f,t,x=new Set)=>{const S=r[t];for(const u of S.imports)f.has(u)&&f.delete(u),x.has(u)||(x.add(u),a(f,u,x))};for(const f of d){const t=r[f],x=new Set(t.imports);for(const m of x)a(x,m);const S=new Set(t.dynamicImports),u=new Map;for(const m of S){a(S,m);const g=r[m];let p=.5;if(p+=(g.interactivity||0)*.08,t.origins&&g.origins){for(const l of t.origins)if(g.origins.some(s=>s.startsWith(l))){p+=.25;break}}g.total>Yt&&(p+=p>.5?.02:-.02),g.total<1e3&&(p+=.15),u.set(m,Math.min(p,.99))}if(S.size>0){const m=Array.from(S).sort((p,l)=>u.get(l)-u.get(p));let g=-1;for(const p of m)u.get(p)!==g&&(g=u.get(p),x.add(-Math.round(g*10))),x.add(p)}const v=i.length;i.push(f);for(let m=0;m<x.size;m++)i.push(null);c.set(f,{index:v,deps:x})}for(const f of d){const t=c.get(f);let{index:x,deps:S}=t;x++;for(const u of S){if(typeof u=="number"){i[x++]=u;continue}const m=c.get(u).index;i[x++]=m}}return i}async function Vt(e,n,i){const r=await e.dynamicImport("eslint");let o=new r.ESLint({cache:!0});if((await o.calculateConfigForFile("no-real-file.tsx")).parser===null){const a={cache:!0,overrideConfig:{languageOptions:{parserOptions:{tsconfigRootDir:n,project:i,ecmaVersion:2021,sourceType:"module",ecmaFeatures:{jsx:!0}}}}};o=new r.ESLint(a)}return{async lint(a,f,t){try{const x=en(t);if(await o.isPathIgnored(x))return null;(await o.lintText(f,{filePath:x})).forEach(u=>{for(const v of u.messages){if(v.ruleId!=null&&!v.ruleId.startsWith("qwik/"))continue;const m=tn(u.filePath,v);a.warn(m)}})}catch(x){console.warn(x)}}}}function en(e){return e.split("?",2)[0]}function tn(e,n){return Object.assign(new Error(n.message),{id:e,plugin:"vite-plugin-eslint",loc:{file:e,column:n.column,line:n.line},stack:""})}async function nn(e,n){const i=n;let r=i.loc;if(!i.frame&&!i.plugin&&(r||(r=rn(i)),r&&(i.loc=r,r.file))){const o=await e.dynamicImport("node:fs"),{normalizePath:d}=await e.dynamicImport("vite");i.id=d(i.loc.file);try{const c=o.readFileSync(i.loc.file,"utf-8");i.frame=sn(c,i.loc)}catch{}}return n}const rn=e=>{const n=e.stack;if(typeof n=="string"){const i=n.split(`
8
- `).filter(r=>!r.includes("/node_modules/")&&!r.includes("(node:"));for(let r=1;r<i.length;r++){const o=i[r].replace("file:///","/");if(/^\s+at/.test(o)){const d=o.indexOf("/"),c=o.lastIndexOf(")",d);if(d>0){const f=o.slice(d,c).split(":"),t=ut(f[f.length-1]),x=ut(f[f.length-2]);return typeof t=="number"&&typeof x=="number"?(f.length-=2,{file:f.join(":"),line:x,column:t}):typeof t=="number"?(f.length-=1,{file:f.join(":"),line:t,column:void 0}):{file:f.join(":"),line:void 0,column:void 0}}}}}},ut=e=>{try{return parseInt(e,10)}catch{return}},ft=/\r?\n/,pt=2;function on(e,n){if(typeof n=="number")return n;if(n.lo!=null)return n.lo;const i=e.split(ft),{line:r,column:o}=n;let d=0;for(let c=0;c<r-1&&c<i.length;c++)d+=i[c].length+1;return d+o}function sn(e,n=0,i){n=on(e,n),i=i||n;const r=e.split(ft);let o=0;const d=[];for(let c=0;c<r.length;c++)if(o+=r[c].length+1,o>=n){for(let a=c-pt;a<=c+pt||i>o;a++){if(a<0||a>=r.length)continue;const f=a+1;d.push(`${f}${" ".repeat(Math.max(3-String(f).length,0))}| ${r[a]}`);const t=r[a].length;if(a===c){const x=Math.max(n-(o-t)+1,0),S=Math.max(1,i>o?t-x:i-n);d.push(" | "+" ".repeat(x)+"^".repeat(S))}else if(a>c){if(i>o){const x=Math.max(Math.min(i-o,t),1);d.push(" | "+"^".repeat(x))}o+=t+1}}break}return d.join(`
9
- `)}function an(e){return e==="win32"}function Oe(e){const[n,i]=e.split("?"),r=i||"";return{originalId:e,pathId:n,query:r?`?${i}`:"",params:new URLSearchParams(r)}}const ln=["server"],cn=["onGet","onPost","onPut","onRequest","onDelete","onHead","onOptions","onPatch","onStaticGenerate"],dn=["useServer","route","server","action$","loader$","zod$","validator$","globalAction$"],un=["useClient","useBrowser","useVisibleTask","client","browser","event$"];var ht=(e=>(e.preventNavigate="preventNavigate",e.valibot="valibot",e.noSPA="noSPA",e.enableRequestRewrite="enableRequestRewrite",e.webWorker="webWorker",e.insights="insights",e))(ht||{});function mt(e={}){const n=`${Math.round(Math.random()*899)+100}`,i=new Map,r=new Map,o=new Map,d=new Map;let c=null,a,f=()=>{};const t={csr:!1,target:"client",buildMode:"development",debug:!1,rootDir:void 0,tsconfigFileNames:["./tsconfig.json"],input:void 0,outDir:void 0,assetsDir:void 0,resolveQwikBuild:!0,entryStrategy:void 0,srcDir:void 0,ssrOutDir:void 0,clientOutDir:void 0,sourcemap:!!e.sourcemap,manifestInput:null,manifestOutput:null,transformedModuleOutput:null,scope:null,devTools:{imageDevTools:!0,clickToSource:["Alt"]},inlineStylesUpToBytes:2e4,lint:!1,experimental:void 0};let x,S;const u=async()=>{if(!c){c=await rt(e),x=fn(c.sys);try{S===void 0&&(S=await c.sys.dynamicImport("node:fs"))}catch{console.log("node:fs not available, disabling automatic manifest reading"),S=null}}},v=()=>{if(!c)throw new Error("Qwik plugin has not been initialized");return c},m=()=>v().sys,g=()=>v().sys.path;let p;const l=k=>{p=k},s=async k=>{const y=Object.assign({},k),_=v(),N=_.sys.path,D=(...L)=>K(N.resolve(...L));t.debug=!!y.debug,y.assetsDir&&(t.assetsDir=y.assetsDir),y.target==="ssr"||y.target==="client"||y.target==="lib"||y.target==="test"?t.target=y.target:t.target||(t.target="client"),t.target==="lib"?t.buildMode="development":y.buildMode==="production"||y.buildMode==="development"?t.buildMode=y.buildMode:t.buildMode||(t.buildMode="development"),t.csr=!!y.csr,y.entryStrategy&&typeof y.entryStrategy=="object"&&(t.entryStrategy={...y.entryStrategy}),t.entryStrategy||(t.target==="ssr"||t.target==="test"?t.entryStrategy={type:"hoist"}:t.target==="lib"?t.entryStrategy={type:"inline"}:t.buildMode==="production"?t.entryStrategy={type:"smart"}:t.entryStrategy={type:"segment"}),typeof y.rootDir=="string"&&(t.rootDir=y.rootDir),typeof t.rootDir!="string"&&(t.rootDir||(t.rootDir=_.sys.cwd())),t.rootDir=D(_.sys.cwd(),t.rootDir);let C=D(t.rootDir,mn);if(typeof y.srcDir=="string"?(t.srcDir=D(t.rootDir,y.srcDir),C=t.srcDir):t.srcDir||(t.srcDir=C),t.srcDir=D(t.rootDir,t.srcDir),Array.isArray(y.tsconfigFileNames)&&y.tsconfigFileNames.length>0&&(t.tsconfigFileNames=y.tsconfigFileNames),!t.csr&&!y.input&&!t.input&&(t.target==="ssr"?t.input=[D(C,"entry.ssr")]:t.target==="client"?t.input=[D(C,"root")]:t.input=void 0),y.outDir&&(t.outDir=D(t.rootDir,y.outDir)),t.clientOutDir=D(t.rootDir,y.clientOutDir||yt),t.ssrOutDir=D(t.rootDir,y.ssrOutDir||gn),t.target==="ssr"?t.outDir||(t.outDir=t.ssrOutDir):t.target==="lib"?t.outDir||(t.outDir=D(t.rootDir,yn)):t.outDir||(t.outDir=t.clientOutDir),typeof y.manifestOutput=="function"&&(t.manifestOutput=y.manifestOutput),y.manifestInput&&(t.manifestInput=st(y.manifestInput)||null),typeof y.transformedModuleOutput=="function"&&(t.transformedModuleOutput=y.transformedModuleOutput),y.scope!==void 0)t.scope=y.scope;else if(!t.scope&&S){let L="";try{let $=t.rootDir;for(;L=N.resolve($,"package.json"),!await S.promises.stat(L).catch(()=>!1);){const M=N.resolve($,"..");if(M===$)break;$=M,L=""}if(L){const M=await S.promises.readFile(L,"utf-8"),q=JSON.parse(M);typeof q.name=="string"&&(t.scope=q.name)}}catch($){console.warn(`could not read ${L||"package.json"} to determine package name, ignoring. (${$})`)}}if(typeof y.resolveQwikBuild=="boolean"&&(t.resolveQwikBuild=y.resolveQwikBuild),typeof y.devTools=="object"&&("imageDevTools"in y.devTools&&(t.devTools.imageDevTools=y.devTools.imageDevTools),"clickToSource"in y.devTools&&(t.devTools.clickToSource=y.devTools.clickToSource)),"inlineStylesUpToBytes"in e&&(typeof e.inlineStylesUpToBytes=="number"?t.inlineStylesUpToBytes=e.inlineStylesUpToBytes:(typeof t.inlineStylesUpToBytes!="number"||t.inlineStylesUpToBytes<0)&&(t.inlineStylesUpToBytes=0)),typeof y.lint=="boolean"&&(t.lint=y.lint),"experimental"in y){t.experimental=void 0;for(const L of y.experimental??[])ht[L]?(t.experimental||(t.experimental={}))[L]=!0:console.error(`Qwik plugin: Unknown experimental feature: ${L}`)}const B={...t};return t.input||(t.input=y.input),t.input&&typeof t.input=="string"&&(t.input=[t.input]),B};let b=!1;const h=async k=>{if(!b){b=!0;const y=m();if(y.env==="node"){const _=await y.dynamicImport("node:fs");if(!_.existsSync(t.rootDir))throw new Error(`Qwik rootDir "${t.rootDir}" not found.`);if(typeof t.srcDir=="string"&&!_.existsSync(t.srcDir))throw new Error(`Qwik srcDir "${t.srcDir}" not found.`);for(const[N,D]of Object.entries(t.input||{}))if(!await k(D))throw new Error(`Qwik input "${D}" not found.`)}}};let I,w=!1;const T=async k=>{if(O("buildStart()",t.buildMode,t.scope,t.target,t.rootDir,t.srcDir),I=v(),w=!p,I.sys.env==="node"&&t.target==="ssr"&&t.lint)try{a=await Vt(I.sys,t.rootDir,t.tsconfigFileNames)}catch{}if(O("transformedOutputs.clear()"),r.clear(),o.clear(),t.target==="client"){const y=await k.resolve("@qwik.dev/core/qwikloader.js",void 0,{skipSelf:!0});y&&k.emitFile({id:y.id,type:"chunk",preserveSignature:"allow-extension"})}},E=k=>p?!!k?.ssr:t.target==="ssr"||t.target==="test";let P=0,U=!1;const j=async(k,y,_,N)=>{if(y.startsWith("\0"))return;const D=p&&/^(.*)\?editor(:(\d+)(:\d+)?)?$/.exec(y);if(D){if(!U){U=!0,setTimeout(()=>U=!1,500);const[,Q,z]=D,pe=await k.resolve(Q,_);if(pe){const ce=p.moduleGraph.getModuleById(pe.id)?.file;if(ce){const ie=`${ce}${z}`;try{console.warn(`Opening in editor: ${ie}`);const X=(await import("launch-editor")).default;X(ie)}catch(X){console.error(`Failed to open editor: ${X.message}`)}}}}return{id:"\0editor"}}const C=P++,B=E(N);O(`resolveId(${C})`,`begin ${y} | ${B?"server":"client"} | ${_}`);const L=_&&Oe(_);if(_=L&&K(L.pathId),y.startsWith(".")&&L){const Q=g(),z=Q.dirname(L.pathId);z&&(y=Q.resolve(z,y))}const $=Oe(y),M=K($.pathId);let q;if(d.get(M))O(`resolveId(${C}) Resolved already known ${M}`),q={id:M+$.query,moduleSideEffects:!1};else if(M.endsWith(ne))t.resolveQwikBuild&&(O(`resolveId(${C})`,"Resolved",ne),q={id:ne,moduleSideEffects:!1});else if(M.endsWith(re))O(`resolveId(${C})`,"Resolved",re),q={id:re,moduleSideEffects:!1};else if(!p&&!B&&M.endsWith(Qe)){O(`resolveId(${C})`,"Resolved",Qe);const Q=await k.resolve(Qe,_,{skipSelf:!0});if(Q)return k.emitFile({id:Q.id,type:"chunk",preserveSignature:"allow-extension"}),Q}else if(M.endsWith(me))O(`resolveId(${C})`,"Resolved",me),q={id:me,moduleSideEffects:!1};else{if(!B&&w&&y.endsWith("@qwik.dev/core")){w=!1;const z=await k.resolve("@qwik.dev/core/handlers.mjs",_,{skipSelf:!0});if(!z)throw new Error("Failed to resolve @qwik.dev/core/handlers.mjs");k.emitFile({id:z.id,type:"chunk",preserveSignature:"allow-extension"})}const Q=/^(?<parent>.*\.[mc]?[jt]sx?)_(?<name>[^/]+)\.js(?<query>$|\?.*$)/.exec(y)?.groups;if(Q){const{parent:z,name:pe,query:ce}=Q,ie=await k.resolve(z,_,{skipSelf:!0});if(ie){const X=ie.id.split("?")[0],Fe=p&&_?.endsWith(".html")?`${X}_${pe}.js`:M;O(`resolveId(${C})`,`resolved to QRL ${pe} of ${X}`),d.set(Fe,X),q={id:Fe+ce,moduleSideEffects:!1}}else console.error(`resolveId(${C})`,`QRL parent ${z} does not exist!`)}else if(_){const z=d.get(_);if(z)return O(`resolveId(${C}) end`,`resolving via ${z}`),k.resolve(y,z,{skipSelf:!0})}}return O(`resolveId(${C}) end`,q?.id||q),q};let R=0;const H=async(k,y,_)=>{if(y==="\0editor")return'"opening in editor"';if(y.startsWith("\0")||y.startsWith("/@fs/"))return;const N=R++,D=E(_);if(t.resolveQwikBuild&&y===ne)return O(`load(${N})`,ne,t.buildMode),{moduleSideEffects:!1,code:qe(D,t.target)};if(y===re)return O(`load(${N})`,re,t.buildMode),{moduleSideEffects:!1,code:await fe(D)};if(y===me)return O(`load(${N})`,me,t.buildMode),{moduleSideEffects:!1,code:"export * from '@qwik.dev/core';"};const C=Oe(y);y=K(C.pathId);const B=D?o:r;if(p&&!B.has(y)){const $=d.get(y);if($){const M=p.moduleGraph.getModuleById($);if(M){if(O(`load(${N})`,"transforming QRL parent",$),await p.transformRequest(M.url),!B.has(y))return O(`load(${N})`,`QRL segment ${y} not found in ${$}`),null}else console.error(`load(${N})`,`${M} does not exist!`)}}const L=B.get(y);if(L){O(`load(${N})`,"Found",y);const{code:$,map:M,segment:q}=L[0];return{code:$,map:M,meta:{segment:q}}}return O(`load(${N})`,"Not a QRL or virtual module",y),null};let Y=0;const le=async function(k,y,_,N={}){if(_.startsWith("\0"))return;const D=Y++,C=E(N),B=C?o:r;if(B.has(_))return;const L=v(),$=g(),{pathId:M}=Oe(_),q=$.parse(M),Q=q.dir,z=q.base;if(q.ext.toLowerCase()in hn||gt.test(M)){const ce=t.target==="client"||t.target==="ssr";O(`transform(${D})`,`Transforming ${_} (for: ${C?"server":"client"}${ce?", strip":""})`);const ie=t.target==="lib"?"lib":t.buildMode==="development"?"dev":"prod";ie!=="lib"&&(y=y.replaceAll(/__EXPERIMENTAL__\.(\w+)/g,(te,de)=>t.experimental?.[de]?"true":"false"));let X=z;t.srcDir&&(X=$.relative(t.srcDir,M)),X=K(X);const Ae=t.srcDir?t.srcDir:K(Q),Fe=t.entryStrategy;let Ut;p&&(Ut=p.moduleGraph.getModuleById(M)?.url);const he={input:[{code:y,path:X,devPath:Ut}],entryStrategy:C?{type:"hoist"}:Fe,minify:"simplify",sourceMaps:t.sourcemap||t.buildMode==="development",transpileTs:!0,transpileJsx:!0,explicitExtensions:!0,preserveFilenames:!0,srcDir:Ae,rootDir:t.rootDir,mode:ie,scope:t.scope||void 0,isServer:C};ce&&(C?(he.stripCtxName=un,he.stripEventHandlers=!0,he.regCtxName=ln):(he.stripCtxName=dn,he.stripExports=cn));const Wr=Date.now(),je=await L.transformModules(he);O(`transform(${D})`,`done in ${Date.now()-Wr}ms`);const ze=je.modules.find(te=>!pn(te));f(je.diagnostics,L,Ae),C?je.diagnostics.length===0&&a&&a.lint(k,y,_):i.set(_,je);const et=new Set;for(const te of je.modules)if(te!==ze){const de=K($.join(Ae,te.path));O(`transform(${D})`,`segment ${de}`,te.segment.displayName),d.set(de,_),B.set(de,[te,_]),et.add(de),t.target==="client"&&!p&&k.emitFile({id:de,type:"chunk",preserveSignature:"allow-extension"})}return await Promise.all([...et.values()].map(te=>k.load({id:te}))),k.addWatchFile(_),{code:ze.code,map:ze.map,meta:{segment:ze.segment,qwikdeps:Array.from(et)}}}return O(`transform(${D})`,"Not transforming",_),null},W=k=>{const y=[],_={addInjection:N=>y.push(N)};return _.generateManifest=async N=>{const C=v().sys.path,B=C.resolve(t.rootDir,t.outDir,"build"),L=q=>C.relative(B,C.resolve(t.rootDir,t.outDir,q));_.canonPath=L;const $=Array.from(i.values()).flatMap(q=>q.modules).map(q=>q.segment).filter(q=>!!q),M=Jt(C,$,y,k,t,O,L);N&&Object.assign(M,N);for(const q of Object.values(M.symbols))q.origin&&(q.origin=K(q.origin));for(const q of Object.values(M.bundles))q.origins&&(q.origins=q.origins.sort());return M.manifestHash=Ft(JSON.stringify(M)),M},_},ee=()=>t,V=()=>Array.from(r.values()).map(k=>k[0]),O=(...k)=>{t.debug&&console.debug(`[QWIK PLUGIN: ${n}]`,...k)},Ve=(...k)=>{console.log(`[QWIK PLUGIN: ${n}]`,...k)},G=k=>{f=k},K=k=>x(k);function qe(k,y){const _=t.buildMode==="development";return`// @qwik.dev/core/build
10
- export const isServer = ${JSON.stringify(k)};
11
- export const isBrowser = ${JSON.stringify(!k)};
7
+ */"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function V(e={}){function n(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function i(f,l){let s="",y=0,h=-1,I=0,v;for(let T=0;T<=f.length;++T){if(T<f.length)v=f.charCodeAt(T);else{if(v===47)break;v=47}if(v===47){if(!(h===T-1||I===1))if(h!==T-1&&I===2){if(s.length<2||y!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){const E=s.lastIndexOf("/");if(E!==s.length-1){E===-1?(s="",y=0):(s=s.slice(0,E),y=s.length-1-s.lastIndexOf("/")),h=T,I=0;continue}}else if(s.length===2||s.length===1){s="",y=0,h=T,I=0;continue}}l&&(s.length>0?s+="/..":s="..",y=2)}else s.length>0?s+="/"+f.slice(h+1,T):s=f.slice(h+1,T),y=T-h-1;h=T,I=0}else v===46&&I!==-1?++I:I=-1}return s}function r(f,l){const s=l.dir||l.root,y=l.base||(l.name||"")+(l.ext||"");return s?s===l.root?s+y:s+f+y:y}const o=function(...l){let s="",y=!1,h;for(let I=l.length-1;I>=-1&&!y;I--){let v;I>=0?v=l[I]:(h===void 0&&(e&&typeof e.cwd=="function"?h=e.cwd():typeof process<"u"&&typeof process.cwd=="function"?h=process.cwd():h="/"),v=h),n(v),v.length!==0&&(s=v+"/"+s,y=v.charCodeAt(0)===47)}return s=i(s,!y),y?s.length>0?"/"+s:"/":s.length>0?s:"."},d=function(l){if(n(l),l.length===0)return".";const s=l.charCodeAt(0)===47,y=l.charCodeAt(l.length-1)===47;return l=i(l,!s),l.length===0&&!s&&(l="."),l.length>0&&y&&(l+="/"),s?"/"+l:l},c=function(l){return n(l),l.length>0&&l.charCodeAt(0)===47},a=function(...l){if(l.length===0)return".";let s;for(let y=0;y<l.length;++y){const h=l[y];n(h),h.length>0&&(s===void 0?s=h:s+="/"+h)}return s===void 0?".":d(s)},p=function(l,s){if(n(l),n(s),l===s||(l=o(l),s=o(s),l===s))return"";let y=1;for(;y<l.length&&l.charCodeAt(y)===47;++y);const h=l.length,I=h-y;let v=1;for(;v<s.length&&s.charCodeAt(v)===47;++v);const E=s.length-v,P=I<E?I:E;let U=-1,j=0;for(;j<=P;++j){if(j===P){if(E>P){if(s.charCodeAt(v+j)===47)return s.slice(v+j+1);if(j===0)return s.slice(v+j)}else I>P&&(l.charCodeAt(y+j)===47?U=j:j===0&&(U=0));break}const H=l.charCodeAt(y+j),Y=s.charCodeAt(v+j);if(H!==Y)break;H===47&&(U=j)}let R="";for(j=y+U+1;j<=h;++j)(j===h||l.charCodeAt(j)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+s.slice(v+U):(v+=U,s.charCodeAt(v)===47&&++v,s.slice(v))},t=function(l){if(n(l),l.length===0)return".";let s=l.charCodeAt(0);const y=s===47;let h=-1,I=!0;for(let v=l.length-1;v>=1;--v)if(s=l.charCodeAt(v),s===47){if(!I){h=v;break}}else I=!1;return h===-1?y?"/":".":y&&h===1?"//":l.slice(0,h)},x=function(l,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');n(l);let y=0,h=-1,I=!0,v;if(s!==void 0&&s.length>0&&s.length<=l.length){if(s.length===l.length&&s===l)return"";let T=s.length-1,E=-1;for(v=l.length-1;v>=0;--v){const P=l.charCodeAt(v);if(P===47){if(!I){y=v+1;break}}else E===-1&&(I=!1,E=v+1),T>=0&&(P===s.charCodeAt(T)?--T===-1&&(h=v):(T=-1,h=E))}return y===h?h=E:h===-1&&(h=l.length),l.slice(y,h)}else{for(v=l.length-1;v>=0;--v)if(l.charCodeAt(v)===47){if(!I){y=v+1;break}}else h===-1&&(I=!1,h=v+1);return h===-1?"":l.slice(y,h)}},k=function(l){n(l);let s=-1,y=0,h=-1,I=!0,v=0;for(let T=l.length-1;T>=0;--T){const E=l.charCodeAt(T);if(E===47){if(!I){y=T+1;break}continue}h===-1&&(I=!1,h=T+1),E===46?s===-1?s=T:v!==1&&(v=1):s!==-1&&(v=-1)}return s===-1||h===-1||v===0||v===1&&s===h-1&&s===y+1?"":l.slice(s,h)},u=function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return r("/",l)},w=function(l){n(l);const s={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return s;let y=l.charCodeAt(0),h;const I=y===47;I?(s.root="/",h=1):h=0;let v=-1,T=0,E=-1,P=!0,U=l.length-1,j=0;for(;U>=h;--U){if(y=l.charCodeAt(U),y===47){if(!P){T=U+1;break}continue}E===-1&&(P=!1,E=U+1),y===46?v===-1?v=U:j!==1&&(j=1):v!==-1&&(j=-1)}return v===-1||E===-1||j===0||j===1&&v===E-1&&v===T+1?E!==-1&&(T===0&&I?s.base=s.name=l.slice(1,E):s.base=s.name=l.slice(T,E)):(T===0&&I?(s.name=l.slice(1,v),s.base=l.slice(1,E)):(s.name=l.slice(T,v),s.base=l.slice(T,E)),s.ext=l.slice(v,E)),T>0?s.dir=l.slice(0,T-1):I&&(s.dir="/"),s},m="/",g=":";return{relative:p,resolve:o,parse:w,format:u,join:a,isAbsolute:c,basename:x,normalize:d,dirname:t,extname:k,delimiter:g,sep:m,win32:null,posix:{relative:p,resolve:o,parse:w,format:u,join:a,isAbsolute:c,basename:x,normalize:d,dirname:t,extname:k,delimiter:g,sep:m,win32:null,posix:null}}}const ae={darwin:{arm64:[{platform:"darwin",arch:"arm64",abi:null,platformArchABI:"qwik.darwin-arm64.node"}],x64:[{platform:"darwin",arch:"x64",abi:null,platformArchABI:"qwik.darwin-x64.node"}]},win32:{x64:[{platform:"win32",arch:"x64",abi:"msvc",platformArchABI:"qwik.win32-x64-msvc.node"}]},linux:{x64:[{platform:"linux",arch:"x64",abi:"gnu",platformArchABI:"qwik.linux-x64-gnu.node"}]}},pe={qwik:"2.0.0-beta.11-dev+d7daca3"};async function le(){const e=rt(),n={dynamicImport:i=>{throw new Error(`Qwik Optimizer sys.dynamicImport() not implemented, trying to import: "${i}"`)},strictDynamicImport:i=>{throw new Error(`Qwik Optimizer sys.strictDynamicImport() not implemented, trying to import: "${i}"`)},path:null,cwd:()=>"/",os:"unknown",env:e};if(n.path=V(n),e==="node"||e==="bun"){if(n.dynamicImport=i=>require(i),n.strictDynamicImport=i=>import(i),typeof TextEncoder>"u"){const i=await n.dynamicImport("node:util");globalThis.TextEncoder=i.TextEncoder,globalThis.TextDecoder=i.TextDecoder}}else(e==="webworker"||e==="browsermain")&&(n.strictDynamicImport=i=>import(i),n.dynamicImport=async i=>{const o=await(await fetch(i)).text(),d={exports:{}};return new Function("module","exports",o)(d,d.exports),d.exports});if(e!=="webworker"&&e!=="browsermain")try{n.path=await n.dynamicImport("node:path"),n.cwd=()=>process.cwd(),n.os=process.platform}catch{}return n}async function Bt(e){const n=rt();if(n==="node"||n==="bun"){const i=ae[process.platform];if(i){const r=i[process.arch];if(r)for(const o of r)try{return await e.dynamicImport(`../bindings/${o.platformArchABI}`)}catch(d){console.warn(`Unable to load native binding ${o.platformArchABI}. Falling back to wasm build.`,d?.message)}}}{if(n==="node"||n==="bun"){const i=e.path.join(__dirname,"..","bindings","qwik_wasm_bg.wasm"),r=await e.dynamicImport("../bindings/qwik.wasm.cjs"),d=await(await e.dynamicImport("node:fs")).promises.readFile(i),c=await WebAssembly.compile(d);return await r.default(c),r}if(n==="webworker"||n==="browsermain"){let i=pe.qwik;const r=`qwikWasmCjs${i}`,o=`qwikWasmRsp${i}`;let d=globalThis[r],c=globalThis[o];if(!d||!c){i=pe.qwik.split("-dev")[0];const x=`https://cdn.jsdelivr.net/npm/@qwik.dev/core@${i}/bindings/`,k=new URL("./qwik.wasm.cjs",x).href,u=new URL("./qwik_wasm_bg.wasm",x).href,w=await Promise.all([fetch(k),fetch(u)]);for(const g of w)if(!g.ok)throw new Error(`Unable to fetch Qwik WASM binding from ${g.url}`);const m=w[0];globalThis[r]=d=await m.text(),globalThis[o]=c=w[1]}const a={exports:{}};new Function("module","exports",d)(a,a.exports);const t=a.exports;return await t.default(c.clone()),t}}throw new Error("Platform not supported")}const rt=()=>typeof Deno<"u"?"deno":typeof Bun<"u"?"bun":typeof process<"u"&&typeof global<"u"&&process.versions&&process.versions.node?"node":typeof self<"u"&&typeof location<"u"&&typeof navigator<"u"&&typeof fetch=="function"&&typeof WorkerGlobalScope=="function"&&typeof self.importScripts=="function"?"webworker":typeof window<"u"&&typeof document<"u"&&typeof location<"u"&&typeof navigator<"u"&&typeof Window=="function"&&typeof fetch=="function"?"browsermain":"unknown",ot=async(e={})=>{const n=e?.sys||await le(),i=e?.binding||await Bt(n);return{async transformModules(o){return Ft(i,o)},sys:n}},Ft=(e,n)=>e.transform_modules(At(n)),At=e=>{const n={minify:"simplify",sourceMaps:!1,transpileTs:!1,transpileJsx:!1,preserveFilenames:!1,explicitExtensions:!1,mode:"lib",manualChunks:void 0,scope:void 0,regCtxName:void 0,stripEventHandlers:!1,rootDir:void 0,stripExports:void 0,stripCtxName:void 0,isServer:void 0};return Object.entries(e).forEach(([i,r])=>{r!=null&&(n[i]=r)}),n.entryStrategy=e.entryStrategy?.type??"smart",n.manualChunks=e.entryStrategy?.manual??void 0,n},zt=(e,n=0)=>{for(let i=0;i<e.length;i++){const r=e.charCodeAt(i);n=(n<<5)-n+r,n|=0}return Number(Math.abs(n)).toString(36)},Ht=new Set(["_run","_task"]);function Wt(e){const n=e.symbols;return Object.keys(n).sort((i,r)=>{const o=n[i],d=n[r];if(o.ctxKind==="eventHandler"&&d.ctxKind!=="eventHandler")return-1;if(o.ctxKind!=="eventHandler"&&d.ctxKind==="eventHandler")return 1;if(o.ctxKind==="eventHandler"&&d.ctxKind==="eventHandler"){const c=it.indexOf(o.ctxName.toLowerCase()),a=it.indexOf(d.ctxName.toLowerCase());if(c>-1&&a>-1){if(c<a)return-1;if(c>a)return 1}else{if(c>-1)return-1;if(a>-1)return 1}}else if(o.ctxKind==="function"&&d.ctxKind==="function"){const c=st.indexOf(o.ctxName.toLowerCase()),a=st.indexOf(d.ctxName.toLowerCase());if(c>-1&&a>-1){if(c<a)return-1;if(c>a)return 1}else{if(c>-1)return-1;if(a>-1)return 1}}return!o.parent&&d.parent?-1:o.parent&&!d.parent?1:o.hash<d.hash?-1:o.hash>d.hash?1:0})}const it=["click","dblclick","contextmenu","auxclick","pointerdown","pointerup","pointermove","pointerover","pointerenter","pointerleave","pointerout","pointercancel","gotpointercapture","lostpointercapture","touchstart","touchend","touchmove","touchcancel","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","wheel","gesturestart","gesturechange","gestureend","keydown","keyup","keypress","input","change","search","invalid","beforeinput","select","focusin","focusout","focus","blur","submit","reset","scroll"].map(e=>`on${e.toLowerCase()}$`),st=["useTask$","useVisibleTask$","component$","useStyles$","useStylesScoped$"].map(e=>e.toLowerCase());function Gt(e){return Object.keys(e.bundles).sort(Le)}function Qt(e){const n=Wt(e),i={},r={};for(const c of n)i[c]=e.symbols[c],r[c]=e.mapping[c];const o=Gt(e),d={};for(const c of o){d[c]=e.bundles[c];const a=e.bundles[c];Array.isArray(a.imports)&&a.imports.sort(Le),Array.isArray(a.dynamicImports)&&a.dynamicImports.sort(Le);const p=[];for(const t of n)c===r[t]&&p.push(t);p.length>0&&(p.sort(Le),a.symbols=p)}return e.symbols=i,e.mapping=r,e.bundles=d,e}function Le(e,n){return e=e.toLocaleLowerCase(),n=n.toLocaleLowerCase(),e<n?-1:e>n?1:0}function at(e){if(e!=null&&e.mapping!=null&&typeof e.mapping=="object"&&e.symbols!=null&&typeof e.symbols=="object"&&e.bundles!=null&&typeof e.bundles=="object")return e}const Kt=(e,n)=>{let i=0;if(e.symbols)for(const r of e.symbols){let o=1;const d=n.symbols[r];d&&(d.ctxKind==="function"?/(component|useStyles|useStylesScoped)/i.test(d.ctxName)?o+=1:/(useComputed|useTask|useVisibleTask|useOn)/i.test(d.ctxName)&&(o+=2):(o+=1,/(click|mouse|pointer|touch|key|scroll|gesture|wheel)/i.test(d.ctxName)&&(o+=3))),i=Math.max(i,o)}return i};function Jt(e){let n=0;const i=[],r=[],o=new Map,d=new Map,c=new Set;function a(m){o.set(m,n),d.set(m,n),n++,i.push(m),c.add(m);const g=e[m].imports||[];for(const f of g)o.has(f)?c.has(f)&&d.set(m,Math.min(d.get(m),o.get(f))):(a(f),d.set(m,Math.min(d.get(m),d.get(f))));if(d.get(m)===o.get(m)){const f=[];let l;do l=i.pop(),c.delete(l),f.push(l);while(l!==m);r.push(f)}}for(const m of Object.keys(e))o.has(m)||a(m);const p=new Map;r.forEach((m,g)=>{for(const f of m)p.set(f,g)});const t=Array.from({length:r.length},()=>new Set);for(const m of Object.keys(e)){const g=p.get(m);for(const f of e[m].imports||[]){const l=p.get(f);g!==l&&t[g].add(l)}}const x=new Set,k=[];function u(m){x.add(m);for(const g of t[m])x.has(g)||u(g);k.push(m)}for(let m=0;m<r.length;m++)x.has(m)||u(m);k.reverse();const w=new Array(r.length).fill(0);for(let m=0;m<r.length;m++){let g=0;for(const f of r[m])g+=e[f].size;w[m]=g}for(let m=k.length-1;m>=0;m--){const g=k[m];let f=w[g];for(const l of t[g])f+=w[l];w[g]=f}for(let m=0;m<r.length;m++){const g=w[m];for(const f of r[m])e[f].total=g}}const lt=/[/\\](core|qwik)[/\\]dist[/\\]preloader\.(|c|m)js$/,ct=/[/\\](core|qwik)[/\\]dist[/\\]core(\.min|\.prod)?\.(|c|m)js$/,dt=/[/\\](core|qwik)[/\\](dist[/\\])?qwikloader(\.debug)?\.[^/]*js$/,ut=/[/\\](core|qwik)[/\\]handlers\.(|c|m)js$/;function Yt(e,n,i,r,o,d,c){var k;const a={version:"1",manifestHash:"",options:{target:o.target,buildMode:o.buildMode,entryStrategy:o.entryStrategy&&{type:o.entryStrategy.type}},core:void 0,preloader:void 0,qwikLoader:void 0,bundleGraphAsset:void 0,injections:i,mapping:{},bundles:{},assets:{},symbols:{},bundleGraph:void 0},p=u=>{const w=r[u];if(!w){console.warn(`Client manifest generation: skipping external import "${u}"`);return}return c(w.fileName)};let t;const x=new Set(n.map(u=>u.name));for(const u of Object.values(r)){if(u.type==="asset"){u.fileName.endsWith("js.map")||(a.assets[u.fileName]={name:u.names[0],size:u.source.length});continue}const w=c(u.fileName),g={size:u.code.length,total:-1};for(const h of u.exports)x.has(h)&&(!a.mapping[h]||u.exports.length!==1)&&(a.mapping[h]=w);const f=u.imports.filter(h=>u.code.includes(e.basename(h))).map(h=>p(h)).filter(Boolean);f.length>0&&(g.imports=f);const l=u.dynamicImports.filter(h=>u.code.includes(e.basename(h))).map(h=>p(h)).filter(Boolean);l.length>0&&(g.dynamicImports=l),u.facadeModuleId&&(lt.test(u.facadeModuleId)?a.preloader=w:ct.test(u.facadeModuleId)?a.core=w:dt.test(u.facadeModuleId)?a.qwikLoader=w:ut.test(u.facadeModuleId)&&(t=w));const y=(u.moduleIds||Object.keys(u.modules)).filter(h=>!h.startsWith("\0")).map(h=>e.relative(o.rootDir,h));y.length>0&&(g.origins=y,!a.preloader&&y.some(h=>lt.test(h))&&(a.preloader=w),!a.core&&y.some(h=>ct.test(h))&&(a.core=w),!a.qwikLoader&&y.some(h=>dt.test(h))&&(a.qwikLoader=w),!t&&y.some(h=>ut.test(h))&&(t=w)),a.bundles[w]=g}for(const u of n){const w=u.name,m=a.mapping[w];if(!m){d(`Note: qrl ${u.name} is not in the bundle, likely tree shaken`,a);continue}((k=a.bundles[m]).symbols||(k.symbols=[])).push(w),a.symbols[w]={displayName:u.displayName,hash:u.hash,ctxKind:u.ctxKind,ctxName:u.ctxName,captures:u.captures,canonicalFilename:u.canonicalFilename,parent:u.parent,origin:u.origin,loc:u.loc,paramNames:u.paramNames,captureNames:u.captureNames}}if(t)for(const u of Ht)a.symbols[u]={origin:"Qwik core",displayName:u,canonicalFilename:"",hash:u,ctxKind:"function",ctxName:u,captures:!1,parent:null,loc:[0,0]},a.mapping[u]=t;else console.error("Qwik core bundle not found, is Qwik actually used in this project?");for(const u of Object.values(a.bundles)){const w=Kt(u,a);u.interactivity=w}return Jt(a.bundles),Qt(a)}const Xt=.5/(300*1024/8),Vt=e=>{const n=e.lastIndexOf("_");return n>-1?e.slice(n+1):e};function Zt(e,n){const i=[];if(!e.bundles)return[];const r={...e.bundles};for(const[p,t]of Object.entries(e.mapping)){if(p.startsWith("_")&&p.length<10)continue;const x=Vt(p);x&&(r[x]={dynamicImports:[t]})}if(n){const p={...e,bundles:r};for(const t of n){const x=t(p);x&&Object.assign(r,x)}}for(const p of Object.keys(r)){const t=r[p],x=t.imports?.filter(u=>r[u])||[],k=t.dynamicImports?.filter(u=>r[u]&&(r[u].symbols||r[u].origins?.some(w=>!w.includes("node_modules"))))||[];r[p]={...t,imports:x,dynamicImports:k}}const o=new Set(Object.keys(r));for(const p of Object.keys(r)){for(const t of r[p].imports)o.delete(t);for(const t of r[p].dynamicImports)o.delete(t)}for(const p of o){const t=r[p];!t.imports?.length&&!t.dynamicImports?.length&&delete r[p]}const d=Object.keys(r),c=new Map,a=(p,t,x=new Set)=>{const k=r[t];for(const u of k.imports)p.has(u)&&p.delete(u),x.has(u)||(x.add(u),a(p,u,x))};for(const p of d){const t=r[p],x=new Set(t.imports);for(const m of x)a(x,m);const k=new Set(t.dynamicImports),u=new Map;for(const m of k){a(k,m);const g=r[m];let f=.5;if(f+=(g.interactivity||0)*.08,t.origins&&g.origins){for(const l of t.origins)if(g.origins.some(s=>s.startsWith(l))){f+=.25;break}}g.total>Xt&&(f+=f>.5?.02:-.02),g.total<1e3&&(f+=.15),u.set(m,Math.min(f,.99))}if(k.size>0){const m=Array.from(k).sort((f,l)=>u.get(l)-u.get(f));let g=-1;for(const f of m)u.get(f)!==g&&(g=u.get(f),x.add(-Math.round(g*10))),x.add(f)}const w=i.length;i.push(p);for(let m=0;m<x.size;m++)i.push(null);c.set(p,{index:w,deps:x})}for(const p of d){const t=c.get(p);let{index:x,deps:k}=t;x++;for(const u of k){if(typeof u=="number"){i[x++]=u;continue}const m=c.get(u).index;i[x++]=m}}return i}async function en(e,n,i){const r=await e.dynamicImport("eslint");let o=new r.ESLint({cache:!0});if((await o.calculateConfigForFile("no-real-file.tsx")).parser===null){const a={cache:!0,overrideConfig:{languageOptions:{parserOptions:{tsconfigRootDir:n,project:i,ecmaVersion:2021,sourceType:"module",ecmaFeatures:{jsx:!0}}}}};o=new r.ESLint(a)}return{async lint(a,p,t){try{const x=tn(t);if(await o.isPathIgnored(x))return null;(await o.lintText(p,{filePath:x})).forEach(u=>{for(const w of u.messages){if(w.ruleId!=null&&!w.ruleId.startsWith("qwik/"))continue;const m=nn(u.filePath,w);a.warn(m)}})}catch(x){console.warn(x)}}}}function tn(e){return e.split("?",2)[0]}function nn(e,n){return Object.assign(new Error(n.message),{id:e,plugin:"vite-plugin-eslint",loc:{file:e,column:n.column,line:n.line},stack:""})}async function rn(e,n){const i=n;let r=i.loc;if(!i.frame&&!i.plugin&&(r||(r=on(i)),r&&(i.loc=r,r.file))){const o=await e.dynamicImport("node:fs"),{normalizePath:d}=await e.dynamicImport("vite");i.id=d(i.loc.file);try{const c=o.readFileSync(i.loc.file,"utf-8");i.frame=an(c,i.loc)}catch{}}return n}const on=e=>{const n=e.stack;if(typeof n=="string"){const i=n.split(`
8
+ `).filter(r=>!r.includes("/node_modules/")&&!r.includes("(node:"));for(let r=1;r<i.length;r++){const o=i[r].replace("file:///","/");if(/^\s+at/.test(o)){const d=o.indexOf("/"),c=o.lastIndexOf(")",d);if(d>0){const p=o.slice(d,c).split(":"),t=ft(p[p.length-1]),x=ft(p[p.length-2]);return typeof t=="number"&&typeof x=="number"?(p.length-=2,{file:p.join(":"),line:x,column:t}):typeof t=="number"?(p.length-=1,{file:p.join(":"),line:t,column:void 0}):{file:p.join(":"),line:void 0,column:void 0}}}}}},ee=e=>e.startsWith("\0"),ft=e=>{try{return parseInt(e,10)}catch{return}},pt=/\r?\n/,ht=2;function sn(e,n){if(typeof n=="number")return n;if(n.lo!=null)return n.lo;const i=e.split(pt),{line:r,column:o}=n;let d=0;for(let c=0;c<r-1&&c<i.length;c++)d+=i[c].length+1;return d+o}function an(e,n=0,i){n=sn(e,n),i=i||n;const r=e.split(pt);let o=0;const d=[];for(let c=0;c<r.length;c++)if(o+=r[c].length+1,o>=n){for(let a=c-ht;a<=c+ht||i>o;a++){if(a<0||a>=r.length)continue;const p=a+1;d.push(`${p}${" ".repeat(Math.max(3-String(p).length,0))}| ${r[a]}`);const t=r[a].length;if(a===c){const x=Math.max(n-(o-t)+1,0),k=Math.max(1,i>o?t-x:i-n);d.push(" | "+" ".repeat(x)+"^".repeat(k))}else if(a>c){if(i>o){const x=Math.max(Math.min(i-o,t),1);d.push(" | "+"^".repeat(x))}o+=t+1}}break}return d.join(`
9
+ `)}function ln(e){return e==="win32"}function Ue(e){const[n,i]=e.split("?"),r=i||"";return{originalId:e,pathId:n,query:r?`?${i}`:"",params:new URLSearchParams(r)}}const cn=["server"],dn=["onGet","onPost","onPut","onRequest","onDelete","onHead","onOptions","onPatch","onStaticGenerate"],un=["useServer","route","server","action$","loader$","zod$","validator$","globalAction$"],fn=["useClient","useBrowser","useVisibleTask","client","browser","event$"];var mt=(e=>(e.preventNavigate="preventNavigate",e.valibot="valibot",e.noSPA="noSPA",e.enableRequestRewrite="enableRequestRewrite",e.webWorker="webWorker",e.insights="insights",e))(mt||{});function gt(e={}){const n=`${Math.round(Math.random()*899)+100}`,i=new Map,r=new Map,o=new Map,d=new Map;let c=null,a,p=()=>{};const t={csr:!1,target:"client",buildMode:"development",debug:!1,rootDir:void 0,tsconfigFileNames:["./tsconfig.json"],input:void 0,outDir:void 0,assetsDir:void 0,resolveQwikBuild:!0,entryStrategy:void 0,srcDir:void 0,ssrOutDir:void 0,clientOutDir:void 0,sourcemap:!!e.sourcemap,manifestInput:null,manifestOutput:null,transformedModuleOutput:null,scope:null,devTools:{imageDevTools:!0,clickToSource:["Alt"]},inlineStylesUpToBytes:2e4,lint:!1,experimental:void 0};let x,k;const u=async()=>{if(!c){c=await ot(e),x=pn(c.sys);try{k===void 0&&(k=await c.sys.dynamicImport("node:fs"))}catch{console.log("node:fs not available, disabling automatic manifest reading"),k=null}}},w=()=>{if(!c)throw new Error("Qwik plugin has not been initialized");return c},m=()=>w().sys,g=()=>w().sys.path;let f;const l=S=>{f=S},s=async S=>{const b=Object.assign({},S),_=w(),N=_.sys.path,D=(...O)=>Q(N.resolve(...O));t.debug=!!b.debug,b.assetsDir&&(t.assetsDir=b.assetsDir),b.target==="ssr"||b.target==="client"||b.target==="lib"||b.target==="test"?t.target=b.target:t.target||(t.target="client"),t.target==="lib"?t.buildMode="development":b.buildMode==="production"||b.buildMode==="development"?t.buildMode=b.buildMode:t.buildMode||(t.buildMode="development"),t.csr=!!b.csr,b.entryStrategy&&typeof b.entryStrategy=="object"&&(t.entryStrategy={...b.entryStrategy}),t.entryStrategy||(t.target==="ssr"||t.target==="test"?t.entryStrategy={type:"hoist"}:t.target==="lib"?t.entryStrategy={type:"inline"}:t.buildMode==="production"?t.entryStrategy={type:"smart"}:t.entryStrategy={type:"segment"}),typeof b.rootDir=="string"&&(t.rootDir=b.rootDir),typeof t.rootDir!="string"&&(t.rootDir||(t.rootDir=_.sys.cwd())),t.rootDir=D(_.sys.cwd(),t.rootDir);let C=D(t.rootDir,gn);if(typeof b.srcDir=="string"?(t.srcDir=D(t.rootDir,b.srcDir),C=t.srcDir):t.srcDir||(t.srcDir=C),t.srcDir=D(t.rootDir,t.srcDir),Array.isArray(b.tsconfigFileNames)&&b.tsconfigFileNames.length>0&&(t.tsconfigFileNames=b.tsconfigFileNames),!t.csr&&!b.input&&!t.input&&(t.target==="ssr"?t.input=[D(C,"entry.ssr")]:t.target==="client"?t.input=[D(C,"root")]:t.input=void 0),b.outDir&&(t.outDir=D(t.rootDir,b.outDir)),t.clientOutDir=D(t.rootDir,b.clientOutDir||bt),t.ssrOutDir=D(t.rootDir,b.ssrOutDir||yn),t.target==="ssr"?t.outDir||(t.outDir=t.ssrOutDir):t.target==="lib"?t.outDir||(t.outDir=D(t.rootDir,bn)):t.outDir||(t.outDir=t.clientOutDir),typeof b.manifestOutput=="function"&&(t.manifestOutput=b.manifestOutput),b.manifestInput&&(t.manifestInput=at(b.manifestInput)||null),typeof b.transformedModuleOutput=="function"&&(t.transformedModuleOutput=b.transformedModuleOutput),b.scope!==void 0)t.scope=b.scope;else if(!t.scope&&k){let O="";try{let $=t.rootDir;for(;O=N.resolve($,"package.json"),!await k.promises.stat(O).catch(()=>!1);){const M=N.resolve($,"..");if(M===$)break;$=M,O=""}if(O){const M=await k.promises.readFile(O,"utf-8"),q=JSON.parse(M);typeof q.name=="string"&&(t.scope=q.name)}}catch($){console.warn(`could not read ${O||"package.json"} to determine package name, ignoring. (${$})`)}}if(typeof b.resolveQwikBuild=="boolean"&&(t.resolveQwikBuild=b.resolveQwikBuild),typeof b.devTools=="object"&&("imageDevTools"in b.devTools&&(t.devTools.imageDevTools=b.devTools.imageDevTools),"clickToSource"in b.devTools&&(t.devTools.clickToSource=b.devTools.clickToSource)),"inlineStylesUpToBytes"in e&&(typeof e.inlineStylesUpToBytes=="number"?t.inlineStylesUpToBytes=e.inlineStylesUpToBytes:(typeof t.inlineStylesUpToBytes!="number"||t.inlineStylesUpToBytes<0)&&(t.inlineStylesUpToBytes=0)),typeof b.lint=="boolean"&&(t.lint=b.lint),"experimental"in b){t.experimental=void 0;for(const O of b.experimental??[])mt[O]?(t.experimental||(t.experimental={}))[O]=!0:console.error(`Qwik plugin: Unknown experimental feature: ${O}`)}const B={...t};return t.input||(t.input=b.input),t.input&&typeof t.input=="string"&&(t.input=[t.input]),B};let y=!1;const h=async S=>{if(!y){y=!0;const b=m();if(b.env==="node"){const _=await b.dynamicImport("node:fs");if(!_.existsSync(t.rootDir))throw new Error(`Qwik rootDir "${t.rootDir}" not found.`);if(typeof t.srcDir=="string"&&!_.existsSync(t.srcDir))throw new Error(`Qwik srcDir "${t.srcDir}" not found.`);for(const[N,D]of Object.entries(t.input||{}))if(!await S(D))throw new Error(`Qwik input "${D}" not found.`)}}};let I,v=!1;const T=async S=>{if(L("buildStart()",t.buildMode,t.scope,t.target,t.rootDir,t.srcDir),I=w(),v=!f,I.sys.env==="node"&&t.target==="ssr"&&t.lint)try{a=await en(I.sys,t.rootDir,t.tsconfigFileNames)}catch{}if(L("transformedOutputs.clear()"),r.clear(),o.clear(),t.target==="client"){const b=await S.resolve("@qwik.dev/core/qwikloader.js",void 0,{skipSelf:!0});b&&S.emitFile({id:b.id,type:"chunk",preserveSignature:"allow-extension"})}},E=S=>f?!!S?.ssr:t.target==="ssr"||t.target==="test";let P=0,U=!1;const j=async(S,b,_,N)=>{if(ee(b))return;const D=f&&/^(.*)\?editor(:(\d+)(:\d+)?)?$/.exec(b);if(D){if(!U){U=!0,setTimeout(()=>U=!1,500);const[,K,z]=D,he=await S.resolve(K,_);if(he){const ue=f.moduleGraph.getModuleById(he.id)?.file;if(ue){const se=`${ue}${z}`;try{console.warn(`Opening in editor: ${se}`);const X=(await import("launch-editor")).default;X(se)}catch(X){console.error(`Failed to open editor: ${X.message}`)}}}}return{id:"\0editor"}}const C=P++,B=E(N);L(`resolveId(${C})`,`begin ${b} | ${B?"server":"client"} | ${_}`);const O=_&&Ue(_);if(_=O&&Q(O.pathId),b.startsWith(".")&&O){const K=g(),z=K.dirname(O.pathId);z&&(b=K.resolve(z,b))}const $=Ue(b),M=Q($.pathId);let q;if(d.get(M))L(`resolveId(${C}) Resolved already known ${M}`),q={id:M+$.query,moduleSideEffects:!1};else if(M.endsWith(re))t.resolveQwikBuild&&(L(`resolveId(${C})`,"Resolved",re),q={id:re,moduleSideEffects:!1});else if(M.endsWith(oe))L(`resolveId(${C})`,"Resolved",oe),q={id:oe,moduleSideEffects:!1};else if(!f&&!B&&M.endsWith(Ye)){L(`resolveId(${C})`,"Resolved",Ye);const K=await S.resolve(Ye,_,{skipSelf:!0});if(K)return S.emitFile({id:K.id,type:"chunk",preserveSignature:"allow-extension"}),K}else if(M.endsWith(ge))L(`resolveId(${C})`,"Resolved",ge),q={id:ge,moduleSideEffects:!1};else{if(!B&&v&&b.endsWith("@qwik.dev/core")){v=!1;const z=await S.resolve("@qwik.dev/core/handlers.mjs",_,{skipSelf:!0});if(!z)throw new Error("Failed to resolve @qwik.dev/core/handlers.mjs");S.emitFile({id:z.id,type:"chunk",preserveSignature:"allow-extension"})}const K=/^(?<parent>.*\.[mc]?[jt]sx?)_(?<name>[^/]+)\.js(?<query>$|\?.*$)/.exec(b)?.groups;if(K){const{parent:z,name:he,query:ue}=K,se=await S.resolve(z,_,{skipSelf:!0});if(se){const X=se.id.split("?")[0],We=f&&_?.endsWith(".html")?`${X}_${he}.js`:M;L(`resolveId(${C})`,`resolved to QRL ${he} of ${X}`),d.set(We,X),q={id:We+ue,moduleSideEffects:!1}}else console.error(`resolveId(${C})`,`QRL parent ${z} does not exist!`)}else if(_){const z=d.get(_);if(z)return L(`resolveId(${C}) end`,`resolving via ${z}`),S.resolve(b,z,{skipSelf:!0})}}return L(`resolveId(${C}) end`,q?.id||q),q};let R=0;const H=async(S,b,_)=>{if(b==="\0editor")return'"opening in editor"';if(ee(b)||b.startsWith("/@fs/"))return;const N=R++,D=E(_);if(t.resolveQwikBuild&&b===re)return L(`load(${N})`,re,t.buildMode),{moduleSideEffects:!1,code:de(D,t.target)};if(b===oe)return L(`load(${N})`,oe,t.buildMode),{moduleSideEffects:!1,code:await ze(D)};if(b===ge)return L(`load(${N})`,ge,t.buildMode),{moduleSideEffects:!1,code:"export * from '@qwik.dev/core';"};const C=Ue(b);b=Q(C.pathId);const B=D?o:r;if(f&&!B.has(b)){const $=d.get(b);if($){const M=f.moduleGraph.getModuleById($);if(M){if(L(`load(${N})`,"transforming QRL parent",$),await f.transformRequest(M.url),!B.has(b))return L(`load(${N})`,`QRL segment ${b} not found in ${$}`),null}else console.error(`load(${N})`,`${M} does not exist!`)}}const O=B.get(b);if(O){L(`load(${N})`,"Found",b);const{code:$,map:M,segment:q}=O[0];return{code:$,map:M,meta:{segment:q}}}return L(`load(${N})`,"Not a QRL or virtual module",b),null},Y=(S,b)=>!!(f&&S.includes(".vite/deps/")&&b.slice(0,1e4).includes("qwik"));let ce=0;const W=async function(S,b,_,N={}){if(ee(_))return;const D=ce++,C=E(N),B=C?o:r;if(B.has(_))return;const O=w(),$=g(),{pathId:M}=Ue(_),q=$.parse(M),K=q.dir,z=q.base;if(q.ext.toLowerCase()in mn||yt.test(M)||Y(_,b)){const ue=t.target==="client"||t.target==="ssr";L(`transform(${D})`,`Transforming ${_} (for: ${C?"server":"client"}${ue?", strip":""})`);const se=t.target==="lib"?"lib":t.buildMode==="development"?"dev":"prod";se!=="lib"&&(b=b.replaceAll(/__EXPERIMENTAL__\.(\w+)/g,(ne,fe)=>t.experimental?.[fe]?"true":"false"));let X=z;t.srcDir&&(X=$.relative(t.srcDir,M)),X=Q(X);const He=t.srcDir?t.srcDir:Q(K),We=t.entryStrategy;let $t;f&&($t=f.moduleGraph.getModuleById(M)?.url);const me={input:[{code:b,path:X,devPath:$t}],entryStrategy:C?{type:"hoist"}:We,minify:"simplify",sourceMaps:t.sourcemap||t.buildMode==="development",transpileTs:!0,transpileJsx:!0,explicitExtensions:!0,preserveFilenames:!0,srcDir:He,rootDir:t.rootDir,mode:se,scope:t.scope||void 0,isServer:C};ue&&(C?(me.stripCtxName=fn,me.stripEventHandlers=!0,me.regCtxName=cn):(me.stripCtxName=un,me.stripExports=dn));const Kr=Date.now(),Oe=await O.transformModules(me);L(`transform(${D})`,`done in ${Date.now()-Kr}ms`);const Ge=Oe.modules.find(ne=>!hn(ne));p(Oe.diagnostics,O,He),C?Oe.diagnostics.length===0&&a&&a.lint(S,b,_):i.set(_,Oe);const tt=new Set;for(const ne of Oe.modules)if(ne!==Ge){const fe=Q($.join(He,ne.path));L(`transform(${D})`,`segment ${fe}`,ne.segment.displayName),d.set(fe,_),B.set(fe,[ne,_]),tt.add(fe),t.target==="client"&&!f&&S.emitFile({id:fe,type:"chunk",preserveSignature:"allow-extension"})}return await Promise.all([...tt.values()].map(ne=>S.load({id:ne}))),S.addWatchFile(_),{code:Ge.code,map:Ge.map,meta:{segment:Ge.segment,qwikdeps:Array.from(tt)}}}return L(`transform(${D})`,"Not transforming",_),null},Z=S=>{const b=[],_={addInjection:N=>b.push(N)};return _.generateManifest=async N=>{const C=w().sys.path,B=C.resolve(t.rootDir,t.outDir,"build"),O=q=>C.relative(B,C.resolve(t.rootDir,t.outDir,q));_.canonPath=O;const $=Array.from(i.values()).flatMap(q=>q.modules).map(q=>q.segment).filter(q=>!!q),M=Yt(C,$,b,S,t,L,O);N&&Object.assign(M,N);for(const q of Object.values(M.symbols))q.origin&&(q.origin=Q(q.origin));for(const q of Object.values(M.bundles))q.origins&&(q.origins=q.origins.sort());return M.manifestHash=zt(JSON.stringify(M)),M},_},te=()=>t,je=()=>Array.from(r.values()).map(S=>S[0]),L=(...S)=>{t.debug&&console.debug(`[QWIK PLUGIN: ${n}]`,...S)},G=(...S)=>{console.log(`[QWIK PLUGIN: ${n}]`,...S)},Ae=S=>{p=S},Q=S=>x(S);function de(S,b){const _=t.buildMode==="development";return`// @qwik.dev/core/build
10
+ export const isServer = ${JSON.stringify(S)};
11
+ export const isBrowser = ${JSON.stringify(!S)};
12
12
  export const isDev = ${JSON.stringify(_)};
13
- `}async function fe(k){if(!t.manifestInput&&t.target==="ssr"&&t.buildMode==="production"&&S){const N=g();let D=N.resolve(t.clientOutDir,Je);await S.promises.stat(D).catch(()=>!1)||(D=N.resolve(t.rootDir,yt,Je));try{const C=await S.promises.readFile(D,"utf-8");t.manifestInput=st(JSON.parse(C))||null,console.info("Read client manifest from",D)}catch(C){console.warn(`
13
+ `}async function ze(S){if(!t.manifestInput&&t.target==="ssr"&&t.buildMode==="production"&&k){const N=g();let D=N.resolve(t.clientOutDir,Xe);await k.promises.stat(D).catch(()=>!1)||(D=N.resolve(t.rootDir,bt,Xe));try{const C=await k.promises.readFile(D,"utf-8");t.manifestInput=at(JSON.parse(C))||null,console.info("Read client manifest from",D)}catch(C){console.warn(`
14
14
  ==========
15
15
  Could not read Qwik client manifest ${D}.
16
16
  Make sure you provide it to the SSR renderer via the \`manifest\` argument, or define it in \`globalThis.__QWIK_MANIFEST__\` before the server bundle is loaded, or embed it in the server bundle by replacing \`globalThis.__QWIK_MANIFEST__\`.
17
17
  Without the manifest, the SSR renderer will not be able to generate event handlers.
18
18
  (${C})
19
19
  ==========
20
- `)}}const y=k?t.manifestInput:null;let _=null;return y?.manifestHash&&(_={manifestHash:y.manifestHash,core:y.core,preloader:y.preloader,qwikLoader:y.qwikLoader,bundleGraphAsset:y.bundleGraphAsset,injections:y.injections,mapping:y.mapping,bundleGraph:y.bundleGraph}),`// @qwik-client-manifest
20
+ `)}}const b=S?t.manifestInput:null;let _=null;return b?.manifestHash&&(_={manifestHash:b.manifestHash,core:b.core,preloader:b.preloader,qwikLoader:b.qwikLoader,bundleGraphAsset:b.bundleGraphAsset,injections:b.injections,mapping:b.mapping,bundleGraph:b.bundleGraph}),`// @qwik-client-manifest
21
21
  export const manifest = ${_?JSON.stringify(_):"globalThis.__QWIK_MANIFEST__"};
22
- `}function Be(k){t.sourcemap=k}function Fr(k){O("handleHotUpdate()",k.file);for(const y of k.modules){const{id:_}=y;if(_){O("handleHotUpdate()",`invalidate ${_}`),i.delete(_);for(const N of[r,o])for(const[D,[C,B]]of N)if(B===_){O("handleHotUpdate()",`invalidate ${_} segment ${D}`),N.delete(D);const L=k.server.moduleGraph.getModuleById(D);L&&k.server.moduleGraph.invalidateModule(L)}}}}const zr=(k,{getModuleInfo:y})=>{if(t.target==="client"){if(k.endsWith("@qwik.dev/core/build")||/[/\\](core|qwik)[/\\]dist[/\\]preloader\.[cm]js$/.test(k)||k==="\0vite/preload-helper.js")return"qwik-preloader";if(/[/\\](core|qwik)[/\\](handlers|dist[/\\]core(\.prod|\.min)?)\.[cm]js$/.test(k))return"qwik-core";if(/[/\\](core|qwik)[/\\]dist[/\\]qwikloader\.js$/.test(k))return"qwik-loader"}const _=y(k);if(_){const N=_.meta.segment;if(N){const{hash:D}=N,C=t.entryStrategy.manual?.[D]||N.entry;if(C)return C}if(_.meta.qwikdeps?.length===0){if(k.includes("node_modules")){const D=k.lastIndexOf("node_modules");if(D>=0)return k.slice(D+13)}else if(t.srcDir&&k.includes(t.srcDir)){const D=g();return K(D.relative(t.srcDir,k))}}}return null};async function Hr(k,y,_,N){const C=await W(y).generateManifest(N);C.platform={...N?.platform,rollup:k.meta?.rollupVersion||"",env:I.sys.env,os:I.sys.os},I.sys.env==="node"&&(C.platform.node=process.versions.node);const B=Zt(C,_),L=k.emitFile({type:"asset",name:"bundle-graph.json",source:JSON.stringify(B)}),$=k.getFileName(L);C.bundleGraphAsset=$,C.assets[$]={name:"bundle-graph.json",size:B.length};const M=JSON.stringify(C,null," ");k.emitFile({fileName:Je,type:"asset",source:M}),typeof t.manifestOutput=="function"&&await t.manifestOutput(C),typeof t.transformedModuleOutput=="function"&&await t.transformedModuleOutput(V())}return{buildStart:T,createOutputAnalyzer:W,getQwikBuildModule:qe,getOptimizer:v,getOptions:ee,getPath:g,getSys:m,getTransformedOutputs:V,init:u,load:H,debug:O,log:Ve,normalizeOptions:s,normalizePath:K,onDiagnostics:G,resolveId:j,transform:le,validateSource:h,setSourceMapSupport:Be,configureServer:l,handleHotUpdate:Fr,manualChunks:zr,generateManifest:Hr}}const fn=e=>n=>typeof n=="string"?an(e.os)?(n.startsWith("\\\\?\\")||/[^\u0000-\u0080]+/.test(n)||(n=n.replace(/\\/g,"/")),e.path.posix.normalize(n)):e.path.normalize(n):n;function pn(e){return e.isEntry||e.segment}const hn={".jsx":!0,".ts":!0,".tsx":!0},gt=/\.qwik\.[mc]?js$/,Ue="@qwik.dev/core",He="@qwik.dev/core/internal",ne="@qwik.dev/core/build",We="@qwik.dev/core/jsx-runtime",Ge="@qwik.dev/core/jsx-dev-runtime",Ke="@qwik.dev/core/server",re="@qwik-client-manifest",Qe="@qwik.dev/core/preloader",me="@qwik-handlers",mn="src",yt="dist",gn="server",yn="lib",Je="q-manifest.json";function bn(e={}){const n=mt(e.optimizerOptions);return{name:"rollup-plugin-qwik",api:{getOptimizer:()=>n.getOptimizer(),getOptions:()=>n.getOptions()},async options(r){await n.init();const o=r.onwarn;r.onwarn=(a,f)=>{a.plugin==="typescript"&&a.message.includes("outputToFilesystem")||(o?o(a,f):f(a))};const d={csr:e.csr,target:e.target,buildMode:e.buildMode,debug:e.debug,entryStrategy:e.entryStrategy,rootDir:e.rootDir,srcDir:e.srcDir,srcInputs:e.srcInputs,input:r.input,resolveQwikBuild:!0,manifestOutput:e.manifestOutput,manifestInput:e.manifestInput,transformedModuleOutput:e.transformedModuleOutput,inlineStylesUpToBytes:e.optimizerOptions?.inlineStylesUpToBytes,lint:e.lint,experimental:e.experimental};await n.normalizeOptions(d);const{input:c}=n.getOptions();return r.input=c,r},outputOptions(r){return Ye(n,r,!1)},async buildStart(){n.onDiagnostics((r,o,d)=>{r.forEach(c=>{const a=n.normalizePath(o.sys.path.join(d,c.file));c.category==="error"?this.error($e(a,c)):this.warn($e(a,c))})}),await n.buildStart(this)},resolveId(r,o){return r.startsWith("\0")?null:n.resolveId(this,r,o)},load(r){return r.startsWith("\0")?null:n.load(this,r)},transform(r,o){return o.startsWith("\0")?null:n.transform(this,r,o)},async generateBundle(r,o){n.getOptions().target==="client"&&await n.generateManifest(this,o)}}}function vn(e,n,i,r){return Array.isArray(n)?(n.length||n.push({}),n.map(o=>({...Ye(e,o,i),dir:r||o.dir}))):{...Ye(e,n,i),dir:r||n?.dir}}const wn=(e,n,i)=>n.buildMode==="production"&&!n.debug?`${e}build/q-[hash].js`:r=>{if(r.moduleIds?.some(c=>/core\.(prod|min)\.mjs$/.test(c)))return`${e}build/core.js`;if(r.moduleIds?.some(c=>/qwik-router\/lib\/index\.qwik\.mjs$/.test(c)))return`${e}build/qwik-router.js`;const d=i.sys.path.relative(i.sys.cwd(),r.name).replace(/^(\.\.\/)+/,"").replace(/^\/+/,"").replace(/\//g,"-");return`${e}build/${d}.js`};function Ye(e,n,i){const r={...n},o=e.getOptions(),d=e.getOptimizer(),c=e.manualChunks;r.assetFileNames||(r.assetFileNames=`${i?`${o.assetsDir}/`:""}assets/[hash]-[name].[ext]`);const a=wn(i?`${o.assetsDir}`:"",o,d);if(o.target==="client"){r.entryFileNames||(r.entryFileNames=a),r.chunkFileNames||(r.chunkFileNames=a),r.format="es";const f=r.manualChunks;if(f&&typeof f!="function")throw new Error("manualChunks must be a function");r.manualChunks=f?(t,x)=>f(t,x)||c(t,x):c}else r.chunkFileNames||(r.chunkFileNames=a);return r.dir||(r.dir=o.outDir),r.format==="cjs"&&typeof r.exports!="string"&&(r.exports="auto"),r.hoistTransitiveImports=!1,r}function $e(e,n){const i=n.highlights?.[0];return Object.assign(new Error(n.message),{id:e,plugin:"qwik",loc:i&&{column:i.startCol,line:i.startLine},stack:""})}function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ge={},Xe={},bt;function F(){return bt||(bt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.findBox=e.readUInt=e.readUInt32LE=e.readUInt32BE=e.readInt32LE=e.readUInt24LE=e.readUInt16LE=e.readUInt16BE=e.readInt16LE=e.toHexString=e.toUTF8String=void 0;const n=new TextDecoder,i=(g,p=0,l=g.length)=>n.decode(g.slice(p,l));e.toUTF8String=i;const r=(g,p=0,l=g.length)=>g.slice(p,l).reduce((s,b)=>s+("0"+b.toString(16)).slice(-2),"");e.toHexString=r;const o=(g,p=0)=>{const l=g[p]+g[p+1]*256;return l|(l&2**15)*131070};e.readInt16LE=o;const d=(g,p=0)=>g[p]*2**8+g[p+1];e.readUInt16BE=d;const c=(g,p=0)=>g[p]+g[p+1]*2**8;e.readUInt16LE=c;const a=(g,p=0)=>g[p]+g[p+1]*2**8+g[p+2]*2**16;e.readUInt24LE=a;const f=(g,p=0)=>g[p]+g[p+1]*2**8+g[p+2]*2**16+(g[p+3]<<24);e.readInt32LE=f;const t=(g,p=0)=>g[p]*2**24+g[p+1]*2**16+g[p+2]*2**8+g[p+3];e.readUInt32BE=t;const x=(g,p=0)=>g[p]+g[p+1]*2**8+g[p+2]*2**16+g[p+3]*2**24;e.readUInt32LE=x;const S={readUInt16BE:e.readUInt16BE,readUInt16LE:e.readUInt16LE,readUInt32BE:e.readUInt32BE,readUInt32LE:e.readUInt32LE};function u(g,p,l,s){l=l||0;const b=s?"BE":"LE",h="readUInt"+p+b;return S[h](g,l)}e.readUInt=u;function v(g,p){if(g.length-p<4)return;const l=(0,e.readUInt32BE)(g,p);if(!(g.length-p<l))return{name:(0,e.toUTF8String)(g,4+p,8+p),offset:p,size:l}}function m(g,p,l){for(;l<g.length;){const s=v(g,l);if(!s)break;if(s.name===p)return s;l+=s.size>0?s.size:8}}e.findBox=m})(Xe)),Xe}var vt;function xn(){if(vt)return ge;vt=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.BMP=void 0;const e=F();return ge.BMP={validate:n=>(0,e.toUTF8String)(n,0,2)==="BM",calculate:n=>({height:Math.abs((0,e.readInt32LE)(n,22)),width:(0,e.readUInt32LE)(n,18)})},ge}var In=xn();const Sn=A(In);var ye={},be={},wt;function xt(){if(wt)return be;wt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.ICO=void 0;const e=F(),n=1,i=6,r=16;function o(c,a){const f=c[a];return f===0?256:f}function d(c,a){const f=i+a*r;return{height:o(c,f+1),width:o(c,f)}}return be.ICO={validate(c){const a=(0,e.readUInt16LE)(c,0),f=(0,e.readUInt16LE)(c,4);return a!==0||f===0?!1:(0,e.readUInt16LE)(c,2)===n},calculate(c){const a=(0,e.readUInt16LE)(c,4),f=d(c,0);if(a===1)return f;const t=[f];for(let x=1;x<a;x+=1)t.push(d(c,x));return{height:f.height,images:t,width:f.width}}},be}var It;function kn(){if(It)return ye;It=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.CUR=void 0;const e=xt(),n=F(),i=2;return ye.CUR={validate(r){const o=(0,n.readUInt16LE)(r,0),d=(0,n.readUInt16LE)(r,4);return o!==0||d===0?!1:(0,n.readUInt16LE)(r,2)===i},calculate:r=>e.ICO.calculate(r)},ye}var En=kn();const _n=A(En);var ve={},St;function Tn(){if(St)return ve;St=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.DDS=void 0;const e=F();return ve.DDS={validate:n=>(0,e.readUInt32LE)(n,0)===542327876,calculate:n=>({height:(0,e.readUInt32LE)(n,12),width:(0,e.readUInt32LE)(n,16)})},ve}var Cn=Tn();const Dn=A(Cn);var we={},kt;function Pn(){if(kt)return we;kt=1,Object.defineProperty(we,"__esModule",{value:!0}),we.GIF=void 0;const e=F(),n=/^GIF8[79]a/;return we.GIF={validate:i=>n.test((0,e.toUTF8String)(i,0,6)),calculate:i=>({height:(0,e.readUInt16LE)(i,8),width:(0,e.readUInt16LE)(i,6)})},we}var Nn=Pn();const Mn=A(Nn);var xe={},Et;function qn(){if(Et)return xe;Et=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.ICNS=void 0;const e=F(),n=8,i=4,r=4,o={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function d(a,f){const t=f+r;return[(0,e.toUTF8String)(a,f,t),(0,e.readUInt32BE)(a,t)]}function c(a){const f=o[a];return{width:f,height:f,type:a}}return xe.ICNS={validate:a=>(0,e.toUTF8String)(a,0,4)==="icns",calculate(a){const f=a.length,t=(0,e.readUInt32BE)(a,i);let x=n,S=d(a,x),u=c(S[0]);if(x+=S[1],x===t)return u;const v={height:u.height,images:[u],width:u.width};for(;x<t&&x<f;)S=d(a,x),u=c(S[0]),x+=S[1],v.images.push(u);return v}},xe}var jn=qn();const Ln=A(jn);var On=xt();const Un=A(On);var Ie={},_t;function $n(){if(_t)return Ie;_t=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.J2C=void 0;const e=F();return Ie.J2C={validate:n=>(0,e.readUInt32BE)(n,0)===4283432785,calculate:n=>({height:(0,e.readUInt32BE)(n,12),width:(0,e.readUInt32BE)(n,8)})},Ie}var Rn=$n();const Bn=A(Rn);var Se={},Tt;function An(){if(Tt)return Se;Tt=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.JP2=void 0;const e=F();return Se.JP2={validate(n){if((0,e.toUTF8String)(n,4,8)!=="jP ")return!1;const r=(0,e.findBox)(n,"ftyp",0);return r?(0,e.toUTF8String)(n,r.offset+8,r.offset+12)==="jp2 ":!1},calculate(n){const i=(0,e.findBox)(n,"jp2h",0),r=i&&(0,e.findBox)(n,"ihdr",i.offset+8);if(r)return{height:(0,e.readUInt32BE)(n,r.offset+8),width:(0,e.readUInt32BE)(n,r.offset+12)};throw new TypeError("Unsupported JPEG 2000 format")}},Se}var Fn=An();const zn=A(Fn);var ke={},Ct;function Hn(){if(Ct)return ke;Ct=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.JPG=void 0;const e=F(),n="45786966",i=2,r=6,o=2,d="4d4d",c="4949",a=12,f=2;function t(m){return(0,e.toHexString)(m,2,6)===n}function x(m,g){return{height:(0,e.readUInt16BE)(m,g),width:(0,e.readUInt16BE)(m,g+2)}}function S(m,g){const l=r+8,s=(0,e.readUInt)(m,16,l,g);for(let b=0;b<s;b++){const h=l+f+b*a,I=h+a;if(h>m.length)return;const w=m.slice(h,I);if((0,e.readUInt)(w,16,0,g)===274)return(0,e.readUInt)(w,16,2,g)!==3||(0,e.readUInt)(w,32,4,g)!==1?void 0:(0,e.readUInt)(w,16,8,g)}}function u(m,g){const p=m.slice(i,g),l=(0,e.toHexString)(p,r,r+o),s=l===d;if(s||l===c)return S(p,s)}function v(m,g){if(g>m.length)throw new TypeError("Corrupt JPG, exceeded buffer limits")}return ke.JPG={validate:m=>(0,e.toHexString)(m,0,2)==="ffd8",calculate(m){m=m.slice(4);let g,p;for(;m.length;){const l=(0,e.readUInt16BE)(m,0);if(m[l]!==255){m=m.slice(1);continue}if(t(m)&&(g=u(m,l)),v(m,l),p=m[l+1],p===192||p===193||p===194){const s=x(m,l+5);return g?{height:s.height,orientation:g,width:s.width}:s}m=m.slice(l+2)}throw new TypeError("Invalid JPG, no size found")}},ke}var Wn=Hn();const Gn=A(Wn);var Ee={},Dt;function Kn(){if(Dt)return Ee;Dt=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.KTX=void 0;const e=F();return Ee.KTX={validate:n=>{const i=(0,e.toUTF8String)(n,1,7);return["KTX 11","KTX 20"].includes(i)},calculate:n=>{const i=n[5]===49?"ktx":"ktx2",r=i==="ktx"?36:20;return{height:(0,e.readUInt32LE)(n,r+4),width:(0,e.readUInt32LE)(n,r),type:i}}},Ee}var Qn=Kn();const Jn=A(Qn);var _e={},Pt;function Yn(){if(Pt)return _e;Pt=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.PNG=void 0;const e=F(),n=`PNG\r
22
+ `}function Hr(S){t.sourcemap=S}function Wr(S){L("handleHotUpdate()",S.file);for(const b of S.modules){const{id:_}=b;if(_){L("handleHotUpdate()",`invalidate ${_}`),i.delete(_);for(const N of[r,o])for(const[D,[C,B]]of N)if(B===_){L("handleHotUpdate()",`invalidate ${_} segment ${D}`),N.delete(D);const O=S.server.moduleGraph.getModuleById(D);O&&S.server.moduleGraph.invalidateModule(O)}}}}const Gr=(S,{getModuleInfo:b})=>{if(t.target==="client"){if(S.endsWith("@qwik.dev/core/build")||/[/\\](core|qwik)[/\\]dist[/\\]preloader\.[cm]js$/.test(S)||S==="\0vite/preload-helper.js")return"qwik-preloader";if(/[/\\](core|qwik)[/\\](handlers|dist[/\\]core(\.prod|\.min)?)\.[cm]js$/.test(S))return"qwik-core";if(/[/\\](core|qwik)[/\\]dist[/\\]qwikloader\.js$/.test(S))return"qwik-loader"}const _=b(S);if(_){const N=_.meta.segment;if(N){const{hash:D}=N,C=t.entryStrategy.manual?.[D]||N.entry;if(C)return C}if(_.meta.qwikdeps?.length===0){if(S.includes("node_modules")){const D=S.lastIndexOf("node_modules");if(D>=0)return S.slice(D+13)}else if(t.srcDir&&S.includes(t.srcDir)){const D=g();return Q(D.relative(t.srcDir,S))}}}return null};async function Qr(S,b,_,N){const C=await Z(b).generateManifest(N);C.platform={...N?.platform,rollup:S.meta?.rollupVersion||"",env:I.sys.env,os:I.sys.os},I.sys.env==="node"&&(C.platform.node=process.versions.node);const B=Zt(C,_),O=S.emitFile({type:"asset",name:"bundle-graph.json",source:JSON.stringify(B)}),$=S.getFileName(O);C.bundleGraphAsset=$,C.assets[$]={name:"bundle-graph.json",size:B.length};const M=JSON.stringify(C,null," ");S.emitFile({fileName:Xe,type:"asset",source:M}),typeof t.manifestOutput=="function"&&await t.manifestOutput(C),typeof t.transformedModuleOutput=="function"&&await t.transformedModuleOutput(je())}return{buildStart:T,createOutputAnalyzer:Z,getQwikBuildModule:de,getOptimizer:w,getOptions:te,getPath:g,getSys:m,getTransformedOutputs:je,init:u,load:H,debug:L,log:G,normalizeOptions:s,normalizePath:Q,onDiagnostics:Ae,resolveId:j,transform:W,validateSource:h,setSourceMapSupport:Hr,configureServer:l,handleHotUpdate:Wr,manualChunks:Gr,generateManifest:Qr}}const pn=e=>n=>typeof n=="string"?ln(e.os)?(n.startsWith("\\\\?\\")||/[^\u0000-\u0080]+/.test(n)||(n=n.replace(/\\/g,"/")),e.path.posix.normalize(n)):e.path.normalize(n):n;function hn(e){return e.isEntry||e.segment}const mn={".jsx":!0,".ts":!0,".tsx":!0},yt=/\.qwik\.[mc]?js$/,$e="@qwik.dev/core",Re="@qwik.dev/core/internal",re="@qwik.dev/core/build",Qe="@qwik.dev/core/jsx-runtime",Ke="@qwik.dev/core/jsx-dev-runtime",Je="@qwik.dev/core/server",oe="@qwik-client-manifest",Ye="@qwik.dev/core/preloader",ge="@qwik-handlers",gn="src",bt="dist",yn="server",bn="lib",Xe="q-manifest.json";async function wn(e,n,i){const r=await e.dynamicImport("node:fs");let o=i;for(;o;){const d=e.path.join(o,"node_modules",n,"package.json");try{return await r.promises.access(d),r.promises.realpath(d)}catch{}const c=e.path.dirname(o);if(c===o)break;o=c}}function vn(e={}){const n=gt(e.optimizerOptions);return{name:"rollup-plugin-qwik",api:{getOptimizer:()=>n.getOptimizer(),getOptions:()=>n.getOptions()},async options(r){await n.init();const o=r.onwarn;r.onwarn=(a,p)=>{a.plugin==="typescript"&&a.message.includes("outputToFilesystem")||(o?o(a,p):p(a))};const d={csr:e.csr,target:e.target,buildMode:e.buildMode,debug:e.debug,entryStrategy:e.entryStrategy,rootDir:e.rootDir,srcDir:e.srcDir,srcInputs:e.srcInputs,input:r.input,resolveQwikBuild:!0,manifestOutput:e.manifestOutput,manifestInput:e.manifestInput,transformedModuleOutput:e.transformedModuleOutput,inlineStylesUpToBytes:e.optimizerOptions?.inlineStylesUpToBytes,lint:e.lint,experimental:e.experimental};await n.normalizeOptions(d);const{input:c}=n.getOptions();return r.input=c,r},outputOptions(r){return Ve(n,r,!1)},async buildStart(){n.onDiagnostics((r,o,d)=>{r.forEach(c=>{const a=n.normalizePath(o.sys.path.join(d,c.file));c.category==="error"?this.error(Be(a,c)):this.warn(Be(a,c))})}),await n.buildStart(this)},resolveId(r,o){return ee(r)?null:n.resolveId(this,r,o)},load(r){return ee(r)?null:n.load(this,r)},transform(r,o){return ee(o)?null:n.transform(this,r,o)},async generateBundle(r,o){n.getOptions().target==="client"&&await n.generateManifest(this,o)}}}async function xn(e,n,i,r){return Array.isArray(n)?(n.length||n.push({}),await Promise.all(n.map(async o=>({...await Ve(e,o,i),dir:r||o.dir})))):{...await Ve(e,n,i),dir:r||n?.dir}}const In=(e,n,i)=>n.buildMode==="production"&&!n.debug?`${e}build/q-[hash].js`:r=>{if(r.moduleIds?.some(c=>/core\.(prod|min)\.mjs$/.test(c)))return`${e}build/core.js`;if(r.moduleIds?.some(c=>/qwik-router\/lib\/index\.qwik\.mjs$/.test(c)))return`${e}build/qwik-router.js`;const d=i.sys.path.relative(i.sys.cwd(),r.name).replace(/^(\.\.\/)+/,"").replace(/^\/+/,"").replace(/\//g,"-");return`${e}build/${d}.js`};async function Ve(e,n,i){const r={...n},o=e.getOptions(),d=e.getOptimizer(),c=e.manualChunks;r.assetFileNames||(r.assetFileNames=`${i?`${o.assetsDir}/`:""}assets/[hash]-[name].[ext]`);const a=In(i?`${o.assetsDir}`:"",o,d);if(o.target==="client"){r.entryFileNames||(r.entryFileNames=a),r.chunkFileNames||(r.chunkFileNames=a),r.format="es";const t=r.manualChunks;if(t&&typeof t!="function")throw new Error("manualChunks must be a function");r.manualChunks=t?(x,k)=>t(x,k)||c(x,k):c}else r.chunkFileNames||(r.chunkFileNames=a);r.dir||(r.dir=o.outDir),r.format==="cjs"&&typeof r.exports!="string"&&(r.exports="auto"),r.hoistTransitiveImports=!1;const p=await wn(d.sys,"rollup",d.sys.cwd());if(p)try{const x=await(await d.sys.dynamicImport("node:fs")).promises.readFile(p,"utf-8"),k=JSON.parse(x),u=String(k?.version||""),[w,m,g]=u.split(".").map(l=>parseInt(l,10));Number.isFinite(w)&&(w>4||w===4&&(m>52||m===52&&(g||0)>=0))?r.onlyExplicitManualChunks=!0:console.warn(`⚠️ We detected that you're using a Rollup version prior to 4.52.0 (${u}). For the latest and greatest, we recommend to let Vite install the latest version for you, or manually install the latest version of Rollup in your project if that doesn't work. It will enable the new Rollup \`outputOpts.onlyExplicitManualChunks\` feature flag, which improves preloading performance and reduces cache invalidation for a snappier user experience.`)}catch{}return r}function Be(e,n){const i=n.highlights?.[0];return Object.assign(new Error(n.message),{id:e,plugin:"qwik",loc:i&&{column:i.startCol,line:i.startLine},stack:""})}function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye={},Ze={},wt;function A(){return wt||(wt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.findBox=e.readUInt=e.readUInt32LE=e.readUInt32BE=e.readInt32LE=e.readUInt24LE=e.readUInt16LE=e.readUInt16BE=e.readInt16LE=e.toHexString=e.toUTF8String=void 0;const n=new TextDecoder,i=(g,f=0,l=g.length)=>n.decode(g.slice(f,l));e.toUTF8String=i;const r=(g,f=0,l=g.length)=>g.slice(f,l).reduce((s,y)=>s+("0"+y.toString(16)).slice(-2),"");e.toHexString=r;const o=(g,f=0)=>{const l=g[f]+g[f+1]*256;return l|(l&2**15)*131070};e.readInt16LE=o;const d=(g,f=0)=>g[f]*2**8+g[f+1];e.readUInt16BE=d;const c=(g,f=0)=>g[f]+g[f+1]*2**8;e.readUInt16LE=c;const a=(g,f=0)=>g[f]+g[f+1]*2**8+g[f+2]*2**16;e.readUInt24LE=a;const p=(g,f=0)=>g[f]+g[f+1]*2**8+g[f+2]*2**16+(g[f+3]<<24);e.readInt32LE=p;const t=(g,f=0)=>g[f]*2**24+g[f+1]*2**16+g[f+2]*2**8+g[f+3];e.readUInt32BE=t;const x=(g,f=0)=>g[f]+g[f+1]*2**8+g[f+2]*2**16+g[f+3]*2**24;e.readUInt32LE=x;const k={readUInt16BE:e.readUInt16BE,readUInt16LE:e.readUInt16LE,readUInt32BE:e.readUInt32BE,readUInt32LE:e.readUInt32LE};function u(g,f,l,s){l=l||0;const y=s?"BE":"LE",h="readUInt"+f+y;return k[h](g,l)}e.readUInt=u;function w(g,f){if(g.length-f<4)return;const l=(0,e.readUInt32BE)(g,f);if(!(g.length-f<l))return{name:(0,e.toUTF8String)(g,4+f,8+f),offset:f,size:l}}function m(g,f,l){for(;l<g.length;){const s=w(g,l);if(!s)break;if(s.name===f)return s;l+=s.size>0?s.size:8}}e.findBox=m})(Ze)),Ze}var vt;function kn(){if(vt)return ye;vt=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.BMP=void 0;const e=A();return ye.BMP={validate:n=>(0,e.toUTF8String)(n,0,2)==="BM",calculate:n=>({height:Math.abs((0,e.readInt32LE)(n,22)),width:(0,e.readUInt32LE)(n,18)})},ye}var Sn=kn();const En=F(Sn);var be={},we={},xt;function It(){if(xt)return we;xt=1,Object.defineProperty(we,"__esModule",{value:!0}),we.ICO=void 0;const e=A(),n=1,i=6,r=16;function o(c,a){const p=c[a];return p===0?256:p}function d(c,a){const p=i+a*r;return{height:o(c,p+1),width:o(c,p)}}return we.ICO={validate(c){const a=(0,e.readUInt16LE)(c,0),p=(0,e.readUInt16LE)(c,4);return a!==0||p===0?!1:(0,e.readUInt16LE)(c,2)===n},calculate(c){const a=(0,e.readUInt16LE)(c,4),p=d(c,0);if(a===1)return p;const t=[p];for(let x=1;x<a;x+=1)t.push(d(c,x));return{height:p.height,images:t,width:p.width}}},we}var kt;function _n(){if(kt)return be;kt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.CUR=void 0;const e=It(),n=A(),i=2;return be.CUR={validate(r){const o=(0,n.readUInt16LE)(r,0),d=(0,n.readUInt16LE)(r,4);return o!==0||d===0?!1:(0,n.readUInt16LE)(r,2)===i},calculate:r=>e.ICO.calculate(r)},be}var Tn=_n();const Cn=F(Tn);var ve={},St;function Pn(){if(St)return ve;St=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.DDS=void 0;const e=A();return ve.DDS={validate:n=>(0,e.readUInt32LE)(n,0)===542327876,calculate:n=>({height:(0,e.readUInt32LE)(n,12),width:(0,e.readUInt32LE)(n,16)})},ve}var Dn=Pn();const Nn=F(Dn);var xe={},Et;function Mn(){if(Et)return xe;Et=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.GIF=void 0;const e=A(),n=/^GIF8[79]a/;return xe.GIF={validate:i=>n.test((0,e.toUTF8String)(i,0,6)),calculate:i=>({height:(0,e.readUInt16LE)(i,8),width:(0,e.readUInt16LE)(i,6)})},xe}var qn=Mn();const jn=F(qn);var Ie={},_t;function On(){if(_t)return Ie;_t=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.ICNS=void 0;const e=A(),n=8,i=4,r=4,o={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function d(a,p){const t=p+r;return[(0,e.toUTF8String)(a,p,t),(0,e.readUInt32BE)(a,t)]}function c(a){const p=o[a];return{width:p,height:p,type:a}}return Ie.ICNS={validate:a=>(0,e.toUTF8String)(a,0,4)==="icns",calculate(a){const p=a.length,t=(0,e.readUInt32BE)(a,i);let x=n,k=d(a,x),u=c(k[0]);if(x+=k[1],x===t)return u;const w={height:u.height,images:[u],width:u.width};for(;x<t&&x<p;)k=d(a,x),u=c(k[0]),x+=k[1],w.images.push(u);return w}},Ie}var Ln=On();const Un=F(Ln);var $n=It();const Rn=F($n);var ke={},Tt;function Bn(){if(Tt)return ke;Tt=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.J2C=void 0;const e=A();return ke.J2C={validate:n=>(0,e.readUInt32BE)(n,0)===4283432785,calculate:n=>({height:(0,e.readUInt32BE)(n,12),width:(0,e.readUInt32BE)(n,8)})},ke}var Fn=Bn();const An=F(Fn);var Se={},Ct;function zn(){if(Ct)return Se;Ct=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.JP2=void 0;const e=A();return Se.JP2={validate(n){if((0,e.toUTF8String)(n,4,8)!=="jP ")return!1;const r=(0,e.findBox)(n,"ftyp",0);return r?(0,e.toUTF8String)(n,r.offset+8,r.offset+12)==="jp2 ":!1},calculate(n){const i=(0,e.findBox)(n,"jp2h",0),r=i&&(0,e.findBox)(n,"ihdr",i.offset+8);if(r)return{height:(0,e.readUInt32BE)(n,r.offset+8),width:(0,e.readUInt32BE)(n,r.offset+12)};throw new TypeError("Unsupported JPEG 2000 format")}},Se}var Hn=zn();const Wn=F(Hn);var Ee={},Pt;function Gn(){if(Pt)return Ee;Pt=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.JPG=void 0;const e=A(),n="45786966",i=2,r=6,o=2,d="4d4d",c="4949",a=12,p=2;function t(m){return(0,e.toHexString)(m,2,6)===n}function x(m,g){return{height:(0,e.readUInt16BE)(m,g),width:(0,e.readUInt16BE)(m,g+2)}}function k(m,g){const l=r+8,s=(0,e.readUInt)(m,16,l,g);for(let y=0;y<s;y++){const h=l+p+y*a,I=h+a;if(h>m.length)return;const v=m.slice(h,I);if((0,e.readUInt)(v,16,0,g)===274)return(0,e.readUInt)(v,16,2,g)!==3||(0,e.readUInt)(v,32,4,g)!==1?void 0:(0,e.readUInt)(v,16,8,g)}}function u(m,g){const f=m.slice(i,g),l=(0,e.toHexString)(f,r,r+o),s=l===d;if(s||l===c)return k(f,s)}function w(m,g){if(g>m.length)throw new TypeError("Corrupt JPG, exceeded buffer limits")}return Ee.JPG={validate:m=>(0,e.toHexString)(m,0,2)==="ffd8",calculate(m){m=m.slice(4);let g,f;for(;m.length;){const l=(0,e.readUInt16BE)(m,0);if(m[l]!==255){m=m.slice(1);continue}if(t(m)&&(g=u(m,l)),w(m,l),f=m[l+1],f===192||f===193||f===194){const s=x(m,l+5);return g?{height:s.height,orientation:g,width:s.width}:s}m=m.slice(l+2)}throw new TypeError("Invalid JPG, no size found")}},Ee}var Qn=Gn();const Kn=F(Qn);var _e={},Dt;function Jn(){if(Dt)return _e;Dt=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.KTX=void 0;const e=A();return _e.KTX={validate:n=>{const i=(0,e.toUTF8String)(n,1,7);return["KTX 11","KTX 20"].includes(i)},calculate:n=>{const i=n[5]===49?"ktx":"ktx2",r=i==="ktx"?36:20;return{height:(0,e.readUInt32LE)(n,r+4),width:(0,e.readUInt32LE)(n,r),type:i}}},_e}var Yn=Jn();const Xn=F(Yn);var Te={},Nt;function Vn(){if(Nt)return Te;Nt=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.PNG=void 0;const e=A(),n=`PNG\r
23
23
  
24
- `,i="IHDR",r="CgBI";return _e.PNG={validate(o){if(n===(0,e.toUTF8String)(o,1,8)){let d=(0,e.toUTF8String)(o,12,16);if(d===r&&(d=(0,e.toUTF8String)(o,28,32)),d!==i)throw new TypeError("Invalid PNG");return!0}return!1},calculate(o){return(0,e.toUTF8String)(o,12,16)===r?{height:(0,e.readUInt32BE)(o,36),width:(0,e.readUInt32BE)(o,32)}:{height:(0,e.readUInt32BE)(o,20),width:(0,e.readUInt32BE)(o,16)}}},_e}var Xn=Yn();const Zn=A(Xn);var Te={},Nt;function Vn(){if(Nt)return Te;Nt=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.PNM=void 0;const e=F(),n={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},i={default:r=>{let o=[];for(;r.length>0;){const d=r.shift();if(d[0]!=="#"){o=d.split(" ");break}}if(o.length===2)return{height:parseInt(o[1],10),width:parseInt(o[0],10)};throw new TypeError("Invalid PNM")},pam:r=>{const o={};for(;r.length>0;){const d=r.shift();if(d.length>16||d.charCodeAt(0)>128)continue;const[c,a]=d.split(" ");if(c&&a&&(o[c.toLowerCase()]=parseInt(a,10)),o.height&&o.width)break}if(o.height&&o.width)return{height:o.height,width:o.width};throw new TypeError("Invalid PAM")}};return Te.PNM={validate:r=>(0,e.toUTF8String)(r,0,2)in n,calculate(r){const o=(0,e.toUTF8String)(r,0,2),d=n[o],c=(0,e.toUTF8String)(r,3).split(/[\r\n]+/);return(i[d]||i.default)(c)}},Te}var er=Vn();const tr=A(er);var Ce={},Mt;function nr(){if(Mt)return Ce;Mt=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.PSD=void 0;const e=F();return Ce.PSD={validate:n=>(0,e.toUTF8String)(n,0,4)==="8BPS",calculate:n=>({height:(0,e.readUInt32BE)(n,14),width:(0,e.readUInt32BE)(n,18)})},Ce}var rr=nr();const or=A(rr);var De={},qt;function ir(){if(qt)return De;qt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.SVG=void 0;const e=F(),n=/<svg\s([^>"']|"[^"]*"|'[^']*')*>/,i={height:/\sheight=(['"])([^%]+?)\1/,root:n,viewbox:/\sviewBox=(['"])(.+?)\1/i,width:/\swidth=(['"])([^%]+?)\1/},r=2.54,o={in:96,cm:96/r,em:16,ex:8,m:96/r*100,mm:96/r/10,pc:96/72/12,pt:96/72,px:1},d=new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(o).join("|")})?$`);function c(S){const u=d.exec(S);if(u)return Math.round(Number(u[1])*(o[u[2]]||1))}function a(S){const u=S.split(" ");return{height:c(u[3]),width:c(u[2])}}function f(S){const u=S.match(i.width),v=S.match(i.height),m=S.match(i.viewbox);return{height:v&&c(v[2]),viewbox:m&&a(m[2]),width:u&&c(u[2])}}function t(S){return{height:S.height,width:S.width}}function x(S,u){const v=u.width/u.height;return S.width?{height:Math.floor(S.width/v),width:S.width}:S.height?{height:S.height,width:Math.floor(S.height*v)}:{height:u.height,width:u.width}}return De.SVG={validate:S=>n.test((0,e.toUTF8String)(S,0,1e3)),calculate(S){const u=(0,e.toUTF8String)(S).match(i.root);if(u){const v=f(u[0]);if(v.width&&v.height)return t(v);if(v.viewbox)return x(v,v.viewbox)}throw new TypeError("Invalid SVG")}},De}var sr=ir();const ar=A(sr);var Pe={},jt;function lr(){if(jt)return Pe;jt=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.TGA=void 0;const e=F();return Pe.TGA={validate(n){return(0,e.readUInt16LE)(n,0)===0&&(0,e.readUInt16LE)(n,4)===0},calculate(n){return{height:(0,e.readUInt16LE)(n,14),width:(0,e.readUInt16LE)(n,12)}}},Pe}var cr=lr();const dr=A(cr);var Ne={},Lt;function ur(){if(Lt)return Ne;Lt=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.WEBP=void 0;const e=F();function n(o){return{height:1+(0,e.readUInt24LE)(o,7),width:1+(0,e.readUInt24LE)(o,4)}}function i(o){return{height:1+((o[4]&15)<<10|o[3]<<2|(o[2]&192)>>6),width:1+((o[2]&63)<<8|o[1])}}function r(o){return{height:(0,e.readInt16LE)(o,8)&16383,width:(0,e.readInt16LE)(o,6)&16383}}return Ne.WEBP={validate(o){const d=(0,e.toUTF8String)(o,0,4)==="RIFF",c=(0,e.toUTF8String)(o,8,12)==="WEBP",a=(0,e.toUTF8String)(o,12,15)==="VP8";return d&&c&&a},calculate(o){const d=(0,e.toUTF8String)(o,12,16);if(o=o.slice(20,30),d==="VP8X"){const a=o[0],f=(a&192)===0,t=(a&1)===0;if(f&&t)return n(o);throw new TypeError("Invalid WebP")}if(d==="VP8 "&&o[0]!==47)return r(o);const c=(0,e.toHexString)(o,3,6);if(d==="VP8L"&&c!=="9d012a")return i(o);throw new TypeError("Invalid WebP")}},Ne}var fr=ur();const pr=A(fr);var Me={},Ot;function hr(){if(Ot)return Me;Ot=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.HEIF=void 0;const e=F(),n={avif:"avif",mif1:"heif",msf1:"heif",heic:"heic",heix:"heic",hevc:"heic",hevx:"heic"};return Me.HEIF={validate(i){if((0,e.toUTF8String)(i,4,8)!=="ftyp")return!1;const o=(0,e.findBox)(i,"ftyp",0);return o?(0,e.toUTF8String)(i,o.offset+8,o.offset+12)in n:!1},calculate(i){const r=(0,e.findBox)(i,"meta",0),o=r&&(0,e.findBox)(i,"iprp",r.offset+12),d=o&&(0,e.findBox)(i,"ipco",o.offset+8),c=d&&(0,e.findBox)(i,"ispe",d.offset+8);if(c)return{height:(0,e.readUInt32BE)(i,c.offset+16),width:(0,e.readUInt32BE)(i,c.offset+12),type:(0,e.toUTF8String)(i,8,12)};throw new TypeError("Invalid HEIF, no size found")}},Me}var mr=hr();const gr=A(mr),yr={56:"psd",66:"bmp",68:"dds",71:"gif",82:"webp",105:"icns",137:"png",255:"jpg"},Re={webp:pr.WEBP,jpg:Gn.JPG,png:Zn.PNG,svg:ar.SVG,gif:Mn.GIF,avif:gr.HEIF,bmp:Sn.BMP,cur:_n.CUR,dds:Dn.DDS,icns:Ln.ICNS,ico:Un.ICO,j2c:Bn.J2C,jp2:zn.JP2,ktx:Jn.KTX,pnm:tr.PNM,psd:or.PSD,tga:dr.TGA},br=Object.keys(Re);function vr(e){const n=e[0],i=yr[n];return i&&Re[i].validate(e)?i:br.find(r=>Re[r].validate(e))}function wr(e){const n=vr(e);if(typeof n<"u"){const i=Re[n].calculate(e);if(i!==void 0)return i.type=n,i}}async function xr(e){if(/^(https?|file|capacitor):/.test(e))try{const n=await fetch(e,{headers:{Accept:"image/*,*/*"}});if(!n.ok){console.error("can not fetch",e);return}const i=await n.arrayBuffer(),r=wr(Buffer.from(i));if(r)return{width:r.width,height:r.height,type:r.type,size:i.byteLength}}catch(n){console.error(n);return}}const Ir=(e,n,i)=>async(r,o,d)=>{try{const c=await e.dynamicImport("node:fs"),a=await e.dynamicImport("node:path");let f;try{f=new URL(r.url,"http://localhost:3000/")}catch{o.statusCode=404,o.end();return}if(r.method==="GET"&&f.pathname==="/__image_info"){const t=f.searchParams.get("url");if(o.setHeader("content-type","application/json"),t){const x=await xr(t);o.setHeader("cache-control","public, max-age=31536000, immutable"),x?o.write(JSON.stringify(x)):o.statusCode=404}else{o.statusCode=500;const x={message:"error"};o.write(JSON.stringify(x))}o.end();return}else if(r.method==="POST"&&f.pathname==="/__image_fix"){const t=f.searchParams.get("loc"),x=f.searchParams.get("width"),S=f.searchParams.get("height"),u=f.searchParams.get("src"),v=f.searchParams.get("currentHref"),m=t.split(":"),g=parseInt(m[m.length-1],10)-1;let p=parseInt(m[m.length-2],10)-1;const l=a.resolve(i,m.slice(0,m.length-2).join(":")),s=a.extname(l).toLowerCase();let h=c.readFileSync(l).toString("utf-8"),I=0;for(;I<h.length;I++)if(p===0){I+=g;break}else if(h[I]===`
25
- `){p--;continue}if(h.slice(I,I+4)!=="<img"){console.error("Could not apply auto fix, because it was not possible to find the original <img> tag"),o.statusCode=500;return}const w=h.indexOf(">",I)+1;if(w<I){console.error("Could not apply auto fix, because it was not possible to find the original <img> tag"),o.statusCode=500;return}const T=[".ts",".tsx",".js",".jsx",".mdx"].includes(s);let E=h.slice(I,w);if(u&&v&&T){const P=new URL(u),U=new URL(v);if(P.origin===U.origin){const j=a.join(n,"public",P.pathname),R=a.join(n,P.pathname);let H;if(c.existsSync(j)){const V=a.join(i,"media",a.dirname(P.pathname));await c.promises.mkdir(V,{recursive:!0}),await c.promises.copyFile(j,a.join(i,"media",P.pathname)),H="~/media"+P.pathname}else if(c.existsSync(R))H=P.pathname.replace("/src/","~/");else return;const Y=Sr(P.pathname),le=`${H}?jsx`;E=E.replace(/^<img/,`<${Y}`),E=E.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))\s*/,""),E=E.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))\s*/,""),E=E.replace(/\bsrc=(({[^}]*})|('[^']*')|("[^"]*"))\s*/,"");let W=0;if(s===".mdx"&&h.startsWith("---")&&(W=h.indexOf("---",4)+3,W===-1))return;const ee=`
26
- import ${Y} from '${le}';`;h=`${h.slice(0,W)}${ee}${h.slice(W,I)}${E}${h.slice(w)}`,c.writeFileSync(l,h);return}}E=E.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))/,`width="${x}"`),E=E.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))/,`height="${S}"`),E.includes("height=")||(E=E.replace(/<img/,`<img height="${S}"`)),E.includes("width=")||(E=E.replace(/<img/,`<img width="${x}"`)),h=h.slice(0,I)+E+h.slice(w),c.writeFileSync(l,h)}else d()}catch(c){c instanceof Error&&await nn(e,c),d(c)}};function Sr(e){const n=e.lastIndexOf("."),i=e.lastIndexOf("/");return e=e.substring(i+1,n),`Img${kr(e)}`}function kr(e){return`${e}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(n,i,r)=>`${i.toUpperCase()+r}`).replace(new RegExp(/\w/),n=>n.toUpperCase())}const Er=`"undefined"==typeof window||window.__qwikViteLog||(window.__qwikViteLog=!0,console.debug("%c⭐️ Qwik Dev SSR Mode","background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;","App is running in SSR development mode!\\n - Additional JS is loaded by Vite for debugging and live reloading\\n - Rendering performance might not be optimal\\n - Delayed interactivity because prefetching is disabled\\n - Vite dev bundles do not represent production output\\n\\nProduction build can be tested running 'npm run preview'"))`,_r='if("undefined"!=typeof document){const e=()=>{const e="data-qwik-inspector",t=globalThis.__HOTKEYS__;globalThis.__SRC_DIR__;let o=document.querySelector("#qwik-inspector-info-popup");o||(o=document.createElement("div"),o.id="qwik-inspector-info-popup",o["aria-hidden"]="true",document.body.appendChild(o)),o.textContent=`Click-to-Source: ${t.join(" + ")}`,console.debug("%c🔍 Qwik Click-To-Source","background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;",`Hold-press the \'${t.join(" + ")}\' key${t.length>1?"s":""} and click a component to jump directly to the source code in your IDE!`),window.__qwik_inspector_state={pressedKeys:new Set};const n=document.body,r=document.createElement("div");function i(t){return t&&t instanceof Element?t.closest(`[${e}]`):null}function s(){const e=window.__qwik_inspector_state.hoveredElement;if(e&&d()){const t=e.getBoundingClientRect();r.style.setProperty("height",t.height+"px"),r.style.setProperty("width",t.width+"px"),r.style.setProperty("top",t.top+"px"),r.style.setProperty("left",t.left+"px"),r.style.setProperty("visibility","visible"),n.style.setProperty("cursor","pointer")}else r.style.setProperty("height","0px"),r.style.setProperty("width","0px"),r.style.setProperty("visibility","hidden"),n.style.removeProperty("cursor")}function d(){return function(){const e=Array.from(window.__qwik_inspector_state.pressedKeys).map(e=>e?e.replace(/(Left|Right)$/g,""):void 0);return t.every(t=>e.includes(t))}()}r.id="qwik-inspector-overlay",r.setAttribute("aria-hidden","true"),n.appendChild(r),document.addEventListener("keydown",e=>{window.__qwik_inspector_state.pressedKeys.add(e.code),s()},{capture:!0}),document.addEventListener("keyup",e=>{window.__qwik_inspector_state.pressedKeys.delete(e.code),s()},{capture:!0}),window.addEventListener("blur",()=>{window.__qwik_inspector_state.pressedKeys.clear(),s()},{capture:!0}),document.addEventListener("mouseover",e=>{const t=i(e.target);window.__qwik_inspector_state.hoveredElement=t||void 0,s()},{capture:!0}),document.addEventListener("click",t=>{if(d()){window.__qwik_inspector_state.pressedKeys.clear();const o=i(t.target);if(o){t.preventDefault(),t.stopPropagation();const r=o.getAttribute(e);if("false"!==r){n.style.setProperty("cursor","progress");const e=r.match(/^(.*?)(:\\d+(:\\d+)?)?$/);if(e){const[,t,o]=e;fetch(`${t}?editor${o}`).then(()=>{n.style.removeProperty("cursor")})}}}}},{capture:!0}),document.addEventListener("contextmenu",e=>{if(d()){window.__qwik_inspector_state.pressedKeys.clear();i(e.target)&&e.preventDefault()}},{capture:!0}),window.addEventListener("resize",s),document.addEventListener("scroll",s)};document.addEventListener("DOMContentLoaded",e)}',Tr=`if("undefined"!=typeof HTMLElement){class e extends HTMLElement{get _root(){return this.shadowRoot||this}constructor(){super(),this.state={},this.props||(this.props={}),this.componentProps=["children","error"],this.nodesToDestroy=[],this.pendingUpdate=!1,this.attachShadow({mode:"open"})}destroyAnyNodes(){this.nodesToDestroy.forEach(e=>e.remove()),this.nodesToDestroy=[]}connectedCallback(){this.getAttributeNames().forEach(e=>{const t=e.replace(/-/g,""),o=new RegExp(t,"i");this.componentProps.forEach(t=>{if(o.test(t)){const o=this.getAttribute(e);this.props[t]!==o&&(this.props[t]=o)}})}),this._root.innerHTML='\\n\\n <template data-el="show-errored-host">\\n <div class="error">\\n <template data-el="div-errored-host-2">\\n \\x3c!-- String(props.error) --\\x3e\\n </template>\\n </div>\\n </template>\\n\\n <div class="arrow">👇 Uncaught error happened here 👇\\n <span class="dev-tools">DevTools: Cmd+Alt+I</span>\\n </div>\\n <div class="div">\\n <slot></slot>\\n </div>\\n\\n <style>\\n .error {\\n border-radius: 5px 5px 0px 0;\\n background: black;\\n color: white;\\n font-family: monospace;\\n font-size: 12px;\\n margin: 0;\\n padding: 10px;\\n }\\n .arrow {\\n background: #f47e81;\\n color: black;\\n font-size: 14px;\\n padding: 10px;\\n text-align: center;\\n font-family: sans-serif;\\n }\\n .dev-tools {\\n background: red;\\n padding: 2px 5px;\\n border-radius: 3px;\\n font-weight: 800;\\n }\\n .div {\\n outline: 5px solid red;\\n border-radius: 10px;\\n }\\n </style>',this.pendingUpdate=!0,this.render(),this.onMount(),this.pendingUpdate=!1,this.update()}showContent(e){const t=e.content.cloneNode(!0);Array.from(t.childNodes).forEach(t=>{e?.scope&&(t.scope=e.scope),e?.context&&(t.context=e.context),this.nodesToDestroy.push(t)}),e.after(t)}onMount(){}onUpdate(){}update(){!0!==this.pendingUpdate&&(this.pendingUpdate=!0,this.render(),this.onUpdate(),this.pendingUpdate=!1)}render(){this.destroyAnyNodes(),this.updateBindings()}updateBindings(){this._root.querySelectorAll("[data-el='show-errored-host']").forEach(e=>{this.props.error&&this.showContent(e)}),this._root.querySelectorAll("[data-el='div-errored-host-2']").forEach(e=>{this.renderTextNode(e,String(this.props.error))})}renderTextNode(e,t){const o=document.createTextNode(t);e?.scope&&(o.scope=e.scope),e?.context&&(o.context=e.context),e.after(o),this.nodesToDestroy.push(e.nextSibling)}}customElements.define("errored-host",e),document.addEventListener("qerror",e=>{const t=customElements.get("vite-error-overlay");if(!t)return;const o=new t(e.detail.error);document.body.appendChild(o)})}`,Cr='[data-qwik-cls]{outline:2px solid red}[data-qwik-cls]:after{position:absolute;font-size:12px;content:"CLS " attr(data-qwik-cls);font-family:monospace;font-weight:700;background:red;color:#fff;margin:-2px;padding:1px;line-height:1;pointer-events:none}#qwik-image-warning-container{position:absolute!important;top:0!important;left:0!important;width:0!important;overflow:visible!important;height:0!important;pointer-events:none!important;contain:size layout style content;z-index:1}',Dr='if("undefined"!=typeof document){const e=()=>{class e extends HTMLElement{#e=null;constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createElement("template").innerHTML=globalThis.__TEMPLATE__);const e=this.shadowRoot.querySelector("dialog");this.shadowRoot.addEventListener("click",async t=>{const o=t.target;"BUTTON"===o.nodeName&&("action-btn"===o.id?this.#e&&(this.#e(),e.close()):"icon"===o.id?e.open?e.close():(e.className=function(e){const{x:t}=e.getBoundingClientRect();let o="right";return t>window.innerWidth-260&&(o="left"),`bottom ${o}`}(o),e.show()):"loc"===o.id&&o.dataset.url&&globalThis.qwikOpenInEditor(o.dataset.url))})}set loc(e){const t=this.shadowRoot.querySelector("#loc");t.textContent=e,globalThis.qwikOpenInEditor&&(t.dataset.url=e)}set header(e){this.shadowRoot.querySelector("#title").textContent=e}set message(e){this.shadowRoot.querySelector("#message").innerHTML=e}set actionFn(e){this.#e=e}set actionName(e){e&&(this.shadowRoot.querySelector(".action-container").innerHTML=`<button id="action-btn" type="button">${e}</button>`)}}customElements.define("image-warning",e);const t=new Map;let o=document.querySelector("#qwik-image-warning-container");o||(o=document.createElement("div"),o.id="qwik-image-warning-container",document.body.appendChild(o));let n=!1;const i=new Map;function r(e){let t=i.get(e);return void 0===t&&(t=async function(e){if(!/^(https?|file|capacitor):/.test(e))return;const t=new URL("/__image_info",location.href);return t.searchParams.set("url",e),fetch(t).then(e=>e.json()).catch(()=>null)}(e),i.set(e,t)),t}function a(e){return e.endsWith("px")}async function s(e){const i=t.get(e);e.isConnected?e.complete&&async function(e){const i=window.scrollX,s=window.scrollY,c=e.getBoundingClientRect(),d=e.currentSrc,l=await r(d);let h=t.get(e);const u=window.innerWidth>500;if(l&&u){let r=!1;const d=e.getAttribute("data-qwik-inspector"),u=c.width*c.height;if(!e.hasAttribute("width")||!e.hasAttribute("height")){n=!0;const t=getComputedStyle(e),o="auto"!==t.getPropertyValue("aspect-ratio").toString(),i=a(t.getPropertyValue("width").toString()),s=a(t.getPropertyValue("height").toString()),c="absolute"===t.getPropertyValue("position").toString();r=u>1e3&&!c&&!o&&(!i||!s)}const g=u<.5*(l.width&&l.height)&&"svg"!==l.type;if(n=!1,r||g){if(h||(h=document.createElement("image-warning"),o.appendChild(h),t.set(e,h)),h.style.top=c.top+s+"px",h.style.left=c.left+i+"px",h.style.width=c.width+"px",h.style.height=c.height+"px",h.info=l,h.loc=d,r){const t=`width="${l.width}" height="${l.height}"`;h.header="Perf: layout shift",h.message=`Image\'s size is unknown until it\'s loaded, <a href="https://web.dev/cls/" target="_blank" rel="noopener noreferrer">causing layout shift</a>.</p><p>To solve this problem set the width/height in the img tag:</p><pre>&lt;img <span>${t}</span></pre>`;const o=1===document.querySelectorAll(\'[data-qwik-inspector="\'+d+\'"]\').length;d&&(o?(h.actionName="Auto fix",h.actionFn=async()=>{const t=new URL("/__image_fix",location.href);t.searchParams.set("loc",d),t.searchParams.set("width",l.width),t.searchParams.set("height",l.height),e.srcset||(t.searchParams.set("src",e.currentSrc),t.searchParams.set("currentHref",location.href)),await fetch(t,{method:"POST"})}):(h.actionName="Open in editor",h.actionFn=async()=>{await navigator.clipboard.writeText(t),globalThis.qwikOpenInEditor(d)}))}else g&&(h.header="Perf: properly size image",h.message=`The image is too big, <a href="https://developer.chrome.com/en/docs/lighthouse/performance/uses-responsive-images/" target="_blank" rel="noopener noreferrer">hurting performance</a>, it should be resized to the size it\'s displayed at. The image dimensions are ${l.width} x ${l.height} but it\'s displayed at ${c.width}x${c.height}.</p>`);return}}h&&(h.remove(),t.delete(e))}(e):i&&(i.remove(),t.delete(e))}const c=new ResizeObserver(e=>{if(!n)for(const t of e)s(t.target)}),d=new MutationObserver(e=>{for(const t of e){for(const e of t.addedNodes)"IMG"===e.nodeName?c.observe(e):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{c.observe(e)});for(const e of t.removedNodes)"IMG"===e.nodeName?(s(e),c.unobserve(e)):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{s(e),c.unobserve(e)})}});let l,h=0;const u=()=>{setTimeout(()=>{l&&(l.disconnect(),h>.005&&console.error("Detected Layout Shift during page load",h)),d.observe(document.body,{childList:!0,subtree:!0}),document.body.querySelectorAll("img").forEach(e=>{c.observe(e)})},100)};"complete"===document.readyState?u():window.addEventListener("load",u);const g=1===performance?.navigation.type||performance.getEntriesByType("navigation").map(e=>e.type).includes("reload");"undefined"==typeof PerformanceObserver||g||(l=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if(!e.hadRecentInput){if(e.value>.006)for(const t of e.sources)t.node&&1===t.node.nodeType&&"IMAGE-WARNING"!==t.node.nodeName&&t.node.setAttribute("data-qwik-cls",Number(e.value).toFixed(3));h+=e.value}})}),l.observe({type:"layout-shift",buffered:!0}))};document.addEventListener("load",e)}',Pr=`<style>
24
+ `,i="IHDR",r="CgBI";return Te.PNG={validate(o){if(n===(0,e.toUTF8String)(o,1,8)){let d=(0,e.toUTF8String)(o,12,16);if(d===r&&(d=(0,e.toUTF8String)(o,28,32)),d!==i)throw new TypeError("Invalid PNG");return!0}return!1},calculate(o){return(0,e.toUTF8String)(o,12,16)===r?{height:(0,e.readUInt32BE)(o,36),width:(0,e.readUInt32BE)(o,32)}:{height:(0,e.readUInt32BE)(o,20),width:(0,e.readUInt32BE)(o,16)}}},Te}var Zn=Vn();const er=F(Zn);var Ce={},Mt;function tr(){if(Mt)return Ce;Mt=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.PNM=void 0;const e=A(),n={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},i={default:r=>{let o=[];for(;r.length>0;){const d=r.shift();if(d[0]!=="#"){o=d.split(" ");break}}if(o.length===2)return{height:parseInt(o[1],10),width:parseInt(o[0],10)};throw new TypeError("Invalid PNM")},pam:r=>{const o={};for(;r.length>0;){const d=r.shift();if(d.length>16||d.charCodeAt(0)>128)continue;const[c,a]=d.split(" ");if(c&&a&&(o[c.toLowerCase()]=parseInt(a,10)),o.height&&o.width)break}if(o.height&&o.width)return{height:o.height,width:o.width};throw new TypeError("Invalid PAM")}};return Ce.PNM={validate:r=>(0,e.toUTF8String)(r,0,2)in n,calculate(r){const o=(0,e.toUTF8String)(r,0,2),d=n[o],c=(0,e.toUTF8String)(r,3).split(/[\r\n]+/);return(i[d]||i.default)(c)}},Ce}var nr=tr();const rr=F(nr);var Pe={},qt;function or(){if(qt)return Pe;qt=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.PSD=void 0;const e=A();return Pe.PSD={validate:n=>(0,e.toUTF8String)(n,0,4)==="8BPS",calculate:n=>({height:(0,e.readUInt32BE)(n,14),width:(0,e.readUInt32BE)(n,18)})},Pe}var ir=or();const sr=F(ir);var De={},jt;function ar(){if(jt)return De;jt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.SVG=void 0;const e=A(),n=/<svg\s([^>"']|"[^"]*"|'[^']*')*>/,i={height:/\sheight=(['"])([^%]+?)\1/,root:n,viewbox:/\sviewBox=(['"])(.+?)\1/i,width:/\swidth=(['"])([^%]+?)\1/},r=2.54,o={in:96,cm:96/r,em:16,ex:8,m:96/r*100,mm:96/r/10,pc:96/72/12,pt:96/72,px:1},d=new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(o).join("|")})?$`);function c(k){const u=d.exec(k);if(u)return Math.round(Number(u[1])*(o[u[2]]||1))}function a(k){const u=k.split(" ");return{height:c(u[3]),width:c(u[2])}}function p(k){const u=k.match(i.width),w=k.match(i.height),m=k.match(i.viewbox);return{height:w&&c(w[2]),viewbox:m&&a(m[2]),width:u&&c(u[2])}}function t(k){return{height:k.height,width:k.width}}function x(k,u){const w=u.width/u.height;return k.width?{height:Math.floor(k.width/w),width:k.width}:k.height?{height:k.height,width:Math.floor(k.height*w)}:{height:u.height,width:u.width}}return De.SVG={validate:k=>n.test((0,e.toUTF8String)(k,0,1e3)),calculate(k){const u=(0,e.toUTF8String)(k).match(i.root);if(u){const w=p(u[0]);if(w.width&&w.height)return t(w);if(w.viewbox)return x(w,w.viewbox)}throw new TypeError("Invalid SVG")}},De}var lr=ar();const cr=F(lr);var Ne={},Ot;function dr(){if(Ot)return Ne;Ot=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.TGA=void 0;const e=A();return Ne.TGA={validate(n){return(0,e.readUInt16LE)(n,0)===0&&(0,e.readUInt16LE)(n,4)===0},calculate(n){return{height:(0,e.readUInt16LE)(n,14),width:(0,e.readUInt16LE)(n,12)}}},Ne}var ur=dr();const fr=F(ur);var Me={},Lt;function pr(){if(Lt)return Me;Lt=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.WEBP=void 0;const e=A();function n(o){return{height:1+(0,e.readUInt24LE)(o,7),width:1+(0,e.readUInt24LE)(o,4)}}function i(o){return{height:1+((o[4]&15)<<10|o[3]<<2|(o[2]&192)>>6),width:1+((o[2]&63)<<8|o[1])}}function r(o){return{height:(0,e.readInt16LE)(o,8)&16383,width:(0,e.readInt16LE)(o,6)&16383}}return Me.WEBP={validate(o){const d=(0,e.toUTF8String)(o,0,4)==="RIFF",c=(0,e.toUTF8String)(o,8,12)==="WEBP",a=(0,e.toUTF8String)(o,12,15)==="VP8";return d&&c&&a},calculate(o){const d=(0,e.toUTF8String)(o,12,16);if(o=o.slice(20,30),d==="VP8X"){const a=o[0],p=(a&192)===0,t=(a&1)===0;if(p&&t)return n(o);throw new TypeError("Invalid WebP")}if(d==="VP8 "&&o[0]!==47)return r(o);const c=(0,e.toHexString)(o,3,6);if(d==="VP8L"&&c!=="9d012a")return i(o);throw new TypeError("Invalid WebP")}},Me}var hr=pr();const mr=F(hr);var qe={},Ut;function gr(){if(Ut)return qe;Ut=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.HEIF=void 0;const e=A(),n={avif:"avif",mif1:"heif",msf1:"heif",heic:"heic",heix:"heic",hevc:"heic",hevx:"heic"};return qe.HEIF={validate(i){if((0,e.toUTF8String)(i,4,8)!=="ftyp")return!1;const o=(0,e.findBox)(i,"ftyp",0);return o?(0,e.toUTF8String)(i,o.offset+8,o.offset+12)in n:!1},calculate(i){const r=(0,e.findBox)(i,"meta",0),o=r&&(0,e.findBox)(i,"iprp",r.offset+12),d=o&&(0,e.findBox)(i,"ipco",o.offset+8),c=d&&(0,e.findBox)(i,"ispe",d.offset+8);if(c)return{height:(0,e.readUInt32BE)(i,c.offset+16),width:(0,e.readUInt32BE)(i,c.offset+12),type:(0,e.toUTF8String)(i,8,12)};throw new TypeError("Invalid HEIF, no size found")}},qe}var yr=gr();const br=F(yr),wr={56:"psd",66:"bmp",68:"dds",71:"gif",82:"webp",105:"icns",137:"png",255:"jpg"},Fe={webp:mr.WEBP,jpg:Kn.JPG,png:er.PNG,svg:cr.SVG,gif:jn.GIF,avif:br.HEIF,bmp:En.BMP,cur:Cn.CUR,dds:Nn.DDS,icns:Un.ICNS,ico:Rn.ICO,j2c:An.J2C,jp2:Wn.JP2,ktx:Xn.KTX,pnm:rr.PNM,psd:sr.PSD,tga:fr.TGA},vr=Object.keys(Fe);function xr(e){const n=e[0],i=wr[n];return i&&Fe[i].validate(e)?i:vr.find(r=>Fe[r].validate(e))}function Ir(e){const n=xr(e);if(typeof n<"u"){const i=Fe[n].calculate(e);if(i!==void 0)return i.type=n,i}}async function kr(e){if(/^(https?|file|capacitor):/.test(e))try{const n=await fetch(e,{headers:{Accept:"image/*,*/*"}});if(!n.ok){console.error("can not fetch",e);return}const i=await n.arrayBuffer(),r=Ir(Buffer.from(i));if(r)return{width:r.width,height:r.height,type:r.type,size:i.byteLength}}catch(n){console.error(n);return}}const Sr=(e,n,i)=>async(r,o,d)=>{try{const c=await e.dynamicImport("node:fs"),a=await e.dynamicImport("node:path");let p;try{p=new URL(r.url,"http://localhost:3000/")}catch{o.statusCode=404,o.end();return}if(r.method==="GET"&&p.pathname==="/__image_info"){const t=p.searchParams.get("url");if(o.setHeader("content-type","application/json"),t){const x=await kr(t);o.setHeader("cache-control","public, max-age=31536000, immutable"),x?o.write(JSON.stringify(x)):o.statusCode=404}else{o.statusCode=500;const x={message:"error"};o.write(JSON.stringify(x))}o.end();return}else if(r.method==="POST"&&p.pathname==="/__image_fix"){const t=p.searchParams.get("loc"),x=p.searchParams.get("width"),k=p.searchParams.get("height"),u=p.searchParams.get("src"),w=p.searchParams.get("currentHref"),m=t.split(":"),g=parseInt(m[m.length-1],10)-1;let f=parseInt(m[m.length-2],10)-1;const l=a.resolve(i,m.slice(0,m.length-2).join(":")),s=a.extname(l).toLowerCase();let h=c.readFileSync(l).toString("utf-8"),I=0;for(;I<h.length;I++)if(f===0){I+=g;break}else if(h[I]===`
25
+ `){f--;continue}if(h.slice(I,I+4)!=="<img"){console.error("Could not apply auto fix, because it was not possible to find the original <img> tag"),o.statusCode=500;return}const v=h.indexOf(">",I)+1;if(v<I){console.error("Could not apply auto fix, because it was not possible to find the original <img> tag"),o.statusCode=500;return}const T=[".ts",".tsx",".js",".jsx",".mdx"].includes(s);let E=h.slice(I,v);if(u&&w&&T){const P=new URL(u),U=new URL(w);if(P.origin===U.origin){const j=a.join(n,"public",P.pathname),R=a.join(n,P.pathname);let H;if(c.existsSync(j)){const te=a.join(i,"media",a.dirname(P.pathname));await c.promises.mkdir(te,{recursive:!0}),await c.promises.copyFile(j,a.join(i,"media",P.pathname)),H="~/media"+P.pathname}else if(c.existsSync(R))H=P.pathname.replace("/src/","~/");else return;const Y=Er(P.pathname),ce=`${H}?jsx`;E=E.replace(/^<img/,`<${Y}`),E=E.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))\s*/,""),E=E.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))\s*/,""),E=E.replace(/\bsrc=(({[^}]*})|('[^']*')|("[^"]*"))\s*/,"");let W=0;if(s===".mdx"&&h.startsWith("---")&&(W=h.indexOf("---",4)+3,W===-1))return;const Z=`
26
+ import ${Y} from '${ce}';`;h=`${h.slice(0,W)}${Z}${h.slice(W,I)}${E}${h.slice(v)}`,c.writeFileSync(l,h);return}}E=E.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))/,`width="${x}"`),E=E.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))/,`height="${k}"`),E.includes("height=")||(E=E.replace(/<img/,`<img height="${k}"`)),E.includes("width=")||(E=E.replace(/<img/,`<img width="${x}"`)),h=h.slice(0,I)+E+h.slice(v),c.writeFileSync(l,h)}else d()}catch(c){c instanceof Error&&await rn(e,c),d(c)}};function Er(e){const n=e.lastIndexOf("."),i=e.lastIndexOf("/");return e=e.substring(i+1,n),`Img${_r(e)}`}function _r(e){return`${e}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(n,i,r)=>`${i.toUpperCase()+r}`).replace(new RegExp(/\w/),n=>n.toUpperCase())}const Tr=`"undefined"==typeof window||window.__qwikViteLog||(window.__qwikViteLog=!0,console.debug("%c⭐️ Qwik Dev SSR Mode","background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;","App is running in SSR development mode!\\n - Additional JS is loaded by Vite for debugging and live reloading\\n - Rendering performance might not be optimal\\n - Delayed interactivity because prefetching is disabled\\n - Vite dev bundles do not represent production output\\n\\nProduction build can be tested running 'npm run preview'"))`,Cr='if("undefined"!=typeof document){const e=()=>{const e="data-qwik-inspector",t=globalThis.__HOTKEYS__;globalThis.__SRC_DIR__;let o=document.querySelector("#qwik-inspector-info-popup");o||(o=document.createElement("div"),o.id="qwik-inspector-info-popup",o["aria-hidden"]="true",document.body.appendChild(o)),o.textContent=`Click-to-Source: ${t.join(" + ")}`,console.debug("%c🔍 Qwik Click-To-Source","background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;",`Hold-press the \'${t.join(" + ")}\' key${t.length>1?"s":""} and click a component to jump directly to the source code in your IDE!`),window.__qwik_inspector_state={pressedKeys:new Set};const n=document.body,r=document.createElement("div");function i(t){return t&&t instanceof Element?t.closest(`[${e}]`):null}function s(){const e=window.__qwik_inspector_state.hoveredElement;if(e&&d()){const t=e.getBoundingClientRect();r.style.setProperty("height",t.height+"px"),r.style.setProperty("width",t.width+"px"),r.style.setProperty("top",t.top+"px"),r.style.setProperty("left",t.left+"px"),r.style.setProperty("visibility","visible"),n.style.setProperty("cursor","pointer")}else r.style.setProperty("height","0px"),r.style.setProperty("width","0px"),r.style.setProperty("visibility","hidden"),n.style.removeProperty("cursor")}function d(){return function(){const e=Array.from(window.__qwik_inspector_state.pressedKeys).map(e=>e?e.replace(/(Left|Right)$/g,""):void 0);return t.every(t=>e.includes(t))}()}r.id="qwik-inspector-overlay",r.setAttribute("aria-hidden","true"),n.appendChild(r),document.addEventListener("keydown",e=>{window.__qwik_inspector_state.pressedKeys.add(e.code),s()},{capture:!0}),document.addEventListener("keyup",e=>{window.__qwik_inspector_state.pressedKeys.delete(e.code),s()},{capture:!0}),window.addEventListener("blur",()=>{window.__qwik_inspector_state.pressedKeys.clear(),s()},{capture:!0}),document.addEventListener("mouseover",e=>{const t=i(e.target);window.__qwik_inspector_state.hoveredElement=t||void 0,s()},{capture:!0}),document.addEventListener("click",t=>{if(d()){window.__qwik_inspector_state.pressedKeys.clear();const o=i(t.target);if(o){t.preventDefault(),t.stopPropagation();const r=o.getAttribute(e);if("false"!==r){n.style.setProperty("cursor","progress");const e=r.match(/^(.*?)(:\\d+(:\\d+)?)?$/);if(e){const[,t,o]=e;fetch(`${t}?editor${o}`).then(()=>{n.style.removeProperty("cursor")})}}}}},{capture:!0}),document.addEventListener("contextmenu",e=>{if(d()){window.__qwik_inspector_state.pressedKeys.clear();i(e.target)&&e.preventDefault()}},{capture:!0}),window.addEventListener("resize",s),document.addEventListener("scroll",s)};document.addEventListener("DOMContentLoaded",e)}',Pr=`if("undefined"!=typeof HTMLElement){class e extends HTMLElement{get _root(){return this.shadowRoot||this}constructor(){super(),this.state={},this.props||(this.props={}),this.componentProps=["children","error"],this.nodesToDestroy=[],this.pendingUpdate=!1,this.attachShadow({mode:"open"})}destroyAnyNodes(){this.nodesToDestroy.forEach(e=>e.remove()),this.nodesToDestroy=[]}connectedCallback(){this.getAttributeNames().forEach(e=>{const t=e.replace(/-/g,""),o=new RegExp(t,"i");this.componentProps.forEach(t=>{if(o.test(t)){const o=this.getAttribute(e);this.props[t]!==o&&(this.props[t]=o)}})}),this._root.innerHTML='\\n\\n <template data-el="show-errored-host">\\n <div class="error">\\n <template data-el="div-errored-host-2">\\n \\x3c!-- String(props.error) --\\x3e\\n </template>\\n </div>\\n </template>\\n\\n <div class="arrow">👇 Uncaught error happened here 👇\\n <span class="dev-tools">DevTools: Cmd+Alt+I</span>\\n </div>\\n <div class="div">\\n <slot></slot>\\n </div>\\n\\n <style>\\n .error {\\n border-radius: 5px 5px 0px 0;\\n background: black;\\n color: white;\\n font-family: monospace;\\n font-size: 12px;\\n margin: 0;\\n padding: 10px;\\n }\\n .arrow {\\n background: #f47e81;\\n color: black;\\n font-size: 14px;\\n padding: 10px;\\n text-align: center;\\n font-family: sans-serif;\\n }\\n .dev-tools {\\n background: red;\\n padding: 2px 5px;\\n border-radius: 3px;\\n font-weight: 800;\\n }\\n .div {\\n outline: 5px solid red;\\n border-radius: 10px;\\n }\\n </style>',this.pendingUpdate=!0,this.render(),this.onMount(),this.pendingUpdate=!1,this.update()}showContent(e){const t=e.content.cloneNode(!0);Array.from(t.childNodes).forEach(t=>{e?.scope&&(t.scope=e.scope),e?.context&&(t.context=e.context),this.nodesToDestroy.push(t)}),e.after(t)}onMount(){}onUpdate(){}update(){!0!==this.pendingUpdate&&(this.pendingUpdate=!0,this.render(),this.onUpdate(),this.pendingUpdate=!1)}render(){this.destroyAnyNodes(),this.updateBindings()}updateBindings(){this._root.querySelectorAll("[data-el='show-errored-host']").forEach(e=>{this.props.error&&this.showContent(e)}),this._root.querySelectorAll("[data-el='div-errored-host-2']").forEach(e=>{this.renderTextNode(e,String(this.props.error))})}renderTextNode(e,t){const o=document.createTextNode(t);e?.scope&&(o.scope=e.scope),e?.context&&(o.context=e.context),e.after(o),this.nodesToDestroy.push(e.nextSibling)}}customElements.define("errored-host",e),document.addEventListener("qerror",e=>{const t=customElements.get("vite-error-overlay");if(!t)return;const o=new t(e.detail.error);document.body.appendChild(o)})}`,Dr='[data-qwik-cls]{outline:2px solid red}[data-qwik-cls]:after{position:absolute;font-size:12px;content:"CLS " attr(data-qwik-cls);font-family:monospace;font-weight:700;background:red;color:#fff;margin:-2px;padding:1px;line-height:1;pointer-events:none}#qwik-image-warning-container{position:absolute!important;top:0!important;left:0!important;width:0!important;overflow:visible!important;height:0!important;pointer-events:none!important;contain:size layout style content;z-index:1}',Nr='if("undefined"!=typeof document){const e=()=>{class e extends HTMLElement{#e=null;constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createElement("template").innerHTML=globalThis.__TEMPLATE__);const e=this.shadowRoot.querySelector("dialog");this.shadowRoot.addEventListener("click",async t=>{const o=t.target;"BUTTON"===o.nodeName&&("action-btn"===o.id?this.#e&&(this.#e(),e.close()):"icon"===o.id?e.open?e.close():(e.className=function(e){const{x:t}=e.getBoundingClientRect();let o="right";return t>window.innerWidth-260&&(o="left"),`bottom ${o}`}(o),e.show()):"loc"===o.id&&o.dataset.url&&globalThis.qwikOpenInEditor(o.dataset.url))})}set loc(e){const t=this.shadowRoot.querySelector("#loc");t.textContent=e,globalThis.qwikOpenInEditor&&(t.dataset.url=e)}set header(e){this.shadowRoot.querySelector("#title").textContent=e}set message(e){this.shadowRoot.querySelector("#message").innerHTML=e}set actionFn(e){this.#e=e}set actionName(e){e&&(this.shadowRoot.querySelector(".action-container").innerHTML=`<button id="action-btn" type="button">${e}</button>`)}}customElements.define("image-warning",e);const t=new Map;let o=document.querySelector("#qwik-image-warning-container");o||(o=document.createElement("div"),o.id="qwik-image-warning-container",document.body.appendChild(o));let n=!1;const i=new Map;function r(e){let t=i.get(e);return void 0===t&&(t=async function(e){if(!/^(https?|file|capacitor):/.test(e))return;const t=new URL("/__image_info",location.href);return t.searchParams.set("url",e),fetch(t).then(e=>e.json()).catch(()=>null)}(e),i.set(e,t)),t}function a(e){return e.endsWith("px")}async function s(e){const i=t.get(e);e.isConnected?e.complete&&async function(e){const i=window.scrollX,s=window.scrollY,c=e.getBoundingClientRect(),d=e.currentSrc,l=await r(d);let h=t.get(e);const u=window.innerWidth>500;if(l&&u){let r=!1;const d=e.getAttribute("data-qwik-inspector"),u=c.width*c.height;if(!e.hasAttribute("width")||!e.hasAttribute("height")){n=!0;const t=getComputedStyle(e),o="auto"!==t.getPropertyValue("aspect-ratio").toString(),i=a(t.getPropertyValue("width").toString()),s=a(t.getPropertyValue("height").toString()),c="absolute"===t.getPropertyValue("position").toString();r=u>1e3&&!c&&!o&&(!i||!s)}const g=u<.5*(l.width&&l.height)&&"svg"!==l.type;if(n=!1,r||g){if(h||(h=document.createElement("image-warning"),o.appendChild(h),t.set(e,h)),h.style.top=c.top+s+"px",h.style.left=c.left+i+"px",h.style.width=c.width+"px",h.style.height=c.height+"px",h.info=l,h.loc=d,r){const t=`width="${l.width}" height="${l.height}"`;h.header="Perf: layout shift",h.message=`Image\'s size is unknown until it\'s loaded, <a href="https://web.dev/cls/" target="_blank" rel="noopener noreferrer">causing layout shift</a>.</p><p>To solve this problem set the width/height in the img tag:</p><pre>&lt;img <span>${t}</span></pre>`;const o=1===document.querySelectorAll(\'[data-qwik-inspector="\'+d+\'"]\').length;d&&(o?(h.actionName="Auto fix",h.actionFn=async()=>{const t=new URL("/__image_fix",location.href);t.searchParams.set("loc",d),t.searchParams.set("width",l.width),t.searchParams.set("height",l.height),e.srcset||(t.searchParams.set("src",e.currentSrc),t.searchParams.set("currentHref",location.href)),await fetch(t,{method:"POST"})}):(h.actionName="Open in editor",h.actionFn=async()=>{await navigator.clipboard.writeText(t),globalThis.qwikOpenInEditor(d)}))}else g&&(h.header="Perf: properly size image",h.message=`The image is too big, <a href="https://developer.chrome.com/en/docs/lighthouse/performance/uses-responsive-images/" target="_blank" rel="noopener noreferrer">hurting performance</a>, it should be resized to the size it\'s displayed at. The image dimensions are ${l.width} x ${l.height} but it\'s displayed at ${c.width}x${c.height}.</p>`);return}}h&&(h.remove(),t.delete(e))}(e):i&&(i.remove(),t.delete(e))}const c=new ResizeObserver(e=>{if(!n)for(const t of e)s(t.target)}),d=new MutationObserver(e=>{for(const t of e){for(const e of t.addedNodes)"IMG"===e.nodeName?c.observe(e):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{c.observe(e)});for(const e of t.removedNodes)"IMG"===e.nodeName?(s(e),c.unobserve(e)):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{s(e),c.unobserve(e)})}});let l,h=0;const u=()=>{setTimeout(()=>{l&&(l.disconnect(),h>.005&&console.error("Detected Layout Shift during page load",h)),d.observe(document.body,{childList:!0,subtree:!0}),document.body.querySelectorAll("img").forEach(e=>{c.observe(e)})},100)};"complete"===document.readyState?u():window.addEventListener("load",u);const g=1===performance?.navigation.type||performance.getEntriesByType("navigation").map(e=>e.type).includes("reload");"undefined"==typeof PerformanceObserver||g||(l=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if(!e.hadRecentInput){if(e.value>.006)for(const t of e.sources)t.node&&1===t.node.nodeType&&"IMAGE-WARNING"!==t.node.nodeName&&t.node.setAttribute("data-qwik-cls",Number(e.value).toFixed(3));h+=e.value}})}),l.observe({type:"layout-shift",buffered:!0}))};document.addEventListener("load",e)}',Mr=`<style>
27
27
  :host {
28
28
  position: absolute;
29
29
  border: 1px solid red;
@@ -187,19 +187,26 @@ import ${Y} from '${le}';`;h=`${h.slice(0,W)}${ee}${h.slice(W,I)}${E}${h.slice(w
187
187
  <p class="action-container"></p>
188
188
  </div>
189
189
  </dialog>
190
- `,Nr=`vite-error-overlay{--color-bright: rgba(255, 255, 255, .8);--color-yellow: rgba(255, 246, 85, .8);--qwik-dark-blue: #006ce9;--qwik-light-blue: #3ec2f7;--qwik-light-purple: #ac7ff4;--qwik-dark-purple: #713fc2;--yellow: #fff;--purple: var(--color-bright);--red: var(--qwik-light-blue);--vertical-box-spacing: 15px;--box-padding: 20px;--box-margin: 0 0 var(--vertical-box-spacing) 0;--box-background: rgba(0, 0, 0, .5);--box-border-radius: 8px}vite-error-overlay::part(backdrop){background:#020b1199}vite-error-overlay::part(window){background:transparent;border:none;box-shadow:none;box-sizing:border-box;margin:50px auto;max-width:1200px;padding:var(--box-padding);width:90%}vite-error-overlay::part(message){display:flex;flex-direction:column;font-size:1.6rem;line-height:1.7;margin-bottom:30px}vite-error-overlay::part(plugin){font-size:.8rem;font-weight:100}vite-error-overlay::part(file),vite-error-overlay::part(frame),vite-error-overlay::part(stack),vite-error-overlay::part(tip){background:var(--box-background);border-left:5px solid transparent;border-radius:var(--box-border-radius);margin:var(--box-margin);min-height:50px;padding:var(--box-padding);position:relative}vite-error-overlay::part(file){border-left-color:#19b6f6;color:var(--color-bright)}vite-error-overlay::part(frame){border-left-color:var(--color-yellow);color:var(--color-yellow)}vite-error-overlay::part(stack){border-left-color:#ff5722}vite-error-overlay::part(tip){border-top:none;border-left-color:#ac7ff4}vite-error-overlay::part(file):before,vite-error-overlay::part(frame):before,vite-error-overlay::part(stack):before{border-bottom:1px solid #222;color:var(--color-bright);display:block;margin-bottom:15px;padding-bottom:5px;padding-left:30px;font-size:.8rem}vite-error-overlay::part(file):before{content:"File"}vite-error-overlay::part(frame):before{content:"Frame"}vite-error-overlay::part(stack):before{content:"Stack Trace"}vite-error-overlay::part(file):after,vite-error-overlay::part(frame):after,vite-error-overlay::part(stack):after{content:"";display:block;height:20px;position:absolute;left:var(--box-padding);top:var(--box-padding);width:20px}vite-error-overlay::part(file):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EFile-Generic%3C/title%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='File-Generic'%3E%3Crect id='Rectangle' fill-rule='nonzero' x='0' y='0' width='24' height='24'%3E%3C/rect%3E%3Cpath d='M4 5 C4 3.89543 4.89543 3 6 3 L15.1716 3 C15.702 3 16.2107 3.21071 16.5858 3.58579 L19.4142 6.41421 C19.7893 6.78929 20 7.29799 20 7.82843 L20 19 C20 20.1046 19.1046 21 18 21 L6 21 C4.89543 21 4 20.1046 4 19 L4 5 Z' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M15 4 L15 6 C15 7.10457 15.8954 8 17 8 L19 8' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}vite-error-overlay::part(frame):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.6602 2.84952H19.1516C20.2555 2.84952 21.1504 3.74444 21.1504 4.84839V8.3398' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M2.84949 8.33981L2.84949 4.8484C2.84949 3.74446 3.74441 2.84953 4.84836 2.84953L8.33977 2.84953' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M21.1505 15.6602L21.1505 19.1516C21.1505 20.2555 20.2556 21.1505 19.1516 21.1505L15.6602 21.1505' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M8.33984 21.1505L4.84843 21.1505C3.74449 21.1505 2.84956 20.2555 2.84956 19.1516L2.84956 15.6602' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3C/svg%3E")}vite-error-overlay::part(stack):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.78 20H9.78C7.98 20 4.58 19.09 4.58 15.64C4.58 12.19 7.98 11.28 9.78 11.28H14.22C14.37 11.28 17.92 11.23 17.92 8.42C17.92 5.61 14.37 5.56 14.22 5.56H9.22C9.02109 5.56 8.83032 5.48098 8.68967 5.34033C8.54902 5.19968 8.47 5.00891 8.47 4.81C8.47 4.61109 8.54902 4.42032 8.68967 4.27967C8.83032 4.13902 9.02109 4.06 9.22 4.06H14.22C16.02 4.06 19.42 4.97 19.42 8.42C19.42 11.87 16.02 12.78 14.22 12.78H9.78C9.63 12.78 6.08 12.83 6.08 15.64C6.08 18.45 9.63 18.5 9.78 18.5H14.78C14.9789 18.5 15.1697 18.579 15.3103 18.7197C15.451 18.8603 15.53 19.0511 15.53 19.25C15.53 19.4489 15.451 19.6397 15.3103 19.7803C15.1697 19.921 14.9789 20 14.78 20Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M6.44 8.31C5.74314 8.30407 5.06363 8.09202 4.48708 7.70056C3.91054 7.30909 3.46276 6.75573 3.20018 6.11021C2.93759 5.46469 2.87195 4.75589 3.01153 4.07312C3.1511 3.39036 3.48965 2.76418 3.9845 2.2735C4.47935 1.78281 5.10837 1.44958 5.79229 1.31579C6.47622 1.182 7.18444 1.25363 7.82771 1.52167C8.47099 1.78971 9.02054 2.24215 9.40711 2.82199C9.79368 3.40182 9.99998 4.08311 10 4.78C10 5.2461 9.90773 5.70759 9.72846 6.13783C9.54919 6.56808 9.28648 6.95856 8.95551 7.28675C8.62453 7.61494 8.23184 7.87433 7.80009 8.04995C7.36834 8.22558 6.90609 8.31396 6.44 8.31ZM6.44 2.75C6.04444 2.75 5.65776 2.86729 5.32886 3.08706C4.99996 3.30682 4.74362 3.61918 4.59224 3.98463C4.44087 4.35008 4.40126 4.75221 4.47843 5.14018C4.5556 5.52814 4.74609 5.8845 5.02579 6.16421C5.3055 6.44391 5.66186 6.6344 6.04982 6.71157C6.43779 6.78874 6.83992 6.74913 7.20537 6.59776C7.57082 6.44638 7.88318 6.19003 8.10294 5.86114C8.32271 5.53224 8.44 5.14556 8.44 4.75C8.44 4.48735 8.38827 4.22728 8.28776 3.98463C8.18725 3.74198 8.03993 3.5215 7.85422 3.33578C7.6685 3.15007 7.44802 3.00275 7.20537 2.90224C6.96272 2.80173 6.70265 2.75 6.44 2.75Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M17.56 22.75C16.8614 22.752 16.1779 22.5466 15.5961 22.1599C15.0143 21.7733 14.5603 21.2227 14.2916 20.5778C14.0229 19.933 13.9515 19.2229 14.0866 18.5375C14.2217 17.8521 14.5571 17.2221 15.0504 16.7275C15.5437 16.2328 16.1726 15.8956 16.8577 15.7586C17.5427 15.6215 18.253 15.6909 18.8986 15.9577C19.5442 16.2246 20.0961 16.6771 20.4844 17.2578C20.8727 17.8385 21.08 18.5214 21.08 19.22C21.08 20.1545 20.7095 21.0508 20.0496 21.7125C19.3898 22.3743 18.4945 22.7473 17.56 22.75ZM17.56 17.19C17.1644 17.19 16.7778 17.3073 16.4489 17.5271C16.12 17.7468 15.8636 18.0592 15.7122 18.4246C15.5609 18.7901 15.5213 19.1922 15.5984 19.5802C15.6756 19.9681 15.8661 20.3245 16.1458 20.6042C16.4255 20.8839 16.7819 21.0744 17.1698 21.1516C17.5578 21.2287 17.9599 21.1891 18.3254 21.0377C18.6908 20.8864 19.0032 20.63 19.2229 20.3011C19.4427 19.9722 19.56 19.5856 19.56 19.19C19.56 18.6596 19.3493 18.1508 18.9742 17.7758C18.5991 17.4007 18.0904 17.19 17.56 17.19Z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E")}vite-error-overlay::part(tip):before{content:"Not sure how to solve this? Visit https://qwik.dev or connect with the community on Discord.";display:block;margin-bottom:1em}`,Mr="#qwik-inspector-overlay{position:fixed;background:#18b6f645;pointer-events:none;box-sizing:border-box;border:2px solid rgba(172,126,244,.46);border-radius:4px;contain:strict;cursor:pointer;z-index:999999}#qwik-inspector-info-popup{position:fixed;bottom:10px;right:10px;font-family:monospace;background:#000000c2;color:#fff;padding:10px 20px;border-radius:8px;box-shadow:0 20px 25px -5px #00000057,0 8px 10px -6px #0000003d;backdrop-filter:blur(4px);-webkit-animation:fadeOut .3s 3s ease-in-out forwards;animation:fadeOut .3s 3s ease-in-out forwards;z-index:999999;contain:layout}#qwik-inspector-info-popup p{margin:0}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;visibility:hidden}}";async function qr(e,n,i,r){const o=await i.dynamicImport("node:fs"),d=await i.dynamicImport("node:url"),a=["mjs","cjs","js"].map(f=>r.join(n,`entry.preview.${f}`)).find(f=>o.existsSync(f));if(!a)return Ze(e,`Unable to find output "${n}/entry.preview" module.
190
+ `,qr=`vite-error-overlay{--color-bright: rgba(255, 255, 255, .8);--color-yellow: rgba(255, 246, 85, .8);--qwik-dark-blue: #006ce9;--qwik-light-blue: #3ec2f7;--qwik-light-purple: #ac7ff4;--qwik-dark-purple: #713fc2;--yellow: #fff;--purple: var(--color-bright);--red: var(--qwik-light-blue);--vertical-box-spacing: 15px;--box-padding: 20px;--box-margin: 0 0 var(--vertical-box-spacing) 0;--box-background: rgba(0, 0, 0, .5);--box-border-radius: 8px}vite-error-overlay::part(backdrop){background:#020b1199}vite-error-overlay::part(window){background:transparent;border:none;box-shadow:none;box-sizing:border-box;margin:50px auto;max-width:1200px;padding:var(--box-padding);width:90%}vite-error-overlay::part(message){display:flex;flex-direction:column;font-size:1.6rem;line-height:1.7;margin-bottom:30px}vite-error-overlay::part(plugin){font-size:.8rem;font-weight:100}vite-error-overlay::part(file),vite-error-overlay::part(frame),vite-error-overlay::part(stack),vite-error-overlay::part(tip){background:var(--box-background);border-left:5px solid transparent;border-radius:var(--box-border-radius);margin:var(--box-margin);min-height:50px;padding:var(--box-padding);position:relative}vite-error-overlay::part(file){border-left-color:#19b6f6;color:var(--color-bright)}vite-error-overlay::part(frame){border-left-color:var(--color-yellow);color:var(--color-yellow)}vite-error-overlay::part(stack){border-left-color:#ff5722}vite-error-overlay::part(tip){border-top:none;border-left-color:#ac7ff4}vite-error-overlay::part(file):before,vite-error-overlay::part(frame):before,vite-error-overlay::part(stack):before{border-bottom:1px solid #222;color:var(--color-bright);display:block;margin-bottom:15px;padding-bottom:5px;padding-left:30px;font-size:.8rem}vite-error-overlay::part(file):before{content:"File"}vite-error-overlay::part(frame):before{content:"Frame"}vite-error-overlay::part(stack):before{content:"Stack Trace"}vite-error-overlay::part(file):after,vite-error-overlay::part(frame):after,vite-error-overlay::part(stack):after{content:"";display:block;height:20px;position:absolute;left:var(--box-padding);top:var(--box-padding);width:20px}vite-error-overlay::part(file):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EFile-Generic%3C/title%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='File-Generic'%3E%3Crect id='Rectangle' fill-rule='nonzero' x='0' y='0' width='24' height='24'%3E%3C/rect%3E%3Cpath d='M4 5 C4 3.89543 4.89543 3 6 3 L15.1716 3 C15.702 3 16.2107 3.21071 16.5858 3.58579 L19.4142 6.41421 C19.7893 6.78929 20 7.29799 20 7.82843 L20 19 C20 20.1046 19.1046 21 18 21 L6 21 C4.89543 21 4 20.1046 4 19 L4 5 Z' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M15 4 L15 6 C15 7.10457 15.8954 8 17 8 L19 8' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}vite-error-overlay::part(frame):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.6602 2.84952H19.1516C20.2555 2.84952 21.1504 3.74444 21.1504 4.84839V8.3398' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M2.84949 8.33981L2.84949 4.8484C2.84949 3.74446 3.74441 2.84953 4.84836 2.84953L8.33977 2.84953' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M21.1505 15.6602L21.1505 19.1516C21.1505 20.2555 20.2556 21.1505 19.1516 21.1505L15.6602 21.1505' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M8.33984 21.1505L4.84843 21.1505C3.74449 21.1505 2.84956 20.2555 2.84956 19.1516L2.84956 15.6602' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3C/svg%3E")}vite-error-overlay::part(stack):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.78 20H9.78C7.98 20 4.58 19.09 4.58 15.64C4.58 12.19 7.98 11.28 9.78 11.28H14.22C14.37 11.28 17.92 11.23 17.92 8.42C17.92 5.61 14.37 5.56 14.22 5.56H9.22C9.02109 5.56 8.83032 5.48098 8.68967 5.34033C8.54902 5.19968 8.47 5.00891 8.47 4.81C8.47 4.61109 8.54902 4.42032 8.68967 4.27967C8.83032 4.13902 9.02109 4.06 9.22 4.06H14.22C16.02 4.06 19.42 4.97 19.42 8.42C19.42 11.87 16.02 12.78 14.22 12.78H9.78C9.63 12.78 6.08 12.83 6.08 15.64C6.08 18.45 9.63 18.5 9.78 18.5H14.78C14.9789 18.5 15.1697 18.579 15.3103 18.7197C15.451 18.8603 15.53 19.0511 15.53 19.25C15.53 19.4489 15.451 19.6397 15.3103 19.7803C15.1697 19.921 14.9789 20 14.78 20Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M6.44 8.31C5.74314 8.30407 5.06363 8.09202 4.48708 7.70056C3.91054 7.30909 3.46276 6.75573 3.20018 6.11021C2.93759 5.46469 2.87195 4.75589 3.01153 4.07312C3.1511 3.39036 3.48965 2.76418 3.9845 2.2735C4.47935 1.78281 5.10837 1.44958 5.79229 1.31579C6.47622 1.182 7.18444 1.25363 7.82771 1.52167C8.47099 1.78971 9.02054 2.24215 9.40711 2.82199C9.79368 3.40182 9.99998 4.08311 10 4.78C10 5.2461 9.90773 5.70759 9.72846 6.13783C9.54919 6.56808 9.28648 6.95856 8.95551 7.28675C8.62453 7.61494 8.23184 7.87433 7.80009 8.04995C7.36834 8.22558 6.90609 8.31396 6.44 8.31ZM6.44 2.75C6.04444 2.75 5.65776 2.86729 5.32886 3.08706C4.99996 3.30682 4.74362 3.61918 4.59224 3.98463C4.44087 4.35008 4.40126 4.75221 4.47843 5.14018C4.5556 5.52814 4.74609 5.8845 5.02579 6.16421C5.3055 6.44391 5.66186 6.6344 6.04982 6.71157C6.43779 6.78874 6.83992 6.74913 7.20537 6.59776C7.57082 6.44638 7.88318 6.19003 8.10294 5.86114C8.32271 5.53224 8.44 5.14556 8.44 4.75C8.44 4.48735 8.38827 4.22728 8.28776 3.98463C8.18725 3.74198 8.03993 3.5215 7.85422 3.33578C7.6685 3.15007 7.44802 3.00275 7.20537 2.90224C6.96272 2.80173 6.70265 2.75 6.44 2.75Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M17.56 22.75C16.8614 22.752 16.1779 22.5466 15.5961 22.1599C15.0143 21.7733 14.5603 21.2227 14.2916 20.5778C14.0229 19.933 13.9515 19.2229 14.0866 18.5375C14.2217 17.8521 14.5571 17.2221 15.0504 16.7275C15.5437 16.2328 16.1726 15.8956 16.8577 15.7586C17.5427 15.6215 18.253 15.6909 18.8986 15.9577C19.5442 16.2246 20.0961 16.6771 20.4844 17.2578C20.8727 17.8385 21.08 18.5214 21.08 19.22C21.08 20.1545 20.7095 21.0508 20.0496 21.7125C19.3898 22.3743 18.4945 22.7473 17.56 22.75ZM17.56 17.19C17.1644 17.19 16.7778 17.3073 16.4489 17.5271C16.12 17.7468 15.8636 18.0592 15.7122 18.4246C15.5609 18.7901 15.5213 19.1922 15.5984 19.5802C15.6756 19.9681 15.8661 20.3245 16.1458 20.6042C16.4255 20.8839 16.7819 21.0744 17.1698 21.1516C17.5578 21.2287 17.9599 21.1891 18.3254 21.0377C18.6908 20.8864 19.0032 20.63 19.2229 20.3011C19.4427 19.9722 19.56 19.5856 19.56 19.19C19.56 18.6596 19.3493 18.1508 18.9742 17.7758C18.5991 17.4007 18.0904 17.19 17.56 17.19Z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E")}vite-error-overlay::part(tip):before{content:"Not sure how to solve this? Visit https://qwik.dev or connect with the community on Discord.";display:block;margin-bottom:1em}`,jr="#qwik-inspector-overlay{position:fixed;background:#18b6f645;pointer-events:none;box-sizing:border-box;border:2px solid rgba(172,126,244,.46);border-radius:4px;contain:strict;cursor:pointer;z-index:999999}#qwik-inspector-info-popup{position:fixed;bottom:10px;right:10px;font-family:monospace;background:#000000c2;color:#fff;padding:10px 20px;border-radius:8px;box-shadow:0 20px 25px -5px #00000057,0 8px 10px -6px #0000003d;backdrop-filter:blur(4px);-webkit-animation:fadeOut .3s 3s ease-in-out forwards;animation:fadeOut .3s 3s ease-in-out forwards;z-index:999999;contain:layout}#qwik-inspector-info-popup p{margin:0}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;visibility:hidden}}";async function Or(e,n,i,r){const o=await i.dynamicImport("node:fs"),d=await i.dynamicImport("node:url"),a=["mjs","cjs","js"].map(p=>r.join(n,`entry.preview.${p}`)).find(p=>o.existsSync(p));if(!a)return et(e,`Unable to find output "${n}/entry.preview" module.
191
191
 
192
- Please ensure "src/entry.preview.tsx" has been built before the "preview" command.`);try{const f=d.pathToFileURL(a).href,t=await i.strictDynamicImport(f);let x=null,S=null;if(t.default&&(typeof t.default=="function"?x=t.default:typeof t.default=="object"&&(x=t.default.router,S=t.default.notFound)),typeof x!="function")return Ze(e,`Entry preview module "${a}" does not export a default middleware function`);e.use(x),typeof S=="function"&&e.use(S)}catch(f){return Ze(e,String(f))}}function Ze(e,n){console.log(`
192
+ Please ensure "src/entry.preview.tsx" has been built before the "preview" command.`);try{const p=d.pathToFileURL(a).href,t=await i.strictDynamicImport(p);let x=null,k=null;if(t.default&&(typeof t.default=="function"?x=t.default:typeof t.default=="object"&&(x=t.default.router,k=t.default.notFound)),typeof x!="function")return et(e,`Entry preview module "${a}" does not export a default middleware function`);e.use(x),typeof k=="function"&&e.use(k)}catch(p){return et(e,String(p))}}function et(e,n){console.log(`
193
193
  ❌ ${n}
194
- `),e.use((i,r)=>{r.writeHead(400,{"Content-Type":"text/plain"}),r.end(n)})}const jr=(e,n)=>{const i=[{tag:"style",children:Nr,injectTo:"body"},{tag:"style",children:Mr,injectTo:"body"},{tag:"script",attrs:{type:"module"},children:Tr,injectTo:"body"},{tag:"script",attrs:{type:"module"},children:Er,injectTo:"body"}];if((e.devTools?.imageDevTools??!0)&&i.push({tag:"style",children:Cr,injectTo:"body"},{tag:"script",attrs:{type:"module"},children:Dr.replace("globalThis.__TEMPLATE__",JSON.stringify(Pr)),injectTo:"body"}),e.devTools?.clickToSource??!0){const r=e.devTools.clickToSource??[],o=new URL(n+"/","http://local.local").href;i.push({tag:"script",attrs:{type:"module"},children:_r.replace("globalThis.__HOTKEYS__",JSON.stringify(r)).replace("globalThis.__SRC_DIR__",JSON.stringify(o)),injectTo:"body"})}return i},Lr=[Ue,We,Ge],Or=[".css",".scss",".sass",".less",".styl",".stylus"],Ur=[".woff",".woff2",".ttf"];function $r(e={}){let n="serve",i=null,r=null,o="/",d=null,c,a=null,f=null,t=null;const x=e.fileFilter?(s,b)=>gt.test(s)||e.fileFilter(s,b):()=>!0,S=e.disableFontPreload??!1,u=[],v=mt(e.optimizerOptions),m=new Set;return[{name:"vite-plugin-qwik",enforce:"pre",api:{getOptimizer:()=>v.getOptimizer(),getOptions:()=>v.getOptions(),getManifest:()=>i,getRootDir:()=>v.getOptions().rootDir,getClientOutDir:()=>r,getClientPublicOutDir:()=>d,getAssetsDir:()=>c,registerBundleGraphAdder:s=>m.add(s),_oldDevSsrServer:()=>e.devSsrServer},async config(s,b){await v.init();const h=v.getPath();let I;s.build?.ssr||b.mode==="ssr"?I="ssr":b.mode==="lib"?I="lib":b.mode==="test"?I="test":I="client",n=b.command;let w;b.mode==="production"?w="production":b.mode==="development"?w="development":n==="build"&&I==="client"?w="production":w="development",v.debug(`vite config(), command: ${n}, env.mode: ${b.mode}`),n==="serve"?e.entryStrategy={type:"segment"}:I==="ssr"?e.entryStrategy={type:"hoist"}:I==="lib"&&(e.entryStrategy={type:"inline"});const T=I==="ssr"?typeof s.build?.ssr=="string"?s.build.ssr:e.ssr?.input:void 0,E=I==="client"?e.client?.input:void 0;let P=s.build?.rollupOptions?.input||E||T;P&&typeof P=="string"&&(P=[P]),c=s.build?.assetsDir;const U=I==="client"&&!!c&&c!=="_astro",j={target:I,buildMode:w,csr:e.csr,debug:e.debug,entryStrategy:e.entryStrategy,srcDir:e.srcDir,rootDir:s.root,tsconfigFileNames:e.tsconfigFileNames,resolveQwikBuild:!0,transformedModuleOutput:e.transformedModuleOutput,outDir:s.build?.outDir,ssrOutDir:e.ssr?.outDir||s.build?.outDir,clientOutDir:e.client?.outDir||(s.build?.ssr?void 0:s.build?.outDir),assetsDir:U?c:void 0,devTools:e.devTools,sourcemap:!!s.build?.sourcemap,lint:e.lint,experimental:e.experimental,input:P,manifestInput:e.ssr?.manifestInput,manifestOutput:e.client?.manifestOutput},R=await v.normalizeOptions(j);P||(P=R.input),i=R.manifestInput,a=R.srcDir,f=R.rootDir,e.csr||(r=R.clientOutDir,d=s.base?h.join(r,s.base):r,t=R.ssrOutDir);const H=w==="development",Y="globalThis.qDev",le="globalThis.qTest",W="globalThis.qInspector",ee="globalThis.qSerialize",V=s?.define?.[Y]??H,O=s?.define?.[W]??H,Ve=s?.define?.[ee]??H,G={ssr:{noExternal:[Ue,He,Ke,ne]},envPrefix:["VITE_","PUBLIC_"],resolve:{dedupe:[...Lr],conditions:w==="production"&&I==="client"?["min"]:[],alias:{"@builder.io/qwik":"@qwik.dev/core","@builder.io/qwik/build":"@qwik.dev/core/build","@builder.io/qwik/server":"@qwik.dev/core/server","@builder.io/qwik/preloader":"@qwik.dev/core/preloader","@builder.io/qwik/jsx-runtime":"@qwik.dev/core/jsx-runtime","@builder.io/qwik/jsx-dev-runtime":"@qwik.dev/core/jsx-dev-runtime","@builder.io/qwik/optimizer":"@qwik.dev/core/optimizer","@builder.io/qwik/loader":"@qwik.dev/core/loader","@builder.io/qwik/backpatch":"@qwik.dev/core/backpatch","@builder.io/qwik/cli":"@qwik.dev/core/cli","@builder.io/qwik/testing":"@qwik.dev/core/testing"}},esbuild:n==="serve"?!1:{logLevel:"error",jsx:"automatic"},optimizeDeps:{exclude:[Ue,He,Ke,We,Ge,ne,re,"@builder.io/qwik","@builder.io/qwik-city"]},build:{modulePreload:!1,dynamicImportVarsOptions:{exclude:[/./]},rollupOptions:{maxParallelFileOps:1,input:P}},define:{[Y]:V,[W]:O,[ee]:Ve,[le]:JSON.stringify(process.env.NODE_ENV==="test")}};if(!e.csr){const K=I==="client"&&s.base?h.join(R.outDir,s.base):R.outDir;G.build.cssCodeSplit=!1,G.build.outDir=K;const qe=G.build.rollupOptions?.onwarn;G.build.rollupOptions={...G.build.rollupOptions,output:vn(v,s.build?.rollupOptions?.output,U,K),preserveEntrySignatures:"exports-only",onwarn:(fe,Be)=>{fe.plugin==="typescript"&&fe.message.includes("outputToFilesystem")||(qe?qe(fe,Be):Be(fe))}},R.target==="ssr"?n==="build"&&(G.publicDir=!1,G.build.ssr=!0,s.build?.minify==null&&w==="production"&&(G.build.minify=!0)):R.target==="client"||(R.target==="lib"?(G.build.minify=!1,G.build.rollupOptions.external=[Ue,He,Ke,We,Ge,ne,re]):G.define={[Y]:!0,[le]:!0,[W]:!1}),globalThis.qDev=V,globalThis.qTest=!0,globalThis.qInspector=O}return G},async configResolved(s){if(o=s.base,!(o.startsWith("/")&&o.endsWith("/")))throw new Error("vite's config.base must begin and end with /");!!s.build.sourcemap&&e.optimizerOptions?.sourcemap===void 0&&v.setSourceMapSupport(!0),v.normalizeOptions(e)},async buildStart(){u.length=0;const s=this.resolve.bind(this);await v.validateSource(s),v.onDiagnostics((b,h,I)=>{b.forEach(w=>{const T=v.normalizePath(h.sys.path.join(I,w.file));w.category==="error"?this.error($e(T,w)):this.warn($e(T,w))})}),await v.buildStart(this)},resolveId(s,b,h){return s.startsWith("\0")||!x(s,"resolveId")?null:v.resolveId(this,s,b,h)},load(s,b){return s.startsWith("\0")||!x(s,"load")?null:(s=v.normalizePath(s),n==="serve"&&s.endsWith(re)?{code:"export const manifest = undefined;"}:v.load(this,s,b))},transform(s,b,h){return b.startsWith("\0")||!x(b,"transform")||b.includes("?raw")?null:v.transform(this,s,b,h)}},{name:"vite-plugin-qwik-post",enforce:"post",generateBundle:{order:"post",async handler(s,b){const h=v.getOptions();if(h.target==="client"){for(const[I,w]of Object.entries(b))if(w.type==="asset"){const T=o+I;if(Or.some(E=>I.endsWith(E)))typeof w.source=="string"&&w.source.length<h.inlineStylesUpToBytes?u.push({tag:"style",location:"head",attributes:{"data-src":T,dangerouslySetInnerHTML:w.source}}):u.push({tag:"link",location:"head",attributes:{rel:"stylesheet",href:T}});else{const E=Ur.find(P=>I.endsWith(P));E&&!S&&u.unshift({tag:"link",location:"head",attributes:{rel:"preload",href:T,as:"font",type:`font/${E.slice(1)}`,crossorigin:""}})}}await v.generateManifest(this,b,m,{injections:u,platform:{vite:""}})}}},async writeBundle(s,b){const h=v.getOptions();if(h.target==="ssr"){const I=v.getSys();if(I.env==="node"||I.env==="bun"){const w=Object.keys(b),T=async E=>{try{const P=I.path.basename(E),U=I.path.extname(P);if((P.startsWith("entry.")||P.startsWith("entry_"))&&!P.includes("preview")&&(U===".mjs"||U===".cjs")){const R=I.path.basename(P,U),H=`${R}.js`,Y=R+U;if(!w.some(W=>I.path.basename(W)===H)){const W=I.path.dirname(E),ee=await I.dynamicImport("node:fs"),V=I.path.join(h.outDir,W);await ee.promises.mkdir(V,{recursive:!0}),await ee.promises.writeFile(I.path.join(V,H),`export * from "./${Y}";`)}}}catch(P){console.error("patchModuleFormat",P)}};await Promise.all(w.map(T))}}},transformIndexHtml(){if(n==="serve")return jr(v.getOptions(),a)},configureServer(s){v.configureServer(s),(e?.devTools?.imageDevTools??!0)&&s.middlewares.use(Ir(v.getSys(),f,a))},configurePreviewServer(s){return async()=>{const b=v.getSys(),h=v.getPath();await qr(s.middlewares,t,b,h)}},handleHotUpdate(s){v.handleHotUpdate(s),s.modules.length&&s.server.hot.send({type:"full-reload"})},onLog(s,b){if(b.plugin=="vite-plugin-qwik"){const h=Br[s]||oe.White,I=(b.frame||"").split(`
195
- `).map(w=>(w.match(/^\s*\^\s*$/)?oe.BrightWhite:oe.BrightBlack)+w);return console[s](`${h}%s
196
- ${oe.BrightWhite}%s
197
- %s${oe.RESET}`,`[${b.plugin}](${s}): ${b.message}
198
- `,` ${b?.loc?.file}:${b?.loc?.line}:${b?.loc?.column}
194
+ `),e.use((i,r)=>{r.writeHead(400,{"Content-Type":"text/plain"}),r.end(n)})}const Lr=(e,n)=>{const i=[{tag:"style",children:qr,injectTo:"body"},{tag:"style",children:jr,injectTo:"body"},{tag:"script",attrs:{type:"module"},children:Pr,injectTo:"body"},{tag:"script",attrs:{type:"module"},children:Tr,injectTo:"body"}];if((e.devTools?.imageDevTools??!0)&&i.push({tag:"style",children:Dr,injectTo:"body"},{tag:"script",attrs:{type:"module"},children:Nr.replace("globalThis.__TEMPLATE__",JSON.stringify(Mr)),injectTo:"body"}),e.devTools?.clickToSource??!0){const r=e.devTools.clickToSource??[],o=new URL(n+"/","http://local.local").href;i.push({tag:"script",attrs:{type:"module"},children:Cr.replace("globalThis.__HOTKEYS__",JSON.stringify(r)).replace("globalThis.__SRC_DIR__",JSON.stringify(o)),injectTo:"body"})}return i},Ur=[$e,Qe,Ke,Re,"@builder.io/qwik","@builder.io/qwik/jsx-runtime","@builder.io/qwik/jsx-dev-runtime"],$r=[".css",".scss",".sass",".less",".styl",".stylus"],Rr=[".woff",".woff2",".ttf"];function Br(e={}){let n="serve",i=null,r=null,o="/",d=null,c,a=null,p=null,t=null;const x=e.fileFilter?(s,y)=>yt.test(s)||e.fileFilter(s,y):()=>!0,k=e.disableFontPreload??!1,u=[],w=gt(e.optimizerOptions),m=new Set;return[{name:"vite-plugin-qwik",enforce:"pre",api:{getOptimizer:()=>w.getOptimizer(),getOptions:()=>w.getOptions(),getManifest:()=>i,getRootDir:()=>w.getOptions().rootDir,getClientOutDir:()=>r,getClientPublicOutDir:()=>d,getAssetsDir:()=>c,registerBundleGraphAdder:s=>m.add(s),_oldDevSsrServer:()=>e.devSsrServer},async config(s,y){await w.init();const h=w.getPath();let I;s.build?.ssr||y.mode==="ssr"?I="ssr":y.mode==="lib"?I="lib":y.mode==="test"?I="test":I="client",n=y.command;let v;y.mode==="production"?v="production":y.mode==="development"?v="development":n==="build"&&I==="client"?v="production":v="development",w.debug(`vite config(), command: ${n}, env.mode: ${y.mode}`),n==="serve"?e.entryStrategy={type:"segment"}:I==="ssr"?e.entryStrategy={type:"hoist"}:I==="lib"&&(e.entryStrategy={type:"inline"});const T=I==="ssr"?typeof s.build?.ssr=="string"?s.build.ssr:e.ssr?.input:void 0,E=I==="client"?e.client?.input:void 0;let P=s.build?.rollupOptions?.input||E||T;P&&typeof P=="string"&&(P=[P]),c=s.build?.assetsDir;const U=I==="client"&&!!c&&c!=="_astro",j={target:I,buildMode:v,csr:e.csr,debug:e.debug,entryStrategy:e.entryStrategy,srcDir:e.srcDir,rootDir:s.root,tsconfigFileNames:e.tsconfigFileNames,resolveQwikBuild:!0,transformedModuleOutput:e.transformedModuleOutput,outDir:s.build?.outDir,ssrOutDir:e.ssr?.outDir||s.build?.outDir,clientOutDir:e.client?.outDir||(s.build?.ssr?void 0:s.build?.outDir),assetsDir:U?c:void 0,devTools:e.devTools,sourcemap:!!s.build?.sourcemap,lint:e.lint,experimental:e.experimental,input:P,manifestInput:e.ssr?.manifestInput,manifestOutput:e.client?.manifestOutput},R=await w.normalizeOptions(j);P||(P=R.input),i=R.manifestInput,a=R.srcDir,p=R.rootDir,e.csr||(r=R.clientOutDir,d=s.base?h.join(r,s.base):r,t=R.ssrOutDir);const H=v==="development",Y="globalThis.qDev",ce="globalThis.qTest",W="globalThis.qInspector",Z="globalThis.qSerialize",te=s?.define?.[Y]??H,je=s?.define?.[W]??H,L=s?.define?.[Z]??H,G={ssr:{noExternal:[$e,Re,Je,re]},envPrefix:["VITE_","PUBLIC_"],resolve:{dedupe:[...Ur],conditions:v==="production"&&I==="client"?["min"]:[],alias:{"@builder.io/qwik":"@qwik.dev/core","@builder.io/qwik/build":"@qwik.dev/core/build","@builder.io/qwik/server":"@qwik.dev/core/server","@builder.io/qwik/preloader":"@qwik.dev/core/preloader","@builder.io/qwik/jsx-runtime":"@qwik.dev/core/jsx-runtime","@builder.io/qwik/jsx-dev-runtime":"@qwik.dev/core/jsx-dev-runtime","@builder.io/qwik/optimizer":"@qwik.dev/core/optimizer","@builder.io/qwik/loader":"@qwik.dev/core/loader","@builder.io/qwik/backpatch":"@qwik.dev/core/backpatch","@builder.io/qwik/cli":"@qwik.dev/core/cli","@builder.io/qwik/testing":"@qwik.dev/core/testing"}},esbuild:n==="serve"?!1:{logLevel:"error",jsx:"automatic"},optimizeDeps:{exclude:[$e,Re,Je,Qe,Ke,re,oe,"@builder.io/qwik"],entries:P&&(typeof P=="string"?[P]:typeof P=="object"?Object.values(P):P)},build:{modulePreload:!1,dynamicImportVarsOptions:{exclude:[/./]},rollupOptions:{maxParallelFileOps:1,input:P}},define:{[Y]:te,[W]:je,[Z]:L,[ce]:JSON.stringify(process.env.NODE_ENV==="test")}};if(!e.csr){const Ae=I==="client"&&s.base?h.join(R.outDir,s.base):R.outDir;G.build.cssCodeSplit=!1,G.build.outDir=Ae;const Q=G.build.rollupOptions?.onwarn;G.build.rollupOptions={...G.build.rollupOptions,output:await xn(w,s.build?.rollupOptions?.output,U,Ae),preserveEntrySignatures:"exports-only",onwarn:(de,ze)=>{de.plugin==="typescript"&&de.message.includes("outputToFilesystem")||(Q?Q(de,ze):ze(de))}},R.target==="ssr"?n==="build"&&(G.publicDir=!1,G.build.ssr=!0,s.build?.minify==null&&v==="production"&&(G.build.minify=!0)):R.target==="client"||(R.target==="lib"?(G.build.minify=!1,G.build.rollupOptions.external=[$e,Re,Je,Qe,Ke,re,oe]):G.define={[Y]:!0,[ce]:!0,[W]:!1}),globalThis.qDev=te,globalThis.qTest=!0,globalThis.qInspector=je}return G},async configResolved(s){if(o=s.base,!(o.startsWith("/")&&o.endsWith("/")))throw new Error("vite's config.base must begin and end with /");!!s.build.sourcemap&&e.optimizerOptions?.sourcemap===void 0&&w.setSourceMapSupport(!0),w.normalizeOptions(e)},async buildStart(){u.length=0;const s=this.resolve.bind(this);await w.validateSource(s),w.onDiagnostics((y,h,I)=>{y.forEach(v=>{const T=w.normalizePath(h.sys.path.join(I,v.file));v.category==="error"?this.error(Be(T,v)):this.warn(Be(T,v))})}),await w.buildStart(this)},resolveId(s,y,h){const I=x(s,"resolveId");return ee(s)||!I?null:w.resolveId(this,s,y,h)},load(s,y){const h=x(s,"load");return ee(s)||!h?null:(s=w.normalizePath(s),n==="serve"&&s.endsWith(oe)?{code:"export const manifest = undefined;"}:w.load(this,s,y))},transform(s,y,h){const I=x(y,"transform"),v=y.includes("?raw");if(ee(y)||!I||v)return null;if(y.includes(".vite/deps/")&&s.slice(0,5e3).includes("qwik")&&/import[^\n]*qwik[^\n]*\n/.test(s)){const T=p&&y.startsWith(p)?y.slice(p.length):y;throw new Error(`
195
+ ==============
196
+ This dependency was pre-bundled by Vite, but it seems to use Qwik, which needs processing by the optimizer.
197
+ Please add the original modulename to the "optimizeDeps.exclude" array in your Vite config:
198
+ ${T}
199
+ ==============
200
+ `)}return w.transform(this,s,y,h)}},{name:"vite-plugin-qwik-post",enforce:"post",generateBundle:{order:"post",async handler(s,y){const h=w.getOptions();if(h.target==="client"){for(const[I,v]of Object.entries(y))if(v.type==="asset"){const T=o+I;if($r.some(E=>I.endsWith(E)))typeof v.source=="string"&&v.source.length<h.inlineStylesUpToBytes?u.push({tag:"style",location:"head",attributes:{"data-src":T,dangerouslySetInnerHTML:v.source}}):u.push({tag:"link",location:"head",attributes:{rel:"stylesheet",href:T}});else{const E=Rr.find(P=>I.endsWith(P));E&&!k&&u.unshift({tag:"link",location:"head",attributes:{rel:"preload",href:T,as:"font",type:`font/${E.slice(1)}`,crossorigin:""}})}}await w.generateManifest(this,y,m,{injections:u,platform:{vite:""}})}}},async writeBundle(s,y){const h=w.getOptions();if(h.target==="ssr"){const I=w.getSys();if(I.env==="node"||I.env==="bun"){const v=Object.keys(y),T=async E=>{try{const P=I.path.basename(E),U=I.path.extname(P);if((P.startsWith("entry.")||P.startsWith("entry_"))&&!P.includes("preview")&&(U===".mjs"||U===".cjs")){const R=I.path.basename(P,U),H=`${R}.js`,Y=R+U;if(!v.some(W=>I.path.basename(W)===H)){const W=I.path.dirname(E),Z=await I.dynamicImport("node:fs"),te=I.path.join(h.outDir,W);await Z.promises.mkdir(te,{recursive:!0}),await Z.promises.writeFile(I.path.join(te,H),`export * from "./${Y}";`)}}}catch(P){console.error("patchModuleFormat",P)}};await Promise.all(v.map(T))}}},transformIndexHtml(){if(n==="serve")return Lr(w.getOptions(),a)},configureServer(s){w.configureServer(s),(e?.devTools?.imageDevTools??!0)&&s.middlewares.use(Sr(w.getSys(),p,a))},configurePreviewServer(s){return async()=>{const y=w.getSys(),h=w.getPath();await Or(s.middlewares,t,y,h)}},handleHotUpdate(s){w.handleHotUpdate(s),s.modules.length&&s.server.hot.send({type:"full-reload"})},onLog(s,y){if(y.plugin=="vite-plugin-qwik"){const h=Ar[s]||ie.White,I=(y.frame||"").split(`
201
+ `).map(v=>(v.match(/^\s*\^\s*$/)?ie.BrightWhite:ie.BrightBlack)+v);return console[s](`${h}%s
202
+ ${ie.BrightWhite}%s
203
+ %s${ie.RESET}`,`[${y.plugin}](${s}): ${y.message}
204
+ `,` ${y?.loc?.file}:${y?.loc?.line}:${y?.loc?.column}
199
205
  `,` ${I.join(`
200
206
  `)}
201
- `),!1}}},Rr()]}async function Rr(){let e,n;try{e=await import("node:fs").then(a=>a.promises),n=await import("node:path")}catch{return}const i=new Set;let r;const o="@qwik-dev/core",d="@builder.io/qwik";async function c(a,f){for(;f;){const t=n.join(f,"node_modules",a,"package.json");try{await e.access(t);const S=await e.readFile(t,{encoding:"utf-8"}),u=JSON.parse(S);return!!(u.qwik||u.dependencies?.[o]||u.peerDependencies?.[o]||u.dependencies?.[d]||u.peerDependencies?.[d])}catch{}const x=n.dirname(f);if(x===f)break;f=x}return!1}return{name:"checkQwikExternals",enforce:"pre",configResolved:a=>{r=a.root},resolveId:{order:"pre",async handler(a,f,t){if(!t.ssr||/^([./]|node:|[^a-z])/.test(a)||i.has(a))return;const x=(a.startsWith("@")?a.split("/").slice(0,2).join("/"):a.split("/")[0]).split("?")[0];if(i.has(x))return;i.add(a),i.add(x);const S=await this.resolve(x,f,{...t,skipSelf:!0});if(S?.external&&await c(x,f?n.dirname(f):r))throw new Error(`
207
+ `),!1}}},Fr()]}async function Fr(){let e,n;try{e=await import("node:fs").then(a=>a.promises),n=await import("node:path")}catch{return}const i=new Set;let r;const o="@qwik-dev/core",d="@builder.io/qwik";async function c(a,p){for(;p;){const t=n.join(p,"node_modules",a,"package.json");try{await e.access(t);const k=await e.readFile(t,{encoding:"utf-8"}),u=JSON.parse(k);return!!(u.qwik||u.dependencies?.[o]||u.peerDependencies?.[o]||u.dependencies?.[d]||u.peerDependencies?.[d])}catch{}const x=n.dirname(p);if(x===p)break;p=x}return!1}return{name:"checkQwikExternals",enforce:"pre",configResolved:a=>{r=a.root},resolveId:{order:"pre",async handler(a,p,t){if(!t.ssr||/^([./]|node:|[^a-z])/.test(a)||i.has(a))return;const x=(a.startsWith("@")?a.split("/").slice(0,2).join("/"):a.split("/")[0]).split("?")[0];if(i.has(x))return;i.add(a),i.add(x);const k=await this.resolve(x,p,{...t,skipSelf:!0});if(k?.external&&await c(x,p?n.dirname(p):r))throw new Error(`
208
+ ==============
209
+ ${x} is being treated as an external dependency, but it should be included in the server bundle, because it uses Qwik and it needs to be processed by the optimizer.
210
+ Please add the package to "ssr.noExternal[]" as well as "optimizeDeps.exclude[]" in the Vite config.
202
211
  ==============
203
- ${x} is being treated as an external dependency, but it should be included in the server bundle, because it uses Qwik.
204
- Please add the package to "ssr.noExternal" in the Vite config.
205
- ==============`);if(x===a)return S}}}}const oe={Yellow:"\x1B[33m",Cyan:"\x1B[36m",White:"\x1B[37m",BrightBlack:"\x1B[90m",BrightWhite:"\x1B[97m",RESET:"\x1B[0m"},Br={warn:oe.Yellow,info:oe.Cyan,debug:oe.BrightBlack},Ar=void 0;return exports.createOptimizer=rt,exports.qwikRollup=bn,exports.qwikVite=$r,exports.symbolMapper=Ar,exports.versions=ue,J.exports})(typeof module=="object"&&module.exports?module:{exports:{}});
212
+ `);if(x===a)return k}}}}const ie={Yellow:"\x1B[33m",Cyan:"\x1B[36m",White:"\x1B[37m",BrightBlack:"\x1B[90m",BrightWhite:"\x1B[97m",RESET:"\x1B[0m"},Ar={warn:ie.Yellow,info:ie.Cyan,debug:ie.BrightBlack},zr=void 0;return exports.createOptimizer=ot,exports.qwikRollup=vn,exports.qwikVite=Br,exports.symbolMapper=zr,exports.versions=pe,J.exports})(typeof module=="object"&&module.exports?module:{exports:{}});
@@ -520,7 +520,7 @@ declare interface QwikVitePluginCommonOptions {
520
520
  * Predicate function to filter out files from the optimizer. hook for resolveId, load, and
521
521
  * transform
522
522
  */
523
- fileFilter?: (id: string, hook: string) => boolean;
523
+ fileFilter?: (id: string, hook: keyof Plugin_2) => boolean;
524
524
  /**
525
525
  * Run eslint on the source files for the ssr build or dev server. This can slow down startup on
526
526
  * large projects. Defaults to `true`