@stacksjs/stx 0.2.383 → 0.2.384

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 (60) hide show
  1. package/dist/{chunk-j4bgqy2d.js → chunk-0v19p6qk.js} +1 -1
  2. package/dist/{chunk-prvv9a6j.js → chunk-0xj0p6sr.js} +2 -2
  3. package/dist/{chunk-8b287f0x.js → chunk-12c6gm3p.js} +1 -1
  4. package/dist/{chunk-j22j7m9a.js → chunk-13vyr570.js} +1 -1
  5. package/dist/chunk-19cpd0b3.js +2 -0
  6. package/dist/{chunk-pft07e5a.js → chunk-242gvseq.js} +1 -1
  7. package/dist/{chunk-wbmfa418.js → chunk-2j121dxj.js} +1 -1
  8. package/dist/{chunk-vp334dmv.js → chunk-36e7ynm5.js} +1 -1
  9. package/dist/{chunk-gthsda4k.js → chunk-4mmyz73s.js} +1 -1
  10. package/dist/{chunk-8g3gz84z.js → chunk-4nkvsqq5.js} +1 -1
  11. package/dist/{chunk-ymyk7xch.js → chunk-5vhb0dbh.js} +1 -1
  12. package/dist/{chunk-nq4r5zvt.js → chunk-5yp1xzk6.js} +1 -1
  13. package/dist/{chunk-daj371qf.js → chunk-66t6dd2q.js} +9 -9
  14. package/dist/{chunk-jfa1x5kd.js → chunk-6t1z916a.js} +1 -1
  15. package/dist/{chunk-tyvjhv8y.js → chunk-7agb0vmc.js} +1 -1
  16. package/dist/{chunk-zwrghd9f.js → chunk-7eqxp3hm.js} +1 -1
  17. package/dist/{chunk-hf0gsv8c.js → chunk-7qkxzm0y.js} +1 -1
  18. package/dist/{chunk-28jfhc2j.js → chunk-7r9dydtp.js} +1 -1
  19. package/dist/{chunk-sznpcx4x.js → chunk-8257mrss.js} +1 -1
  20. package/dist/{chunk-bxw0wt46.js → chunk-8g18996a.js} +2 -2
  21. package/dist/{chunk-kj9c5ekg.js → chunk-948tpfj7.js} +1 -1
  22. package/dist/{chunk-pkyyjb0s.js → chunk-9mtve1jh.js} +17 -17
  23. package/dist/{chunk-7336vb71.js → chunk-b5nw27h7.js} +1 -1
  24. package/dist/{chunk-gnrmbthh.js → chunk-bmcgsygy.js} +1 -1
  25. package/dist/{chunk-gwy5my1m.js → chunk-by2s9dvk.js} +1 -1
  26. package/dist/{chunk-vhrta9ff.js → chunk-c2ky58f1.js} +1 -1
  27. package/dist/{chunk-c60bg3z2.js → chunk-d4wkjmb8.js} +2 -2
  28. package/dist/{chunk-2bfza2sf.js → chunk-e4dd299a.js} +1 -1
  29. package/dist/{chunk-jr34z16t.js → chunk-ejttbtk0.js} +1 -1
  30. package/dist/{chunk-hzkh5p1g.js → chunk-f1a2pb7x.js} +1 -1
  31. package/dist/{chunk-wqgdhbkz.js → chunk-fezzf9ez.js} +1 -1
  32. package/dist/{chunk-g9v33v1p.js → chunk-gdtx3v0s.js} +1 -1
  33. package/dist/{chunk-wmdjr6s6.js → chunk-gm9hevee.js} +1 -1
  34. package/dist/{chunk-rg89je2f.js → chunk-h5qkswtz.js} +1 -1
  35. package/dist/{chunk-jvvzfkt5.js → chunk-h9h1vxjb.js} +1 -1
  36. package/dist/{chunk-hjazykjp.js → chunk-hhc11ha9.js} +1 -1
  37. package/dist/{chunk-qe46ye0t.js → chunk-me3ckktd.js} +31 -8
  38. package/dist/{chunk-fj8t66gj.js → chunk-mv255z6w.js} +1 -1
  39. package/dist/{chunk-ps1pq5v7.js → chunk-p1fpngfn.js} +1 -1
  40. package/dist/{chunk-tmw26m02.js → chunk-p3xzhb15.js} +1 -1
  41. package/dist/{chunk-hv0mawrp.js → chunk-pmgzmqhy.js} +1 -1
  42. package/dist/{chunk-hktafars.js → chunk-q5k9214r.js} +1 -1
  43. package/dist/{chunk-bg80g9fa.js → chunk-qf1rvd48.js} +1 -1
  44. package/dist/{chunk-zevtf8zn.js → chunk-rj2afzv3.js} +1 -1
  45. package/dist/{chunk-k6wh31tq.js → chunk-s59ahgcg.js} +1 -1
  46. package/dist/{chunk-hxfbv1v6.js → chunk-t3bjr1wh.js} +1 -1
  47. package/dist/{chunk-xnq6vy47.js → chunk-tgkh15zz.js} +1 -1
  48. package/dist/{chunk-6ad7dac2.js → chunk-twfk678s.js} +2 -2
  49. package/dist/{chunk-3edgxt8n.js → chunk-vgcf8qvv.js} +1 -1
  50. package/dist/{chunk-trcv8bvh.js → chunk-vsrta1w7.js} +1 -1
  51. package/dist/chunk-wp1j4qrh.js +2 -0
  52. package/dist/cli.js +7 -7
  53. package/dist/craft-entry.js +1 -1
  54. package/dist/craft.js +1 -1
  55. package/dist/pwa.js +1 -1
  56. package/dist/server-bindings.js +2 -2
  57. package/dist/ssg.js +2 -2
  58. package/package.json +5 -5
  59. package/dist/chunk-0x51h671.js +0 -2
  60. package/dist/chunk-zpe4s4ng.js +0 -2
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h,Re as i}from"./chunk-wmdjr6s6.js";import"./chunk-gwy5my1m.js";import"./chunk-ra1s4s6b.js";import"./chunk-j4bgqy2d.js";import"./chunk-bxw0wt46.js";import"./chunk-qjvny3wf.js";import{Op as a,Rp as b}from"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
2
+ import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h,Re as i}from"./chunk-gm9hevee.js";import"./chunk-by2s9dvk.js";import"./chunk-ra1s4s6b.js";import"./chunk-0v19p6qk.js";import"./chunk-8g18996a.js";import"./chunk-qjvny3wf.js";import{Op as a,Rp as b}from"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j,il as k,jl as l,kl as m,ll as n,ml as o}from"./chunk-j4bgqy2d.js";import"./chunk-bxw0wt46.js";import"./chunk-qjvny3wf.js";import"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
2
+ import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j,il as k,jl as l,kl as m,ll as n,ml as o}from"./chunk-0v19p6qk.js";import"./chunk-8g18996a.js";import"./chunk-qjvny3wf.js";import"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ki as T,Li as u,Mi as A}from"./chunk-ra1s4s6b.js";import{_k as g,fl as h,ll as b}from"./chunk-j4bgqy2d.js";import{Ao as f,bm as k,hq as B,zr as I}from"./chunk-pkyyjb0s.js";import{uv as D,vv as S}from"./chunk-zxfejz72.js";import{zv as F}from"./chunk-aa8015mk.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
2
+ import{Ki as T,Li as u,Mi as A}from"./chunk-ra1s4s6b.js";import{_k as g,fl as h,ll as b}from"./chunk-0v19p6qk.js";import{Ao as f,bm as k,hq as B,zr as I}from"./chunk-9mtve1jh.js";import{uv as D,vv as S}from"./chunk-zxfejz72.js";import{zv as F}from"./chunk-aa8015mk.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
3
3
  ${Q.trim()}`)}catch(Q){console.warn(`[stx] Failed to load composable ${q}:`,Q)}if(R.length===0||L.size===0)return A(j,M,W,""),null;let t=[...L].map((q)=>` try { if (!(${JSON.stringify(q)} in __c)) __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
4
4
  `),N=JSON.stringify([...L]),E=R.join(`
5
5
 
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Lg as a,Mg as b,Ng as c,Og as d,Pg as e,Qg as f}from"./chunk-fj8t66gj.js";import"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
2
+ import{Lg as a,Mg as b,Ng as c,Og as d,Pg as e,Qg as f}from"./chunk-mv255z6w.js";import"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
@@ -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{Ko as V}from"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import{Vw as F}from"./chunk-wjbfget1.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{Ko as V}from"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import{Vw as F}from"./chunk-wjbfget1.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-tmw26m02.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-tmw26m02.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-p3xzhb15.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-p3xzhb15.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"}">
@@ -18,7 +18,7 @@ catch (e) {
18
18
  }
19
19
  throw e;
20
20
  }
21
- `),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-8b287f0x.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
21
+ `),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-12c6gm3p.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
22
22
  `))P+=`
23
23
  `}let A=P+E.toCSS($J,ZJ);return A=uJ+A,e(W,A),jQ(W,A,F),A}catch(Z){return console.warn("Failed to generate Css CSS:",Z),""}}async function tQ(J,Q,Z=!1,$=!1){let U=await LQ(J,Q);if(!U)return $?o(J):J;let F=Z?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${UQ(U)}.css">`:`<style data-css="generated">
24
24
  ${U}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ho as b,io as c,jo as d}from"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import{qv as a}from"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
2
+ import{ho as b,io as c,jo as d}from"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import{qv as a}from"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ni as a,Oi as b,Pi as c,Qi as d,Ri as e,Si as f,Ti as g,Ui as h,Vi as i,Wi as j,Xi as k,Yi as l,Zi as m,_i as n}from"./chunk-k6wh31tq.js";import"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.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{Ni as a,Oi as b,Pi as c,Qi as d,Ri as e,Si as f,Ti as g,Ui as h,Vi as i,Wi as j,Xi as k,Yi as l,Zi as m,_i as n}from"./chunk-s59ahgcg.js";import"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.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{Qo as a,Ro as b,So as c,To as d}from"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding,d as declareBareLoopHead};
2
+ import{Qo as a,Ro as b,So as c,To as d}from"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding,d as declareBareLoopHead};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ii as a,Ji as b}from"./chunk-28jfhc2j.js";import"./chunk-ra1s4s6b.js";import"./chunk-j4bgqy2d.js";import"./chunk-bxw0wt46.js";import"./chunk-qjvny3wf.js";import"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{a as getStoreScript,b as clearStoreCache};
2
+ import{Ii as a,Ji as b}from"./chunk-7r9dydtp.js";import"./chunk-ra1s4s6b.js";import"./chunk-0v19p6qk.js";import"./chunk-8g18996a.js";import"./chunk-qjvny3wf.js";import"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{fi as jH}from"./chunk-gwy5my1m.js";import{$p as XH,Eo as e,Op as S,Pp as zH,Qp as qH,Tp as JH,Up as WH,Vp as VH,Wp as AH,Xp as GH,Yp as UH,Zp as FH,_p as MH,am as $H,zr as BH}from"./chunk-pkyyjb0s.js";import{ut as f}from"./chunk-h3r7wcxk.js";import{zv as D}from"./chunk-aa8015mk.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
2
+ import{fi as jH}from"./chunk-by2s9dvk.js";import{$p as XH,Eo as e,Op as S,Pp as zH,Qp as qH,Tp as JH,Up as WH,Vp as VH,Wp as AH,Xp as GH,Yp as UH,Zp as FH,_p as MH,am as $H,zr as BH}from"./chunk-9mtve1jh.js";import{ut as f}from"./chunk-h3r7wcxk.js";import{zv as D}from"./chunk-aa8015mk.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
3
3
  `).length;Z.push({line:I,column:V-(J.lastIndexOf(`
4
4
  `)+1)+1,offset:V,length:$.length,name:$,kind:q.kind,message:xH($,q.kind)})}}}return Z}import w from"path";var hH="@stacksjs/stx-typescript-plugin";function kH(H,K){let Z=w.resolve(H);for(;;){let q=w.join(Z,"tsconfig.json");if(K(q))return q;let Y=w.dirname(Z);if(Y===Z)return;Z=Y}}function YH(H,K,Z){let q=kH(H,Z);if(!q)return;let Y=new Set,z=(A)=>{if(Y.has(A))return;Y.add(A);let G=K(A);if(!G)return;let X=G.compilerOptions?.plugins;if(Array.isArray(X)){let $=X.find((J)=>J?.name===hH),V=Array.isArray($?.libs)?$.libs.filter((J)=>typeof J==="string"):[];return $?{configPath:A,libs:V.map((J)=>w.resolve(w.dirname(A),J))}:null}let M=typeof G.extends==="string"?[G.extends]:Array.isArray(G.extends)?G.extends:[];for(let $ of[...M].reverse()){if(typeof $!=="string"||!$.startsWith("."))continue;let V=w.resolve(w.dirname(A),$.endsWith(".json")?$:`${$}.json`),J=z(V);if(J!==void 0)return J}return};return z(q)??void 0}function gH(H,K="",Z=""){let q=H.startLine>1?`
5
5
  `.repeat(H.startLine-1):"",Y=UH(H)+qH(zH(H.code)),z=H.kind==="client"||H.kind==="plain"?VH(K,H.code):"";return GH(`${q+Y}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{It as a,Jt as b}from"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-wjbfget1.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
2
+ import{It as a,Jt as b}from"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-wjbfget1.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{lk as a,mk as b,nk as c,ok as d}from"./chunk-vp334dmv.js";import"./chunk-prvv9a6j.js";import"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
2
+ import{lk as a,mk as b,nk as c,ok as d}from"./chunk-36e7ynm5.js";import"./chunk-0xj0p6sr.js";import"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Kj as b,Lj as c,Mj as d,Nj as e,Oj as f,Pj as g,Qj as h,Rj as i,Sj as j,Tj as k,Uj as l,Vj as m,Wj as n,Xj as o}from"./chunk-jfa1x5kd.js";import{ul as a}from"./chunk-qjvny3wf.js";import"./chunk-pkyyjb0s.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-2bfza2sf.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
2
+ import{Kj as b,Lj as c,Mj as d,Nj as e,Oj as f,Pj as g,Qj as h,Rj as i,Sj as j,Tj as k,Uj as l,Vj as m,Wj as n,Xj as o}from"./chunk-6t1z916a.js";import{ul as a}from"./chunk-qjvny3wf.js";import"./chunk-9mtve1jh.js";import"./chunk-21ev9jk2.js";import"./chunk-p5ktexx3.js";import"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import"./chunk-38ykv2gd.js";import"./chunk-e4dd299a.js";import"./chunk-h3r7wcxk.js";import"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import"./chunk-cwba6q7v.js";import"./chunk-hyzjprnz.js";import"./chunk-wk6xx6zz.js";import"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import"./chunk-aa8015mk.js";import"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
@@ -135,8 +135,14 @@ import{Tw as v$,Uw as G}from"./chunk-wjbfget1.js";function y($){return $.split(/
135
135
  log('[router] build skew: page is',loadedBuild,'server is',incoming,'\u2014 full navigation');
136
136
  location.href=url;
137
137
  }
138
+ // A link marked data-stx-transition="none" swaps without the cross-fade. A
139
+ // tab bar is the case: iOS switches tabs instantly, and the fade read as a
140
+ // quarter-second lag on every tap in a phone app. Set by the click that
141
+ // started the navigation, so programmatic and history navigations keep it.
142
+ var instantNext=false;
143
+ var instantNav=false;
138
144
  function runViewTransition(callback){
139
- if(!o.viewTransitions||!document.startViewTransition)return false;
145
+ if(instantNav||!o.viewTransitions||!document.startViewTransition)return false;
140
146
  try{
141
147
  var transition=document.startViewTransition(callback);
142
148
  var onAbort=function(err){log('[router] view transition aborted:',err&&err.message?err.message:err)};
@@ -163,19 +169,28 @@ import{Tw as v$,Uw as G}from"./chunk-wjbfget1.js";function y($){return $.split(/
163
169
  progEl.style.opacity=progVal>0?'1':'0';
164
170
  progEl.style.transform='scaleX('+(progVal/100)+')';
165
171
  }
172
+ // Shown only for a navigation that is actually waiting. A page served from
173
+ // the prefetch cache swaps in a few milliseconds, and drawing then fading a
174
+ // bar for it made every instant navigation look like a load.
175
+ var progDelay=null;
166
176
  function startProgress(){
167
177
  if(!o.progress||!progEl)return;
168
178
  if(progTimer){clearInterval(progTimer);progTimer=null}
169
- setProgress(8);
170
- progTimer=setInterval(function(){
171
- if(progVal>=90)return;
172
- // Asymptotic trickle \u2014 fast at first, slower near 90%
173
- var inc=Math.max(0.4,(90-progVal)*0.08);
174
- setProgress(progVal+inc);
175
- },160);
179
+ if(progDelay)clearTimeout(progDelay);
180
+ progDelay=setTimeout(function(){
181
+ progDelay=null;
182
+ setProgress(8);
183
+ progTimer=setInterval(function(){
184
+ if(progVal>=90)return;
185
+ // Asymptotic trickle \u2014 fast at first, slower near 90%
186
+ var inc=Math.max(0.4,(90-progVal)*0.08);
187
+ setProgress(progVal+inc);
188
+ },160);
189
+ },150);
176
190
  }
177
191
  function finishProgress(){
178
192
  if(!o.progress||!progEl)return;
193
+ if(progDelay){clearTimeout(progDelay);progDelay=null;return}
179
194
  if(progTimer){clearInterval(progTimer);progTimer=null}
180
195
  setProgress(100);
181
196
  // Fade out, then reset. Delays chosen so the "full" state is briefly
@@ -777,6 +792,8 @@ import{Tw as v$,Uw as G}from"./chunk-wjbfget1.js";function y($){return $.split(/
777
792
  if(pushState!==false&&t.href===location.href&&!t.hash&&!force)return Promise.resolve(false);
778
793
 
779
794
  isNavigating=true;
795
+ instantNav=instantNext;
796
+ instantNext=false;
780
797
  document.body.classList.add(o.loadingClass);
781
798
  startProgress();
782
799
 
@@ -1312,6 +1329,7 @@ else {
1312
1329
  }catch(err){reject(err)}
1313
1330
  }
1314
1331
  if(runViewTransition(completeFragSwap)){}
1332
+ else if(instantNav){completeFragSwap()}
1315
1333
  else{currentContent.style.transition='opacity 0.12s ease-out';currentContent.style.opacity='0';setTimeout(function(){completeFragSwap();currentContent.style.opacity='1';setTimeout(function(){currentContent.style.transition=''},150)},120)}
1316
1334
  });
1317
1335
  }
@@ -1762,6 +1780,10 @@ else {
1762
1780
  }
1763
1781
  if(runViewTransition(completeSwap)){
1764
1782
  }
1783
+ else if(instantNav){
1784
+ // A tab: swap at once, no fade either way.
1785
+ completeSwap();
1786
+ }
1765
1787
  else {
1766
1788
  // Fallback fade for browsers without View Transitions API
1767
1789
  currentContent.style.transition='opacity 0.12s ease-out';
@@ -1880,6 +1902,7 @@ else {
1880
1902
  e.preventDefault();
1881
1903
  e.stopPropagation();
1882
1904
  log('[router] navigating to:',href);
1905
+ instantNext=link.getAttribute('data-stx-transition')==='none';
1883
1906
  navigate(withCurrentLocale(href));
1884
1907
  });
1885
1908
 
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Bm as b}from"./chunk-pkyyjb0s.js";import{ov as L,sv as R}from"./chunk-ha0a1hpx.js";function P(j,U){let Q=1,J=U,B="<template",z="</template";while(J<j.length&&Q>0){let G=j.indexOf("<",J);if(G===-1)break;if(J=G,j.startsWith(B,J)&&(J+B.length>=j.length||/[\s>\/]/.test(j[J+B.length]))){Q++,J+=B.length;continue}if(j.startsWith(z,J)){let W=j.indexOf(">",J+z.length);if(W!==-1){if(Q--,Q===0)return W+1;J=W+1;continue}}J++}return Q===0?J:-1}var F=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function O(j,U){let Q=null;for(let J=U;J<j.length;J++){let B=j[J];if(Q){if(B==="\\"){J++;continue}if(B===Q)Q=null;continue}if(B==='"'||B==="'"){Q=B;continue}if(B===">")return J+1}return-1}function I(j,U,Q){let J=U.toLowerCase(),B=1,z=Q;while(z<j.length){let G=j.indexOf("<",z);if(G===-1)return-1;if(j.startsWith("<!--",G)){let $=j.indexOf("-->",G+4);z=$===-1?j.length:$+3;continue}let W=O(j,G+1);if(W===-1)return-1;let Z=j.slice(G,W),Y=Z.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(Y&&Y[2].toLowerCase()===J){if(Y[1]==="/"){if(B--,B===0)return W}else if(!/\/\s*>$/.test(Z))B++}z=W}return-1}function w(j){let U=[],Q=[],J=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[2].toLowerCase();if(Z[1]==="/"){let X=Q.lastIndexOf(Y);if(X!==-1)Q.splice(X);B=G;continue}let $=/\/\s*>$/.test(W),K=Q.length===0?W.match(J):null;if(K){let X=K[1]||K[2],H=W.replace(J,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),_=$||F.has(Y)?-1:I(j,Y,G);if(_===-1)U.push({start:z,end:G,slotName:X,element:H}),B=G;else U.push({start:z,end:_,slotName:X,element:H+j.slice(G,_)}),B=_;continue}if(!$&&!F.has(Y)){if(Q.push(Y),Y==="script"||Y==="style"){let X=j.toLowerCase().indexOf(`</${Y}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function D(j){let U=[],Q=[],J=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[1]==="/",$=Z[2].toLowerCase();if(Y){let X=Q.lastIndexOf($);if(X!==-1)Q.splice(X);B=G;continue}if($==="template"&&Q.length===0){let X=W.match(J);if(X){let H=P(j,G);if(H!==-1){let _=X[1]||X[2]||X[3];U.push({start:z,end:H,slotName:_,content:j.slice(G,H-11).trim(),propsBinding:X[4]||void 0}),B=H;continue}}}if(!/\/\s*>$/.test(W)&&!F.has($)){if(Q.push($),$==="script"||$==="style"){let X=j.toLowerCase().indexOf(`</${$}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function v(j){let U={default:"",named:new Map},Q=j,J=D(j);for(let z of J)U.named.set(z.slotName,{name:z.slotName,content:z.content,propsBinding:z.propsBinding});J.sort((z,G)=>G.start-z.start);for(let z of J)Q=Q.slice(0,z.start)+Q.slice(z.end);let B=w(Q);for(let z of B){let G=U.named.get(z.slotName);if(G)G.content+=z.element;else U.named.set(z.slotName,{name:z.slotName,content:z.element})}for(let z=B.length-1;z>=0;z--){let G=B[z];Q=Q.slice(0,G.start)+Q.slice(G.end)}return U.default=Q.trim(),U}function S(j){let U=j.match(/name\s*=\s*["']([^"']+)["']/),Q=U?U[1]:"",J={},B=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,z;while((z=B.exec(j))!==null)J[z[1]]=z[2];let G=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),W=G?G[1].trim():"";return{name:Q,props:J,defaultContent:W}}async function k(j,U,Q,J){if(!j)return Q;let B=j.content;if(j.propsBinding&&Object.keys(U).length>0){let z=j.propsBinding.trim(),G={...J};if(z.startsWith("{")&&z.endsWith("}")){let W=z.slice(1,-1).split(",").map((Z)=>Z.trim()).filter(Boolean);for(let Z of W){let[Y,$]=Z.split(":").map((X)=>X.trim()),K=$||Y;if(U[Y]!==void 0)G[K]=U[Y]}}else G[z]=U;B=N(B,G)}return B}function N(j,U){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(Q,J)=>{try{let B=J.trim(),z=y(B,U);return b(String(z??""))}catch{return`{{ ${J} }}`}})}function y(j,U){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let J=j.split("."),B=U;for(let z of J)if(B&&typeof B==="object"&&z in B)B=B[z];else return;return B}let Q=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(Q){let[,J,B,z]=Q,G=U[J],W=parseInt(z,10);if(typeof G==="number")switch(B){case"+":return G+W;case"-":return G-W;case"*":return G*W;case"/":return G/W}}try{if(!L(j))return;return R(j,Object.keys(U))(...Object.values(U))}catch{return}}async function T(j,U,Q){let J=j;J=await C(J,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(G,W,Z,Y)=>{let $=U.named.get(W),K=Y?.trim()||"",X=Z||"",H={},_=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,q;while((q=_.exec(X))!==null){let A=q[1],V=q[2];H[A]=y(V,Q)}return await k($,H,K,Q)});let z=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return J=J.replace(z,(G,W,Z)=>{if(/\bname\s*=/.test(W||""))return G;let Y=Z?.trim()||"";return U.default||Y}),J}async function C(j,U,Q){let J=[],B=[];j.replace(U,(W,...Z)=>{let Y=Z[Z.length-2];return B.push({match:W,index:Y}),J.push(Q(W,...Z.slice(0,-2))),W});let z=await Promise.all(J),G=j;for(let W=B.length-1;W>=0;W--){let{match:Z,index:Y}=B[W];G=G.slice(0,Y)+z[W]+G.slice(Y+Z.length)}return G}function E(j){let U=v(j);return{defaultSlot:U.default,namedSlots:U.named}}async function x(j,U,Q,J){return await T(j,{default:U,named:Q},J)}
2
+ import{Bm as b}from"./chunk-9mtve1jh.js";import{ov as L,sv as R}from"./chunk-ha0a1hpx.js";function P(j,U){let Q=1,J=U,B="<template",z="</template";while(J<j.length&&Q>0){let G=j.indexOf("<",J);if(G===-1)break;if(J=G,j.startsWith(B,J)&&(J+B.length>=j.length||/[\s>\/]/.test(j[J+B.length]))){Q++,J+=B.length;continue}if(j.startsWith(z,J)){let W=j.indexOf(">",J+z.length);if(W!==-1){if(Q--,Q===0)return W+1;J=W+1;continue}}J++}return Q===0?J:-1}var F=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function O(j,U){let Q=null;for(let J=U;J<j.length;J++){let B=j[J];if(Q){if(B==="\\"){J++;continue}if(B===Q)Q=null;continue}if(B==='"'||B==="'"){Q=B;continue}if(B===">")return J+1}return-1}function I(j,U,Q){let J=U.toLowerCase(),B=1,z=Q;while(z<j.length){let G=j.indexOf("<",z);if(G===-1)return-1;if(j.startsWith("<!--",G)){let $=j.indexOf("-->",G+4);z=$===-1?j.length:$+3;continue}let W=O(j,G+1);if(W===-1)return-1;let Z=j.slice(G,W),Y=Z.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(Y&&Y[2].toLowerCase()===J){if(Y[1]==="/"){if(B--,B===0)return W}else if(!/\/\s*>$/.test(Z))B++}z=W}return-1}function w(j){let U=[],Q=[],J=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[2].toLowerCase();if(Z[1]==="/"){let X=Q.lastIndexOf(Y);if(X!==-1)Q.splice(X);B=G;continue}let $=/\/\s*>$/.test(W),K=Q.length===0?W.match(J):null;if(K){let X=K[1]||K[2],H=W.replace(J,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),_=$||F.has(Y)?-1:I(j,Y,G);if(_===-1)U.push({start:z,end:G,slotName:X,element:H}),B=G;else U.push({start:z,end:_,slotName:X,element:H+j.slice(G,_)}),B=_;continue}if(!$&&!F.has(Y)){if(Q.push(Y),Y==="script"||Y==="style"){let X=j.toLowerCase().indexOf(`</${Y}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function D(j){let U=[],Q=[],J=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[1]==="/",$=Z[2].toLowerCase();if(Y){let X=Q.lastIndexOf($);if(X!==-1)Q.splice(X);B=G;continue}if($==="template"&&Q.length===0){let X=W.match(J);if(X){let H=P(j,G);if(H!==-1){let _=X[1]||X[2]||X[3];U.push({start:z,end:H,slotName:_,content:j.slice(G,H-11).trim(),propsBinding:X[4]||void 0}),B=H;continue}}}if(!/\/\s*>$/.test(W)&&!F.has($)){if(Q.push($),$==="script"||$==="style"){let X=j.toLowerCase().indexOf(`</${$}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function v(j){let U={default:"",named:new Map},Q=j,J=D(j);for(let z of J)U.named.set(z.slotName,{name:z.slotName,content:z.content,propsBinding:z.propsBinding});J.sort((z,G)=>G.start-z.start);for(let z of J)Q=Q.slice(0,z.start)+Q.slice(z.end);let B=w(Q);for(let z of B){let G=U.named.get(z.slotName);if(G)G.content+=z.element;else U.named.set(z.slotName,{name:z.slotName,content:z.element})}for(let z=B.length-1;z>=0;z--){let G=B[z];Q=Q.slice(0,G.start)+Q.slice(G.end)}return U.default=Q.trim(),U}function S(j){let U=j.match(/name\s*=\s*["']([^"']+)["']/),Q=U?U[1]:"",J={},B=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,z;while((z=B.exec(j))!==null)J[z[1]]=z[2];let G=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),W=G?G[1].trim():"";return{name:Q,props:J,defaultContent:W}}async function k(j,U,Q,J){if(!j)return Q;let B=j.content;if(j.propsBinding&&Object.keys(U).length>0){let z=j.propsBinding.trim(),G={...J};if(z.startsWith("{")&&z.endsWith("}")){let W=z.slice(1,-1).split(",").map((Z)=>Z.trim()).filter(Boolean);for(let Z of W){let[Y,$]=Z.split(":").map((X)=>X.trim()),K=$||Y;if(U[Y]!==void 0)G[K]=U[Y]}}else G[z]=U;B=N(B,G)}return B}function N(j,U){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(Q,J)=>{try{let B=J.trim(),z=y(B,U);return b(String(z??""))}catch{return`{{ ${J} }}`}})}function y(j,U){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let J=j.split("."),B=U;for(let z of J)if(B&&typeof B==="object"&&z in B)B=B[z];else return;return B}let Q=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(Q){let[,J,B,z]=Q,G=U[J],W=parseInt(z,10);if(typeof G==="number")switch(B){case"+":return G+W;case"-":return G-W;case"*":return G*W;case"/":return G/W}}try{if(!L(j))return;return R(j,Object.keys(U))(...Object.values(U))}catch{return}}async function T(j,U,Q){let J=j;J=await C(J,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(G,W,Z,Y)=>{let $=U.named.get(W),K=Y?.trim()||"",X=Z||"",H={},_=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,q;while((q=_.exec(X))!==null){let A=q[1],V=q[2];H[A]=y(V,Q)}return await k($,H,K,Q)});let z=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return J=J.replace(z,(G,W,Z)=>{if(/\bname\s*=/.test(W||""))return G;let Y=Z?.trim()||"";return U.default||Y}),J}async function C(j,U,Q){let J=[],B=[];j.replace(U,(W,...Z)=>{let Y=Z[Z.length-2];return B.push({match:W,index:Y}),J.push(Q(W,...Z.slice(0,-2))),W});let z=await Promise.all(J),G=j;for(let W=B.length-1;W>=0;W--){let{match:Z,index:Y}=B[W];G=G.slice(0,Y)+z[W]+G.slice(Y+Z.length)}return G}function E(j){let U=v(j);return{defaultSlot:U.default,namedSlots:U.named}}async function x(j,U,Q,J){return await T(j,{default:U,named:Q},J)}
3
3
  export{v as Lg,S as Mg,k as Ng,T as Og,E as Pg,x as Qg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as lm,$a as oo,$b as zp,$c as zq,$d as zr,A as Xk,Aa as zn,Ab as To,Ac as _p,Ad as _q,Ae as es,B as Yk,Ba as An,Bb as Uo,Bc as $p,Bd as $q,Be as fs,C as Zk,Ca as Nn,Cb as Vo,Cc as aq,Cd as ar,Ce as gs,D as _k,Da as On,Db as Wo,Dc as bq,Dd as br,De as hs,E as Ql,Ea as Pn,Eb as Xo,Ec as cq,Ed as cr,Ee as is,F as Rl,Fa as Qn,Fb as Yo,Fc as dq,Fd as dr,Fe as js,G as Sl,Ga as Rn,Gb as Zo,Gc as eq,Gd as er,Ge as ks,H as Tl,Ha as Sn,Hb as _o,Hc as fq,Hd as fr,He as ls,I as Ul,Ia as Wn,Ib as $o,Ic as gq,Id as gr,Ie as ms,J as Vl,Ja as Xn,Jb as ap,Jc as hq,Jd as hr,Je as ns,K as Wl,Ka as Yn,Kb as bp,Kc as iq,Kd as ir,Ke as os,L as Xl,La as Zn,Lb as cp,Lc as jq,Ld as jr,M as Yl,Ma as _n,Mb as dp,Mc as kq,Md as kr,N as Zl,Na as $n,Nb as lp,Nc as lq,Nd as lr,O as _l,Oa as ao,Ob as mp,Oc as mq,Od as mr,P as $l,Pa as bo,Pb as np,Pc as nq,Pd as nr,Q as am,Qa as co,Qb as op,Qc as oq,Qd as or,R as bm,Ra as eo,Rb as pp,Rc as pq,Rd as pr,S as cm,Sa as fo,Sb as qp,Sc as qq,Sd as qr,T as dm,Ta as go,Tb as rp,Tc as rq,Td as rr,U as em,Ua as ho,Ub as sp,Uc as sq,Ud as sr,V as fm,Va as io,Vb as tp,Vc as tq,Vd as tr,W as gm,Wa as jo,Wb as up,Wc as uq,Wd as ur,X as hm,Xa as ko,Xb as vp,Xc as vq,Xd as vr,Y as im,Ya as lo,Yb as wp,Yc as wq,Yd as wr,Z as jm,Za as mo,Zb as xp,Zc as xq,Zd as xr,_ as km,_a as no,_b as yp,_c as yq,_d as yr,aa as mm,ab as po,ac as Ap,ad as Aq,ae as Ar,ba as nm,bb as qo,bc as Bp,bd as Bq,be as Hr,ca as om,cb as ro,cc as Cp,cd as Cq,ce as Ir,da as pm,db as so,dc as Dp,dd as Dq,de as Jr,ea as qm,eb as to,ec as Ep,ed as Eq,ee as Kr,fa as rm,fb as uo,fc as Fp,fd as Fq,fe as Lr,ga as sm,gb as vo,gc as Gp,gd as Gq,ge as Mr,ha as tm,hb as wo,hc as Hp,hd as Hq,he as Nr,ia as um,ib as xo,ic as Ip,id as Iq,ie as Or,ja as vm,jb as yo,jc as Jp,jd as Jq,je as Pr,ka as wm,kb as zo,kc as Kp,kd as Kq,ke as Qr,la as xm,lb as Ao,lc as Lp,ld as Lq,le as Rr,ma as ym,mb as Bo,mc as Mp,md as Mq,me as Sr,na as zm,nb as Eo,nc as Np,nd as Nq,ne as Tr,o as a,oa as Am,ob as Fo,oc as Op,od as Oq,oe as Ur,p as Ik,pa as on,pb as Go,pc as Pp,pd as Pq,pe as Vr,q as Jk,qa as pn,qb as Ho,qc as Qp,qd as Qq,qe as Wr,r as Kk,ra as qn,rb as Jo,rc as Rp,rd as Rq,re as Xr,s as Lk,sa as rn,sb as Ko,sc as Sp,sd as Sq,se as Yr,t as Mk,ta as sn,tb as Lo,tc as Tp,td as Tq,te as Zr,u as Nk,ua as tn,ub as Mo,uc as Up,ud as Uq,ue as _r,v as Ok,va as un,vb as Oo,vc as Vp,vd as Vq,ve as $r,w as Pk,wa as vn,wb as Po,wc as Wp,wd as Wq,we as as,x as Qk,xa as wn,xb as Qo,xc as Xp,xd as Xq,xe as bs,y as Vk,ya as xn,yb as Ro,yc as Yp,yd as Yq,ye as cs,z as Wk,za as yn,zb as So,zc as Zp,zd as Zq,ze as ds}from"./chunk-daj371qf.js";import{Le as ep,Me as fp,Ne as gp,Oe as hp,Pe as ip,Qe as jp,Re as kp}from"./chunk-wmdjr6s6.js";import{Se as Co,Te as Do}from"./chunk-7hb89n3z.js";import{Ue as Io}from"./chunk-8g3gz84z.js";import{Ve as nn}from"./chunk-bg80g9fa.js";import{We as Tn,Xe as Un,Ye as Vn,Ze as No}from"./chunk-wbmfa418.js";import{$e as al,_e as $k,af as bl,bf as cl,cf as dl,df as el,ef as fl,ff as gl,gf as hl,hf as il,if as jl,jf as kl,kf as ll,lf as ml,mf as nl}from"./chunk-n0d7nwhd.js";import{nf as El,of as Fl,pf as Gl,qf as Hl,rf as Il,sf as Jl,tf as Kl,uf as Ll,vf as Ml,wf as Nl,xf as Ol,yf as Pl}from"./chunk-e5dg9z8x.js";import{Af as Dl,zf as Cl}from"./chunk-758a92ey.js";import{Bf as ol,Cf as pl,Df as ql,Ef as rl,Ff as sl,Gf as tl,Hf as ul,Jf as vl,Kf as wl,Lf as xl,Mf as yl,Nf as zl,Of as Al,Rf as Bl}from"./chunk-67wmfv2q.js";import{Sf as Xm,Tf as Ym,Uf as Zm,Vf as _m,Wf as $m,Xf as mn}from"./chunk-trcv8bvh.js";import{$f as Em,Yf as Bm,Zf as Cm,_f as Dm,ag as Fm,bg as Gm,cg as Hm,dg as Im,eg as Jm,fg as Km,gg as Lm,hg as Mm,ig as Nm,jg as Om,kg as Pm,lg as Qm,mg as an,ng as bn,og as cn,pg as dn,qg as en,rg as fn,sg as gn,tg as hn,ug as jn,vg as kn,wg as ln}from"./chunk-6ad7dac2.js";import{xg as Rm,yg as Sm}from"./chunk-0knxnyq6.js";import{Ag as Cn,Bg as Dn,Cg as En,Dg as Fn,Eg as Gn,Fg as Hn,Gg as In,Hg as Jn,Ig as Kn,Jg as Ln,Kg as Mn,zg as Bn}from"./chunk-634gaa9d.js";import{Lg as ri,Mg as si,Ng as ti,Og as ui,Pg as vi,Qg as wi}from"./chunk-fj8t66gj.js";import{Rg as Mj,Sg as Nj,Tg as Oj,Xg as Pj,Yg as Qj,Zg as Rj}from"./chunk-fq8mj9f8.js";import{$g as Yj,_g as Xj,ah as Zj,bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk}from"./chunk-h92qqvb3.js";import{jh as Cj,kh as Dj,lh as Ej,mh as Fj,nh as Gj,ph as Hj,qh as Ij,rh as Jj,sh as Kj,th as Lj}from"./chunk-bcpjhcpn.js";import{uh as xk,wh as yk}from"./chunk-y4zddt5r.js";import{Ch as Mh,Dh as Nh,Eh as Oh,Fh as Ph,Gh as Qh,Hh as Rh}from"./chunk-g7bpkpd4.js";import{Jh as Sh,Kh as Th,Lh as Uh,Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di}from"./chunk-k33778kc.js";import{$h as hi,Yh as ei,Zh as fi,_h as gi}from"./chunk-ys4hpkrp.js";import{ei as ii}from"./chunk-g1vxsvqv.js";import{hi as lh}from"./chunk-gwy5my1m.js";import{ii as mh}from"./chunk-fqq5k9ve.js";import{ji as nh,ki as oh}from"./chunk-ya5m5vbn.js";import{li as ph,mi as qh,ni as rh,oi as sh,pi as th,qi as uh}from"./chunk-y4nzmkea.js";import{ri as vh,si as wh,ti as xh,ui as yh,vi as zh}from"./chunk-7kw3grq5.js";import{Ai as Eh,wi as Ah,xi as Bh,yi as Ch,zi as Dh}from"./chunk-c79nfdyj.js";import{Bi as Fh,Ci as Gh,Di as Hh,Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh}from"./chunk-ej8mv2k6.js";import{Ii as jh,Ji as kh}from"./chunk-28jfhc2j.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-k6wh31tq.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-wp8273q0.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-jfa1x5kd.js";import{pk as Br,qk as Cr,rk as Dr,sk as Er,tk as Fr,uk as Gr}from"./chunk-prvv9a6j.js";import{Ak as Um,Bk as Vm,Ck as Wm,vk as Rk,wk as Sk,xk as Tk,yk as Uk,zk as Tm}from"./chunk-3edgxt8n.js";import"./chunk-frp9fc7j.js";import"./chunk-j4bgqy2d.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-bxw0wt46.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as ji,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as ki,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as li,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,aq as mi,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,bq as ni,br as Sj,cm as Wb,cn as od,co as Ke,cp as Ag,cq as oi,cr as Tj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Uj,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as xi,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as yi,gr as gk,hm as lc,hn as xd,hp as Fg,hq as zi,hr as hk,im as mc,in as yd,ip as Gg,iq as Ai,ir as ik,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Yi,xr as zk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Zi,yr as Ak,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as _i,zr as Bk}from"./chunk-pkyyjb0s.js";import{$r as fa,Gr as M,Hr as N,Ir as O,Jr as P,Kr as Q,Lr as R,Mr as S,Nr as T,Or as U,Pr as V,Qr as W,Rr as X,Sr as Y,Tr as Z,Ur as _,Vr as $,Wr as aa,Xr as ba,Yr as ca,Zr as da,_r as ea,as as ia,bs as ja,cs as ka,ds as la,es as ma,fs as na,gs as oa,hs as pa,is as qa,js as ra,ks as sa,ls as ta,ms as ua,ns as va,os as wa}from"./chunk-21ev9jk2.js";import{ps as ga,qs as ha}from"./chunk-p5ktexx3.js";import{rs as Rb,ss as Sb,ts as Tb}from"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import{As as Pi,Bs as Qi,Cs as Ri,Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi}from"./chunk-38ykv2gd.js";import{$s as Sc,_s as Rc,at as Tc,bt as Uc,ct as Vc,et as Wc,nt as Xc,ot as Yc,pt as Zc}from"./chunk-2bfza2sf.js";import{qt as Xb,rt as Yb,st as Zb,tt as _b,ut as $b,vt as ac}from"./chunk-h3r7wcxk.js";import{Ct as Fe,Et as Ge,Ht as He}from"./chunk-veky1cte.js";import"./chunk-hxfbv1v6.js";import{Mt as cc,Nt as dc}from"./chunk-cwba6q7v.js";import{$t as og,Rt as fg,St as gg,Tt as hg,Ut as ig,Vt as jg,Wt as kg,Xt as lg,Zt as mg,_t as ng,au as pg}from"./chunk-hyzjprnz.js";import{Au as ne,Bu as oe,Cu as pe,Du as qe,bu as rd,cu as sd,du as td,eu as ud,ou as be,pu as ce,qu as de,ru as ee,su as fe,tu as ge,uu as he,vu as ie,wu as je,xu as ke,yu as le,zu as me}from"./chunk-wk6xx6zz.js";import{$u as B,Eu as b,Fu as c,Gu as d,Hu as e,Iu as f,Ju as g,Ku as h,Lu as i,Mu as m,Nu as n,Ou as o,Pu as p,Qu as q,Ru as r,Su as s,Tu as t,Uu as u,Vu as v,Wu as w,Xu as x,Yu as y,Zu as z,_u as A,av as C,bv as D,cv as E,dv as F,ev as G,fv as H,gv as I,hv as J,iv as K,jv as L}from"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import{Av as pb,Bv as qb,Cv as rb,Dv as sb,Ev as tb,Fv as ub,Gv as vb,Hv as wb,Iv as xb,Jv as yb,Kv as zb,Lv as Ab,Mv as Bb,Nv as Cb,Ov as Db,Pv as Eb,Qv as Fb,Rv as Gb,Sv as Hb,Tv as Ib,Uv as Jb,zv as ob}from"./chunk-aa8015mk.js";import{Aw as gb,Cw as hb,Yv as Pa,Zv as Qa,aw as Ra,fw as Sa,gw as Ta,mw as Ua,nw as Va,ow as Wa,pw as Xa,qw as Ya,rw as Za,sw as _a,tw as $a,uw as ab,vw as bb,ww as cb,xw as db,yw as eb,zw as fb}from"./chunk-qe46ye0t.js";import"./chunk-rtfwn4cm.js";import{Ow as j,Pw as k,Qw as l}from"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{jl as writeNetlifyConfig,bn as writeManifest,Ol as writeImageManifest,up as wrapComponentForHMR,bs as withDefaults,wk as webComponentDirectiveHandler,jq as watermark,lr as watchViews,Yl as watchMultiple,Zl as watchEffect,Xl as watch,Me as warmImagePlaceholders,km as waitForStore,X as waitForLocale,fp as virtualPathFor,jk as videoDirective,G as validators,fs as validated,Ce as validateValueEnhanced,mi as validateTemplate,Rm as validateRouteRules,oq as validateParams,De as validateFormEnhanced,ar as validateFile,ye as validateFields,xe as validateField,oi as validateDirective,Xd as validateCspDirectives,Ek as validateConfig,pn as validateComponentScripts,Nn as validateComponentProps,ih as validateClientScript,hi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ci as userComponentFileExists,Ph as useVirtualList,je as useTitle,jm as useStoreOrThrow,Mp as useStore,Vk as useStorage,Af as useSlots,Xk as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,lm as useRouteParams,nm as useRouteParamOrThrow,mm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,pm as useMiddlewareValue,om as useMiddlewareState,Wk as useLocalStorage,np as useLoadingIndicator,ee as useHead,ei as useForm,Cf as useAttrs,cr as uploadFiles,br as uploadFile,gm as updateInstance,pf as untrack,Si as unregisterDirective,hm as unmountInstance,Qc as unescapeHtml,jp as typecheckStxFiles,Ai as transpileTypeScript,Qr as translate,Ba as transitionDirective,lc as transformAutoImports,Hn as toUsers,Gn as toUser,Up as thumbnail,Vq as thumbHashToRGBA,Wq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,rp as stxClientHelpers,kg as structuredDataDirective,Tr as stripLocalePrefix,Om as stripDocumentWrapper,Sb as stripCommentsAndLiterals,so as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Qk as stopHmrServer,Dn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,ch as startsDocument,No as startProductionServer,Io as startInteractive,Cn as startBroadcasting,Vr as stampLocaleLayoutGroup,Ia as staggerDirective,mq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Km as spaNavVaryHeaders,gp as sourcePathFor,tq as smartBatchSign,Ei as slotContentHasExpressions,rq as signUrl,yi as shouldTranspileTypeScript,Nk as shouldReloadOnChange,wq as shouldRefreshSignature,Ok as shouldIgnoreFile,Hh as shouldCacheComponent,Yp as sharpen,is as shape,Zb as setStateDir,tm as setRouteParams,um as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Ql as setCurrentInstance,Zj as setCachedVideoResult,Oj as setCachedImageResult,Ij as setCached,ls as serveStxFile,ns as serveMultipleStxFiles,Ik as serveMarkdownFile,Yo as serveFile,os as serveApp,Xo as serve,xp as serializeState,dn as serializeSetCookie,_p as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Bi as scopeOnRootElement,nk as scopeHTML,mk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,cq as saturation,pq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,gn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,em as runHooks,Jr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,dq as rotate,ii as rewriteImagesWithSiblings,od as responseBindings,Ii as resolveTemplatePath,ha as resolveStxTargets,Ak as resolveStxDirectories,Pr as resolveI18n,Sp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,wp as resetHMRHandler,o as resetErrorConfig,ds as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,jr as renderView,gk as renderVideoComponent,ic as renderVendorStyleTags,sr as renderToString,tr as renderToStream,ur as renderToDOM,Uq as renderThumbhashToCanvas,Gr as renderTemplateString,Er as renderTemplate,Fr as renderString,Se as renderStreamingPage,ti as renderSlot,xh as renderSSRSuspense,Eq as renderProtectedVideo,Dq as renderProtectedImg,qq as renderMediaUpload,Dr as renderMarkdownView,Vm as renderLayoutTypes,Sj as renderImgComponent,El as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,mr as renderEmail,Gi as renderComponentWithSlot,me as renderBodyAttrs,Hp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Op as registerStoresClient,rm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Pi as registerDirective,Wd as registerCspDirectives,Qn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Ul as ref,Ao as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Gk as readMarkdownFile,Kf as readFileCached,Vl as reactive,hq as quality,Bq as pruneSignatureCache,Lj as pruneCache,sf as provide,Cr as protectCodeBlocks,cs as prop,Fg as processVueTemplate,Nh as processVirtualListDirectives,Rh as processVirtualGridDirectives,fk as processVideo,ze as processValidateDirective,ea as processTranslateDirective,rh as processTransitionDirectives,uh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,nh as processTeleportDirectives,vh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,ci as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,ui as processSlots,Mm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Fq as processProtectedMedia,Xh as processPartialHydrationDirectives,hh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Hk as processMarkdownFileDirectives,Ni as processMarkdownDirectives,dg as processLoops,Fh as processKeepAliveDirectives,gh as processJsonDirective,Qh as processInfiniteListDirectives,ug as processIncludes,Uj as processImgComponents,Gl as processImageComponents,tl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,ji as processDirectives,Xi as processDirectiveAttributes,mh as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,js as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Ah as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,mp as preloadIslandHandlers,Ne as preloadIconCollection,yn as poolStrings,yk as pluginManager,Je as placeholdersWarmed,qh as performLeave,ph as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,hk as parseVideoDirectiveOptions,Qp as parseUrl,Xq as parseThumbhashString,Ad as parseSwitchBlock,ri as parseSlots,si as parseSlotElement,Fd as parseScriptDeclarations,uk as parseSFCComponent,Gq as parseProtectedArgs,bg as parseLoopBinding,Tj as parseImgComponent,jj as parseImageUrl,Fl as parseImageComponent,en as parseFormBody,Cd as parseExpressionWithFilters,Rn as parseDefaults,xo as parseCookies,Dm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,es as optional,zn as optimizeTemplate,Ll as optimizeImage,Ml as optimizeDirectory,gs as oneOf,sg as onceStore,bm as onUpdated,_c as onUpdate,dm as onUnmounted,ym as onServer,$l as onMounted,hf as onMount,bi as onHydrated,yf as onErrorCaptured,jf as onDestroy,Lh as onDeactivated,xm as onClient,am as onBeforeUpdate,cm as onBeforeUnmount,_l as onBeforeMount,Kh as onActivated,Qq as observeElement,Bo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Un as negotiateEncoding,Ua as navigateTo,fm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,xn as minifyHtml,jg as metaDirective,Wg as metaDedupKey,Rp as mergeParams,Yg as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Oi as markdownDirectiveHandler,Fk as markdownCache,ga as looksLikeGlob,Sr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Bk as loadStxConfig,db as loadMiddlewareFromDirectory,cn as loadManifest,Mq as loadElement,En as loadChannels,Lb as listensPassively,Zr as lintStxStrict,Oq as lazyLoadAll,Nq as lazyLoad,Ha as keyframeDirective,qr as jsxs,rr as jsxDEV,pr as jsx,zo as jsonResponse,Ye as islandDirective,l as isTest,Pm as isSpaNavigation,Im as isSpaNavRequest,uq as isSignatureValid,nf as isSignal,rl as isSharpAvailable,lo as isServerEnvironment,vm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Jq as isNativeLazySupported,Br as isMarkdownPath,Q as isLoading,R as isLoaded,xi as isJavaScriptScript,Kq as isIntersectionObserverSupported,zl as isImageFile,sl as isImageBackendAvailable,aa as isICUFormat,ai as isHydrated,Di as isHydrateTrigger,hd as isHttpStatus,ko as isEdgeEnvironment,_r as isDirectiveKind,k as isDevelopment,of as isDerived,Mk as isCssOnlyChange,Tn as isCompressible,wm as isClient,Ch as isAsyncComponent,fn as isActionableMethod,$p as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Or as injectThemeBootstrap,ig as injectSeoTags,Lr as injectSeo,Xf as injectRouterScript,Lk as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,eh as injectConfigHeadTags,Kg as injectColorModeBootScript,_g as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,qm as initStoreRegistry,ml as initNetlify,op as initLoadingIndicator,Lq as initLazyLoading,Ho as initFile,Tq as initBlurUp,Zq as initAllBlurUp,Wj as imgDirective,Jl as imageDirective,kn as hydrateTemplateStream,jn as hydrateTemplate,lp as hydrateIslands,Zh as hydrateIsland,ln as hydrateFragment,_h as hydrateByStrategy,$h as hydrateAll,Ep as hydrate,Wo as htmlResponse,ah as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Ej as hashString,Wf as hashFilePath,Cj as hashFile,Dj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Jp as hasStore,xc as hasPlaceholders,kl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,dh as hasDocumentShell,pi as hasDirectives,ma as hasDOMSupport,Cl as handleImageRequest,zf as handleError,yr as h,yl as groupVariantsByFormat,Zp as grayscale,Po as gitHash,rn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,fl as getTotalSize,vq as getTimeUntilExpiry,jh as getStoreScript,Kp as getStoreNames,Ip as getStore,_k as getStorageSize,Zk as getStorageKeys,Ji as getSourceLineInfo,zi as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,ok as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,ni as getPositionInfo,uc as getPlaceholderRegistry,Bj as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Al as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,ul as getImageMetadata,Fe as getImageDelivery,Dp as getHydrationRuntime,sm as getHydratedStoreState,Pk as getHmrServer,be as getHead,vp as getHMRHandler,nj as getFormatExtension,Gj as getFileMtime,xl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ri as getDirectives,Qi as getDirective,Rl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Mi as getComponentCacheStats,Yj as getCachedVideoResult,zq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,zj as getCachedPlaceholder,Nj as getCachedImageResult,Hj as getCached,Kj as getCacheStats,Pg as getBuildId,Bn as getBroadcastServer,mj as getBestVariant,Bc as getAllFilters,aj as generateWidthSrcset,Oh as generateVirtualListCSS,er as generateVideoPreview,Ee as generateValidationScript,fr as generateUploadRuntime,sn as generateTreeShakenBundle,th as generateTransitionRuntime,sh as generateTransitionCSS,ak as generateThumbnails,sj as generateThumbhashPlaceholder,bo as generateTemplatesDocs,zh as generateSuspenseRuntime,yh as generateSuspenseCSS,yp as generateStateScript,kj as generateSrcsetData,Rj as generateSrcset,vl as generateSrcSet,bk as generateSpriteSheet,nr as generateSpaShell,lj as generateSourceTags,gj as generateSizesFromBreakpoints,fj as generateSizesAttribute,wl as generateSizes,mg as generateSitemapIndex,Mr as generateSitemap,Iq as generateSimpleMediaPicker,Cq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,lk as generateScopeId,vk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Nr as generateRobots,Qj as generateResponsiveVariants,rk as generateReactiveWebComponentTS,qk as generateReactiveWebComponent,tk as generateReactiveRuntime,sk as generateReactiveMixin,$j as generatePoster,yj as generatePlaceholderStyle,xj as generatePlaceholderCSS,rj as generatePlaceholder,Yh as generatePartialHydrationCSS,Gd as generateNonce,gl as generateNetlifyToml,hr as generateMinifiedMediaRuntime,gr as generateMediaRuntime,Hq as generateMediaManagerEmbed,an as generateManifest,qp as generateLoadingIndicatorHtml,Sq as generateLazyLoadRuntime,Wm as generateLayoutTypes,uj as generateLQIP,Jh as generateKeepAliveRuntime,Ih as generateKeepAliveCSS,di as generateIslandManifest,dr as generateImagePreview,Nl as generateImageManifest,Cp as generateHydrationScript,af as generateHydrationRuntime,Fp as generateHydrationCSS,Sh as generateHydrationBootstrap,Kk as generateHotReloadScript,jb as generateHeatmapScript,tp as generateHMRClientScript,ck as generateHLSManifest,zp as generateEventBindings,ej as generateDprSrcsetWithVariableQuality,dj as generateDprSrcset,bh as generateDocumentShell,ho as generateDocs,co as generateDirectivesDocs,Wi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,dk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ao as generateComponentsDocs,Th as generateComponentManifest,_n as generateComponentDoc,wj as generateColorPlaceholder,Jg as generateColorModeBootScript,im as generateClientRuntime,Fj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,_q as generateBlurUpRuntime,$q as generateBlurUpCSS,ad as generateBindingsRuntime,bj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Eh as generateAsyncComponentRuntime,Dh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,kp as formatTypecheckDiagnostics,dp as formatTypeErrors,Eo as formatStxContent,el as formatSize,Ta as formatRoutes,Fo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Kr as formatDoctorReport,eo as formatDocsAsMarkdown,go as formatDocsAsJson,fo as formatDocsAsHtml,gq as format,wn as foldConstants,fq as flipVertical,eq as flipHorizontal,Xm as fingerprint,ip as findStxModuleDeclarations,hp as findRuntimeTypeDeclarations,Ir as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,tn as findDeadCode,tn as findDeadBranches,Em as findContainerRegion,$n as findComponentFiles,ms as findCommonDir,dl as filterRequiredFiles,Hi as fileExists,Zf as extractVariables,li as extractTemplateExpressions,Ue as extractStreamBoundaries,Ap as extractState,vi as extractSlotContent,$f as extractScriptFromTemplate,ki as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,vj as extractDominantColor,Ed as extractDirectiveParams,qi as extractDirectiveNames,Qm as extractContainerContent,Yn as extractComponentProps,Uh as extractComponentName,Zn as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Vh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,pk as extractAndScopeStyles,Ob as extractAndProcessEvents,Tk as externalizeSharedAssets,Uk as externalizeRepeatedAssets,Sk as externalizeHtml,Pc as evaluateExpression,vn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,oh as ensureTeleportTargets,fh as ensureDocumentShell,Ae as enhancedValidationRules,Wn as enableDevTools,un as eliminateDeadCode,ff as effect,nq as dprUrls,io as docsCommand,ec as discoverServerApi,Um as discoverLayoutNames,Rq as disconnectObserver,Xn as disableDevTools,F as devHelpers,Lm as detectShell,jo as detectRuntime,hl as detectProjectConfig,oj as detectFormat,on as detectBuildMode,ef as derived,ll as deploy,Dk as defineStxConfig,Np as defineStore,Bf as defineSlots,Yr as defineSiteConfig,as as definePropsWithValidation,$r as defineProps,xk as definePlugin,ie as definePageMeta,Wa as defineMiddleware,fi as defineForm,wf as defineExpose,vf as defineEmits,Ti as defineDirective,Ar as defineCustomElement,Mo as defineConfig,Ui as defineClientDirective,Bh as defineAsyncComponent,Oo as defineApiHandler,ir as defaultMediaConfig,Pl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,zk as defaultConfig,ks as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Hm as decodeTitleEntities,tj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,Yq as crossfadeTransition,Tp as crop,Mh as createVirtualList,ik as createVideoDirective,vo as createVercelHandler,ap as createTypeChecker,fa as createTranslateFilter,ro as createTextEncoderStream,zr as createStxApp,qo as createStreamingResponse,We as createStreamRenderer,Lp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Tl as createScope,wh as createSSRSuspense,bf as createRouter,Sm as createRouteRuleResolver,eb as createRouteLocation,_o as createRoute,Ul as createRef,Vl as createReactive,Df as createProvideContext,Ro as createProject,Lo as createProductionBuild,tc as createPlaceholder,An as createOptimizedBuild,wo as createNetlifyHandler,$k as createNetlifyClient,fb as createMiddlewareContext,Zo as createMiddleware,Pq as createLazyObserver,Gh as createKeepAliveCache,no as createKVNamespace,Wh as createIslandRegistry,Vj as createImgDirective,Kl as createImagePlugin,Dl as createImageHandler,Il as createImageDirective,nb as createHeatmapAggregator,cl as createFileManifest,mo as createEnvAccessor,z as createEnhancedError,po as createEdgeHandler,oo as createEdgeCache,Ki as createDetailedErrorMessage,uo as createDenoHandler,il as createDefaultNetlifyConfig,Zd as createCspHeaders,yo as createCookie,Wl as createComputed,Sl as createComponentInstance,to as createCloudflareHandler,Ya as createClientCookieManager,Vi as createBuiltinDirectives,zr as createApp,Ka as createAnimationTimeline,Wp as cover,_f as convertToCommonJS,bq as contrast,Vp as contain,y as consoleError,m as configureErrorHandling,Ck as config,Wl as computed,Vn as compressResponse,Bg as composerPattern,Ag as composer,Nm as composeShellWithPage,Pn as componentDirective,Fi as componentClientSignalNames,$m as compileTemplate,a as collectRepeatedFlag,bl as collectDeployFiles,$g as cloakStyleFragment,Ic as clientLoopScopes,_j as clearVideoCache,N as clearTranslationCache,kh as clearStoreCache,Yk as clearStorage,Aq as clearSignatureCache,Gf as clearServerData,Aj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Hl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,lh as clearComposableCache,Li as clearComponentCache,Jj as clearCache,Ib as clearBlankCache,pp as cleanupLoadingIndicator,Bm as classifyScript,Cm as classifyAllScripts,bp as checkTemplateFile,cp as checkTemplate,Uf as checkCache,xq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Kn as channel,Do as captureScreenshots,Co as captureScreenshot,Z as cancelPendingLoads,al as calculateSha1,cj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,kk as buildWebComponents,ep as buildVirtualSource,kr as buildViews,Pp as buildUrl,Qe as buildSuspenseResolveScript,Xr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Ym as buildRuntimeAsset,Zm as buildRouterAsset,Wr as buildLangPickerScript,ij as buildImageUrl,Sg as buildIdFragment,Xg as buildHtmlAttrs,mn as buildForProduction,Sn as buildComponentLibrary,yq as buildAuthParams,nn as buildApp,Ur as buildAlternateLinks,Ko as build,In as broadcastPrivate,Jn as broadcastPresence,Fn as broadcast,aq as brightness,Tb as bracketDepths,Xp as blur,Jb as blankInertHtmlRegions,sq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,iq as auto,ja as attributeValue,_m as assetTags,Mb as asInvocableStatement,hs as arrayOf,Rr as applyTranslations,Pj as applyTransformations,wi as applySlots,On as applyPropDefaults,lq as applyPreset,Zg as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Jm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,ek as analyzeVideo,qn as analyzeUsage,zm as analyzeTemplate,Am as analyzeProject,qn as analyzeDirectiveUsage,ed as analyticsDirective,Uo as addStore,To as addPage,Sd as addNonceToInlineContent,Vo as addLayout,So as addComponent,hn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,Xj as VideoProcessorCache,gi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,$o as TemplateTypeChecker,Go as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,vr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Fm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Jo as ProductionBuild,xr as Portal,Qo as PROJECT_TEMPLATES,kq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Gp as MemorySessionStore,$i as MIME_TYPES,Yi as MEDIA_DEFAULT_WIDTHS,_i as MEDIA_DEFAULT_FORMATS,Tm as LAYOUT_TYPES_FILE,Mj as ImageProcessorCache,Bl as ImageProcessingError,Bp as HydrationRuntime,Jk as HotReloadServer,mb as HeatmapAggregator,Vg as HTML_CLASS_MARKER,Ug as HTML_ATTRS_MARKER,or as Fragment,wr as For,Gm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Rk as EXTERNALIZED_ASSET_DIR,nl as DeployError,ol as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ql as DEFAULT_QUALITY,pj as DEFAULT_PLACEHOLDER_OPTIONS,pl as DEFAULT_FORMATS,Zi as DEFAULT_DPR_VALUES,sp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,hj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Tg as CLOAK_STYLE,Mn as BroadcastServer,Ln as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,qj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Hr as $path};
2
+ import{$ as lm,$a as oo,$b as zp,$c as zq,$d as zr,A as Xk,Aa as zn,Ab as To,Ac as _p,Ad as _q,Ae as es,B as Yk,Ba as An,Bb as Uo,Bc as $p,Bd as $q,Be as fs,C as Zk,Ca as Nn,Cb as Vo,Cc as aq,Cd as ar,Ce as gs,D as _k,Da as On,Db as Wo,Dc as bq,Dd as br,De as hs,E as Ql,Ea as Pn,Eb as Xo,Ec as cq,Ed as cr,Ee as is,F as Rl,Fa as Qn,Fb as Yo,Fc as dq,Fd as dr,Fe as js,G as Sl,Ga as Rn,Gb as Zo,Gc as eq,Gd as er,Ge as ks,H as Tl,Ha as Sn,Hb as _o,Hc as fq,Hd as fr,He as ls,I as Ul,Ia as Wn,Ib as $o,Ic as gq,Id as gr,Ie as ms,J as Vl,Ja as Xn,Jb as ap,Jc as hq,Jd as hr,Je as ns,K as Wl,Ka as Yn,Kb as bp,Kc as iq,Kd as ir,Ke as os,L as Xl,La as Zn,Lb as cp,Lc as jq,Ld as jr,M as Yl,Ma as _n,Mb as dp,Mc as kq,Md as kr,N as Zl,Na as $n,Nb as lp,Nc as lq,Nd as lr,O as _l,Oa as ao,Ob as mp,Oc as mq,Od as mr,P as $l,Pa as bo,Pb as np,Pc as nq,Pd as nr,Q as am,Qa as co,Qb as op,Qc as oq,Qd as or,R as bm,Ra as eo,Rb as pp,Rc as pq,Rd as pr,S as cm,Sa as fo,Sb as qp,Sc as qq,Sd as qr,T as dm,Ta as go,Tb as rp,Tc as rq,Td as rr,U as em,Ua as ho,Ub as sp,Uc as sq,Ud as sr,V as fm,Va as io,Vb as tp,Vc as tq,Vd as tr,W as gm,Wa as jo,Wb as up,Wc as uq,Wd as ur,X as hm,Xa as ko,Xb as vp,Xc as vq,Xd as vr,Y as im,Ya as lo,Yb as wp,Yc as wq,Yd as wr,Z as jm,Za as mo,Zb as xp,Zc as xq,Zd as xr,_ as km,_a as no,_b as yp,_c as yq,_d as yr,aa as mm,ab as po,ac as Ap,ad as Aq,ae as Ar,ba as nm,bb as qo,bc as Bp,bd as Bq,be as Hr,ca as om,cb as ro,cc as Cp,cd as Cq,ce as Ir,da as pm,db as so,dc as Dp,dd as Dq,de as Jr,ea as qm,eb as to,ec as Ep,ed as Eq,ee as Kr,fa as rm,fb as uo,fc as Fp,fd as Fq,fe as Lr,ga as sm,gb as vo,gc as Gp,gd as Gq,ge as Mr,ha as tm,hb as wo,hc as Hp,hd as Hq,he as Nr,ia as um,ib as xo,ic as Ip,id as Iq,ie as Or,ja as vm,jb as yo,jc as Jp,jd as Jq,je as Pr,ka as wm,kb as zo,kc as Kp,kd as Kq,ke as Qr,la as xm,lb as Ao,lc as Lp,ld as Lq,le as Rr,ma as ym,mb as Bo,mc as Mp,md as Mq,me as Sr,na as zm,nb as Eo,nc as Np,nd as Nq,ne as Tr,o as a,oa as Am,ob as Fo,oc as Op,od as Oq,oe as Ur,p as Ik,pa as on,pb as Go,pc as Pp,pd as Pq,pe as Vr,q as Jk,qa as pn,qb as Ho,qc as Qp,qd as Qq,qe as Wr,r as Kk,ra as qn,rb as Jo,rc as Rp,rd as Rq,re as Xr,s as Lk,sa as rn,sb as Ko,sc as Sp,sd as Sq,se as Yr,t as Mk,ta as sn,tb as Lo,tc as Tp,td as Tq,te as Zr,u as Nk,ua as tn,ub as Mo,uc as Up,ud as Uq,ue as _r,v as Ok,va as un,vb as Oo,vc as Vp,vd as Vq,ve as $r,w as Pk,wa as vn,wb as Po,wc as Wp,wd as Wq,we as as,x as Qk,xa as wn,xb as Qo,xc as Xp,xd as Xq,xe as bs,y as Vk,ya as xn,yb as Ro,yc as Yp,yd as Yq,ye as cs,z as Wk,za as yn,zb as So,zc as Zp,zd as Zq,ze as ds}from"./chunk-66t6dd2q.js";import{Le as ep,Me as fp,Ne as gp,Oe as hp,Pe as ip,Qe as jp,Re as kp}from"./chunk-gm9hevee.js";import{Se as Co,Te as Do}from"./chunk-7hb89n3z.js";import{Ue as Io}from"./chunk-4nkvsqq5.js";import{Ve as nn}from"./chunk-qf1rvd48.js";import{We as Tn,Xe as Un,Ye as Vn,Ze as No}from"./chunk-2j121dxj.js";import{$e as al,_e as $k,af as bl,bf as cl,cf as dl,df as el,ef as fl,ff as gl,gf as hl,hf as il,if as jl,jf as kl,kf as ll,lf as ml,mf as nl}from"./chunk-n0d7nwhd.js";import{nf as El,of as Fl,pf as Gl,qf as Hl,rf as Il,sf as Jl,tf as Kl,uf as Ll,vf as Ml,wf as Nl,xf as Ol,yf as Pl}from"./chunk-e5dg9z8x.js";import{Af as Dl,zf as Cl}from"./chunk-758a92ey.js";import{Bf as ol,Cf as pl,Df as ql,Ef as rl,Ff as sl,Gf as tl,Hf as ul,Jf as vl,Kf as wl,Lf as xl,Mf as yl,Nf as zl,Of as Al,Rf as Bl}from"./chunk-67wmfv2q.js";import{Sf as Xm,Tf as Ym,Uf as Zm,Vf as _m,Wf as $m,Xf as mn}from"./chunk-vsrta1w7.js";import{$f as Em,Yf as Bm,Zf as Cm,_f as Dm,ag as Fm,bg as Gm,cg as Hm,dg as Im,eg as Jm,fg as Km,gg as Lm,hg as Mm,ig as Nm,jg as Om,kg as Pm,lg as Qm,mg as an,ng as bn,og as cn,pg as dn,qg as en,rg as fn,sg as gn,tg as hn,ug as jn,vg as kn,wg as ln}from"./chunk-twfk678s.js";import{xg as Rm,yg as Sm}from"./chunk-0knxnyq6.js";import{Ag as Cn,Bg as Dn,Cg as En,Dg as Fn,Eg as Gn,Fg as Hn,Gg as In,Hg as Jn,Ig as Kn,Jg as Ln,Kg as Mn,zg as Bn}from"./chunk-634gaa9d.js";import{Lg as ri,Mg as si,Ng as ti,Og as ui,Pg as vi,Qg as wi}from"./chunk-mv255z6w.js";import{Rg as Mj,Sg as Nj,Tg as Oj,Xg as Pj,Yg as Qj,Zg as Rj}from"./chunk-fq8mj9f8.js";import{$g as Yj,_g as Xj,ah as Zj,bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk}from"./chunk-h92qqvb3.js";import{jh as Cj,kh as Dj,lh as Ej,mh as Fj,nh as Gj,ph as Hj,qh as Ij,rh as Jj,sh as Kj,th as Lj}from"./chunk-bcpjhcpn.js";import{uh as xk,wh as yk}from"./chunk-y4zddt5r.js";import{Ch as Mh,Dh as Nh,Eh as Oh,Fh as Ph,Gh as Qh,Hh as Rh}from"./chunk-g7bpkpd4.js";import{Jh as Sh,Kh as Th,Lh as Uh,Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di}from"./chunk-k33778kc.js";import{$h as hi,Yh as ei,Zh as fi,_h as gi}from"./chunk-ys4hpkrp.js";import{ei as ii}from"./chunk-g1vxsvqv.js";import{hi as lh}from"./chunk-by2s9dvk.js";import{ii as mh}from"./chunk-fqq5k9ve.js";import{ji as nh,ki as oh}from"./chunk-ya5m5vbn.js";import{li as ph,mi as qh,ni as rh,oi as sh,pi as th,qi as uh}from"./chunk-y4nzmkea.js";import{ri as vh,si as wh,ti as xh,ui as yh,vi as zh}from"./chunk-7kw3grq5.js";import{Ai as Eh,wi as Ah,xi as Bh,yi as Ch,zi as Dh}from"./chunk-c79nfdyj.js";import{Bi as Fh,Ci as Gh,Di as Hh,Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh}from"./chunk-ej8mv2k6.js";import{Ii as jh,Ji as kh}from"./chunk-7r9dydtp.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-s59ahgcg.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-wp8273q0.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-6t1z916a.js";import{pk as Br,qk as Cr,rk as Dr,sk as Er,tk as Fr,uk as Gr}from"./chunk-0xj0p6sr.js";import{Ak as Um,Bk as Vm,Ck as Wm,vk as Rk,wk as Sk,xk as Tk,yk as Uk,zk as Tm}from"./chunk-vgcf8qvv.js";import"./chunk-frp9fc7j.js";import"./chunk-0v19p6qk.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-8g18996a.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as ji,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as ki,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as li,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,aq as mi,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,bq as ni,br as Sj,cm as Wb,cn as od,co as Ke,cp as Ag,cq as oi,cr as Tj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Uj,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as xi,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as yi,gr as gk,hm as lc,hn as xd,hp as Fg,hq as zi,hr as hk,im as mc,in as yd,ip as Gg,iq as Ai,ir as ik,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Yi,xr as zk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Zi,yr as Ak,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as _i,zr as Bk}from"./chunk-9mtve1jh.js";import{$r as fa,Gr as M,Hr as N,Ir as O,Jr as P,Kr as Q,Lr as R,Mr as S,Nr as T,Or as U,Pr as V,Qr as W,Rr as X,Sr as Y,Tr as Z,Ur as _,Vr as $,Wr as aa,Xr as ba,Yr as ca,Zr as da,_r as ea,as as ia,bs as ja,cs as ka,ds as la,es as ma,fs as na,gs as oa,hs as pa,is as qa,js as ra,ks as sa,ls as ta,ms as ua,ns as va,os as wa}from"./chunk-21ev9jk2.js";import{ps as ga,qs as ha}from"./chunk-p5ktexx3.js";import{rs as Rb,ss as Sb,ts as Tb}from"./chunk-zn9v6jpb.js";import"./chunk-vbyxgwz5.js";import{As as Pi,Bs as Qi,Cs as Ri,Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi}from"./chunk-38ykv2gd.js";import{$s as Sc,_s as Rc,at as Tc,bt as Uc,ct as Vc,et as Wc,nt as Xc,ot as Yc,pt as Zc}from"./chunk-e4dd299a.js";import{qt as Xb,rt as Yb,st as Zb,tt as _b,ut as $b,vt as ac}from"./chunk-h3r7wcxk.js";import{Ct as Fe,Et as Ge,Ht as He}from"./chunk-veky1cte.js";import"./chunk-t3bjr1wh.js";import{Mt as cc,Nt as dc}from"./chunk-cwba6q7v.js";import{$t as og,Rt as fg,St as gg,Tt as hg,Ut as ig,Vt as jg,Wt as kg,Xt as lg,Zt as mg,_t as ng,au as pg}from"./chunk-hyzjprnz.js";import{Au as ne,Bu as oe,Cu as pe,Du as qe,bu as rd,cu as sd,du as td,eu as ud,ou as be,pu as ce,qu as de,ru as ee,su as fe,tu as ge,uu as he,vu as ie,wu as je,xu as ke,yu as le,zu as me}from"./chunk-wk6xx6zz.js";import{$u as B,Eu as b,Fu as c,Gu as d,Hu as e,Iu as f,Ju as g,Ku as h,Lu as i,Mu as m,Nu as n,Ou as o,Pu as p,Qu as q,Ru as r,Su as s,Tu as t,Uu as u,Vu as v,Wu as w,Xu as x,Yu as y,Zu as z,_u as A,av as C,bv as D,cv as E,dv as F,ev as G,fv as H,gv as I,hv as J,iv as K,jv as L}from"./chunk-ha0a1hpx.js";import"./chunk-zxfejz72.js";import"./chunk-25tfm9t5.js";import{Av as pb,Bv as qb,Cv as rb,Dv as sb,Ev as tb,Fv as ub,Gv as vb,Hv as wb,Iv as xb,Jv as yb,Kv as zb,Lv as Ab,Mv as Bb,Nv as Cb,Ov as Db,Pv as Eb,Qv as Fb,Rv as Gb,Sv as Hb,Tv as Ib,Uv as Jb,zv as ob}from"./chunk-aa8015mk.js";import{Aw as gb,Cw as hb,Yv as Pa,Zv as Qa,aw as Ra,fw as Sa,gw as Ta,mw as Ua,nw as Va,ow as Wa,pw as Xa,qw as Ya,rw as Za,sw as _a,tw as $a,uw as ab,vw as bb,ww as cb,xw as db,yw as eb,zw as fb}from"./chunk-me3ckktd.js";import"./chunk-rtfwn4cm.js";import{Ow as j,Pw as k,Qw as l}from"./chunk-efyskaw7.js";import"./chunk-wjbfget1.js";export{jl as writeNetlifyConfig,bn as writeManifest,Ol as writeImageManifest,up as wrapComponentForHMR,bs as withDefaults,wk as webComponentDirectiveHandler,jq as watermark,lr as watchViews,Yl as watchMultiple,Zl as watchEffect,Xl as watch,Me as warmImagePlaceholders,km as waitForStore,X as waitForLocale,fp as virtualPathFor,jk as videoDirective,G as validators,fs as validated,Ce as validateValueEnhanced,mi as validateTemplate,Rm as validateRouteRules,oq as validateParams,De as validateFormEnhanced,ar as validateFile,ye as validateFields,xe as validateField,oi as validateDirective,Xd as validateCspDirectives,Ek as validateConfig,pn as validateComponentScripts,Nn as validateComponentProps,ih as validateClientScript,hi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ci as userComponentFileExists,Ph as useVirtualList,je as useTitle,jm as useStoreOrThrow,Mp as useStore,Vk as useStorage,Af as useSlots,Xk as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,lm as useRouteParams,nm as useRouteParamOrThrow,mm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,pm as useMiddlewareValue,om as useMiddlewareState,Wk as useLocalStorage,np as useLoadingIndicator,ee as useHead,ei as useForm,Cf as useAttrs,cr as uploadFiles,br as uploadFile,gm as updateInstance,pf as untrack,Si as unregisterDirective,hm as unmountInstance,Qc as unescapeHtml,jp as typecheckStxFiles,Ai as transpileTypeScript,Qr as translate,Ba as transitionDirective,lc as transformAutoImports,Hn as toUsers,Gn as toUser,Up as thumbnail,Vq as thumbHashToRGBA,Wq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,rp as stxClientHelpers,kg as structuredDataDirective,Tr as stripLocalePrefix,Om as stripDocumentWrapper,Sb as stripCommentsAndLiterals,so as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Qk as stopHmrServer,Dn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,ch as startsDocument,No as startProductionServer,Io as startInteractive,Cn as startBroadcasting,Vr as stampLocaleLayoutGroup,Ia as staggerDirective,mq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Km as spaNavVaryHeaders,gp as sourcePathFor,tq as smartBatchSign,Ei as slotContentHasExpressions,rq as signUrl,yi as shouldTranspileTypeScript,Nk as shouldReloadOnChange,wq as shouldRefreshSignature,Ok as shouldIgnoreFile,Hh as shouldCacheComponent,Yp as sharpen,is as shape,Zb as setStateDir,tm as setRouteParams,um as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Ql as setCurrentInstance,Zj as setCachedVideoResult,Oj as setCachedImageResult,Ij as setCached,ls as serveStxFile,ns as serveMultipleStxFiles,Ik as serveMarkdownFile,Yo as serveFile,os as serveApp,Xo as serve,xp as serializeState,dn as serializeSetCookie,_p as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Bi as scopeOnRootElement,nk as scopeHTML,mk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,cq as saturation,pq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,gn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,em as runHooks,Jr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,dq as rotate,ii as rewriteImagesWithSiblings,od as responseBindings,Ii as resolveTemplatePath,ha as resolveStxTargets,Ak as resolveStxDirectories,Pr as resolveI18n,Sp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,wp as resetHMRHandler,o as resetErrorConfig,ds as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,jr as renderView,gk as renderVideoComponent,ic as renderVendorStyleTags,sr as renderToString,tr as renderToStream,ur as renderToDOM,Uq as renderThumbhashToCanvas,Gr as renderTemplateString,Er as renderTemplate,Fr as renderString,Se as renderStreamingPage,ti as renderSlot,xh as renderSSRSuspense,Eq as renderProtectedVideo,Dq as renderProtectedImg,qq as renderMediaUpload,Dr as renderMarkdownView,Vm as renderLayoutTypes,Sj as renderImgComponent,El as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,mr as renderEmail,Gi as renderComponentWithSlot,me as renderBodyAttrs,Hp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Op as registerStoresClient,rm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Pi as registerDirective,Wd as registerCspDirectives,Qn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Ul as ref,Ao as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Gk as readMarkdownFile,Kf as readFileCached,Vl as reactive,hq as quality,Bq as pruneSignatureCache,Lj as pruneCache,sf as provide,Cr as protectCodeBlocks,cs as prop,Fg as processVueTemplate,Nh as processVirtualListDirectives,Rh as processVirtualGridDirectives,fk as processVideo,ze as processValidateDirective,ea as processTranslateDirective,rh as processTransitionDirectives,uh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,nh as processTeleportDirectives,vh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,ci as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,ui as processSlots,Mm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Fq as processProtectedMedia,Xh as processPartialHydrationDirectives,hh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Hk as processMarkdownFileDirectives,Ni as processMarkdownDirectives,dg as processLoops,Fh as processKeepAliveDirectives,gh as processJsonDirective,Qh as processInfiniteListDirectives,ug as processIncludes,Uj as processImgComponents,Gl as processImageComponents,tl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,ji as processDirectives,Xi as processDirectiveAttributes,mh as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,js as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Ah as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,mp as preloadIslandHandlers,Ne as preloadIconCollection,yn as poolStrings,yk as pluginManager,Je as placeholdersWarmed,qh as performLeave,ph as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,hk as parseVideoDirectiveOptions,Qp as parseUrl,Xq as parseThumbhashString,Ad as parseSwitchBlock,ri as parseSlots,si as parseSlotElement,Fd as parseScriptDeclarations,uk as parseSFCComponent,Gq as parseProtectedArgs,bg as parseLoopBinding,Tj as parseImgComponent,jj as parseImageUrl,Fl as parseImageComponent,en as parseFormBody,Cd as parseExpressionWithFilters,Rn as parseDefaults,xo as parseCookies,Dm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,es as optional,zn as optimizeTemplate,Ll as optimizeImage,Ml as optimizeDirectory,gs as oneOf,sg as onceStore,bm as onUpdated,_c as onUpdate,dm as onUnmounted,ym as onServer,$l as onMounted,hf as onMount,bi as onHydrated,yf as onErrorCaptured,jf as onDestroy,Lh as onDeactivated,xm as onClient,am as onBeforeUpdate,cm as onBeforeUnmount,_l as onBeforeMount,Kh as onActivated,Qq as observeElement,Bo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Un as negotiateEncoding,Ua as navigateTo,fm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,xn as minifyHtml,jg as metaDirective,Wg as metaDedupKey,Rp as mergeParams,Yg as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Oi as markdownDirectiveHandler,Fk as markdownCache,ga as looksLikeGlob,Sr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Bk as loadStxConfig,db as loadMiddlewareFromDirectory,cn as loadManifest,Mq as loadElement,En as loadChannels,Lb as listensPassively,Zr as lintStxStrict,Oq as lazyLoadAll,Nq as lazyLoad,Ha as keyframeDirective,qr as jsxs,rr as jsxDEV,pr as jsx,zo as jsonResponse,Ye as islandDirective,l as isTest,Pm as isSpaNavigation,Im as isSpaNavRequest,uq as isSignatureValid,nf as isSignal,rl as isSharpAvailable,lo as isServerEnvironment,vm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Jq as isNativeLazySupported,Br as isMarkdownPath,Q as isLoading,R as isLoaded,xi as isJavaScriptScript,Kq as isIntersectionObserverSupported,zl as isImageFile,sl as isImageBackendAvailable,aa as isICUFormat,ai as isHydrated,Di as isHydrateTrigger,hd as isHttpStatus,ko as isEdgeEnvironment,_r as isDirectiveKind,k as isDevelopment,of as isDerived,Mk as isCssOnlyChange,Tn as isCompressible,wm as isClient,Ch as isAsyncComponent,fn as isActionableMethod,$p as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Or as injectThemeBootstrap,ig as injectSeoTags,Lr as injectSeo,Xf as injectRouterScript,Lk as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,eh as injectConfigHeadTags,Kg as injectColorModeBootScript,_g as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,qm as initStoreRegistry,ml as initNetlify,op as initLoadingIndicator,Lq as initLazyLoading,Ho as initFile,Tq as initBlurUp,Zq as initAllBlurUp,Wj as imgDirective,Jl as imageDirective,kn as hydrateTemplateStream,jn as hydrateTemplate,lp as hydrateIslands,Zh as hydrateIsland,ln as hydrateFragment,_h as hydrateByStrategy,$h as hydrateAll,Ep as hydrate,Wo as htmlResponse,ah as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Ej as hashString,Wf as hashFilePath,Cj as hashFile,Dj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Jp as hasStore,xc as hasPlaceholders,kl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,dh as hasDocumentShell,pi as hasDirectives,ma as hasDOMSupport,Cl as handleImageRequest,zf as handleError,yr as h,yl as groupVariantsByFormat,Zp as grayscale,Po as gitHash,rn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,fl as getTotalSize,vq as getTimeUntilExpiry,jh as getStoreScript,Kp as getStoreNames,Ip as getStore,_k as getStorageSize,Zk as getStorageKeys,Ji as getSourceLineInfo,zi as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,ok as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,ni as getPositionInfo,uc as getPlaceholderRegistry,Bj as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Al as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,ul as getImageMetadata,Fe as getImageDelivery,Dp as getHydrationRuntime,sm as getHydratedStoreState,Pk as getHmrServer,be as getHead,vp as getHMRHandler,nj as getFormatExtension,Gj as getFileMtime,xl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ri as getDirectives,Qi as getDirective,Rl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Mi as getComponentCacheStats,Yj as getCachedVideoResult,zq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,zj as getCachedPlaceholder,Nj as getCachedImageResult,Hj as getCached,Kj as getCacheStats,Pg as getBuildId,Bn as getBroadcastServer,mj as getBestVariant,Bc as getAllFilters,aj as generateWidthSrcset,Oh as generateVirtualListCSS,er as generateVideoPreview,Ee as generateValidationScript,fr as generateUploadRuntime,sn as generateTreeShakenBundle,th as generateTransitionRuntime,sh as generateTransitionCSS,ak as generateThumbnails,sj as generateThumbhashPlaceholder,bo as generateTemplatesDocs,zh as generateSuspenseRuntime,yh as generateSuspenseCSS,yp as generateStateScript,kj as generateSrcsetData,Rj as generateSrcset,vl as generateSrcSet,bk as generateSpriteSheet,nr as generateSpaShell,lj as generateSourceTags,gj as generateSizesFromBreakpoints,fj as generateSizesAttribute,wl as generateSizes,mg as generateSitemapIndex,Mr as generateSitemap,Iq as generateSimpleMediaPicker,Cq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,lk as generateScopeId,vk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Nr as generateRobots,Qj as generateResponsiveVariants,rk as generateReactiveWebComponentTS,qk as generateReactiveWebComponent,tk as generateReactiveRuntime,sk as generateReactiveMixin,$j as generatePoster,yj as generatePlaceholderStyle,xj as generatePlaceholderCSS,rj as generatePlaceholder,Yh as generatePartialHydrationCSS,Gd as generateNonce,gl as generateNetlifyToml,hr as generateMinifiedMediaRuntime,gr as generateMediaRuntime,Hq as generateMediaManagerEmbed,an as generateManifest,qp as generateLoadingIndicatorHtml,Sq as generateLazyLoadRuntime,Wm as generateLayoutTypes,uj as generateLQIP,Jh as generateKeepAliveRuntime,Ih as generateKeepAliveCSS,di as generateIslandManifest,dr as generateImagePreview,Nl as generateImageManifest,Cp as generateHydrationScript,af as generateHydrationRuntime,Fp as generateHydrationCSS,Sh as generateHydrationBootstrap,Kk as generateHotReloadScript,jb as generateHeatmapScript,tp as generateHMRClientScript,ck as generateHLSManifest,zp as generateEventBindings,ej as generateDprSrcsetWithVariableQuality,dj as generateDprSrcset,bh as generateDocumentShell,ho as generateDocs,co as generateDirectivesDocs,Wi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,dk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ao as generateComponentsDocs,Th as generateComponentManifest,_n as generateComponentDoc,wj as generateColorPlaceholder,Jg as generateColorModeBootScript,im as generateClientRuntime,Fj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,_q as generateBlurUpRuntime,$q as generateBlurUpCSS,ad as generateBindingsRuntime,bj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Eh as generateAsyncComponentRuntime,Dh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,kp as formatTypecheckDiagnostics,dp as formatTypeErrors,Eo as formatStxContent,el as formatSize,Ta as formatRoutes,Fo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Kr as formatDoctorReport,eo as formatDocsAsMarkdown,go as formatDocsAsJson,fo as formatDocsAsHtml,gq as format,wn as foldConstants,fq as flipVertical,eq as flipHorizontal,Xm as fingerprint,ip as findStxModuleDeclarations,hp as findRuntimeTypeDeclarations,Ir as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,tn as findDeadCode,tn as findDeadBranches,Em as findContainerRegion,$n as findComponentFiles,ms as findCommonDir,dl as filterRequiredFiles,Hi as fileExists,Zf as extractVariables,li as extractTemplateExpressions,Ue as extractStreamBoundaries,Ap as extractState,vi as extractSlotContent,$f as extractScriptFromTemplate,ki as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,vj as extractDominantColor,Ed as extractDirectiveParams,qi as extractDirectiveNames,Qm as extractContainerContent,Yn as extractComponentProps,Uh as extractComponentName,Zn as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Vh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,pk as extractAndScopeStyles,Ob as extractAndProcessEvents,Tk as externalizeSharedAssets,Uk as externalizeRepeatedAssets,Sk as externalizeHtml,Pc as evaluateExpression,vn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,oh as ensureTeleportTargets,fh as ensureDocumentShell,Ae as enhancedValidationRules,Wn as enableDevTools,un as eliminateDeadCode,ff as effect,nq as dprUrls,io as docsCommand,ec as discoverServerApi,Um as discoverLayoutNames,Rq as disconnectObserver,Xn as disableDevTools,F as devHelpers,Lm as detectShell,jo as detectRuntime,hl as detectProjectConfig,oj as detectFormat,on as detectBuildMode,ef as derived,ll as deploy,Dk as defineStxConfig,Np as defineStore,Bf as defineSlots,Yr as defineSiteConfig,as as definePropsWithValidation,$r as defineProps,xk as definePlugin,ie as definePageMeta,Wa as defineMiddleware,fi as defineForm,wf as defineExpose,vf as defineEmits,Ti as defineDirective,Ar as defineCustomElement,Mo as defineConfig,Ui as defineClientDirective,Bh as defineAsyncComponent,Oo as defineApiHandler,ir as defaultMediaConfig,Pl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,zk as defaultConfig,ks as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Hm as decodeTitleEntities,tj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,Yq as crossfadeTransition,Tp as crop,Mh as createVirtualList,ik as createVideoDirective,vo as createVercelHandler,ap as createTypeChecker,fa as createTranslateFilter,ro as createTextEncoderStream,zr as createStxApp,qo as createStreamingResponse,We as createStreamRenderer,Lp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Tl as createScope,wh as createSSRSuspense,bf as createRouter,Sm as createRouteRuleResolver,eb as createRouteLocation,_o as createRoute,Ul as createRef,Vl as createReactive,Df as createProvideContext,Ro as createProject,Lo as createProductionBuild,tc as createPlaceholder,An as createOptimizedBuild,wo as createNetlifyHandler,$k as createNetlifyClient,fb as createMiddlewareContext,Zo as createMiddleware,Pq as createLazyObserver,Gh as createKeepAliveCache,no as createKVNamespace,Wh as createIslandRegistry,Vj as createImgDirective,Kl as createImagePlugin,Dl as createImageHandler,Il as createImageDirective,nb as createHeatmapAggregator,cl as createFileManifest,mo as createEnvAccessor,z as createEnhancedError,po as createEdgeHandler,oo as createEdgeCache,Ki as createDetailedErrorMessage,uo as createDenoHandler,il as createDefaultNetlifyConfig,Zd as createCspHeaders,yo as createCookie,Wl as createComputed,Sl as createComponentInstance,to as createCloudflareHandler,Ya as createClientCookieManager,Vi as createBuiltinDirectives,zr as createApp,Ka as createAnimationTimeline,Wp as cover,_f as convertToCommonJS,bq as contrast,Vp as contain,y as consoleError,m as configureErrorHandling,Ck as config,Wl as computed,Vn as compressResponse,Bg as composerPattern,Ag as composer,Nm as composeShellWithPage,Pn as componentDirective,Fi as componentClientSignalNames,$m as compileTemplate,a as collectRepeatedFlag,bl as collectDeployFiles,$g as cloakStyleFragment,Ic as clientLoopScopes,_j as clearVideoCache,N as clearTranslationCache,kh as clearStoreCache,Yk as clearStorage,Aq as clearSignatureCache,Gf as clearServerData,Aj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Hl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,lh as clearComposableCache,Li as clearComponentCache,Jj as clearCache,Ib as clearBlankCache,pp as cleanupLoadingIndicator,Bm as classifyScript,Cm as classifyAllScripts,bp as checkTemplateFile,cp as checkTemplate,Uf as checkCache,xq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Kn as channel,Do as captureScreenshots,Co as captureScreenshot,Z as cancelPendingLoads,al as calculateSha1,cj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,kk as buildWebComponents,ep as buildVirtualSource,kr as buildViews,Pp as buildUrl,Qe as buildSuspenseResolveScript,Xr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Ym as buildRuntimeAsset,Zm as buildRouterAsset,Wr as buildLangPickerScript,ij as buildImageUrl,Sg as buildIdFragment,Xg as buildHtmlAttrs,mn as buildForProduction,Sn as buildComponentLibrary,yq as buildAuthParams,nn as buildApp,Ur as buildAlternateLinks,Ko as build,In as broadcastPrivate,Jn as broadcastPresence,Fn as broadcast,aq as brightness,Tb as bracketDepths,Xp as blur,Jb as blankInertHtmlRegions,sq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,iq as auto,ja as attributeValue,_m as assetTags,Mb as asInvocableStatement,hs as arrayOf,Rr as applyTranslations,Pj as applyTransformations,wi as applySlots,On as applyPropDefaults,lq as applyPreset,Zg as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Jm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,ek as analyzeVideo,qn as analyzeUsage,zm as analyzeTemplate,Am as analyzeProject,qn as analyzeDirectiveUsage,ed as analyticsDirective,Uo as addStore,To as addPage,Sd as addNonceToInlineContent,Vo as addLayout,So as addComponent,hn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,Xj as VideoProcessorCache,gi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,$o as TemplateTypeChecker,Go as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,vr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Fm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Jo as ProductionBuild,xr as Portal,Qo as PROJECT_TEMPLATES,kq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Gp as MemorySessionStore,$i as MIME_TYPES,Yi as MEDIA_DEFAULT_WIDTHS,_i as MEDIA_DEFAULT_FORMATS,Tm as LAYOUT_TYPES_FILE,Mj as ImageProcessorCache,Bl as ImageProcessingError,Bp as HydrationRuntime,Jk as HotReloadServer,mb as HeatmapAggregator,Vg as HTML_CLASS_MARKER,Ug as HTML_ATTRS_MARKER,or as Fragment,wr as For,Gm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Rk as EXTERNALIZED_ASSET_DIR,nl as DeployError,ol as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ql as DEFAULT_QUALITY,pj as DEFAULT_PLACEHOLDER_OPTIONS,pl as DEFAULT_FORMATS,Zi as DEFAULT_DPR_VALUES,sp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,hj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Tg as CLOAK_STYLE,Mn as BroadcastServer,Ln as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,qj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Hr as $path};