@stacksjs/stx 0.2.295 → 0.2.296

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 (143) hide show
  1. package/dist/{chunk-h1tkqfym.js → chunk-03mc9wc9.js} +1 -1
  2. package/dist/{chunk-zgevnvfs.js → chunk-0xtnepfj.js} +1 -1
  3. package/dist/{chunk-dd7f8yxx.js → chunk-1ge7rfg4.js} +1 -1
  4. package/dist/chunk-224m1jrf.js +17 -0
  5. package/dist/{chunk-p9wkzh0k.js → chunk-24pgjzmy.js} +1 -1
  6. package/dist/{chunk-8553dwfj.js → chunk-29hfy1xw.js} +1 -1
  7. package/dist/chunk-2a8q7c9z.js +2 -0
  8. package/dist/{chunk-txjckheb.js → chunk-2b9r38hs.js} +1 -1
  9. package/dist/chunk-2enzjhrh.js +2 -0
  10. package/dist/{chunk-n0hgshd5.js → chunk-2v69c72j.js} +1 -1
  11. package/dist/chunk-31e2jrb4.js +2 -0
  12. package/dist/chunk-3fv1agwg.js +2 -0
  13. package/dist/{chunk-2bpa6n7s.js → chunk-3jxt0y11.js} +1 -1
  14. package/dist/{chunk-5g1amf33.js → chunk-3mbkn6vk.js} +2 -2
  15. package/dist/chunk-3nmkjd4b.js +2 -0
  16. package/dist/{chunk-9s0ax53m.js → chunk-3npkbgfm.js} +1 -1
  17. package/dist/{chunk-nk11g9k5.js → chunk-3rjeare9.js} +1 -1
  18. package/dist/{chunk-dfcsn711.js → chunk-44gm42cq.js} +1 -1
  19. package/dist/{chunk-mdfyv4hb.js → chunk-4yqnabzy.js} +1 -1
  20. package/dist/{chunk-18cn95p7.js → chunk-5ey1fdjf.js} +1 -1
  21. package/dist/{chunk-prt5da17.js → chunk-5t50pdtm.js} +1 -1
  22. package/dist/{chunk-359ps7j5.js → chunk-6kdb8j9d.js} +1 -1
  23. package/dist/{chunk-w1h2g1ej.js → chunk-6sy85s25.js} +1 -1
  24. package/dist/{chunk-bh4aq0dx.js → chunk-6tqbgd20.js} +1 -1
  25. package/dist/{chunk-9mzj4q5k.js → chunk-6tzzh1dg.js} +1 -1
  26. package/dist/{chunk-wvn4gc66.js → chunk-6xsxkzhy.js} +1 -1
  27. package/dist/{chunk-tjverybm.js → chunk-6z04mpxz.js} +22 -22
  28. package/dist/chunk-76p7bnw1.js +2 -0
  29. package/dist/chunk-7mem81az.js +2 -0
  30. package/dist/{chunk-h06cjhqg.js → chunk-7ncfmg13.js} +1 -1
  31. package/dist/{chunk-hx6y0qqy.js → chunk-85mzetge.js} +1 -1
  32. package/dist/chunk-86cmtck2.js +2 -0
  33. package/dist/{chunk-t5d0pm2c.js → chunk-8h9xqc3p.js} +1 -1
  34. package/dist/chunk-8tdj5zep.js +2 -0
  35. package/dist/{chunk-dxevp6w7.js → chunk-8zyv8jf3.js} +1 -1
  36. package/dist/{chunk-p7b34wcs.js → chunk-9616c6wn.js} +1 -1
  37. package/dist/{chunk-m8nswk6n.js → chunk-a84j7v61.js} +1 -1
  38. package/dist/chunk-a9c8w6fq.js +2 -0
  39. package/dist/{chunk-55rgvjvd.js → chunk-ahdzc50z.js} +1 -1
  40. package/dist/{chunk-cvw9brjj.js → chunk-asn02v4q.js} +1 -1
  41. package/dist/chunk-b24chdr8.js +2 -0
  42. package/dist/{chunk-bcgywywg.js → chunk-bax52sn4.js} +1 -1
  43. package/dist/{chunk-gw4hwf49.js → chunk-bc7emj22.js} +1 -1
  44. package/dist/{chunk-7sdvaras.js → chunk-c5rehxqy.js} +1 -1
  45. package/dist/chunk-cfx3vjh6.js +2 -0
  46. package/dist/{chunk-vkc53tv3.js → chunk-d3kac3mv.js} +1 -1
  47. package/dist/{chunk-0btmm4m2.js → chunk-dn8006f7.js} +1 -1
  48. package/dist/chunk-e17ys98t.js +2 -0
  49. package/dist/{chunk-hh1knan6.js → chunk-e2ymkgjk.js} +10 -10
  50. package/dist/{chunk-6x87aw24.js → chunk-e3ta86aa.js} +1 -1
  51. package/dist/chunk-f57xky9r.js +2 -0
  52. package/dist/chunk-f76qk302.js +2 -0
  53. package/dist/{chunk-38nfzyxc.js → chunk-fdnbqt4r.js} +1 -1
  54. package/dist/chunk-fqggvrwy.js +2 -0
  55. package/dist/chunk-fz52r2f7.js +2 -0
  56. package/dist/{chunk-h5898m09.js → chunk-fz91fd99.js} +1 -1
  57. package/dist/{chunk-y6x6pbw0.js → chunk-gbewds58.js} +1 -1
  58. package/dist/chunk-gw431w90.js +2 -0
  59. package/dist/{chunk-mfwass3b.js → chunk-h625b8k6.js} +2 -2
  60. package/dist/{chunk-0dk4qvb6.js → chunk-hfjhybrn.js} +1 -1
  61. package/dist/{chunk-rbg1m54v.js → chunk-hvqae2g1.js} +1 -1
  62. package/dist/{chunk-64d20kkv.js → chunk-jmh31a2a.js} +2 -2
  63. package/dist/{chunk-5wfgvwzg.js → chunk-k2f4jwez.js} +1 -1
  64. package/dist/{chunk-kxjh5mc2.js → chunk-k7mewajj.js} +1 -1
  65. package/dist/{chunk-ja39jznm.js → chunk-kgxkrnyt.js} +1 -1
  66. package/dist/{chunk-h61mtxjp.js → chunk-knz3zy2t.js} +1 -1
  67. package/dist/{chunk-85xj7cgm.js → chunk-kp8ec2f4.js} +1 -1
  68. package/dist/chunk-m38tpeke.js +2 -0
  69. package/dist/{chunk-map1tr8n.js → chunk-maq28582.js} +1 -1
  70. package/dist/{chunk-ym0dqh13.js → chunk-mdd9yk4f.js} +1 -1
  71. package/dist/{chunk-gjjvjzm2.js → chunk-mx93vwmq.js} +1 -1
  72. package/dist/chunk-my8x4p73.js +2 -0
  73. package/dist/{chunk-x6ehvkry.js → chunk-nnkz36zg.js} +1 -1
  74. package/dist/{chunk-b16crvqg.js → chunk-nqwjb8k7.js} +1 -1
  75. package/dist/{chunk-wxgkq79w.js → chunk-nx96x8sh.js} +1 -1
  76. package/dist/{chunk-tweb2f3m.js → chunk-pb4jjbpq.js} +2 -2
  77. package/dist/{chunk-7s1kdzcr.js → chunk-pb5s3vwg.js} +1 -1
  78. package/dist/{chunk-8cdfsgjb.js → chunk-pfwhd5xs.js} +1 -1
  79. package/dist/{chunk-zg2kxgd4.js → chunk-phrd5kxe.js} +1 -1
  80. package/dist/chunk-psbfqbkt.js +2 -0
  81. package/dist/{chunk-dd5jk2w3.js → chunk-psraz70k.js} +1 -1
  82. package/dist/chunk-pwyjrwrc.js +2 -0
  83. package/dist/{chunk-6dkpsw29.js → chunk-q2dmpbqf.js} +1 -1
  84. package/dist/{chunk-br48y7q9.js → chunk-qfec1s34.js} +3 -3
  85. package/dist/{chunk-rbabq8ds.js → chunk-qxmywwq5.js} +1 -1
  86. package/dist/{chunk-7wnbgnxj.js → chunk-qzbwa5xe.js} +1 -1
  87. package/dist/{chunk-7rkxdbzr.js → chunk-sptmr6wf.js} +1 -1
  88. package/dist/chunk-sq24kkns.js +2 -0
  89. package/dist/chunk-tqtcs1wb.js +2 -0
  90. package/dist/{chunk-d2rhtvxx.js → chunk-tt50t72e.js} +1 -1
  91. package/dist/{chunk-6w76w8tt.js → chunk-vg8yh8te.js} +1 -1
  92. package/dist/{chunk-8r7r92n4.js → chunk-vqtbc3q4.js} +2 -2
  93. package/dist/{chunk-s30wc9qn.js → chunk-vqxpsd6r.js} +1 -1
  94. package/dist/{chunk-j83cstqe.js → chunk-vrhp2xnm.js} +1 -1
  95. package/dist/chunk-vt31an48.js +2 -0
  96. package/dist/{chunk-24j0qx2z.js → chunk-vwqv8f0y.js} +1 -1
  97. package/dist/{chunk-regxa2tq.js → chunk-wb00aqm7.js} +1 -1
  98. package/dist/chunk-wrm7300v.js +2 -0
  99. package/dist/{chunk-cjhwpp4c.js → chunk-wvxce7p4.js} +1 -1
  100. package/dist/{chunk-vpbtp5ws.js → chunk-xc4b1ngp.js} +1 -1
  101. package/dist/{chunk-caf2cj4f.js → chunk-xtwybxtw.js} +1 -1
  102. package/dist/chunk-yzb748mw.js +2 -0
  103. package/dist/chunk-zafnsr0w.js +2 -0
  104. package/dist/{chunk-weny2sns.js → chunk-zwknasm0.js} +1 -1
  105. package/dist/cli.js +14 -14
  106. package/dist/client-script-bundler.d.ts +19 -0
  107. package/dist/client-script-bundler.js +22 -10
  108. package/dist/craft-entry.js +1 -1
  109. package/dist/craft.js +1 -1
  110. package/dist/database.js +1 -1
  111. package/dist/pwa.js +2 -2
  112. package/dist/ssg.js +2 -2
  113. package/dist/visual-testing.js +1 -1
  114. package/package.json +5 -5
  115. package/dist/chunk-11az7s55.js +0 -2
  116. package/dist/chunk-1jxhfa9g.js +0 -2
  117. package/dist/chunk-1pwcgb1t.js +0 -2
  118. package/dist/chunk-1xrc4jg5.js +0 -2
  119. package/dist/chunk-295qskae.js +0 -2
  120. package/dist/chunk-2cm2j31x.js +0 -2
  121. package/dist/chunk-3geahqf7.js +0 -2
  122. package/dist/chunk-4y5q9hhx.js +0 -2
  123. package/dist/chunk-68z2ga8f.js +0 -2
  124. package/dist/chunk-9rgwpt1m.js +0 -17
  125. package/dist/chunk-arb8nckf.js +0 -2
  126. package/dist/chunk-bm8mgc3b.js +0 -2
  127. package/dist/chunk-bnw4dyp3.js +0 -2
  128. package/dist/chunk-ccmr3ksw.js +0 -2
  129. package/dist/chunk-cemkg4m3.js +0 -2
  130. package/dist/chunk-ez6x07ts.js +0 -2
  131. package/dist/chunk-gxm3awwv.js +0 -2
  132. package/dist/chunk-hwn896re.js +0 -2
  133. package/dist/chunk-jzhk9rg5.js +0 -2
  134. package/dist/chunk-kagw0ckh.js +0 -2
  135. package/dist/chunk-mg0adds2.js +0 -2
  136. package/dist/chunk-qfrz7b04.js +0 -2
  137. package/dist/chunk-t9489pxe.js +0 -2
  138. package/dist/chunk-v9p2r2dv.js +0 -2
  139. package/dist/chunk-vgcpawx1.js +0 -2
  140. package/dist/chunk-w2j5ze75.js +0 -2
  141. package/dist/chunk-ygy2r4a8.js +0 -2
  142. package/dist/chunk-yshwe3ny.js +0 -2
  143. package/dist/chunk-zkfxz3fj.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Yp as M,aq as x}from"./chunk-tjverybm.js";import{it as T}from"./chunk-br48y7q9.js";import{mv as N}from"./chunk-24j0qx2z.js";import V from"fs";import Z from"path";var y=new Map,W=new Map;async function R(j){let z;for(let J=0;J<3;J++)try{let X=(await V.promises.stat(j)).mtime.getTime(),Q=W.get(j);if(Q&&Q.mtime===X)return Q.content;let Y=await Bun.file(j).text(),K=(await V.promises.stat(j)).mtime.getTime();if(K!==X)continue;return W.set(j,{content:Y,mtime:K}),Y}catch(I){z=I;break}throw W.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function S(j){W.delete(j)}function _(j){for(let B of W.keys())if(B.startsWith(j))W.delete(B)}var q=null,w=null,G=null;function C(j){G=j}async function b(j=!1){let B=G??await import("./chunk-regxa2tq.js");if(j)return B.generateSignalsRuntimeDev();if(q===null)q=B.generateSignalsRuntime();return q}var D=null;async function A(){if(D===null){let{getRouterScript:j}=await import("./chunk-7wnbgnxj.js");D=j()}return D}var L={};async function g(j,B=!1){let z=j==="runtime"?await b(B):await A(),J=j==="runtime"&&B?"runtime-debug":j,I=L[J];if(!I||I.content!==z)I={content:z,hash:Bun.hash(z).toString(16).padStart(16,"0").slice(0,16)},L[J]=I;return{content:z,hash:I.hash,url:`/_stx/${j}.${I.hash}.js`}}function u(){W.clear(),x(),T(),q=null,w=null,D=null}function O(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function P(j,B){try{if(!B.cachePath)return null;let z=Z.resolve(B.cachePath),J=Z.join(z,`${U(j)}.html`),I=Z.join(z,`${U(j)}.meta.json`);if(!await M(J)||!await M(I))return null;let X=await Bun.file(I).text(),Q=JSON.parse(X);if(Q.cacheVersion!==B.cacheVersion)return null;if(Q.optionsSignature!==O(B))return null;if((await V.promises.stat(j)).mtime.getTime()>Q.mtime)return null;for(let $ of Q.dependencies)if(await M($)){if((await V.promises.stat($)).mtime.getTime()>Q.mtime)return null}else return null;return await Bun.file(J).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function p(j,B,z,J){try{if(!J.cachePath)return;let I=Z.resolve(J.cachePath);await V.promises.mkdir(I,{recursive:!0});let X=Z.join(I,`${U(j)}.html`),Q=Z.join(I,`${U(j)}.meta.json`),Y=await V.promises.stat(j);await Bun.write(X,B);let $={sourcePath:j,mtime:Y.mtime.getTime(),dependencies:Array.from(z),cacheVersion:J.cacheVersion,optionsSignature:O(J),generatedAt:Date.now()};await Bun.write(Q,JSON.stringify($,null,2)),y.set(j,{output:B,mtime:Y.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var v=16;function U(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,v)}
2
+ import{Zp as M,bq as x}from"./chunk-6z04mpxz.js";import{jt as T}from"./chunk-qfec1s34.js";import{nv as N}from"./chunk-vwqv8f0y.js";import V from"fs";import Z from"path";var y=new Map,W=new Map;async function R(j){let z;for(let J=0;J<3;J++)try{let X=(await V.promises.stat(j)).mtime.getTime(),Q=W.get(j);if(Q&&Q.mtime===X)return Q.content;let Y=await Bun.file(j).text(),K=(await V.promises.stat(j)).mtime.getTime();if(K!==X)continue;return W.set(j,{content:Y,mtime:K}),Y}catch(I){z=I;break}throw W.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function S(j){W.delete(j)}function _(j){for(let B of W.keys())if(B.startsWith(j))W.delete(B)}var q=null,w=null,G=null;function C(j){G=j}async function b(j=!1){let B=G??await import("./chunk-wb00aqm7.js");if(j)return B.generateSignalsRuntimeDev();if(q===null)q=B.generateSignalsRuntime();return q}var D=null;async function A(){if(D===null){let{getRouterScript:j}=await import("./chunk-qzbwa5xe.js");D=j()}return D}var L={};async function g(j,B=!1){let z=j==="runtime"?await b(B):await A(),J=j==="runtime"&&B?"runtime-debug":j,I=L[J];if(!I||I.content!==z)I={content:z,hash:Bun.hash(z).toString(16).padStart(16,"0").slice(0,16)},L[J]=I;return{content:z,hash:I.hash,url:`/_stx/${j}.${I.hash}.js`}}function u(){W.clear(),x(),T(),q=null,w=null,D=null}function O(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function P(j,B){try{if(!B.cachePath)return null;let z=Z.resolve(B.cachePath),J=Z.join(z,`${U(j)}.html`),I=Z.join(z,`${U(j)}.meta.json`);if(!await M(J)||!await M(I))return null;let X=await Bun.file(I).text(),Q=JSON.parse(X);if(Q.cacheVersion!==B.cacheVersion)return null;if(Q.optionsSignature!==O(B))return null;if((await V.promises.stat(j)).mtime.getTime()>Q.mtime)return null;for(let $ of Q.dependencies)if(await M($)){if((await V.promises.stat($)).mtime.getTime()>Q.mtime)return null}else return null;return await Bun.file(J).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function p(j,B,z,J){try{if(!J.cachePath)return;let I=Z.resolve(J.cachePath);await V.promises.mkdir(I,{recursive:!0});let X=Z.join(I,`${U(j)}.html`),Q=Z.join(I,`${U(j)}.meta.json`),Y=await V.promises.stat(j);await Bun.write(X,B);let $={sourcePath:j,mtime:Y.mtime.getTime(),dependencies:Array.from(z),cacheVersion:J.cacheVersion,optionsSignature:O(J),generatedAt:Date.now()};await Bun.write(Q,JSON.stringify($,null,2)),y.set(j,{output:B,mtime:Y.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var v=16;function U(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,v)}
3
3
  export{y as Oj,R as Pj,S as Qj,_ as Rj,C as Sj,b as Tj,A as Uj,g as Vj,u as Wj,P as Xj,p as Yj,U as Zj};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ri as a,Si as b,Ti as c,Ui as d,Vi as e,Wi as f,Xi as g}from"./chunk-jem20v5k.js";import"./chunk-24j0qx2z.js";export{d as useVirtualList,b as processVirtualListDirectives,f as processVirtualGridDirectives,e as processInfiniteListDirectives,c as generateVirtualListCSS,g as default,a as createVirtualList};
2
+ import{Ri as a,Si as b,Ti as c,Ui as d,Vi as e,Wi as f,Xi as g}from"./chunk-jem20v5k.js";import"./chunk-vwqv8f0y.js";export{d as useVirtualList,b as processVirtualListDirectives,f as processVirtualGridDirectives,e as processInfiniteListDirectives,c as generateVirtualListCSS,g as default,a as createVirtualList};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{At as l,pt as a,qt as b,rt as c,st as d,tt as e,ut as f,vt as g,wt as h,xt as i,yt as j,zt as k}from"./chunk-br48y7q9.js";import"./chunk-ja39jznm.js";import"./chunk-24j0qx2z.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
2
+ import{At as k,Bt as l,qt as a,rt as b,st as c,tt as d,ut as e,vt as f,wt as g,xt as h,yt as i,zt as j}from"./chunk-qfec1s34.js";import"./chunk-kgxkrnyt.js";import"./chunk-vwqv8f0y.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
@@ -0,0 +1,17 @@
1
+ // @bun
2
+ import{Ul as ZJ,ir as QJ}from"./chunk-6z04mpxz.js";import{at as JJ,bt as KJ}from"./chunk-c5rehxqy.js";import{it as $J,mt as g}from"./chunk-qfec1s34.js";import{Gt as h}from"./chunk-kgxkrnyt.js";import j from"path";import O from"fs";function qJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function VJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function E(J,K){let G=[];for(let W of VJ(J)){if(qJ(W)){let Y=W.position||void 0;G.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}G.push({file:K,message:W instanceof Error?W.message:String(W)})}return G}function i(J,K){return E(J,K).map((G)=>{let W=G.file?`${G.file}${G.line?`:${G.line}${G.column?`:${G.column}`:""}`:""}`:"",Y=G.lineText?`
3
+ ${G.lineText.trim()}`:"";return W?`${W}: ${G.message}${Y}`:`${G.message}${Y}`}).join(`
4
+ `)}var kJ=6,GJ=1,WJ=new Map,b=600,OJ=100,P=new Map;async function AJ(J){let K=P.get(J)??0;if(K>0&&K<OJ){P.set(J,K+1);return}P.set(J,1);try{let G=(await O.promises.readdir(J)).filter((H)=>H.endsWith(".js"));if(G.length<=b)return;let Y=(await Promise.all(G.map(async(H)=>{try{return{name:H,at:(await O.promises.stat(j.join(J,H))).mtimeMs}}catch{return null}}))).filter((H)=>H!==null);Y.sort((H,Q)=>Q.at-H.at);for(let H of Y.slice(b)){let Q=H.name.slice(0,-3);await O.promises.rm(j.join(J,`${Q}.js`),{force:!0}),await O.promises.rm(j.join(J,`${Q}.deps.json`),{force:!0})}T("pruned bundle cache to",b,"entries")}catch{}}function bJ(J){return WJ.get(J)??[]}function m(J,K){if(J)WJ.set(J,K)}function wJ(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function T(...J){if(wJ())console.log("[stx:bundler]",...J)}var p=[];function r(J,K,G){p.push({filePath:J||"<inline>",message:K,details:G})}function PJ(){return p.slice()}function fJ(){p.length=0}var u;function gJ(J){u=J}function s(){if(u)return u;try{let J=QJ.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var t=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function mJ(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,G;while((G=K.exec(J))!==null){let Y=G[1];if(!t.some((Q)=>Q.test(Y)))return T("detected user import:",Y),!0}let W=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((G=W.exec(J))!==null){let Y=G[1];if(/\.css(?:\?.*)?$/.test(Y))continue;if(!t.some((Q)=>Q.test(Y)))return T("detected side-effect import:",Y),!0}return!1}var v="stx-module:",UJ=/\.(?:[cm]?[jt]sx?|json)$/i;function CJ(J,K){return j.relative(J,K).split(j.sep).join("/")}function LJ(J,K){if(K.size===0)return J;return J.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,(G,W,Y,H)=>{let Q=K.get(H);return Q&&!H.startsWith(v)?`${W}${Y}${Q}${Y}`:G})}function TJ(J,K){let G=0,W=(H)=>{let Q=`__stxMod${G++}`,A=JSON.stringify(H);return K.push(`var ${Q} = globalThis.__stxModules && globalThis.__stxModules[${A}];`,`if (${Q} === undefined) throw new Error("[stx] module " + ${JSON.stringify(A)} + " is not registered on this page (#1957)");`),Q},Y=(H,Q)=>{for(let A of H.split(",")){let z=A.trim();if(!z)continue;let Z=z.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!Z)continue;let $=Z[1].startsWith('"')?JSON.parse(Z[1]):Z[1],X=Z[2]??$;K.push(`var ${X} = ${Q}[${JSON.stringify($)}];`)}};return J=J.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(H,Q,A)=>{let z=A.slice(v.length),Z=W(z),$=Q.trim(),X=$.match(/^([\w$]+)\s*(?:,\s*|$)/);if(X&&!$.startsWith("{")&&!$.startsWith("*"))K.push(`var ${X[1]} = ${Z}.default;`),$=$.slice(X[0].length).trim();let k=$.match(/^\*\s*as\s+([\w$]+)$/);if(k)K.push(`var ${k[1]} = ${Z};`);else if($.startsWith("{"))Y($.replace(/^\{|\}$/g,""),Z);return""}),J=J.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(H,Q)=>{return W(Q.slice(v.length)),""}),J}function a(J){let K=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,j.join(J,"index.ts"),j.join(J,"index.tsx"),j.join(J,"index.js"),j.join(J,"index.mjs")];for(let G of K)try{if(O.existsSync(G)&&O.statSync(G,{throwIfNoEntry:!1})?.isFile())return G}catch{}return}function MJ(J,K,G,W,Y,H=new Map){let Q=(z,Z,$)=>{if(!Y||z!==G||!UJ.test(Z))return null;try{if(!O.statSync(Z,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}W.add(Z);let X=`${v}${CJ(process.cwd(),Z)}`;return H.set($,X),{path:X,external:!0}},A=(z,Z)=>{let $=z===G?K:j.dirname(z),X=j.resolve($,Z);return a(X)??X};return{name:"stx-client-bundle",setup(z){z.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),z.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),z.onResolve({filter:/^\//},(Z)=>{let $=a(Z.path);if($){let X=Q(Z.importer,$,Z.path);if(X)return X;if($!==G)W.add($);return{path:$}}return{path:Z.path,external:!0}}),z.onResolve({filter:/^\.\.?\//},(Z)=>{let $=A(Z.importer,Z.path),X=Q(Z.importer,$,Z.path);if(X)return X;return W.add($),{path:$}}),z.onResolve({filter:/^[@~]\//},(Z)=>{let $=j.resolve(J,Z.path.slice(2)),X=[$,`${$}.ts`,`${$}.tsx`,`${$}.js`,`${$}.mjs`,`${$}.jsx`,j.join($,"index.ts"),j.join($,"index.tsx"),j.join($,"index.js"),j.join($,"index.mjs")];for(let k of X)if(O.existsSync(k)&&O.statSync(k,{throwIfNoEntry:!1})?.isFile()){let _=Q(Z.importer,k,Z.path);if(_)return _;return T(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",k),W.add(k),{path:k}}return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:$}}),z.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(Z)=>{if(!Y||Z.importer!==G)return;let $=`${v}npm:${Z.path}`;return H.set(Z.path,$),{path:$,external:!0}}),z.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{let $=j.extname(Z.path).toLowerCase(),X=$===".json"?"json":$===".tsx"?"tsx":$===".jsx"?"jsx":$===".ts"||$===".mts"||$===".cts"?"ts":"js";if(Z.path!==G)W.add(Z.path);return{contents:O.readFileSync(Z.path,"utf8"),loader:X}})}}}var f=new Map,F=$J(64),e=Symbol.for("stx.client-bundle-build-queue");function SJ(J){let K=globalThis,W=(K[e]??Promise.resolve()).then(J,J);return K[e]=W.then(()=>{return},()=>{return}),W}async function uJ(J,K,G={}){let W=G.projectRoot||process.cwd(),Y=G.minify??!1,H=G.externalizeUserModules??!0,Q=G.cacheDir||h(W,"bundle-cache"),A=new Bun.CryptoHasher("md5");A.update(`${kJ}\x00${H?"registry":"inline"}\x00${J}\x00${K}`);let z=A.digest("hex").slice(0,12),Z=j.join(Q,`${z}.js`),$=F.get(Z);if($){if(g($.files)){T("memo hit:",z);let S=$.files.map((L)=>L.path);return m(K,S),G.collectInputs?.push(...S),$.code}F.delete(Z),T("memo invalidated by dep change:",z)}let X=j.join(Q,`${z}.deps.json`),k=Bun.file(Z);if(await k.exists()){let S=Bun.file(X),L=!0,w=null;if(await S.exists())try{let I=JSON.parse(await S.text());if(I.metadataVersion!==GJ||!Array.isArray(I.files))L=!1;else w=I.files;if(w&&!g(w))L=!1}catch{L=!1}if(L){if(T("cache hit:",z),w)m(K,w.map((y)=>y.path)),G.collectInputs?.push(...w.map((y)=>y.path));let I=await k.text();if(w)F.set(Z,{code:I,files:w});return I}T("cache invalidated by dep change:",z)}let _=f.get(z);if(_){let S=await _;if(G.collectInputs)G.collectInputs.push(...(F.get(Z)?.files??[]).map((L)=>L.path));return S}let M=SJ(()=>xJ(J,K,{projectRoot:W,minify:Y,cacheDir:Q,hash:z,cachePath:Z,depsPath:X,collectInputs:G.collectInputs,externalizeUserModules:H}));f.set(z,M);try{return await M}finally{f.delete(z)}}async function xJ(J,K,G){let{projectRoot:W,minify:Y,cacheDir:H,hash:Q,cachePath:A,depsPath:z,externalizeUserModules:Z}=G,$=h(W,"bundle-tmp"),X=j.join($,`${Q}.ts`),k=j.join($,"out",Q);O.mkdirSync($,{recursive:!0}),O.mkdirSync(k,{recursive:!0});let _=j.dirname(K),M=new Set,S=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,L=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,w=JJ(J),{depths:I,balanced:y}=KJ(w),c=(U)=>!y||I[U]===0,C;while((C=S.exec(w))!==null){if(C[1])continue;if(!c(C.index))continue;if(C[2])C[2].split(",").forEach((U)=>{let V=IJ(U);if(V)M.add(V)});else if(C[3])M.add(C[3])}while((C=L.exec(w))!==null){if(C[1])continue;if(!c(C.index))continue;M.add(C[2])}let YJ=M.size>0?`
5
+ export { ${[...M].join(", ")} }`:"";await Bun.write(X,J+YJ),T("bundling:",Q,"from:",j.basename(K));let o=new Set,n=new Map;try{let U=await Bun.build({entrypoints:[X],outdir:k,target:"browser",format:"esm",minify:Y,plugins:[MJ(W,_,X,o,Z,n)],define:{"process.env.NODE_ENV":Y?'"production"':'"development"',...ZJ()},root:W});if(!U.success){let N=U.logs.filter((B)=>B.level==="error").map((B)=>B.message).join(", ")||`Unable to bundle ${j.basename(K)}`,R=E(U.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",N),r(K||"",N,R),s()==="error")throw Error(N);return J}let V="";for(let q of U.outputs){V=await q.text();break}let x=[];for(let q of V.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let N of q[1].split(",")){let R=N.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(R){x.push([R[2],R[1]]);continue}let B=N.trim();if(/^[A-Za-z_$][\w$]*$/.test(B))x.push([B,B])}let l=[];V=TJ(LJ(V,n),l);let HJ=V.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];V=V.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let d=`__stxBundle_${Q}`,zJ=x.map(([q,N])=>`${JSON.stringify(q)}: ${N}`).join(", "),XJ=x.map(([q])=>`var ${q} = undefined;`).join(`
6
+ `),jJ=x.map(([q])=>`${q} = ${d}[${JSON.stringify(q)}];`).join(`
7
+ `);if(V=`${HJ.join(`
8
+ `)}
9
+ ${XJ}
10
+ var ${d} = (function() {
11
+ ${l.join(`
12
+ `)}
13
+ ${V}
14
+ return { ${zJ} };
15
+ })();
16
+ ${jJ}`.trim(),T("bundled:",Q,"output:",V.length,"bytes"),M.size>0&&x.length===0)return console.warn(`[stx:bundler] dropped every binding for ${j.basename(K)} (${Q}); serving the unbundled source and not caching this result`),J;O.mkdirSync(H,{recursive:!0}),await Bun.write(A,V);let D=Array.from(o).map((q)=>{try{return{path:q,mtimeMs:O.statSync(q).mtimeMs}}catch{return null}}).filter((q)=>q!==null);return await Bun.write(z,JSON.stringify({metadataVersion:GJ,files:D})),m(K,D.map((q)=>q.path)),G.collectInputs?.push(...D.map((q)=>q.path)),F.set(A,{code:V,files:D}),await AJ(H),V}catch(U){let V=E(U,K||void 0),x=i(U,K||void 0);if(console.warn(`[stx:bundler] error: ${x}`),r(K||"",x,V),s()==="error")throw U;return J}finally{try{O.rmSync(X,{force:!0}),O.rmSync(k,{recursive:!0,force:!0})}catch{}}}function IJ(J){let K=J.trim();if(!K)return null;let G=K.indexOf("=");if(G!==-1)K=K.slice(0,G).trim();let W=K.indexOf(":");if(W!==-1)K=K.slice(W+1).trim();if(K.startsWith("..."))K=K.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(K)?K:null}
17
+ export{i as $k,bJ as al,wJ as bl,r as cl,PJ as dl,fJ as el,gJ as fl,s as gl,mJ as hl,v as il,CJ as jl,LJ as kl,TJ as ll,SJ as ml,uJ as nl};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{bj as v,cj as F,dj as P}from"./chunk-efr3ejqt.js";import{Rp as B,Tl as K,gr as S}from"./chunk-tjverybm.js";import{Xt as _,Yt as x}from"./chunk-b16crvqg.js";import{au as N}from"./chunk-359ps7j5.js";import U from"path";var j=new Map,E=new Map,h=["composables","functions"];function T(Q){let z=U.basename(Q,".ts");return z==="index"||z==="types"||Q.endsWith(".d.ts")}async function D(Q){if(Q)return U.resolve(Q);let z=`<default>:${process.cwd()}`,Y=E.get(z);if(Y!==void 0)return Y;let J=await u();if(J!==null)E.set(z,J);return J}async function u(){let Q=await S(),z=Q.root||process.cwd(),Y=Q.composablesDir;if(Y)return U.resolve(z,Y);for(let J of h){let V=U.resolve(z,J);try{let W=new Bun.Glob("**/*.ts");for await(let Z of W.scan({cwd:V,absolute:!0}))if(!T(Z))return V}catch{}}return null}async function i(Q){let z=await D(Q);if(!z)return[];let Y=[];try{let W=new Bun.Glob("**/*.ts");for await(let Z of W.scan({cwd:z,absolute:!0}))if(!T(Z))Y.push(Z)}catch{return[]}Y.sort();let J=B({loader:"ts",target:"browser",define:K()}),V=[];for(let W of Y)try{let Z=await Bun.file(W).text(),$=J.scan(Z).exports.filter((G)=>G!=="default");if($.length>0)V.push({file:W,names:$})}catch{}return V}function f(Q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(Q)}function p(Q,z,Y){let J=new Map;for(let{file:$,names:G}of Q)for(let O of G)if(!J.has(O))J.set(O,$);let V=($)=>{let G=[];for(let[O,L]of J)if(f($,O))G.push(L);return G},W=new Set,Z=Y.flatMap(V);while(Z.length>0){let $=[];for(let G of Z){if(W.has(G))continue;W.add(G);for(let O of V(z.get(G)??""))if(!W.has(O))$.push(O)}Z=$}return W}async function o(Q,z,Y){let J=await D(Q);if(!J)return null;let V=[];try{let q=new Bun.Glob("**/*.ts");for await(let H of q.scan({cwd:J,absolute:!0})){if(T(H))continue;V.push(H)}}catch{return P(j,J,"",""),null}let W=v(V);if(V.length===0)return P(j,J,W,""),null;V.sort();let Z=B({loader:"ts",target:"browser",define:K()}),$=new Map,G=[];for(let q of V)try{let H=await Bun.file(q).text();$.set(q,H);let w=Z.scan(H).exports.filter((X)=>X!=="default");if(w.length>0)G.push({file:q,names:w})}catch{$.set(q,"")}let O=z===void 0?new Set(V):p(G,$,Y?[z,...Y]:[z]);if(O.size===0)return null;let L=V.filter((q)=>O.has(q)),A=`${J}\x00${L.join("\x00")}`,I=F(j,A,W);if(I!==void 0)return I||null;let M=[],R=new Set,k=new Set;for(let q of L)try{let H=$.get(q)??await Bun.file(q).text(),w=U.basename(q,".ts");for(let X of H.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])k.add(X[1]);try{for(let X of Z.scan(H).exports)if(X!=="default")R.add(X)}catch{}H=_(H),H=x(H),H=H.replace(/^export\s+(default\s+)?/gm,""),H=Z.transformSync(H),M.push(`// Composable: ${w}
2
+ import{bj as v,cj as F,dj as P}from"./chunk-efr3ejqt.js";import{Sp as B,Ul as K,hr as S}from"./chunk-6z04mpxz.js";import{Yt as _,Zt as x}from"./chunk-nqwjb8k7.js";import{bu as N}from"./chunk-6kdb8j9d.js";import U from"path";var j=new Map,E=new Map,h=["composables","functions"];function T(Q){let z=U.basename(Q,".ts");return z==="index"||z==="types"||Q.endsWith(".d.ts")}async function D(Q){if(Q)return U.resolve(Q);let z=`<default>:${process.cwd()}`,Y=E.get(z);if(Y!==void 0)return Y;let J=await u();if(J!==null)E.set(z,J);return J}async function u(){let Q=await S(),z=Q.root||process.cwd(),Y=Q.composablesDir;if(Y)return U.resolve(z,Y);for(let J of h){let V=U.resolve(z,J);try{let W=new Bun.Glob("**/*.ts");for await(let Z of W.scan({cwd:V,absolute:!0}))if(!T(Z))return V}catch{}}return null}async function i(Q){let z=await D(Q);if(!z)return[];let Y=[];try{let W=new Bun.Glob("**/*.ts");for await(let Z of W.scan({cwd:z,absolute:!0}))if(!T(Z))Y.push(Z)}catch{return[]}Y.sort();let J=B({loader:"ts",target:"browser",define:K()}),V=[];for(let W of Y)try{let Z=await Bun.file(W).text(),$=J.scan(Z).exports.filter((G)=>G!=="default");if($.length>0)V.push({file:W,names:$})}catch{}return V}function f(Q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(Q)}function p(Q,z,Y){let J=new Map;for(let{file:$,names:G}of Q)for(let O of G)if(!J.has(O))J.set(O,$);let V=($)=>{let G=[];for(let[O,L]of J)if(f($,O))G.push(L);return G},W=new Set,Z=Y.flatMap(V);while(Z.length>0){let $=[];for(let G of Z){if(W.has(G))continue;W.add(G);for(let O of V(z.get(G)??""))if(!W.has(O))$.push(O)}Z=$}return W}async function o(Q,z,Y){let J=await D(Q);if(!J)return null;let V=[];try{let q=new Bun.Glob("**/*.ts");for await(let H of q.scan({cwd:J,absolute:!0})){if(T(H))continue;V.push(H)}}catch{return P(j,J,"",""),null}let W=v(V);if(V.length===0)return P(j,J,W,""),null;V.sort();let Z=B({loader:"ts",target:"browser",define:K()}),$=new Map,G=[];for(let q of V)try{let H=await Bun.file(q).text();$.set(q,H);let w=Z.scan(H).exports.filter((X)=>X!=="default");if(w.length>0)G.push({file:q,names:w})}catch{$.set(q,"")}let O=z===void 0?new Set(V):p(G,$,Y?[z,...Y]:[z]);if(O.size===0)return null;let L=V.filter((q)=>O.has(q)),A=`${J}\x00${L.join("\x00")}`,I=F(j,A,W);if(I!==void 0)return I||null;let M=[],R=new Set,k=new Set;for(let q of L)try{let H=$.get(q)??await Bun.file(q).text(),w=U.basename(q,".ts");for(let X of H.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])k.add(X[1]);try{for(let X of Z.scan(H).exports)if(X!=="default")R.add(X)}catch{}H=_(H),H=x(H),H=H.replace(/^export\s+(default\s+)?/gm,""),H=Z.transformSync(H),M.push(`// Composable: ${w}
3
3
  ${H.trim()}`)}catch(H){console.warn(`[stx] Failed to load composable ${q}:`,H)}if(M.length===0||R.size===0)return P(j,A,W,""),null;let b=[...R].map((q)=>` try { __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
4
4
  `),g=JSON.stringify([...R]),y=M.join(`
5
5
 
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ht as a,It as b,Jt as c,Kt as d,Lt as e,Mt as f,Nt as g,Ot as h,Pt as i,Qt as j,Rt as k,St as l,Tt as m,Ut as n,Vt as o,Wt as p}from"./chunk-9s0ax53m.js";import"./chunk-24j0qx2z.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
2
+ import{It as a,Jt as b,Kt as c,Lt as d,Mt as e,Nt as f,Ot as g,Pt as h,Qt as i,Rt as j,St as k,Tt as l,Ut as m,Vt as n,Wt as o,Xt as p}from"./chunk-3npkbgfm.js";import"./chunk-vwqv8f0y.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{jk as a,kk as b,lk as c,mk as d}from"./chunk-maq28582.js";import"./chunk-pb4jjbpq.js";import"./chunk-6z04mpxz.js";import"./chunk-3mbkn6vk.js";import"./chunk-dn8006f7.js";import"./chunk-vg8yh8te.js";import"./chunk-c5rehxqy.js";import"./chunk-xtwybxtw.js";import"./chunk-qfec1s34.js";import"./chunk-kgxkrnyt.js";import"./chunk-3npkbgfm.js";import"./chunk-nqwjb8k7.js";import"./chunk-nx96x8sh.js";import"./chunk-6kdb8j9d.js";import"./chunk-jmh31a2a.js";import"./chunk-d3kac3mv.js";import"./chunk-vwqv8f0y.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{if as a,jf as b,kf as c,lf as d,mf as e,nf as f,of as g,pf as h,qf as i,rf as j,sf as k,tf as l,uf as m,vf as n,wf as o}from"./chunk-ps20v1ah.js";import"./chunk-24j0qx2z.js";export{k as writeNetlifyConfig,n as initNetlify,l as hasNetlifyConfig,g as getTotalSize,h as generateNetlifyToml,f as formatSize,e as filterRequiredFiles,i as detectProjectConfig,m as deploy,a as createNetlifyClient,d as createFileManifest,j as createDefaultNetlifyConfig,c as collectDeployFiles,b as calculateSha1,o as DeployError};
2
+ import{if as a,jf as b,kf as c,lf as d,mf as e,nf as f,of as g,pf as h,qf as i,rf as j,sf as k,tf as l,uf as m,vf as n,wf as o}from"./chunk-ps20v1ah.js";import"./chunk-vwqv8f0y.js";export{k as writeNetlifyConfig,n as initNetlify,l as hasNetlifyConfig,g as getTotalSize,h as generateNetlifyToml,f as formatSize,e as filterRequiredFiles,i as detectProjectConfig,m as deploy,a as createNetlifyClient,d as createFileManifest,j as createDefaultNetlifyConfig,c as collectDeployFiles,b as calculateSha1,o as DeployError};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$t as b,_t as a}from"./chunk-nx96x8sh.js";import"./chunk-vwqv8f0y.js";export{b as warnUnbalancedTags,a as findUnbalancedTags};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{mv as y}from"./chunk-24j0qx2z.js";function S4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function jZ(){return typeof window<"u"&&typeof document<"u"}async function w4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var g=new Map;function B4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function f4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function v4(Z="top-right"){if(!jZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function y4(Z){let{options:Y}=Z,$=f4(Y.type),J=Y.type||"info",Q=Y.duration!==0;return`
2
+ import{nv as y}from"./chunk-vwqv8f0y.js";function S4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function jZ(){return typeof window<"u"&&typeof document<"u"}async function w4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var g=new Map;function B4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function f4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function v4(Z="top-right"){if(!jZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function y4(Z){let{options:Y}=Z,$=f4(Y.type),J=Y.type||"info",Q=Y.duration!==0;return`
3
3
  <div class="stx-toast ${J}" data-alert-id="${Z.id}" role="alert" aria-live="polite">
4
4
  <div class="stx-toast-icon">${$}</div>
5
5
  <div class="stx-toast-content">
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$i as b,_i as a,aj as c}from"./chunk-24pgjzmy.js";import"./chunk-efr3ejqt.js";import"./chunk-6z04mpxz.js";import"./chunk-3mbkn6vk.js";import"./chunk-dn8006f7.js";import"./chunk-vg8yh8te.js";import"./chunk-c5rehxqy.js";import"./chunk-xtwybxtw.js";import"./chunk-qfec1s34.js";import"./chunk-kgxkrnyt.js";import"./chunk-3npkbgfm.js";import"./chunk-nqwjb8k7.js";import"./chunk-nx96x8sh.js";import"./chunk-6kdb8j9d.js";import"./chunk-jmh31a2a.js";import"./chunk-d3kac3mv.js";import"./chunk-vwqv8f0y.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{hf as a}from"./chunk-6tzzh1dg.js";import"./chunk-tt50t72e.js";import"./chunk-6z04mpxz.js";import"./chunk-3mbkn6vk.js";import"./chunk-dn8006f7.js";import"./chunk-vg8yh8te.js";import"./chunk-c5rehxqy.js";import"./chunk-xtwybxtw.js";import"./chunk-qfec1s34.js";import"./chunk-kgxkrnyt.js";import"./chunk-3npkbgfm.js";import"./chunk-nqwjb8k7.js";import"./chunk-nx96x8sh.js";import"./chunk-6kdb8j9d.js";import"./chunk-jmh31a2a.js";import"./chunk-d3kac3mv.js";import"./chunk-vwqv8f0y.js";export{a as startProductionServer};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{hg as a,jg as JF,kg as ZF,lg as qF}from"./chunk-d2rhtvxx.js";import{rg as p}from"./chunk-bcgywywg.js";import{sj as C,tj as D}from"./chunk-85xj7cgm.js";import{Fk as QF,Gk as XF,Hk as YF}from"./chunk-xtx53xyz.js";import{Fp as FF,Jp as c,Lm as u,bo as o,dm as d,er as n,fm as l,gr as N,ip as e,xp as t}from"./chunk-tjverybm.js";import{At as r}from"./chunk-br48y7q9.js";import{av as S,cv as WF}from"./chunk-64d20kkv.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);d();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:w}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),E=new Set,L={...n,...K,...z,buildMode:"compile",strict:!1},_=await c(X,w,Q,L,E),U=a(_),H=l();return{route:q,sourceFile:J,html:_,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(E),contentHash:I,status:u(X),streamTemplates:w.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function dF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,w=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let E=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of E)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let L=o(z),_=["components","layouts","partials"],U=L.filter((Y)=>{return!_.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${L.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,w);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
2
+ import{hg as a,jg as JF,kg as ZF,lg as qF}from"./chunk-tt50t72e.js";import{rg as p}from"./chunk-bax52sn4.js";import{sj as C,tj as D}from"./chunk-kp8ec2f4.js";import{Fk as QF,Gk as XF,Hk as YF}from"./chunk-xtx53xyz.js";import{Gp as FF,Kp as c,Mm as u,co as o,em as d,fr as n,gm as l,hr as N,jp as e,yp as t}from"./chunk-6z04mpxz.js";import{Bt as r}from"./chunk-qfec1s34.js";import{bv as S,dv as WF}from"./chunk-jmh31a2a.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);d();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:w}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),E=new Set,L={...n,...K,...z,buildMode:"compile",strict:!1},_=await c(X,w,Q,L,E),U=a(_),H=l();return{route:q,sourceFile:J,html:_,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(E),contentHash:I,status:u(X),streamTemplates:w.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function dF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,w=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let E=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of E)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let L=o(z),_=["components","layouts","partials"],U=L.filter((Y)=>{return!_.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${L.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,w);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
3
3
  [stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
4
4
  export{g as Rf,f as Sf,m as Tf,UF as Uf,i as Vf,dF as Wf};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Zs as Iq}from"./chunk-6w76w8tt.js";import{mv as N}from"./chunk-24j0qx2z.js";var Sq={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},P={},qq="en";function Pq(q){qq=q}function Lq(){return qq}function bq(q){P={...P,...q}}function Cq(){P={}}function Jq(q,Q={}){let J=P[q]||Sq[q]||{message:`Unknown error (code: ${q})`},Z=J.message,$=J.help;for(let[W,H]of Object.entries(Q)){let Y=`{{${W}}}`;if(Z=Z.replace(new RegExp(Y,"g"),H),$)$=$.replace(new RegExp(Y,"g"),H)}return{message:Z,help:$}}function yq(q,Q={}){let{message:J,help:Z}=Jq(q,Q);return Z?`${J}
2
+ import{_s as Iq}from"./chunk-vg8yh8te.js";import{nv as N}from"./chunk-vwqv8f0y.js";var Sq={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},P={},qq="en";function Pq(q){qq=q}function Lq(){return qq}function bq(q){P={...P,...q}}function Cq(){P={}}function Jq(q,Q={}){let J=P[q]||Sq[q]||{message:`Unknown error (code: ${q})`},Z=J.message,$=J.help;for(let[W,H]of Object.entries(Q)){let Y=`{{${W}}}`;if(Z=Z.replace(new RegExp(Y,"g"),H),$)$=$.replace(new RegExp(Y,"g"),H)}return{message:Z,help:$}}function yq(q,Q={}){let{message:J,help:Z}=Jq(q,Q);return Z?`${J}
3
3
  Help: ${Z}`:J}var j={UNCLOSED_DIRECTIVE:1001,UNCLOSED_EXPRESSION:1002,INVALID_DIRECTIVE_SYNTAX:1003,MALFORMED_EXPRESSION:1004,UNEXPECTED_TOKEN:1005,UNDEFINED_VARIABLE:1101,TYPE_ERROR:1102,EVALUATION_ERROR:1103,INFINITE_LOOP:1104,CIRCULAR_REFERENCE:1105,UNSAFE_EXPRESSION:1201,PATH_TRAVERSAL:1202,XSS_ATTEMPT:1203,CODE_INJECTION:1204,DOM_API_VIOLATION:1205,FILE_NOT_FOUND:1301,FILE_READ_ERROR:1302,INVALID_FILE_PATH:1303,PERMISSION_DENIED:1304,INVALID_CONFIG:1401,MISSING_REQUIRED_CONFIG:1402,DEPRECATED_CONFIG:1403,COMPONENT_NOT_FOUND:1501,INVALID_PROPS:1502,COMPONENT_RENDER_ERROR:1503,FILTER_NOT_FOUND:1601,INVALID_FILTER_ARGS:1602,EXPRESSION_TIMEOUT:1603};function g(q){for(let[Q,J]of Object.entries(j))if(J===q)return Q;return}function vq(){return!1}function E(){return!vq()||process.env.STX_DEBUG==="true"}function oJ(){return!1}import xq from"path";var Qq={showRelativePaths:!1,enableAutoRecovery:E(),logRecoveryWarnings:!0},R={...Qq};function gq(q){R={...R,...q}}function L(){return{...R}}function fq(){R={...Qq}}function b(q){if(!R.showRelativePaths||!q)return q;let Q=R.baseDir||process.cwd();try{let J=xq.relative(Q,q);return J.startsWith("..")?q:J}catch{return q}}class A extends Error{code;filePath;line;column;context;numericCode;constructor(q,Q,J,Z,$,W,H){super(q);this.code=Q;this.filePath=J;this.line=Z;this.column=$;this.context=W;if(this.name="StxError",this.numericCode=H||j.EVALUATION_ERROR,this.filePath)this.filePath=b(this.filePath)}}class Zq extends A{constructor(q,Q,J,Z,$,W){super(q,"stx_SYNTAX_ERROR",Q,J,Z,$,W||j.INVALID_DIRECTIVE_SYNTAX);this.name="StxSyntaxError"}}class $q extends A{constructor(q,Q,J,Z,$,W){super(q,"stx_RUNTIME_ERROR",Q,J,Z,$,W||j.EVALUATION_ERROR);this.name="StxRuntimeError"}}class Xq extends A{constructor(q,Q,J,Z,$,W){super(q,"stx_SECURITY_ERROR",Q,J,Z,$,W||j.UNSAFE_EXPRESSION);this.name="StxSecurityError"}}class Wq extends A{constructor(q,Q,J,Z,$,W){super(q,"stx_FILE_ERROR",Q,J,Z,$,W||j.FILE_NOT_FOUND);this.name="StxFileError"}}class Yq extends A{isFatal=!0;constructor(q,Q,J,Z,$,W){super(q,"stx_VALIDATION_ERROR",Q,J,Z,$,W||j.DOM_API_VIOLATION);this.name="StxValidationError"}}function f(q){let{type:Q,message:J,code:Z,filePath:$,line:W,column:H,template:Y,offset:X,snippet:B,suggestion:G,format:V="text"}=q,_=W,M=H;if(!_&&Y&&X!==void 0){let z=Gq(Y,X);_=z.line,M=z.column}let U=$?b($):void 0,w=Z?g(Z):void 0,O={type:Q,code:Z,codeName:w,message:J,filePath:U,line:_,column:M,snippet:B,suggestion:G,timestamp:new Date().toISOString()},F;switch(V){case"html":F=uq(O);break;case"json":F=JSON.stringify(O,null,2);break;case"console":F=dq(O,Y,X);break;case"text":default:F=hq(O,Y,X);break}return{formatted:F,data:O}}function hq(q,Q,J){let Z=[],$=q.code?` [${q.codeName||q.code}]`:"";if(Z.push(`[${q.type} Error${$}]`),q.filePath){let W=q.filePath;if(q.line){if(W+=`:${q.line}`,q.column)W+=`:${q.column}`}Z.push(`at ${W}`)}if(Z.push(`
4
4
  ${q.message}`),Q&&q.line){let W=pq(Q,q.line,2);if(W)Z.push(`
5
5
  ${W}`)}if(q.snippet)Z.push(`
@@ -57,4 +57,4 @@ catch (e) {
57
57
  border-width: 0;
58
58
  }
59
59
  `.trim()}function hJ(){return typeof globalThis.document<"u"&&typeof globalThis.document.createElement==="function"}function Nq(q){let Q=new Map,J=q.replace(/<(\/?)([A-Z][\w:.-]*)(?=[\s/>])/g,($,W,H)=>{let Y=Q.get(H);if(!Y)Y=`stx-a11y-component-${Q.size}`,Q.set(H,Y);return`<${W}${Y}`}),Z=new Map([...Q.entries()].map(([$,W])=>[W,$]));return{protectedSource:J,restore:($)=>$.replace(/<(\/?)(stx-a11y-component-\d+)(?=[\s/>])/g,(W,H,Y)=>{let X=Z.get(Y);return X?`<${H}${X}`:W})}}function uJ(q,Q){let J=[],Z=/<img\s+([^>]*)>/gi,$;$=Z.exec(q);while($!==null){let F=$[1];if(!/\balt\s*=/i.test(F))J.push({type:"missing-alt",element:$[0].substring(0,100),message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"});$=Z.exec(q)}let W=/<button([^>]*)>\s*<\/button>/gi;$=W.exec(q);while($!==null){let F=$[1];if(!/\baria-label\s*=/i.test(F)&&!/\btitle\s*=/i.test(F))J.push({type:"missing-accessible-name",element:$[0].substring(0,100),message:"Empty button missing accessible name",impact:"critical",help:"Add text content, aria-label, or title",helpUrl:"https://web.dev/learn/accessibility/aria-html/"});$=W.exec(q)}let H=/<a\s+([^>]*)>\s*<\/a>/gi;$=H.exec(q);while($!==null){let F=$[1];if(!/\baria-label\s*=/i.test(F)&&!/\btitle\s*=/i.test(F))J.push({type:"link-missing-text",element:$[0].substring(0,100),message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"});$=H.exec(q)}let Y=/<(input|select|textarea)\s+([^>]*)>/gi;$=Y.exec(q);while($!==null){let F=$[2];if(/\btype\s*=\s*["']hidden["']/i.test(F)){$=Y.exec(q);continue}let z=/\baria-label\s*=/i.test(F)||/\baria-labelledby\s*=/i.test(F),T=F.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!z){let Rq=T&&new RegExp(`<label[^>]*\\bfor\\s*=\\s*["']${T[1]}["']`,"i").test(q),t=$.index,e=q.substring(0,t),rJ=q.substring(t),Tq=(e.match(/<label\b/gi)||[]).length,Eq=(e.match(/<\/label>/gi)||[]).length,kq=Tq>Eq;if(!Rq&&!kq)J.push({type:"input-missing-label",element:$[0].substring(0,100),message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})}$=Y.exec(q)}let X=/<h([1-6])[^>]*>/gi,B=[];$=X.exec(q);while($!==null)B.push(Number.parseInt($[1],10)),$=X.exec(q);let G=0;for(let F of B){if(G>0&&F>G+1)J.push({type:"heading-skip",element:`<h${F}>`,message:`Heading level skipped from h${G} to h${F}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});G=F}if(/<html\b/i.test(q)&&!/<html[^>]*\slang\s*=/i.test(q))J.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});let V=q.match(/<html\b([^>]*)>/i);if(V&&a(S(V[1],"lang"),S(V[1],"dir")))J.push({type:"missing-dir",element:V[0].substring(0,100),message:'Document language is right-to-left but dir="rtl" is not set',impact:"serious",help:'Add dir="rtl" to the html element so the layout mirrors the text',helpUrl:"https://www.w3.org/International/questions/qa-html-dir"});let _=/<table([^>]*)>([\s\S]*?)<\/table>/gi;$=_.exec(q);while($!==null){let F=$[2];if(!Aq(S($[1],"role"))&&!/<th\b/i.test(F))J.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});$=_.exec(q)}let M=/<(video|audio)[^>]*\sautoplay\s[^>]*>/gi;$=M.exec(q);while($!==null){if(!/\bmuted\b/i.test($[0]))J.push({type:"autoplay-audio",element:`<${$[1]}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"});$=M.exec(q)}let U=/\btabindex\s*=\s*["']([1-9]\d*)["']/gi;$=U.exec(q);while($!==null)J.push({type:"positive-tabindex",element:`tabindex="${$[1]}"`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"}),$=U.exec(q);let w=/<iframe\s+([^>]*)>/gi;$=w.exec(q);while($!==null){let F=$[1];if(!/\btitle\s*=/i.test(F)&&!/\baria-label\s*=/i.test(F))J.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"});$=w.exec(q)}let O=/<([a-z]+)\s+([^>]*role\s*=\s*["']button["'][^>]*)>/gi;$=O.exec(q);while($!==null){let F=$[1].toLowerCase(),z=$[2];if(F!=="button"&&!/\btabindex\s*=/i.test(z))J.push({type:"button-not-focusable",element:$[0].substring(0,100),message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"});$=O.exec(q)}return J}async function dJ(q,Q){let{protectedSource:J}=Nq(q);if(!hJ())return uJ(J,Q);let Z=[];try{let $=globalThis.document.createElement("div");$.innerHTML=J,$.querySelectorAll("img").forEach((X)=>{if(!X.hasAttribute("alt"))Z.push({type:"missing-alt",element:`<${X.outerHTML}>`,message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"})}),$.querySelectorAll('button, a, [role="button"]').forEach((X)=>{if(!(X.hasAttribute("aria-label")||X.hasAttribute("aria-labelledby")||X.textContent&&X.textContent.trim().length>0))Z.push({type:"missing-accessible-name",element:`<${X.outerHTML}>`,message:"Interactive element missing accessible name",impact:"critical",help:"Add text content, aria-label, or aria-labelledby",helpUrl:"https://web.dev/learn/accessibility/aria-html/"})}),$.querySelectorAll("input, select, textarea").forEach((X)=>{let B=X.getAttribute("id"),G=B&&$.querySelector(`label[for="${B}"]`),V=X.hasAttribute("aria-label")||X.hasAttribute("aria-labelledby"),_=X.closest("label")!==null;if(!G&&!V&&!_)Z.push({type:"input-missing-label",element:`<${X.outerHTML}>`,message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})});let W=Array.from($.querySelectorAll("h1, h2, h3, h4, h5, h6")),H=0;for(let X of W){let B=Number.parseInt(X.tagName.charAt(1));if(H>0&&B>H+1)Z.push({type:"heading-skip",element:`<${X.outerHTML}>`,message:`Heading level skipped from h${H} to h${B}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});H=B}let Y=$.querySelector("html");if(J.includes("<html")&&Y&&!Y.hasAttribute("lang"))Z.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});if(Y&&a(Y.getAttribute("lang"),Y.getAttribute("dir")))Z.push({type:"missing-dir",element:"<html>",message:'Document language is right-to-left but dir="rtl" is not set',impact:"serious",help:'Add dir="rtl" to the html element so the layout mirrors the text',helpUrl:"https://www.w3.org/International/questions/qa-html-dir"});if($.querySelectorAll("a").forEach((X)=>{let B=X.textContent&&X.textContent.trim().length>0,G=X.hasAttribute("aria-label")||X.hasAttribute("aria-labelledby"),V=X.hasAttribute("title"),_=X.querySelector("img[alt]");if(!B&&!G&&!V&&!_)Z.push({type:"link-missing-text",element:`<${X.outerHTML}>`,message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"})}),J.includes("<nav")||J.includes("<header")){if(!$.querySelector('a[href="#main"], a[href="#content"], .skip-link, [class*="skip"]')&&$.querySelectorAll("a").length>5)Z.push({type:"missing-skip-link",element:"<nav>",message:"Consider adding a skip navigation link",impact:"minor",help:"Add a skip link to allow keyboard users to bypass navigation",helpUrl:"https://web.dev/learn/accessibility/focus/#skip-links"})}if($.querySelectorAll("table").forEach((X)=>{if(Aq(X.getAttribute("role")))return;let B=X.querySelector("caption");if(!X.querySelector("th"))Z.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});if(!B&&!X.hasAttribute("aria-label")&&!X.hasAttribute("aria-labelledby"))Z.push({type:"table-missing-caption",element:"<table>",message:"Table missing caption or accessible name",impact:"minor",help:"Add a caption element or aria-label to describe the table",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"})}),$.querySelectorAll('[style*="color"]').forEach((X)=>{let B=X.getAttribute("style")||"";if(B.includes("color:")&&!B.includes("background"))Z.push({type:"potential-contrast-issue",element:`<${X.tagName.toLowerCase()}>`,message:"Element has inline color style - verify contrast ratio",impact:"minor",help:"Ensure text has sufficient contrast ratio (4.5:1 for normal text)",helpUrl:"https://web.dev/learn/accessibility/color-contrast/"})}),$.querySelectorAll("video[autoplay], audio[autoplay]").forEach((X)=>{if(!X.hasAttribute("muted"))Z.push({type:"autoplay-audio",element:`<${X.tagName.toLowerCase()}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"})}),$.querySelectorAll("[tabindex]").forEach((X)=>{if(Number.parseInt(X.getAttribute("tabindex")||"0")>0)Z.push({type:"positive-tabindex",element:`<${X.tagName.toLowerCase()}>`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"})}),$.querySelectorAll('[role="button"]').forEach((X)=>{if(!X.hasAttribute("tabindex"))Z.push({type:"button-not-focusable",element:`<${X.outerHTML}>`,message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"})}),J.includes("<body")&&!$.querySelector('main, [role="main"]'))Z.push({type:"missing-main-landmark",element:"<body>",message:"Document missing main landmark region",impact:"moderate",help:"Add a main element to identify the primary content",helpUrl:"https://web.dev/learn/accessibility/structure/#landmarks"});$.querySelectorAll("iframe").forEach((X)=>{if(!X.hasAttribute("title")&&!X.hasAttribute("aria-label"))Z.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"})})}catch($){console.error(`Error checking accessibility in ${Q}:`,$)}return Z}async function pJ(q,Q={}){let J={},{recursive:Z=!0,ignorePaths:$=[]}=Q,W=Array.isArray(q)?q:[q],H=await Iq(W,{recursive:Z,ignorePaths:$}),Y=[];for(let X of H)try{let B=await Bun.file(X).text();if(X.endsWith("good-a11y.stx"))continue;let G=await dJ(B,X);if(Y.push(X),G.length>0)J[X]=G}catch(B){console.error(`Error scanning ${X}:`,B)}return{results:J,scannedFiles:Y}}async function cQ(q,Q={}){return(await pJ(q,Q)).results}var mJ={fixMissingAlt:!0,fixMissingLabels:!0,fixMissingFormLabels:!0,fixTableHeaders:!0,fixMissingLang:!0,fixMissingDir:!0,fixPositiveTabindex:!0,fixButtonFocusable:!0,defaultLang:"en"};function cJ(q,Q={}){let J={...mJ,...Q},Z=[],{protectedSource:$,restore:W}=Nq(q),H=$;if(J.fixMissingAlt)H=H.replace(/<img([^>]*?)(?<!\balt\s*=\s*["'][^"']*["'])(\s*\/?>)/gi,(Y,X,B)=>{if(/\balt\s*=/i.test(X))return Y;let G=Y,V=`<img${X} alt=""${B}`;return Z.push({type:"missing-alt",description:"Added empty alt attribute to image",before:G,after:V}),V});if(J.fixMissingLabels)H=H.replace(/<button([^>]*)>\s*<\/button>/gi,(Y,X)=>{if(/\baria-label\s*=/i.test(X)||/\btitle\s*=/i.test(X))return Y;let B=Y,G=`<button${X} aria-label="Button"></button>`;return Z.push({type:"missing-accessible-name",description:"Added aria-label to empty button",before:B,after:G}),G}),H=H.replace(/<a([^>]*)>\s*(<(?:i|span|svg)[^>]*(?:class="[^"]*icon[^"]*")?[^>]*>.*?<\/(?:i|span|svg)>)?\s*<\/a>/gi,(Y,X,B)=>{if(/\baria-label\s*=/i.test(X)||/\btitle\s*=/i.test(X))return Y;if(!B&&Y.replace(/<a[^>]*>|<\/a>/gi,"").trim())return Y;let G=Y,V=`<a${X} aria-label="Link">${B||""}</a>`;return Z.push({type:"missing-accessible-name",description:"Added aria-label to link without text",before:G,after:V}),V});if(J.fixMissingFormLabels)H=H.replace(/<(input|select|textarea)([^>]*)>/gi,(Y,X,B)=>{if(/\baria-label\s*=/i.test(B)||/\baria-labelledby\s*=/i.test(B))return Y;if(/\btype\s*=\s*["']hidden["']/i.test(B))return Y;let G=B.match(/\bname\s*=\s*["']([^"']+)["']/i),V=B.match(/\bid\s*=\s*["']([^"']+)["']/i),_=G?.[1]||V?.[1]||X,M=Y,U=`<${X}${B} aria-label="${_}">`;return Z.push({type:"input-missing-label",description:`Added aria-label to ${X} element`,before:M,after:U}),U});if(J.fixMissingLang)H=H.replace(/<html([^>]*)>/gi,(Y,X)=>{if(/\blang\s*=/i.test(X))return Y;let B=Y,G=`<html${X} lang="${J.defaultLang}">`;return Z.push({type:"missing-lang",description:`Added lang="${J.defaultLang}" to html element`,before:B,after:G}),G});if(J.fixMissingDir)H=H.replace(/<html([^>]*)>/gi,(Y,X)=>{let B=S(X,"lang");if(!a(B,S(X,"dir")))return Y;let G=/\bdir\s*=/i.test(X)?`<html${X.replace(/\bdir\s*=\s*(["'])[^"']*\1/i,'dir="rtl"')}>`:`<html${X} dir="rtl">`;return Z.push({type:"missing-dir",description:`Added dir="rtl" to html element (lang="${B}" is right-to-left)`,before:Y,after:G}),G});if(J.fixPositiveTabindex)H=H.replace(/\btabindex\s*=\s*["']([1-9]\d*)["']/gi,(Y,X)=>{let B=Y,G='tabindex="0"';return Z.push({type:"positive-tabindex",description:`Changed tabindex="${X}" to tabindex="0"`,before:B,after:'tabindex="0"'}),'tabindex="0"'});if(J.fixButtonFocusable)H=H.replace(/<([a-z]+)(\s[^>]*role\s*=\s*["']button["'][^>]*)>/gi,(Y,X,B)=>{if(/\btabindex\s*=/i.test(B))return Y;if(X.toLowerCase()==="button")return Y;let G=Y,V=`<${X}${B} tabindex="0">`;return Z.push({type:"button-not-focusable",description:'Added tabindex="0" to element with role="button"',before:G,after:V}),V});if(J.fixTableHeaders)H=H.replace(/<th([^>]*)>/gi,(Y,X)=>{if(/\bscope\s*=/i.test(X))return Y;let B=Y,G=`<th${X} scope="col">`;return Z.push({type:"table-missing-scope",description:'Added scope="col" to table header',before:B,after:G}),G});return{original:q,fixed:W(H),fixCount:Z.length,fixes:Z}}async function lJ(q,Q={},J=!1){let Z=await Bun.file(q).text(),$=cJ(Z,Q);if(J&&$.fixCount>0)await Bun.write(q,$.fixed);return $}async function lQ(q,Q={},J={}){let Z={},{recursive:$=!0,ignorePaths:W=[],writeBack:H=!1,extensions:Y=[".stx",".html",".htm"]}=J,X=Y.length===1?`*${Y[0]}`:`*{${Y.join(",")}}`,B=zq.join(q,$?`**/${X}`:X),G=new Bun.Glob(B);for await(let V of G.scan()){if(W.some((M)=>V.includes(zq.normalize(M))))continue;try{let M=await lJ(V,Q,H);if(M.fixCount>0)Z[V]=M}catch(M){console.error(`Error fixing ${V}:`,M)}}return Z}var sJ={name:"a11y",handler:(q,Q,J,Z)=>{if(!Q.length)return q;let $=Q[0].replace(/['"]/g,""),W=Q.length>1?Q[1].replace(/['"]/g,""):"",Y={"aria-label":"Ensure interactive elements have accessible labels","alt-text":"Provide alternative text for images",focus:"Ensure the element can receive keyboard focus",landmark:"Use appropriate landmark roles","heading-order":"Maintain proper heading hierarchy","color-contrast":"Ensure sufficient color contrast","keyboard-nav":"Make sure element is keyboard navigable","screen-reader":"Optimize for screen reader users"}[$]||"Make this element accessible";return`<!-- a11y-hint: ${W||Y} -->${q}`},hasEndTag:!1},iJ={name:"screenReader",handler:(q)=>{return`<span class="sr-only">${q}</span>`},hasEndTag:!0};function sQ(){return[sJ,iJ]}
60
- export{Pq as nr,Lq as or,bq as pr,Cq as qr,Jq as rr,yq as sr,j as tr,g as ur,vq as vr,E as wr,oJ as xr,gq as yr,L as zr,fq as Ar,b as Br,A as Cr,Zq as Dr,$q as Er,Xq as Fr,Wq as Gr,Yq as Hr,f as Ir,C as Jr,cq as Kr,lq as Lr,sq as Mr,iq as Nr,rq as Or,h as Pr,nq as Qr,oq as Rr,d as Sr,y as Tr,tq as Ur,eq as Vr,qJ as Wr,Bq as Xr,Mq as Yr,HJ as Zr,OQ as _r,m as $r,jQ as as,_J as bs,FJ as cs,DQ as ds,r as es,RQ as fs,TQ as gs,EQ as hs,kQ as is,SQ as js,wJ as ks,PQ as ls,x as ms,KJ as ns,LQ as os,bQ as ps,CQ as qs,yQ as rs,AJ as ss,RJ as ts,gJ as us,i as vs,o as ws,vQ as xs,xQ as ys,gQ as zs,Aq as As,S as Bs,pQ as Cs,mQ as Ds,hJ as Es,uJ as Fs,dJ as Gs,pJ as Hs,cQ as Is,cJ as Js,lJ as Ks,lQ as Ls,sJ as Ms,iJ as Ns,sQ as Os};
60
+ export{Pq as or,Lq as pr,bq as qr,Cq as rr,Jq as sr,yq as tr,j as ur,g as vr,vq as wr,E as xr,oJ as yr,gq as zr,L as Ar,fq as Br,b as Cr,A as Dr,Zq as Er,$q as Fr,Xq as Gr,Wq as Hr,Yq as Ir,f as Jr,C as Kr,cq as Lr,lq as Mr,sq as Nr,iq as Or,rq as Pr,h as Qr,nq as Rr,oq as Sr,d as Tr,y as Ur,tq as Vr,eq as Wr,qJ as Xr,Bq as Yr,Mq as Zr,HJ as _r,OQ as $r,m as as,jQ as bs,_J as cs,FJ as ds,DQ as es,r as fs,RQ as gs,TQ as hs,EQ as is,kQ as js,SQ as ks,wJ as ls,PQ as ms,x as ns,KJ as os,LQ as ps,bQ as qs,CQ as rs,yQ as ss,AJ as ts,RJ as us,gJ as vs,i as ws,o as xs,vQ as ys,xQ as zs,gQ as As,Aq as Bs,S as Cs,pQ as Ds,mQ as Es,hJ as Fs,uJ as Gs,dJ as Hs,pJ as Is,cQ as Js,cJ as Ks,lJ as Ls,lQ as Ms,sJ as Ns,iJ as Os,sQ as Ps};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Zs as a,_s as b}from"./chunk-vg8yh8te.js";import"./chunk-vwqv8f0y.js";export{b as resolveStxTargets,a as looksLikeGlob};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  var K={},Y=[],O={};function I(){return K}function h(){return O}function D(){K={},Y.length=0,O={}}function U(j){K=Q(K,j)}function Q(j,z){return{title:z.title??j.title,titleTemplate:z.titleTemplate??j.titleTemplate,base:z.base??j.base,meta:[...j.meta||[],...z.meta||[]],link:[...j.link||[],...z.link||[]],script:[...j.script||[],...z.script||[]],style:[...j.style||[],...z.style||[]],htmlAttrs:{...j.htmlAttrs,...z.htmlAttrs},bodyAttrs:{...j.bodyAttrs,...z.bodyAttrs}}}function Z(j){U(_(j))}function _(j){let z=[];if(j.description)z.push({name:"description",content:j.description});if(j.keywords){let L=Array.isArray(j.keywords)?j.keywords.join(", "):j.keywords;z.push({name:"keywords",content:L})}if(j.author)z.push({name:"author",content:j.author});if(j.robots)z.push({name:"robots",content:j.robots});let A=j.ogTitle??j.title,B=j.ogDescription??j.description;if(A)z.push({property:"og:title",content:A});if(B)z.push({property:"og:description",content:B});if(j.ogImage)z.push({property:"og:image",content:j.ogImage});if(j.ogUrl)z.push({property:"og:url",content:j.ogUrl});if(j.ogType)z.push({property:"og:type",content:j.ogType});if(j.ogSiteName)z.push({property:"og:site_name",content:j.ogSiteName});if(j.ogLocale)z.push({property:"og:locale",content:j.ogLocale});let E=j.twitterTitle??j.title,F=j.twitterDescription??j.description,J=j.twitterImage??j.ogImage;if(j.twitterCard)z.push({name:"twitter:card",content:j.twitterCard});if(E)z.push({name:"twitter:title",content:E});if(F)z.push({name:"twitter:description",content:F});if(J)z.push({name:"twitter:image",content:J});if(j.twitterSite)z.push({name:"twitter:site",content:j.twitterSite});if(j.twitterCreator)z.push({name:"twitter:creator",content:j.twitterCreator});if(j.articleAuthor)z.push({property:"article:author",content:j.articleAuthor});if(j.articlePublishedTime)z.push({property:"article:published_time",content:j.articlePublishedTime});if(j.articleModifiedTime)z.push({property:"article:modified_time",content:j.articleModifiedTime});if(j.articleSection)z.push({property:"article:section",content:j.articleSection});if(j.articleTags)for(let L of j.articleTags)z.push({property:"article:tag",content:L});let G=[];if(j.canonical)G.push({rel:"canonical",href:j.canonical});return{title:j.title,titleTemplate:j.titleTemplate,meta:z,link:G}}function S(j){if(O={...O,...j},j.title||j.description)Z({title:j.title,description:j.description})}function P(j){let z=typeof j==="function"?j():j;U({title:z})}function C(j=K){let z=[];if(j.title){let A=j.title;if(j.titleTemplate)A=typeof j.titleTemplate==="function"?j.titleTemplate(A):j.titleTemplate.replace("%s",A);z.push(`<title>${N(A)}</title>`)}if(j.base){let A=Object.entries(j.base).map(([B,E])=>`${B}="${N(E)}"`).join(" ");z.push(`<base ${A}>`)}for(let A of j.meta||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>{return`${E==="httpEquiv"?"http-equiv":E}="${N(String(F))}"`}).join(" ");z.push(`<meta ${B}>`)}for(let A of j.link||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>`${E}="${N(String(F))}"`).join(" ");z.push(`<link ${B}>`)}for(let A of j.script||[]){let{content:B,...E}=A,F=Object.entries(E).filter(([J,G])=>G!==void 0).map(([J,G])=>{if(typeof G==="boolean")return G?J:"";return`${J}="${N(String(G))}"`}).filter(Boolean).join(" ");if(B)z.push(`<script ${F}>${B}</script>`);else z.push(`<script ${F}></script>`)}for(let A of j.style||[]){let B=A.type?` type="${A.type}"`:"";z.push(`<style${B}>${A.content}</style>`)}return z.join(`
3
3
  `)}function M(j=K){if(!j.htmlAttrs)return"";return Object.entries(j.htmlAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function V(j=K){if(!j.bodyAttrs)return"";return Object.entries(j.bodyAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function N(j){return j.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function w(j=K){if(typeof document>"u")return;if(j.title){let z=j.title;if(j.titleTemplate)z=typeof j.titleTemplate==="function"?j.titleTemplate(z):j.titleTemplate.replace("%s",z);document.title=z}for(let z of j.meta||[]){let A=z.name?`meta[name="${z.name}"]`:z.property?`meta[property="${z.property}"]`:null;if(A){let B=document.querySelector(A);if(!B){if(B=document.createElement("meta"),z.name)B.setAttribute("name",z.name);if(z.property)B.setAttribute("property",z.property);document.head.appendChild(B)}B.setAttribute("content",z.content)}}for(let z of j.link||[]){let A=`link[rel="${z.rel}"]${z.href?`[href="${z.href}"]`:""}`,B=document.querySelector(A);if(!B)B=document.createElement("link"),document.head.appendChild(B);for(let[E,F]of Object.entries(z))if(F!==void 0)B.setAttribute(E,String(F))}if(j.htmlAttrs)for(let[z,A]of Object.entries(j.htmlAttrs))if(z==="class")for(let B of String(A).split(/\s+/).filter(Boolean))document.documentElement.classList.add(B);else document.documentElement.setAttribute(z,A);if(j.bodyAttrs)for(let[z,A]of Object.entries(j.bodyAttrs))document.body.setAttribute(z,A)}function y(j){let z="";return{content:j.replace(/@head\s*([\s\S]*?)@endhead/g,(B,E)=>{return z+=E.trim()+`
4
- `,""}),headContent:z.trim()}}function x(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let J=B?E:z[(F||"").trim()]??F,G=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(G,{title:J}),""})}function T(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,J,G)=>{let L=F?J:G,R=F?L:z[(L||"").trim()]??L,W=E.includes(":")?{property:E,content:R}:{name:E,content:R},X=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(X,{meta:[W]}),""})}export{I as Ht,h as It,D as Jt,U as Kt,Q as Lt,Z as Mt,_ as Nt,S as Ot,P as Pt,C as Qt,M as Rt,V as St,w as Tt,y as Ut,x as Vt,T as Wt};
4
+ `,""}),headContent:z.trim()}}function x(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let J=B?E:z[(F||"").trim()]??F,G=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(G,{title:J}),""})}function T(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,J,G)=>{let L=F?J:G,R=F?L:z[(L||"").trim()]??L,W=E.includes(":")?{property:E,content:R}:{name:E,content:R},X=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(X,{meta:[W]}),""})}export{I as It,h as Jt,D as Kt,U as Lt,Q as Mt,Z as Nt,_ as Ot,S as Pt,P as Qt,C as Rt,M as St,V as Tt,w as Ut,y as Vt,x as Wt,T as Xt};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{gr as E}from"./chunk-tjverybm.js";import{mv as D}from"./chunk-24j0qx2z.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-bnw4dyp3.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
2
+ import{hr as E}from"./chunk-6z04mpxz.js";import{nv as D}from"./chunk-vwqv8f0y.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-pwyjrwrc.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
3
3
  export{M as Mg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as wl,$a as qn,$b as Io,$c as Ip,$d as Iq,A as gk,Aa as Am,Ab as ao,Ac as hp,Ad as hq,Ae as nr,B as hk,Ba as Bm,Bb as bo,Bc as ip,Bd as iq,Be as or,C as ik,Ca as Om,Cb as co,Cc as jp,Cd as jq,Ce as pr,D as jk,Da as Pm,Db as eo,Dc as kp,Dd as kq,De as qr,E as $k,Ea as Qm,Eb as fo,Ec as lp,Ed as lq,Ee as rr,F as al,Fa as Rm,Fb as go,Fc as mp,Fd as mq,Fe as sr,G as bl,Ga as Sm,Gb as ho,Gc as np,Gd as nq,Ge as tr,H as cl,Ha as Tm,Hb as io,Hc as op,Hd as oq,He as ur,I as dl,Ia as Xm,Ib as jo,Ic as pp,Id as pq,Ie as vr,J as el,Ja as Ym,Jb as ko,Jc as qp,Jd as qq,Je as wr,K as fl,Ka as Zm,Kb as lo,Kc as rp,Kd as rq,Ke as xr,L as gl,La as _m,Lb as mo,Lc as sp,Ld as sq,Le as yr,M as hl,Ma as $m,Mb as to,Mc as tp,Md as tq,Me as zr,N as il,Na as an,Nb as uo,Nc as up,Nd as uq,Ne as Ar,O as jl,Oa as bn,Ob as vo,Oc as vp,Od as vq,Oe as Br,P as kl,Pa as cn,Pb as wo,Pc as wp,Pd as wq,Pe as Cr,Q as ll,Qa as dn,Qb as xo,Qc as xp,Qd as xq,Qe as Dr,R as ml,Ra as en,Rb as yo,Rc as yp,Rd as yq,Re as Er,S as nl,Sa as fn,Sb as zo,Sc as zp,Sd as zq,Se as Fr,T as ol,Ta as gn,Tb as Ao,Tc as Ap,Td as Aq,Te as Gr,U as pl,Ua as hn,Ub as Bo,Uc as Bp,Ud as Bq,Ue as Hr,V as ql,Va as jn,Vb as Co,Vc as Cp,Vd as Cq,Ve as Ir,W as rl,Wa as ln,Wb as Do,Wc as Dp,Wd as Dq,We as Jr,X as sl,Xa as mn,Xb as Eo,Xc as Ep,Xd as Eq,Y as tl,Ya as nn,Yb as Fo,Yc as Fp,Yd as Fq,Z as ul,Za as on,Zb as Go,Zc as Gp,Zd as Gq,_ as vl,_a as pn,_b as Ho,_c as Hp,_d as Hq,aa as xl,ab as rn,ac as Jo,ad as Jp,ae as Jq,ba as yl,bb as sn,bc as Ko,bd as Kp,be as Kq,ca as zl,cb as tn,cc as Lo,cd as Lp,ce as Lq,da as Al,db as un,dc as Mo,dd as Mp,de as Mq,ea as Bl,eb as vn,ec as No,ed as Np,ee as Nq,fa as Cl,fb as wn,fc as Oo,fd as Op,fe as Oq,ga as Dl,gb as xn,gc as Po,gd as Pp,ge as Pq,ha as El,hb as yn,hc as Qo,hd as Qp,he as Qq,ia as Fl,ib as zn,ic as Ro,id as Rp,ie as Rq,ja as Gl,jb as An,jc as So,jd as Sp,je as Sq,ka as Hl,kb as Bn,kc as To,kd as Tp,ke as Tq,la as Il,lb as Cn,lc as Uo,ld as Up,le as Uq,ma as Jl,mb as Dn,mc as Vo,md as Vp,me as Vq,na as Kl,nb as Gn,nc as Wo,nd as Wp,ne as ar,o as a,oa as Ll,ob as Hn,oc as Xo,od as Xp,oe as br,p as Tj,pa as pm,pb as In,pc as Yo,pd as Yp,pe as cr,q as Uj,qa as qm,qb as Jn,qc as Zo,qd as Zp,qe as dr,r as Vj,ra as rm,rb as Pn,rc as _o,rd as _p,re as er,s as Wj,sa as sm,sb as Qn,sc as $o,sd as $p,se as fr,t as Xj,ta as tm,tb as Rn,tc as ap,td as aq,te as gr,u as Yj,ua as um,ub as Sn,uc as bp,ud as bq,ue as hr,v as Zj,va as vm,vb as Xn,vc as cp,vd as cq,ve as ir,w as _j,wa as wm,wb as Yn,wc as dp,wd as dq,we as jr,x as $j,xa as xm,xb as Zn,xc as ep,xd as eq,xe as kr,y as ek,ya as ym,yb as _n,yc as fp,yd as fq,ye as lr,z as fk,za as zm,zb as $n,zc as gp,zd as gq,ze as mr}from"./chunk-hh1knan6.js";import{Xe as Kn}from"./chunk-weny2sns.js";import{$e as kn,Ye as Um,Ze as Vm,_e as Wm,af as Ln,bf as Mn,cf as Nn,df as On,ef as Tn,ff as Un,gf as Vn,hf as Wn}from"./chunk-9mzj4q5k.js";import{if as kk,jf as lk,kf as mk,lf as nk,mf as ok,nf as pk,of as qk,pf as rk,qf as sk,rf as tk,sf as uk,tf as vk,uf as wk,vf as xk,wf as yk}from"./chunk-ps20v1ah.js";import{Af as Sk,Bf as Tk,Cf as Uk,Df as Vk,Ef as Wk,Ff as Xk,Gf as Yk,Hf as Zk,If as _k,xf as Pk,yf as Qk,zf as Rk}from"./chunk-kxjh5mc2.js";import{Jf as no,Kf as oo,Lf as po,Mf as qo,Nf as ro,Of as so}from"./chunk-6x87aw24.js";import{Pf as En,Qf as Fn}from"./chunk-mjpqz66q.js";import{Rf as dm,Sf as em,Tf as fm,Uf as gm,Vf as jm,Wf as nm}from"./chunk-2bpa6n7s.js";import{$f as Ql,Xf as Ml,Yf as Nl,Zf as Ol,_f as Pl,ag as Rl,bg as Sl,cg as Tl,dg as Ul,eg as Vl,fg as Wl,gg as Xl,hg as Yl,ig as Zl,jg as _l,kg as km,lg as lm,mg as mm}from"./chunk-d2rhtvxx.js";import{ng as hm,qg as im}from"./chunk-bcgywywg.js";import{Ag as Em,Bg as Fm,Cg as Gm,Dg as Hm,Eg as Im,Fg as Jm,Gg as Km,Hg as Lm,Ig as Mm,Jg as Nm,yg as Cm,zg as Dm}from"./chunk-8bxtvsgm.js";import{Kg as Nk,Lg as Ok}from"./chunk-j83cstqe.js";import{Mg as om}from"./chunk-nk11g9k5.js";import{Ng as Dh,Og as Eh,Pg as Fh,Qg as Gh,Rg as Hh,Sg as Ih}from"./chunk-cvw9brjj.js";import{$g as aj,Tg as Xi,Ug as Yi,Vg as Zi,Zg as _i,_g as $i}from"./chunk-prt5da17.js";import{ah as gj,bh as hj,ch as ij,dh as jj,eh as kj,fh as lj,gh as mj,hh as nj,ih as oj,jh as pj,kh as qj}from"./chunk-h5898m09.js";import{lh as Ni,mh as Oi,nh as Pi,oh as Qi,ph as Ri,rh as Si,sh as Ti,th as Ui,uh as Vi,vh as Wi}from"./chunk-k78gvm0g.js";import{wh as Ij,yh as Jj}from"./chunk-hmf9z4jx.js";import{Eh as zk,Fh as Ak,Gh as Bk,Hh as Ck,Ih as Dk,Jh as Ek,Kh as Fk,Mh as Gk,Nh as Hk,Oh as Ik,Ph as Jk,Qh as Kk,Rh as Lk,Uh as Mk}from"./chunk-8cdfsgjb.js";import{$h as kh,Vh as eh,Wh as fh,Xh as gh,Yh as hh,Zh as ih,_h as jh,ai as lh,bi as mh,ci as nh,di as oh,ei as ph,fi as qh,gi as rh}from"./chunk-mywp77gt.js";import{ii as sh,ji as th,ki as uh,li as vh}from"./chunk-nmkra8q5.js";import{qi as wh}from"./chunk-k0y7ta0d.js";import{ri as Ag}from"./chunk-a668m28h.js";import{si as Bg,ti as Cg}from"./chunk-ynt7y2n5.js";import{ui as Dg,vi as Eg,wi as Fg,xi as Gg,yi as Hg,zi as Ig}from"./chunk-wvq1g6gr.js";import{Ai as Jg,Bi as Kg,Ci as Lg,Di as Mg,Ei as Ng}from"./chunk-wyxw61az.js";import{Fi as Og,Gi as Pg,Hi as Qg,Ii as Rg,Ji as Sg}from"./chunk-k70fgb2f.js";import{Ki as Tg,Li as Ug,Mi as Vg,Ni as Wg,Oi as Xg,Pi as Yg,Qi as Zg}from"./chunk-4vpsvh6x.js";import{Ri as _g,Si as $g,Ti as ah,Ui as bh,Vi as ch,Wi as dh}from"./chunk-jem20v5k.js";import{Yi as xg,Zi as yg}from"./chunk-rbabq8ds.js";import{aj as zg}from"./chunk-p9wkzh0k.js";import"./chunk-efr3ejqt.js";import{ej as ue,fj as ve,gj as we,hj as xe,ij as ye,jj as ze,kj as Ae,lj as Be,mj as Ce,nj as De,oj as Ee,pj as Fe,qj as Ge,rj as He}from"./chunk-hx6y0qqy.js";import{sj as Ye,tj as Ze}from"./chunk-85xj7cgm.js";import{Aj as Ke,Bj as Le,Cj as Me,Dj as Ne,Ej as Oe,Fj as Pe,Gj as Qe,Hj as Re,Ij as Se,Jj as Te,Kj as Ue,Lj as Ve,Mj as We,Nj as Xe}from"./chunk-fed3xsp9.js";import{Oj as _e,Pj as $e,Qj as af,Rj as bf,Sj as cf,Tj as df,Uj as ef,Vj as ff,Wj as gf,Xj as hf,Yj as jf,Zj as kf}from"./chunk-h1tkqfym.js";import{rk as Wq,sk as Xq,tk as Yq,uk as Zq,vk as _q,wk as $q}from"./chunk-tweb2f3m.js";import{Ak as dk,Bk as $l,Ck as am,Dk as bm,Ek as cm,xk as ak,yk as bk,zk as ck}from"./chunk-cjhwpp4c.js";import"./chunk-xtx53xyz.js";import"./chunk-9rgwpt1m.js";import{$l as ac,$m as dd,$o as Pf,$p as Vh,$q as Dj,Al as Ka,Am as Fc,An as Ed,Ao as of,Ap as og,Aq as Di,Bl as La,Bm as Gc,Bn as Fd,Bo as pf,Bp as pg,Bq as Ei,Cl as Ma,Cm as Hc,Cn as Gd,Co as qf,Cp as qg,Cq as Fi,Dl as Na,Dm as Ic,Dn as Hd,Do as rf,Dp as rg,Dq as Gi,El as Oa,Em as Jc,En as Yd,Eo as sf,Ep as sg,Eq as Hi,Fl as ib,Fm as Kc,Fn as Zd,Fo as tf,Fp as tg,Fq as Ii,Gl as jb,Gm as Lc,Gn as _d,Go as uf,Gp as ug,Gq as Ji,Hl as kb,Hn as $d,Ho as vf,Hp as vg,Hq as Ki,Il as lb,Im as Mc,In as ae,Io as wf,Ip as wg,Iq as Li,Jl as mb,Jm as Nc,Jn as be,Jo as xf,Jp as xh,Jq as Mi,Kl as nb,Km as Oc,Kn as ce,Ko as yf,Kp as yh,Kq as bj,Lm as Pc,Ln as de,Lo as zf,Lp as zh,Lq as cj,Mm as Qc,Mn as ee,Mo as Af,Mp as Ah,Mq as dj,Nl as Fb,Nm as Rc,Nn as fe,No as Bf,Np as Bh,Nq as ej,Ol as Gb,Om as Sc,On as ge,Oo as Cf,Op as Ch,Oq as fj,Pl as Hb,Pm as Tc,Pn as he,Po as Df,Pp as Jh,Pq as rj,Ql as Ib,Qm as Uc,Qn as ie,Qo as Ef,Qp as Kh,Qq as sj,Rl as Jb,Rm as Vc,Rn as je,Ro as Ff,Rp as Lh,Rq as tj,Sl as Nb,Sm as Wc,So as Gf,Sp as Mh,Sq as uj,Tl as Ob,Tm as Xc,Tn as ne,To as Hf,Tp as Nh,Tq as vj,Ul as Pb,Um as Yc,Un as oe,Uo as If,Up as Oh,Uq as wj,Vl as Wb,Vm as Zc,Vn as pe,Vo as Jf,Vp as Ph,Vq as xj,Wl as Xb,Wm as _c,Wn as qe,Wo as Kf,Wp as Qh,Wq as yj,Xl as Yb,Xm as $c,Xn as re,Xo as Lf,Xp as Rh,Xq as zj,Yl as Zb,Ym as ad,Yn as se,Yo as Mf,Yp as Sh,Yq as Aj,Zl as _b,Zm as bd,Zn as te,Zo as Nf,Zp as Th,Zq as Bj,_l as $b,_m as cd,_o as Of,_p as Uh,_q as Cj,am as bc,an as ed,ap as Qf,aq as Wh,ar as Ej,bm as cc,bn as fd,bo as Ie,bp as Rf,bq as Xh,br as Fj,cm as dc,cn as gd,co as Je,cp as Sf,cq as Yh,cr as Gj,dm as ec,dn as hd,dp as Tf,dq as Zh,dr as Hj,em as fc,en as id,eo as lf,ep as Uf,eq as hi,er as Kj,fm as gc,fn as jd,fp as Vf,fq as ii,fr as Lj,gm as hc,gn as kd,gp as Wf,gq as ji,gr as Mj,hm as ic,hn as ld,hp as Xf,hq as ki,hr as Nj,im as jc,in as md,ip as Yf,iq as li,ir as Oj,jn as nd,jp as Zf,jq as mi,jr as Pj,kn as od,kp as _f,kq as ni,kr as Qj,lm as kc,ln as pd,lp as $f,lq as oi,lr as Rj,mm as lc,mn as qd,mp as ag,mq as pi,mr as Sj,nl as xa,nm as mc,nn as rd,np as bg,nq as qi,ol as ya,om as nc,on as sd,op as cg,oq as ri,pl as za,pm as oc,pn as td,pp as dg,pq as si,ql as Aa,qm as pc,qn as ud,qp as eg,qq as ti,rl as Ba,rm as qc,rn as vd,rp as fg,rq as ui,sl as Ca,sm as rc,sn as wd,sp as gg,sq as vi,tl as Da,tm as sc,tn as xd,tp as hg,tq as wi,ul as Ea,um as tc,un as yd,up as ig,uq as xi,vl as Fa,vm as uc,vn as zd,vp as jg,vq as yi,wl as Ga,wm as vc,wn as Ad,wo as mf,wp as kg,wq as zi,xl as Ha,xm as wc,xn as Bd,xp as lg,xq as Ai,yl as Ia,ym as xc,yn as Cd,yo as nf,yp as mg,yq as Bi,zl as Ja,zm as yc,zn as Dd,zp as ng,zq as Ci}from"./chunk-tjverybm.js";import{Ar as o,As as ia,Br as p,Bs as ja,Cr as q,Cs as ka,Dr as r,Ds as la,Er as s,Es as ma,Fr as t,Fs as na,Gr as u,Gs as oa,Hr as v,Hs as pa,Ir as w,Is as qa,Jr as x,Js as ra,Kr as y,Ks as sa,Lr as z,Ls as ta,Mr as A,Ms as ua,Nr as B,Ns as va,Or as C,Os as wa,Pr as D,Qr as E,Rr as F,Sr as G,Tr as H,Ur as I,Vr as J,Wr as K,Xr as L,es as M,fs as N,gs as O,hs as P,is as Q,js as R,ks as S,ls as T,ms as U,nr as b,ns as V,or as c,os as W,pr as d,ps as X,qr as e,qs as Y,rr as f,rs as Z,sr as g,ss as _,tr as h,ts as $,ur as i,us as aa,vr as j,vs as ba,wr as k,ws as ca,xr as l,xs as da,yr as m,ys as ea,zr as n,zs as fa}from"./chunk-5g1amf33.js";import{Ps as _h,Qs as $h,Rs as ai,Ss as bi,Ts as ci,Us as di,Vs as ei,Ws as fi,Xs as gi}from"./chunk-0btmm4m2.js";import{Ys as ga,Zs as ha}from"./chunk-6w76w8tt.js";import{$s as Lb,_s as Kb,at as Mb}from"./chunk-7sdvaras.js";import{bt as ke,ct as le,dt as me}from"./chunk-caf2cj4f.js";import{At as Ec,mt as zc,nt as Ac,pt as Bc,yt as Cc,zt as Dc}from"./chunk-br48y7q9.js";import{Bt as Qb,Ct as Rb,Dt as Sb,Et as Tb,Ft as Ub,Gt as Vb}from"./chunk-ja39jznm.js";import{Ht as Id,It as Jd,Jt as Kd,Kt as Ld,Lt as Md,Mt as Nd,Nt as Od,Ot as Pd,Pt as Qd,Qt as Rd,Rt as Sd,St as Td,Tt as Ud,Ut as Vd,Vt as Wd,Wt as Xd}from"./chunk-9s0ax53m.js";import"./chunk-b16crvqg.js";import"./chunk-wxgkq79w.js";import{au as ob,bu as pb,cu as qb,du as rb,eu as sb,fu as tb,gu as ub,hu as vb,iu as wb,ju as xb,ku as yb,lu as zb,mu as Ab,nu as Bb,ou as Cb,pu as Db,qu as Eb}from"./chunk-359ps7j5.js";import{Du as Sa,Eu as Ta,Ku as Ua,Lu as Va,Mu as Wa,Nu as Xa,Ou as Ya,Pu as Za,Qu as _a,Ru as $a,Su as ab,Tu as bb,Uu as cb,Vu as db,Wu as eb,Xu as fb,Yu as gb,_u as hb,uu as Pa,vu as Qa,yu as Ra}from"./chunk-64d20kkv.js";import"./chunk-vkc53tv3.js";import"./chunk-24j0qx2z.js";export{uk as writeNetlifyConfig,lm as writeManifest,Zk as writeImageManifest,Co as wrapComponentForHMR,wr as withDefaults,Hj as webComponentDirectiveHandler,rp as watermark,tq as watchViews,hl as watchMultiple,il as watchEffect,gl as watch,re as warmImagePlaceholders,vl as waitForStore,X as waitForLocale,oo as virtualPathFor,uj as videoDirective,G as validators,Ar as validated,he as validateValueEnhanced,yh as validateTemplate,wp as validateParams,ie as validateFormEnhanced,iq as validateFile,de as validateFields,ce as validateField,Ah as validateDirective,Cd as validateCspDirectives,Pj as validateConfig,qm as validateComponentScripts,Om as validateComponentProps,wg as validateClientScript,vh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Nh as userComponentFileExists,bh as useVirtualList,Qd as useTitle,ul as useStoreOrThrow,Uo as useStore,ek as useStorage,Eq as useSlots,gk as useSessionStorage,Nd as useSeoMeta,wl as useRouteParams,yl as useRouteParamOrThrow,xl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,Al as useMiddlewareValue,zl as useMiddlewareState,fk as useLocalStorage,vo as useLoadingIndicator,Ld as useHead,sh as useForm,Gq as useAttrs,kq as uploadFiles,jq as uploadFile,rl as updateInstance,Ve as untrack,bi as unregisterDirective,sl as unmountInstance,yc as unescapeHtml,ro as typecheckStxFiles,Mh as transpileTypeScript,jr as translate,Ba as transitionDirective,_b as transformAutoImports,Im as toUsers,Hm as toUser,ap as thumbnail,bq as thumbHashToRGBA,cq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,zo as stxClientHelpers,Gf as structuredDataDirective,mr as stripLocalePrefix,Yl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,un as stringToStream,qd as strictCspPreset,Ce as streamingSuspenseDirective,Ge as streamToResponse,Ae as streamTemplateSimple,ue as streamTemplate,$j as stopHmrServer,Em as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,qg as startsDocument,Wn as startProductionServer,Kn as startInteractive,Dm as startBroadcasting,or as stampLocaleLayoutGroup,Ia as staggerDirective,up as srcsetUrls,Ja as springDirective,$c as splitByPipe,Ul as spaNavVaryHeaders,po as sourcePathFor,Bp as smartBatchSign,Ph as slotContentHasExpressions,zp as signUrl,Kh as shouldTranspileTypeScript,Yj as shouldReloadOnChange,Ep as shouldRefreshSignature,Zj as shouldIgnoreFile,Vg as shouldCacheComponent,ep as sharpen,Dr as shape,Sb as setStateDir,El as setRouteParams,Fl as setMiddlewareState,qe as setImagePlaceholder,yq as setGlobalProvide,b as setErrorLocale,$k as setCurrentInstance,ij as setCachedVideoResult,Zi as setCachedImageResult,Ti as setCached,Gr as serveStxFile,Ir as serveMultipleStxFiles,Tj as serveMarkdownFile,fo as serveFile,Jr as serveApp,eo as serve,Fo as serializeState,kn as serializeSetCookie,gp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,yj as scopeHTML,xj as scopeCSS,Jf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,kp as saturation,xp 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,zf as runPreProcessingMiddleware,Af as runPostProcessingMiddleware,Nn as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,pl as runHooks,cr as runDoctor,Re as runDestroyCallbacks,Of as runComposers,lp as rotate,wh as rewriteImagesWithSiblings,Vc as responseBindings,Th as resolveTemplatePath,ha as resolveStxTargets,Lj as resolveStxDirectories,ir as resolveI18n,_o as resize,ec as resetPlaceholders,Kd as resetHead,Eo as resetHMRHandler,o as resetErrorConfig,yr as required,ic as replacePlaceholders,rq as renderView,rj as renderVideoComponent,Xb as renderVendorStyleTags,Nq as renderToString,Oq as renderToStream,Pq as renderToDOM,aq as renderThumbhashToCanvas,$q as renderTemplateString,Zq as renderTemplate,_q as renderString,xe as renderStreamingPage,Fh as renderSlot,Lg as renderSSRSuspense,Mp as renderProtectedVideo,Lp as renderProtectedImg,yp as renderMediaUpload,Yq as renderMarkdownView,bm as renderLayoutTypes,bj as renderImgComponent,Pk as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,uq as renderEmail,Rh as renderComponentWithSlot,Td as renderBodyAttrs,Po as render,sd as relaxedCspPreset,be as registerValidationRule,Ee as registerStreamingDirectives,Wo as registerStoresClient,Cl as registerStore,Hf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,_h as registerDirective,Bd as registerCspDirectives,Rm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,dl as ref,Cn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Rj as readMarkdownFile,$e as readFileCached,el as reactive,pp as quality,Jp as pruneSignatureCache,Wi as pruneCache,wq as provide,Xq as protectCodeBlocks,xr as prop,Rf as processVueTemplate,$g as processVirtualListDirectives,dh as processVirtualGridDirectives,qj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Fg as processTransitionDirectives,Ig as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Bg as processTeleportDirectives,Jg as processSuspenseDirectives,Cf as processStructuredData,ye as processStreamDirectives,Wc as processStatusDirective,qh as processStaticDirectives,xf as processStackReplacements,wf as processStackPushDirectives,Gh as processSlots,Wl as processShell,te as processServerBindings,Df as processSeoDirective,Fe as processSectionDirectives,Uf as processScopedStyles,Gc as processReactiveBindings,Np as processProtectedMedia,jh as processPartialHydrationDirectives,vg as processOnceDirective,yf as processMiddleware,Bf as processMetaDirectives,Xd as processMetaDirective,Sj as processMarkdownFileDirectives,Yh as processMarkdownDirectives,rf as processLoops,Tg as processKeepAliveDirectives,ug as processJsonDirective,ch as processInfiniteListDirectives,vf as processIncludes,dj as processImgComponents,Rk as processImageComponents,Ek as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Sf as processDynamicComponents,xh as processDirectives,gi as processDirectiveAttributes,Ag as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Er as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Og as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,me as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,uo as preloadIslandHandlers,se as preloadIconCollection,zm as poolStrings,Jj as pluginManager,oe as placeholdersWarmed,Eg as performLeave,Dg as performEnter,Se as pendingLifecycleCounts,We as peek,sf as partialsCache,sj as parseVideoDirectiveOptions,Yo as parseUrl,dq as parseThumbhashString,fd as parseSwitchBlock,Dh as parseSlots,Eh as parseSlotElement,kd as parseScriptDeclarations,Fj as parseSFCComponent,Op as parseProtectedArgs,qf as parseLoopBinding,cj as parseImgComponent,ui as parseImageUrl,Qk as parseImageComponent,Ln as parseFormBody,hd as parseExpressionWithFilters,Sm as parseDefaults,zn as parseCookies,Ol as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,zr as optional,Am as optimizeTemplate,Wk as optimizeImage,Xk as optimizeDirectory,Br as oneOf,tf as onceStore,ml as onUpdated,Fc as onUpdate,ol as onUnmounted,Jl as onServer,kl as onMounted,Oe as onMount,ph as onHydrated,Cq as onErrorCaptured,Pe as onDestroy,Zg as onDeactivated,Il as onClient,ll as onBeforeUpdate,nl as onBeforeUnmount,jl as onBeforeMount,Yg as onActivated,Yp as observeElement,Dn as notFound,Zf as normalizeCriticalHeadOrder,Bq as nextTick,Vm as negotiateEncoding,Ua as navigateTo,ql as mountInstance,Ea as motionDirective,rd as moderateCspPreset,ym as minifyHtml,Ff as metaDirective,ig as metaDedupKey,Zo as mergeParams,kg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Zh as markdownDirectiveHandler,Qj as markdownCache,ga as looksLikeGlob,lr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Mj as loadStxConfig,db as loadMiddlewareFromDirectory,mm as loadManifest,Up as loadElement,Fm as loadChannels,sr as lintStxStrict,Wp as lazyLoadAll,Vp as lazyLoad,Ha as keyframeDirective,Lq as jsxs,Mq as jsxDEV,Kq as jsx,Bn as jsonResponse,De as islandDirective,l as isTest,Zl as isSpaNavigation,Sl as isSpaNavRequest,Cp as isSignatureValid,Te as isSignal,Ck as isSharpAvailable,nn as isServerEnvironment,Gl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Rp as isNativeLazySupported,Wq as isMarkdownPath,Q as isLoading,R as isLoaded,Jh as isJavaScriptScript,Sp as isIntersectionObserverSupported,Kk as isImageFile,Dk as isImageBackendAvailable,aa as isICUFormat,oh as isHydrated,Oh as isHydrateTrigger,Oc as isHttpStatus,mn as isEdgeEnvironment,tr as isDirectiveKind,k as isDevelopment,Ue as isDerived,Xj as isCssOnlyChange,Um as isCompressible,Hl as isClient,Qg as isAsyncComponent,Mn as isActionableMethod,hp as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,hr as injectThemeBootstrap,Ef as injectSeoTags,er as injectSeo,lf as injectRouterScript,Wj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,sg as injectConfigHeadTags,Yf as injectColorModeBootScript,mg as injectCloakStyle,dg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,xq as inject,Bl as initStoreRegistry,xk as initNetlify,wo as initLoadingIndicator,Tp as initLazyLoading,Jn as initFile,$p as initBlurUp,fq as initAllBlurUp,fj as imgDirective,Uk as imageDirective,Un as hydrateTemplateStream,Tn as hydrateTemplate,to as hydrateIslands,lh as hydrateIsland,Vn as hydrateFragment,mh as hydrateByStrategy,nh as hydrateAll,Mo as hydrate,co as htmlResponse,og as hoistLeadingHeadTags,_f as hoistColorModeBootScript,lb as heatmapDirective,Pi as hashString,kf as hashFilePath,Ni as hashFile,Oi as hashBuffer,Qf as hasVueTemplateSyntax,pf as hasVariables,Ro as hasStore,jc as hasPlaceholders,vk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,rg as hasDocumentShell,Bh as hasDirectives,ma as hasDOMSupport,Nk as handleImageRequest,Dq as handleError,Tq as h,Jk as groupVariantsByFormat,fp as grayscale,Xn as gitHash,sm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,qk as getTotalSize,Dp as getTimeUntilExpiry,xg as getStoreScript,So as getStoreNames,Qo as getStore,jk as getStorageSize,ik as getStorageKeys,Uh as getSourceLineInfo,Lh as getSharedTranspiler,ff as getServeClientAsset,la as getScreenReaderOnlyStyle,zj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,zh as getPositionInfo,gc as getPlaceholderRegistry,Mi as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Lk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ne as getImagePlaceholder,Fk as getImageMetadata,ke as getImageDelivery,Lo as getHydrationRuntime,Dl as getHydratedStoreState,_j as getHmrServer,Id as getHead,Do as getHMRHandler,yi as getFormatExtension,Ri as getFileMtime,Ik as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,ai as getDirectives,$h as getDirective,al as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Xh as getComponentCacheStats,hj as getCachedVideoResult,Hp as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ki as getCachedPlaceholder,Yi as getCachedImageResult,Si as getCached,Vi as getCacheStats,bg as getBuildId,Cm as getBroadcastServer,xi as getBestVariant,nc as getAllFilters,li as generateWidthSrcset,ah as generateVirtualListCSS,mq as generateVideoPreview,je as generateValidationScript,nq as generateUploadRuntime,tm as generateTreeShakenBundle,Hg as generateTransitionRuntime,Gg as generateTransitionCSS,lj as generateThumbnails,Di as generateThumbhashPlaceholder,cn as generateTemplatesDocs,Ng as generateSuspenseRuntime,Mg as generateSuspenseCSS,Go as generateStateScript,vi as generateSrcsetData,aj as generateSrcset,Gk as generateSrcSet,mj as generateSpriteSheet,vq as generateSpaShell,wi as generateSourceTags,ri as generateSizesFromBreakpoints,qi as generateSizesAttribute,Hk as generateSizes,If as generateSitemapIndex,fr as generateSitemap,Qp as generateSimpleMediaPicker,Kp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,wj as generateScopeId,Gj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Kf as generateRobotsTxt,gr as generateRobots,$i as generateResponsiveVariants,Cj as generateReactiveWebComponentTS,Bj as generateReactiveWebComponent,Ej as generateReactiveRuntime,Dj as generateReactiveMixin,kj as generatePoster,Ji as generatePlaceholderStyle,Ii as generatePlaceholderCSS,Ci as generatePlaceholder,kh as generatePartialHydrationCSS,ld as generateNonce,rk as generateNetlifyToml,pq as generateMinifiedMediaRuntime,oq as generateMediaRuntime,Pp as generateMediaManagerEmbed,km as generateManifest,yo as generateLoadingIndicatorHtml,_p as generateLazyLoadRuntime,cm as generateLayoutTypes,Fi as generateLQIP,Xg as generateKeepAliveRuntime,Wg as generateKeepAliveCSS,rh as generateIslandManifest,lq as generateImagePreview,Yk as generateImageManifest,Ko as generateHydrationScript,He as generateHydrationRuntime,No as generateHydrationCSS,eh as generateHydrationBootstrap,Vj as generateHotReloadScript,jb as generateHeatmapScript,Bo as generateHMRClientScript,nj as generateHLSManifest,Ho as generateEventBindings,pi as generateDprSrcsetWithVariableQuality,oi as generateDprSrcset,pg as generateDocumentShell,hn as generateDocs,dn as generateDirectivesDocs,fi as generateDirectiveRuntime,Lf as generateDefaultRobotsTxt,oj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Iq as generateCompositionRuntime,bn as generateComponentsDocs,fh as generateComponentManifest,$m as generateComponentDoc,Hi as generateColorPlaceholder,Xf as generateColorModeBootScript,tl as generateClientRuntime,Qi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,gq as generateBlurUpRuntime,hq as generateBlurUpCSS,Hc as generateBindingsRuntime,mi as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Sg as generateAsyncComponentRuntime,Rg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,so as formatTypecheckDiagnostics,mo as formatTypeErrors,Gn as formatStxContent,pk as formatSize,Ta as formatRoutes,Hn as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,dr as formatDoctorReport,en as formatDocsAsMarkdown,gn as formatDocsAsJson,fn as formatDocsAsHtml,op as format,xm as foldConstants,np as flipVertical,mp as flipHorizontal,dm as fingerprint,qo as findRuntimeTypeDeclarations,br as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,um as findDeadCode,um as findDeadBranches,Pl as findContainerRegion,an as findComponentFiles,Hr as findCommonDir,ok as filterRequiredFiles,Sh as fileExists,mf as extractVariables,im as extractTemplateExpressions,ze as extractStreamBoundaries,Io as extractState,Hh as extractSlotContent,of as extractScriptFromTemplate,hm as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Gi as extractDominantColor,jd as extractDirectiveParams,Ch as extractDirectiveNames,_l as extractContainerContent,Zm as extractComponentProps,gh as extractComponentName,_m as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,hh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,Aj as extractAndScopeStyles,Hb as extractAndProcessEvents,ck as externalizeSharedAssets,dk as externalizeRepeatedAssets,bk as externalizeHtml,xc as evaluateExpression,wm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Cg as ensureTeleportTargets,tg as ensureDocumentShell,fe as enhancedValidationRules,Xm as enableDevTools,vm as eliminateDeadCode,Me as effect,vp as dprUrls,jn as docsCommand,am as discoverLayoutNames,Zp as disconnectObserver,Ym as disableDevTools,F as devHelpers,Vl as detectShell,ln as detectRuntime,sk as detectProjectConfig,zi as detectFormat,pm as detectBuildMode,Le as derived,wk as deploy,Oj as defineStxConfig,Vo as defineStore,Fq as defineSlots,rr as defineSiteConfig,vr as definePropsWithValidation,ur as defineProps,Ij as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,th as defineForm,Aq as defineExpose,zq as defineEmits,ci as defineDirective,Vq as defineCustomElement,Sn as defineConfig,di as defineClientDirective,Pg as defineAsyncComponent,qq as defaultMediaConfig,_k as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Kj as defaultConfig,Fr as default,zc as deepMergeThemes,Tf as dedupeScopedStyles,Ei as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,eq as crossfadeTransition,$o as crop,_g as createVirtualList,tj as createVideoDirective,xn as createVercelHandler,jo as createTypeChecker,fa as createTranslateFilter,tn as createTextEncoderStream,Uq as createStxApp,sn as createStreamingResponse,Be as createStreamRenderer,To as createStore,Za as createStorageManager,Xa as createServerCookieManager,cl as createScope,Kg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,ho as createRoute,dl as createRef,el as createReactive,Hq as createProvideContext,Zn as createProject,Rn as createProductionBuild,fc as createPlaceholder,Bm as createOptimizedBuild,yn as createNetlifyHandler,kk as createNetlifyClient,fb as createMiddlewareContext,go as createMiddleware,Xp as createLazyObserver,Ug as createKeepAliveCache,pn as createKVNamespace,ih as createIslandRegistry,ej as createImgDirective,Vk as createImagePlugin,Ok as createImageHandler,Tk as createImageDirective,nb as createHeatmapAggregator,nk as createFileManifest,on as createEnvAccessor,z as createEnhancedError,rn as createEdgeHandler,qn as createEdgeCache,Vh as createDetailedErrorMessage,wn as createDenoHandler,tk as createDefaultNetlifyConfig,Ed as createCspHeaders,An as createCookie,fl as createComputed,bl as createComponentInstance,vn as createCloudflareHandler,Ya as createClientCookieManager,ei as createBuiltinDirectives,Uq as createApp,Ka as createAnimationTimeline,cp as cover,nf as convertToCommonJS,jp as contrast,bp as contain,y as consoleError,m as configureErrorHandling,Nj as config,fl as computed,Wm as compressResponse,Nf as composerPattern,Mf as composer,Xl as composeShellWithPage,Qm as componentDirective,Qh as componentClientSignalNames,jm as compileTemplate,a as collectRepeatedFlag,mk as collectDeployFiles,ng as cloakStyleFragment,jj as clearVideoCache,N as clearTranslationCache,yg as clearStoreCache,hk as clearStorage,Ip as clearSignatureCache,Li as clearPlaceholderCache,uf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,pe as clearImagePlaceholders,le as clearImageDeliveryCatalog,Sk as clearImageCache,e as clearErrorMessages,gf as clearDevCaches,oc as clearCustomFilters,Pf as clearComposers,zg as clearComposableCache,Wh as clearComponentCache,Ui as clearCache,Db as clearBlankCache,xo as cleanupLoadingIndicator,Ml as classifyScript,Nl as classifyAllScripts,ko as checkTemplateFile,lo as checkTemplate,hf as checkCache,Fp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Lm as channel,Fn as captureScreenshots,En as captureScreenshot,Z as cancelPendingLoads,lk as calculateSha1,ni as calculateOptimalWidths,jf as cacheTemplate,vj as buildWebComponents,no as buildVirtualSource,sq as buildViews,Xo as buildUrl,ve as buildSuspenseResolveScript,qr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,em as buildRuntimeAsset,fm as buildRouterAsset,pr as buildLangPickerScript,ti as buildImageUrl,eg as buildIdFragment,jg as buildHtmlAttrs,nm as buildForProduction,Tm as buildComponentLibrary,Gp as buildAuthParams,om as buildApp,nr as buildAlternateLinks,Qn as build,Jm as broadcastPrivate,Km as broadcastPresence,Gm as broadcast,ip as brightness,Mb as bracketDepths,dp as blur,Eb as blankInertHtmlRegions,Ap as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,qp as auto,ja as attributeValue,gm as assetTags,Fb as asInvocableStatement,Cr as arrayOf,kr as applyTranslations,_i as applyTransformations,Ih as applySlots,Pm as applyPropDefaults,tp as applyPreset,lg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Tl as appendVary,td as apiCspPreset,Da as animationGroupDirective,pj as analyzeVideo,rm as analyzeUsage,Kl as analyzeTemplate,Ll as analyzeProject,rm as analyzeDirectiveUsage,Lc as analyticsDirective,ao as addStore,$n as addPage,xd as addNonceToInlineContent,bo as addLayout,_n as addComponent,On as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,cg as __setBuildIdForTest,gj as VideoProcessorCache,uh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,io as TemplateTypeChecker,In as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Qq as Show,we as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Ql as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Mc as RESPONSE_STATUS_KEY,Nc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Pn as ProductionBuild,Sq as Portal,Yn as PROJECT_TEMPLATES,sp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Oo as MemorySessionStore,ki as MIME_TYPES,hi as MEDIA_DEFAULT_WIDTHS,ji as MEDIA_DEFAULT_FORMATS,$l as LAYOUT_TYPES_FILE,Xi as ImageProcessorCache,Mk as ImageProcessingError,Jo as HydrationRuntime,Uj as HotReloadServer,mb as HeatmapAggregator,hg as HTML_CLASS_MARKER,gg as HTML_ATTRS_MARKER,Jq as Fragment,Rq as For,Rl as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,ak as EXTERNALIZED_ASSET_DIR,yk as DeployError,zk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Bk as DEFAULT_QUALITY,Ai as DEFAULT_PLACEHOLDER_OPTIONS,Ak as DEFAULT_FORMATS,ii as DEFAULT_DPR_VALUES,Ao as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,si as COMMON_SIZES,Vf as COLOR_MODE_BOOT_MARKER,Wf as COLOR_MODE_BOOT_GLOBAL,fg as CLOAK_STYLE,Nm as BroadcastServer,Mm as Broadcast,$f as BUILD_ID_META,ag as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Bi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,ar as $path};
2
+ import{$ as wl,$a as qn,$b as Io,$c as Ip,$d as Iq,A as gk,Aa as Am,Ab as ao,Ac as hp,Ad as hq,Ae as nr,B as hk,Ba as Bm,Bb as bo,Bc as ip,Bd as iq,Be as or,C as ik,Ca as Om,Cb as co,Cc as jp,Cd as jq,Ce as pr,D as jk,Da as Pm,Db as eo,Dc as kp,Dd as kq,De as qr,E as $k,Ea as Qm,Eb as fo,Ec as lp,Ed as lq,Ee as rr,F as al,Fa as Rm,Fb as go,Fc as mp,Fd as mq,Fe as sr,G as bl,Ga as Sm,Gb as ho,Gc as np,Gd as nq,Ge as tr,H as cl,Ha as Tm,Hb as io,Hc as op,Hd as oq,He as ur,I as dl,Ia as Xm,Ib as jo,Ic as pp,Id as pq,Ie as vr,J as el,Ja as Ym,Jb as ko,Jc as qp,Jd as qq,Je as wr,K as fl,Ka as Zm,Kb as lo,Kc as rp,Kd as rq,Ke as xr,L as gl,La as _m,Lb as mo,Lc as sp,Ld as sq,Le as yr,M as hl,Ma as $m,Mb as to,Mc as tp,Md as tq,Me as zr,N as il,Na as an,Nb as uo,Nc as up,Nd as uq,Ne as Ar,O as jl,Oa as bn,Ob as vo,Oc as vp,Od as vq,Oe as Br,P as kl,Pa as cn,Pb as wo,Pc as wp,Pd as wq,Pe as Cr,Q as ll,Qa as dn,Qb as xo,Qc as xp,Qd as xq,Qe as Dr,R as ml,Ra as en,Rb as yo,Rc as yp,Rd as yq,Re as Er,S as nl,Sa as fn,Sb as zo,Sc as zp,Sd as zq,Se as Fr,T as ol,Ta as gn,Tb as Ao,Tc as Ap,Td as Aq,Te as Gr,U as pl,Ua as hn,Ub as Bo,Uc as Bp,Ud as Bq,Ue as Hr,V as ql,Va as jn,Vb as Co,Vc as Cp,Vd as Cq,Ve as Ir,W as rl,Wa as ln,Wb as Do,Wc as Dp,Wd as Dq,We as Jr,X as sl,Xa as mn,Xb as Eo,Xc as Ep,Xd as Eq,Y as tl,Ya as nn,Yb as Fo,Yc as Fp,Yd as Fq,Z as ul,Za as on,Zb as Go,Zc as Gp,Zd as Gq,_ as vl,_a as pn,_b as Ho,_c as Hp,_d as Hq,aa as xl,ab as rn,ac as Jo,ad as Jp,ae as Jq,ba as yl,bb as sn,bc as Ko,bd as Kp,be as Kq,ca as zl,cb as tn,cc as Lo,cd as Lp,ce as Lq,da as Al,db as un,dc as Mo,dd as Mp,de as Mq,ea as Bl,eb as vn,ec as No,ed as Np,ee as Nq,fa as Cl,fb as wn,fc as Oo,fd as Op,fe as Oq,ga as Dl,gb as xn,gc as Po,gd as Pp,ge as Pq,ha as El,hb as yn,hc as Qo,hd as Qp,he as Qq,ia as Fl,ib as zn,ic as Ro,id as Rp,ie as Rq,ja as Gl,jb as An,jc as So,jd as Sp,je as Sq,ka as Hl,kb as Bn,kc as To,kd as Tp,ke as Tq,la as Il,lb as Cn,lc as Uo,ld as Up,le as Uq,ma as Jl,mb as Dn,mc as Vo,md as Vp,me as Vq,na as Kl,nb as Gn,nc as Wo,nd as Wp,ne as ar,o as a,oa as Ll,ob as Hn,oc as Xo,od as Xp,oe as br,p as Tj,pa as pm,pb as In,pc as Yo,pd as Yp,pe as cr,q as Uj,qa as qm,qb as Jn,qc as Zo,qd as Zp,qe as dr,r as Vj,ra as rm,rb as Pn,rc as _o,rd as _p,re as er,s as Wj,sa as sm,sb as Qn,sc as $o,sd as $p,se as fr,t as Xj,ta as tm,tb as Rn,tc as ap,td as aq,te as gr,u as Yj,ua as um,ub as Sn,uc as bp,ud as bq,ue as hr,v as Zj,va as vm,vb as Xn,vc as cp,vd as cq,ve as ir,w as _j,wa as wm,wb as Yn,wc as dp,wd as dq,we as jr,x as $j,xa as xm,xb as Zn,xc as ep,xd as eq,xe as kr,y as ek,ya as ym,yb as _n,yc as fp,yd as fq,ye as lr,z as fk,za as zm,zb as $n,zc as gp,zd as gq,ze as mr}from"./chunk-e2ymkgjk.js";import{Xe as Kn}from"./chunk-zwknasm0.js";import{$e as kn,Ye as Um,Ze as Vm,_e as Wm,af as Ln,bf as Mn,cf as Nn,df as On,ef as Tn,ff as Un,gf as Vn,hf as Wn}from"./chunk-6tzzh1dg.js";import{if as kk,jf as lk,kf as mk,lf as nk,mf as ok,nf as pk,of as qk,pf as rk,qf as sk,rf as tk,sf as uk,tf as vk,uf as wk,vf as xk,wf as yk}from"./chunk-ps20v1ah.js";import{Af as Sk,Bf as Tk,Cf as Uk,Df as Vk,Ef as Wk,Ff as Xk,Gf as Yk,Hf as Zk,If as _k,xf as Pk,yf as Qk,zf as Rk}from"./chunk-k7mewajj.js";import{Jf as no,Kf as oo,Lf as po,Mf as qo,Nf as ro,Of as so}from"./chunk-e3ta86aa.js";import{Pf as En,Qf as Fn}from"./chunk-mjpqz66q.js";import{Rf as dm,Sf as em,Tf as fm,Uf as gm,Vf as jm,Wf as nm}from"./chunk-3jxt0y11.js";import{$f as Ql,Xf as Ml,Yf as Nl,Zf as Ol,_f as Pl,ag as Rl,bg as Sl,cg as Tl,dg as Ul,eg as Vl,fg as Wl,gg as Xl,hg as Yl,ig as Zl,jg as _l,kg as km,lg as lm,mg as mm}from"./chunk-tt50t72e.js";import{ng as hm,qg as im}from"./chunk-bax52sn4.js";import{Ag as Em,Bg as Fm,Cg as Gm,Dg as Hm,Eg as Im,Fg as Jm,Gg as Km,Hg as Lm,Ig as Mm,Jg as Nm,yg as Cm,zg as Dm}from"./chunk-8bxtvsgm.js";import{Kg as Nk,Lg as Ok}from"./chunk-vrhp2xnm.js";import{Mg as om}from"./chunk-3rjeare9.js";import{Ng as Dh,Og as Eh,Pg as Fh,Qg as Gh,Rg as Hh,Sg as Ih}from"./chunk-asn02v4q.js";import{$g as aj,Tg as Xi,Ug as Yi,Vg as Zi,Zg as _i,_g as $i}from"./chunk-5t50pdtm.js";import{ah as gj,bh as hj,ch as ij,dh as jj,eh as kj,fh as lj,gh as mj,hh as nj,ih as oj,jh as pj,kh as qj}from"./chunk-fz91fd99.js";import{lh as Ni,mh as Oi,nh as Pi,oh as Qi,ph as Ri,rh as Si,sh as Ti,th as Ui,uh as Vi,vh as Wi}from"./chunk-k78gvm0g.js";import{wh as Ij,yh as Jj}from"./chunk-hmf9z4jx.js";import{Eh as zk,Fh as Ak,Gh as Bk,Hh as Ck,Ih as Dk,Jh as Ek,Kh as Fk,Mh as Gk,Nh as Hk,Oh as Ik,Ph as Jk,Qh as Kk,Rh as Lk,Uh as Mk}from"./chunk-pfwhd5xs.js";import{$h as kh,Vh as eh,Wh as fh,Xh as gh,Yh as hh,Zh as ih,_h as jh,ai as lh,bi as mh,ci as nh,di as oh,ei as ph,fi as qh,gi as rh}from"./chunk-mywp77gt.js";import{ii as sh,ji as th,ki as uh,li as vh}from"./chunk-nmkra8q5.js";import{qi as wh}from"./chunk-k0y7ta0d.js";import{ri as Ag}from"./chunk-a668m28h.js";import{si as Bg,ti as Cg}from"./chunk-ynt7y2n5.js";import{ui as Dg,vi as Eg,wi as Fg,xi as Gg,yi as Hg,zi as Ig}from"./chunk-wvq1g6gr.js";import{Ai as Jg,Bi as Kg,Ci as Lg,Di as Mg,Ei as Ng}from"./chunk-wyxw61az.js";import{Fi as Og,Gi as Pg,Hi as Qg,Ii as Rg,Ji as Sg}from"./chunk-k70fgb2f.js";import{Ki as Tg,Li as Ug,Mi as Vg,Ni as Wg,Oi as Xg,Pi as Yg,Qi as Zg}from"./chunk-4vpsvh6x.js";import{Ri as _g,Si as $g,Ti as ah,Ui as bh,Vi as ch,Wi as dh}from"./chunk-jem20v5k.js";import{Yi as xg,Zi as yg}from"./chunk-qxmywwq5.js";import{aj as zg}from"./chunk-24pgjzmy.js";import"./chunk-efr3ejqt.js";import{ej as ue,fj as ve,gj as we,hj as xe,ij as ye,jj as ze,kj as Ae,lj as Be,mj as Ce,nj as De,oj as Ee,pj as Fe,qj as Ge,rj as He}from"./chunk-85mzetge.js";import{sj as Ye,tj as Ze}from"./chunk-kp8ec2f4.js";import{Aj as Ke,Bj as Le,Cj as Me,Dj as Ne,Ej as Oe,Fj as Pe,Gj as Qe,Hj as Re,Ij as Se,Jj as Te,Kj as Ue,Lj as Ve,Mj as We,Nj as Xe}from"./chunk-fed3xsp9.js";import{Oj as _e,Pj as $e,Qj as af,Rj as bf,Sj as cf,Tj as df,Uj as ef,Vj as ff,Wj as gf,Xj as hf,Yj as jf,Zj as kf}from"./chunk-03mc9wc9.js";import{rk as Wq,sk as Xq,tk as Yq,uk as Zq,vk as _q,wk as $q}from"./chunk-pb4jjbpq.js";import{Ak as dk,Bk as $l,Ck as am,Dk as bm,Ek as cm,xk as ak,yk as bk,zk as ck}from"./chunk-wvxce7p4.js";import"./chunk-xtx53xyz.js";import"./chunk-224m1jrf.js";import{$l as $b,$m as cd,$o as Of,$p as Uh,$q as Cj,Al as Ja,Am as yc,An as Dd,Ap as ng,Aq as Ci,Bl as Ka,Bm as Fc,Bn as Ed,Bo as of,Bp as og,Bq as Di,Cl as La,Cm as Gc,Cn as Fd,Co as pf,Cp as pg,Cq as Ei,Dl as Ma,Dm as Hc,Dn as Gd,Do as qf,Dp as qg,Dq as Fi,El as Na,Em as Ic,En as Hd,Eo as rf,Ep as rg,Eq as Gi,Fl as Oa,Fm as Jc,Fn as Yd,Fo as sf,Fp as sg,Fq as Hi,Gl as ib,Gm as Kc,Gn as Zd,Go as tf,Gp as tg,Gq as Ii,Hl as jb,Hm as Lc,Hn as _d,Ho as uf,Hp as ug,Hq as Ji,Il as kb,In as $d,Io as vf,Ip as vg,Iq as Ki,Jl as lb,Jm as Mc,Jn as ae,Jo as wf,Jp as wg,Jq as Li,Kl as mb,Km as Nc,Kn as be,Ko as xf,Kp as xh,Kq as Mi,Ll as nb,Lm as Oc,Ln as ce,Lo as yf,Lp as yh,Lq as bj,Mm as Pc,Mn as de,Mo as zf,Mp as zh,Mq as cj,Nm as Qc,Nn as ee,No as Af,Np as Ah,Nq as dj,Ol as Fb,Om as Rc,On as fe,Oo as Bf,Op as Bh,Oq as ej,Pl as Gb,Pm as Sc,Pn as ge,Po as Cf,Pp as Ch,Pq as fj,Ql as Hb,Qm as Tc,Qn as he,Qo as Df,Qp as Jh,Qq as rj,Rl as Ib,Rm as Uc,Rn as ie,Ro as Ef,Rp as Kh,Rq as sj,Sl as Jb,Sm as Vc,Sn as je,So as Ff,Sp as Lh,Sq as tj,Tl as Nb,Tm as Wc,To as Gf,Tp as Mh,Tq as uj,Ul as Ob,Um as Xc,Un as ne,Uo as Hf,Up as Nh,Uq as vj,Vl as Pb,Vm as Yc,Vn as oe,Vo as If,Vp as Oh,Vq as wj,Wl as Wb,Wm as Zc,Wn as pe,Wo as Jf,Wp as Ph,Wq as xj,Xl as Xb,Xm as _c,Xn as qe,Xo as Kf,Xp as Qh,Xq as yj,Yl as Yb,Ym as $c,Yn as re,Yo as Lf,Yp as Rh,Yq as zj,Zl as Zb,Zm as ad,Zn as se,Zo as Mf,Zp as Sh,Zq as Aj,_l as _b,_m as bd,_n as te,_o as Nf,_p as Th,_q as Bj,am as ac,an as dd,ap as Pf,aq as Vh,ar as Dj,bm as bc,bn as ed,bp as Qf,bq as Wh,br as Ej,cm as cc,cn as fd,co as Ie,cp as Rf,cq as Xh,cr as Fj,dm as dc,dn as gd,do as Je,dp as Sf,dq as Yh,dr as Gj,em as ec,en as hd,ep as Tf,eq as Zh,er as Hj,fm as fc,fn as id,fo as lf,fp as Uf,fq as hi,fr as Kj,gm as gc,gn as jd,gp as Vf,gq as ii,gr as Lj,hm as hc,hn as kd,hp as Wf,hq as ji,hr as Mj,im as ic,in as ld,ip as Xf,iq as ki,ir as Nj,jm as jc,jn as md,jp as Yf,jq as li,jr as Oj,kn as nd,kp as Zf,kq as mi,kr as Pj,ln as od,lp as _f,lq as ni,lr as Qj,mm as kc,mn as pd,mp as $f,mq as oi,mr as Rj,nm as lc,nn as qd,np as ag,nq as pi,nr as Sj,ol as xa,om as mc,on as rd,op as bg,oq as qi,pl as ya,pm as nc,pn as sd,pp as cg,pq as ri,ql as za,qm as oc,qn as td,qp as dg,qq as si,rl as Aa,rm as pc,rn as ud,rp as eg,rq as ti,sl as Ba,sm as qc,sn as vd,sp as fg,sq as ui,tl as Ca,tm as rc,tn as wd,tp as gg,tq as vi,ul as Da,um as sc,un as xd,up as hg,uq as wi,vl as Ea,vm as tc,vn as yd,vp as ig,vq as xi,wl as Fa,wm as uc,wn as zd,wp as jg,wq as yi,xl as Ga,xm as vc,xn as Ad,xo as mf,xp as kg,xq as zi,yl as Ha,ym as wc,yn as Bd,yp as lg,yq as Ai,zl as Ia,zm as xc,zn as Cd,zo as nf,zp as mg,zq as Bi}from"./chunk-6z04mpxz.js";import{Ar as n,As as fa,Br as o,Bs as ia,Cr as p,Cs as ja,Dr as q,Ds as ka,Er as r,Es as la,Fr as s,Fs as ma,Gr as t,Gs as na,Hr as u,Hs as oa,Ir as v,Is as pa,Jr as w,Js as qa,Kr as x,Ks as ra,Lr as y,Ls as sa,Mr as z,Ms as ta,Nr as A,Ns as ua,Or as B,Os as va,Pr as C,Ps as wa,Qr as D,Rr as E,Sr as F,Tr as G,Ur as H,Vr as I,Wr as J,Xr as K,Yr as L,fs as M,gs as N,hs as O,is as P,js as Q,ks as R,ls as S,ms as T,ns as U,or as b,os as V,pr as c,ps as W,qr as d,qs as X,rr as e,rs as Y,sr as f,ss as Z,tr as g,ts as _,ur as h,us as $,vr as i,vs as aa,wr as j,ws as ba,xr as k,xs as ca,yr as l,ys as da,zr as m,zs as ea}from"./chunk-3mbkn6vk.js";import{Qs as _h,Rs as $h,Ss as ai,Ts as bi,Us as ci,Vs as di,Ws as ei,Xs as fi,Ys as gi}from"./chunk-dn8006f7.js";import{Zs as ga,_s as ha}from"./chunk-vg8yh8te.js";import{$s as Kb,at as Lb,bt as Mb}from"./chunk-c5rehxqy.js";import{ct as ke,dt as le,et as me}from"./chunk-xtwybxtw.js";import{At as Dc,Bt as Ec,nt as zc,ot as Ac,qt as Bc,zt as Cc}from"./chunk-qfec1s34.js";import{Ct as Qb,Dt as Rb,Et as Sb,Ft as Tb,Gt as Ub,Ht as Vb}from"./chunk-kgxkrnyt.js";import{It as Id,Jt as Jd,Kt as Kd,Lt as Ld,Mt as Md,Nt as Nd,Ot as Od,Pt as Pd,Qt as Qd,Rt as Rd,St as Sd,Tt as Td,Ut as Ud,Vt as Vd,Wt as Wd,Xt as Xd}from"./chunk-3npkbgfm.js";import"./chunk-nqwjb8k7.js";import"./chunk-nx96x8sh.js";import{bu as ob,cu as pb,du as qb,eu as rb,fu as sb,gu as tb,hu as ub,iu as vb,ju as wb,ku as xb,lu as yb,mu as zb,nu as Ab,ou as Bb,pu as Cb,qu as Db,ru as Eb}from"./chunk-6kdb8j9d.js";import{$u as hb,Eu as Sa,Fu as Ta,Lu as Ua,Mu as Va,Nu as Wa,Ou as Xa,Pu as Ya,Qu as Za,Ru as _a,Su as $a,Tu as ab,Uu as bb,Vu as cb,Wu as db,Xu as eb,Yu as fb,Zu as gb,vu as Pa,wu as Qa,zu as Ra}from"./chunk-jmh31a2a.js";import"./chunk-d3kac3mv.js";import"./chunk-vwqv8f0y.js";export{uk as writeNetlifyConfig,lm as writeManifest,Zk as writeImageManifest,Co as wrapComponentForHMR,wr as withDefaults,Hj as webComponentDirectiveHandler,rp as watermark,tq as watchViews,hl as watchMultiple,il as watchEffect,gl as watch,re as warmImagePlaceholders,vl as waitForStore,X as waitForLocale,oo as virtualPathFor,uj as videoDirective,G as validators,Ar as validated,he as validateValueEnhanced,yh as validateTemplate,wp as validateParams,ie as validateFormEnhanced,iq as validateFile,de as validateFields,ce as validateField,Ah as validateDirective,Cd as validateCspDirectives,Pj as validateConfig,qm as validateComponentScripts,Om as validateComponentProps,wg as validateClientScript,vh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Nh as userComponentFileExists,bh as useVirtualList,Qd as useTitle,ul as useStoreOrThrow,Uo as useStore,ek as useStorage,Eq as useSlots,gk as useSessionStorage,Nd as useSeoMeta,wl as useRouteParams,yl as useRouteParamOrThrow,xl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,Al as useMiddlewareValue,zl as useMiddlewareState,fk as useLocalStorage,vo as useLoadingIndicator,Ld as useHead,sh as useForm,Gq as useAttrs,kq as uploadFiles,jq as uploadFile,rl as updateInstance,Ve as untrack,bi as unregisterDirective,sl as unmountInstance,yc as unescapeHtml,ro as typecheckStxFiles,Mh as transpileTypeScript,jr as translate,Ba as transitionDirective,_b as transformAutoImports,Im as toUsers,Hm as toUser,ap as thumbnail,bq as thumbHashToRGBA,cq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,zo as stxClientHelpers,Gf as structuredDataDirective,mr as stripLocalePrefix,Yl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,un as stringToStream,qd as strictCspPreset,Ce as streamingSuspenseDirective,Ge as streamToResponse,Ae as streamTemplateSimple,ue as streamTemplate,$j as stopHmrServer,Em as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,qg as startsDocument,Wn as startProductionServer,Kn as startInteractive,Dm as startBroadcasting,or as stampLocaleLayoutGroup,Ia as staggerDirective,up as srcsetUrls,Ja as springDirective,$c as splitByPipe,Ul as spaNavVaryHeaders,po as sourcePathFor,Bp as smartBatchSign,Ph as slotContentHasExpressions,zp as signUrl,Kh as shouldTranspileTypeScript,Yj as shouldReloadOnChange,Ep as shouldRefreshSignature,Zj as shouldIgnoreFile,Vg as shouldCacheComponent,ep as sharpen,Dr as shape,Sb as setStateDir,El as setRouteParams,Fl as setMiddlewareState,qe as setImagePlaceholder,yq as setGlobalProvide,b as setErrorLocale,$k as setCurrentInstance,ij as setCachedVideoResult,Zi as setCachedImageResult,Ti as setCached,Gr as serveStxFile,Ir as serveMultipleStxFiles,Tj as serveMarkdownFile,fo as serveFile,Jr as serveApp,eo as serve,Fo as serializeState,kn as serializeSetCookie,gp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,yj as scopeHTML,xj as scopeCSS,Jf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,kp as saturation,xp 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,zf as runPreProcessingMiddleware,Af as runPostProcessingMiddleware,Nn as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,pl as runHooks,cr as runDoctor,Re as runDestroyCallbacks,Of as runComposers,lp as rotate,wh as rewriteImagesWithSiblings,Vc as responseBindings,Th as resolveTemplatePath,ha as resolveStxTargets,Lj as resolveStxDirectories,ir as resolveI18n,_o as resize,ec as resetPlaceholders,Kd as resetHead,Eo as resetHMRHandler,o as resetErrorConfig,yr as required,ic as replacePlaceholders,rq as renderView,rj as renderVideoComponent,Xb as renderVendorStyleTags,Nq as renderToString,Oq as renderToStream,Pq as renderToDOM,aq as renderThumbhashToCanvas,$q as renderTemplateString,Zq as renderTemplate,_q as renderString,xe as renderStreamingPage,Fh as renderSlot,Lg as renderSSRSuspense,Mp as renderProtectedVideo,Lp as renderProtectedImg,yp as renderMediaUpload,Yq as renderMarkdownView,bm as renderLayoutTypes,bj as renderImgComponent,Pk as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,uq as renderEmail,Rh as renderComponentWithSlot,Td as renderBodyAttrs,Po as render,sd as relaxedCspPreset,be as registerValidationRule,Ee as registerStreamingDirectives,Wo as registerStoresClient,Cl as registerStore,Hf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,_h as registerDirective,Bd as registerCspDirectives,Rm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,dl as ref,Cn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Rj as readMarkdownFile,$e as readFileCached,el as reactive,pp as quality,Jp as pruneSignatureCache,Wi as pruneCache,wq as provide,Xq as protectCodeBlocks,xr as prop,Rf as processVueTemplate,$g as processVirtualListDirectives,dh as processVirtualGridDirectives,qj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Fg as processTransitionDirectives,Ig as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Bg as processTeleportDirectives,Jg as processSuspenseDirectives,Cf as processStructuredData,ye as processStreamDirectives,Wc as processStatusDirective,qh as processStaticDirectives,xf as processStackReplacements,wf as processStackPushDirectives,Gh as processSlots,Wl as processShell,te as processServerBindings,Df as processSeoDirective,Fe as processSectionDirectives,Uf as processScopedStyles,Gc as processReactiveBindings,Np as processProtectedMedia,jh as processPartialHydrationDirectives,vg as processOnceDirective,yf as processMiddleware,Bf as processMetaDirectives,Xd as processMetaDirective,Sj as processMarkdownFileDirectives,Yh as processMarkdownDirectives,rf as processLoops,Tg as processKeepAliveDirectives,ug as processJsonDirective,ch as processInfiniteListDirectives,vf as processIncludes,dj as processImgComponents,Rk as processImageComponents,Ek as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Sf as processDynamicComponents,xh as processDirectives,gi as processDirectiveAttributes,Ag as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Er as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Og as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,me as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,uo as preloadIslandHandlers,se as preloadIconCollection,zm as poolStrings,Jj as pluginManager,oe as placeholdersWarmed,Eg as performLeave,Dg as performEnter,Se as pendingLifecycleCounts,We as peek,sf as partialsCache,sj as parseVideoDirectiveOptions,Yo as parseUrl,dq as parseThumbhashString,fd as parseSwitchBlock,Dh as parseSlots,Eh as parseSlotElement,kd as parseScriptDeclarations,Fj as parseSFCComponent,Op as parseProtectedArgs,qf as parseLoopBinding,cj as parseImgComponent,ui as parseImageUrl,Qk as parseImageComponent,Ln as parseFormBody,hd as parseExpressionWithFilters,Sm as parseDefaults,zn as parseCookies,Ol as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,zr as optional,Am as optimizeTemplate,Wk as optimizeImage,Xk as optimizeDirectory,Br as oneOf,tf as onceStore,ml as onUpdated,Fc as onUpdate,ol as onUnmounted,Jl as onServer,kl as onMounted,Oe as onMount,ph as onHydrated,Cq as onErrorCaptured,Pe as onDestroy,Zg as onDeactivated,Il as onClient,ll as onBeforeUpdate,nl as onBeforeUnmount,jl as onBeforeMount,Yg as onActivated,Yp as observeElement,Dn as notFound,Zf as normalizeCriticalHeadOrder,Bq as nextTick,Vm as negotiateEncoding,Ua as navigateTo,ql as mountInstance,Ea as motionDirective,rd as moderateCspPreset,ym as minifyHtml,Ff as metaDirective,ig as metaDedupKey,Zo as mergeParams,kg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Zh as markdownDirectiveHandler,Qj as markdownCache,ga as looksLikeGlob,lr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Mj as loadStxConfig,db as loadMiddlewareFromDirectory,mm as loadManifest,Up as loadElement,Fm as loadChannels,sr as lintStxStrict,Wp as lazyLoadAll,Vp as lazyLoad,Ha as keyframeDirective,Lq as jsxs,Mq as jsxDEV,Kq as jsx,Bn as jsonResponse,De as islandDirective,l as isTest,Zl as isSpaNavigation,Sl as isSpaNavRequest,Cp as isSignatureValid,Te as isSignal,Ck as isSharpAvailable,nn as isServerEnvironment,Gl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Rp as isNativeLazySupported,Wq as isMarkdownPath,Q as isLoading,R as isLoaded,Jh as isJavaScriptScript,Sp as isIntersectionObserverSupported,Kk as isImageFile,Dk as isImageBackendAvailable,aa as isICUFormat,oh as isHydrated,Oh as isHydrateTrigger,Oc as isHttpStatus,mn as isEdgeEnvironment,tr as isDirectiveKind,k as isDevelopment,Ue as isDerived,Xj as isCssOnlyChange,Um as isCompressible,Hl as isClient,Qg as isAsyncComponent,Mn as isActionableMethod,hp as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,hr as injectThemeBootstrap,Ef as injectSeoTags,er as injectSeo,lf as injectRouterScript,Wj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,sg as injectConfigHeadTags,Yf as injectColorModeBootScript,mg as injectCloakStyle,dg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,xq as inject,Bl as initStoreRegistry,xk as initNetlify,wo as initLoadingIndicator,Tp as initLazyLoading,Jn as initFile,$p as initBlurUp,fq as initAllBlurUp,fj as imgDirective,Uk as imageDirective,Un as hydrateTemplateStream,Tn as hydrateTemplate,to as hydrateIslands,lh as hydrateIsland,Vn as hydrateFragment,mh as hydrateByStrategy,nh as hydrateAll,Mo as hydrate,co as htmlResponse,og as hoistLeadingHeadTags,_f as hoistColorModeBootScript,lb as heatmapDirective,Pi as hashString,kf as hashFilePath,Ni as hashFile,Oi as hashBuffer,Qf as hasVueTemplateSyntax,pf as hasVariables,Ro as hasStore,jc as hasPlaceholders,vk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,rg as hasDocumentShell,Bh as hasDirectives,ma as hasDOMSupport,Nk as handleImageRequest,Dq as handleError,Tq as h,Jk as groupVariantsByFormat,fp as grayscale,Xn as gitHash,sm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,qk as getTotalSize,Dp as getTimeUntilExpiry,xg as getStoreScript,So as getStoreNames,Qo as getStore,jk as getStorageSize,ik as getStorageKeys,Uh as getSourceLineInfo,Lh as getSharedTranspiler,ff as getServeClientAsset,la as getScreenReaderOnlyStyle,zj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,zh as getPositionInfo,gc as getPlaceholderRegistry,Mi as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Lk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ne as getImagePlaceholder,Fk as getImageMetadata,ke as getImageDelivery,Lo as getHydrationRuntime,Dl as getHydratedStoreState,_j as getHmrServer,Id as getHead,Do as getHMRHandler,yi as getFormatExtension,Ri as getFileMtime,Ik as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,ai as getDirectives,$h as getDirective,al as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Xh as getComponentCacheStats,hj as getCachedVideoResult,Hp as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ki as getCachedPlaceholder,Yi as getCachedImageResult,Si as getCached,Vi as getCacheStats,bg as getBuildId,Cm as getBroadcastServer,xi as getBestVariant,nc as getAllFilters,li as generateWidthSrcset,ah as generateVirtualListCSS,mq as generateVideoPreview,je as generateValidationScript,nq as generateUploadRuntime,tm as generateTreeShakenBundle,Hg as generateTransitionRuntime,Gg as generateTransitionCSS,lj as generateThumbnails,Di as generateThumbhashPlaceholder,cn as generateTemplatesDocs,Ng as generateSuspenseRuntime,Mg as generateSuspenseCSS,Go as generateStateScript,vi as generateSrcsetData,aj as generateSrcset,Gk as generateSrcSet,mj as generateSpriteSheet,vq as generateSpaShell,wi as generateSourceTags,ri as generateSizesFromBreakpoints,qi as generateSizesAttribute,Hk as generateSizes,If as generateSitemapIndex,fr as generateSitemap,Qp as generateSimpleMediaPicker,Kp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,wj as generateScopeId,Gj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Kf as generateRobotsTxt,gr as generateRobots,$i as generateResponsiveVariants,Cj as generateReactiveWebComponentTS,Bj as generateReactiveWebComponent,Ej as generateReactiveRuntime,Dj as generateReactiveMixin,kj as generatePoster,Ji as generatePlaceholderStyle,Ii as generatePlaceholderCSS,Ci as generatePlaceholder,kh as generatePartialHydrationCSS,ld as generateNonce,rk as generateNetlifyToml,pq as generateMinifiedMediaRuntime,oq as generateMediaRuntime,Pp as generateMediaManagerEmbed,km as generateManifest,yo as generateLoadingIndicatorHtml,_p as generateLazyLoadRuntime,cm as generateLayoutTypes,Fi as generateLQIP,Xg as generateKeepAliveRuntime,Wg as generateKeepAliveCSS,rh as generateIslandManifest,lq as generateImagePreview,Yk as generateImageManifest,Ko as generateHydrationScript,He as generateHydrationRuntime,No as generateHydrationCSS,eh as generateHydrationBootstrap,Vj as generateHotReloadScript,jb as generateHeatmapScript,Bo as generateHMRClientScript,nj as generateHLSManifest,Ho as generateEventBindings,pi as generateDprSrcsetWithVariableQuality,oi as generateDprSrcset,pg as generateDocumentShell,hn as generateDocs,dn as generateDirectivesDocs,fi as generateDirectiveRuntime,Lf as generateDefaultRobotsTxt,oj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Iq as generateCompositionRuntime,bn as generateComponentsDocs,fh as generateComponentManifest,$m as generateComponentDoc,Hi as generateColorPlaceholder,Xf as generateColorModeBootScript,tl as generateClientRuntime,Qi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,gq as generateBlurUpRuntime,hq as generateBlurUpCSS,Hc as generateBindingsRuntime,mi as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Sg as generateAsyncComponentRuntime,Rg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,so as formatTypecheckDiagnostics,mo as formatTypeErrors,Gn as formatStxContent,pk as formatSize,Ta as formatRoutes,Hn as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,dr as formatDoctorReport,en as formatDocsAsMarkdown,gn as formatDocsAsJson,fn as formatDocsAsHtml,op as format,xm as foldConstants,np as flipVertical,mp as flipHorizontal,dm as fingerprint,qo as findRuntimeTypeDeclarations,br as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,um as findDeadCode,um as findDeadBranches,Pl as findContainerRegion,an as findComponentFiles,Hr as findCommonDir,ok as filterRequiredFiles,Sh as fileExists,mf as extractVariables,im as extractTemplateExpressions,ze as extractStreamBoundaries,Io as extractState,Hh as extractSlotContent,of as extractScriptFromTemplate,hm as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Gi as extractDominantColor,jd as extractDirectiveParams,Ch as extractDirectiveNames,_l as extractContainerContent,Zm as extractComponentProps,gh as extractComponentName,_m as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,hh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,Aj as extractAndScopeStyles,Hb as extractAndProcessEvents,ck as externalizeSharedAssets,dk as externalizeRepeatedAssets,bk as externalizeHtml,xc as evaluateExpression,wm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Cg as ensureTeleportTargets,tg as ensureDocumentShell,fe as enhancedValidationRules,Xm as enableDevTools,vm as eliminateDeadCode,Me as effect,vp as dprUrls,jn as docsCommand,am as discoverLayoutNames,Zp as disconnectObserver,Ym as disableDevTools,F as devHelpers,Vl as detectShell,ln as detectRuntime,sk as detectProjectConfig,zi as detectFormat,pm as detectBuildMode,Le as derived,wk as deploy,Oj as defineStxConfig,Vo as defineStore,Fq as defineSlots,rr as defineSiteConfig,vr as definePropsWithValidation,ur as defineProps,Ij as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,th as defineForm,Aq as defineExpose,zq as defineEmits,ci as defineDirective,Vq as defineCustomElement,Sn as defineConfig,di as defineClientDirective,Pg as defineAsyncComponent,qq as defaultMediaConfig,_k as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Kj as defaultConfig,Fr as default,zc as deepMergeThemes,Tf as dedupeScopedStyles,Ei as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,eq as crossfadeTransition,$o as crop,_g as createVirtualList,tj as createVideoDirective,xn as createVercelHandler,jo as createTypeChecker,fa as createTranslateFilter,tn as createTextEncoderStream,Uq as createStxApp,sn as createStreamingResponse,Be as createStreamRenderer,To as createStore,Za as createStorageManager,Xa as createServerCookieManager,cl as createScope,Kg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,ho as createRoute,dl as createRef,el as createReactive,Hq as createProvideContext,Zn as createProject,Rn as createProductionBuild,fc as createPlaceholder,Bm as createOptimizedBuild,yn as createNetlifyHandler,kk as createNetlifyClient,fb as createMiddlewareContext,go as createMiddleware,Xp as createLazyObserver,Ug as createKeepAliveCache,pn as createKVNamespace,ih as createIslandRegistry,ej as createImgDirective,Vk as createImagePlugin,Ok as createImageHandler,Tk as createImageDirective,nb as createHeatmapAggregator,nk as createFileManifest,on as createEnvAccessor,z as createEnhancedError,rn as createEdgeHandler,qn as createEdgeCache,Vh as createDetailedErrorMessage,wn as createDenoHandler,tk as createDefaultNetlifyConfig,Ed as createCspHeaders,An as createCookie,fl as createComputed,bl as createComponentInstance,vn as createCloudflareHandler,Ya as createClientCookieManager,ei as createBuiltinDirectives,Uq as createApp,Ka as createAnimationTimeline,cp as cover,nf as convertToCommonJS,jp as contrast,bp as contain,y as consoleError,m as configureErrorHandling,Nj as config,fl as computed,Wm as compressResponse,Nf as composerPattern,Mf as composer,Xl as composeShellWithPage,Qm as componentDirective,Qh as componentClientSignalNames,jm as compileTemplate,a as collectRepeatedFlag,mk as collectDeployFiles,ng as cloakStyleFragment,jj as clearVideoCache,N as clearTranslationCache,yg as clearStoreCache,hk as clearStorage,Ip as clearSignatureCache,Li as clearPlaceholderCache,uf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,pe as clearImagePlaceholders,le as clearImageDeliveryCatalog,Sk as clearImageCache,e as clearErrorMessages,gf as clearDevCaches,oc as clearCustomFilters,Pf as clearComposers,zg as clearComposableCache,Wh as clearComponentCache,Ui as clearCache,Db as clearBlankCache,xo as cleanupLoadingIndicator,Ml as classifyScript,Nl as classifyAllScripts,ko as checkTemplateFile,lo as checkTemplate,hf as checkCache,Fp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Lm as channel,Fn as captureScreenshots,En as captureScreenshot,Z as cancelPendingLoads,lk as calculateSha1,ni as calculateOptimalWidths,jf as cacheTemplate,vj as buildWebComponents,no as buildVirtualSource,sq as buildViews,Xo as buildUrl,ve as buildSuspenseResolveScript,qr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,em as buildRuntimeAsset,fm as buildRouterAsset,pr as buildLangPickerScript,ti as buildImageUrl,eg as buildIdFragment,jg as buildHtmlAttrs,nm as buildForProduction,Tm as buildComponentLibrary,Gp as buildAuthParams,om as buildApp,nr as buildAlternateLinks,Qn as build,Jm as broadcastPrivate,Km as broadcastPresence,Gm as broadcast,ip as brightness,Mb as bracketDepths,dp as blur,Eb as blankInertHtmlRegions,Ap as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,qp as auto,ja as attributeValue,gm as assetTags,Fb as asInvocableStatement,Cr as arrayOf,kr as applyTranslations,_i as applyTransformations,Ih as applySlots,Pm as applyPropDefaults,tp as applyPreset,lg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Tl as appendVary,td as apiCspPreset,Da as animationGroupDirective,pj as analyzeVideo,rm as analyzeUsage,Kl as analyzeTemplate,Ll as analyzeProject,rm as analyzeDirectiveUsage,Lc as analyticsDirective,ao as addStore,$n as addPage,xd as addNonceToInlineContent,bo as addLayout,_n as addComponent,On as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,cg as __setBuildIdForTest,gj as VideoProcessorCache,uh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,io as TemplateTypeChecker,In as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Qq as Show,we as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Ql as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Mc as RESPONSE_STATUS_KEY,Nc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Pn as ProductionBuild,Sq as Portal,Yn as PROJECT_TEMPLATES,sp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Oo as MemorySessionStore,ki as MIME_TYPES,hi as MEDIA_DEFAULT_WIDTHS,ji as MEDIA_DEFAULT_FORMATS,$l as LAYOUT_TYPES_FILE,Xi as ImageProcessorCache,Mk as ImageProcessingError,Jo as HydrationRuntime,Uj as HotReloadServer,mb as HeatmapAggregator,hg as HTML_CLASS_MARKER,gg as HTML_ATTRS_MARKER,Jq as Fragment,Rq as For,Rl as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,ak as EXTERNALIZED_ASSET_DIR,yk as DeployError,zk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Bk as DEFAULT_QUALITY,Ai as DEFAULT_PLACEHOLDER_OPTIONS,Ak as DEFAULT_FORMATS,ii as DEFAULT_DPR_VALUES,Ao as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,si as COMMON_SIZES,Vf as COLOR_MODE_BOOT_MARKER,Wf as COLOR_MODE_BOOT_GLOBAL,fg as CLOAK_STYLE,Nm as BroadcastServer,Mm as Broadcast,$f as BUILD_ID_META,ag as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Bi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,ar as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Af as w,Bf as x,Cf as y,Df as z,Ef as A,Ff as B,Gf as C,Hf as D,If as E,xf as t,yf as u,zf as v}from"./chunk-kxjh5mc2.js";import{Kg as r,Lg as s}from"./chunk-j83cstqe.js";import{Eh as b,Fh as c,Gh as d,Hh as e,Ih as f,Jh as g,Kh as h,Mh as i,Nh as j,Oh as k,Ph as l,Qh as m,Rh as n,Sh as o,Th as p,Uh as q}from"./chunk-8cdfsgjb.js";import{qi as a}from"./chunk-k0y7ta0d.js";import"./chunk-0btmm4m2.js";import"./chunk-24j0qx2z.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
2
+ import{Af as w,Bf as x,Cf as y,Df as z,Ef as A,Ff as B,Gf as C,Hf as D,If as E,xf as t,yf as u,zf as v}from"./chunk-k7mewajj.js";import{Kg as r,Lg as s}from"./chunk-vrhp2xnm.js";import{Eh as b,Fh as c,Gh as d,Hh as e,Ih as f,Jh as g,Kh as h,Mh as i,Nh as j,Oh as k,Ph as l,Qh as m,Rh as n,Sh as o,Th as p,Uh as q}from"./chunk-pfwhd5xs.js";import{qi as a}from"./chunk-k0y7ta0d.js";import"./chunk-dn8006f7.js";import"./chunk-vwqv8f0y.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$g as i,Tg as a,Ug as b,Vg as c,Wg as d,Xg as e,Yg as f,Zg as g,_g as h}from"./chunk-prt5da17.js";import"./chunk-k78gvm0g.js";import"./chunk-24j0qx2z.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
2
+ import{$g as i,Tg as a,Ug as b,Vg as c,Wg as d,Xg as e,Yg as f,Zg as g,_g as h}from"./chunk-5t50pdtm.js";import"./chunk-k78gvm0g.js";import"./chunk-vwqv8f0y.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{lh as x,qh as M,rh as C,sh as v,th as P}from"./chunk-k78gvm0g.js";import{mv as y}from"./chunk-24j0qx2z.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Tg,w as Ug,Q as Vg,d as Wg,g as Xg,n as Yg,D as Zg,t as _g,KJ as $g};
2
+ import{lh as x,qh as M,rh as C,sh as v,th as P}from"./chunk-k78gvm0g.js";import{nv as y}from"./chunk-vwqv8f0y.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Tg,w as Ug,Q as Vg,d as Wg,g as Xg,n as Yg,D as Zg,t as _g,KJ as $g};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import y from"fs";import V from"path";var B=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^<>()]*>)?\s*\(/,X=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,D=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],g=3;function H(j,q){let J=V.resolve(V.dirname(q),j);for(let Q of D){let z=J+Q;try{if(y.statSync(z).isFile())return z}catch{}}return null}function K(j,q,J=0,Q=new Set){if(!q||J>=g)return!1;for(let z of j.matchAll(X)){let Z=H(z[1],q);if(!Z||Q.has(Z))continue;Q.add(Z);let $;try{$=y.readFileSync(Z,"utf8")}catch{continue}if(B.test($))return!0;if(K($,Z,J+1,Q))return!0}return!1}var Y=["batch","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refresh","registerStoresClient","setRouteParams","state","untrack","useAsync","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebouncedValue","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useMutation","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useTimeout","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"],R=["onMount","onDestroy"];function A(j="const",q=[],J){let Q=q.length?Y.filter((z)=>!q.includes(z)):Y;if(J!==void 0)Q=Q.filter((z)=>{let Z=z.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${Z}(?![\\w$])`).test(J)});return`${j} { ${Q.join(", ")} } = window.stx;`}var k=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"],E={redirect:{category:"server-only",reason:"returns an HTTP Response for <script server>/edge/build; use navigate() on the client."},useAsyncData:{category:"browser-composable",reason:"inlined on demand from src/composables when a script references it; reachable, not a bare global."},Teleport:{category:"compile-time-directive",reason:"template tag resolved by processTeleportDirectives; not a script callable."},StxModalBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; drive open/close from the modal store."},StxToastBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; push toasts via the toast store."},useForm:{category:"browser-composable",reason:"reactive form primitive; lives in src/composables/use-form.ts and is inlined on demand when a <script client> references it (#1846)."},defineForm:{category:"browser-composable",reason:"deprecated alias of useForm, kept for a minor (#1843). Same delivery path \u2014 inlined on demand from src/composables/use-form.ts."},validateFields:{category:"isomorphic-import",reason:"pure validation helper; import it directly, not auto-delivered to <script client> (per client-api-delivery.test.ts)."},validateField:{category:"isomorphic-import",reason:"singular pure validation helper; same explicit-import boundary as validateFields."}},x=Y.filter((j)=>!k.includes(j));function O(j){if(!j)return!1;return x.some((q)=>new RegExp(`\\b${q}\\s*(?:<[^>]*>)?\\s*\\(`).test(j))}var M=[/@if\s*=/,/@for\s*=/,/@show\s*=/,/@model\s*=/,/@bind:/,/@class\s*=/,/@style\s*=/,/\bx-data\s*=/,/\bstate\s*(?:<[^>]*>)?\s*\(/,/\bderived\s*(?:<[^>]*>)?\s*\(/,/\beffect\s*(?:<[^>]*>)?\s*\(/,/\bref\s*(?:<[^>]*>)?\s*\(/,/\bcomputed\s*(?:<[^>]*>)?\s*\(/,/\breactive\s*(?:<[^>]*>)?\s*\(/,/\bwatch\s*(?:<[^>]*>)?\s*\(/,/\bwatchEffect\s*(?:<[^>]*>)?\s*\(/,/\s:[a-z][\w-]*\s*=\s*["']/i,/\s:(?:if|else-if|else|for|show|text|html|model)\s*=/,/data-stx(?:-auto)?(?![-\w])/,/data-stx-scoped/],C=/\s@[a-z][\w.:-]*\s*=/i;function T(j,q){if(!j)return!1;let J=U(j);return F(J,q)}function F(j,q){if(M.some((J)=>J.test(j)))return!0;if(O(j))return!0;return P(j,q)}function P(j,q){if(!q)return!1;for(let J of j.matchAll(/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script\s*>/gi))if(K(J[1],q))return!0;return!1}function d(j,q){if(!j)return!1;let J=U(j);return C.test(J)||F(J,q)}var u=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function _(j){return u.includes(j.toLowerCase())}var G=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],b=["x-init","x-transition","x-effect","x-on"],p=[...G,...b];function c(){return`{${G.map((j)=>`'${j}':1`).join(",")}}`}var v=65536,S=4,w=new Map;function r(){w.clear()}function U(j){if(!j)return j;if(!j.includes("<!--")&&!/<(?:pre|code)\b/i.test(j))return j;let q=j.length>=v;if(q){let z=w.get(j);if(z!==void 0)return z}let J=(z)=>z.replace(/(<[^>]*>)|([^<]+)/g,(Z,$,W)=>$??" ".repeat(W.length)),Q=j.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/<!--[\s\S]*?-->/g,(z)=>" ".repeat(z.length));if(q){while(w.size>=S){let z=w.keys().next();if(z.done)break;w.delete(z.value)}w.set(j,Q)}return Q}
3
- export{K as $t,Y as au,R as bu,A as cu,k as du,E as eu,x as fu,O as gu,T as hu,d as iu,u as ju,_ as ku,G as lu,b as mu,p as nu,c as ou,r as pu,U as qu};
3
+ export{K as au,Y as bu,R as cu,A as du,k as eu,E as fu,x as gu,O as hu,T as iu,d as ju,u as ku,_ as lu,G as mu,b as nu,p as ou,c as pu,r as qu,U as ru};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-24j0qx2z.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};
2
+ import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-vwqv8f0y.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};