@stacksjs/stx 0.2.266 → 0.2.268

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.
Files changed (63) hide show
  1. package/dist/app-shell.js +5 -24
  2. package/dist/{chunk-scdxk8nn.js → chunk-0a2dq7g9.js} +1 -1
  3. package/dist/{chunk-nwq01xh0.js → chunk-15x3b9tp.js} +2 -2
  4. package/dist/{chunk-dpgp6rzq.js → chunk-1c0yy9rs.js} +1 -1
  5. package/dist/{chunk-7cts329z.js → chunk-2b4g32yv.js} +1 -1
  6. package/dist/{chunk-6g4mnrr0.js → chunk-477zvh3f.js} +2 -2
  7. package/dist/{chunk-6yphtg3q.js → chunk-50gk2vsn.js} +2 -2
  8. package/dist/{chunk-pbsfbgx7.js → chunk-5d4csjhx.js} +1 -1
  9. package/dist/{chunk-aagn8j9e.js → chunk-5k1bec90.js} +108 -108
  10. package/dist/{chunk-mv0syvrg.js → chunk-6kcz7bg6.js} +1 -1
  11. package/dist/{chunk-9rkcrzj4.js → chunk-7jpq01y1.js} +1 -1
  12. package/dist/{chunk-nfykda12.js → chunk-868ep3pm.js} +2 -2
  13. package/dist/{chunk-nswz1rkm.js → chunk-8n89zhmq.js} +2 -2
  14. package/dist/{chunk-2ed60g20.js → chunk-95bfzrx2.js} +2 -2
  15. package/dist/{chunk-xkb16kmv.js → chunk-9asehtpb.js} +1 -1
  16. package/dist/{chunk-q5et8k2d.js → chunk-9th0hyk5.js} +1 -1
  17. package/dist/{chunk-k4m48h62.js → chunk-a3drgebc.js} +2 -2
  18. package/dist/{chunk-p9ase2nx.js → chunk-bn1e010c.js} +1 -1
  19. package/dist/{chunk-d3v3p15c.js → chunk-bwf0xaqc.js} +1 -1
  20. package/dist/{chunk-x2mke7a1.js → chunk-c17r76es.js} +1 -1
  21. package/dist/{chunk-k5c19t7e.js → chunk-cg8dd896.js} +1 -1
  22. package/dist/{chunk-78bm61kd.js → chunk-chte720d.js} +1 -1
  23. package/dist/{chunk-a78tzerx.js → chunk-d867gwtk.js} +1 -1
  24. package/dist/{chunk-tybdapd3.js → chunk-e1a1c5b9.js} +1 -1
  25. package/dist/{chunk-0j9hrzjj.js → chunk-e6tvnnnz.js} +1 -1
  26. package/dist/{chunk-v9crchhq.js → chunk-ea5ab7zt.js} +1 -1
  27. package/dist/{chunk-mcn9mwzv.js → chunk-erjf0z2d.js} +1 -1
  28. package/dist/{chunk-mb0kqnwf.js → chunk-eszybcp6.js} +1 -1
  29. package/dist/{chunk-mbvkvac6.js → chunk-fpkgcpey.js} +18 -18
  30. package/dist/{chunk-xpsxwbw0.js → chunk-fwgqz5vv.js} +1 -1
  31. package/dist/{chunk-8evws5cc.js → chunk-gaqvk74x.js} +1 -1
  32. package/dist/{chunk-4wnnet1k.js → chunk-h6xxqg0h.js} +1 -1
  33. package/dist/{chunk-r9z71gj0.js → chunk-hzwvszyg.js} +1 -1
  34. package/dist/{chunk-5jcsg2mc.js → chunk-j135b7xt.js} +1 -1
  35. package/dist/{chunk-ym3r8ktq.js → chunk-jcped0kt.js} +1 -1
  36. package/dist/{chunk-f3k5xbhk.js → chunk-jhfmkke9.js} +1 -1
  37. package/dist/{chunk-fcv00xs9.js → chunk-kcwa9cxw.js} +1 -1
  38. package/dist/{chunk-a95rrp0j.js → chunk-khfszwjy.js} +1 -1
  39. package/dist/{chunk-2qsa4h1t.js → chunk-m87wfz2b.js} +2 -2
  40. package/dist/{chunk-fn9yw31x.js → chunk-mync09v4.js} +1 -1
  41. package/dist/{chunk-c1r9q5pk.js → chunk-p557qcrk.js} +1 -1
  42. package/dist/{chunk-qf5grrg1.js → chunk-qmpsyysd.js} +1 -1
  43. package/dist/{chunk-g4z7gah7.js → chunk-ref9c9hn.js} +1 -1
  44. package/dist/{chunk-jb7h4qgh.js → chunk-rzdar1x9.js} +1 -1
  45. package/dist/{chunk-cd4v7xyr.js → chunk-sfha6xsd.js} +1 -1
  46. package/dist/chunk-t35x61f5.js +30 -0
  47. package/dist/{chunk-ykxs16y7.js → chunk-v5qv7q0y.js} +1 -1
  48. package/dist/{chunk-z66a9nnd.js → chunk-v9xkrwxt.js} +1 -1
  49. package/dist/{chunk-gn48cpgb.js → chunk-vnrhn6b0.js} +1 -1
  50. package/dist/{chunk-6g7m08rv.js → chunk-wnt3yvxv.js} +1 -1
  51. package/dist/{chunk-n3jgypjf.js → chunk-wrg838f0.js} +1 -1
  52. package/dist/{chunk-4mw2kfqd.js → chunk-yax48zgv.js} +1 -1
  53. package/dist/{chunk-yxp7wv61.js → chunk-z8btarwy.js} +1 -1
  54. package/dist/{chunk-behbakfv.js → chunk-zr2rkgag.js} +1 -1
  55. package/dist/cli.js +10 -10
  56. package/dist/component-renderer.js +4 -4
  57. package/dist/craft-entry.js +1 -1
  58. package/dist/craft.js +1 -1
  59. package/dist/fragment-container.js +15 -1
  60. package/dist/pwa.js +1 -1
  61. package/dist/ssg.js +2 -2
  62. package/package.json +5 -5
  63. package/dist/chunk-a7x7dmtf.js +0 -30
@@ -40,4 +40,4 @@ ${O}
40
40
  ${O}
41
41
  </div>`}}if(G.priority&&C){let W=P(C.format);O=`<link rel="preload" as="image" href="${k(C.url)}" type="${W}" />
42
42
  `+O}return O}function k(X){return X.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var UG=$G();import v from"fs";import A from"path";function LG(X={}){let{inputDirs:Z=["public","src/assets","assets"],outputDir:G="dist/images",baseUrl:J="/images",formats:q=w,widths:$=L,quality:K=x,placeholder:Q="none",concurrency:Y=4,cache:M=!0,cacheDir:N=".stx/image-cache",referencedOnly:j=!1,verbose:C=!1}=X,B={imageReferences:new Set,processedImages:new Map,stats:{totalImages:0,optimizedImages:0,savedBytes:0,variants:0}};return{name:"stx-image-optimization",async setup(V){if(!await F()){console.warn("[stx-images] no image backend available, optimization disabled");return}if(M)await v.promises.mkdir(N,{recursive:!0});if(C){let W=await p();console.log("[stx-images] Plugin initialized"),console.log(` Backend: ${W?"sharp (native fast path) + ts-images":"ts-images (pure TS)"}`),console.log(` Input dirs: ${Z.join(", ")}`),console.log(` Output dir: ${G}`),console.log(` Formats: ${q.join(", ")}`),console.log(` Widths: ${$.join(", ")}`)}},async buildStart(){B.imageReferences.clear(),B.processedImages.clear(),B.stats={totalImages:0,optimizedImages:0,savedBytes:0,variants:0}},async transform(V,O){if(O.endsWith(".html")||O.endsWith(".stx")){let W=wG(V);for(let H of W)B.imageReferences.add(H)}if(V.includes("<Image")||V.includes("@image"))return await kG(V,{formats:q,widths:$,quality:K,placeholder:Q,outputDir:G,baseUrl:J,processedImages:B.processedImages});return V},async buildEnd(V){if(!await F())return;await v.promises.mkdir(G,{recursive:!0});let W=[];for(let R of Z){if(!v.existsSync(R))continue;let _=await KG(R);W.push(..._)}let H=j?W.filter((R)=>xG(R,B.imageReferences)):W;if(B.stats.totalImages=H.length,C)console.log(`[stx-images] Processing ${H.length} images...`);let z=qG(H,Y);for(let R of z)await Promise.all(R.map(async(_)=>{try{let E=await T(_,{formats:q,widths:$,quality:K,placeholder:Q,outputDir:G,baseUrl:J});B.processedImages.set(_,E),B.stats.optimizedImages++,B.stats.variants+=E.variants.length;let S=v.statSync(_).size,b=o(E.variants);if(B.stats.savedBytes+=Math.max(0,S-b/E.variants.length),C)console.log(` \u2713 ${A.basename(_)} \u2192 ${E.variants.length} variants`)}catch(E){console.error(`[stx-images] Error processing ${_}:`,E)}}));if(console.log("[stx-images] Optimization complete:"),console.log(` Images: ${B.stats.optimizedImages}/${B.stats.totalImages}`),console.log(` Variants: ${B.stats.variants}`),B.stats.savedBytes>0)console.log(` Saved: ~${a(B.stats.savedBytes)}`)}}}function wG(X){let Z=[],G=/src=["']([^"']+\.(jpg|jpeg|png|webp|avif|gif))["']/gi,J;while((J=G.exec(X))!==null)Z.push(J[1]);let q=/<Image[^>]+src=["']([^"']+)["']/gi;while((J=q.exec(X))!==null)Z.push(J[1]);let $=/@image\s*\(\s*['"]([^'"]+)['"]/gi;while((J=$.exec(X))!==null)Z.push(J[1]);let K=/background(?:-image)?:\s*url\(["']?([^"')]+\.(jpg|jpeg|png|webp|avif|gif))["']?\)/gi;while((J=K.exec(X))!==null)Z.push(J[1]);return Z}function xG(X,Z){let G=A.basename(X);for(let J of Z)if(J.endsWith(G)||J.includes(G))return!0;return!1}async function kG(X,Z){return X}async function KG(X){let Z=[];async function G(J){let q=await v.promises.readdir(J,{withFileTypes:!0});for(let $ of q){let K=A.join(J,$.name);if($.isDirectory())await G(K);else if($.isFile()&&i(K))Z.push(K)}}return await G(X),Z}function qG(X,Z){let G=[];for(let J=0;J<X.length;J+=Z)G.push(X.slice(J,J+Z));return G}async function FG(X,Z,G={}){if(!await F())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");return T(X,{...G,outputDir:Z})}async function SG(X,Z,G={}){let{formats:J=w,widths:q=L,quality:$=x,placeholder:K="none",concurrency:Q=4,verbose:Y=!1}=G;if(!await F())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");await v.promises.mkdir(Z,{recursive:!0});let N=await KG(X),j=[],C={totalImages:N.length,optimizedImages:0,savedBytes:0,variants:0},B=qG(N,Q);for(let V of B){let O=await Promise.all(V.map(async(W)=>{try{let H=await T(W,{formats:J,widths:q,quality:$,placeholder:K,outputDir:Z,baseUrl:"/"});if(C.optimizedImages++,C.variants+=H.variants.length,Y)console.log(` \u2713 ${A.basename(W)}`);return H}catch(H){return console.error(`Error processing ${W}:`,H),null}}));j.push(...O.filter((W)=>W!==null))}return{processed:j,stats:C}}function YG(X){let Z={};for(let G of X)Z[G.src]={variants:G.variants,placeholder:G.placeholder};return Z}async function PG(X,Z){let G=YG(X);await Bun.write(Z,JSON.stringify(G,null,2))}var cG={enabled:!0,widths:[320,640,768,1024,1280,1536,1920],formats:["webp","jpeg"],quality:80,devOptimize:!1,cacheDir:".stx/image-cache",placeholder:"none",inputDirs:["public","src/assets","assets"],outputDir:"dist/images",baseUrl:"/images"};
43
- export{HG as mf,JG as nf,jG as of,CG as pf,$G as qf,UG as rf,LG as sf,FG as tf,SG as uf,YG as vf,PG as wf,cG as xf};
43
+ export{HG as kf,JG as lf,jG as mf,CG as nf,$G as of,UG as pf,LG as qf,FG as rf,SG as sf,YG as tf,PG as uf,cG as vf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./chunk-c1r9q5pk.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
2
+ import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./chunk-p557qcrk.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Rf as p}from"./chunk-6yphtg3q.js";import{Hg as a,Jg as JF,Kg as ZF,Lg as qF}from"./chunk-a7x7dmtf.js";import{sj as C,tj as D}from"./chunk-gej3rmfy.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{$o as o,Bq as FF,Fq as c,Nm as u,as as n,cs as N,fm as l,gq as e,hm as d,uq as t}from"./chunk-mbvkvac6.js";import{gt as r}from"./chunk-jb7h4qgh.js";import{Mu as S,Ou as WF}from"./chunk-5wkwhjjn.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
2
+ import{Pf as p}from"./chunk-50gk2vsn.js";import{Hg as a,Jg as JF,Kg as ZF,Lg as qF}from"./chunk-t35x61f5.js";import{sj as C,tj as D}from"./chunk-gej3rmfy.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{$o as o,Bq as FF,Fq as c,Nm as u,as as n,cs as N,fm as l,gq as e,hm as d,uq as t}from"./chunk-fpkgcpey.js";import{gt as r}from"./chunk-rzdar1x9.js";import{Mu as S,Ou as WF}from"./chunk-5wkwhjjn.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
3
3
  [stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
4
- export{g as Hf,f as If,m as Jf,UF as Kf,i as Lf,lF as Mf};
4
+ export{g as Ff,f as Gf,m as Hf,UF as If,i as Jf,lF as Kf};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Ag as t,Bg as e,Dg as b,Mg as JJ}from"./chunk-a7x7dmtf.js";import{Am as v,Qm as u,Rm as l,bp as o,jm as y,km as P,tm as x,tp as g}from"./chunk-mbvkvac6.js";import{Ku as s,Ou as OJ,hu as a}from"./chunk-5wkwhjjn.js";import{Yu as R}from"./chunk-f8wjdg40.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-78bm61kd.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-g4z7gah7.js"),{defaultConfig:z}=await import("./chunk-k5c19t7e.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-78bm61kd.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
3
- export{WJ as lg,YJ as mg,i as ng,q as og,KJ as pg,f as qg,h as rg,m as sg,wJ as tg,d as ug,AJ as vg,mJ as wg};
2
+ import{Ag as t,Bg as e,Dg as b,Mg as JJ}from"./chunk-t35x61f5.js";import{Am as v,Qm as u,Rm as l,bp as o,jm as y,km as P,tm as x,tp as g}from"./chunk-fpkgcpey.js";import{Ku as s,Ou as OJ,hu as a}from"./chunk-5wkwhjjn.js";import{Yu as R}from"./chunk-f8wjdg40.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-chte720d.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-ref9c9hn.js"),{defaultConfig:z}=await import("./chunk-cg8dd896.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-chte720d.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
3
+ export{WJ as jg,YJ as kg,i as lg,q as mg,KJ as ng,f as og,h as pg,m as qg,wJ as rg,d as sg,AJ as tg,mJ as ug};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{tp as V}from"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import{Yu as F}from"./chunk-f8wjdg40.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
2
+ import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{tp as V}from"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import{Yu as F}from"./chunk-f8wjdg40.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
3
3
  <script>
4
4
  (function() {
5
5
  const ws = new WebSocket('${z}');
@@ -556,7 +556,7 @@ window.__stxPerformance = {
556
556
 
557
557
  window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
558
558
  </script>
559
- `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-g4z7gah7.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-g4z7gah7.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
559
+ `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-ref9c9hn.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-ref9c9hn.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
560
560
  `)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
561
561
  `)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
562
562
  <html lang="en" class="${Z.darkClass||"dark"}">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Bp as a,Cp as b,Dp as c,Ep as d,Fp as e,Gp as f}from"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{f as processStackReplacements,e as processStackPushDirectives,d as processIncludes,a as partialsCache,b as onceStore,c as clearOnceStore};
2
+ import{Bp as a,Cp as b,Dp as c,Ep as d,Fp as e,Gp as f}from"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{f as processStackReplacements,e as processStackPushDirectives,d as processIncludes,a as partialsCache,b as onceStore,c as clearOnceStore};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{dp as a,ep as b,fp as c,gp as d,hp as e,ip as f,jp as g,kp as h,lp as i,mp as j,np as k,op as l}from"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{l as stripStxRuntimeImports,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};
2
+ import{dp as a,ep as b,fp as c,gp as d,hp as e,ip as f,jp as g,kp as h,lp as i,mp as j,np as k,op as l}from"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{l as stripStxRuntimeImports,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,5 +1,5 @@
1
1
  // @bun
2
- import{Nf as v,Of as i,Pf as t,Sf as e,Tf as HH,Uf as KH,Vf as QH,Wf as YH,Xf as ZH}from"./chunk-6yphtg3q.js";import{Xi as s}from"./chunk-6g7m08rv.js";import{Ql as a}from"./chunk-mbvkvac6.js";import{st as h}from"./chunk-bby4emay.js";import{Nt as f}from"./chunk-sde45gh3.js";import{existsSync as $H,readFileSync as qH}from"fs";import J from"path";function GH(K,Q="",V=""){let L=K.startLine>1?`
2
+ import{Lf as v,Mf as i,Nf as t,Qf as e,Rf as HH,Sf as KH,Tf as QH,Uf as YH,Vf as ZH}from"./chunk-50gk2vsn.js";import{Xi as s}from"./chunk-wnt3yvxv.js";import{Ql as a}from"./chunk-fpkgcpey.js";import{st as h}from"./chunk-bby4emay.js";import{Nt as f}from"./chunk-sde45gh3.js";import{existsSync as $H,readFileSync as qH}from"fs";import J from"path";function GH(K,Q="",V=""){let L=K.startLine>1?`
3
3
  `.repeat(K.startLine-1):"",N=t(i(K.code)),X=K.kind==="client"||K.kind==="plain"?HH(Q,K.code):"";return QH(`${L+N}
4
4
  ${X}
5
5
  export {}
@@ -16,4 +16,4 @@ ${b.trim().split(`
16
16
  `).slice(0,12).join(`
17
17
  `)||"(no output)"}`:void 0;return{diagnostics:D,checkedFiles:q,blockCount:B,expressionCount:T,failure:XH}}function vH(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(`
18
18
  `)}
19
- export{GH as yf,r as zf,yH as Af,UH as Bf,PH as Cf,vH as Df};
19
+ export{GH as wf,r as xf,yH as yf,UH as zf,PH as Af,vH as Bf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{kg as a}from"./chunk-6g4mnrr0.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as buildApp};
2
+ import{ig as a}from"./chunk-477zvh3f.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as buildApp};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Xi as a,Yi as b,Zi as c}from"./chunk-6g7m08rv.js";import"./chunk-9n0gvfrg.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
2
+ import{Xi as a,Yi as b,Zi as c}from"./chunk-wnt3yvxv.js";import"./chunk-9n0gvfrg.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Gf as a}from"./chunk-nwq01xh0.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as startInteractive};
2
+ import{Ef as a}from"./chunk-15x3b9tp.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as startInteractive};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{as as a,bs as b,cs as c,ds as d,es as e,fs as f}from"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
2
+ import{as as a,bs as b,cs as c,ds as d,es as e,fs as f}from"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.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{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-fn9yw31x.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
2
+ import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-mync09v4.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as ml,$a as dn,$b as wo,$c as wp,$d as wq,A as Yj,Aa as om,Ab as Qn,Ac as Xo,Ad as Xp,Ae as br,B as Zj,Ba as pm,Bb as Rn,Bc as Yo,Bd as Yp,Be as cr,C as _j,Ca as Cm,Cb as Sn,Cc as Zo,Cd as Zp,Ce as dr,D as $j,Da as Dm,Db as Tn,Dc as _o,Dd as _p,De as er,E as Rk,Ea as Em,Eb as Un,Ec as $o,Ed as $p,Ee as fr,F as Sk,Fa as Fm,Fb as Vn,Fc as ap,Fd as aq,Fe as gr,G as Tk,Ga as Gm,Gb as Wn,Gc as bp,Gd as bq,Ge as hr,H as Uk,Ha as Hm,Hb as Xn,Hc as cp,Hd as cq,He as ir,I as Vk,Ia as Lm,Ib as Yn,Ic as dp,Id as dq,Ie as jr,J as Wk,Ja as Mm,Jb as Zn,Jc as ep,Jd as eq,Je as kr,K as Xk,Ka as Nm,Kb as _n,Kc as fp,Kd as fq,Ke as lr,L as Yk,La as Om,Lb as $n,Lc as gp,Ld as gq,Le as mr,M as Zk,Ma as Pm,Mb as ao,Mc as hp,Md as hq,Me as nr,N as _k,Na as Qm,Nb as bo,Nc as ip,Nd as iq,Ne as or,O as $k,Oa as Rm,Ob as jo,Oc as jp,Od as jq,Oe as pr,P as al,Pa as Sm,Pb as ko,Pc as kp,Pd as kq,Pe as qr,Q as bl,Qa as Tm,Qb as lo,Qc as lp,Qd as lq,Qe as rr,R as cl,Ra as Um,Rb as mo,Rc as mp,Rd as mq,Re as sr,S as dl,Sa as Vm,Sb as no,Sc as np,Sd as nq,Se as tr,T as el,Ta as Wm,Tb as oo,Tc as op,Td as oq,Te as ur,U as fl,Ua as Xm,Ub as po,Uc as pp,Ud as pq,Ue as vr,V as gl,Va as Ym,Vb as qo,Vc as qp,Vd as qq,Ve as wr,W as hl,Wa as Zm,Wb as ro,Wc as rp,Wd as rq,We as xr,X as il,Xa as _m,Xb as so,Xc as sp,Xd as sq,Xe as yr,Y as jl,Ya as an,Yb as to,Yc as tp,Yd as tq,Ye as zr,Z as kl,Za as bn,Zb as uo,Zc as up,Zd as uq,_ as ll,_a as cn,_b as vo,_c as vp,_d as vq,aa as nl,ab as en,ac as xo,ad as xp,ae as xq,ba as ol,bb as fn,bc as yo,bd as yp,be as yq,ca as pl,cb as gn,cc as zo,cd as zp,ce as zq,da as ql,db as hn,dc as Ao,dd as Ap,de as Aq,ea as rl,eb as jn,ec as Bo,ed as Bp,ee as Bq,fa as sl,fb as kn,fc as Co,fd as Cp,fe as Cq,ga as tl,gb as ln,gc as Do,gd as Dp,ge as Dq,ha as ul,hb as mn,hc as Eo,hd as Ep,he as Eq,ia as vl,ib as nn,ic as Fo,id as Fp,ie as Fq,ja as wl,jb as on,jc as Go,jd as Gp,je as Gq,ka as xl,kb as pn,kc as Ho,kd as Hp,ke as Hq,la as yl,lb as qn,lc as Io,ld as Ip,le as Iq,ma as zl,mb as rn,mc as Jo,md as Jp,me as Jq,na as Al,nb as sn,nc as Ko,nd as Kp,ne as Kq,o as a,oa as Bl,ob as tn,oc as Lo,od as Lp,oe as Lq,p as Jj,pa as dm,pb as wn,pc as Mo,pd as Mp,pe as Sq,q as Kj,qa as em,qb as xn,qc as No,qd as Np,qe as Tq,r as Lj,ra as fm,rb as yn,rc as Oo,rd as Op,re as Uq,s as Mj,sa as gm,sb as zn,sc as Po,sd as Pp,se as Vq,t as Nj,ta as hm,tb as Fn,tc as Qo,td as Qp,te as Wq,u as Oj,ua as im,ub as Gn,uc as Ro,ud as Rp,ue as Xq,v as Pj,va as jm,vb as Hn,vc as So,vd as Sp,ve as Yq,w as Qj,wa as km,wb as In,wc as To,wd as Tp,we as Zq,x as Rj,xa as lm,xb as Nn,xc as Uo,xd as Up,xe as _q,y as Wj,ya as mm,yb as On,yc as Vo,yd as Vp,ye as $q,z as Xj,za as nm,zb as Pn,zc as Wo,zd as Wp,ze as ar}from"./chunk-aagn8j9e.js";import{$e as ck,Ze as ak,_e as bk,af as dk,bf as ek,cf as fk,df as gk,ef as hk,ff as ik,gf as jk,hf as kk,if as lk,jf as mk,kf as nk,lf as ok}from"./chunk-ym3r8ktq.js";import{mf as Fk,nf as Gk,of as Hk,pf as Ik,qf as Jk,rf as Kk,sf as Lk,tf as Mk,uf as Nk,vf as Ok,wf as Pk,xf as Qk}from"./chunk-mv0syvrg.js";import{Af as fo,Bf as go,Cf as ho,Df as io,yf as co,zf as eo}from"./chunk-k4m48h62.js";import{Ef as un,Ff as vn}from"./chunk-pbsfbgx7.js";import{Gf as An}from"./chunk-nwq01xh0.js";import{Hf as Tl,If as Ul,Jf as Vl,Kf as Wl,Lf as Zl,Mf as bm}from"./chunk-nfykda12.js";import{Nf as Xl,Qf as Yl}from"./chunk-6yphtg3q.js";import{$f as tm,Yf as qm,Zf as rm,_f as sm,ag as um,bg as vm,cg as wm,dg as xm,eg as ym,fg as zm,gg as Am,hg as Bm}from"./chunk-0j9hrzjj.js";import{ig as Dk,jg as Ek}from"./chunk-behbakfv.js";import{kg as cm}from"./chunk-6g4mnrr0.js";import{lg as Im,mg as Jm,ng as Km,og as $m,pg as Bn,qg as Cn,rg as Dn,sg as En,tg as Jn,ug as Kn,vg as Ln,wg as Mn}from"./chunk-nswz1rkm.js";import{Ag as Fl,Bg as Gl,Cg as Hl,Dg as Il,Eg as Jl,Fg as Kl,Gg as Ll,Hg as Ml,Ig as Nl,Jg as Ol,Kg as _l,Lg as $l,Mg as am,xg as Cl,yg as Dl,zg as El}from"./chunk-a7x7dmtf.js";import{Ng as Yi,Og as Zi,Pg as _i,Qg as $i,Rg as aj,Sg as bj,Tg as cj,Ug as dj,Vg as ej,Wg as fj,Xg as gj}from"./chunk-9y175wxc.js";import{Yg as yj,_g as zj}from"./chunk-f5v2qf95.js";import{eh as pk,fh as qk,gh as rk,hh as sk,ih as tk,jh as uk,kh as vk,mh as wk,nh as xk,oh as yk,ph as zk,qh as Ak,rh as Bk,uh as Ck}from"./chunk-4ay1ymgp.js";import{vh as ih,wh as jh,xh as kh,yh as lh}from"./chunk-49kk0s96.js";import{Dh as mh}from"./chunk-w3ycm4na.js";import{Eh as th,Fh as uh,Gh as vh,Hh as wh,Ih as xh,Jh as yh}from"./chunk-4mw2kfqd.js";import{Kh as Ni,Lh as Oi,Mh as Pi,Qh as Qi,Rh as Ri,Sh as Si}from"./chunk-8jvmjzmr.js";import{$h as Ki,Th as Di,Uh as Ei,Vh as Fi,Wh as Gi,Xh as Hi,Zh as Ii,_h as Ji,ai as Li,bi as Mi}from"./chunk-74cv4ta1.js";import{ci as tg,di as ug,ei as vg,fi as wg,gi as xg,hi as yg}from"./chunk-wcm80anz.js";import{ii as zg,ji as Ag,ki as Bg,li as Cg,mi as Dg}from"./chunk-y7m2dpd3.js";import{ni as Eg,oi as Fg,pi as Gg,qi as Hg,ri as Ig}from"./chunk-9y0g8kzt.js";import{si as Jg,ti as Kg,ui as Lg,vi as Mg,wi as Ng,xi as Og,yi as Pg}from"./chunk-t6nseeb9.js";import{Ai as Rg,Bi as Sg,Ci as Tg,Di as Ug,Ei as Vg,zi as Qg}from"./chunk-xttsqmkm.js";import{Gi as Wg,Hi as Xg,Ii as Yg,Ji as Zg,Ki as _g,Li as $g,Mi as ah,Ni as bh,Oi as ch,Pi as dh,Qi as eh,Ri as fh,Si as gh,Ti as hh}from"./chunk-54st8g2j.js";import{Vi as ng,Wi as og}from"./chunk-8evws5cc.js";import{Zi as pg}from"./chunk-6g7m08rv.js";import"./chunk-9n0gvfrg.js";import{bj as qg}from"./chunk-7q9mwh4v.js";import{cj as rg,dj as sg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-fn9yw31x.js";import{sj as Qe,tj as Re}from"./chunk-gej3rmfy.js";import{Aj as Ce,Bj as De,Cj as Ee,Dj as Fe,Ej as Ge,Fj as He,Gj as Ie,Hj as Je,Ij as Ke,Jj as Le,Kj as Me,Lj as Ne,Mj as Oe,Nj as Pe}from"./chunk-w95sp0k9.js";import{Oj as Se,Pj as Te,Qj as Ue,Rj as Ve,Sj as We,Tj as Xe,Uj as Ye,Vj as Ze,Wj as _e,Xj as $e,Yj as af}from"./chunk-yxp7wv61.js";import{qk as Mq,rk as Nq,sk as Oq,tk as Pq,uk as Qq,vk as Rq}from"./chunk-2qsa4h1t.js";import{Ak as Pl,Bk as Ql,Ck as Rl,Dk as Sl,wk as Sj,xk as Tj,yk as Uj,zk as Vj}from"./chunk-1m4sa11y.js";import"./chunk-58f0mthg.js";import"./chunk-c1r9q5pk.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Jf,$q as Ph,$r as xj,Al as J,Am as qb,An as vc,Ao as Ld,Ap as hf,Aq as ig,Ar as xi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as jf,Bq as jg,Br as yi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cp as kf,Cq as kg,Cr as zi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as lf,Dq as lg,Dr as Ai,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as mf,Eq as mg,Er as Bi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as nf,Fq as nh,Fr as Ci,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as of,Gq as oh,Gr as Ti,Hm as Db,Hn as Cc,Ho as Sd,Hp as pf,Hq as ph,Hr as Ui,Im as Eb,In as Dc,Io as Td,Ip as qf,Iq as qh,Ir as Vi,Jl as za,Jn as Ec,Jo as Ud,Jp as rf,Jq as rh,Jr as Wi,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as sf,Kq as sh,Kr as Xi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as tf,Lq as zh,Lr as hj,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as uf,Mq as Ah,Mr as ij,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as vf,Nq as Bh,Nr as jj,Om as Jb,On as Jc,Oo as Zd,Op as wf,Oq as Ch,Or as kj,Pm as Kb,Pn as Kc,Po as _d,Pp as xf,Pq as Dh,Pr as lj,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as yf,Qq as Eh,Qr as mj,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as zf,Rq as Fh,Rr as nj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as Af,Sq as Gh,Sr as oj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as Bf,Tq as Hh,Tr as pj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Cf,Uq as Ih,Ur as qj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Df,Vq as Jh,Vr as rj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Ef,Wq as Kh,Wr as sj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Ff,Xq as Lh,Xr as tj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as ze,Yp as Gf,Yq as Mh,Yr as uj,Zl as Va,Zm as Ub,Zn as Uc,Zp as Hf,Zq as Nh,Zr as vj,_l as Wa,_m as Vb,_n as Vc,_p as If,_q as Oh,_r as wj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as Kf,ar as Zh,as as Aj,bn as Yb,bo as Yc,bq as Lf,br as _h,bs as Bj,cn as Zb,co as Zc,cp as bf,cq as Mf,cr as $h,cs as Cj,dn as _b,do as _c,dq as Nf,dr as ai,ds as Dj,en as $b,eo as $c,eq as Of,er as bi,es as Ej,fm as Za,fn as ac,fo as ad,fq as Pf,fr as ci,fs as Fj,gm as _a,gn as bc,go as bd,gq as Qf,gr as di,gs as Gj,hm as $a,hn as cc,ho as cd,hq as Rf,hr as ei,hs as Hj,im as ab,in as dc,io as dd,iq as Sf,ir as fi,is as Ij,jl as s,jm as bb,jn as ec,jo as ed,jq as Tf,jr as gi,kl as t,km as cb,kn as fc,ko as fd,kq as Uf,kr as hi,ll as u,ln as gc,lo as gd,lq as Vf,lr as ii,ml as v,mn as hc,mo as hd,mq as Wf,mr as ji,nl as w,nm as db,nn as ic,no as id,nq as Xf,nr as ki,ol as x,om as eb,on as jc,oo as jd,oq as Yf,or as li,pl as y,pm as fb,pn as kc,po as Ad,pq as Zf,pr as mi,ql as z,qm as gb,qn as lc,qo as Bd,qq as _f,qr as ni,rl as A,rm as hb,rn as mc,ro as Cd,rq as $f,rr as oi,sl as B,sm as ib,sn as nc,so as Dd,sq as ag,sr as pi,tl as C,tm as jb,tn as oc,to as Ed,tp as cf,tq as bg,tr as qi,ul as D,um as kb,un as pc,uo as Fd,uq as cg,ur as ri,vl as E,vm as lb,vn as qc,vo as Gd,vp as df,vq as dg,vr as si,wl as F,wm as mb,wn as rc,wo as Hd,wq as eg,wr as ti,xl as G,xm as nb,xn as sc,xo as Id,xp as ef,xq as fg,xr as ui,yl as H,ym as ob,yn as tc,yo as Jd,yp as ff,yq as gg,yr as vi,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as hg,zr as wi}from"./chunk-mbvkvac6.js";import{js as d,ks as e,ls as f,ms as g,ns as h,os as i,ps as j,qs as k,rs as l,ss as m,ts as n,us as o,vs as p,ws as q,xs as r}from"./chunk-0athjw48.js";import{As as Sh,Bs as Th,Cs as Uh,Ds as Vh,Es as Wh,Fs as Xh,Gs as Yh,ys as Qh,zs as Rh}from"./chunk-135mme4g.js";import{Hs as b,Is as c}from"./chunk-f3m0q482.js";import{Js as Ea,Ks as Fa}from"./chunk-f1jd5qjb.js";import{Ts as sb,Us as tb,Ws as ub,et as vb,ft as wb,gt as xb}from"./chunk-jb7h4qgh.js";import{ht as ue,it as ve,jt as we,kt as xe,nt as ye}from"./chunk-jnbhyzkv.js";import{ot as Ja,pt as Ka,qt as La,rt as Ma,st as Na,tt as Oa}from"./chunk-bby4emay.js";import{At as qd,Bt as rd,Ct as sd,Dt as td,Et as ud,Ft as vd,Gt as wd,Ht as xd,It as yd,Jt as zd,ut as kd,vt as ld,wt as md,xt as nd,yt as od,zt as pd}from"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import{$t as xa,Nt as ja,Ot as ka,Pt as la,Qt as ma,Rt as na,St as oa,Tt as pa,Ut as qa,Vt as ra,Wt as sa,Xt as ta,Yt as ua,Zt as va,_t as wa,au as ya}from"./chunk-sde45gh3.js";import{Au as V,Bu as W,Cu as X,Du as Y,Eu as Z,Fu as _,Gu as $,Hu as aa,Iu as ba,Ku as ca,eu as K,fu as L,iu as M,nu as N,ou as O,uu as P,vu as Q,wu as R,xu as S,yu as T,zu as U}from"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{kk as writeNetlifyConfig,$l as writeManifest,Pk as writeImageManifest,so as wrapComponentForHMR,mr as withDefaults,xj as webComponentDirectiveHandler,hp as watermark,jq as watchViews,Zk as watchMultiple,_k as watchEffect,Yk as watch,ye as warmImagePlaceholders,ll as waitForStore,Zd as waitForLocale,eo as virtualPathFor,kj as videoDirective,uc as validators,qr as validated,Ld as validateValueEnhanced,oh as validateTemplate,mp as validateParams,Md as validateFormEnhanced,_p as validateFile,Hd as validateFields,Gd as validateField,qh as validateDirective,ed as validateCspDirectives,Fj as validateConfig,em as validateComponentScripts,Cm as validateComponentProps,mg as validateClientScript,lh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Dh as userComponentFileExists,Tg as useVirtualList,sd as useTitle,kl as useStoreOrThrow,Ko as useStore,Wj as useStorage,uq as useSlots,Yj as useSessionStorage,pd as useSeoMeta,ml as useRouteParams,ol as useRouteParamOrThrow,nl as useRouteParam,sd as usePageTitle,Pe as useOptimistic,ql as useMiddlewareValue,pl as useMiddlewareState,Xj as useLocalStorage,lo as useLoadingIndicator,nd as useHead,ih as useForm,wq as useAttrs,aq as uploadFiles,$p as uploadFile,hl as updateInstance,Ne as untrack,Th as unregisterDirective,il as unmountInstance,rb as unescapeHtml,ho as typecheckStxFiles,Ch as transpileTypeScript,$q as translate,w as transitionDirective,Ta as transformAutoImports,wm as toUsers,vm as toUser,So as thumbnail,Tp as thumbHashToRGBA,Up as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Se as templateCache,Nb as syncRecordedResponse,po as stxClientHelpers,xf as structuredDataDirective,cr as stripLocalePrefix,Ml as stripDocumentWrapper,Fa as stripCommentsAndLiterals,kn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Rj as stopHmrServer,sm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ce as state,gg as startsDocument,Mn as startProductionServer,An as startInteractive,rm as startBroadcasting,er as stampLocaleLayoutGroup,D as staggerDirective,kp as srcsetUrls,E as springDirective,Dc as splitByPipe,Il as spaNavVaryHeaders,fo as sourcePathFor,rp as smartBatchSign,Fh as slotContentHasExpressions,pp as signUrl,Ah as shouldTranspileTypeScript,Oj as shouldReloadOnChange,up as shouldRefreshSignature,Pj as shouldIgnoreFile,Lg as shouldCacheComponent,Wo as sharpen,tr as shape,La as setStateDir,ul as setRouteParams,vl as setMiddlewareState,xe as setImagePlaceholder,oq as setGlobalProvide,Rb as setErrorLocale,Rk as setCurrentInstance,_i as setCachedVideoResult,Pi as setCachedImageResult,Ji as setCached,wr as serveStxFile,yr as serveMultipleStxFiles,Jj as serveMarkdownFile,Wn as serveFile,zr as serveApp,Vn as serve,vo as serializeState,$m as serializeSetCookie,Yo as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,oj as scopeHTML,nj as scopeCSS,Af as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,ap as saturation,np as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,qf as runPreProcessingMiddleware,rf as runPostProcessingMiddleware,Dn as runPageAction,Ie as runMountCallbacks,ba as runMiddleware,fl as runHooks,Uq as runDoctor,Je as runDestroyCallbacks,Ff as runComposers,bp as rotate,mh as rewriteImagesWithSiblings,Ob as responseBindings,Jh as resolveTemplatePath,c as resolveStxTargets,Bj as resolveStxDirectories,_q as resolveI18n,Qo as resize,Za as resetPlaceholders,md as resetHead,uo as resetHMRHandler,cc as resetErrorConfig,or as required,bb as replacePlaceholders,hq as renderView,hj as renderVideoComponent,Qa as renderVendorStyleTags,Dq as renderToString,Eq as renderToStream,Fq as renderToDOM,Sp as renderThumbhashToCanvas,Rq as renderTemplateString,Pq as renderTemplate,Qq as renderString,je as renderStreamingPage,vh as renderSlot,Bg as renderSSRSuspense,Cp as renderProtectedVideo,Bp as renderProtectedImg,op as renderMediaUpload,Oq as renderMarkdownView,Rl as renderLayoutTypes,Ti as renderImgComponent,Fk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,kq as renderEmail,Hh as renderComponentWithSlot,vd as renderBodyAttrs,Fo as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Mo as registerStoresClient,sl as registerStore,yf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Qh as registerDirective,dd as registerCspDirectives,Fm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Vk as ref,sn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Hj as readMarkdownFile,Te as readFileCached,Wk as reactive,fp as quality,zp as pruneSignatureCache,Mi as pruneCache,mq as provide,Nq as protectCodeBlocks,nr as prop,Jf as processVueTemplate,Rg as processVirtualListDirectives,Vg as processVirtualGridDirectives,gj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,vg as processTransitionDirectives,yg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,rg as processTeleportDirectives,zg as processSuspenseDirectives,tf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,gh as processStaticDirectives,of as processStackReplacements,nf as processStackPushDirectives,wh as processSlots,Kl as processShell,Hf as processServerBindings,uf as processSeoDirective,re as processSectionDirectives,Mf as processScopedStyles,zb as processReactiveBindings,Dp as processProtectedMedia,$g as processPartialHydrationDirectives,lg as processOnceDirective,pf as processMiddleware,sf as processMetaDirectives,zd as processMetaDirective,Ij as processMarkdownFileDirectives,Oh as processMarkdownDirectives,hf as processLoops,Jg as processKeepAliveDirectives,kg as processJsonDirective,Ug as processInfiniteListDirectives,mf as processIncludes,Vi as processImgComponents,Hk as processImageComponents,uk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Kf as processDynamicComponents,nh as processDirectives,Yh as processDirectiveAttributes,qg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,ur as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Eg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Vd as preloadTranslationsBackground,Ud as preloadTranslations,ko as preloadIslandHandlers,ze as preloadIconCollection,nm as poolStrings,zj as pluginManager,ve as placeholdersWarmed,ug as performLeave,tg as performEnter,Ke as pendingLifecycleCounts,Oe as peek,jf as partialsCache,ij as parseVideoDirectiveOptions,Oo as parseUrl,Vp as parseThumbhashString,Jc as parseSwitchBlock,th as parseSlots,uh as parseSlotElement,Oc as parseScriptDeclarations,vj as parseSFCComponent,Ep as parseProtectedArgs,gf as parseLoopBinding,Ui as parseImgComponent,ki as parseImageUrl,Gk as parseImageComponent,Bn as parseFormBody,Lc as parseExpressionWithFilters,Gm as parseDefaults,pn as parseCookies,Lm as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,pr as optional,om as optimizeTemplate,Mk as optimizeImage,Nk as optimizeDirectory,rr as oneOf,kf as onceStore,cl as onUpdated,yb as onUpdate,el as onUnmounted,zl as onServer,al as onMounted,Ge as onMount,fh as onHydrated,sq as onErrorCaptured,He as onDestroy,Pg as onDeactivated,yl as onClient,bl as onBeforeUpdate,dl as onBeforeUnmount,$k as onBeforeMount,Og as onActivated,Op as observeElement,tn as notFound,Rf as normalizeCriticalHeadOrder,rq as nextTick,Jm as negotiateEncoding,P as navigateTo,gl as mountInstance,z as motionDirective,Vc as moderateCspPreset,mm as minifyHtml,wf as metaDirective,$f as metaDedupKey,Po as mergeParams,bg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Ph as markdownDirectiveHandler,Gj as markdownCache,b as looksLikeGlob,br as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Cj as loadStxConfig,_ as loadMiddlewareFromDirectory,am as loadManifest,Kp as loadElement,tm as loadChannels,ir as lintStxStrict,Mp as lazyLoadAll,Lp as lazyLoad,C as keyframeDirective,Bq as jsxs,Cq as jsxDEV,Aq as jsx,rn as jsonResponse,pe as islandDirective,$b as isTest,Nl as isSpaNavigation,Gl as isSpaNavRequest,sp as isSignatureValid,Le as isSignal,sk as isSharpAvailable,cn as isServerEnvironment,wl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Hp as isNativeLazySupported,Mq as isMarkdownPath,Sd as isLoading,Td as isLoaded,zh as isJavaScriptScript,Ip as isIntersectionObserverSupported,Ak as isImageFile,tk as isImageBackendAvailable,ce as isICUFormat,eh as isHydrated,Eh as isHydrateTrigger,Hb as isHttpStatus,bn as isEdgeEnvironment,jr as isDirectiveKind,_b as isDevelopment,Me as isDerived,Nj as isCssOnlyChange,Im as isCompressible,xl as isClient,Gg as isAsyncComponent,Cn as isActionableMethod,Zo as invert,Ve as invalidateFileCacheByDir,Ue as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,Zq as injectThemeBootstrap,vf as injectSeoTags,Wq as injectSeo,bf as injectRouterScript,Mj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ig as injectConfigHeadTags,Qf as injectColorModeBootScript,dg as injectCloakStyle,Xf as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,nq as inject,rl as initStoreRegistry,nk as initNetlify,mo as initLoadingIndicator,Jp as initLazyLoading,zn as initFile,Rp as initBlurUp,Xp as initAllBlurUp,Xi as imgDirective,Kk as imageDirective,Kn as hydrateTemplateStream,Jn as hydrateTemplate,jo as hydrateIslands,bh as hydrateIsland,Ln as hydrateFragment,ch as hydrateByStrategy,dh as hydrateAll,Co as hydrate,Un as htmlResponse,eg as hoistLeadingHeadTags,Sf as hoistColorModeBootScript,ga as heatmapDirective,Fi as hashString,af as hashFilePath,Di as hashFile,Ei as hashBuffer,If as hasVueTemplateSyntax,ff as hasVariables,Ho as hasStore,cb as hasPlaceholders,lk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,hg as hasDocumentShell,rh as hasDirectives,h as hasDOMSupport,Dk as handleImageRequest,tq as handleError,Jq as h,zk as groupVariantsByFormat,Xo as grayscale,Nn as gitHash,gm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,gk as getTotalSize,tp as getTimeUntilExpiry,ng as getStoreScript,Io as getStoreNames,Go as getStore,$j as getStorageSize,_j as getStorageKeys,Kh as getSourceLineInfo,Bh as getSharedTranspiler,g as getScreenReaderOnlyStyle,pj as getScopeAttribute,Be as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,ph as getPositionInfo,$a as getPlaceholderRegistry,Ci as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Bk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,ue as getImagePlaceholder,vk as getImageMetadata,Bo as getHydrationRuntime,tl as getHydratedStoreState,Qj as getHmrServer,kd as getHead,to as getHMRHandler,oi as getFormatExtension,Hi as getFileMtime,yk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Sh as getDirectives,Rh as getDirective,Sk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Nh as getComponentCacheStats,Zi as getCachedVideoResult,xp as getCachedSignature,Xe as getCachedSignalsRuntime,Ye as getCachedRouterScript,Ai as getCachedPlaceholder,Oi as getCachedImageResult,Ii as getCached,Li as getCacheStats,Vf as getBuildId,qm as getBroadcastServer,ni as getBestVariant,gb as getAllFilters,bi as generateWidthSrcset,Sg as generateVirtualListCSS,cq as generateVideoPreview,Nd as generateValidationScript,dq as generateUploadRuntime,hm as generateTreeShakenBundle,xg as generateTransitionRuntime,wg as generateTransitionCSS,bj as generateThumbnails,ti as generateThumbhashPlaceholder,Um as generateTemplatesDocs,Dg as generateSuspenseRuntime,Cg as generateSuspenseCSS,wo as generateStateScript,li as generateSrcsetData,Si as generateSrcset,wk as generateSrcSet,cj as generateSpriteSheet,lq as generateSpaShell,mi as generateSourceTags,hi as generateSizesFromBreakpoints,gi as generateSizesAttribute,xk as generateSizes,zf as generateSitemapIndex,Xq as generateSitemap,Gp as generateSimpleMediaPicker,Ap as generateSignatureRuntime,Re as generateSignalsRuntimeDev,Qe as generateSignalsRuntime,Xa as generateServerDataBridge,mj as generateScopeId,wj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Bf as generateRobotsTxt,Yq as generateRobots,Ri as generateResponsiveVariants,sj as generateReactiveWebComponentTS,rj as generateReactiveWebComponent,uj as generateReactiveRuntime,tj as generateReactiveMixin,aj as generatePoster,zi as generatePlaceholderStyle,yi as generatePlaceholderCSS,si as generatePlaceholder,ah as generatePartialHydrationCSS,Pc as generateNonce,hk as generateNetlifyToml,fq as generateMinifiedMediaRuntime,eq as generateMediaRuntime,Fp as generateMediaManagerEmbed,_l as generateManifest,oo as generateLoadingIndicatorHtml,Qp as generateLazyLoadRuntime,Sl as generateLayoutTypes,vi as generateLQIP,Ng as generateKeepAliveRuntime,Mg as generateKeepAliveCSS,hh as generateIslandManifest,bq as generateImagePreview,Ok as generateImageManifest,Ao as generateHydrationScript,te as generateHydrationRuntime,Do as generateHydrationCSS,Wg as generateHydrationBootstrap,Lj as generateHotReloadScript,ea as generateHeatmapScript,ro as generateHMRClientScript,dj as generateHLSManifest,xo as generateEventBindings,fi as generateDprSrcsetWithVariableQuality,ei as generateDprSrcset,fg as generateDocumentShell,Zm as generateDocs,Vm as generateDirectivesDocs,Xh as generateDirectiveRuntime,Cf as generateDefaultRobotsTxt,ej as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,yq as generateCompositionRuntime,Tm as generateComponentsDocs,Xg as generateComponentManifest,Rm as generateComponentDoc,xi as generateColorPlaceholder,Pf as generateColorModeBootScript,jl as generateClientRuntime,Gi as generateCacheKey,Va as generateBrowserAutoImportDestructuring,Yp as generateBlurUpRuntime,Zp as generateBlurUpCSS,Ab as generateBindingsRuntime,ci as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ig as generateAsyncComponentRuntime,Hg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,io as formatTypecheckDiagnostics,bo as formatTypeErrors,wn as formatStxContent,fk as formatSize,O as formatRoutes,xn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Vq as formatDoctorReport,Wm as formatDocsAsMarkdown,Ym as formatDocsAsJson,Xm as formatDocsAsHtml,ep as format,lm as foldConstants,dp as flipVertical,cp as flipHorizontal,Tl as fingerprint,go as findRuntimeTypeDeclarations,Tq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,im as findDeadCode,im as findDeadBranches,Mm as findContainerRegion,Sm as findComponentFiles,xr as findCommonDir,ek as filterRequiredFiles,Ih as fileExists,cf as extractVariables,Yl as extractTemplateExpressions,le as extractStreamBoundaries,yo as extractState,xh as extractSlotContent,ef as extractScriptFromTemplate,Xl as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,wi as extractDominantColor,Nc as extractDirectiveParams,sh as extractDirectiveNames,Ol as extractContainerContent,Pm as extractComponentProps,Yg as extractComponentName,Qm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,Zg as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,qj as extractAndScopeStyles,Ba as extractAndProcessEvents,Uj as externalizeSharedAssets,Vj as externalizeRepeatedAssets,Tj as externalizeHtml,qb as evaluateExpression,km as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,sg as ensureTeleportTargets,jg as ensureDocumentShell,Jd as enhancedValidationRules,Nm as enableDevTools,jm as eliminateDeadCode,Ee as effect,lp as dprUrls,_m as docsCommand,Ql as discoverLayoutNames,Pp as disconnectObserver,Om as disableDevTools,tc as devHelpers,Jl as detectShell,an as detectRuntime,ik as detectProjectConfig,pi as detectFormat,dm as detectBuildMode,De as derived,mk as deploy,Ej as defineStxConfig,Lo as defineStore,vq as defineSlots,hr as defineSiteConfig,lr as definePropsWithValidation,kr as defineProps,yj as definePlugin,rd as definePageMeta,R as defineMiddleware,jh as defineForm,qq as defineExpose,pq as defineEmits,Uh as defineDirective,Lq as defineCustomElement,In as defineConfig,Vh as defineClientDirective,Fg as defineAsyncComponent,gq as defaultMediaConfig,Qk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Aj as defaultConfig,vr as default,sb as deepMergeThemes,Lf as dedupeScopedStyles,ui as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Wp as crossfadeTransition,Ro as crop,Qg as createVirtualList,jj as createVideoDirective,nn as createVercelHandler,_n as createTypeChecker,fe as createTranslateFilter,jn as createTextEncoderStream,Kq as createStxApp,hn as createStreamingResponse,ne as createStreamRenderer,Jo as createStore,U as createStorageManager,S as createServerCookieManager,Uk as createScope,Ag as createSSRSuspense,Ae as createRouter,$ as createRouteLocation,Yn as createRoute,Vk as createRef,Wk as createReactive,xq as createProvideContext,Pn as createProject,Hn as createProductionBuild,_a as createPlaceholder,pm as createOptimizedBuild,on as createNetlifyHandler,ak as createNetlifyClient,aa as createMiddlewareContext,Xn as createMiddleware,Np as createLazyObserver,Kg as createKeepAliveCache,en as createKVNamespace,_g as createIslandRegistry,Wi as createImgDirective,Lk as createImagePlugin,Ek as createImageHandler,Jk as createImageDirective,ia as createHeatmapAggregator,dk as createFileManifest,dn as createEnvAccessor,nc as createEnhancedError,gn as createEdgeHandler,fn as createEdgeCache,Lh as createDetailedErrorMessage,mn as createDenoHandler,jk as createDefaultNetlifyConfig,gd as createCspHeaders,qn as createCookie,Xk as createComputed,Tk as createComponentInstance,ln as createCloudflareHandler,T as createClientCookieManager,Wh as createBuiltinDirectives,Kq as createApp,F as createAnimationTimeline,Uo as cover,df as convertToCommonJS,$o as contrast,To as contain,mc as consoleError,ac as configureErrorHandling,Dj as config,Xk as computed,Km as compressResponse,Ef as composerPattern,Df as composer,Ll as composeShellWithPage,Em as componentDirective,Gh as componentClientSignalNames,Zl as compileTemplate,a as collectRepeatedFlag,ck as collectDeployFiles,$i as clearVideoCache,Pd as clearTranslationCache,og as clearStoreCache,Zj as clearStorage,yp as clearSignatureCache,Bi as clearPlaceholderCache,lf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,we as clearImagePlaceholders,Ik as clearImageCache,Ub as clearErrorMessages,Ze as clearDevCaches,hb as clearCustomFilters,Gf as clearComposers,pg as clearComposableCache,Mh as clearComponentCache,Ki as clearCache,no as cleanupLoadingIndicator,Cl as classifyScript,Dl as classifyAllScripts,$n as checkTemplateFile,ao as checkTemplate,_e as checkCache,vp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,zm as channel,vn as captureScreenshots,un as captureScreenshot,$d as cancelPendingLoads,bk as calculateSha1,di as calculateOptimalWidths,$e as cacheTemplate,lj as buildWebComponents,co as buildVirtualSource,iq as buildViews,No as buildUrl,he as buildSuspenseResolveScript,gr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Ul as buildRuntimeAsset,Vl as buildRouterAsset,fr as buildLangPickerScript,ji as buildImageUrl,ag as buildHtmlAttrs,bm as buildForProduction,Hm as buildComponentLibrary,wp as buildAuthParams,cm as buildApp,dr as buildAlternateLinks,Gn as build,xm as broadcastPrivate,ym as broadcastPresence,um as broadcast,_o as brightness,Vo as blur,ya as blankInertHtmlRegions,qp as batchSignUrls,Fe as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,gp as auto,e as attributeValue,Wl as assetTags,za as asInvocableStatement,sr as arrayOf,ar as applyTranslations,Qi as applyTransformations,yh as applySlots,Dm as applyPropDefaults,jp as applyPreset,cg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Hl as appendVary,Xc as apiCspPreset,y as animationGroupDirective,fj as analyzeVideo,fm as analyzeUsage,Al as analyzeTemplate,Bl as analyzeProject,fm as analyzeDirectiveUsage,Eb as analyticsDirective,Sn as addStore,Rn as addPage,$c as addNonceToInlineContent,Tn as addLayout,Qn as addComponent,En as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,We as __setSignalsGeneratorsForTest,Wf as __setBuildIdForTest,Yi as VideoProcessorCache,kh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,Zn as TemplateTypeChecker,yn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Gq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,El as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Fn as ProductionBuild,Iq as Portal,On as PROJECT_TEMPLATES,ip as PRESETS,na as NON_CLIENT_PRIMITIVES,Eo as MemorySessionStore,ai as MIME_TYPES,Zh as MEDIA_DEFAULT_WIDTHS,$h as MEDIA_DEFAULT_FORMATS,Pl as LAYOUT_TYPES_FILE,Ni as ImageProcessorCache,Ck as ImageProcessingError,zo as HydrationRuntime,Kj as HotReloadServer,ha as HeatmapAggregator,_f as HTML_CLASS_MARKER,Zf as HTML_ATTRS_MARKER,zq as Fragment,Hq as For,Fl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Sj as EXTERNALIZED_ASSET_DIR,ok as DeployError,pk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,rk as DEFAULT_QUALITY,qi as DEFAULT_PLACEHOLDER_OPTIONS,qk as DEFAULT_FORMATS,_h as DEFAULT_DPR_VALUES,qo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ii as COMMON_SIZES,Nf as COLOR_MODE_BOOT_MARKER,Of as COLOR_MODE_BOOT_GLOBAL,Yf as CLOAK_STYLE,Bm as BroadcastServer,Am as Broadcast,Tf as BUILD_ID_META,Uf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ri as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Sq as $path};
2
+ import{$ as ml,$a as fn,$b as yo,$c as yp,$d as yq,A as Yj,Aa as qm,Ab as Sn,Ac as Zo,Ad as Zp,Ae as dr,B as Zj,Ba as rm,Bb as Tn,Bc as _o,Bd as _p,Be as er,C as _j,Ca as Em,Cb as Un,Cc as $o,Cd as $p,Ce as fr,D as $j,Da as Fm,Db as Vn,Dc as ap,Dd as aq,De as gr,E as Rk,Ea as Gm,Eb as Wn,Ec as bp,Ed as bq,Ee as hr,F as Sk,Fa as Hm,Fb as Xn,Fc as cp,Fd as cq,Fe as ir,G as Tk,Ga as Im,Gb as Yn,Gc as dp,Gd as dq,Ge as jr,H as Uk,Ha as Jm,Hb as Zn,Hc as ep,Hd as eq,He as kr,I as Vk,Ia as Nm,Ib as _n,Ic as fp,Id as fq,Ie as lr,J as Wk,Ja as Om,Jb as $n,Jc as gp,Jd as gq,Je as mr,K as Xk,Ka as Pm,Kb as ao,Kc as hp,Kd as hq,Ke as nr,L as Yk,La as Qm,Lb as bo,Lc as ip,Ld as iq,Le as or,M as Zk,Ma as Rm,Mb as jo,Mc as jp,Md as jq,Me as pr,N as _k,Na as Sm,Nb as ko,Nc as kp,Nd as kq,Ne as qr,O as $k,Oa as Tm,Ob as lo,Oc as lp,Od as lq,Oe as rr,P as al,Pa as Um,Pb as mo,Pc as mp,Pd as mq,Pe as sr,Q as bl,Qa as Vm,Qb as no,Qc as np,Qd as nq,Qe as tr,R as cl,Ra as Wm,Rb as oo,Rc as op,Rd as oq,Re as ur,S as dl,Sa as Xm,Sb as po,Sc as pp,Sd as pq,Se as vr,T as el,Ta as Ym,Tb as qo,Tc as qp,Td as qq,Te as wr,U as fl,Ua as Zm,Ub as ro,Uc as rp,Ud as rq,Ue as xr,V as gl,Va as _m,Vb as so,Vc as sp,Vd as sq,Ve as yr,W as hl,Wa as an,Wb as to,Wc as tp,Wd as tq,We as zr,X as il,Xa as bn,Xb as uo,Xc as up,Xd as uq,Y as jl,Ya as cn,Yb as vo,Yc as vp,Yd as vq,Z as kl,Za as dn,Zb as wo,Zc as wp,Zd as wq,_ as ll,_a as en,_b as xo,_c as xp,_d as xq,aa as nl,ab as gn,ac as zo,ad as zp,ae as zq,ba as ol,bb as hn,bc as Ao,bd as Ap,be as Aq,ca as pl,cb as jn,cc as Bo,cd as Bp,ce as Bq,da as ql,db as kn,dc as Co,dd as Cp,de as Cq,ea as rl,eb as ln,ec as Do,ed as Dp,ee as Dq,fa as sl,fb as mn,fc as Eo,fd as Ep,fe as Eq,ga as tl,gb as nn,gc as Fo,gd as Fp,ge as Fq,ha as ul,hb as on,hc as Go,hd as Gp,he as Gq,ia as vl,ib as pn,ic as Ho,id as Hp,ie as Hq,ja as wl,jb as qn,jc as Io,jd as Ip,je as Iq,ka as xl,kb as rn,kc as Jo,kd as Jp,ke as Jq,la as yl,lb as sn,lc as Ko,ld as Kp,le as Kq,ma as zl,mb as tn,mc as Lo,md as Lp,me as Lq,na as Al,nb as wn,nc as Mo,nd as Mp,ne as Sq,o as a,oa as Bl,ob as xn,oc as No,od as Np,oe as Tq,p as Jj,pa as fm,pb as yn,pc as Oo,pd as Op,pe as Uq,q as Kj,qa as gm,qb as zn,qc as Po,qd as Pp,qe as Vq,r as Lj,ra as hm,rb as Fn,rc as Qo,rd as Qp,re as Wq,s as Mj,sa as im,sb as Gn,sc as Ro,sd as Rp,se as Xq,t as Nj,ta as jm,tb as Hn,tc as So,td as Sp,te as Yq,u as Oj,ua as km,ub as In,uc as To,ud as Tp,ue as Zq,v as Pj,va as lm,vb as Nn,vc as Uo,vd as Up,ve as _q,w as Qj,wa as mm,wb as On,wc as Vo,wd as Vp,we as $q,x as Rj,xa as nm,xb as Pn,xc as Wo,xd as Wp,xe as ar,y as Wj,ya as om,yb as Qn,yc as Xo,yd as Xp,ye as br,z as Xj,za as pm,zb as Rn,zc as Yo,zd as Yp,ze as cr}from"./chunk-5k1bec90.js";import{$e as ek,Xe as ak,Ye as bk,Ze as ck,_e as dk,af as fk,bf as gk,cf as hk,df as ik,ef as jk,ff as kk,gf as lk,hf as mk,if as nk,jf as ok}from"./chunk-jcped0kt.js";import{kf as Fk,lf as Gk,mf as Hk,nf as Ik,of as Jk,pf as Kk,qf as Lk,rf as Mk,sf as Nk,tf as Ok,uf as Pk,vf as Qk}from"./chunk-6kcz7bg6.js";import{Af as ho,Bf as io,wf as co,xf as eo,yf as fo,zf as go}from"./chunk-a3drgebc.js";import{Cf as un,Df as vn}from"./chunk-5d4csjhx.js";import{Ef as An}from"./chunk-15x3b9tp.js";import{Ff as Vl,Gf as Wl,Hf as Xl,If as Yl,Jf as $l,Kf as dm}from"./chunk-868ep3pm.js";import{Lf as Zl,Of as _l}from"./chunk-50gk2vsn.js";import{$f as xm,Wf as sm,Xf as tm,Yf as um,Zf as vm,_f as wm,ag as ym,bg as zm,cg as Am,dg as Bm,eg as Cm,fg as Dm}from"./chunk-e6tvnnnz.js";import{gg as Dk,hg as Ek}from"./chunk-zr2rkgag.js";import{ig as em}from"./chunk-477zvh3f.js";import{jg as Km,kg as Lm,lg as Mm,mg as $m,ng as Bn,og as Cn,pg as Dn,qg as En,rg as Jn,sg as Kn,tg as Ln,ug as Mn}from"./chunk-8n89zhmq.js";import{Ag as Hl,Bg as Il,Cg as Jl,Dg as Kl,Eg as Ll,Fg as Ml,Gg as Nl,Hg as Ol,Ig as Pl,Jg as Ql,Kg as am,Lg as bm,Mg as cm,vg as Cl,wg as Dl,xg as El,yg as Fl,zg as Gl}from"./chunk-t35x61f5.js";import{Ng as Yi,Og as Zi,Pg as _i,Qg as $i,Rg as aj,Sg as bj,Tg as cj,Ug as dj,Vg as ej,Wg as fj,Xg as gj}from"./chunk-9y175wxc.js";import{Yg as yj,_g as zj}from"./chunk-f5v2qf95.js";import{eh as pk,fh as qk,gh as rk,hh as sk,ih as tk,jh as uk,kh as vk,mh as wk,nh as xk,oh as yk,ph as zk,qh as Ak,rh as Bk,uh as Ck}from"./chunk-4ay1ymgp.js";import{vh as ih,wh as jh,xh as kh,yh as lh}from"./chunk-49kk0s96.js";import{Dh as mh}from"./chunk-w3ycm4na.js";import{Eh as th,Fh as uh,Gh as vh,Hh as wh,Ih as xh,Jh as yh}from"./chunk-yax48zgv.js";import{Kh as Ni,Lh as Oi,Mh as Pi,Qh as Qi,Rh as Ri,Sh as Si}from"./chunk-8jvmjzmr.js";import{$h as Ki,Th as Di,Uh as Ei,Vh as Fi,Wh as Gi,Xh as Hi,Zh as Ii,_h as Ji,ai as Li,bi as Mi}from"./chunk-74cv4ta1.js";import{ci as tg,di as ug,ei as vg,fi as wg,gi as xg,hi as yg}from"./chunk-wcm80anz.js";import{ii as zg,ji as Ag,ki as Bg,li as Cg,mi as Dg}from"./chunk-y7m2dpd3.js";import{ni as Eg,oi as Fg,pi as Gg,qi as Hg,ri as Ig}from"./chunk-9y0g8kzt.js";import{si as Jg,ti as Kg,ui as Lg,vi as Mg,wi as Ng,xi as Og,yi as Pg}from"./chunk-t6nseeb9.js";import{Ai as Rg,Bi as Sg,Ci as Tg,Di as Ug,Ei as Vg,zi as Qg}from"./chunk-xttsqmkm.js";import{Gi as Wg,Hi as Xg,Ii as Yg,Ji as Zg,Ki as _g,Li as $g,Mi as ah,Ni as bh,Oi as ch,Pi as dh,Qi as eh,Ri as fh,Si as gh,Ti as hh}from"./chunk-54st8g2j.js";import{Vi as ng,Wi as og}from"./chunk-gaqvk74x.js";import{Zi as pg}from"./chunk-wnt3yvxv.js";import"./chunk-9n0gvfrg.js";import{bj as qg}from"./chunk-7q9mwh4v.js";import{cj as rg,dj as sg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-mync09v4.js";import{sj as Qe,tj as Re}from"./chunk-gej3rmfy.js";import{Aj as Ce,Bj as De,Cj as Ee,Dj as Fe,Ej as Ge,Fj as He,Gj as Ie,Hj as Je,Ij as Ke,Jj as Le,Kj as Me,Lj as Ne,Mj as Oe,Nj as Pe}from"./chunk-w95sp0k9.js";import{Oj as Se,Pj as Te,Qj as Ue,Rj as Ve,Sj as We,Tj as Xe,Uj as Ye,Vj as Ze,Wj as _e,Xj as $e,Yj as af}from"./chunk-z8btarwy.js";import{qk as Mq,rk as Nq,sk as Oq,tk as Pq,uk as Qq,vk as Rq}from"./chunk-m87wfz2b.js";import{Ak as Rl,Bk as Sl,Ck as Tl,Dk as Ul,wk as Sj,xk as Tj,yk as Uj,zk as Vj}from"./chunk-1m4sa11y.js";import"./chunk-58f0mthg.js";import"./chunk-p557qcrk.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Jf,$q as Ph,$r as xj,Al as J,Am as qb,An as vc,Ao as Ld,Ap as hf,Aq as ig,Ar as xi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as jf,Bq as jg,Br as yi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cp as kf,Cq as kg,Cr as zi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as lf,Dq as lg,Dr as Ai,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as mf,Eq as mg,Er as Bi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as nf,Fq as nh,Fr as Ci,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as of,Gq as oh,Gr as Ti,Hm as Db,Hn as Cc,Ho as Sd,Hp as pf,Hq as ph,Hr as Ui,Im as Eb,In as Dc,Io as Td,Ip as qf,Iq as qh,Ir as Vi,Jl as za,Jn as Ec,Jo as Ud,Jp as rf,Jq as rh,Jr as Wi,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as sf,Kq as sh,Kr as Xi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as tf,Lq as zh,Lr as hj,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as uf,Mq as Ah,Mr as ij,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as vf,Nq as Bh,Nr as jj,Om as Jb,On as Jc,Oo as Zd,Op as wf,Oq as Ch,Or as kj,Pm as Kb,Pn as Kc,Po as _d,Pp as xf,Pq as Dh,Pr as lj,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as yf,Qq as Eh,Qr as mj,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as zf,Rq as Fh,Rr as nj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as Af,Sq as Gh,Sr as oj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as Bf,Tq as Hh,Tr as pj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Cf,Uq as Ih,Ur as qj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Df,Vq as Jh,Vr as rj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Ef,Wq as Kh,Wr as sj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Ff,Xq as Lh,Xr as tj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as ze,Yp as Gf,Yq as Mh,Yr as uj,Zl as Va,Zm as Ub,Zn as Uc,Zp as Hf,Zq as Nh,Zr as vj,_l as Wa,_m as Vb,_n as Vc,_p as If,_q as Oh,_r as wj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as Kf,ar as Zh,as as Aj,bn as Yb,bo as Yc,bq as Lf,br as _h,bs as Bj,cn as Zb,co as Zc,cp as bf,cq as Mf,cr as $h,cs as Cj,dn as _b,do as _c,dq as Nf,dr as ai,ds as Dj,en as $b,eo as $c,eq as Of,er as bi,es as Ej,fm as Za,fn as ac,fo as ad,fq as Pf,fr as ci,fs as Fj,gm as _a,gn as bc,go as bd,gq as Qf,gr as di,gs as Gj,hm as $a,hn as cc,ho as cd,hq as Rf,hr as ei,hs as Hj,im as ab,in as dc,io as dd,iq as Sf,ir as fi,is as Ij,jl as s,jm as bb,jn as ec,jo as ed,jq as Tf,jr as gi,kl as t,km as cb,kn as fc,ko as fd,kq as Uf,kr as hi,ll as u,ln as gc,lo as gd,lq as Vf,lr as ii,ml as v,mn as hc,mo as hd,mq as Wf,mr as ji,nl as w,nm as db,nn as ic,no as id,nq as Xf,nr as ki,ol as x,om as eb,on as jc,oo as jd,oq as Yf,or as li,pl as y,pm as fb,pn as kc,po as Ad,pq as Zf,pr as mi,ql as z,qm as gb,qn as lc,qo as Bd,qq as _f,qr as ni,rl as A,rm as hb,rn as mc,ro as Cd,rq as $f,rr as oi,sl as B,sm as ib,sn as nc,so as Dd,sq as ag,sr as pi,tl as C,tm as jb,tn as oc,to as Ed,tp as cf,tq as bg,tr as qi,ul as D,um as kb,un as pc,uo as Fd,uq as cg,ur as ri,vl as E,vm as lb,vn as qc,vo as Gd,vp as df,vq as dg,vr as si,wl as F,wm as mb,wn as rc,wo as Hd,wq as eg,wr as ti,xl as G,xm as nb,xn as sc,xo as Id,xp as ef,xq as fg,xr as ui,yl as H,ym as ob,yn as tc,yo as Jd,yp as ff,yq as gg,yr as vi,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as hg,zr as wi}from"./chunk-fpkgcpey.js";import{js as d,ks as e,ls as f,ms as g,ns as h,os as i,ps as j,qs as k,rs as l,ss as m,ts as n,us as o,vs as p,ws as q,xs as r}from"./chunk-0athjw48.js";import{As as Sh,Bs as Th,Cs as Uh,Ds as Vh,Es as Wh,Fs as Xh,Gs as Yh,ys as Qh,zs as Rh}from"./chunk-135mme4g.js";import{Hs as b,Is as c}from"./chunk-f3m0q482.js";import{Js as Ea,Ks as Fa}from"./chunk-f1jd5qjb.js";import{Ts as sb,Us as tb,Ws as ub,et as vb,ft as wb,gt as xb}from"./chunk-rzdar1x9.js";import{ht as ue,it as ve,jt as we,kt as xe,nt as ye}from"./chunk-jnbhyzkv.js";import{ot as Ja,pt as Ka,qt as La,rt as Ma,st as Na,tt as Oa}from"./chunk-bby4emay.js";import{At as qd,Bt as rd,Ct as sd,Dt as td,Et as ud,Ft as vd,Gt as wd,Ht as xd,It as yd,Jt as zd,ut as kd,vt as ld,wt as md,xt as nd,yt as od,zt as pd}from"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import{$t as xa,Nt as ja,Ot as ka,Pt as la,Qt as ma,Rt as na,St as oa,Tt as pa,Ut as qa,Vt as ra,Wt as sa,Xt as ta,Yt as ua,Zt as va,_t as wa,au as ya}from"./chunk-sde45gh3.js";import{Au as V,Bu as W,Cu as X,Du as Y,Eu as Z,Fu as _,Gu as $,Hu as aa,Iu as ba,Ku as ca,eu as K,fu as L,iu as M,nu as N,ou as O,uu as P,vu as Q,wu as R,xu as S,yu as T,zu as U}from"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{kk as writeNetlifyConfig,bm as writeManifest,Pk as writeImageManifest,so as wrapComponentForHMR,mr as withDefaults,xj as webComponentDirectiveHandler,hp as watermark,jq as watchViews,Zk as watchMultiple,_k as watchEffect,Yk as watch,ye as warmImagePlaceholders,ll as waitForStore,Zd as waitForLocale,eo as virtualPathFor,kj as videoDirective,uc as validators,qr as validated,Ld as validateValueEnhanced,oh as validateTemplate,mp as validateParams,Md as validateFormEnhanced,_p as validateFile,Hd as validateFields,Gd as validateField,qh as validateDirective,ed as validateCspDirectives,Fj as validateConfig,gm as validateComponentScripts,Em as validateComponentProps,mg as validateClientScript,lh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Dh as userComponentFileExists,Tg as useVirtualList,sd as useTitle,kl as useStoreOrThrow,Ko as useStore,Wj as useStorage,uq as useSlots,Yj as useSessionStorage,pd as useSeoMeta,ml as useRouteParams,ol as useRouteParamOrThrow,nl as useRouteParam,sd as usePageTitle,Pe as useOptimistic,ql as useMiddlewareValue,pl as useMiddlewareState,Xj as useLocalStorage,lo as useLoadingIndicator,nd as useHead,ih as useForm,wq as useAttrs,aq as uploadFiles,$p as uploadFile,hl as updateInstance,Ne as untrack,Th as unregisterDirective,il as unmountInstance,rb as unescapeHtml,ho as typecheckStxFiles,Ch as transpileTypeScript,$q as translate,w as transitionDirective,Ta as transformAutoImports,ym as toUsers,xm as toUser,So as thumbnail,Tp as thumbHashToRGBA,Up as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Se as templateCache,Nb as syncRecordedResponse,po as stxClientHelpers,xf as structuredDataDirective,cr as stripLocalePrefix,Ol as stripDocumentWrapper,Fa as stripCommentsAndLiterals,kn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Rj as stopHmrServer,um as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ce as state,gg as startsDocument,Mn as startProductionServer,An as startInteractive,tm as startBroadcasting,er as stampLocaleLayoutGroup,D as staggerDirective,kp as srcsetUrls,E as springDirective,Dc as splitByPipe,Kl as spaNavVaryHeaders,fo as sourcePathFor,rp as smartBatchSign,Fh as slotContentHasExpressions,pp as signUrl,Ah as shouldTranspileTypeScript,Oj as shouldReloadOnChange,up as shouldRefreshSignature,Pj as shouldIgnoreFile,Lg as shouldCacheComponent,Wo as sharpen,tr as shape,La as setStateDir,ul as setRouteParams,vl as setMiddlewareState,xe as setImagePlaceholder,oq as setGlobalProvide,Rb as setErrorLocale,Rk as setCurrentInstance,_i as setCachedVideoResult,Pi as setCachedImageResult,Ji as setCached,wr as serveStxFile,yr as serveMultipleStxFiles,Jj as serveMarkdownFile,Wn as serveFile,zr as serveApp,Vn as serve,vo as serializeState,$m as serializeSetCookie,Yo as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,oj as scopeHTML,nj as scopeCSS,Af as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,ap as saturation,np as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,qf as runPreProcessingMiddleware,rf as runPostProcessingMiddleware,Dn as runPageAction,Ie as runMountCallbacks,ba as runMiddleware,fl as runHooks,Uq as runDoctor,Je as runDestroyCallbacks,Ff as runComposers,bp as rotate,mh as rewriteImagesWithSiblings,Ob as responseBindings,Jh as resolveTemplatePath,c as resolveStxTargets,Bj as resolveStxDirectories,_q as resolveI18n,Qo as resize,Za as resetPlaceholders,md as resetHead,uo as resetHMRHandler,cc as resetErrorConfig,or as required,bb as replacePlaceholders,hq as renderView,hj as renderVideoComponent,Qa as renderVendorStyleTags,Dq as renderToString,Eq as renderToStream,Fq as renderToDOM,Sp as renderThumbhashToCanvas,Rq as renderTemplateString,Pq as renderTemplate,Qq as renderString,je as renderStreamingPage,vh as renderSlot,Bg as renderSSRSuspense,Cp as renderProtectedVideo,Bp as renderProtectedImg,op as renderMediaUpload,Oq as renderMarkdownView,Tl as renderLayoutTypes,Ti as renderImgComponent,Fk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,kq as renderEmail,Hh as renderComponentWithSlot,vd as renderBodyAttrs,Fo as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Mo as registerStoresClient,sl as registerStore,yf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Qh as registerDirective,dd as registerCspDirectives,Hm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Vk as ref,sn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Hj as readMarkdownFile,Te as readFileCached,Wk as reactive,fp as quality,zp as pruneSignatureCache,Mi as pruneCache,mq as provide,Nq as protectCodeBlocks,nr as prop,Jf as processVueTemplate,Rg as processVirtualListDirectives,Vg as processVirtualGridDirectives,gj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,vg as processTransitionDirectives,yg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,rg as processTeleportDirectives,zg as processSuspenseDirectives,tf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,gh as processStaticDirectives,of as processStackReplacements,nf as processStackPushDirectives,wh as processSlots,Ml as processShell,Hf as processServerBindings,uf as processSeoDirective,re as processSectionDirectives,Mf as processScopedStyles,zb as processReactiveBindings,Dp as processProtectedMedia,$g as processPartialHydrationDirectives,lg as processOnceDirective,pf as processMiddleware,sf as processMetaDirectives,zd as processMetaDirective,Ij as processMarkdownFileDirectives,Oh as processMarkdownDirectives,hf as processLoops,Jg as processKeepAliveDirectives,kg as processJsonDirective,Ug as processInfiniteListDirectives,mf as processIncludes,Vi as processImgComponents,Hk as processImageComponents,uk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Kf as processDynamicComponents,nh as processDirectives,Yh as processDirectiveAttributes,qg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,ur as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Eg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Vd as preloadTranslationsBackground,Ud as preloadTranslations,ko as preloadIslandHandlers,ze as preloadIconCollection,pm as poolStrings,zj as pluginManager,ve as placeholdersWarmed,ug as performLeave,tg as performEnter,Ke as pendingLifecycleCounts,Oe as peek,jf as partialsCache,ij as parseVideoDirectiveOptions,Oo as parseUrl,Vp as parseThumbhashString,Jc as parseSwitchBlock,th as parseSlots,uh as parseSlotElement,Oc as parseScriptDeclarations,vj as parseSFCComponent,Ep as parseProtectedArgs,gf as parseLoopBinding,Ui as parseImgComponent,ki as parseImageUrl,Gk as parseImageComponent,Bn as parseFormBody,Lc as parseExpressionWithFilters,Im as parseDefaults,pn as parseCookies,El as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,pr as optional,qm as optimizeTemplate,Mk as optimizeImage,Nk as optimizeDirectory,rr as oneOf,kf as onceStore,cl as onUpdated,yb as onUpdate,el as onUnmounted,zl as onServer,al as onMounted,Ge as onMount,fh as onHydrated,sq as onErrorCaptured,He as onDestroy,Pg as onDeactivated,yl as onClient,bl as onBeforeUpdate,dl as onBeforeUnmount,$k as onBeforeMount,Og as onActivated,Op as observeElement,tn as notFound,Rf as normalizeCriticalHeadOrder,rq as nextTick,Lm as negotiateEncoding,P as navigateTo,gl as mountInstance,z as motionDirective,Vc as moderateCspPreset,om as minifyHtml,wf as metaDirective,$f as metaDedupKey,Po as mergeParams,bg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Ph as markdownDirectiveHandler,Gj as markdownCache,b as looksLikeGlob,br as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Cj as loadStxConfig,_ as loadMiddlewareFromDirectory,cm as loadManifest,Kp as loadElement,vm as loadChannels,ir as lintStxStrict,Mp as lazyLoadAll,Lp as lazyLoad,C as keyframeDirective,Bq as jsxs,Cq as jsxDEV,Aq as jsx,rn as jsonResponse,pe as islandDirective,$b as isTest,Pl as isSpaNavigation,Il as isSpaNavRequest,sp as isSignatureValid,Le as isSignal,sk as isSharpAvailable,cn as isServerEnvironment,wl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Hp as isNativeLazySupported,Mq as isMarkdownPath,Sd as isLoading,Td as isLoaded,zh as isJavaScriptScript,Ip as isIntersectionObserverSupported,Ak as isImageFile,tk as isImageBackendAvailable,ce as isICUFormat,eh as isHydrated,Eh as isHydrateTrigger,Hb as isHttpStatus,bn as isEdgeEnvironment,jr as isDirectiveKind,_b as isDevelopment,Me as isDerived,Nj as isCssOnlyChange,Km as isCompressible,xl as isClient,Gg as isAsyncComponent,Cn as isActionableMethod,Zo as invert,Ve as invalidateFileCacheByDir,Ue as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,Zq as injectThemeBootstrap,vf as injectSeoTags,Wq as injectSeo,bf as injectRouterScript,Mj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ig as injectConfigHeadTags,Qf as injectColorModeBootScript,dg as injectCloakStyle,Xf as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,nq as inject,rl as initStoreRegistry,nk as initNetlify,mo as initLoadingIndicator,Jp as initLazyLoading,zn as initFile,Rp as initBlurUp,Xp as initAllBlurUp,Xi as imgDirective,Kk as imageDirective,Kn as hydrateTemplateStream,Jn as hydrateTemplate,jo as hydrateIslands,bh as hydrateIsland,Ln as hydrateFragment,ch as hydrateByStrategy,dh as hydrateAll,Co as hydrate,Un as htmlResponse,eg as hoistLeadingHeadTags,Sf as hoistColorModeBootScript,ga as heatmapDirective,Fi as hashString,af as hashFilePath,Di as hashFile,Ei as hashBuffer,If as hasVueTemplateSyntax,ff as hasVariables,Ho as hasStore,cb as hasPlaceholders,lk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,hg as hasDocumentShell,rh as hasDirectives,h as hasDOMSupport,Dk as handleImageRequest,tq as handleError,Jq as h,zk as groupVariantsByFormat,Xo as grayscale,Nn as gitHash,im as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,gk as getTotalSize,tp as getTimeUntilExpiry,ng as getStoreScript,Io as getStoreNames,Go as getStore,$j as getStorageSize,_j as getStorageKeys,Kh as getSourceLineInfo,Bh as getSharedTranspiler,g as getScreenReaderOnlyStyle,pj as getScopeAttribute,Be as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,ph as getPositionInfo,$a as getPlaceholderRegistry,Ci as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Bk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,ue as getImagePlaceholder,vk as getImageMetadata,Bo as getHydrationRuntime,tl as getHydratedStoreState,Qj as getHmrServer,kd as getHead,to as getHMRHandler,oi as getFormatExtension,Hi as getFileMtime,yk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Sh as getDirectives,Rh as getDirective,Sk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Nh as getComponentCacheStats,Zi as getCachedVideoResult,xp as getCachedSignature,Xe as getCachedSignalsRuntime,Ye as getCachedRouterScript,Ai as getCachedPlaceholder,Oi as getCachedImageResult,Ii as getCached,Li as getCacheStats,Vf as getBuildId,sm as getBroadcastServer,ni as getBestVariant,gb as getAllFilters,bi as generateWidthSrcset,Sg as generateVirtualListCSS,cq as generateVideoPreview,Nd as generateValidationScript,dq as generateUploadRuntime,jm as generateTreeShakenBundle,xg as generateTransitionRuntime,wg as generateTransitionCSS,bj as generateThumbnails,ti as generateThumbhashPlaceholder,Um as generateTemplatesDocs,Dg as generateSuspenseRuntime,Cg as generateSuspenseCSS,wo as generateStateScript,li as generateSrcsetData,Si as generateSrcset,wk as generateSrcSet,cj as generateSpriteSheet,lq as generateSpaShell,mi as generateSourceTags,hi as generateSizesFromBreakpoints,gi as generateSizesAttribute,xk as generateSizes,zf as generateSitemapIndex,Xq as generateSitemap,Gp as generateSimpleMediaPicker,Ap as generateSignatureRuntime,Re as generateSignalsRuntimeDev,Qe as generateSignalsRuntime,Xa as generateServerDataBridge,mj as generateScopeId,wj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Bf as generateRobotsTxt,Yq as generateRobots,Ri as generateResponsiveVariants,sj as generateReactiveWebComponentTS,rj as generateReactiveWebComponent,uj as generateReactiveRuntime,tj as generateReactiveMixin,aj as generatePoster,zi as generatePlaceholderStyle,yi as generatePlaceholderCSS,si as generatePlaceholder,ah as generatePartialHydrationCSS,Pc as generateNonce,hk as generateNetlifyToml,fq as generateMinifiedMediaRuntime,eq as generateMediaRuntime,Fp as generateMediaManagerEmbed,am as generateManifest,oo as generateLoadingIndicatorHtml,Qp as generateLazyLoadRuntime,Ul as generateLayoutTypes,vi as generateLQIP,Ng as generateKeepAliveRuntime,Mg as generateKeepAliveCSS,hh as generateIslandManifest,bq as generateImagePreview,Ok as generateImageManifest,Ao as generateHydrationScript,te as generateHydrationRuntime,Do as generateHydrationCSS,Wg as generateHydrationBootstrap,Lj as generateHotReloadScript,ea as generateHeatmapScript,ro as generateHMRClientScript,dj as generateHLSManifest,xo as generateEventBindings,fi as generateDprSrcsetWithVariableQuality,ei as generateDprSrcset,fg as generateDocumentShell,Zm as generateDocs,Vm as generateDirectivesDocs,Xh as generateDirectiveRuntime,Cf as generateDefaultRobotsTxt,ej as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,yq as generateCompositionRuntime,Tm as generateComponentsDocs,Xg as generateComponentManifest,Rm as generateComponentDoc,xi as generateColorPlaceholder,Pf as generateColorModeBootScript,jl as generateClientRuntime,Gi as generateCacheKey,Va as generateBrowserAutoImportDestructuring,Yp as generateBlurUpRuntime,Zp as generateBlurUpCSS,Ab as generateBindingsRuntime,ci as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ig as generateAsyncComponentRuntime,Hg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,io as formatTypecheckDiagnostics,bo as formatTypeErrors,wn as formatStxContent,fk as formatSize,O as formatRoutes,xn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Vq as formatDoctorReport,Wm as formatDocsAsMarkdown,Ym as formatDocsAsJson,Xm as formatDocsAsHtml,ep as format,nm as foldConstants,dp as flipVertical,cp as flipHorizontal,Vl as fingerprint,go as findRuntimeTypeDeclarations,Tq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,km as findDeadCode,km as findDeadBranches,Fl as findContainerRegion,Sm as findComponentFiles,xr as findCommonDir,ek as filterRequiredFiles,Ih as fileExists,cf as extractVariables,_l as extractTemplateExpressions,le as extractStreamBoundaries,yo as extractState,xh as extractSlotContent,ef as extractScriptFromTemplate,Zl as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,wi as extractDominantColor,Nc as extractDirectiveParams,sh as extractDirectiveNames,Ql as extractContainerContent,Pm as extractComponentProps,Yg as extractComponentName,Qm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,Zg as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,qj as extractAndScopeStyles,Ba as extractAndProcessEvents,Uj as externalizeSharedAssets,Vj as externalizeRepeatedAssets,Tj as externalizeHtml,qb as evaluateExpression,mm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,sg as ensureTeleportTargets,jg as ensureDocumentShell,Jd as enhancedValidationRules,Nm as enableDevTools,lm as eliminateDeadCode,Ee as effect,lp as dprUrls,_m as docsCommand,Sl as discoverLayoutNames,Pp as disconnectObserver,Om as disableDevTools,tc as devHelpers,Ll as detectShell,an as detectRuntime,ik as detectProjectConfig,pi as detectFormat,fm as detectBuildMode,De as derived,mk as deploy,Ej as defineStxConfig,Lo as defineStore,vq as defineSlots,hr as defineSiteConfig,lr as definePropsWithValidation,kr as defineProps,yj as definePlugin,rd as definePageMeta,R as defineMiddleware,jh as defineForm,qq as defineExpose,pq as defineEmits,Uh as defineDirective,Lq as defineCustomElement,In as defineConfig,Vh as defineClientDirective,Fg as defineAsyncComponent,gq as defaultMediaConfig,Qk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Aj as defaultConfig,vr as default,sb as deepMergeThemes,Lf as dedupeScopedStyles,ui as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Wp as crossfadeTransition,Ro as crop,Qg as createVirtualList,jj as createVideoDirective,nn as createVercelHandler,_n as createTypeChecker,fe as createTranslateFilter,jn as createTextEncoderStream,Kq as createStxApp,hn as createStreamingResponse,ne as createStreamRenderer,Jo as createStore,U as createStorageManager,S as createServerCookieManager,Uk as createScope,Ag as createSSRSuspense,Ae as createRouter,$ as createRouteLocation,Yn as createRoute,Vk as createRef,Wk as createReactive,xq as createProvideContext,Pn as createProject,Hn as createProductionBuild,_a as createPlaceholder,rm as createOptimizedBuild,on as createNetlifyHandler,ak as createNetlifyClient,aa as createMiddlewareContext,Xn as createMiddleware,Np as createLazyObserver,Kg as createKeepAliveCache,en as createKVNamespace,_g as createIslandRegistry,Wi as createImgDirective,Lk as createImagePlugin,Ek as createImageHandler,Jk as createImageDirective,ia as createHeatmapAggregator,dk as createFileManifest,dn as createEnvAccessor,nc as createEnhancedError,gn as createEdgeHandler,fn as createEdgeCache,Lh as createDetailedErrorMessage,mn as createDenoHandler,jk as createDefaultNetlifyConfig,gd as createCspHeaders,qn as createCookie,Xk as createComputed,Tk as createComponentInstance,ln as createCloudflareHandler,T as createClientCookieManager,Wh as createBuiltinDirectives,Kq as createApp,F as createAnimationTimeline,Uo as cover,df as convertToCommonJS,$o as contrast,To as contain,mc as consoleError,ac as configureErrorHandling,Dj as config,Xk as computed,Mm as compressResponse,Ef as composerPattern,Df as composer,Nl as composeShellWithPage,Gm as componentDirective,Gh as componentClientSignalNames,$l as compileTemplate,a as collectRepeatedFlag,ck as collectDeployFiles,$i as clearVideoCache,Pd as clearTranslationCache,og as clearStoreCache,Zj as clearStorage,yp as clearSignatureCache,Bi as clearPlaceholderCache,lf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,we as clearImagePlaceholders,Ik as clearImageCache,Ub as clearErrorMessages,Ze as clearDevCaches,hb as clearCustomFilters,Gf as clearComposers,pg as clearComposableCache,Mh as clearComponentCache,Ki as clearCache,no as cleanupLoadingIndicator,Cl as classifyScript,Dl as classifyAllScripts,$n as checkTemplateFile,ao as checkTemplate,_e as checkCache,vp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Bm as channel,vn as captureScreenshots,un as captureScreenshot,$d as cancelPendingLoads,bk as calculateSha1,di as calculateOptimalWidths,$e as cacheTemplate,lj as buildWebComponents,co as buildVirtualSource,iq as buildViews,No as buildUrl,he as buildSuspenseResolveScript,gr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Wl as buildRuntimeAsset,Xl as buildRouterAsset,fr as buildLangPickerScript,ji as buildImageUrl,ag as buildHtmlAttrs,dm as buildForProduction,Jm as buildComponentLibrary,wp as buildAuthParams,em as buildApp,dr as buildAlternateLinks,Gn as build,zm as broadcastPrivate,Am as broadcastPresence,wm as broadcast,_o as brightness,Vo as blur,ya as blankInertHtmlRegions,qp as batchSignUrls,Fe as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,gp as auto,e as attributeValue,Yl as assetTags,za as asInvocableStatement,sr as arrayOf,ar as applyTranslations,Qi as applyTransformations,yh as applySlots,Fm as applyPropDefaults,jp as applyPreset,cg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Jl as appendVary,Xc as apiCspPreset,y as animationGroupDirective,fj as analyzeVideo,hm as analyzeUsage,Al as analyzeTemplate,Bl as analyzeProject,hm as analyzeDirectiveUsage,Eb as analyticsDirective,Sn as addStore,Rn as addPage,$c as addNonceToInlineContent,Tn as addLayout,Qn as addComponent,En as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,We as __setSignalsGeneratorsForTest,Wf as __setBuildIdForTest,Yi as VideoProcessorCache,kh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,Zn as TemplateTypeChecker,yn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Gq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Gl as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Fn as ProductionBuild,Iq as Portal,On as PROJECT_TEMPLATES,ip as PRESETS,na as NON_CLIENT_PRIMITIVES,Eo as MemorySessionStore,ai as MIME_TYPES,Zh as MEDIA_DEFAULT_WIDTHS,$h as MEDIA_DEFAULT_FORMATS,Rl as LAYOUT_TYPES_FILE,Ni as ImageProcessorCache,Ck as ImageProcessingError,zo as HydrationRuntime,Kj as HotReloadServer,ha as HeatmapAggregator,_f as HTML_CLASS_MARKER,Zf as HTML_ATTRS_MARKER,zq as Fragment,Hq as For,Hl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Sj as EXTERNALIZED_ASSET_DIR,ok as DeployError,pk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,rk as DEFAULT_QUALITY,qi as DEFAULT_PLACEHOLDER_OPTIONS,qk as DEFAULT_FORMATS,_h as DEFAULT_DPR_VALUES,qo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ii as COMMON_SIZES,Nf as COLOR_MODE_BOOT_MARKER,Of as COLOR_MODE_BOOT_GLOBAL,Yf as CLOAK_STYLE,Dm as BroadcastServer,Cm as Broadcast,Tf as BUILD_ID_META,Uf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ri as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Sq as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Af as e,Bf as f,Cf as g,Df as h,yf as c,zf as d}from"./chunk-k4m48h62.js";import{Nf as a,Qf as b}from"./chunk-6yphtg3q.js";import"./chunk-6g7m08rv.js";import"./chunk-9n0gvfrg.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
2
+ import{Af as g,Bf as h,wf as c,xf as d,yf as e,zf as f}from"./chunk-a3drgebc.js";import{Lf as a,Of as b}from"./chunk-50gk2vsn.js";import"./chunk-wnt3yvxv.js";import"./chunk-9n0gvfrg.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{Broadcast as D,BroadcastServer as U}from"ts-broadcasting";import{channel as b}from"ts-broadcasting";import{Broadcast as N,BroadcastServer as p}from"ts-broadcasting";var z=null,H=[];function X(){return z}async function Y(j){if(z)return z;let k=j.driver??"bun",q=j.host??"0.0.0.0",G=j.port??6001,J=j.scheme??"ws",E={verbose:j.verbose??!1,driver:k,default:k,connections:{[k]:{driver:k,host:q,port:G,scheme:J}}};return z=new U(E),D.setServer(z),await z.start(),z}async function Z(){for(let j of H)clearInterval(j);if(H.length=0,!z)return;await z.stop(),z=null}async function $(j){let k=await import(j),q=k.default??k;if(typeof q!=="function")throw Error(`routes/channels.ts must export a default function, got ${typeof q}`);let G=0;return q({channel(E,A){if(G++,A.authorize&&z)z.channels.channel(E,A.authorize);if(A.interval&&A.data){let L=A.event??`${E}.updated`,M=A.data,Q=setInterval(async()=>{try{let T=await M();V(E,L,T)}catch{}},A.interval);H.push(Q)}}}),G}var K=!1;function F(){if(z)return!0;if(!K)K=!0,console.warn("[stx] broadcast() called before server started \u2014 messages will be sent once broadcasting is ready");return!1}function V(j,k,q){if(!F())return;D.send(j,k,q)}function x(j,k,q){if(!F())return;D.toUser(j,k,q)}function C(j,k,q){if(!F())return;D.toUsers(j,k,q)}function S(j,k,q){if(!F())return;D.send(`private-${j}`,k,q)}function w(j,k,q){if(!F())return;D.presence(j,k,q)}
3
- export{X as Yf,Y as Zf,Z as _f,$ as $f,V as ag,x as bg,C as cg,S as dg,w as eg,b as fg,N as gg,p as hg};
3
+ export{X as Wf,Y as Xf,Z as Yf,$ as Zf,V as _f,x as $f,C as ag,S as bg,w as cg,b as dg,N as eg,p as fg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{wg as a}from"./chunk-nswz1rkm.js";import"./chunk-a7x7dmtf.js";import"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as startProductionServer};
2
+ import{ug as a}from"./chunk-8n89zhmq.js";import"./chunk-t35x61f5.js";import"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{a as startProductionServer};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$s as f,Ws as a,Xs as b,Ys as c,Zs as d,_s as e,at as g,bt as h,ct as i,dt as j,et as k,ft as l,gt as m}from"./chunk-jb7h4qgh.js";import"./chunk-bby4emay.js";import"./chunk-f8wjdg40.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
2
+ import{$s as f,Ws as a,Xs as b,Ys as c,Zs as d,_s as e,at as g,bt as h,ct as i,dt as j,et as k,ft as l,gt as m}from"./chunk-rzdar1x9.js";import"./chunk-bby4emay.js";import"./chunk-f8wjdg40.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Zo as b,_o as c,dm as a}from"./chunk-mbvkvac6.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-jb7h4qgh.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
2
+ import{Zo as b,_o as c,dm as a}from"./chunk-fpkgcpey.js";import"./chunk-0athjw48.js";import"./chunk-135mme4g.js";import"./chunk-f3m0q482.js";import"./chunk-f1jd5qjb.js";import"./chunk-rzdar1x9.js";import"./chunk-jnbhyzkv.js";import"./chunk-bby4emay.js";import"./chunk-52wr95ps.js";import"./chunk-j24k071e.js";import"./chunk-sde45gh3.js";import"./chunk-5wkwhjjn.js";import"./chunk-krgth3gf.js";import"./chunk-f8wjdg40.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};