@stacksjs/stx 0.2.222 → 0.2.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtins/image-placeholder.d.ts +78 -0
- package/dist/builtins/image-placeholder.js +136 -0
- package/dist/builtins/stx-image.js +15 -4
- package/dist/chunk-05c6c4sf.js +2 -0
- package/dist/{chunk-nnw1ka45.js → chunk-0h08j951.js} +1 -1
- package/dist/{chunk-yppz6dgg.js → chunk-0n4fvqm8.js} +2 -2
- package/dist/{chunk-ceqzwfcq.js → chunk-0yw0x5qz.js} +1 -1
- package/dist/{chunk-qr90ng3a.js → chunk-21kvpnqq.js} +2 -2
- package/dist/chunk-23sgbe69.js +2 -0
- package/dist/chunk-2kdfa1sw.js +2 -0
- package/dist/chunk-2m9k26n4.js +2 -0
- package/dist/chunk-38dwv9n5.js +2 -0
- package/dist/{chunk-fm03jwb1.js → chunk-43hbdkws.js} +1 -1
- package/dist/{chunk-vg0kzfcy.js → chunk-47v621t0.js} +1 -1
- package/dist/{chunk-vaa8tk98.js → chunk-4jzzgnym.js} +2 -2
- package/dist/chunk-5e887teq.js +2 -0
- package/dist/{chunk-8awfakrk.js → chunk-5m9vyv2m.js} +1 -1
- package/dist/{chunk-gnmft4dz.js → chunk-5rynsy4e.js} +1 -1
- package/dist/{chunk-2bxgan9p.js → chunk-6345zcg6.js} +1 -1
- package/dist/{chunk-ansvb340.js → chunk-6jzf989m.js} +1 -1
- package/dist/{chunk-m86nzprx.js → chunk-6n317mmy.js} +2 -2
- package/dist/{chunk-ad84gwgv.js → chunk-6rjc6687.js} +1 -1
- package/dist/{chunk-4vhxtfkw.js → chunk-6t89bck2.js} +1 -1
- package/dist/{chunk-dykhpgyx.js → chunk-70v7vvry.js} +1 -1
- package/dist/{chunk-4k5f40bb.js → chunk-72ywcwe8.js} +1 -1
- package/dist/{chunk-ewdn7s6r.js → chunk-82qd7jw1.js} +1 -1
- package/dist/{chunk-zhfdf2h5.js → chunk-87q97btf.js} +1 -1
- package/dist/{chunk-02k0pg5s.js → chunk-8hnyynhv.js} +1 -1
- package/dist/{chunk-8rgd1mn9.js → chunk-9aewbe13.js} +1 -1
- package/dist/chunk-9vpqzs8r.js +3 -0
- package/dist/{chunk-135mme4g.js → chunk-a2ppgamd.js} +1 -1
- package/dist/{chunk-8j2v2hnc.js → chunk-a2yanhxh.js} +2 -2
- package/dist/{chunk-kwpvv59c.js → chunk-bqdbf8k2.js} +2 -2
- package/dist/{chunk-kvz7rg2x.js → chunk-by2p4by1.js} +1 -1
- package/dist/{chunk-vgf945mj.js → chunk-c38dqdqt.js} +1 -1
- package/dist/{chunk-szw6at2m.js → chunk-c4aez3fr.js} +2 -2
- package/dist/{chunk-bhz0py78.js → chunk-ctba9211.js} +1 -1
- package/dist/chunk-d1nk0neq.js +2 -0
- package/dist/chunk-d8efym0s.js +2 -0
- package/dist/{chunk-53d24qhh.js → chunk-dgy9fns1.js} +2 -2
- package/dist/{chunk-arnse15r.js → chunk-dmzc008f.js} +1 -1
- package/dist/{chunk-zg5mq1cj.js → chunk-dn4gw490.js} +1 -1
- package/dist/{chunk-j3mw2vpt.js → chunk-ds6jn0m1.js} +1 -1
- package/dist/chunk-dwb1yw05.js +2 -0
- package/dist/{chunk-7ryqex47.js → chunk-ectezqxn.js} +1 -1
- package/dist/chunk-ejm3bypm.js +2 -0
- package/dist/{chunk-m6damb1f.js → chunk-ep2agtrk.js} +1 -1
- package/dist/{chunk-efrv1yp5.js → chunk-exr6hs21.js} +1 -1
- package/dist/{chunk-7cqda8w2.js → chunk-f10yf8p0.js} +1 -1
- package/dist/{chunk-x0bcc9sj.js → chunk-ge69r310.js} +1 -1
- package/dist/chunk-gmj16etx.js +2 -0
- package/dist/chunk-grp2f3mq.js +2 -0
- package/dist/chunk-gw35w0wr.js +2 -0
- package/dist/{chunk-1rka3ffx.js → chunk-hm4gvkhg.js} +1 -1
- package/dist/chunk-hrdps19s.js +2 -0
- package/dist/{chunk-bg595da5.js → chunk-j3jzc0xj.js} +1 -1
- package/dist/{chunk-6vdn3qy0.js → chunk-j4v43wsq.js} +1 -1
- package/dist/chunk-jd68p7x1.js +2 -0
- package/dist/chunk-k2avxp56.js +2 -0
- package/dist/chunk-k7xpch16.js +2 -0
- package/dist/{chunk-pbyxj0zr.js → chunk-kq4z185m.js} +168 -168
- package/dist/{chunk-2v1cj2qp.js → chunk-m0sgdvnk.js} +1 -1
- package/dist/chunk-m0xtfsd4.js +2 -0
- package/dist/chunk-m1sqpnkq.js +2 -0
- package/dist/chunk-m29rat2r.js +2 -0
- package/dist/{chunk-xrnqz76v.js → chunk-mjv4ar2y.js} +1 -1
- package/dist/{chunk-ry86fd41.js → chunk-myh6j9ab.js} +1 -1
- package/dist/{chunk-s6yn1mbm.js → chunk-n3ggrhb3.js} +1 -1
- package/dist/{chunk-mt4cdgz3.js → chunk-n3w7xxx7.js} +1 -1
- package/dist/{chunk-egpmwqas.js → chunk-n43xg568.js} +2 -2
- package/dist/{chunk-td2et1ek.js → chunk-n58aem37.js} +1 -1
- package/dist/{chunk-06f65jz3.js → chunk-nf4tx374.js} +1 -1
- package/dist/{chunk-z794cdmn.js → chunk-njc6sven.js} +1 -1
- package/dist/{chunk-6b0xz02h.js → chunk-nstqd54d.js} +1 -1
- package/dist/{chunk-bx766t25.js → chunk-nx5qkm8k.js} +1 -1
- package/dist/{chunk-rpyck7kn.js → chunk-p3h8z1zx.js} +1 -1
- package/dist/chunk-p799ret6.js +12 -0
- package/dist/chunk-p7rde9hp.js +2 -0
- package/dist/chunk-pm23gcqm.js +2 -0
- package/dist/chunk-pt1bcewc.js +2 -0
- package/dist/{chunk-8rn5e39c.js → chunk-q891e1vj.js} +1 -1
- package/dist/chunk-qbp1yp4a.js +2 -0
- package/dist/{chunk-v7ggp28p.js → chunk-qn2hsdy5.js} +1 -1
- package/dist/{chunk-bz9z4pfr.js → chunk-qrpg15eb.js} +1 -1
- package/dist/{chunk-j51tsstz.js → chunk-r93rb19w.js} +1 -1
- package/dist/{chunk-hcqzbhc1.js → chunk-rhkwswq0.js} +1 -1
- package/dist/chunk-rmwbw8fw.js +2 -0
- package/dist/{chunk-m8kn995q.js → chunk-sm1xqvra.js} +2 -2
- package/dist/{chunk-80qre9zp.js → chunk-t0jzk81v.js} +1 -1
- package/dist/chunk-t0ybs2jy.js +2 -0
- package/dist/chunk-t2c96p0g.js +2 -0
- package/dist/chunk-tbyaz9ff.js +2 -0
- package/dist/{chunk-txre2e2m.js → chunk-tdt7b8kg.js} +1 -1
- package/dist/{chunk-pd8cce9a.js → chunk-tjb64c7k.js} +12 -12
- package/dist/{chunk-dbvvgvwk.js → chunk-v7vwmmts.js} +2 -2
- package/dist/{chunk-8ha8h3s1.js → chunk-vqxmxgaj.js} +1 -1
- package/dist/{chunk-4thj960e.js → chunk-vrpqmd6b.js} +1 -1
- package/dist/{chunk-1gy7fa09.js → chunk-vs7843yp.js} +1 -1
- package/dist/{chunk-hg2ja2gj.js → chunk-vwwn4h5j.js} +1 -1
- package/dist/{chunk-w7ped5p5.js → chunk-w6h9c3f6.js} +1 -1
- package/dist/chunk-wkmd8pfh.js +2 -0
- package/dist/chunk-wyy4ny3x.js +2 -0
- package/dist/{chunk-3s3zyq5q.js → chunk-x8w319bf.js} +1 -1
- package/dist/{chunk-cc6b6cvn.js → chunk-y494rjex.js} +2 -2
- package/dist/{chunk-yf4p02wy.js → chunk-ypjgcb5w.js} +2 -2
- package/dist/{chunk-ydk1n77q.js → chunk-ytr18qnm.js} +2 -2
- package/dist/{chunk-rbnmbeda.js → chunk-z44ra321.js} +1 -1
- package/dist/{chunk-0k12epgy.js → chunk-z4msg4y0.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +7 -0
- package/dist/pwa.js +2 -2
- package/dist/ssg.js +14 -14
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-24271vkv.js +0 -12
- package/dist/chunk-2gwfcgct.js +0 -2
- package/dist/chunk-409jrxj6.js +0 -2
- package/dist/chunk-4a01b3qp.js +0 -2
- package/dist/chunk-67b47fez.js +0 -2
- package/dist/chunk-735atsqq.js +0 -2
- package/dist/chunk-749d2abw.js +0 -2
- package/dist/chunk-7ggk2vmy.js +0 -2
- package/dist/chunk-7jhtvcy5.js +0 -2
- package/dist/chunk-7tzyw85k.js +0 -2
- package/dist/chunk-85yfwhdx.js +0 -2
- package/dist/chunk-98a8ma06.js +0 -2
- package/dist/chunk-epep418h.js +0 -2
- package/dist/chunk-et555kdz.js +0 -2
- package/dist/chunk-etnqfdcj.js +0 -2
- package/dist/chunk-fqrfhf6n.js +0 -2
- package/dist/chunk-ftdysk1n.js +0 -2
- package/dist/chunk-gyf7n2as.js +0 -2
- package/dist/chunk-h7xtn6j0.js +0 -2
- package/dist/chunk-hh2r7hrb.js +0 -2
- package/dist/chunk-hysfnyh4.js +0 -2
- package/dist/chunk-hzj77qay.js +0 -2
- package/dist/chunk-j8dg655g.js +0 -2
- package/dist/chunk-jvxc59g1.js +0 -2
- package/dist/chunk-qpm1px64.js +0 -2
- package/dist/chunk-rmyrzcac.js +0 -2
- package/dist/chunk-s0perkbz.js +0 -2
- package/dist/chunk-s8x2n1p6.js +0 -2
- package/dist/chunk-zztd93sa.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fl as _,gl as h}from"./chunk-ncvd7673.js";import{$r as p,Ol as g}from"./chunk-
|
|
2
|
+
import{fl as _,gl as h}from"./chunk-ncvd7673.js";import{$r as p,Ol as g}from"./chunk-kq4z185m.js";import{gt as N}from"./chunk-t0jzk81v.js";import W from"path";import q from"fs";var l=5,u=1;function t(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function L(...J){if(t())console.log("[stx:bundler]",...J)}var D=[];function v(J,K,$){D.push({filePath:J||"<inline>",message:K,details:$})}function Yz(){return D.slice()}function Zz(){D.length=0}var F;function $z(J){F=J}function b(){if(F)return F;try{let J=p.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var f=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function wz(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let M=$[1];if(!f.some((z)=>z.test(M)))return L("detected user import:",M),!0}let Q=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=Q.exec(J))!==null){let M=$[1];if(/\.css(?:\?.*)?$/.test(M))continue;if(!f.some((z)=>z.test(M)))return L("detected side-effect import:",M),!0}return!1}function i(J,K,$,Q){let M=(Z,z)=>{let G=Z===$?K:W.dirname(Z),Y=W.resolve(G,z),H=[Y,`${Y}.ts`,`${Y}.tsx`,`${Y}.js`,`${Y}.mjs`,`${Y}.jsx`,W.join(Y,"index.ts"),W.join(Y,"index.tsx"),W.join(Y,"index.js"),W.join(Y,"index.mjs")];for(let j of H)try{if(q.existsSync(j)&&q.statSync(j,{throwIfNoEntry:!1})?.isFile())return j}catch{}return Y};return{name:"stx-client-bundle",setup(Z){Z.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^\//},(z)=>{if(q.existsSync(z.path))return{path:z.path};return{path:z.path,external:!0}}),Z.onResolve({filter:/^\.\.?\//},(z)=>{let G=M(z.importer,z.path);return Q.add(G),{path:G}}),Z.onResolve({filter:/^[@~]\//},(z)=>{let G=W.resolve(J,z.path.slice(2)),Y=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,W.join(G,"index.ts"),W.join(G,"index.tsx"),W.join(G,"index.js"),W.join(G,"index.mjs")];for(let H of Y)if(q.existsSync(H)&&q.statSync(H,{throwIfNoEntry:!1})?.isFile())return L(`resolved ${z.path[0]}/ import:`,z.path,"\u2192",H),Q.add(H),{path:H};return console.warn(`[stx:bundler] could not resolve ${z.path[0]}/ import:`,z.path),{path:G}}),Z.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(z)=>{let G=W.extname(z.path).toLowerCase(),Y=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(z.path!==$)Q.add(z.path);return{contents:q.readFileSync(z.path,"utf8"),loader:Y}})}}}var R=new Map,m=Symbol.for("stx.client-bundle-build-queue");function s(J){let K=globalThis,Q=(K[m]??Promise.resolve()).then(J,J);return K[m]=Q.then(()=>{return},()=>{return}),Q}async function Qz(J,K,$={}){let Q=$.projectRoot||process.cwd(),M=$.minify??!1,Z=$.cacheDir||N(Q,"bundle-cache"),z=new Bun.CryptoHasher("md5");z.update(`${l}\x00${J}\x00${K}`);let G=z.digest("hex").slice(0,12),Y=W.join(Z,`${G}.js`),H=W.join(Z,`${G}.deps.json`),j=Bun.file(Y);if(await j.exists()){let V=Bun.file(H),k=!0;if(await V.exists())try{let T=JSON.parse(await V.text());if(T.metadataVersion!==u||!Array.isArray(T.files))k=!1;for(let S of Array.isArray(T.files)?T.files:[])try{if(q.statSync(S.path).mtimeMs!==S.mtimeMs){k=!1;break}}catch{k=!1;break}}catch{k=!1}if(k)return L("cache hit:",G),await j.text();L("cache invalidated by dep change:",G)}let y=R.get(G);if(y)return await y;let x=s(()=>a(J,K,{projectRoot:Q,minify:M,cacheDir:Z,hash:G,cachePath:Y,depsPath:H}));R.set(G,x);try{return await x}finally{R.delete(G)}}async function a(J,K,$){let{projectRoot:Q,minify:M,cacheDir:Z,hash:z,cachePath:G,depsPath:Y}=$,H=N(Q,"bundle-tmp"),j=W.join(H,`${z}.ts`),y=W.join(H,"out",z);q.mkdirSync(H,{recursive:!0}),q.mkdirSync(y,{recursive:!0});let x=W.dirname(K),V=[],k=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,T=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,S;while((S=k.exec(J))!==null){if(S[1])continue;if(S[2])S[2].split(",").forEach((I)=>{let X=I.split(":")[0].trim();if(X)V.push(X)});else if(S[3])V.push(S[3])}while((S=T.exec(J))!==null){if(S[1])continue;V.push(S[2])}let B=V.length>0?`
|
|
3
3
|
export { ${V.join(", ")} }`:"";await Bun.write(j,J+B),L("bundling:",z,"from:",W.basename(K));let P=new Set;try{let I=await Bun.build({entrypoints:[j],outdir:y,target:"browser",format:"esm",minify:M,plugins:[i(Q,x,j,P)],define:{"process.env.NODE_ENV":M?'"production"':'"development"',...g()},root:Q});if(!I.success){let U=I.logs.filter((C)=>C.level==="error").map((C)=>C.message).join(", ")||`Unable to bundle ${W.basename(K)}`,A=_(I.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",U),v(K||"",U,A),b()==="error")throw Error(U);return J}let X="";for(let w of I.outputs){X=await w.text();break}let O=[];for(let w of X.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let U of w[1].split(",")){let A=U.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(A){O.push([A[2],A[1]]);continue}let C=U.trim();if(/^[A-Za-z_$][\w$]*$/.test(C))O.push([C,C])}let c=X.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];X=X.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let E=`__stxBundle_${z}`,n=O.map(([w,U])=>`${JSON.stringify(w)}: ${U}`).join(", "),o=O.map(([w])=>`var ${w} = undefined;`).join(`
|
|
4
4
|
`),r=O.map(([w])=>`${w} = ${E}[${JSON.stringify(w)}];`).join(`
|
|
5
5
|
`);if(X=`${c.join(`
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Eu as C}from"./chunk-q891e1vj.js";import Z from"fs";import _ from"path";var E=new Set([".jpg",".jpeg",".png",".webp",".avif"]),V=new Map,Y=!1;function x(j){if(!j)return;let k=j.split("?")[0].split("#")[0];return V.get(k)}function n(){return Y}function w(){V.clear(),Y=!1}function y(j,k){V.set(j,k),Y=!0}function S(j){let k=0,F=0,J=0,z=0;for(let q=0;q<j.length;q+=4)k+=j[q],F+=j[q+1],J+=j[q+2],z++;if(z===0)return"#e5e7eb";let H=(q)=>Math.round(q/z).toString(16).padStart(2,"0");return`#${H(k)}${H(F)}${H(J)}`}function U(j,k,F,J=4,z=3){let H=[];for(let q=0;q<z;q++)for(let K=0;K<J;K++){let M=Math.floor(K*k/J),W=Math.max(M+1,Math.floor((K+1)*k/J)),$=Math.floor(q*F/z),L=Math.max($+1,Math.floor((q+1)*F/z)),Q=0,A=0,B=0,O=0;for(let R=$;R<L;R++)for(let T=M;T<W;T++){let X=(R*k+T)*4;Q+=j[X],A+=j[X+1],B+=j[X+2],O++}let G=(R)=>Math.round(R/O).toString(16).padStart(2,"0");H.push(`<rect x="${K}" y="${q}" width="1" height="1" fill="#${G(Q)}${G(A)}${G(B)}"/>`)}return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${J} ${z}" preserveAspectRatio="none"><filter id="b"><feGaussianBlur stdDeviation=".6"/></filter><g filter="url(#b)">${H.join("")}</g></svg>`}function I(j){return`data:image/svg+xml;base64,${Buffer.from(j,"utf8").toString("base64")}`}function v(j){try{return JSON.parse(Z.readFileSync(j,"utf8"))}catch{return{}}}function D(j,k){try{Z.mkdirSync(_.dirname(j),{recursive:!0}),Z.writeFileSync(j,JSON.stringify(k))}catch{}}function N(j,k,F=[]){let J;try{J=Z.readdirSync(j,{withFileTypes:!0})}catch{return F}for(let z of J){let H=_.join(j,z.name);if(z.isDirectory()){N(H,`${k}/${z.name}`,F);continue}if(!E.has(_.extname(z.name).toLowerCase()))continue;F.push([`${k}/${z.name}`,H])}return F}async function P(j,k={}){let{cachePath:F,maxBytes:J=33554432,limit:z=2000}=k;if(!j||!Z.existsSync(j))return Y=!0,V.size;let H;try{H=await import("ts-images")}catch{return Y=!0,V.size}let q=F?v(F):{},K=!1,M=N(j,"").slice(0,z);if(await Promise.all(M.map(async([W,$])=>{let L;try{L=Z.statSync($)}catch{return}if(L.size>J)return;let Q=q[W];if(Q&&Q.mtimeMs===L.mtimeMs&&Q.size===L.size){V.set(W,{dataUrl:Q.dataUrl,color:Q.color});return}try{let{hash:A}=await H.generateThumbHash($);if(!A)return;let{rgba:B,w:O,h:G}=H.thumbHashToRGBA(A),R={dataUrl:I(U(B,O,G)),color:S(B)};V.set(W,R),q[W]={mtimeMs:L.mtimeMs,size:L.size,...R},K=!0}catch{}})),F&&K)D(F,q);return Y=!0,V.size}
|
|
3
|
+
export{x as Xs,n as Ys,w as Zs,y as _s,U as $s,I as at,P as bt};
|
|
@@ -144,4 +144,4 @@ var N=new Map,Q=new Map;function T(A){if(N.set(A.name,A),A.client)Q.set(A.name,A
|
|
|
144
144
|
console.log('[stx] Directive runtime initialized');
|
|
145
145
|
})();
|
|
146
146
|
`}function $(A){let B=/v-(\w+)(?::(\w+))?(?:\.([\w.]+))?="([^"]*)"/g;return A.replace(B,(C,F,H,L,J)=>{let E=(L?L.split("."):[]).reduce((M,S)=>{return M[S]=!0,M},{});return`data-stx-directive="${F}:${J}" data-stx-directive-arg="${H||""}" data-stx-directive-modifiers='${JSON.stringify(E)}'`})}
|
|
147
|
-
export{T as
|
|
147
|
+
export{T as us,V as vs,W as ws,X as xs,G as ys,Y as zs,Z as As,_ as Bs,$ as Cs};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
`)}function s(G){return typeof G==="object"&&G!==null&&!Array.isArray(G)}function g(G,q){let Q={...G};for(let[J,Y]of Object.entries(q))Q[J]=s(Y)&&s(Q[J])?g(Q[J],Y):Y;return Q}function e(G={},q={}){let Q=G.theme||{},J=q.theme||{},{extend:Y,...Z}=J,{extend:U,...z}=Q,X=z.colors||{};z.colors={...X,...o(X)};let A=g(z,Z),L=g(U||{},Y||{});if(Object.keys(L).length>0)A.extend=L;let H=[...G.safelist||[],...q.safelist||[]],E={...G.shortcuts||{},...q.shortcuts||{}},P=[...G.preflights||[],...q.preflights||[]];return{config:{...G,...q,theme:A,safelist:H,shortcuts:E,...P.length>0?{preflights:P}:{},content:[],output:""},safelist:H,shortcuts:E,includePreflight:q.preflight!==!1,minify:q.minify===!0,tokenCSS:t(X)}}var W={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bgGray:"\x1B[100m"};var F=null,C=!1,_=null,b="",K=!1,Qq=256,V=new Map,O=new Map,j=null,d=null;function S(G){return Bun.hash(G).toString(16).padStart(16,"0").slice(0,16)}function u(G,q){if(V.has(G))V.delete(G);else if(V.size>=Qq)V.delete(V.keys().next().value);V.set(G,q)}function Wq(G){let q=S(G);if(O.has(q))O.delete(q);else if(O.size>=Qq)O.delete(O.keys().next().value);return O.set(q,G),q}function Dq(G){let q=O.get(G);if(q===void 0)return;return O.delete(G),O.set(G,q),q}async function Xq(G){if(!j)return null;try{let q=Bun.file($.join(j,`cw-${S(G)}.css`));if(!await q.exists())return null;return await q.text()}catch{return null}}async function zq(G,q){if(!j)return;try{if(!fs.existsSync(j))fs.mkdirSync(j,{recursive:!0});await Bun.write($.join(j,`cw-${S(G)}.css`),q)}catch{}}async function qq(G){try{let q=await import(G);if(q&&q.CSSGenerator)return{CSSGenerator:q.CSSGenerator,config:q.config,build:q.build,defaultConfig:q.defaultConfig,extractClasses:q.extractClasses}}catch{}return null}function Iq(){let G=[],q=process.cwd();while(q!==$.dirname(q))G.push($.join(q,"node_modules","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"node_modules","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"pantry","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"pantry","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"node_modules","@stacksjs","crosswind","dist","index.js")),G.push($.join(q,"pantry","@stacksjs","crosswind","dist","index.js")),q=$.dirname(q);return G}function Oq(){let G=[],q=process.env.HOME||process.env.USERPROFILE||"";if(q){let Q=[$.join(q,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),$.join(q,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];G.push(...Q)}return G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),G}async function Yq(){if(C)return F;C=!0;try{let G=async(Y)=>{for(let Z of Y){if(!await Bun.file(Z).exists())continue;let U=await qq(Z);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded from ${$.dirname($.dirname(Z))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Y=$.resolve(process.env.CROSSWIND_SRC),Z=await G([Y]);if(!Z)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Y}`);return F=Z,F}let q=await G(Iq());if(q)return F=q,F;let Q=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Y of Q){let Z=await qq(Y);if(Z){if(F=Z,!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded`);return F}}let J=await G(Oq());if(J)return F=J,F;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${W.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${W.reset}`),console.warn(`${W.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${W.reset}`),null}}function Sq(){V.clear(),O.clear()}function xq(){F=null,C=!1,_=null,b="",V.clear(),O.clear(),d=null}async function Zq(G){try{if(!Uq({name:"crosswind",cwd:G}))return null;let{loadConfigWithResult:q}=await import("bunfig"),Q=await q({name:"crosswind",cwd:G,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Q?.path||!Q.config||Object.keys(Q.config).length===0)return null;let J=$.relative(G,Q.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} Loaded config from ${J||Q.path}`);return Q.config}catch(q){if(q instanceof Error&&q.name==="ConfigNotFoundError")return null;return console.warn(`${W.yellow}[Crosswind]${W.reset} Failed to load crosswind config:`,q instanceof Error?q.message:q),null}}async function _q(G){let q=null;try{let{loadStxConfig:Q}=await import("./chunk-
|
|
2
|
+
import{gt as Jq}from"./chunk-t0jzk81v.js";import{Eu as Gq}from"./chunk-q891e1vj.js";import $ from"path";import{hasLocalConfig as Uq}from"bunfig";var a={fg:{light:"gray-900",dark:"gray-100",description:"Primary text"},"fg-strong":{light:"gray-700",dark:"gray-300",description:"Labels, secondary headings"},"fg-muted":{light:"gray-600",dark:"gray-400",description:"Supporting text"},"fg-soft":{light:"gray-500",dark:"gray-400",description:"De-emphasised text"},"fg-subtle":{light:"gray-400",dark:"gray-500",description:"Placeholders, disabled text"},surface:{light:"gray-50",dark:"gray-800",description:"Page and panel background"},"surface-raised":{light:"gray-100",dark:"gray-700",description:"Cards, popovers"},"surface-sunken":{light:"gray-200",dark:"gray-700",description:"Wells, track backgrounds"},line:{light:"gray-200",dark:"gray-700",description:"Default border, divider"},"line-strong":{light:"gray-300",dark:"gray-600",description:"Input border, focus ring track"},accent:{light:"indigo-600",dark:"indigo-400",description:"Primary action, selected state"},info:{light:"blue-600",dark:"blue-400",description:"Informational emphasis, links"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-500",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"indigo-600",dark:"indigo-500",description:"Primary button fill"},"info-solid":{light:"blue-600",dark:"blue-500",description:"Informational fill"},"danger-solid":{light:"red-600",dark:"red-500",description:"Destructive button fill"},"success-solid":{light:"green-600",dark:"green-500",description:"Confirmation fill"}};function m(G){return`--stx-${G}`}function p(G,q){let Q=q.lastIndexOf("-");if(Q===-1)return typeof G[q]==="string"?G[q]:void 0;let J=G[q.slice(0,Q)];if(!J||typeof J!=="object")return;let Y=J[q.slice(Q+1)];return typeof Y==="string"?Y:void 0}function o(G){let q={};for(let[Q,J]of Object.entries(a)){let Y=p(G,J.light);if(Y===void 0)continue;q[Q]=`var(${m(Q)}, ${Y})`}return q}function t(G){let q=[],Q=[];for(let[J,Y]of Object.entries(a)){let Z=p(G,Y.light),U=p(G,Y.dark);if(Z===void 0)continue;if(q.push(` ${m(J)}: ${Z};`),U!==void 0)Q.push(` ${m(J)}: ${U};`)}if(q.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...q,"}",".dark {",...Q,"}",""].join(`
|
|
3
|
+
`)}function s(G){return typeof G==="object"&&G!==null&&!Array.isArray(G)}function g(G,q){let Q={...G};for(let[J,Y]of Object.entries(q))Q[J]=s(Y)&&s(Q[J])?g(Q[J],Y):Y;return Q}function e(G={},q={}){let Q=G.theme||{},J=q.theme||{},{extend:Y,...Z}=J,{extend:U,...z}=Q,X=z.colors||{};z.colors={...X,...o(X)};let A=g(z,Z),L=g(U||{},Y||{});if(Object.keys(L).length>0)A.extend=L;let H=[...G.safelist||[],...q.safelist||[]],E={...G.shortcuts||{},...q.shortcuts||{}},P=[...G.preflights||[],...q.preflights||[]];return{config:{...G,...q,theme:A,safelist:H,shortcuts:E,...P.length>0?{preflights:P}:{},content:[],output:""},safelist:H,shortcuts:E,includePreflight:q.preflight!==!1,minify:q.minify===!0,tokenCSS:t(X)}}var W={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bgGray:"\x1B[100m"};var F=null,C=!1,_=null,b="",K=!1,Qq=256,V=new Map,O=new Map,j=null,d=null;function S(G){return Bun.hash(G).toString(16).padStart(16,"0").slice(0,16)}function u(G,q){if(V.has(G))V.delete(G);else if(V.size>=Qq)V.delete(V.keys().next().value);V.set(G,q)}function Wq(G){let q=S(G);if(O.has(q))O.delete(q);else if(O.size>=Qq)O.delete(O.keys().next().value);return O.set(q,G),q}function Dq(G){let q=O.get(G);if(q===void 0)return;return O.delete(G),O.set(G,q),q}async function Xq(G){if(!j)return null;try{let q=Bun.file($.join(j,`cw-${S(G)}.css`));if(!await q.exists())return null;return await q.text()}catch{return null}}async function zq(G,q){if(!j)return;try{if(!fs.existsSync(j))fs.mkdirSync(j,{recursive:!0});await Bun.write($.join(j,`cw-${S(G)}.css`),q)}catch{}}async function qq(G){try{let q=await import(G);if(q&&q.CSSGenerator)return{CSSGenerator:q.CSSGenerator,config:q.config,build:q.build,defaultConfig:q.defaultConfig,extractClasses:q.extractClasses}}catch{}return null}function Iq(){let G=[],q=process.cwd();while(q!==$.dirname(q))G.push($.join(q,"node_modules","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"node_modules","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"pantry","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"pantry","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"node_modules","@stacksjs","crosswind","dist","index.js")),G.push($.join(q,"pantry","@stacksjs","crosswind","dist","index.js")),q=$.dirname(q);return G}function Oq(){let G=[],q=process.env.HOME||process.env.USERPROFILE||"";if(q){let Q=[$.join(q,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),$.join(q,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];G.push(...Q)}return G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),G}async function Yq(){if(C)return F;C=!0;try{let G=async(Y)=>{for(let Z of Y){if(!await Bun.file(Z).exists())continue;let U=await qq(Z);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded from ${$.dirname($.dirname(Z))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Y=$.resolve(process.env.CROSSWIND_SRC),Z=await G([Y]);if(!Z)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Y}`);return F=Z,F}let q=await G(Iq());if(q)return F=q,F;let Q=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Y of Q){let Z=await qq(Y);if(Z){if(F=Z,!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded`);return F}}let J=await G(Oq());if(J)return F=J,F;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${W.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${W.reset}`),console.warn(`${W.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${W.reset}`),null}}function Sq(){V.clear(),O.clear()}function xq(){F=null,C=!1,_=null,b="",V.clear(),O.clear(),d=null}async function Zq(G){try{if(!Uq({name:"crosswind",cwd:G}))return null;let{loadConfigWithResult:q}=await import("bunfig"),Q=await q({name:"crosswind",cwd:G,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Q?.path||!Q.config||Object.keys(Q.config).length===0)return null;let J=$.relative(G,Q.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} Loaded config from ${J||Q.path}`);return Q.config}catch(q){if(q instanceof Error&&q.name==="ConfigNotFoundError")return null;return console.warn(`${W.yellow}[Crosswind]${W.reset} Failed to load crosswind config:`,q instanceof Error?q.message:q),null}}async function _q(G){let q=null;try{let{loadStxConfig:Q}=await import("./chunk-gw35w0wr.js"),J=await Q(G);if(J.css)if(typeof J.css==="string"){let Y=$.isAbsolute(J.css)?J.css:$.resolve(G,J.css);if(await Bun.file(Y).exists()){let Z=await import(Y);q=Z.default||Z,console.log(`${W.green}[Crosswind]${W.reset} Loaded config from stx.config.ts \u2192 ${J.css}`)}}else{if(q={...J.css,content:J.css.content||[],preflight:J.css.preflight??!0,minify:J.css.minify??!1},J.css.config){let Y=$.isAbsolute(J.css.config)?J.css.config:$.resolve(G,J.css.config);if(await Bun.file(Y).exists()){let Z=await import(Y);q={...Z.default||Z,...q}}}console.log(`${W.green}[Crosswind]${W.reset} Using inline CSS config from stx.config.ts`)}}catch{}return q||await Zq(G)}function Fq(G){try{let q=new WeakSet;return S(JSON.stringify(G??{},(Q,J)=>{if(typeof J==="function")return`[fn]${String(J)}`;if(typeof J==="object"&&J!==null){if(q.has(J))return"[circular]";q.add(J)}return J})??"")}catch{return"unhashable"}}async function Nq(G){if(K)return b;K=!0;try{let q=await Yq();if(!q||!q.build)return K=!1,"";if(!_)_=await Zq(G);if(!_)return K=!1,"";let Q=q.defaultConfig?.theme||{},J=_.theme||{},Y={...q.defaultConfig,..._,theme:{...Q,...J,extend:{...Q.extend||{},...J.extend||{}}}},Z=performance.now(),U=await q.build(Y),z=performance.now()-Z;if(b=U.css,console.log(`${W.cyan}[Crosswind]${W.reset} Built ${U.classes.size} classes in ${z.toFixed(1)}ms`),Y.output){let X=$.isAbsolute(Y.output)?Y.output:$.join(G,Y.output),A=$.dirname(X);if(!fs.existsSync(A))fs.mkdirSync(A,{recursive:!0});await Bun.write(X,U.css)}return K=!1,U.css}catch(q){return console.error(`${W.red}[Crosswind]${W.reset} Build error:`,q),K=!1,b}}async function kq(G){_=null,await Nq(G)}function wq(){return b}function Vq(G){let q=new Set,Q=/class\s*=\s*["']([^"']+)["']/gi,J=Q.exec(G);while(J!==null){for(let U of J[1].split(/\s+/))if(U.trim())q.add(U.trim());J=Q.exec(G)}let Y=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,Z=Y.exec(G);while(Z!==null){let U=Z[1].match(/'([^']+)'/g);if(U){for(let z of U)for(let X of z.slice(1,-1).split(/\s+/))if(X.trim())q.add(X.trim())}Z=Y.exec(G)}return q}async function jq(G,q){try{let Q=await Yq();if(!Q)return"";let J=typeof Q.extractClasses==="function"?Q.extractClasses(G):Vq(G);if(J.size===0)return"";let Y=q?$.resolve(q):process.cwd();if(!j)j=Jq(Y,"cache");let Z=[...J].sort().join(" "),U=`${d||"default"}::${Z}`,z=V.get(U);if(z!==void 0)return u(U,z),z;let X=await Xq(U);if(X!==null)return u(U,X),X;if(!_)_=await _q(Y),d=Fq(_);let A=Q.defaultConfig||Q.config,L=_||{},H=e(A,L),{safelist:E,includePreflight:P,minify:x,tokenCSS:$q}=H,h=H.config,R=new Q.CSSGenerator(h);for(let I of E)R.generate(I);for(let I of J)R.generate(I);let N=R.toCSS(P,x),i=h.shortcuts||L.shortcuts||{};for(let[I,k]of Object.entries(i)){if(!J.has(I)&&!E.includes(I))continue;let w=k.split(/\s+/).filter(Boolean);for(let T of w)R.generate(T)}N=R.toCSS(P,x);let B=N.split(`
|
|
4
4
|
`);for(let[I,k]of Object.entries(i)){if(!J.has(I)&&!E.includes(I))continue;let w=k.split(/\s+/).filter(Boolean),T=[],y=[];for(let v of w){let c=v.startsWith("dark:"),n=`.${(c?v.slice(5):v).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let M=0;M<B.length;M++){let l=B[M].trim();if(l===`${n} {`||l.startsWith(`${n} {`)){let D=M,r="";while(D<B.length){if(r+=B[D],B[D].includes("}"))break;D++}let f=r.match(/\{([^}]+)\}/);if(f)if(c)y.push(f[1].trim());else T.push(f[1].trim());break}}}if(T.length)N+=`
|
|
5
5
|
.${I} { ${T.join(" ")} }`;if(y.length)N+=`
|
|
6
6
|
@media (prefers-color-scheme: dark) { .dark .${I} { ${y.join(" ")} } }`}return N=$q+N,u(U,N),zq(U,N),N}catch(Q){return console.warn("Failed to generate Crosswind CSS:",Q),""}}async function yq(G,q,Q=!1){let J=await jq(G,q);if(!J)return G;let Y=Q?`<link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.${Wq(J)}.css">`:`<style data-crosswind="generated">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Cu as Ae,Du as u}from"./chunk-q891e1vj.js";function _(e){return e.split(/[\\/]/).filter(Boolean).slice(0,-1).some((a)=>m.includes(a))}function g(e){return _(e.replace(/^\//,""))}var m;var b=u(()=>{m=["components","layouts","partials","emails"]});import d from"fs";import y from"path";function x(e,t){let a=e.filter((o)=>!g(o.pattern)),r=["// Auto-generated by STX - do not edit"];if(a.length===0)r.push("// No page routes found \u2014 route paths stay typed as string.","export {}","");else{r.push("declare module '@stacksjs/stx' {"," interface KnownRoutes {");for(let o of a){let s=[];for(let c of o.params){let f=o.pattern.includes(`:${c}?`)?"?":"";s.push(`${c}${f}: string`)}let l=s.join("; ");r.push(` '${o.pattern}': { ${l} }`)}r.push(" }","}","","export {}","")}let n=r.join(`
|
|
3
3
|
`),i=y.join(t,"route-types.d.ts");try{if(d.existsSync(i)&&d.readFileSync(i,"utf8")===n)return;d.mkdirSync(t,{recursive:!0}),d.writeFileSync(i,n)}catch{}}function S(e,t,a){let r=process.cwd(),n=y.relative(r,a),i=e.filter((s)=>!g(s.pattern)),o=["// Auto-generated by stx \u2014 do not edit",`// Source: ${n||"pages"}/`,"","export const routes = ["];for(let s of i){let l=y.relative(r,s.filePath).replace(/\\/g,"/"),c=JSON.stringify(s.params),f=s.layout?`, layout: '${y.relative(r,s.layout).replace(/\\/g,"/")}'`:"";o.push(` { pattern: '${s.pattern}', filePath: '${l}', isDynamic: ${s.isDynamic}, params: ${c}${f} },`)}o.push("] as const",""),o.push("export type RouteName = typeof routes[number]['pattern']",""),d.mkdirSync(t,{recursive:!0}),d.writeFileSync(y.join(t,"routes.ts"),o.join(`
|
|
4
4
|
`))}var F=u(()=>{b()});import V from"path";function k(e,t){let r=V.relative(t,e).replace(/\.(stx|md)$/,"");if(r=r.split(V.sep).join("/"),r==="index")return"/";if(r.endsWith("/index"))r=r.slice(0,-6);return r=r.replace(/\[\[([^\]]+)\]\]/g,":$1?"),r=r.replace(/\[([^\]]+)\]/g,":$1"),r=r.replace(/:\.\.\.([^/]+)/g,":$1*"),`/${r}`}function v(e){let t=[],a="",r=0;while(r<e.length){let n=e.slice(r),i=/^\/:([^/?*]+)\?/.exec(n);if(i){t.push(i[1]),a+="(?:/([^/]+))?",r+=i[0].length;continue}let o=/^:([^/?*]+)\*/.exec(n);if(o){t.push(o[1]),a+="(.+)",r+=o[0].length;continue}let s=/^:([^/?*]+)/.exec(n);if(s){t.push(s[1]),a+="([^/]+)",r+=s[0].length;continue}a+=e[r].replace(/[.+^${}()|[\]\\*?]/g,"\\$&"),r+=1}return{regex:new RegExp(`^${a}$`),params:t}}function W(e,t){let a=e===""?"/":e;for(let r of t){let n=a.match(r.regex);if(n){let i={};return r.params.forEach((o,s)=>{i[o]=n[s+1]}),{route:r,params:i}}}return null}function D(e){let t=e.replace(/\[\[([^\]]+)\]\]/g,":$1?").replace(/\[([^\]]+)\]/g,":$1").replace(/:\.\.\.([^/]+)/g,":$1*");return v(t)}var I=()=>{};import xe from"fs";import M from"path";function A(e,t){let a=[],r=M.dirname(e);while(r.startsWith(t)||r===t){let n=M.join(r,"_layout.stx");if(xe.existsSync(n))a.unshift(n);if(r===t)break;r=M.dirname(r)}return a}var N=()=>{};import P from"fs";import h from"path";function K(e,t){let a=[];if(!P.existsSync(e))return a;let r=P.readdirSync(e,{withFileTypes:!0});for(let n of r){let i=h.join(e,n.name);if(n.isDirectory()){if(n.name.startsWith("."))continue;if(m.includes(n.name))continue;a.push(...K(i,t))}else if(n.isFile()){let o=h.extname(n.name);if(t.includes(o)){if(n.name.startsWith("_")&&n.name!=="_layout.stx")continue;if(n.name==="_layout.stx")continue;a.push(i)}}}return a}class C{routes;pagesDir;pagesDirs;config;constructor(e,t={}){this.config=t;let a=t.pagesDirs&&t.pagesDirs.length>0?t.pagesDirs:[t.pagesDir||"pages"];this.pagesDirs=a.map((o)=>h.resolve(e,o)),this.pagesDir=this.pagesDirs[0];let r=t.extensions||[".stx"],n=new Set;this.routes=[];for(let o of this.pagesDirs){let s=K(o,r);for(let l of s){let c=k(l,o);if(n.has(c))continue;n.add(c);let{regex:f,params:H}=v(c),O=t.layouts!==!1?A(l,o):[];this.routes.push({pattern:c,regex:f,params:H,filePath:l,isDynamic:H.length>0,layout:O.length>0?O[O.length-1]:void 0})}}this.routes.sort((o,s)=>{if(!o.isDynamic&&s.isDynamic)return-1;if(o.isDynamic&&!s.isDynamic)return 1;let l=o.pattern.split("/").length,c=s.pattern.split("/").length;if(l!==c)return c-l;return o.pattern.localeCompare(s.pattern)});let i=h.resolve(e,t.stateDir||process.env.STX_DIR?.trim()||".stx");x(this.routes,i),S(this.routes,i,this.pagesDir)}match(e){let t=e===""?"/":e;for(let a of this.routes){let r=t.match(a.regex);if(r){let n={};return a.params.forEach((i,o)=>{n[i]=r[o+1]}),{route:a,params:n}}}return null}resolve(e,t){let a=this.routes.find((n)=>n.pattern===e||n.filePath.includes(e));if(!a)return"#not-found";let r=a.pattern;if(t)for(let[n,i]of Object.entries(t))r=r.replace(`:${n}`,encodeURIComponent(i));return r}addRoute(e){this.routes.push(e),this.routes.sort((t,a)=>{if(!t.isDynamic&&a.isDynamic)return-1;if(t.isDynamic&&!a.isDynamic)return 1;return t.pattern.localeCompare(a.pattern)})}getLayout(e){return e.layout??null}}function z(e,t){return new C(e,t)}function $(e,t){let a=[`${t}.stx`,"error.stx"];for(let r of a){let n=h.join(e,r);if(P.existsSync(n))return n}return null}function Y(e,t){return e.map((a)=>{let r=h.relative(t,a.filePath),n=a.isDynamic?" (dynamic)":"";return`${a.pattern} \u2192 ${r}${n}`})}var J=u(()=>{F();I();N();b()});function Z(e){T=e.replace(/\/$/,"")}function Q(e,t,a={}){p[e]={path:t,name:e,params:a}}function ee(e){for(let[t,a]of Object.entries(e))if(typeof a==="string")p[t]={path:a,name:t};else p[t]={...a,name:t}}function te(e,t={},a=!1){let r=p[e];if(!r)return console.warn(`Route [${e}] not defined.`),"#undefined-route";let n={...r.params,...t},i=r.path;i=i.replace(/:(\w+)/g,(s,l)=>{let c=n[l];if(c===void 0)return console.warn(`Missing parameter [${l}] for route [${e}].`),`:${l}`;return delete n[l],encodeURIComponent(String(c))});let o=Object.entries(n);if(o.length>0){let s=o.map(([l,c])=>`${encodeURIComponent(l)}=${encodeURIComponent(String(c))}`).join("&");i+=(i.includes("?")?"&":"?")+s}return a&&T?`${T}${i}`:i}function re(){for(let e of Object.keys(p))delete p[e];T=""}var p,T="";var ae=u(()=>{p={}});import ne from"fs";import oe from"path";function ie(e,t={}){return{type:"redirect",path:e,options:{replace:t.replace??!1,external:t.external??!1,redirectCode:t.redirectCode??302}}}function se(e){return{type:"abort",error:typeof e==="string"?{statusCode:500,message:e}:e}}function le(e,t={}){return{handler:e,mode:t.mode??"universal"}}function G(e){let t={};if(!e)return t;let a=e.split(";");for(let r of a){let[n,...i]=r.split("=");if(n){let o=n.trim(),s=i.join("=").trim();if(o)t[o]=decodeURIComponent(s)}}return t}function E(e,t,a={}){let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(a.expires){let n=typeof a.expires==="number"?new Date(Date.now()+a.expires*1000):a.expires;r+=`; Expires=${n.toUTCString()}`}if(a.path)r+=`; Path=${a.path}`;if(a.domain)r+=`; Domain=${a.domain}`;if(a.secure)r+="; Secure";if(a.httpOnly)r+="; HttpOnly";if(a.sameSite)r+=`; SameSite=${a.sameSite}`;return r}function B(e,t){let a=e.headers.get("cookie")||"",r=G(a);return{get(n){return r[n]},set(n,i,o={}){r[n]=i,t.append("Set-Cookie",E(n,i,o))},delete(n){delete r[n],t.append("Set-Cookie",E(n,"",{expires:new Date(0),path:"/"}))},getAll(){return{...r}}}}function X(){return{get(e){if(typeof document>"u")return;return G(document.cookie)[e]},set(e,t,a={}){if(typeof document>"u")return;document.cookie=E(e,t,a)},delete(e){if(typeof document>"u")return;document.cookie=E(e,"",{expires:new Date(0),path:"/"})},getAll(){if(typeof document>"u")return{};return G(document.cookie)}}}function U(){let e=typeof window<"u"&&typeof window.localStorage<"u";return{get(t){if(!e)return null;try{return window.localStorage.getItem(t)}catch{return null}},set(t,a){if(!e)return;try{window.localStorage.setItem(t,a)}catch{}},remove(t){if(!e)return;try{window.localStorage.removeItem(t)}catch{}},isAvailable(){return e}}}function R(e,t){w.set(e,t)}function j(e){return w.get(e)}function ce(e){return w.has(e)}function ue(){w.clear()}function de(){return Array.from(w.keys())}async function he(e,t="middleware"){let a=oe.resolve(e,t);if(!ne.existsSync(a))return;let r=ne.readdirSync(a);for(let n of r){if(!n.endsWith(".ts")&&!n.endsWith(".js"))continue;if(n.includes(".test.")||n.includes(".spec."))continue;let i=n.replace(/\.(ts|js)$/,""),o=oe.join(a,n);try{let l=(await import(o)).default;if(l&&typeof l.handler==="function")R(i,l);else if(typeof l==="function")R(i,{handler:l,mode:"universal"})}catch(s){console.warn(`Failed to load middleware '${i}' from ${o}:`,s)}}}function Se(e){let t={};if(!e)return t;let a=new URLSearchParams(e);for(let[r,n]of a)t[r]=n;return t}function pe(e,t,a,r=""){return{path:e,params:t,query:Se(r),fullPath:r?`${e}?${r}`:e,meta:a}}function fe(e,t,a,r){let n=r?.isServer??typeof window>"u",i=!n,o=new Headers;return{to:e,from:t,isClient:i,isServer:n,cookies:n&&a?B(a,o):X(),storage:U(),state:{},request:a,responseHeaders:o}}async function me(e,t){let a=Array.isArray(e)?e:[e],r=t.isServer;for(let n of a){let i=j(n);if(!i)return console.error(`Route middleware '${n}' is not registered \u2014 failing the guard closed.`),{passed:!1,abort:{type:"abort",error:{statusCode:500,message:`Route middleware '${n}' is not registered`}},state:t.state,responseHeaders:t.responseHeaders};if(i.mode==="server"&&!r)continue;try{let o=await i.handler(t);if(o){if(o.type==="redirect")return{passed:!1,redirect:o,state:t.state,responseHeaders:t.responseHeaders};if(o.type==="abort")return{passed:!1,abort:o,state:t.state,responseHeaders:t.responseHeaders}}}catch(o){return console.error(`Error in middleware '${n}':`,o),{passed:!1,abort:{type:"abort",error:{statusCode:500,message:o instanceof Error?o.message:"Middleware error"}},state:t.state,responseHeaders:t.responseHeaders}}}return{passed:!0,state:t.state,responseHeaders:t.responseHeaders}}var w;var ge=u(()=>{w=new Map});function q(e){let a=e.replace(/\\/g,"/").split("/").filter(Boolean),r=a.lastIndexOf("layouts"),n=r>=0?a[r+1]:a.at(-1);if(!n)return"app";return n.replace(/\.stx$/i,"")||"app"}function ye(e){let t=e.match(/<meta\b[^>]*name=["']stx-layout["'][^>]*content=["']([^"']+)["'][^>]*>/i),a=e.match(/<meta\b[^>]*name=["']stx-layout-group["'][^>]*content=["']([^"']+)["'][^>]*>/i),r=e.match(/<!--\s*stx-layout:\s*([^ ]+)\s*-->/i),n=t?.[1]||r?.[1]||"";return{layout:n,group:a?.[1]||q(n)}}var ve=()=>{};function ke(e){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(e).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return e}}function we(){if(L)return L;return L=ke(`
|
|
5
5
|
;(function(){
|
|
@@ -1671,4 +1671,4 @@ else {
|
|
|
1671
1671
|
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init);else init();
|
|
1672
1672
|
})();
|
|
1673
1673
|
`),L}var L;var be=()=>{};var Ce={};Ae(Ce,{setAppUrl:()=>Z,runMiddleware:()=>me,route:()=>te,resolveLayoutChain:()=>A,resetRoutes:()=>re,registerMiddleware:()=>R,patternToRegex:()=>v,navigateTo:()=>ie,matchRoute:()=>W,loadMiddlewareFromDirectory:()=>he,isNonPageRoutePattern:()=>g,isNonPageRoutePath:()=>_,hasMiddleware:()=>ce,getRouterScript:()=>we,getMiddlewareNames:()=>de,getMiddleware:()=>j,generateRouteTypes:()=>x,generateRouteManifest:()=>S,formatRoutes:()=>Y,findErrorPage:()=>$,filePathToPattern:()=>k,extractLayoutMetadata:()=>ye,deriveLayoutGroup:()=>q,defineRoutes:()=>ee,defineRoute:()=>Q,defineMiddleware:()=>le,createStorageManager:()=>U,createServerCookieManager:()=>B,createRouter:()=>z,createRouteLocation:()=>pe,createMiddlewareContext:()=>fe,createClientCookieManager:()=>X,clearMiddleware:()=>ue,bracketPathToRegex:()=>D,abortNavigation:()=>se,Router:()=>C,NON_PAGE_DIRS:()=>m});var Te=u(()=>{J();I();ae();ge();N();ve();F();b();be()});
|
|
1674
|
-
export{m as
|
|
1674
|
+
export{m as Jt,_ as Kt,g as Lt,x as Mt,S as Nt,k as Ot,v as Pt,W as Qt,D as Rt,A as St,C as Tt,z as Ut,$ as Vt,Y as Wt,Z as Xt,Q as Yt,ee as Zt,te as _t,re as $t,ie as au,se as bu,le as cu,B as du,X as eu,U as fu,R as gu,j as hu,ce as iu,ue as ju,de as ku,he as lu,pe as mu,fe as nu,me as ou,q as pu,ye as qu,ve as ru,we as su,Ce as tu,Te as uu};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Es as B}from"./chunk-dmzc008f.js";import I from"path";function M(z){if(!z)return!1;return z.trim().split(/\s+/)[0]?.toLowerCase()==="presentation"||z.trim().split(/\s+/)[0]?.toLowerCase()==="none"}function L(z,X){let J=new RegExp(`\\b${X}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i").exec(z);if(!J)return null;return J[2]??J[3]??J[4]??null}function h(z,X,J,K){let j=z;j=j.replace(/@a11y\(\s*['"]([^'"]+)['"]\s*(?:,\s*['"]([^'"]+)['"]\s*)?\)/g,(Q,G,q)=>{let U={"aria-label":"Ensure interactive elements have accessible labels","alt-text":"Provide alternative text for images",focus:"Ensure the element can receive keyboard focus",landmark:"Use appropriate landmark roles","heading-order":"Maintain proper heading hierarchy","color-contrast":"Ensure sufficient color contrast","keyboard-nav":"Make sure element is keyboard navigable","screen-reader":"Optimize for screen reader users"}[G]||"Make this element accessible";return`<!-- a11y-hint: ${q||U} -->`});let _=/@screenReader\(([^@]*)\)@endScreenReader/g;return j=j.replace(_,(Q,G)=>{return`<span class="sr-only">${G.trim()}</span>`}),j=j.replace(/@ariaDescribe\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)/g,(Q,G,q)=>{return`<span id="${`desc-${G}`}" class="sr-only">${q}</span>`}),j}function s(){return`
|
|
3
3
|
.sr-only {
|
|
4
4
|
position: absolute;
|
|
5
5
|
width: 1px;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{eg as a,fg as b,gg as c,hg as d,ig as e,jg as f,kg as g,lg as h}from"./chunk-5rynsy4e.js";import"./chunk-q891e1vj.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jg as S,Kg as s,Lg as i,Og as t,Pg as e,Qg as HH,Rg as KH,Sg as QH,Tg as YH}from"./chunk-ytr18qnm.js";import{_i as a}from"./chunk-r93rb19w.js";import{gt as h}from"./chunk-t0jzk81v.js";import{At as f}from"./chunk-myh6j9ab.js";import{existsSync as ZH,readFileSync as XH}from"fs";import J from"path";function qH(K,Q="",V=""){let U=K.startLine>1?`
|
|
3
3
|
`.repeat(K.startLine-1):"",E=i(s(K.code)),X=K.kind==="client"||K.kind==="plain"?e(Q,K.code):"";return KH(`${U+E}
|
|
4
4
|
${X}
|
|
5
5
|
export {}
|
|
@@ -15,4 +15,4 @@ ${b.trim().split(`
|
|
|
15
15
|
`).slice(0,12).join(`
|
|
16
16
|
`)||"(no output)"}`:void 0;return{diagnostics:D,checkedFiles:q,blockCount:B,expressionCount:T,failure:VH}}function PH(K){return K.map((Q)=>{let V=Q.blockKind==="template"?`[template: ${Q.expression??""}]`:`[${Q.blockKind==="plain"?"<script>":`<script ${Q.blockKind}>`}]`;return`${Q.file}:${Q.line}:${Q.column} ${Q.category} TS${Q.code} ${Q.message} ${V}`}).join(`
|
|
17
17
|
`)}
|
|
18
|
-
export{qH as
|
|
18
|
+
export{qH as hf,r as if,wH as jf,MH as kf,TH as lf,PH as mf};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bq as H,Tq as x,Yr as g,ap as R,om as O}from"./chunk-
|
|
2
|
+
import{Bq as H,Tq as x,Yr as g,ap as R,om as O}from"./chunk-kq4z185m.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$o as d,Yo as a,Zo as b,_o as c,ap as e,bp as f,cp as g,dp as h,ep as i,fp as j}from"./chunk-kq4z185m.js";import"./chunk-by2p4by1.js";import"./chunk-a2ppgamd.js";import"./chunk-dmzc008f.js";import"./chunk-nstqd54d.js";import"./chunk-a2yanhxh.js";import"./chunk-9vpqzs8r.js";import"./chunk-t0jzk81v.js";import"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bq as X,um as W}from"./chunk-
|
|
2
|
+
import{Bq as X,um as W}from"./chunk-kq4z185m.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
|
|
3
3
|
${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
|
|
4
4
|
`)}else{console.log(`
|
|
5
5
|
${j.bold}Available Commands:${j.reset}
|
|
@@ -21,4 +21,4 @@ ${j.bold}${j.blue}stx Interactive Mode${j.reset}
|
|
|
21
21
|
${j.dim}Type 'help' for available commands, 'exit' to quit${j.reset}
|
|
22
22
|
`);let B=()=>{let G=z.cwd.replace(process.env.HOME||"","~");A.question(`${j.cyan}stx${j.reset} ${j.dim}${G}${j.reset} ${j.green}>${j.reset} `,async(I)=>{let K=I.trim();if(!K){if(z.running)B();return}z.history.push(K);let L=K.match(/(?:[^\s"]|"[^"]*")+/g)||[],J=L[0]?.toLowerCase(),O=L.slice(1).map((U)=>U.replace(/^"|"$/g,""));if(J&&Q[J])try{await Q[J].handler(O,z)}catch(U){console.log(`${j.red}Error:${j.reset}`,U)}else if(J)if(K.includes("{{")||K.includes("}}"))try{let U=await W(K,z.context,"eval");console.log(`${j.green}\u2192${j.reset} ${U}`)}catch{console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`)}else console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`);if(z.running)B();else A.close()})};A.on("SIGINT",()=>{console.log(`
|
|
23
23
|
${j.dim}(Use 'exit' to quit)${j.reset}`),B()}),B()}
|
|
24
|
-
export{R as
|
|
24
|
+
export{R as pf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{existsSync as U,statSync as V}from"fs";import z from"path";var W=/[*?[\]{}]/;function X(D){return W.test(D)}async function $(D,E={}){let H=E.cwd??process.cwd(),N=E.recursive!==!1,Q=E.ignorePaths??[],J=globalThis.Bun.Glob,K=new Set,F=(j)=>{if(j.includes(`${z.sep}node_modules${z.sep}`)||j.includes(`${z.sep}dist${z.sep}`))return;if(Q.some((q)=>q&&j.includes(z.normalize(q))))return;K.add(j)},R=async(j)=>{try{for await(let q of new J(j).scan({cwd:H,absolute:!0}))F(q)}catch{}};for(let j of D){if(!j)continue;if(X(j)){await R(j);continue}let q=z.resolve(H,j);if(!U(q))continue;if(V(q).isDirectory()){for await(let T of new J(N?"**/*.stx":"*.stx").scan({cwd:q,absolute:!0}))F(T);continue}F(q)}return[...K].sort()}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as Ds,$ as Es};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-q891e1vj.js";import v from"fs";import H from"path";import{gzipSync as z}from"zlib";import{createHash as g}from"crypto";var D={".js":"js",".mjs":"js",".cjs":"js",".ts":"js",".jsx":"js",".tsx":"js",".css":"css",".scss":"css",".sass":"css",".less":"css",".html":"html",".htm":"html",".png":"image",".jpg":"image",".jpeg":"image",".gif":"image",".svg":"image",".webp":"image",".avif":"image",".ico":"image",".woff":"font",".woff2":"font",".ttf":"font",".eot":"font",".otf":"font"},b=[/node_modules/,/vendor/,/bower_components/,/\.min\./],B=[/index\.(js|ts|html)$/,/main\.(js|ts)$/,/app\.(js|ts)$/,/entry\.(js|ts)$/];async function L(X,Z={}){let{includeSourceMaps:Q=!1,parseImports:$=!0,detectDuplicates:U=!0,topModulesCount:K=20}=Z;if(!v.existsSync(X))throw Error(`Build directory not found: ${X}`);if(!v.statSync(X).isDirectory())throw Error(`Not a directory: ${X}`);let q=await k(X,Q),J=[],F=[];for(let A of q)try{let O=await f(A,X,$);J.push(O)}catch(O){F.push(`Failed to process ${A}: ${O}`)}let Y=c(J,X),V=J.reduce((A,O)=>A+O.size,0),_=J.reduce((A,O)=>A+O.gzipSize,0),w=m(J),G=U?p(J):[],C=[...J].sort((A,O)=>O.size-A.size).slice(0,K);return{timestamp:Date.now(),buildDir:H.resolve(X),chunks:Y,totalSize:V,totalGzipSize:_,moduleCount:J.length,duplicates:G,byType:w,largestModules:C,warnings:F}}async function k(X,Z){let Q=[];async function $(U){let K=await v.promises.readdir(U,{withFileTypes:!0});for(let j of K){let q=H.join(U,j.name);if(j.isDirectory()){if(!j.name.startsWith(".")&&j.name!=="node_modules")await $(q)}else if(j.isFile()){if(!Z&&j.name.endsWith(".map"))continue;Q.push(q)}}}return await $(X),Q}async function f(X,Z,Q){let $=await v.promises.readFile(X),U=H.relative(Z,X),K=H.extname(X).toLowerCase(),j=$.length,q=y($),J=h($,K),F=g("md5").update($).digest("hex").slice(0,8),Y=D[K]||"other",V=[];if(Q&&Y==="js")V.push(...d($.toString("utf-8")));return{id:U,path:U,size:j,gzipSize:q,parsedSize:J,extension:K,type:Y,imports:V,importedBy:[],hash:F}}function y(X){try{let Z=z(X,{level:9}).length;return Math.min(Z,X.length)}catch{return X.length}}function h(X,Z){if(Z.includes(".min.")||X.length<1000)return X.length;let $=D[Z];if($==="js")return Math.round(X.length*0.6);if($==="css")return Math.round(X.length*0.7);return X.length}function d(X){let Z=[],Q=/import\s+(?:[\w*{}\s,]+\s+from\s+)?['"]([^'"]+)['"]/g,$;while(($=Q.exec(X))!==null)Z.push($[1]);let U=/import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=U.exec(X))!==null)Z.push($[1]);let K=/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=K.exec(X))!==null)Z.push($[1]);return[...new Set(Z)]}function c(X,Z){let Q=new Map;for(let U of X){let K=U.path.split(H.sep),j;if(K.length===1)j=H.basename(U.path,U.extension);else j=K[0];let q=Q.get(j)||[];q.push(U),Q.set(j,q)}let $=[];for(let[U,K]of Q){let j=K.reduce((Y,V)=>Y+V.size,0),q=K.reduce((Y,V)=>Y+V.gzipSize,0),J=K.some((Y)=>B.some((V)=>V.test(Y.path))),F=K.some((Y)=>b.some((V)=>V.test(Y.path)));$.push({name:U,files:K.map((Y)=>Y.path),modules:K,size:j,gzipSize:q,isEntry:J,isVendor:F})}return $.sort((U,K)=>K.size-U.size)}function m(X){let Z={js:{count:0,size:0,gzipSize:0},css:{count:0,size:0,gzipSize:0},html:{count:0,size:0,gzipSize:0},image:{count:0,size:0,gzipSize:0},font:{count:0,size:0,gzipSize:0},other:{count:0,size:0,gzipSize:0}};for(let Q of X)Z[Q.type].count++,Z[Q.type].size+=Q.size,Z[Q.type].gzipSize+=Q.gzipSize;return Z}function p(X){let Z=new Map;for(let $ of X){let U=Z.get($.hash)||[];U.push($),Z.set($.hash,U)}let Q=[];for(let[,$]of Z)if($.length>1){let U=$[0];Q.push({path:U.path,count:$.length,wastedBytes:U.size*($.length-1),locations:$.map((K)=>K.path)})}return Q.sort(($,U)=>U.wastedBytes-$.wastedBytes)}function W(X){if(X<1024)return`${X} B`;if(X<1048576)return`${(X/1024).toFixed(2)} KB`;return`${(X/1048576).toFixed(2)} MB`}function I(X){let Z=X.match(/^([\d.]+)\s*(B|KB|MB|GB)?$/i);if(!Z)return 0;let Q=Number.parseFloat(Z[1]);switch((Z[2]||"B").toUpperCase()){case"KB":return Q*1024;case"MB":return Q*1024*1024;case"GB":return Q*1024*1024*1024;default:return Q}}function E(X,Z){if(Z===0)return"0%";return`${(X/Z*100).toFixed(1)}%`}function R(X,Z){switch(Z.format){case"json":return u(X,Z);case"markdown":return l(X,Z);case"text":default:return r(X,Z)}}function u(X,Z){let Q=N(X,Z);return JSON.stringify({timestamp:X.timestamp,buildDir:X.buildDir,summary:{totalSize:X.totalSize,totalSizeFormatted:W(X.totalSize),totalGzipSize:X.totalGzipSize,totalGzipSizeFormatted:W(X.totalGzipSize),moduleCount:X.moduleCount,chunkCount:X.chunks.length,duplicateCount:X.duplicates.length},byType:Object.fromEntries(Object.entries(X.byType).map(([$,U])=>[$,{...U,sizeFormatted:W(U.size),gzipSizeFormatted:W(U.gzipSize)}])),chunks:X.chunks.map(($)=>({name:$.name,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),moduleCount:$.modules.length,isEntry:$.isEntry,isVendor:$.isVendor})),largestModules:X.largestModules.slice(0,Z.topModules||10).map(($)=>({path:$.path,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),type:$.type})),duplicates:X.duplicates,analysis:Q,warnings:X.warnings},null,2)}function r(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push(""),Q.push("Bundle Analysis Report"),Q.push("\u2550".repeat(50)),Q.push(""),Q.push("Summary"),Q.push("\u2500".repeat(50)),$)Q.push(`Total Size: ${W(X.totalSize)} (${W(X.totalGzipSize)} gzip)`);else Q.push(`Total Size: ${W(X.totalSize)}`);if(Q.push(`Modules: ${X.moduleCount}`),Q.push(`Chunks: ${X.chunks.length}`),X.duplicates.length>0)Q.push(`Duplicates: ${X.duplicates.length}`);if(Q.push(""),Z.threshold&&X.totalSize>Z.threshold)Q.push(`\u26A0\uFE0F Bundle exceeds threshold of ${W(Z.threshold)}!`),Q.push("");Q.push("Size by Type"),Q.push("\u2500".repeat(50));let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0){let J=E(q.size,X.totalSize),F=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${j.padEnd(8)} ${W(q.size).padStart(12)}${F} ${J.padStart(6)} (${q.count} files)`)}}Q.push(""),Q.push("Chunks"),Q.push("\u2500".repeat(50));for(let j of X.chunks.slice(0,10)){let q=[];if(j.isEntry)q.push("entry");if(j.isVendor)q.push("vendor");let J=q.length>0?` [${q.join(", ")}]`:"",F=$?` (${W(j.gzipSize)} gzip)`:"";Q.push(` ${j.name.padEnd(20)} ${W(j.size).padStart(12)}${F}${J}`)}if(X.chunks.length>10)Q.push(` ... and ${X.chunks.length-10} more chunks`);Q.push("");let K=Z.topModules||10;Q.push(`Largest Modules (Top ${K})`),Q.push("\u2500".repeat(50));for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j],J=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${(j+1).toString().padStart(2)}. ${q.path}`),Q.push(` ${W(q.size)}${J}`)}if(Q.push(""),X.duplicates.length>0){Q.push("Duplicate Modules"),Q.push("\u2500".repeat(50));for(let j of X.duplicates.slice(0,5))Q.push(` ${j.path}`),Q.push(` ${j.count} copies, wasting ${W(j.wastedBytes)}`);if(X.duplicates.length>5)Q.push(` ... and ${X.duplicates.length-5} more duplicates`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("Recommendations"),Q.push("\u2500".repeat(50));for(let q of j.recommendations.slice(0,5)){let J=q.impact==="high"?"\u26A1":q.impact==="medium"?"\uD83D\uDCCA":"\uD83D\uDCA1";Q.push(` ${J} ${q.title}`),Q.push(` ${q.description}`)}Q.push("")}}if(X.warnings.length>0){Q.push("Warnings"),Q.push("\u2500".repeat(50));for(let j of X.warnings)Q.push(` \u26A0\uFE0F ${j}`);Q.push("")}return Q.join(`
|
|
3
3
|
`)}function l(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push("# Bundle Analysis Report"),Q.push(""),Q.push(`Generated: ${new Date(X.timestamp).toISOString()}`),Q.push(""),Q.push("## Summary"),Q.push(""),Q.push("| Metric | Value |"),Q.push("|--------|-------|"),Q.push(`| Total Size | ${W(X.totalSize)} |`),$)Q.push(`| Gzip Size | ${W(X.totalGzipSize)} |`);Q.push(`| Modules | ${X.moduleCount} |`),Q.push(`| Chunks | ${X.chunks.length} |`),Q.push(`| Duplicates | ${X.duplicates.length} |`),Q.push(""),Q.push("## Size by Type"),Q.push(""),Q.push("| Type | Size | Gzip | % | Files |"),Q.push("|------|------|------|---|-------|");let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0)Q.push(`| ${j} | ${W(q.size)} | ${W(q.gzipSize)} | ${E(q.size,X.totalSize)} | ${q.count} |`)}Q.push(""),Q.push("## Chunks"),Q.push(""),Q.push("| Name | Size | Gzip | Modules | Type |"),Q.push("|------|------|------|---------|------|");for(let j of X.chunks.slice(0,15)){let q=j.isEntry?"Entry":j.isVendor?"Vendor":"-";Q.push(`| ${j.name} | ${W(j.size)} | ${W(j.gzipSize)} | ${j.modules.length} | ${q} |`)}Q.push("");let K=Z.topModules||10;Q.push(`## Largest Modules (Top ${K})`),Q.push(""),Q.push("| # | Path | Size | Gzip |"),Q.push("|---|------|------|------|");for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j];Q.push(`| ${j+1} | \`${q.path}\` | ${W(q.size)} | ${W(q.gzipSize)} |`)}if(Q.push(""),X.duplicates.length>0){Q.push("## Duplicates"),Q.push(""),Q.push("| Path | Copies | Wasted |"),Q.push("|------|--------|--------|");for(let j of X.duplicates.slice(0,10))Q.push(`| \`${j.path}\` | ${j.count} | ${W(j.wastedBytes)} |`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("## Recommendations"),Q.push("");for(let q of j.recommendations)Q.push(`### ${q.title}`),Q.push(""),Q.push(q.description),Q.push(""),Q.push(`- **Impact:** ${q.impact}`),Q.push(`- **Effort:** ${q.effort}`),Q.push("")}}return Q.join(`
|
|
4
4
|
`)}function N(X,Z){let Q=[],$=[];if(Z.threshold&&X.totalSize>Z.threshold)Q.push({severity:"error",message:`Bundle size (${W(X.totalSize)}) exceeds threshold (${W(Z.threshold)})`});if(X.totalSize>1048576)Q.push({severity:"warning",message:`Bundle is over 1MB (${W(X.totalSize)})`,details:"Large bundles can significantly impact load time"});if(X.duplicates.length>0){let q=X.duplicates.reduce((J,F)=>J+F.wastedBytes,0);Q.push({severity:"warning",message:`${X.duplicates.length} duplicate modules found, wasting ${W(q)}`}),$.push({title:"Remove Duplicate Modules",description:"Consider using import aliases or ensuring consistent package versions to eliminate duplicates.",impact:"medium",effort:"low"})}if(X.byType.js.size/X.totalSize>0.8&&X.totalSize>512000)$.push({title:"Code Splitting",description:"Over 80% of your bundle is JavaScript. Consider splitting code by route or feature.",impact:"high",effort:"medium"});let K=X.largestModules.filter((q)=>q.size>102400);if(K.length>0){Q.push({severity:"info",message:`${K.length} modules are over 100KB`});for(let q of K){if(q.path.includes("lodash")&&!q.path.includes("lodash-es"))$.push({title:"Use lodash-es instead of lodash",description:"lodash-es supports tree-shaking and can significantly reduce bundle size.",impact:"high",effort:"low"});if(q.path.includes("moment"))$.push({title:"Replace moment.js",description:"Consider using date-fns or dayjs for smaller date handling libraries.",impact:"high",effort:"medium"})}}if(X.byType.image.size>512000)$.push({title:"Optimize Images",description:`Images account for ${W(X.byType.image.size)}. Consider using WebP/AVIF formats and responsive images.`,impact:"high",effort:"low"});let j=100;if(X.totalSize>1048576)j-=20;else if(X.totalSize>512000)j-=10;if(j-=Math.min(20,X.duplicates.length*2),j-=Math.min(15,K.length*3),Z.threshold&&X.totalSize>Z.threshold)j-=25;return{score:Math.max(0,j),issues:Q,recommendations:$}}var i={lodash:{alternative:"lodash-es or individual imports",savings:"~70%"},moment:{alternative:"date-fns or dayjs",savings:"~90%"},"chart.js":{alternative:"chart.js with tree-shaking",savings:"~50%"},"highlight.js":{alternative:"Selective language imports",savings:"~80%"},fontawesome:{alternative:"Individual icon imports",savings:"~90%"},"material-ui":{alternative:"Named imports from @mui/*",savings:"~60%"}};function n(X){for(let[Z,Q]of Object.entries(i))if(X.includes(Z))return{title:`Optimize ${Z}`,description:`Consider using ${Q.alternative}. Potential savings: ${Q.savings}`,impact:"high",effort:"low"};return null}var o={default:{js:"#f7df1e",css:"#264de4",html:"#e34c26",image:"#4caf50",font:"#9c27b0",other:"#607d8b",vendor:"#ff5722"},pastel:{js:"#fff3b0",css:"#b0d4ff",html:"#ffb0b0",image:"#b0ffb0",font:"#e0b0ff",other:"#d0d0d0",vendor:"#ffcfb0"},monochrome:{js:"#333333",css:"#555555",html:"#777777",image:"#999999",font:"#bbbbbb",other:"#dddddd",vendor:"#444444"}};function x(X,Z={}){let{title:Q="Bundle Analysis",gzip:$=!0,colorScheme:U="default"}=Z,K=o[U],j=a(X),q=JSON.stringify(j);return`<!DOCTYPE html>
|
|
5
5
|
<html lang="en">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Xj as a,Yj as b,Zj as c,_j as d}from"./chunk-f5cw54q3.js";import"./chunk-
|
|
2
|
+
import{Xj as a,Yj as b,Zj as c,_j as d}from"./chunk-f5cw54q3.js";import"./chunk-q891e1vj.js";export{d as default,c as createHotReloadServer,b as compileToNative,a as NATIVE_COMPONENTS};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{nq as a,oq as b,pq as c,qq as d,rq as e,sq as f,tq as g,uq as h,vq as i,wq as j,xq as k}from"./chunk-kq4z185m.js";import"./chunk-by2p4by1.js";import"./chunk-a2ppgamd.js";import"./chunk-dmzc008f.js";import"./chunk-nstqd54d.js";import"./chunk-a2yanhxh.js";import"./chunk-9vpqzs8r.js";import"./chunk-t0jzk81v.js";import"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{a as scanScriptTags,k as rewriteStxImportSpecifiers,i as processSignals,g as processScriptSetup,e as preEvalLiteralReactiveIfs,b as parseLoopExpression,c as hasSignalsSyntax,j as findMarkupIndexOutsideScripts,h as extractExports,f as convertSignalLoopsToAttributes,d as convertSignalDirectivesToAttributes};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Af as k,Bf as l,qf as a,rf as b,sf as c,tf as d,uf as e,vf as f,wf as g,xf as h,yf as i,zf as j}from"./chunk-vqxmxgaj.js";import"./chunk-q891e1vj.js";export{g as toUsers,f as toUser,c as stopBroadcasting,b as startBroadcasting,d as loadChannels,a as getBroadcastServer,j as channel,h as broadcastPrivate,i as broadcastPresence,e as broadcast,l as BroadcastServer,k as Broadcast};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Aq as d,Bq as e,mq as a,yq as b,zq as c}from"./chunk-kq4z185m.js";import"./chunk-by2p4by1.js";import"./chunk-a2ppgamd.js";import"./chunk-dmzc008f.js";import"./chunk-nstqd54d.js";import"./chunk-a2yanhxh.js";import"./chunk-9vpqzs8r.js";import"./chunk-t0jzk81v.js";import"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-q891e1vj.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
|
|
3
3
|
<div class="stx-error-boundary" data-boundary-id="${q}" data-has-error="false">
|
|
4
4
|
<div class="stx-error-boundary-content" data-boundary-content="${q}">
|
|
5
5
|
${z}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ls as Q}from"./chunk-
|
|
2
|
+
import{ls as Q}from"./chunk-by2p4by1.js";import"./chunk-dmzc008f.js";import{gt as R}from"./chunk-t0jzk81v.js";import"./chunk-q891e1vj.js";import O from"fs";import U from"path";async function W(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R(j.root,"story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await X(J,K,b,z);return z.duration=Date.now()-q,z}async function X(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=U.join(b,`${j.id}-${B.id}.snap`),G=Y(B.source||""),L=await _(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Z(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function A(j,b={}){return(await W(j,{...b,update:!0})).total}function Y(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Z(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function _(j){try{return await O.promises.access(j),!0}catch{return!1}}function I(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
|
|
3
3
|
`)}async function S(j,b={}){let q=performance.now(),z=[],K=0,B=0;for(let G of j.storyFiles)try{let L=await Bun.file(G.path).text(),M=await Q(L,G.path);if(M.length>0){for(let N of M)z.push({storyId:G.id,variantId:"default",component:G.component,message:`A11y: ${N.message}`,expected:"No accessibility violations",actual:`${N.type}: ${N.message} (impact: ${N.impact})`});B++}else K++}catch(L){z.push({storyId:G.id,variantId:"default",component:G.component,message:`Failed to check a11y: ${L instanceof Error?L.message:String(L)}`,expected:"File readable for a11y check",actual:"File read error"}),B++}let J=performance.now()-q;return{total:j.storyFiles.length,passed:K,failed:B,new:0,failures:z,duration:J}}export{A as updateSnapshots,W as runVisualTests,S as runA11yTests,I as formatTestResults};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rk as m}from"./chunk-
|
|
2
|
+
import{rk as m}from"./chunk-n43xg568.js";import{Eu as z}from"./chunk-q891e1vj.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -299,4 +299,4 @@ catch (error) {
|
|
|
299
299
|
}
|
|
300
300
|
})();
|
|
301
301
|
</script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
|
|
302
|
-
export{N as
|
|
302
|
+
export{N as vu,Q as wu,T as xu,V as yu,X as zu,Z as Au};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ig as a}from"./chunk-6n317mmy.js";import"./chunk-ytr18qnm.js";import"./chunk-ypjgcb5w.js";import"./chunk-6rjc6687.js";import"./chunk-k6b7gpk2.js";import"./chunk-c0n802j1.js";import"./chunk-kq4z185m.js";import"./chunk-by2p4by1.js";import"./chunk-a2ppgamd.js";import"./chunk-dmzc008f.js";import"./chunk-nstqd54d.js";import"./chunk-a2yanhxh.js";import"./chunk-9vpqzs8r.js";import"./chunk-t0jzk81v.js";import"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{a as buildForProduction};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{gp as a,hp as b}from"./chunk-kq4z185m.js";import"./chunk-by2p4by1.js";import"./chunk-a2ppgamd.js";import"./chunk-dmzc008f.js";import"./chunk-nstqd54d.js";import"./chunk-a2yanhxh.js";import"./chunk-9vpqzs8r.js";import"./chunk-t0jzk81v.js";import"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{b as processLoops,a as parseLoopBinding};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$r as d,Yr as a,Zr as b,_r as c,as as e,bs as f}from"./chunk-kq4z185m.js";import"./chunk-by2p4by1.js";import"./chunk-a2ppgamd.js";import"./chunk-dmzc008f.js";import"./chunk-nstqd54d.js";import"./chunk-a2yanhxh.js";import"./chunk-9vpqzs8r.js";import"./chunk-t0jzk81v.js";import"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ag as o,Bg as p,Cg as q,mg as a,ng as b,og as c,pg as d,qg as e,rg as f,sg as g,tg as h,ug as i,vg as j,wg as k,xg as l,yg as m,zg as n}from"./chunk-21kvpnqq.js";import"./chunk-q891e1vj.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Zl as F,am as V,om as I}from"./chunk-
|
|
2
|
+
import{Zl as F,am as V,om as I}from"./chunk-kq4z185m.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
|
|
3
3
|
export{w as jh,C as kh,N as lh,A as mh,E as nh,M as oh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$e as x,Xe as t,Ye as u,Ze as v,_e as w,af as y,bf as z,cf as A,df as B,ef as C,ff as D,gf as E}from"./chunk-4jzzgnym.js";import{Cf as r,Df as s}from"./chunk-0n4fvqm8.js";import{Ag as o,Bg as p,Cg as q,mg as b,ng as c,og as d,pg as e,qg as f,rg as g,sg as h,ug as i,vg as j,wg as k,xg as l,yg as m,zg as n}from"./chunk-21kvpnqq.js";import{ih as a}from"./chunk-4tmw4kjm.js";import"./chunk-a2ppgamd.js";import"./chunk-q891e1vj.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as Wk,$a as Nm,$b as eo,$c as ep,$d as eq,A as Gj,Aa as Yl,Ab as yn,Ac as Fo,Ad as Fp,Ae as Lq,B as Hj,Ba as Zl,Bb as zn,Bc as Go,Bd as Gp,Be as Mq,C as Ij,Ca as km,Cb as An,Cc as Ho,Cd as Hp,Ce as Nq,D as Jj,Da as lm,Db as Bn,Dc as Io,Dd as Ip,De as Oq,E as zk,Ea as mm,Eb as Cn,Ec as Jo,Ed as Jp,Ee as Pq,F as Ak,Fa as nm,Fb as Dn,Fc as Ko,Fd as Kp,Fe as Qq,G as Bk,Ga as om,Gb as En,Gc as Lo,Gd as Lp,Ge as Rq,H as Ck,Ha as sm,Hb as Fn,Hc as Mo,Hd as Mp,He as Sq,I as Dk,Ia as tm,Ib as Gn,Ic as No,Id as Np,Ie as Tq,J as Ek,Ja as um,Jb as Hn,Jc as Oo,Jd as Op,Je as Uq,K as Fk,Ka as vm,Kb as In,Kc as Po,Kd as Pp,Ke as Vq,L as Gk,La as wm,Lb as Jn,Lc as Qo,Ld as Qp,Le as Wq,M as Hk,Ma as xm,Mb as Kn,Mc as Ro,Md as Rp,Me as Xq,N as Ik,Na as ym,Nb as Rn,Nc as So,Nd as Sp,Ne as Yq,O as Jk,Oa as zm,Ob as Sn,Oc as To,Od as Tp,Oe as Zq,P as Kk,Pa as Am,Pb as Tn,Pc as Uo,Pd as Up,Pe as _q,Q as Lk,Qa as Bm,Qb as Un,Qc as Vo,Qd as Vp,Qe as $q,R as Mk,Ra as Cm,Rb as Vn,Rc as Wo,Rd as Wp,Re as ar,S as Nk,Sa as Dm,Sb as Wn,Sc as Xo,Sd as Xp,Se as br,T as Ok,Ta as Em,Tb as Xn,Tc as Yo,Td as Yp,Te as cr,U as Pk,Ua as Fm,Ub as Yn,Uc as Zo,Ud as Zp,Ue as dr,V as Qk,Va as Gm,Vb as Zn,Vc as _o,Vd as _p,Ve as er,W as Rk,Wa as Hm,Wb as _n,Wc as $o,Wd as $p,We as fr,X as Sk,Xa as Jm,Xb as $n,Xc as ap,Xd as aq,Y as Tk,Ya as Km,Yb as ao,Yc as bp,Yd as bq,Z as Uk,Za as Lm,Zb as bo,Zc as cp,Zd as cq,_ as Vk,_a as Mm,_b as co,_c as dp,_d as dq,aa as Xk,ab as Om,ac as fo,ad as fp,ae as fq,ba as Yk,bb as Pm,bc as go,bd as gp,be as gq,ca as Zk,cb as Qm,cc as ho,cd as hp,ce as hq,da as _k,db as Rm,dc as io,dd as ip,de as iq,ea as $k,eb as Sm,ec as jo,ed as jp,ee as jq,fa as al,fb as Tm,fc as ko,fd as kp,fe as kq,ga as bl,gb as Um,gc as lo,gd as lp,ge as lq,ha as cl,hb as Vm,hc as mo,hd as mp,he as mq,ia as dl,ib as Wm,ic as no,id as np,ie as nq,ja as el,jb as Xm,jc as oo,jd as op,je as oq,ka as fl,kb as Ym,kc as po,kd as pp,ke as pq,la as gl,lb as Zm,lc as qo,ld as qp,le as qq,ma as hl,mb as _m,mc as ro,md as rp,me as rq,na as il,nb as $m,nc as so,nd as sp,ne as sq,o as a,oa as jl,ob as cn,oc as to,od as tp,oe as zq,p as rj,pa as Nl,pb as dn,pc as uo,pd as up,pe as Aq,q as sj,qa as Ol,qb as en,qc as vo,qd as vp,qe as Bq,r as tj,ra as Pl,rb as fn,rc as wo,rd as wp,re as Cq,s as uj,sa as Ql,sb as mn,sc as xo,sd as xp,se as Dq,t as vj,ta as Rl,tb as nn,tc as yo,td as yp,te as Eq,u as wj,ua as Sl,ub as on,uc as zo,ud as zp,ue as Fq,v as xj,va as Tl,vb as pn,vc as Ao,vd as Ap,ve as Gq,w as yj,wa as Ul,wb as un,wc as Bo,wd as Bp,we as Hq,x as zj,xa as Vl,xb as vn,xc as Co,xd as Cp,xe as Iq,y as Ej,ya as Wl,yb as wn,yc as Do,yd as Dp,ye as Jq,z as Fj,za as Xl,zb as xn,zc as Eo,zd as Ep,ze as Kq}from"./chunk-tjb64c7k.js";import{$e as rk,Xe as nk,Ye as ok,Ze as pk,_e as qk,af as sk,bf as tk,cf as uk,df as vk,ef as wk,ff as xk,gf as yk}from"./chunk-4jzzgnym.js";import{hf as Ln,if as Mn,jf as Nn,kf as On,lf as Pn,mf as Qn}from"./chunk-c4aez3fr.js";import{nf as an,of as bn}from"./chunk-n3ggrhb3.js";import{pf as gn}from"./chunk-dgy9fns1.js";import{Af as im,Bf as jm,qf as _l,rf as $l,sf as am,tf as bm,uf as cm,vf as dm,wf as em,xf as fm,yf as gm,zf as hm}from"./chunk-vqxmxgaj.js";import{Cf as lk,Df as mk}from"./chunk-0n4fvqm8.js";import{Ef as Ml}from"./chunk-y494rjex.js";import{Ff as pm,Gf as qm,Hf as rm,If as Im,Jf as hn,Kf as jn,Lf as kn,Mf as ln,Nf as qn,Of as rn,Pf as sn,Qf as tn}from"./chunk-sm1xqvra.js";import{$f as Uj,Rf as Kj,Sf as Lj,Tf as Mj,Uf as Nj,Vf as Oj,Wf as Pj,Xf as Qj,Yf as Rj,Zf as Sj,_f as Tj,ag as Vj,bg as Wj,cg as Xj,dg as Yj}from"./chunk-nx5qkm8k.js";import{eg as gj,gg as hj}from"./chunk-5rynsy4e.js";import{Cg as kk,mg as Zj,ng as _j,og as $j,pg as ak,qg as bk,rg as ck,sg as dk,ug as ek,vg as fk,wg as gk,xg as hk,yg as ik,zg as jk}from"./chunk-21kvpnqq.js";import{Dg as Bl,Eg as Cl,Fg as Dl,Gg as El,Hg as Hl,Ig as Ll}from"./chunk-6n317mmy.js";import{Jg as Fl,Mg as Gl}from"./chunk-ytr18qnm.js";import{$g as rl,Ug as kl,Vg as ll,Wg as ml,Xg as nl,Yg as ol,Zg as pl,_g as ql,ah as sl,bh as tl,ch as ul,dh as vl,eh as wl,fh as Il,gh as Jl,hh as Kl}from"./chunk-ypjgcb5w.js";import{ih as Wg}from"./chunk-4tmw4kjm.js";import{jh as bh,kh as ch,lh as dh,mh as eh,nh as fh,oh as gh}from"./chunk-j3jzc0xj.js";import{ph as vi,qh as wi,rh as xi,vh as yi,wh as zi,xh as Ai}from"./chunk-qrpg15eb.js";import{Ah as Ii,Bh as Ji,Ch as Ki,Dh as Li,Eh as Mi,Fh as Ni,Gh as Oi,Hh as Pi,Ih as Qi,yh as Gi,zh as Hi}from"./chunk-n3w7xxx7.js";import{Jh as li,Kh as mi,Lh as ni,Mh as oi,Nh as pi,Ph as qi,Qh as ri,Rh as si,Sh as ti,Th as ui}from"./chunk-jw1besrt.js";import{Uh as hg,Vh as ig,Wh as jg,Xh as kg,Yh as lg}from"./chunk-z6ev72qj.js";import{$h as og,Zh as mg,_h as ng,ai as pg,bi as qg}from"./chunk-72w4hhbq.js";import{ci as rg,di as sg,ei as tg,fi as ug,gi as vg,hi as wg,ii as xg}from"./chunk-snktca7b.js";import{ji as yg,ki as zg,li as Ag,mi as Bg,ni as Cg,oi as Dg}from"./chunk-s88yt309.js";import{Ai as Og,Bi as Pg,Ci as Qg,Di as Rg,qi as Eg,ri as Fg,si as Gg,ti as Hg,ui as Ig,vi as Jg,wi as Kg,xi as Lg,yi as Mg,zi as Ng}from"./chunk-74pjj8d0.js";import{Fi as Sg,Gi as Tg,Hi as Ug,Ii as Vg}from"./chunk-a6nnbnmb.js";import{Ni as If,Oi as Jf,Pi as Kf,Qi as Lf,Ri as Mf,Si as Nf,Ti as Of,Ui as Pf,Vi as Qf,Wi as Rf,Xi as Sf}from"./chunk-vrpqmd6b.js";import{Yi as Xf,Zi as Yf}from"./chunk-6jzf989m.js";import{aj as Zf}from"./chunk-r93rb19w.js";import"./chunk-efr3ejqt.js";import{ej as _f}from"./chunk-swy03mg9.js";import{fj as $f,gj as ag}from"./chunk-cq6fsp6j.js";import{hj as bg,ij as cg,jj as dg,kj as eg,lj as fg,mj as gg}from"./chunk-572ttrsj.js";import{Aj as be,nj as Qd,oj as Rd,pj as Sd,qj as Td,rj as Ud,sj as Vd,tj as Wd,uj as Xd,vj as Yd,wj as Zd,xj as _d,yj as $d,zj as ae}from"./chunk-ctba9211.js";import{Bj as Gf,Cj as Hf}from"./chunk-6rjc6687.js";import{Jj as sf,Kj as tf,Lj as uf,Mj as vf,Nj as wf,Oj as xf,Pj as yf,Qj as zf,Rj as Af,Sj as Bf,Tj as Cf,Uj as Df,Vj as Ef,Wj as Ff}from"./chunk-k6b7gpk2.js";import{ok as tq,pk as uq,qk as vq,rk as wq,sk as xq,tk as yq}from"./chunk-n43xg568.js";import{Ak as zl,Bk as Al,uk as Aj,vk as Bj,wk as Cj,xk as Dj,yk as xl,zk as yl}from"./chunk-n58aem37.js";import"./chunk-c0n802j1.js";import"./chunk-ncvd7673.js";import{$m as Hb,$n as Hc,$p as ff,$q as Kh,$r as lj,Al as ea,Am as hb,An as gc,Ao as wd,Ap as Ge,Aq as Wf,Ar as ji,Bl as fa,Bm as ib,Bn as hc,Bo as xd,Bp as He,Bq as Xg,Br as ki,Cl as ga,Cm as jb,Cn as ic,Co as yd,Cp as Ie,Cq as Yg,Cr as Bi,Dl as ha,Dm as kb,Dn as jc,Do as zd,Dp as Je,Dq as Zg,Dr as Ci,El as ia,Em as lb,En as kc,Eo as Ad,Ep as Ke,Eq as _g,Er as Di,Fm as mb,Fn as lc,Fo as Bd,Fp as Le,Fq as $g,Fr as Ei,Gn as mc,Go as Cd,Gp as Me,Gq as ah,Gr as Fi,Hl as ja,Hm as nb,Hn as nc,Ho as Dd,Hp as Ne,Hq as hh,Hr as Ri,Il as ka,Im as ob,In as oc,Io as Ed,Ip as Oe,Iq as ih,Ir as Si,Jl as la,Jm as pb,Jn as pc,Jo as Fd,Jp as Pe,Jq as jh,Jr as Ti,Kl as ma,Km as qb,Kn as qc,Ko as Gd,Kp as Qe,Kq as kh,Kr as Ui,Ll as na,Lm as rb,Ln as rc,Lo as Hd,Lp as Re,Lq as lh,Lr as Vi,Mm as sb,Mn as sc,Mo as Id,Mp as Se,Mq as mh,Mr as Wi,Nm as tb,Nn as tc,No as Jd,Np as Te,Nq as nh,Nr as Xi,Ol as qa,Om as ub,On as uc,Oo as Kd,Op as Ue,Oq as oh,Or as Yi,Pl as ra,Pm as vb,Pn as vc,Po as Ld,Pp as Ve,Pq as ph,Pr as Zi,Ql as ya,Qm as wb,Qn as wc,Qo as Md,Qp as We,Qq as qh,Qr as _i,Rl as za,Rm as xb,Rn as xc,Ro as Nd,Rp as Xe,Rq as rh,Rr as $i,Sl as Aa,Sm as yb,Sn as yc,So as Od,Sp as Ye,Sq as sh,Sr as aj,Tl as Ba,Tm as zb,Tn as zc,To as Pd,Tp as Ze,Tq as th,Tr as bj,Ul as Ca,Um as Ab,Un as Ac,Up as _e,Uq as uh,Ur as cj,Vl as Da,Vm as Bb,Vn as Bc,Vo as he,Vp as $e,Vq as vh,Vr as dj,Wl as Ea,Wm as Cb,Wn as Cc,Wp as af,Wq as wh,Wr as ej,Xl as Fa,Xm as Db,Xn as Dc,Xp as bf,Xq as xh,Xr as fj,Yl as Ga,Ym as Eb,Yn as Ec,Yp as cf,Yq as Hh,Yr as ij,Zm as Fb,Zn as Fc,Zp as df,Zq as Ih,Zr as jj,_m as Gb,_n as Gc,_p as ef,_q as Jh,_r as kj,an as Ib,ao as Ic,ap as ie,aq as gf,ar as Lh,as as mj,bm as Ha,bn as Jb,bo as Jc,bq as hf,br as Mh,bs as nj,cm as Ia,cn as Kb,co as Kc,cp as je,cq as jf,cr as Nh,cs as oj,dm as Ja,dn as Lb,do as Lc,dq as kf,dr as Oh,ds as pj,em as Ka,en as Mb,eo as Mc,ep as ke,eq as lf,er as Ph,es as qj,fm as La,fn as Nb,fo as Nc,fp as le,fq as mf,fr as Qh,gm as Ma,gn as Ob,go as Oc,gp as me,gq as nf,gr as Rh,hl as s,hn as Pb,ho as Pc,hp as ne,hq as of,hr as Sh,il as t,in as Qb,io as Qc,ip as oe,iq as pf,ir as Th,jl as u,jm as Na,jn as Rb,jo as Rc,jp as pe,jq as qf,jr as Uh,kl as v,km as Oa,kn as Sb,ko as Sc,kp as qe,kq as rf,kr as Vh,ll as w,lm as Pa,ln as Tb,lo as Tc,lp as re,lr as Wh,ml as x,mm as Qa,mn as Ub,mo as id,mp as se,mq as Tf,mr as Xh,nl as y,nm as Ra,nn as Vb,no as jd,np as te,nr as Yh,ol as z,om as Sa,on as Wb,oo as kd,op as ue,or as Zh,pl as A,pm as Ta,pn as Xb,po as ld,pp as ve,pr as _h,ql as B,qm as Ua,qn as Yb,qo as md,qp as we,qr as $h,rl as C,rm as Va,rn as Zb,ro as nd,rp as xe,rr as ai,sl as D,sm as Wa,sn as _b,so as od,sp as ye,sr as bi,tl as E,tm as Xa,tn as $b,to as pd,tp as ze,tr as ci,ul as F,um as Ya,un as ac,uo as qd,up as Ae,ur as di,vl as G,vm as Za,vn as bc,vo as rd,vp as Be,vr as ei,wl as H,wm as _a,wn as cc,wo as sd,wp as Ce,wr as fi,xl as I,xm as $a,xn as dc,xo as td,xp as De,xr as gi,yl as J,yn as ec,yo as ud,yp as Ee,yq as Uf,yr as hi,zl as da,zm as gb,zn as fc,zo as vd,zp as Fe,zq as Vf,zr as ii}from"./chunk-kq4z185m.js";import{fs as d,gs as e,hs as f,is as g,js as h,ks as i,ls as j,ms as k,ns as l,os as m,ps as n,qs as o,rs as p,ss as q,ts as r}from"./chunk-by2p4by1.js";import{As as Eh,Bs as Fh,Cs as Gh,us as yh,vs as zh,ws as Ah,xs as Bh,ys as Ch,zs as Dh}from"./chunk-a2ppgamd.js";import{Ds as b,Es as c}from"./chunk-dmzc008f.js";import{Fs as oa,Gs as pa}from"./chunk-nstqd54d.js";import{Hs as ab,Is as bb,Ks as cb,Us as db,Vs as eb,Ws as fb}from"./chunk-a2yanhxh.js";import{Xs as ce,Ys as de,Zs as ee,_s as fe,bt as ge}from"./chunk-9vpqzs8r.js";import{ct as sa,dt as ta,et as ua,ft as va,gt as wa,ht as xa}from"./chunk-t0jzk81v.js";import{it as Uc,jt as Vc,kt as Wc,lt as Xc,mt as Yc,nt as Zc,ot as _c,pt as $c,qt as ad,rt as bd,st as cd,tt as dd,ut as ed,vt as fd,wt as gd,xt as hd}from"./chunk-njc6sven.js";import"./chunk-70v7vvry.js";import"./chunk-myh6j9ab.js";import{Mt as K,Nt as L,Qt as M,Vt as N,Wt as O,au as P,bu as Q,cu as R,du as S,eu as T,fu as U,gu as V,hu as W,iu as X,ju as Y,ku as Z,lu as _,mu as $,nu as aa,ou as ba,qu as ca}from"./chunk-bqdbf8k2.js";import"./chunk-ge69r310.js";import"./chunk-q891e1vj.js";export{Uj as writeNetlifyConfig,Jl as writeManifest,xk as writeImageManifest,_n as wrapComponentForHMR,Uq as withDefaults,fj as webComponentDirectiveHandler,Qo as watermark,Sp as watchViews,Hk as watchMultiple,Ik as watchEffect,Gk as watch,ge as warmImagePlaceholders,Vk as waitForStore,Hd as waitForLocale,Mn as virtualPathFor,Ui as videoDirective,cc as validators,Yq as validated,td as validateValueEnhanced,Yg as validateTemplate,Vo as validateParams,ud as validateFormEnhanced,Hp as validateFile,pd as validateFields,od as validateField,_g as validateDirective,Oc as validateCspDirectives,nj as validateConfig,Ol as validateComponentScripts,km as validateComponentProps,Wf as validateClientScript,Vg as v,Ua as usesSignalsInScript,lh as userComponentFileExists,Bg as useVirtualList,ad as useTitle,Uk as useStoreOrThrow,ro as useStore,Ej as useStorage,bq as useSlots,Gj as useSessionStorage,Zc as useSeoMeta,Wk as useRouteParams,Yk as useRouteParamOrThrow,Xk as useRouteParam,ad as usePageTitle,Ff as useOptimistic,_k as useMiddlewareValue,Zk as useMiddlewareState,Fj as useLocalStorage,Tn as useLoadingIndicator,Xc as useHead,Sg as useForm,dq as useAttrs,Jp as uploadFiles,Ip as uploadFile,Rk as updateInstance,Df as untrack,Bh as unregisterDirective,Sk as unmountInstance,$a as unescapeHtml,Pn as typecheckStxFiles,kh as transpileTypeScript,Iq as translate,w as transitionDirective,em as toUsers,dm as toUser,zo as thumbnail,Ap as thumbHashToRGBA,Bp as thumbHashToDataURL,If as templateCache,vb as syncRecordedResponse,Xn as stxClientHelpers,Ce as structuredDataDirective,Lq as stripLocalePrefix,ul as stripDocumentWrapper,pa as stripCommentsAndLiterals,Sm as stringToStream,Cc as strictCspPreset,Yd as streamingSuspenseDirective,ae as streamToResponse,Wd as streamTemplateSimple,Qd as streamTemplate,zj as stopHmrServer,am as stopBroadcasting,va as stateDirName,wa as stateDir,sf as state,mf as startsDocument,tn as startProductionServer,gn as startInteractive,$l as startBroadcasting,D as staggerDirective,To as srcsetUrls,E as springDirective,lc as splitByPipe,ql as spaNavVaryHeaders,Nn as sourcePathFor,_o as smartBatchSign,nh as slotContentHasExpressions,Yo as signUrl,ih as shouldTranspileTypeScript,wj as shouldReloadOnChange,bp as shouldRefreshSignature,xj as shouldIgnoreFile,tg as shouldCacheComponent,Do as sharpen,$q as shape,ua as setStateDir,cl as setRouteParams,dl as setMiddlewareState,fe as setImagePlaceholder,Xp as setGlobalProvide,zb as setErrorLocale,zk as setCurrentInstance,Ii as setCachedVideoResult,xi as setCachedImageResult,ri as setCached,cr as serveStxFile,er as serveMultipleStxFiles,rj as serveMarkdownFile,Dn as serveFile,fr as serveApp,Cn as serve,bo as serializeState,Im as serializeSetCookie,Fo as sepia,_c as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Yi as scopeHTML,Xi as scopeCSS,Fe as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,Jo as saturation,Wo as sanitizeParams,ec as sanitizeFilePath,fc as sanitizeExpression,gc as sanitizeDirectiveParams,dc as sanitizeDirectiveParam,hc as sanitizeComponentProps,Zb as safeExecuteAsync,Yb as safeExecute,ve as runPreProcessingMiddleware,we as runPostProcessingMiddleware,kn as runPageAction,yf as runMountCallbacks,ba as runMiddleware,Pk as runHooks,Bq as runDoctor,zf as runDestroyCallbacks,Ke as runComposers,Ko as rotate,Wg as rewriteImagesWithSiblings,wb as responseBindings,rh as resolveTemplatePath,c as resolveStxTargets,jj as resolveStxDirectories,Hq as resolveI18n,xo as resize,Ha as resetPlaceholders,Wc as resetHead,ao as resetHMRHandler,Mb as resetErrorConfig,Wq as required,La as replacePlaceholders,Qp as renderView,Ri as renderVideoComponent,za as renderVendorStyleTags,kq as renderToString,lq as renderToStream,mq as renderToDOM,zp as renderThumbhashToCanvas,yq as renderTemplateString,wq as renderTemplate,xq as renderString,Td as renderStreamingPage,dh as renderSlot,jg as renderSSRSuspense,jp as renderProtectedVideo,ip as renderProtectedImg,Xo as renderMediaUpload,vq as renderMarkdownView,zl as renderLayoutTypes,Bi as renderImgComponent,nk as renderImageComponent,cd as renderHtmlAttrs,bd as renderHead,Tp as renderEmail,ph as renderComponentWithSlot,dd as renderBodyAttrs,mo as render,Ec as relaxedCspPreset,nd as registerValidationRule,_d as registerStreamingDirectives,to as registerStoresClient,al as registerStore,De as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,Bb as registerErrorMessages,sd as registerEnhancedValidationRule,yh as registerDirective,Nc as registerCspDirectives,nm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Dk as ref,_m as redirect,rb as recordResponseStatus,sb as recordResponseHeader,xa as rebaseOntoStateDir,tb as readResponseStatus,ub as readResponseHeaders,pj as readMarkdownFile,Jf as readFileCached,Ek as reactive,Oo as quality,gp as pruneSignatureCache,ui as pruneCache,Vp as provide,uq as protectCodeBlocks,Vq as prop,Oe as processVueTemplate,zg as processVirtualListDirectives,Dg as processVirtualGridDirectives,Qi as processVideo,qd as processValidateDirective,Od as processTranslateDirective,dg as processTransitionDirectives,gg as processTransitionAttributes,gd as processTitleDirective,jb as processTemplateBindings,$f as processTeleportDirectives,hg as processSuspenseDirectives,ye as processStructuredData,Ud as processStreamDirectives,xb as processStatusDirective,Qg as processStaticDirectives,te as processStackReplacements,se as processStackPushDirectives,eh as processSlots,sl as processShell,Me as processServerBindings,ze as processSeoDirective,$d as processSectionDirectives,Re as processScopedStyles,hb as processReactiveBindings,kp as processProtectedMedia,Jg as processPartialHydrationDirectives,Vf as processOnceDirective,ue as processMiddleware,xe as processMetaDirectives,hd as processMetaDirective,qj as processMarkdownFileDirectives,wh as processMarkdownDirectives,ne as processLoops,rg as processKeepAliveDirectives,Uf as processJsonDirective,Cg as processInfiniteListDirectives,re as processIncludes,Di as processImgComponents,pk as processImageComponents,ck as processImage,fd as processHeadDirective,jd as processForms,ld as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,md as processErrorDirective,Pe as processDynamicComponents,Xg as processDirectives,Gh as processDirectiveAttributes,_f as processDeferDirectives,Sc as processCustomDirectives,Kc as processCspDirectives,ar as processComponentProps,Ga as processClientScript,kd as processBasicFormDirectives,mg as processAsyncDirectives,Tc as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Dd as preloadTranslationsBackground,Cd as preloadTranslations,Sn as preloadIslandHandlers,he as preloadIconCollection,Xl as poolStrings,hj as pluginManager,de as placeholdersWarmed,cg as performLeave,bg as performEnter,Af as pendingLifecycleCounts,Ef as peek,oe as partialsCache,Si as parseVideoDirectiveOptions,vo as parseUrl,Cp as parseThumbhashString,rc as parseSwitchBlock,bh as parseSlots,ch as parseSlotElement,wc as parseScriptDeclarations,dj as parseSFCComponent,lp as parseProtectedArgs,me as parseLoopBinding,Ci as parseImgComponent,Uh as parseImageUrl,ok as parseImageComponent,hn as parseFormBody,tc as parseExpressionWithFilters,Xm as parseCookies,sm as parseContainerSelector,oc as parseConditionalBlock,uc as parseArguments,H as parseAnimationShorthand,Xq as optional,Yl as optimizeTemplate,uk as optimizeImage,vk as optimizeDirectory,Zq as oneOf,pe as onceStore,Mk as onUpdated,gb as onUpdate,Ok as onUnmounted,hl as onServer,Kk as onMounted,wf as onMount,Pg as onHydrated,$p as onErrorCaptured,xf as onDestroy,xg as onDeactivated,gl as onClient,Lk as onBeforeUpdate,Nk as onBeforeUnmount,Jk as onBeforeMount,wg as onActivated,vp as observeElement,$m as notFound,We as normalizeCriticalHeadOrder,_p as nextTick,qm as negotiateEncoding,P as navigateTo,Qk as mountInstance,z as motionDirective,Dc as moderateCspPreset,Wl as minifyHtml,Be as metaDirective,ef as metaDedupKey,wo as mergeParams,gf as mergeHtmlAttrs,Yc as mergeHeadConfigs,Hc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,xh as markdownDirectiveHandler,oj as markdownCache,b as looksLikeGlob,Kq as localizePath,Ed as loadTranslationLazy,Kd as loadTranslation,kj as loadStxConfig,_ as loadMiddlewareFromDirectory,Kl as loadManifest,rp as loadElement,bm as loadChannels,Qq as lintStxStrict,tp as lazyLoadAll,sp as lazyLoad,C as keyframeDirective,iq as jsxs,jq as jsxDEV,hq as jsx,Zm as jsonResponse,Zd as islandDirective,Jb as isTest,vl as isSpaNavigation,ol as isSpaNavRequest,$o as isSignatureValid,Bf as isSignal,ak as isSharpAvailable,Lm as isServerEnvironment,el as isServer,Hb as isProduction,d as isPresentationalRole,op as isNativeLazySupported,tq as isMarkdownPath,Ad as isLoading,Bd as isLoaded,hh as isJavaScriptScript,pp as isIntersectionObserverSupported,ik as isImageFile,bk as isImageBackendAvailable,Md as isICUFormat,Og as isHydrated,mh as isHydrateTrigger,pb as isHttpStatus,Km as isEdgeEnvironment,Rq as isDirectiveKind,Ib as isDevelopment,Cf as isDerived,vj as isCssOnlyChange,pm as isCompressible,fl as isClient,og as isAsyncComponent,jn as isActionableMethod,Go as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Vb as inlineError,Gq as injectThemeBootstrap,Ae as injectSeoTags,Dq as injectSeo,Tf as injectRouterScript,uj as injectHotReload,fa as injectHeatmap,Ic as injectCspMetaTag,fb as injectCrosswindCSS,of as injectConfigHeadTags,Ve as injectColorModeBootScript,jf as injectCloakStyle,af as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Wp as inject,$k as initStoreRegistry,Xj as initNetlify,Un as initLoadingIndicator,qp as initLazyLoading,fn as initFile,yp as initBlurUp,Ep as initAllBlurUp,Fi as imgDirective,sk as imageDirective,rn as hydrateTemplateStream,qn as hydrateTemplate,Rn as hydrateIslands,Lg as hydrateIsland,sn as hydrateFragment,Mg as hydrateByStrategy,Ng as hydrateAll,jo as hydrate,Bn as htmlResponse,kf as hoistLeadingHeadTags,Xe as hoistColorModeBootScript,ga as heatmapDirective,ni as hashString,Sf as hashFilePath,li as hashFile,mi as hashBuffer,Ne as hasVueTemplateSyntax,le as hasVariables,oo as hasStore,Ma as hasPlaceholders,Vj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,nf as hasDocumentShell,$g as hasDirectives,h as hasDOMSupport,lk as handleImageRequest,aq as handleError,qq as h,hk as groupVariantsByFormat,Eo as grayscale,un as gitHash,Ql as getUnusedDirectives,Fd as getTranslationSync,yd as getTranslationCacheStats,Gd as getTranslationAsync,Nd as getTranslation,Qj as getTotalSize,ap as getTimeUntilExpiry,Xf as getStoreScript,po as getStoreNames,no as getStore,Jj as getStorageSize,Ij as getStorageKeys,sh as getSourceLineInfo,jh as getSharedTranspiler,g as getScreenReaderOnlyStyle,Zi as getScopeAttribute,rf as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Zg as getPositionInfo,Ja as getPlaceholderRegistry,ki as getPlaceholderCacheStats,Vc as getPageMeta,yc as getNonce,jk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,zd as getLoadingState,Id as getLoadingLocales,ce as getImagePlaceholder,dk as getImageMetadata,io as getHydrationRuntime,bl as getHydratedStoreState,yj as getHmrServer,Uc as getHead,$n as getHMRHandler,Yh as getFormatExtension,pi as getFileMtime,gk as getFallbackVariant,Db as getErrorMessage,Ab as getErrorLocale,Lb as getErrorConfig,Gb as getErrorCodeName,Ah as getDirectives,zh as getDirective,Ak as getCurrentInstance,Gc as getCspPreset,Pc as getCspHeaderName,cb as getCrosswindServeAsset,vh as getComponentCacheStats,Hi as getCachedVideoResult,ep as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,ii as getCachedPlaceholder,wi as getCachedImageResult,qi as getCached,ti as getCacheStats,_e as getBuildId,_l as getBroadcastServer,Xh as getBestVariant,Qa as getAllFilters,Lh as generateWidthSrcset,Ag as generateVirtualListCSS,Lp as generateVideoPreview,vd as generateValidationScript,Mp as generateUploadRuntime,Rl as generateTreeShakenBundle,fg as generateTransitionRuntime,eg as generateTransitionCSS,Li as generateThumbnails,bi as generateThumbhashPlaceholder,Bm as generateTemplatesDocs,lg as generateSuspenseRuntime,kg as generateSuspenseCSS,co as generateStateScript,Vh as generateSrcsetData,Ai as generateSrcset,ek as generateSrcSet,Mi as generateSpriteSheet,Up as generateSpaShell,Wh as generateSourceTags,Rh as generateSizesFromBreakpoints,Qh as generateSizesAttribute,fk as generateSizes,Ee as generateSitemapIndex,Eq as generateSitemap,np as generateSimpleMediaPicker,hp as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,Fa as generateServerDataBridge,Wi as generateScopeId,ej as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ge as generateRobotsTxt,Fq as generateRobots,zi as generateResponsiveVariants,aj as generateReactiveWebComponentTS,$i as generateReactiveWebComponent,cj as generateReactiveRuntime,bj as generateReactiveMixin,Ki as generatePoster,hi as generatePlaceholderStyle,gi as generatePlaceholderCSS,ai as generatePlaceholder,Kg as generatePartialHydrationCSS,xc as generateNonce,Rj as generateNetlifyToml,Op as generateMinifiedMediaRuntime,Np as generateMediaRuntime,mp as generateMediaManagerEmbed,Il as generateManifest,Wn as generateLoadingIndicatorHtml,xp as generateLazyLoadRuntime,Al as generateLayoutTypes,di as generateLQIP,vg as generateKeepAliveRuntime,ug as generateKeepAliveCSS,Rg as generateIslandManifest,Kp as generateImagePreview,wk as generateImageManifest,ho as generateHydrationScript,be as generateHydrationRuntime,ko as generateHydrationCSS,Eg as generateHydrationBootstrap,tj as generateHotReloadScript,ea as generateHeatmapScript,Zn as generateHMRClientScript,Ni as generateHLSManifest,eo as generateEventBindings,Ph as generateDprSrcsetWithVariableQuality,Oh as generateDprSrcset,lf as generateDocumentShell,Gm as generateDocs,Cm as generateDirectivesDocs,Fh as generateDirectiveRuntime,He as generateDefaultRobotsTxt,Oi as generateDASHManifest,Bc as generateCspMetaTag,Ac as generateCspHeader,eb as generateCrosswindCSS,fq as generateCompositionRuntime,Am as generateComponentsDocs,Fg as generateComponentManifest,ym as generateComponentDoc,fi as generateColorPlaceholder,Ue as generateColorModeBootScript,Tk as generateClientRuntime,oi as generateCacheKey,Da as generateBrowserAutoImportDestructuring,Fp as generateBlurUpRuntime,Gp as generateBlurUpCSS,ib as generateBindingsRuntime,Mh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,qg as generateAsyncComponentRuntime,pg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,Qn as formatTypecheckDiagnostics,Kn as formatTypeErrors,cn as formatStxContent,Pj as formatSize,O as formatRoutes,dn as formatMarkdownContent,Eb as formatLocalizedError,Ld as formatICU,Nb as formatFilePath,Ub as formatError,Cq as formatDoctorReport,Dm as formatDocsAsMarkdown,Fm as formatDocsAsJson,Em as formatDocsAsHtml,No as format,Vl as foldConstants,Mo as flipVertical,Lo as flipHorizontal,Bl as fingerprint,On as findRuntimeTypeDeclarations,Aq as findPantryPackage,nc as findMatchingEndTag,jc as findMatchingDelimiter,oa as findInterpolationEnd,pc as findIfBlocks,sc as findExpressions,N as findErrorPage,qc as findDirectiveBlocks,Sl as findDeadCode,Sl as findDeadBranches,tm as findContainerRegion,zm as findComponentFiles,dr as findCommonDir,Oj as filterRequiredFiles,qh as fileExists,ie as extractVariables,Gl as extractTemplateExpressions,Vd as extractStreamBoundaries,fo as extractState,fh as extractSlotContent,ke as extractScriptFromTemplate,Fl as extractScriptBlocks,Ka as extractPlaceholders,mc as extractParenthesizedExpression,qb as extractPageResponseStatus,ca as extractLayoutMetadata,ei as extractDominantColor,vc as extractDirectiveParams,ah as extractDirectiveNames,wl as extractContainerContent,wm as extractComponentProps,Gg as extractComponentName,xm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,Hg as extractBoundProps,kc as extractBalancedExpression,ya as extractAndStripCssImports,_i as extractAndScopeStyles,la as extractAndProcessEvents,Cj as externalizeSharedAssets,Dj as externalizeRepeatedAssets,Bj as externalizeHtml,_a as evaluateExpression,Ul as evaluateConstant,yb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,_b as errorRecovery,ac as errorLogger,ag as ensureTeleportTargets,pf as ensureDocumentShell,rd as enhancedValidationRules,um as enableDevTools,Tl as eliminateDeadCode,uf as effect,Uo as dprUrls,Hm as docsCommand,yl as discoverLayoutNames,wp as disconnectObserver,vm as disableDevTools,bc as devHelpers,rl as detectShell,Jm as detectRuntime,Sj as detectProjectConfig,Zh as detectFormat,Nl as detectBuildMode,tf as derived,Wj as deploy,mj as defineStxConfig,so as defineStore,cq as defineSlots,Pq as defineSiteConfig,Tq as definePropsWithValidation,Sq as defineProps,gj as definePlugin,$c as definePageMeta,R as defineMiddleware,Tg as defineForm,Zp as defineExpose,Yp as defineEmits,Ch as defineDirective,sq as defineCustomElement,pn as defineConfig,Dh as defineClientDirective,ng as defineAsyncComponent,Pp as defaultMediaConfig,yk as defaultImageConfig,wd as defaultI18nConfig,da as defaultHeatmapConfig,id as defaultFormClasses,Na as defaultFilters,Rc as defaultCspConfig,ij as defaultConfig,br as default,ab as deepMergeThemes,Qe as dedupeScopedStyles,ci as decodeThumbhash,Mc as cspNonceDirective,Lc as cspDirective,Dp as crossfadeTransition,yo as crop,yg as createVirtualList,Ti as createVideoDirective,Vm as createVercelHandler,Hn as createTypeChecker,Pd as createTranslateFilter,Rm as createTextEncoderStream,rq as createStxApp,Qm as createStreamingResponse,Xd as createStreamRenderer,qo as createStore,U as createStorageManager,S as createServerCookieManager,Ck as createScope,ig as createSSRSuspense,qf as createRouter,$ as createRouteLocation,Fn as createRoute,Dk as createRef,Ek as createReactive,eq as createProvideContext,wn as createProject,on as createProductionBuild,Ia as createPlaceholder,Zl as createOptimizedBuild,Wm as createNetlifyHandler,Kj as createNetlifyClient,aa as createMiddlewareContext,En as createMiddleware,up as createLazyObserver,sg as createKeepAliveCache,Nm as createKVNamespace,Ig as createIslandRegistry,Ei as createImgDirective,tk as createImagePlugin,mk as createImageHandler,rk as createImageDirective,ia as createHeatmapAggregator,Nj as createFileManifest,Mm as createEnvAccessor,Xb as createEnhancedError,Pm as createEdgeHandler,Om as createEdgeCache,th as createDetailedErrorMessage,Um as createDenoHandler,Tj as createDefaultNetlifyConfig,Qc as createCspHeaders,Ym as createCookie,Fk as createComputed,Bk as createComponentInstance,Tm as createCloudflareHandler,T as createClientCookieManager,Eh as createBuiltinDirectives,rq as createApp,F as createAnimationTimeline,Bo as cover,je as convertToCommonJS,Io as contrast,Ao as contain,Wb as consoleError,Kb as configureErrorHandling,lj as config,Fk as computed,rm as compressResponse,Je as composerPattern,Ie as composer,tl as composeShellWithPage,mm as componentDirective,oh as componentClientSignalNames,Hl as compileTemplate,a as collectRepeatedFlag,Mj as collectDeployFiles,Ji as clearVideoCache,xd as clearTranslationCache,Yf as clearStoreCache,Hj as clearStorage,fp as clearSignatureCache,ji as clearPlaceholderCache,qe as clearOnceStore,zc as clearNonce,Y as clearMiddleware,ee as clearImagePlaceholders,qk as clearImageCache,Cb as clearErrorMessages,Pf as clearDevCaches,Ra as clearCustomFilters,Le as clearComposers,Zf as clearComposableCache,uh as clearComponentCache,si as clearCache,Vn as cleanupLoadingIndicator,kl as classifyScript,ll as classifyAllScripts,In as checkTemplateFile,Jn as checkTemplate,Qf as checkCache,cp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,hm as channel,bn as captureScreenshots,an as captureScreenshot,Jd as cancelPendingLoads,Lj as calculateSha1,Nh as calculateOptimalWidths,Rf as cacheTemplate,Vi as buildWebComponents,Ln as buildVirtualSource,Rp as buildViews,uo as buildUrl,Rd as buildSuspenseResolveScript,Oq as buildStaticSite,Cl as buildRuntimeAsset,Dl as buildRouterAsset,Nq as buildLangPickerScript,Th as buildImageUrl,ff as buildHtmlAttrs,Ll as buildForProduction,om as buildComponentLibrary,dp as buildAuthParams,Ml as buildApp,Mq as buildAlternateLinks,nn as build,fm as broadcastPrivate,gm as broadcastPresence,cm as broadcast,Ho as brightness,Co as blur,Zo as batchSignUrls,vf as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,Po as auto,e as attributeValue,El as assetTags,ja as asInvocableStatement,_q as arrayOf,Jq as applyTranslations,yi as applyTransformations,gh as applySlots,lm as applyPropDefaults,So as applyPreset,hf as applyHtmlAttrs,ed as applyHead,Za as applyFilters,pl as appendVary,Fc as apiCspPreset,y as animationGroupDirective,Pi as analyzeVideo,Pl as analyzeUsage,il as analyzeTemplate,jl as analyzeProject,Pl as analyzeDirectiveUsage,mb as analyticsDirective,zn as addStore,yn as addPage,Jc as addNonceToInlineContent,An as addLayout,xn as addComponent,ln as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Mf as __setSignalsGeneratorsForTest,$e as __setBuildIdForTest,Gi as VideoProcessorCache,Ug as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,ic as Tokenizer,Gn as TemplateTypeChecker,en as TEMPLATE_PRESETS,Tb as StxValidationError,Pb as StxSyntaxError,Rb as StxSecurityError,Qb as StxRuntimeError,Sb as StxFileError,Ob as StxError,nq as Show,Sd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,ml as SPA_NAV_HEADER,nb as RESPONSE_STATUS_KEY,ob as RESPONSE_HEADERS_KEY,mn as ProductionBuild,pq as Portal,vn as PROJECT_TEMPLATES,Ro as PRESETS,lo as MemorySessionStore,Kh as MIME_TYPES,Hh as MEDIA_DEFAULT_WIDTHS,Jh as MEDIA_DEFAULT_FORMATS,xl as LAYOUT_TYPES_FILE,vi as ImageProcessorCache,kk as ImageProcessingError,go as HydrationRuntime,sj as HotReloadServer,ha as HeatmapAggregator,df as HTML_CLASS_MARKER,cf as HTML_ATTRS_MARKER,gq as Fragment,oq as For,nl as FRAGMENT_CACHE_CONTROL,$b as ErrorLogger,Fb as ErrorCodes,Aj as EXTERNALIZED_ASSET_DIR,Yj as DeployError,Zj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,$j as DEFAULT_QUALITY,_h as DEFAULT_PLACEHOLDER_OPTIONS,_j as DEFAULT_FORMATS,Ih as DEFAULT_DPR_VALUES,Yn as ComponentHMRHandler,Sh as COMMON_SIZES,Se as COLOR_MODE_BOOT_MARKER,Te as COLOR_MODE_BOOT_GLOBAL,bf as CLOAK_STYLE,jm as BroadcastServer,im as Broadcast,Ye as BUILD_ID_META,Ze as BUILD_ID_HEADER,$h as BLUR_UP_CSS,zq as $path};
|