@stacksjs/stx 0.2.287 → 0.2.289

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 (181) hide show
  1. package/dist/builtins/image-delivery.js +25 -0
  2. package/dist/{chunk-mf4n3x1j.js → chunk-02af607x.js} +1 -1
  3. package/dist/chunk-08yja60e.js +2 -0
  4. package/dist/chunk-0b8032q1.js +12 -0
  5. package/dist/{chunk-wrzwgkbx.js → chunk-0xnvkqn6.js} +3 -3
  6. package/dist/{chunk-71t0yan0.js → chunk-1e83cj7k.js} +1 -1
  7. package/dist/chunk-1gvebxh4.js +2 -0
  8. package/dist/chunk-2ctw99gz.js +2 -0
  9. package/dist/{chunk-ypmqf7tm.js → chunk-2e6xafcm.js} +1 -1
  10. package/dist/chunk-2s0jm6fq.js +2 -0
  11. package/dist/{chunk-qc1f74ek.js → chunk-2vza9m2x.js} +1 -1
  12. package/dist/{chunk-ccspd3mc.js → chunk-2wtn443n.js} +1 -1
  13. package/dist/chunk-31108nwx.js +2 -0
  14. package/dist/chunk-37zxqngs.js +17 -0
  15. package/dist/{chunk-dgrt76d2.js → chunk-3br3pt6k.js} +1 -1
  16. package/dist/chunk-3jqcv3ve.js +2 -0
  17. package/dist/chunk-437n7hyx.js +2 -0
  18. package/dist/{chunk-de7fye10.js → chunk-461br5nn.js} +1 -1
  19. package/dist/{chunk-pzm13sdc.js → chunk-4hsvmefz.js} +2 -2
  20. package/dist/{chunk-t6nseeb9.js → chunk-4vpsvh6x.js} +1 -1
  21. package/dist/chunk-508p29a1.js +2 -0
  22. package/dist/chunk-50e0319x.js +2 -0
  23. package/dist/{chunk-zqqx1qaj.js → chunk-5yp3vt00.js} +1 -1
  24. package/dist/{chunk-kxzb4et3.js → chunk-5zcg61j9.js} +2 -2
  25. package/dist/{chunk-nkb3scg6.js → chunk-6085vha7.js} +1 -1
  26. package/dist/{chunk-g4vpzv6b.js → chunk-8883pgj8.js} +1 -1
  27. package/dist/{chunk-vqxmxgaj.js → chunk-8bxtvsgm.js} +1 -1
  28. package/dist/{chunk-fvhm8psm.js → chunk-8daczchh.js} +1 -1
  29. package/dist/{chunk-866y9d8b.js → chunk-9veqmqb6.js} +1 -1
  30. package/dist/{chunk-bfqfs07m.js → chunk-9zdyma99.js} +2 -2
  31. package/dist/{chunk-7q9mwh4v.js → chunk-a668m28h.js} +1 -1
  32. package/dist/{chunk-ferav3bw.js → chunk-adr8nyhc.js} +2 -2
  33. package/dist/{chunk-sscwkffs.js → chunk-agx0620p.js} +1 -1
  34. package/dist/chunk-amwtttwf.js +2 -0
  35. package/dist/{chunk-acn1b56m.js → chunk-besxa233.js} +2 -2
  36. package/dist/chunk-bkg7622z.js +2 -0
  37. package/dist/chunk-bq6q6pjx.js +3 -0
  38. package/dist/chunk-btqfj5be.js +2 -0
  39. package/dist/chunk-bw48gj8j.js +2 -0
  40. package/dist/{chunk-csbgwaa5.js → chunk-byq2xpgb.js} +1 -1
  41. package/dist/chunk-bzsjhyet.js +2 -0
  42. package/dist/chunk-ckwq6fkw.js +2 -0
  43. package/dist/{chunk-dhh5q7qt.js → chunk-d0f60jrg.js} +2 -2
  44. package/dist/{chunk-8mjdpr94.js → chunk-dcxtrqfy.js} +1 -1
  45. package/dist/chunk-ddqynjve.js +2 -0
  46. package/dist/{chunk-b6ej2fdf.js → chunk-drbbt69f.js} +35 -10
  47. package/dist/{chunk-1kah92n2.js → chunk-dw57wss6.js} +2 -2
  48. package/dist/chunk-e0aybavh.js +2 -0
  49. package/dist/chunk-e67w1bge.js +2 -0
  50. package/dist/chunk-e7kd0ny8.js +2 -0
  51. package/dist/{chunk-9wr7zcad.js → chunk-ecgf48zt.js} +2 -2
  52. package/dist/{chunk-9n0gvfrg.js → chunk-efr3ejqt.js} +1 -1
  53. package/dist/{chunk-5w1e3yxs.js → chunk-favq46aa.js} +1 -1
  54. package/dist/chunk-fcedzn8w.js +2 -0
  55. package/dist/{chunk-19nfvxfw.js → chunk-fcfphfpw.js} +2 -2
  56. package/dist/{chunk-b8rrnqry.js → chunk-ffmtamm2.js} +1 -1
  57. package/dist/{chunk-5kk8gsj2.js → chunk-fv923f7g.js} +1 -1
  58. package/dist/{chunk-qr82je1m.js → chunk-fvej04d8.js} +2 -2
  59. package/dist/{chunk-jr3jp3ev.js → chunk-fvh9ca47.js} +1 -1
  60. package/dist/chunk-fxk9j0rm.js +2 -0
  61. package/dist/chunk-gpspx24d.js +4 -0
  62. package/dist/chunk-gxghqvws.js +2 -0
  63. package/dist/{chunk-zg75gjns.js → chunk-gy933rct.js} +1 -1
  64. package/dist/chunk-gyd4cb9m.js +2 -0
  65. package/dist/{chunk-r3ayvdz3.js → chunk-h61qt916.js} +1 -1
  66. package/dist/{chunk-v5e1gxwm.js → chunk-h7v70dbp.js} +1 -1
  67. package/dist/{chunk-y11cxbxd.js → chunk-havegv3v.js} +154 -155
  68. package/dist/{chunk-bz820epz.js → chunk-hmf9z4jx.js} +1 -1
  69. package/dist/chunk-hxjkjm6k.js +2 -0
  70. package/dist/chunk-j5n1td3p.js +2 -0
  71. package/dist/{chunk-xttsqmkm.js → chunk-jem20v5k.js} +1 -1
  72. package/dist/{chunk-pkaabd8h.js → chunk-jj6yp7gm.js} +1 -1
  73. package/dist/{chunk-1kms3b9d.js → chunk-jv91rkhx.js} +1 -1
  74. package/dist/{chunk-w3ycm4na.js → chunk-k0y7ta0d.js} +1 -1
  75. package/dist/chunk-k4aq88mj.js +11 -0
  76. package/dist/{chunk-9y0g8kzt.js → chunk-k70fgb2f.js} +1 -1
  77. package/dist/{chunk-74cv4ta1.js → chunk-k78gvm0g.js} +1 -1
  78. package/dist/{chunk-x650vjcp.js → chunk-kb5j08tq.js} +1 -1
  79. package/dist/{chunk-qy73j6m4.js → chunk-kf8t2wq7.js} +1 -1
  80. package/dist/chunk-kfy1jh6p.js +2 -0
  81. package/dist/{chunk-kdh37tp8.js → chunk-kvrjfqxd.js} +1 -1
  82. package/dist/{chunk-nnd4wq8j.js → chunk-mc58fhgm.js} +1 -1
  83. package/dist/{chunk-n3ggrhb3.js → chunk-mjpqz66q.js} +1 -1
  84. package/dist/{chunk-xgnc1wy6.js → chunk-mmnqd035.js} +1 -1
  85. package/dist/{chunk-54st8g2j.js → chunk-mywp77gt.js} +1 -1
  86. package/dist/{chunk-qzkhpsam.js → chunk-n0j85038.js} +1 -1
  87. package/dist/{chunk-se0p17c2.js → chunk-n5y9gh1q.js} +1 -1
  88. package/dist/{chunk-btav940g.js → chunk-n9kk3jz1.js} +1 -1
  89. package/dist/chunk-nh0frxtq.js +2 -0
  90. package/dist/chunk-nka77z47.js +2 -0
  91. package/dist/chunk-nkpj1a74.js +2 -0
  92. package/dist/{chunk-248e84r1.js → chunk-nmkra8q5.js} +1 -1
  93. package/dist/{chunk-1q4y74mh.js → chunk-np5dc1q1.js} +1 -1
  94. package/dist/chunk-nygtwffe.js +5 -0
  95. package/dist/{chunk-tndhnk9e.js → chunk-p0zq5ckb.js} +1 -1
  96. package/dist/{chunk-h4xh8cms.js → chunk-p5b0r6fn.js} +2 -2
  97. package/dist/chunk-pne8pq50.js +2 -0
  98. package/dist/{chunk-nx5qkm8k.js → chunk-ps20v1ah.js} +1 -1
  99. package/dist/{chunk-7b329e5v.js → chunk-pvb0rf99.js} +2 -2
  100. package/dist/chunk-qjkzpd68.js +11 -0
  101. package/dist/chunk-r84zvf0z.js +2 -0
  102. package/dist/chunk-r90w3x6h.js +2 -0
  103. package/dist/{chunk-a0nfbmeh.js → chunk-rth88zfm.js} +1 -1
  104. package/dist/{chunk-2tk1zkrz.js → chunk-s5f9bj8h.js} +1 -1
  105. package/dist/chunk-t2w7twke.js +2 -0
  106. package/dist/{chunk-6hmnaza7.js → chunk-t2wnvvec.js} +10 -10
  107. package/dist/chunk-tqgevvqn.js +28 -0
  108. package/dist/chunk-vrnn3pqk.js +2 -0
  109. package/dist/{chunk-mkd9kjgb.js → chunk-vvqe2gaz.js} +2 -2
  110. package/dist/{chunk-vrrax298.js → chunk-vxxxczmn.js} +1 -1
  111. package/dist/chunk-vzzkhjw7.js +2 -0
  112. package/dist/{chunk-wcm80anz.js → chunk-wvq1g6gr.js} +1 -1
  113. package/dist/{chunk-y7m2dpd3.js → chunk-wyxw61az.js} +1 -1
  114. package/dist/{chunk-rj4kajww.js → chunk-xpct12p7.js} +1 -1
  115. package/dist/{chunk-dtq7y5ym.js → chunk-y5jjrnfa.js} +1 -1
  116. package/dist/{chunk-rbb7dvja.js → chunk-yhqheg5m.js} +2 -2
  117. package/dist/{chunk-ya386h70.js → chunk-ym4ggcpy.js} +1 -1
  118. package/dist/{chunk-92mj1t26.js → chunk-ymc99r5x.js} +2 -2
  119. package/dist/{chunk-refwkt87.js → chunk-ynt7y2n5.js} +1 -1
  120. package/dist/{chunk-y98jsjqq.js → chunk-zqwmy0av.js} +1 -1
  121. package/dist/{chunk-hcq5dw7a.js → chunk-zvw2qgwt.js} +1 -1
  122. package/dist/{chunk-k56rjjc0.js → chunk-zy4zf7hy.js} +2 -2
  123. package/dist/cli.js +14 -14
  124. package/dist/client-module-registry.d.ts +36 -0
  125. package/dist/client-module-registry.js +55 -0
  126. package/dist/client-script-bundler.d.ts +39 -0
  127. package/dist/client-script-bundler.js +89 -12
  128. package/dist/client-script.js +5 -18
  129. package/dist/craft-entry.js +1 -1
  130. package/dist/craft.js +1 -1
  131. package/dist/database.js +1 -1
  132. package/dist/process.js +24 -3
  133. package/dist/pwa.js +2 -2
  134. package/dist/signal-processing.js +5 -4
  135. package/dist/ssg.js +2 -2
  136. package/dist/store-loader.js +1 -1
  137. package/dist/strip-literals.d.ts +20 -0
  138. package/dist/strip-literals.js +16 -0
  139. package/dist/utils.js +1 -1
  140. package/dist/visual-testing.js +1 -1
  141. package/package.json +6 -6
  142. package/dist/chunk-122tyfre.js +0 -2
  143. package/dist/chunk-24ps8kft.js +0 -2
  144. package/dist/chunk-2et5hxfv.js +0 -2
  145. package/dist/chunk-2r1rd8f0.js +0 -2
  146. package/dist/chunk-38ejahd9.js +0 -3
  147. package/dist/chunk-3zv4wz87.js +0 -2
  148. package/dist/chunk-4122k1bh.js +0 -2
  149. package/dist/chunk-45az9zht.js +0 -2
  150. package/dist/chunk-4qr85f07.js +0 -2
  151. package/dist/chunk-4ww3znrr.js +0 -15
  152. package/dist/chunk-5a19dhx5.js +0 -2
  153. package/dist/chunk-6gdycmxr.js +0 -2
  154. package/dist/chunk-74v15e8z.js +0 -2
  155. package/dist/chunk-8fwerspy.js +0 -2
  156. package/dist/chunk-9b22663r.js +0 -2
  157. package/dist/chunk-9hjdgm4d.js +0 -2
  158. package/dist/chunk-awkq3xfx.js +0 -2
  159. package/dist/chunk-bs6kapy7.js +0 -2
  160. package/dist/chunk-d8t4sjsp.js +0 -2
  161. package/dist/chunk-dap191q2.js +0 -2
  162. package/dist/chunk-dsffsqnt.js +0 -2
  163. package/dist/chunk-g9csmj0s.js +0 -2
  164. package/dist/chunk-gtcrpmz1.js +0 -2
  165. package/dist/chunk-h8yqsz9m.js +0 -2
  166. package/dist/chunk-hm0xha6c.js +0 -12
  167. package/dist/chunk-jegt35zh.js +0 -2
  168. package/dist/chunk-mxfh1nxg.js +0 -2
  169. package/dist/chunk-nsp1cw38.js +0 -11
  170. package/dist/chunk-p3242nck.js +0 -2
  171. package/dist/chunk-p98kfh94.js +0 -2
  172. package/dist/chunk-q4p5k2p3.js +0 -2
  173. package/dist/chunk-qpyjak7z.js +0 -2
  174. package/dist/chunk-r7r66978.js +0 -2
  175. package/dist/chunk-rp4rjjmf.js +0 -2
  176. package/dist/chunk-sj9pmene.js +0 -2
  177. package/dist/chunk-svpqxn2c.js +0 -2
  178. package/dist/chunk-t8y1ggdy.js +0 -2
  179. package/dist/chunk-xpp135ad.js +0 -11
  180. package/dist/chunk-ydrz60kr.js +0 -2
  181. package/dist/chunk-z4jhj5e5.js +0 -28
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  function D(j){return j}class F{plugins=new Map;sortedPlugins=[];initialized=!1;async register(j,q){if(this.plugins.has(j.name))throw Error(`Plugin "${j.name}" is already registered`);if(j.dependencies){for(let w of j.dependencies)if(!this.plugins.has(w))throw Error(`Plugin "${j.name}" depends on "${w}" which is not registered`)}if(this.plugins.set(j.name,j),j.onRegister)await j.onRegister(q);this.sortPlugins()}async unregister(j){let q=this.plugins.get(j);if(!q)return!1;for(let[w,z]of this.plugins)if(z.dependencies?.includes(j))throw Error(`Cannot unregister "${j}" because "${w}" depends on it`);if(q.onUnregister)await q.onUnregister();return this.plugins.delete(j),this.sortPlugins(),!0}get(j){return this.plugins.get(j)}has(j){return this.plugins.has(j)}getAll(){return[...this.sortedPlugins]}getAllDirectives(){let j=[];for(let q of this.sortedPlugins)if(q.registerDirectives)j.push(...q.registerDirectives());return j}getAllFilters(){let j={};for(let q of this.sortedPlugins)if(q.registerFilters)Object.assign(j,q.registerFilters());return j}async runBeforeProcess(j){return this.runHooks("beforeProcess",j)}async runAfterParse(j){return this.runHooks("afterParse",j)}async runBeforeDirective(j,q){return this.runDirectiveHooks("beforeDirective",j,q)}async runAfterDirective(j,q){return this.runDirectiveHooks("afterDirective",j,q)}async runBeforeRender(j){return this.runHooks("beforeRender",j)}async runAfterRender(j){return this.runHooks("afterRender",j)}async runOnError(j){for(let q of this.sortedPlugins)if(q.onError)try{let w=await q.onError(j);if(w){if(w.template!==void 0)j.template=w.template;if(w.context)j.context={...j.context,...w.context};if(w.metadata)j.metadata={...j.metadata,...w.metadata};if(w.skip)return j}}catch(w){console.error(`Error in plugin "${q.name}" onError hook:`,w)}return null}sortPlugins(){this.sortedPlugins=Array.from(this.plugins.values()).sort((j,q)=>(j.priority??100)-(q.priority??100))}async runHooks(j,q){let w={...q};for(let z of this.sortedPlugins){let B=z[j];if(B)try{let y=await B(w);if(y){if(y.template!==void 0)w.template=y.template;if(y.context)w.context={...w.context,...y.context};if(y.metadata)w.metadata={...w.metadata,...y.metadata};if(y.skip)break}}catch(y){console.error(`Error in plugin "${z.name}" ${j} hook:`,y)}}return w}async runDirectiveHooks(j,q,w){let z={...w};for(let B of this.sortedPlugins){let y=B[j];if(y)try{let A=await y(q,z);if(A){if(A.template!==void 0)z.template=A.template;if(A.context)z.context={...z.context,...A.context};if(A.metadata)z.metadata={...z.metadata,...A.metadata};if(A.skip)break}}catch(A){console.error(`Error in plugin "${B.name}" ${j} hook:`,A)}}return z}}var G=new F;function H(j,q,w={}){return{name:j,...w,registerDirectives:()=>q}}function I(j,q,w={}){return{name:j,...w,registerFilters:()=>q}}var J=D({name:"stx-debug",version:"1.0.0",description:"Logs all plugin lifecycle events for debugging",priority:0,beforeProcess(j){console.log("[stx-debug] beforeProcess:",j.filePath)},afterParse(j){console.log("[stx-debug] afterParse:",j.template.length,"chars")},beforeDirective(j,q){console.log("[stx-debug] beforeDirective:",j)},afterDirective(j,q){console.log("[stx-debug] afterDirective:",j)},beforeRender(j){console.log("[stx-debug] beforeRender")},afterRender(j){console.log("[stx-debug] afterRender:",j.template.length,"chars")},onError(j){console.error("[stx-debug] onError:",j.error.message,"in phase:",j.phase)}}),K=D({name:"stx-timing",version:"1.0.0",description:"Measures template processing time",priority:1,beforeProcess(j){j.metadata.startTime=performance.now()},afterRender(j){let q=j.metadata.startTime;if(q){let w=performance.now()-q;console.log(`[stx-timing] Processing took ${w.toFixed(2)}ms`)}}});function L(j){return D({name:"stx-variables",version:"1.0.0",description:"Adds predefined variables to template context",beforeProcess(q){return{context:{...q.context,...j}}}})}
3
- export{D as pg,F as qg,G as rg,H as sg,I as tg,J as ug,K as vg,L as wg};
3
+ export{D as wh,F as xh,G as yh,H as zh,I as Ah,J as Bh,K as Ch,L as Dh};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$l as k,Rl as c,Ul as d,Vl as e,Wl as f,Xl as g,Yl as h,Zl as i,_l as j,am as l,bm as m}from"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import{Ys as a,Zs as b}from"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Yi as a,Zi as b}from"./chunk-k4aq88mj.js";import"./chunk-efr3ejqt.js";import"./chunk-37zxqngs.js";import"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{a as getStoreScript,b as clearStoreCache};
@@ -213,4 +213,4 @@ function w(Z,M){let{itemHeight:K,containerHeight:P,overscan:F=3,keyProperty:$="i
213
213
  })();
214
214
  </script>
215
215
  `})}var v={createVirtualList:w,processVirtualListDirectives:C,processInfiniteListDirectives:E,processVirtualGridDirectives:f,generateVirtualListCSS:b,useVirtualList:L};
216
- export{w as zi,C as Ai,b as Bi,L as Ci,E as Di,f as Ei,v as Fi};
216
+ export{w as Ri,C as Si,b as Ti,L as Ui,E as Vi,f as Wi,v as Xi};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{existsSync as U,statSync as V}from"fs";import z from"path";var W=/[*?[\]{}]/;function X(D){return W.test(D)}async function $(D,E={}){let H=E.cwd??process.cwd(),N=E.recursive!==!1,Q=E.ignorePaths??[],J=globalThis.Bun.Glob,K=new Set,F=(j)=>{if(j.includes(`${z.sep}node_modules${z.sep}`)||j.includes(`${z.sep}dist${z.sep}`))return;if(Q.some((q)=>q&&j.includes(z.normalize(q))))return;K.add(j)},R=async(j)=>{try{for await(let q of new J(j).scan({cwd:H,absolute:!0}))F(q)}catch{}};for(let j of D){if(!j)continue;if(X(j)){await R(j);continue}let q=z.resolve(H,j);if(!U(q))continue;if(V(q).isDirectory()){for await(let T of new J(N?"**/*.stx":"*.stx").scan({cwd:q,absolute:!0}))F(T);continue}F(q)}return[...K].sort()}
3
- export{X as Vs,$ as Ws};
3
+ export{X as Ws,$ as Xs};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ki as a,Li as b,Mi as c,Ni as d,Oi as e,Pi as f,Qi as g,Ri as h,Si as i,Ti as j,Ui as k}from"./chunk-54st8g2j.js";import"./chunk-qc1f74ek.js";export{i as processStaticDirectives,b as processPartialHydrationDirectives,h as onHydrated,g as isHydrated,d as hydrateIsland,e as hydrateByStrategy,f as hydrateAll,c as generatePartialHydrationCSS,j as generateIslandManifest,k as default,a as createIslandRegistry};
2
+ import{$h as c,Zh as a,_h as b,ai as d,bi as e,ci as f,di as g,ei as h,fi as i,gi as j,hi as k}from"./chunk-mywp77gt.js";import"./chunk-2vza9m2x.js";export{i as processStaticDirectives,b as processPartialHydrationDirectives,h as onHydrated,g as isHydrated,d as hydrateIsland,e as hydrateByStrategy,f as hydrateAll,c as generatePartialHydrationCSS,j as generateIslandManifest,k as default,a as createIslandRegistry};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import G from"path";var L=new Set([".jpg",".jpeg",".png",".gif"]),O=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function M(j,z){let H=z.formats??O;if(!z.publicDir)return j;let C=N(j),J=[],Y=/<img\b[^>]*?>/gi,K=[],Q;while((Q=Y.exec(j))!==null){let q=Q[0],y=q.match(/\bsrc=["']([^"']+)["']/i);if(!y)continue;if(_(Q.index,C))continue;K.push({idx:Q.index,length:q.length,src:y[1],raw:q})}if(K.length===0)return j;let Z=await Promise.all(K.map(async(q)=>{let y=await X(q.src,z.publicDir,H);return{match:q,sources:y}}));for(let{match:q,sources:y}of Z){if(y.length===0)continue;let I=`<picture>${y.map(($)=>`<source type="${$.mime}" srcset="${w($.url)}">`).join("")}${q.raw}</picture>`;J.push({start:q.idx,end:q.idx+q.length,replacement:I})}if(J.length===0)return j;let V="",W=0;for(let q of J)V+=j.slice(W,q.start),V+=q.replacement,W=q.end;return V+=j.slice(W),V}async function X(j,z,H){if(!F(j))return[];let C=G.extname(j).toLowerCase();if(!L.has(C))return[];if(!j.startsWith("/"))return[];let J=G.join(z,j.slice(1)),Y=G.dirname(J),K=G.basename(J,C),Q=G.resolve(Y),Z=G.resolve(z);if(!Q.startsWith(Z))return[];let V=G.posix.dirname(j),W=H.map(async(y)=>{let k=G.join(Y,`${K}${y.ext}`);if(!await Bun.file(k).exists())return null;return{url:G.posix.join(V,`${K}${y.ext}`),mime:y.mime}});return(await Promise.all(W)).filter((y)=>y!==null)}function F(j){if(!j)return!1;if(j.startsWith("http://")||j.startsWith("https://"))return!1;if(j.startsWith("//"))return!1;if(j.startsWith("data:"))return!1;return!0}function N(j){let z=[],H=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,C;while((C=H.exec(j))!==null)z.push([C.index,C.index+C[0].length]);return z}function _(j,z){for(let[H,C]of z)if(j>=H&&j<C)return!0;return!1}function w(j){return j.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}
3
- export{M as Dh};
3
+ export{M as qi};
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import{bj as O,cj as w,dj as Z}from"./chunk-efr3ejqt.js";import{$k as R,gl as U,ll as T}from"./chunk-37zxqngs.js";import{Pp as k,Sl as M,er as C,po as W}from"./chunk-havegv3v.js";import{Vt as E,Wt as L}from"./chunk-nygtwffe.js";import{_t as B}from"./chunk-h7v70dbp.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
+ ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
+
5
+ `),x=`;(function(){
6
+ var __stx = window.stx || {};
7
+ ${B.filter((q)=>!X.has(q)&&new RegExp(`\\b${q}\\b`).test(j)).map((q)=>`var ${q} = __stx[${JSON.stringify(q)}];`).join(`
8
+ `)}
9
+ ${j}
10
+ })();`;return K=O(V()),Z(Y,z,K,x),x}function a(){Y.clear()}
11
+ export{l as Yi,a as Zi};
@@ -355,4 +355,4 @@ catch (error) {
355
355
  console.log('[stx] Async component runtime initialized');
356
356
  })();
357
357
  `}
358
- export{X as ni,Y as oi,Z as pi,_ as qi,$ as ri};
358
+ export{X as Fi,Y as Gi,Z as Hi,_ as Ii,$ as Ji};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{createHash as Y}from"crypto";import{readFile as M,stat as w}from"fs/promises";async function G(q){try{let z=await M(q);return Y("sha256").update(z).digest("hex").slice(0,16)}catch{return""}}function u(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function $(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function X(q,z){let B=JSON.stringify(z,Object.keys(z).sort());return`${$(q)}-${$(B)}`}async function Z(q){try{return(await w(q)).mtimeMs}catch{return 0}}async function b(q){try{return await w(q),!0}catch{return!1}}import{mkdir as S,readFile as V,writeFile as E,readdir as A,rm as _,stat as j}from"fs/promises";import{join as U,dirname as x}from"path";var R=new Map,W={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500};async function F(q){try{await S(q,{recursive:!0})}catch{}}function K(q,z,B){return U(q,B,`${z}.json`)}async function v(q,z,B){if((Date.now()-q.createdAt)/86400000>B)return!1;if(await Z(z)!==q.srcMtime)return!1;return!0}async function g(q,z,B,J=W){if(!J.enabled)return null;let I=X(q,z),L=R.get(I);if(L){if(await v(L,q,J.maxAge))return L.lastAccessedAt=Date.now(),L.data;R.delete(I)}let Q=K(J.directory,I,B);if(await b(Q))try{let N=await V(Q,"utf-8"),O=JSON.parse(N);if(await v(O,q,J.maxAge))return O.lastAccessedAt=Date.now(),R.set(I,O),O.data}catch{}return null}async function l(q,z,B,J,I=W){if(!I.enabled)return;let L=X(q,z),Q=await G(q),N=await Z(q),O={key:L,src:q,srcHash:Q,srcMtime:N,optionsHash:X("",z),data:B,createdAt:Date.now(),lastAccessedAt:Date.now()};R.set(L,O);let T=K(I.directory,L,J);try{await F(x(T)),await E(T,JSON.stringify(O,null,2))}catch(H){console.warn(`[stx-media] Failed to write cache: ${H}`)}}async function m(q,z=W){if(q==="all")R.clear();else R.clear();let B=q==="all"?["image","video"]:[q];for(let J of B){let I=U(z.directory,J);try{await _(I,{recursive:!0,force:!0})}catch{}}}async function y(q=W){let z={memoryEntries:R.size,diskEntries:{image:0,video:0},totalSizeMB:0};for(let B of["image","video"]){let J=U(q.directory,B);try{let I=await A(J);z.diskEntries[B]=I.length;for(let L of I){let Q=U(J,L),N=await j(Q);z.totalSizeMB+=N.size/1048576}}catch{}}return z}async function f(q=W){let z=0,B=q.maxAge*24*60*60*1000;for(let J of["image","video"]){let I=U(q.directory,J);try{let L=await A(I);for(let Q of L){let N=U(I,Q);try{let O=await V(N,"utf-8"),T=JSON.parse(O);if(Date.now()-T.createdAt>B)await _(N),R.delete(T.key),z++}catch{await _(N).catch(()=>{}),z++}}}catch{}}return z}
3
- export{G as Th,u as Uh,$ as Vh,X as Wh,Z as Xh,b as Yh,g as Zh,l as _h,m as $h,y as ai,f as bi};
3
+ export{G as lh,u as mh,$ as nh,X as oh,Z as ph,b as qh,g as rh,l as sh,m as th,y as uh,f as vh};
@@ -299,4 +299,4 @@ catch (error) {
299
299
  }
300
300
  })();
301
301
  </script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
302
- export{N as Zu,Q as _u,T as $u,V as av,X as bv,Z as cv};
302
+ export{N as bv,Q as cv,T as dv,V as ev,X as fv,Z as gv};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-qc1f74ek.js";function F(){return`<script data-stx-scoped data-stx-x-element-runtime data-stx-run="always">
2
+ import"./chunk-2vza9m2x.js";function F(){return`<script data-stx-scoped data-stx-x-element-runtime data-stx-run="always">
3
3
  (function() {
4
4
  'use strict';
5
5
 
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Pf as a,Qf as b}from"./chunk-mjpqz66q.js";import"./chunk-2vza9m2x.js";export{b as captureScreenshots,a as captureScreenshot};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Gp as H,Yp as x,br as g,om as O,to as R}from"./chunk-y11cxbxd.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
2
+ import{Hp as H,Zp as x,cr as g,pm as O,uo as R}from"./chunk-havegv3v.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
3
3
  <template data-suspense-fallback>Loading...</template>
4
4
  </div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
5
5
  <script>
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-qc1f74ek.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
2
+ import"./chunk-2vza9m2x.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
3
3
  <div class="stx-error-boundary" data-boundary-id="${q}" data-has-error="false">
4
4
  <div class="stx-error-boundary-content" data-boundary-content="${q}">
5
5
  ${z}
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var{WebView:F}=globalThis.Bun;import{existsSync as V,mkdirSync as k,readdirSync as O,statSync as E}from"fs";import $ from"path";var C=16384;function X(j){if(/^https?:\/\//.test(j)||j.startsWith("file://"))return j;return`file://${$.resolve(j)}`}function K(j,B,z,L){return new Promise((Q)=>{let J=!1,G,Y,R=()=>{if(!J){if(J=!0,clearTimeout(Y),G)clearTimeout(G);j.onNavigated=void 0,Q()}};Y=setTimeout(R,L),j.onNavigated=()=>{if(!J)G=setTimeout(R,z)};try{let Z=j.navigate(B);if(Z&&typeof Z.catch==="function")Z.catch(R)}catch{R()}})}async function U(j,B,z){let L=`!!document.querySelector(${JSON.stringify(B)})`,Q=Date.now()+z;while(Date.now()<Q){try{if(await j.evaluate(L))return}catch{}await new Promise((J)=>setTimeout(J,100))}}async function _(j){try{let B=await j.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof B==="number"&&Number.isFinite(B)&&B>0?Math.min(B,C):0}catch{return 0}}async function x(j,B,z={}){let L=Math.min(z.width??1440,C),Q=Math.min(z.height??2200,C),J=z.waitMs??800,G=z.timeoutMs??15000,Y=z.format??"png",R=X(j),Z=(q)=>new F({width:L,height:q,headless:!0,...z.backend?{backend:z.backend}:{}}),P=Z(Q);try{if(await K(P,R,J,G),z.waitSelector)await U(P,z.waitSelector,G);if(z.fullPage){let H=await _(P);if(H>Q){if(P.close(),P=Z(H),await K(P,R,J,G),z.waitSelector)await U(P,z.waitSelector,G)}}let q=await P.screenshot({encoding:"buffer",format:Y});k($.dirname($.resolve(B)),{recursive:!0}),await Bun.write(B,q)}finally{P.close()}if(!V(B))throw Error(`Screenshot was not produced for ${j}`);return{input:j,output:B,bytes:E(B).size}}async function W(j,B,z={}){k(B,{recursive:!0});let L;if(!/^https?:\/\//.test(j)&&V(j)&&E(j).isDirectory())L=O(j).filter((G)=>G.endsWith(".html")).map((G)=>$.join(j,G));else L=[j];let Q=z.format??"png",J=[];for(let G of L){let Y=/^https?:\/\//.test(G)?new URL(G).pathname.replace(/\W+/g,"-").replace(/^-|-$/g,"")||"index":$.basename(G).replace(/\.html?$/,"");J.push(await x(G,$.join(B,`${Y}.${Q}`),z))}return J}
3
- export{x as nf,W as of};
3
+ export{x as Pf,W as Qf};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-qc1f74ek.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
2
+ import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-2vza9m2x.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -394,4 +394,4 @@ else {
394
394
  ${JSON.stringify(j)}
395
395
  </script>
396
396
  `}var r={processPartialHydrationDirectives:b,processStaticDirectives:x,generatePartialHydrationCSS:H,generateIslandManifest:y,createIslandRegistry:f,hydrateIsland:S,hydrateByStrategy:h,hydrateAll:g,isHydrated:v,onHydrated:u};
397
- export{B as Gi,I as Hi,E as Ii,V as Ji,f as Ki,b as Li,H as Mi,S as Ni,h as Oi,g as Pi,v as Qi,u as Ri,x as Si,y as Ti,r as Ui};
397
+ export{B as Vh,I as Wh,E as Xh,V as Yh,f as Zh,b as _h,H as $h,S as ai,h as bi,g as ci,v as di,u as ei,x as fi,y as gi,r as hi};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{gv as Y}from"./chunk-qc1f74ek.js";import{mkdir as O,writeFile as q}from"fs/promises";import{join as X}from"path";var T="https://api.iconify.design";async function k(){let E=await fetch(`${T}/collections`);if(!E.ok)throw Error(`Failed to fetch collections: ${E.statusText}`);return await E.json()}async function P(E,z){try{let U=Y.resolve("@iconify/json"),S=`${`${U.substring(0,U.lastIndexOf("/node_modules/@iconify/json/"))}/node_modules/@iconify/json`}/json/${E}.json`,M=Bun.file(S);if(await M.exists()){let V=await M.json();if(z&&z.length>0){let Z={};for(let L of z)if(V.icons[L])Z[L]=V.icons[L];return{...V,icons:Z}}return V}}catch{}let K=z&&z.length>0?`${T}/${E}.json?icons=${z.join(",")}`:`${T}/${E}.json`,Q=await fetch(K);if(!Q.ok)throw Error(`Failed to fetch icons for ${E}: ${Q.statusText}`);return await Q.json()}function j(E,z=24,K=24){return{body:E.body,width:E.width||z,height:E.height||K,viewBox:`0 0 ${E.width||z} ${E.height||K}`}}function F(E,z){let K=B(E);return`import type { IconData } from '@stacksjs/iconify-core'
2
+ import{kv as Y}from"./chunk-2vza9m2x.js";import{mkdir as O,writeFile as q}from"fs/promises";import{join as X}from"path";var T="https://api.iconify.design";async function k(){let E=await fetch(`${T}/collections`);if(!E.ok)throw Error(`Failed to fetch collections: ${E.statusText}`);return await E.json()}async function P(E,z){try{let U=Y.resolve("@iconify/json"),S=`${`${U.substring(0,U.lastIndexOf("/node_modules/@iconify/json/"))}/node_modules/@iconify/json`}/json/${E}.json`,M=Bun.file(S);if(await M.exists()){let V=await M.json();if(z&&z.length>0){let Z={};for(let L of z)if(V.icons[L])Z[L]=V.icons[L];return{...V,icons:Z}}return V}}catch{}let K=z&&z.length>0?`${T}/${E}.json?icons=${z.join(",")}`:`${T}/${E}.json`,Q=await fetch(K);if(!Q.ok)throw Error(`Failed to fetch icons for ${E}: ${Q.statusText}`);return await Q.json()}function j(E,z=24,K=24){return{body:E.body,width:E.width||z,height:E.height||K,viewBox:`0 0 ${E.width||z} ${E.height||K}`}}function F(E,z){let K=B(E);return`import type { IconData } from '@stacksjs/iconify-core'
3
3
 
4
4
  export const ${K}: IconData = ${JSON.stringify(z,null,2)}
5
5
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{gv as y}from"./chunk-qc1f74ek.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{kv as y}from"./chunk-2vza9m2x.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">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$f as k,Rf as a,Sf as b,Tf as c,Uf as d,Vf as e,Wf as f,Xf as g,Yf as h,Zf as i,_f as j,ag as l,bg as m,cg as n,dg as o}from"./chunk-nx5qkm8k.js";import"./chunk-qc1f74ek.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-2vza9m2x.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{qo as a,ro as b,so as c,to as d,uo as e,vo as f,wo as g,xo as h,yo as i,zo as j}from"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{cr as a,dr as b,er as c,fr as d,gr as e,hr as f}from"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as vl,$a as pn,$b as Ho,$c as Hp,$d as Hq,A as fk,Aa as zm,Ab as $n,Ac as gp,Ad as gq,Ae as mr,B as gk,Ba as Am,Bb as ao,Bc as hp,Bd as hq,Be as nr,C as hk,Ca as Nm,Cb as bo,Cc as ip,Cd as iq,Ce as or,D as ik,Da as Om,Db as co,Dc as jp,Dd as jq,De as pr,E as _k,Ea as Pm,Eb as eo,Ec as kp,Ed as kq,Ee as qr,F as $k,Fa as Qm,Fb as fo,Fc as lp,Fd as lq,Fe as rr,G as al,Ga as Rm,Gb as go,Gc as mp,Gd as mq,Ge as sr,H as bl,Ha as Sm,Hb as ho,Hc as np,Hd as nq,He as tr,I as cl,Ia as Wm,Ib as io,Ic as op,Id as oq,Ie as ur,J as dl,Ja as Xm,Jb as jo,Jc as pp,Jd as pq,Je as vr,K as el,Ka as Ym,Kb as ko,Kc as qp,Kd as qq,Ke as wr,L as fl,La as Zm,Lb as lo,Lc as rp,Ld as rq,Le as xr,M as gl,Ma as _m,Mb as so,Mc as sp,Md as sq,Me as yr,N as hl,Na as $m,Nb as to,Nc as tp,Nd as tq,Ne as zr,O as il,Oa as an,Ob as uo,Oc as up,Od as uq,Oe as Ar,P as jl,Pa as bn,Pb as vo,Pc as vp,Pd as vq,Pe as Br,Q as kl,Qa as cn,Qb as wo,Qc as wp,Qd as wq,Qe as Cr,R as ll,Ra as dn,Rb as xo,Rc as xp,Rd as xq,Re as Dr,S as ml,Sa as en,Sb as yo,Sc as yp,Sd as yq,Se as Er,T as nl,Ta as fn,Tb as zo,Tc as zp,Td as zq,Te as Fr,U as ol,Ua as gn,Ub as Ao,Uc as Ap,Ud as Aq,Ue as Gr,V as pl,Va as hn,Vb as Bo,Vc as Bp,Vd as Bq,Ve as Hr,W as ql,Wa as kn,Wb as Co,Wc as Cp,Wd as Cq,We as Ir,X as rl,Xa as ln,Xb as Do,Xc as Dp,Xd as Dq,Y as sl,Ya as mn,Yb as Eo,Yc as Ep,Yd as Eq,Z as tl,Za as nn,Zb as Fo,Zc as Fp,Zd as Fq,_ as ul,_a as on,_b as Go,_c as Gp,_d as Gq,aa as wl,ab as qn,ac as Io,ad as Ip,ae as Iq,ba as xl,bb as rn,bc as Jo,bd as Jp,be as Jq,ca as yl,cb as sn,cc as Ko,cd as Kp,ce as Kq,da as zl,db as tn,dc as Lo,dd as Lp,de as Lq,ea as Al,eb as un,ec as Mo,ed as Mp,ee as Mq,fa as Bl,fb as vn,fc as No,fd as Np,fe as Nq,ga as Cl,gb as wn,gc as Oo,gd as Op,ge as Oq,ha as Dl,hb as xn,hc as Po,hd as Pp,he as Pq,ia as El,ib as yn,ic as Qo,id as Qp,ie as Qq,ja as Fl,jb as zn,jc as Ro,jd as Rp,je as Rq,ka as Gl,kb as An,kc as So,kd as Sp,ke as Sq,la as Hl,lb as Bn,lc as To,ld as Tp,le as Tq,ma as Il,mb as Cn,mc as Uo,md as Up,me as Uq,na as Jl,nb as Fn,nc as Vo,nd as Vp,ne as $q,o as a,oa as Kl,ob as Gn,oc as Wo,od as Wp,oe as ar,p as Sj,pa as om,pb as Hn,pc as Xo,pd as Xp,pe as br,q as Tj,qa as pm,qb as In,qc as Yo,qd as Yp,qe as cr,r as Uj,ra as qm,rb as On,rc as Zo,rd as Zp,re as dr,s as Vj,sa as rm,sb as Pn,sc as _o,sd as _p,se as er,t as Wj,ta as sm,tb as Qn,tc as $o,td as $p,te as fr,u as Xj,ua as tm,ub as Rn,uc as ap,ud as aq,ue as gr,v as Yj,va as um,vb as Wn,vc as bp,vd as bq,ve as hr,w as Zj,wa as vm,wb as Xn,wc as cp,wd as cq,we as ir,x as _j,xa as wm,xb as Yn,xc as dp,xd as dq,xe as jr,y as dk,ya as xm,yb as Zn,yc as ep,yd as eq,ye as kr,z as ek,za as ym,zb as _n,zc as fp,zd as fq,ze as lr}from"./chunk-t2wnvvec.js";import{Xe as Jn}from"./chunk-zy4zf7hy.js";import{$e as jn,Ye as Tm,Ze as Um,_e as Vm,af as Kn,bf as Ln,cf as Mn,df as Nn,ef as Sn,ff as Tn,gf as Un,hf as Vn}from"./chunk-4hsvmefz.js";import{if as jk,jf as kk,kf as lk,lf as mk,mf as nk,nf as ok,of as pk,pf as qk,qf as rk,rf as sk,sf as tk,tf as uk,uf as vk,vf as wk,wf as xk}from"./chunk-ps20v1ah.js";import{Af as Rk,Bf as Sk,Cf as Tk,Df as Uk,Ef as Vk,Ff as Wk,Gf as Xk,Hf as Yk,If as Zk,xf as Ok,yf as Pk,zf as Qk}from"./chunk-fcfphfpw.js";import{Jf as mo,Kf as no,Lf as oo,Mf as po,Nf as qo,Of as ro}from"./chunk-adr8nyhc.js";import{Pf as Dn,Qf as En}from"./chunk-mjpqz66q.js";import{Rf as cm,Sf as dm,Tf as em,Uf as fm,Vf as im,Wf as mm}from"./chunk-p5b0r6fn.js";import{$f as Pl,Xf as Ll,Yf as Ml,Zf as Nl,_f as Ol,ag as Ql,bg as Rl,cg as Sl,dg as Tl,eg as Ul,fg as Vl,gg as Wl,hg as Xl,ig as Yl,jg as Zl,kg as jm,lg as km,mg as lm}from"./chunk-yhqheg5m.js";import{ng as gm,qg as hm}from"./chunk-fvej04d8.js";import{Ag as Dm,Bg as Em,Cg as Fm,Dg as Gm,Eg as Hm,Fg as Im,Gg as Jm,Hg as Km,Ig as Lm,Jg as Mm,yg as Bm,zg as Cm}from"./chunk-8bxtvsgm.js";import{Kg as Mk,Lg as Nk}from"./chunk-vvqe2gaz.js";import{Mg as nm}from"./chunk-pvb0rf99.js";import{Ng as Ch,Og as Dh,Pg as Eh,Qg as Fh,Rg as Gh,Sg as Hh}from"./chunk-dw57wss6.js";import{$g as $i,Tg as Wi,Ug as Xi,Vg as Yi,Zg as Zi,_g as _i}from"./chunk-5yp3vt00.js";import{ah as fj,bh as gj,ch as hj,dh as ij,eh as jj,fh as kj,gh as lj,hh as mj,ih as nj,jh as oj,kh as pj}from"./chunk-5zcg61j9.js";import{lh as Mi,mh as Ni,nh as Oi,oh as Pi,ph as Qi,rh as Ri,sh as Si,th as Ti,uh as Ui,vh as Vi}from"./chunk-k78gvm0g.js";import{wh as Hj,yh as Ij}from"./chunk-hmf9z4jx.js";import{Eh as yk,Fh as zk,Gh as Ak,Hh as Bk,Ih as Ck,Jh as Dk,Kh as Ek,Mh as Fk,Nh as Gk,Oh as Hk,Ph as Ik,Qh as Jk,Rh as Kk,Uh as Lk}from"./chunk-d0f60jrg.js";import{$h as jh,Vh as dh,Wh as eh,Xh as fh,Yh as gh,Zh as hh,_h as ih,ai as kh,bi as lh,ci as mh,di as nh,ei as oh,fi as ph,gi as qh}from"./chunk-mywp77gt.js";import{ii as rh,ji as sh,ki as th,li as uh}from"./chunk-nmkra8q5.js";import{qi as vh}from"./chunk-k0y7ta0d.js";import{ri as zg}from"./chunk-a668m28h.js";import{si as Ag,ti as Bg}from"./chunk-ynt7y2n5.js";import{ui as Cg,vi as Dg,wi as Eg,xi as Fg,yi as Gg,zi as Hg}from"./chunk-wvq1g6gr.js";import{Ai as Ig,Bi as Jg,Ci as Kg,Di as Lg,Ei as Mg}from"./chunk-wyxw61az.js";import{Fi as Ng,Gi as Og,Hi as Pg,Ii as Qg,Ji as Rg}from"./chunk-k70fgb2f.js";import{Ki as Sg,Li as Tg,Mi as Ug,Ni as Vg,Oi as Wg,Pi as Xg,Qi as Yg}from"./chunk-4vpsvh6x.js";import{Ri as Zg,Si as _g,Ti as $g,Ui as ah,Vi as bh,Wi as ch}from"./chunk-jem20v5k.js";import{Yi as wg,Zi as xg}from"./chunk-k4aq88mj.js";import{aj as yg}from"./chunk-tqgevvqn.js";import"./chunk-efr3ejqt.js";import{ej as ke,fj as le,gj as me,hj as ne,ij as oe,jj as pe,kj as qe,lj as re,mj as se,nj as te,oj as ue,pj as ve,qj as we,rj as xe}from"./chunk-kvrjfqxd.js";import{sj as Ye,tj as Ze}from"./chunk-9veqmqb6.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}from"./chunk-rth88zfm.js";import{qk as Vq,rk as Wq,sk as Xq,tk as Yq,uk as Zq,vk as _q}from"./chunk-ecgf48zt.js";import{Ak as _l,Bk as $l,Ck as am,Dk as bm,wk as $j,xk as ak,yk as bk,zk as ck}from"./chunk-1e83cj7k.js";import"./chunk-58f0mthg.js";import"./chunk-37zxqngs.js";import{$l as bc,$m as ed,$n as Ie,$o as Qf,$p as Wh,$q as Ej,Al as La,Am as Gc,An as Fd,Ao as pf,Ap as pg,Aq as Ei,Bl as Ma,Bm as Hc,Bn as Gd,Bo as qf,Bp as qg,Bq as Fi,Cl as Na,Cm as Ic,Cn as Hd,Co as rf,Cp as rg,Cq as Gi,Dl as Oa,Dm as Jc,Dn as Yd,Do as sf,Dp as sg,Dq as Hi,El as ib,Em as Kc,En as Zd,Eo as tf,Ep as tg,Eq as Ii,Fl as jb,Fm as Lc,Fn as _d,Fo as uf,Fp as ug,Fq as Ji,Gl as kb,Gn as $d,Go as vf,Gp as vg,Gq as Ki,Hl as lb,Hm as Mc,Hn as ae,Ho as wf,Hp as wh,Hq as Li,Il as mb,Im as Nc,In as be,Io as xf,Ip as xh,Iq as aj,Jl as nb,Jm as Oc,Jn as ce,Jo as yf,Jp as yh,Jq as bj,Km as Pc,Kn as de,Ko as zf,Kp as zh,Kq as cj,Lm as Qc,Ln as ee,Lo as Af,Lp as Ah,Lq as dj,Ml as Fb,Mm as Rc,Mn as fe,Mo as Bf,Mp as Bh,Mq as ej,Nl as Gb,Nm as Sc,Nn as ge,No as Cf,Np as Ih,Nq as qj,Ol as Hb,Om as Tc,On as he,Oo as Df,Op as Jh,Oq as rj,Pl as Ib,Pm as Uc,Pn as ie,Po as Ef,Pp as Kh,Pq as sj,Ql as Jb,Qm as Vc,Qn as je,Qo as Ff,Qp as Lh,Qq as tj,Rl as Nb,Rm as Wc,Ro as Gf,Rp as Mh,Rq as uj,Sl as Ob,Sm as Xc,Sn as Be,So as Hf,Sp as Nh,Sq as vj,Tl as Pb,Tm as Yc,Tn as Ce,To as If,Tp as Oh,Tq as wj,Ul as Wb,Um as Zc,Un as De,Uo as Jf,Up as Ph,Uq as xj,Vl as Xb,Vm as _c,Vn as Ee,Vo as Kf,Vp as Qh,Vq as yj,Wl as Yb,Wm as $c,Wn as Fe,Wo as Lf,Wp as Rh,Wq as zj,Xl as Zb,Xm as ad,Xn as Ge,Xo as Mf,Xp as Sh,Xq as Aj,Yl as _b,Ym as bd,Yn as He,Yo as Nf,Yp as Th,Yq as Bj,Zl as $b,Zm as cd,Zo as Of,Zp as Uh,Zq as Cj,_l as ac,_m as dd,_o as Pf,_p as Vh,_q as Dj,am as cc,an as fd,ao as Je,ap as Rf,aq as Xh,ar as Fj,bm as dc,bn as gd,bp as Sf,bq as Yh,br as Gj,cm as ec,cn as hd,co as kf,cp as Tf,cq as gi,cr as Jj,dm as fc,dn as id,dp as Uf,dq as hi,dr as Kj,em as gc,en as jd,ep as Vf,eq as ii,er as Lj,fm as hc,fn as kd,fp as Wf,fq as ji,fr as Mj,gm as ic,gn as ld,gp as Xf,gq as ki,gr as Nj,hm as jc,hn as md,hp as Yf,hq as li,hr as Oj,in as nd,ip as Zf,iq as mi,ir as Pj,jn as od,jp as _f,jq as ni,jr as Qj,km as kc,kn as pd,kp as $f,kq as oi,kr as Rj,lm as lc,ln as qd,lp as ag,lq as pi,ml as xa,mm as mc,mn as rd,mp as bg,mq as qi,nl as ya,nm as nc,nn as sd,np as cg,nq as ri,ol as za,om as oc,on as td,op as dg,oq as si,pl as Aa,pm as pc,pn as ud,pp as eg,pq as ti,ql as Ba,qm as qc,qn as vd,qp as fg,qq as ui,rl as Ca,rm as rc,rn as wd,rp as gg,rq as vi,sl as Da,sm as sc,sn as xd,sp as hg,sq as wi,tl as Ea,tm as tc,tn as yd,tp as ig,tq as xi,ul as Fa,um as uc,un as zd,uo as lf,up as jg,uq as yi,vl as Ga,vm as vc,vn as Ad,vp as kg,vq as zi,wl as Ha,wm as wc,wn as Bd,wo as mf,wp as lg,wq as Ai,xl as Ia,xm as xc,xn as Cd,xp as mg,xq as Bi,yl as Ja,ym as yc,yn as Dd,yo as nf,yp as ng,yq as Ci,zl as Ka,zm as Fc,zn as Ed,zo as of,zp as og,zq as Di}from"./chunk-havegv3v.js";import{Ar as q,As as ka,Br as r,Bs as la,Cr as s,Cs as ma,Dr as t,Ds as na,Er as u,Es as oa,Fr as v,Fs as pa,Gr as w,Gs as qa,Hr as x,Hs as ra,Ir as y,Is as sa,Jr as z,Js as ta,Kr as A,Ks as ua,Lr as B,Ls as va,Mr as C,Ms as wa,Nr as D,Or as E,Pr as F,Qr as G,Rr as H,Sr as I,Tr as J,Ur as K,Vr as L,cs as M,ds as N,es as O,fs as P,gs as Q,hs as R,is as S,js as T,ks as U,lr as b,ls as V,mr as c,ms as W,nr as d,ns as X,or as e,os as Y,pr as f,ps as Z,qr as g,qs as _,rr as h,rs as $,sr as i,ss as aa,tr as j,ts as ba,ur as k,us as ca,vr as l,vs as da,wr as m,ws as ea,xr as n,xs as fa,yr as o,ys as ia,zr as p,zs as ja}from"./chunk-ymc99r5x.js";import{Ns as Zh,Os as _h,Ps as $h,Qs as ai,Rs as bi,Ss as ci,Ts as di,Us as ei,Vs as fi}from"./chunk-dcxtrqfy.js";import{Ws as ga,Xs as ha}from"./chunk-jj6yp7gm.js";import{Ys as Kb,Zs as Lb,_s as Mb}from"./chunk-qjkzpd68.js";import{$s as ye,at as ze,bt as Ae}from"./chunk-bq6q6pjx.js";import{kt as zc,lt as Ac,nt as Bc,wt as Cc,xt as Dc,yt as Ec}from"./chunk-0xnvkqn6.js";import{At as Rb,Bt as Sb,Ct as Tb,Dt as Ub,Et as Vb,zt as Qb}from"./chunk-fv923f7g.js";import{Ft as Id,Gt as Jd,Ht as Kd,It as Ld,Jt as Md,Kt as Nd,Lt as Od,Mt as Pd,Nt as Qd,Ot as Rd,Pt as Sd,Qt as Td,Rt as Ud,St as Vd,Tt as Wd,Ut as Xd}from"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import{$t as pb,_t as ob,au as qb,bu as rb,cu as sb,du as tb,eu as ub,fu as vb,gu as wb,hu as xb,iu as yb,ju as zb,ku as Ab,lu as Bb,mu as Cb,nu as Db,ou as Eb}from"./chunk-h7v70dbp.js";import{Bu as Sa,Cu as Ta,Iu as Ua,Ju as Va,Ku as Wa,Lu as Xa,Mu as Ya,Nu as Za,Ou as _a,Pu as $a,Qu as ab,Ru as bb,Su as cb,Tu as db,Uu as eb,Vu as fb,Wu as gb,Yu as hb,su as Pa,tu as Qa,wu as Ra}from"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{tk as writeNetlifyConfig,km as writeManifest,Yk as writeImageManifest,Bo as wrapComponentForHMR,vr as withDefaults,Gj as webComponentDirectiveHandler,qp as watermark,sq as watchViews,gl as watchMultiple,hl as watchEffect,fl as watch,Fe as warmImagePlaceholders,ul as waitForStore,X as waitForLocale,no as virtualPathFor,tj as videoDirective,G as validators,zr as validated,he as validateValueEnhanced,xh as validateTemplate,vp as validateParams,ie as validateFormEnhanced,hq as validateFile,de as validateFields,ce as validateField,zh as validateDirective,Cd as validateCspDirectives,Oj as validateConfig,pm as validateComponentScripts,Nm as validateComponentProps,vg as validateClientScript,uh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Mh as userComponentFileExists,ah as useVirtualList,Qd as useTitle,tl as useStoreOrThrow,To as useStore,dk as useStorage,Dq as useSlots,fk as useSessionStorage,Nd as useSeoMeta,vl as useRouteParams,xl as useRouteParamOrThrow,wl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,zl as useMiddlewareValue,yl as useMiddlewareState,ek as useLocalStorage,uo as useLoadingIndicator,Ld as useHead,rh as useForm,Fq as useAttrs,jq as uploadFiles,iq as uploadFile,ql as updateInstance,Ve as untrack,ai as unregisterDirective,rl as unmountInstance,yc as unescapeHtml,qo as typecheckStxFiles,Lh as transpileTypeScript,ir as translate,Ba as transitionDirective,_b as transformAutoImports,Hm as toUsers,Gm as toUser,$o as thumbnail,aq as thumbHashToRGBA,bq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,yo as stxClientHelpers,Ff as structuredDataDirective,lr as stripLocalePrefix,Xl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,tn as stringToStream,qd as strictCspPreset,se as streamingSuspenseDirective,we as streamToResponse,qe as streamTemplateSimple,ke as streamTemplate,_j as stopHmrServer,Dm as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,pg as startsDocument,Vn as startProductionServer,Jn as startInteractive,Cm as startBroadcasting,nr as stampLocaleLayoutGroup,Ia as staggerDirective,tp as srcsetUrls,Ja as springDirective,$c as splitByPipe,Tl as spaNavVaryHeaders,oo as sourcePathFor,Ap as smartBatchSign,Oh as slotContentHasExpressions,yp as signUrl,Jh as shouldTranspileTypeScript,Xj as shouldReloadOnChange,Dp as shouldRefreshSignature,Yj as shouldIgnoreFile,Ug as shouldCacheComponent,dp as sharpen,Cr as shape,Sb as setStateDir,Dl as setRouteParams,El as setMiddlewareState,Ee as setImagePlaceholder,xq as setGlobalProvide,b as setErrorLocale,_k as setCurrentInstance,hj as setCachedVideoResult,Yi as setCachedImageResult,Si as setCached,Fr as serveStxFile,Hr as serveMultipleStxFiles,Sj as serveMarkdownFile,eo as serveFile,Ir as serveApp,co as serve,Eo as serializeState,jn as serializeSetCookie,fp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,xj as scopeHTML,wj as scopeCSS,If as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,jp as saturation,wp 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,yf as runPreProcessingMiddleware,zf as runPostProcessingMiddleware,Mn as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,ol as runHooks,br as runDoctor,Re as runDestroyCallbacks,Nf as runComposers,kp as rotate,vh as rewriteImagesWithSiblings,Vc as responseBindings,Sh as resolveTemplatePath,ha as resolveStxTargets,Kj as resolveStxDirectories,hr as resolveI18n,Zo as resize,ec as resetPlaceholders,Kd as resetHead,Do as resetHMRHandler,o as resetErrorConfig,xr as required,ic as replacePlaceholders,qq as renderView,qj as renderVideoComponent,Xb as renderVendorStyleTags,Mq as renderToString,Nq as renderToStream,Oq as renderToDOM,$p as renderThumbhashToCanvas,_q as renderTemplateString,Yq as renderTemplate,Zq as renderString,ne as renderStreamingPage,Eh as renderSlot,Kg as renderSSRSuspense,Lp as renderProtectedVideo,Kp as renderProtectedImg,xp as renderMediaUpload,Xq as renderMarkdownView,am as renderLayoutTypes,aj as renderImgComponent,Ok as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,tq as renderEmail,Qh as renderComponentWithSlot,Td as renderBodyAttrs,Oo as render,sd as relaxedCspPreset,be as registerValidationRule,ue as registerStreamingDirectives,Vo as registerStoresClient,Bl as registerStore,Gf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,Zh as registerDirective,Bd as registerCspDirectives,Qm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,cl as ref,Bn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Qj as readMarkdownFile,$e as readFileCached,dl as reactive,op as quality,Ip as pruneSignatureCache,Vi as pruneCache,vq as provide,Wq as protectCodeBlocks,wr as prop,Qf as processVueTemplate,_g as processVirtualListDirectives,ch as processVirtualGridDirectives,pj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Eg as processTransitionDirectives,Hg as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Ag as processTeleportDirectives,Ig as processSuspenseDirectives,Bf as processStructuredData,oe as processStreamDirectives,Wc as processStatusDirective,ph as processStaticDirectives,wf as processStackReplacements,vf as processStackPushDirectives,Fh as processSlots,Vl as processShell,He as processServerBindings,Cf as processSeoDirective,ve as processSectionDirectives,Tf as processScopedStyles,Gc as processReactiveBindings,Mp as processProtectedMedia,ih as processPartialHydrationDirectives,ug as processOnceDirective,xf as processMiddleware,Af as processMetaDirectives,Xd as processMetaDirective,Rj as processMarkdownFileDirectives,Xh as processMarkdownDirectives,qf as processLoops,Sg as processKeepAliveDirectives,tg as processJsonDirective,bh as processInfiniteListDirectives,uf as processIncludes,cj as processImgComponents,Qk as processImageComponents,Dk as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Rf as processDynamicComponents,wh as processDirectives,fi as processDirectiveAttributes,zg as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Dr as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Ng as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ae as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,to as preloadIslandHandlers,Ge as preloadIconCollection,ym as poolStrings,Ij as pluginManager,Ce as placeholdersWarmed,Dg as performLeave,Cg as performEnter,Se as pendingLifecycleCounts,We as peek,rf as partialsCache,rj as parseVideoDirectiveOptions,Xo as parseUrl,cq as parseThumbhashString,fd as parseSwitchBlock,Ch as parseSlots,Dh as parseSlotElement,kd as parseScriptDeclarations,Ej as parseSFCComponent,Np as parseProtectedArgs,pf as parseLoopBinding,bj as parseImgComponent,ti as parseImageUrl,Pk as parseImageComponent,Kn as parseFormBody,hd as parseExpressionWithFilters,Rm as parseDefaults,yn as parseCookies,Nl as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,yr as optional,zm as optimizeTemplate,Vk as optimizeImage,Wk as optimizeDirectory,Ar as oneOf,sf as onceStore,ll as onUpdated,Fc as onUpdate,nl as onUnmounted,Il as onServer,jl as onMounted,Oe as onMount,oh as onHydrated,Bq as onErrorCaptured,Pe as onDestroy,Yg as onDeactivated,Hl as onClient,kl as onBeforeUpdate,ml as onBeforeUnmount,il as onBeforeMount,Xg as onActivated,Xp as observeElement,Cn as notFound,Yf as normalizeCriticalHeadOrder,Aq as nextTick,Um as negotiateEncoding,Ua as navigateTo,pl as mountInstance,Ea as motionDirective,rd as moderateCspPreset,xm as minifyHtml,Ef as metaDirective,hg as metaDedupKey,Yo as mergeParams,jg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Yh as markdownDirectiveHandler,Pj as markdownCache,ga as looksLikeGlob,kr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Lj as loadStxConfig,db as loadMiddlewareFromDirectory,lm as loadManifest,Tp as loadElement,Em as loadChannels,rr as lintStxStrict,Vp as lazyLoadAll,Up as lazyLoad,Ha as keyframeDirective,Kq as jsxs,Lq as jsxDEV,Jq as jsx,An as jsonResponse,te as islandDirective,l as isTest,Yl as isSpaNavigation,Rl as isSpaNavRequest,Bp as isSignatureValid,Te as isSignal,Bk as isSharpAvailable,mn as isServerEnvironment,Fl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Qp as isNativeLazySupported,Vq as isMarkdownPath,Q as isLoading,R as isLoaded,Ih as isJavaScriptScript,Rp as isIntersectionObserverSupported,Jk as isImageFile,Ck as isImageBackendAvailable,aa as isICUFormat,nh as isHydrated,Nh as isHydrateTrigger,Oc as isHttpStatus,ln as isEdgeEnvironment,sr as isDirectiveKind,k as isDevelopment,Ue as isDerived,Wj as isCssOnlyChange,Tm as isCompressible,Gl as isClient,Pg as isAsyncComponent,Ln as isActionableMethod,gp as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,gr as injectThemeBootstrap,Df as injectSeoTags,dr as injectSeo,kf as injectRouterScript,Vj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,rg as injectConfigHeadTags,Xf as injectColorModeBootScript,lg as injectCloakStyle,cg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,wq as inject,Al as initStoreRegistry,wk as initNetlify,vo as initLoadingIndicator,Sp as initLazyLoading,In as initFile,_p as initBlurUp,eq as initAllBlurUp,ej as imgDirective,Tk as imageDirective,Tn as hydrateTemplateStream,Sn as hydrateTemplate,so as hydrateIslands,kh as hydrateIsland,Un as hydrateFragment,lh as hydrateByStrategy,mh as hydrateAll,Lo as hydrate,bo as htmlResponse,ng as hoistLeadingHeadTags,Zf as hoistColorModeBootScript,lb as heatmapDirective,Oi as hashString,jf as hashFilePath,Mi as hashFile,Ni as hashBuffer,Pf as hasVueTemplateSyntax,of as hasVariables,Qo as hasStore,jc as hasPlaceholders,uk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,qg as hasDocumentShell,Ah as hasDirectives,ma as hasDOMSupport,Mk as handleImageRequest,Cq as handleError,Sq as h,Ik as groupVariantsByFormat,ep as grayscale,Wn as gitHash,rm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,pk as getTotalSize,Cp as getTimeUntilExpiry,wg as getStoreScript,Ro as getStoreNames,Po as getStore,ik as getStorageSize,hk as getStorageKeys,Th as getSourceLineInfo,Kh as getSharedTranspiler,la as getScreenReaderOnlyStyle,yj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,yh as getPositionInfo,gc as getPlaceholderRegistry,Li as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Kk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Be as getImagePlaceholder,Ek as getImageMetadata,ye as getImageDelivery,Ko as getHydrationRuntime,Cl as getHydratedStoreState,Zj as getHmrServer,Id as getHead,Co as getHMRHandler,xi as getFormatExtension,Qi as getFileMtime,Hk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,$h as getDirectives,_h as getDirective,$k as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Wh as getComponentCacheStats,gj as getCachedVideoResult,Gp as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ji as getCachedPlaceholder,Xi as getCachedImageResult,Ri as getCached,Ui as getCacheStats,ag as getBuildId,Bm as getBroadcastServer,wi as getBestVariant,nc as getAllFilters,ki as generateWidthSrcset,$g as generateVirtualListCSS,lq as generateVideoPreview,je as generateValidationScript,mq as generateUploadRuntime,sm as generateTreeShakenBundle,Gg as generateTransitionRuntime,Fg as generateTransitionCSS,kj as generateThumbnails,Ci as generateThumbhashPlaceholder,bn as generateTemplatesDocs,Mg as generateSuspenseRuntime,Lg as generateSuspenseCSS,Fo as generateStateScript,ui as generateSrcsetData,$i as generateSrcset,Fk as generateSrcSet,lj as generateSpriteSheet,uq as generateSpaShell,vi as generateSourceTags,qi as generateSizesFromBreakpoints,pi as generateSizesAttribute,Gk as generateSizes,Hf as generateSitemapIndex,er as generateSitemap,Pp as generateSimpleMediaPicker,Jp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,vj as generateScopeId,Fj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Jf as generateRobotsTxt,fr as generateRobots,_i as generateResponsiveVariants,Bj as generateReactiveWebComponentTS,Aj as generateReactiveWebComponent,Dj as generateReactiveRuntime,Cj as generateReactiveMixin,jj as generatePoster,Ii as generatePlaceholderStyle,Hi as generatePlaceholderCSS,Bi as generatePlaceholder,jh as generatePartialHydrationCSS,ld as generateNonce,qk as generateNetlifyToml,oq as generateMinifiedMediaRuntime,nq as generateMediaRuntime,Op as generateMediaManagerEmbed,jm as generateManifest,xo as generateLoadingIndicatorHtml,Zp as generateLazyLoadRuntime,bm as generateLayoutTypes,Ei as generateLQIP,Wg as generateKeepAliveRuntime,Vg as generateKeepAliveCSS,qh as generateIslandManifest,kq as generateImagePreview,Xk as generateImageManifest,Jo as generateHydrationScript,xe as generateHydrationRuntime,Mo as generateHydrationCSS,dh as generateHydrationBootstrap,Uj as generateHotReloadScript,jb as generateHeatmapScript,Ao as generateHMRClientScript,mj as generateHLSManifest,Go as generateEventBindings,oi as generateDprSrcsetWithVariableQuality,ni as generateDprSrcset,og as generateDocumentShell,gn as generateDocs,cn as generateDirectivesDocs,ei as generateDirectiveRuntime,Kf as generateDefaultRobotsTxt,nj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Hq as generateCompositionRuntime,an as generateComponentsDocs,eh as generateComponentManifest,_m as generateComponentDoc,Gi as generateColorPlaceholder,Wf as generateColorModeBootScript,sl as generateClientRuntime,Pi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,fq as generateBlurUpRuntime,gq as generateBlurUpCSS,Hc as generateBindingsRuntime,li as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Rg as generateAsyncComponentRuntime,Qg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,ro as formatTypecheckDiagnostics,lo as formatTypeErrors,Fn as formatStxContent,ok as formatSize,Ta as formatRoutes,Gn as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,cr as formatDoctorReport,dn as formatDocsAsMarkdown,fn as formatDocsAsJson,en as formatDocsAsHtml,np as format,wm as foldConstants,mp as flipVertical,lp as flipHorizontal,cm as fingerprint,po as findRuntimeTypeDeclarations,ar as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,tm as findDeadCode,tm as findDeadBranches,Ol as findContainerRegion,$m as findComponentFiles,Gr as findCommonDir,nk as filterRequiredFiles,Rh as fileExists,lf as extractVariables,hm as extractTemplateExpressions,pe as extractStreamBoundaries,Ho as extractState,Gh as extractSlotContent,nf as extractScriptFromTemplate,gm as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Fi as extractDominantColor,jd as extractDirectiveParams,Bh as extractDirectiveNames,Zl as extractContainerContent,Ym as extractComponentProps,fh as extractComponentName,Zm as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,gh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,zj as extractAndScopeStyles,Hb as extractAndProcessEvents,bk as externalizeSharedAssets,ck as externalizeRepeatedAssets,ak as externalizeHtml,xc as evaluateExpression,vm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Bg as ensureTeleportTargets,sg as ensureDocumentShell,fe as enhancedValidationRules,Wm as enableDevTools,um as eliminateDeadCode,Me as effect,up as dprUrls,hn as docsCommand,$l as discoverLayoutNames,Yp as disconnectObserver,Xm as disableDevTools,F as devHelpers,Ul as detectShell,kn as detectRuntime,rk as detectProjectConfig,yi as detectFormat,om as detectBuildMode,Le as derived,vk as deploy,Nj as defineStxConfig,Uo as defineStore,Eq as defineSlots,qr as defineSiteConfig,ur as definePropsWithValidation,tr as defineProps,Hj as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,sh as defineForm,zq as defineExpose,yq as defineEmits,bi as defineDirective,Uq as defineCustomElement,Rn as defineConfig,ci as defineClientDirective,Og as defineAsyncComponent,pq as defaultMediaConfig,Zk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Jj as defaultConfig,Er as default,zc as deepMergeThemes,Sf as dedupeScopedStyles,Di as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,dq as crossfadeTransition,_o as crop,Zg as createVirtualList,sj as createVideoDirective,wn as createVercelHandler,io as createTypeChecker,fa as createTranslateFilter,sn as createTextEncoderStream,Tq as createStxApp,rn as createStreamingResponse,re as createStreamRenderer,So as createStore,Za as createStorageManager,Xa as createServerCookieManager,bl as createScope,Jg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,go as createRoute,cl as createRef,dl as createReactive,Gq as createProvideContext,Yn as createProject,Qn as createProductionBuild,fc as createPlaceholder,Am as createOptimizedBuild,xn as createNetlifyHandler,jk as createNetlifyClient,fb as createMiddlewareContext,fo as createMiddleware,Wp as createLazyObserver,Tg as createKeepAliveCache,on as createKVNamespace,hh as createIslandRegistry,dj as createImgDirective,Uk as createImagePlugin,Nk as createImageHandler,Sk as createImageDirective,nb as createHeatmapAggregator,mk as createFileManifest,nn as createEnvAccessor,z as createEnhancedError,qn as createEdgeHandler,pn as createEdgeCache,Uh as createDetailedErrorMessage,vn as createDenoHandler,sk as createDefaultNetlifyConfig,Ed as createCspHeaders,zn as createCookie,el as createComputed,al as createComponentInstance,un as createCloudflareHandler,Ya as createClientCookieManager,di as createBuiltinDirectives,Tq as createApp,Ka as createAnimationTimeline,bp as cover,mf as convertToCommonJS,ip as contrast,ap as contain,y as consoleError,m as configureErrorHandling,Mj as config,el as computed,Vm as compressResponse,Mf as composerPattern,Lf as composer,Wl as composeShellWithPage,Pm as componentDirective,Ph as componentClientSignalNames,im as compileTemplate,a as collectRepeatedFlag,lk as collectDeployFiles,mg as cloakStyleFragment,ij as clearVideoCache,N as clearTranslationCache,xg as clearStoreCache,gk as clearStorage,Hp as clearSignatureCache,Ki as clearPlaceholderCache,tf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,De as clearImagePlaceholders,ze as clearImageDeliveryCatalog,Rk as clearImageCache,e as clearErrorMessages,ff as clearDevCaches,oc as clearCustomFilters,Of as clearComposers,yg as clearComposableCache,Vh as clearComponentCache,Ti as clearCache,Db as clearBlankCache,wo as cleanupLoadingIndicator,Ll as classifyScript,Ml as classifyAllScripts,jo as checkTemplateFile,ko as checkTemplate,gf as checkCache,Ep as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Km as channel,En as captureScreenshots,Dn as captureScreenshot,Z as cancelPendingLoads,kk as calculateSha1,mi as calculateOptimalWidths,hf as cacheTemplate,uj as buildWebComponents,mo as buildVirtualSource,rq as buildViews,Wo as buildUrl,le as buildSuspenseResolveScript,pr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,dm as buildRuntimeAsset,em as buildRouterAsset,or as buildLangPickerScript,si as buildImageUrl,dg as buildIdFragment,ig as buildHtmlAttrs,mm as buildForProduction,Sm as buildComponentLibrary,Fp as buildAuthParams,nm as buildApp,mr as buildAlternateLinks,Pn as build,Im as broadcastPrivate,Jm as broadcastPresence,Fm as broadcast,hp as brightness,Mb as bracketDepths,cp as blur,Eb as blankInertHtmlRegions,zp as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,pp as auto,ja as attributeValue,fm as assetTags,Fb as asInvocableStatement,Br as arrayOf,jr as applyTranslations,Zi as applyTransformations,Hh as applySlots,Om as applyPropDefaults,sp as applyPreset,kg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Sl as appendVary,td as apiCspPreset,Da as animationGroupDirective,oj as analyzeVideo,qm as analyzeUsage,Jl as analyzeTemplate,Kl as analyzeProject,qm as analyzeDirectiveUsage,Lc as analyticsDirective,$n as addStore,_n as addPage,xd as addNonceToInlineContent,ao as addLayout,Zn as addComponent,Nn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,bg as __setBuildIdForTest,fj as VideoProcessorCache,th as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,ho as TemplateTypeChecker,Hn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Pq as Show,me as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Pl 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,On as ProductionBuild,Rq as Portal,Xn as PROJECT_TEMPLATES,rp as PRESETS,sb as NON_CLIENT_PRIMITIVES,No as MemorySessionStore,ji as MIME_TYPES,gi as MEDIA_DEFAULT_WIDTHS,ii as MEDIA_DEFAULT_FORMATS,_l as LAYOUT_TYPES_FILE,Wi as ImageProcessorCache,Lk as ImageProcessingError,Io as HydrationRuntime,Tj as HotReloadServer,mb as HeatmapAggregator,gg as HTML_CLASS_MARKER,fg as HTML_ATTRS_MARKER,Iq as Fragment,Qq as For,Ql as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,$j as EXTERNALIZED_ASSET_DIR,xk as DeployError,yk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Ak as DEFAULT_QUALITY,zi as DEFAULT_PLACEHOLDER_OPTIONS,zk as DEFAULT_FORMATS,hi as DEFAULT_DPR_VALUES,zo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,ri as COMMON_SIZES,Uf as COLOR_MODE_BOOT_MARKER,Vf as COLOR_MODE_BOOT_GLOBAL,eg as CLOAK_STYLE,Mm as BroadcastServer,Lm as Broadcast,_f as BUILD_ID_META,$f as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Ai as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,$q as $path};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  import{Aj as _}from"./chunk-fed3xsp9.js";function Y(q,z){let B={};for(let C of q)B[C]=_(z(C));return new Proxy({},{get:(C,G)=>B[G]?.(),set:(C,G,L)=>{if(B[G])B[G].set(L);else B[G]=_(L);return!0},has:(C,G)=>(G in B),deleteProperty:(C,G)=>{return delete B[G],!0},ownKeys:()=>Reflect.ownKeys(B),getOwnPropertyDescriptor:(C,G)=>(G in B)?{enumerable:!0,configurable:!0,writable:!0,value:B[G]()}:void 0})}function T(q,z){let B={};for(let C of z)B[C]=q[C];return B}function $(q,z){let B=Object.keys(q),C=Y(B,(I)=>z?.[I]??q[I].getDefaultValue()),G=Y(B,()=>[]),L=Y(B,()=>!1),W=Y(B,()=>!1),X=Y(B,()=>!1),J=_(!1);async function M(I){X[I]=!0;let Q=await q[I].validate(C[I],C);return G[I]=Q,X[I]=!1,Q.length===0}async function O(){J.set(!0);let I=await Promise.all(B.map(M));return J.set(!1),I.every(Boolean)}function j(){for(let I of B)C[I]=z?.[I]??q[I].getDefaultValue(),G[I]=[],L[I]=!1,W[I]=!1}function A(I){for(let Q of B)if(Q in I)C[Q]=I[Q],W[Q]=!0}function H(I,Q){C[I]=Q,W[I]=!0}function K(I,Q=!0){if(L[I]=Q,Q)M(I)}function U(I){return{value:C[I],errors:G[I],touched:L[I],dirty:W[I],valid:G[I].length===0,validating:X[I]}}function k(I){return async(Q)=>{Q?.preventDefault?.();for(let N of B)L[N]=!0;if(await O())await I(T(C,B))}}return{values:C,errors:G,touched:L,dirty:W,get isValid(){return B.every((I)=>G[I].length===0)},get isValidating(){return J()||B.some((I)=>X[I])},get isDirty(){return B.some((I)=>W[I])},validate:O,validateField:M,reset:j,setValues:A,setFieldValue:H,setFieldTouched:K,getFieldState:U,handleSubmit:k}}var E=$;class Z{rules=[];defaultValue="";addRule(q){let z=new Z;return z.rules=[...this.rules,q],z.defaultValue=this.defaultValue,z}required(q="This field is required"){return this.addRule({name:"required",message:q,validate:(z)=>{if(z===null||z===void 0)return q;if(typeof z==="string"&&z.trim()==="")return q;if(Array.isArray(z)&&z.length===0)return q;return!0}})}email(q="Please enter a valid email"){return this.addRule({name:"email",message:q,validate:(z)=>{if(!z)return!0;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(z))||q}})}url(q="Please enter a valid URL"){return this.addRule({name:"url",message:q,validate:(z)=>{if(!z)return!0;try{return new URL(String(z)),!0}catch{return q}}})}min(q,z){let B=z||`Must be at least ${q} characters`;return this.addRule({name:"min",message:B,validate:(C)=>{if(!C)return!0;return String(C).length>=q||B}})}max(q,z){let B=z||`Must be no more than ${q} characters`;return this.addRule({name:"max",message:B,validate:(C)=>{if(!C)return!0;return String(C).length<=q||B}})}length(q,z,B){let C=B||`Must be between ${q} and ${z} characters`;return this.addRule({name:"length",message:C,validate:(G)=>{if(!G)return!0;let L=String(G).length;return L>=q&&L<=z||C}})}pattern(q,z="Invalid format"){return this.addRule({name:"pattern",message:z,validate:(B)=>{if(!B)return!0;return q.test(String(B))||z}})}hasUppercase(q="Must contain an uppercase letter"){return this.pattern(/[A-Z]/,q)}hasLowercase(q="Must contain a lowercase letter"){return this.pattern(/[a-z]/,q)}hasNumber(q="Must contain a number"){return this.pattern(/\d/,q)}hasSpecial(q="Must contain a special character"){return this.pattern(/[!@#$%^&*(),.?":{}|<>]/,q)}alphanumeric(q="Only letters and numbers allowed"){return this.pattern(/^[a-zA-Z0-9]+$/,q)}startsWithLetter(q="Must start with a letter"){return this.pattern(/^[a-zA-Z]/,q)}noSpaces(q="Spaces are not allowed"){return this.addRule({name:"noSpaces",message:q,validate:(z)=>{if(!z)return!0;return!String(z).includes(" ")||q}})}number(q="Must be a number"){let z=this.addRule({name:"number",message:q,validate:(B)=>{if(!B&&B!==0)return!0;return!Number.isNaN(Number(B))||q}});return z.defaultValue=0,z}integer(q="Must be a whole number"){return this.addRule({name:"integer",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number.isInteger(Number(z))||q}})}positive(q="Must be a positive number"){return this.addRule({name:"positive",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number(z)>0||q}})}negative(q="Must be a negative number"){return this.addRule({name:"negative",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number(z)<0||q}})}minValue(q,z){let B=z||`Must be at least ${q}`;return this.addRule({name:"minValue",message:B,validate:(C)=>{if(!C&&C!==0)return!0;return Number(C)>=q||B}})}maxValue(q,z){let B=z||`Must be no more than ${q}`;return this.addRule({name:"maxValue",message:B,validate:(C)=>{if(!C&&C!==0)return!0;return Number(C)<=q||B}})}between(q,z,B){let C=B||`Must be between ${q} and ${z}`;return this.addRule({name:"between",message:C,validate:(G)=>{if(!G&&G!==0)return!0;let L=Number(G);return L>=q&&L<=z||C}})}matches(q,z){let B=z||`Must match ${q}`;return this.addRule({name:"matches",message:B,validate:(C,G)=>{if(!G)return!0;return C===G[q]||B}})}oneOf(q,z){let B=z||`Must be one of: ${q.join(", ")}`;return this.addRule({name:"oneOf",message:B,validate:(C)=>{if(!C)return!0;return q.includes(C)||B}})}notOneOf(q,z){let B=z||`Cannot be one of: ${q.join(", ")}`;return this.addRule({name:"notOneOf",message:B,validate:(C)=>{if(!C)return!0;return!q.includes(C)||B}})}date(q="Must be a valid date"){return this.addRule({name:"date",message:q,validate:(z)=>{if(!z)return!0;let B=new Date(String(z));return!Number.isNaN(B.getTime())||q}})}before(q,z){let B=new Date(q),C=z||`Must be before ${B.toLocaleDateString()}`;return this.addRule({name:"before",message:C,validate:(G)=>{if(!G)return!0;return new Date(String(G))<B||C}})}after(q,z){let B=new Date(q),C=z||`Must be after ${B.toLocaleDateString()}`;return this.addRule({name:"after",message:C,validate:(G)=>{if(!G)return!0;return new Date(String(G))>B||C}})}custom(q,z="Invalid value"){return this.addRule({name:"custom",message:z,validate:q})}async(q,z="Invalid value"){return this.addRule({name:"async",message:z,async:!0,validate:q})}when(q,z){let B=new Z;B.rules=[...this.rules],B.defaultValue=this.defaultValue;for(let C of z.getRules())B.rules.push({...C,validate:(G,L)=>{if(!q(G,L||{}))return!0;return C.validate(G,L)}});return B}getRules(){return this.rules}getDefaultValue(){return this.defaultValue}default(q){let z=new Z;return z.rules=[...this.rules],z.defaultValue=q,z}async validate(q,z){let B=[];for(let C of this.rules){let G=await C.validate(q,z);if(G!==!0)B.push(G)}return B}validateSync(q,z){let B=[];for(let C of this.rules){if(C.async)continue;let G=C.validate(q,z);if(G!==!0)B.push(G)}return B}}var y=new Z;function w(q,z,B){let C=/@error\s*\(\s*([^)]+)\s*\)([\s\S]*?)@enderror/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return M.map((O)=>{return W.replace(/\{\{\s*message\s*\}\}/g,O)}).join(`
3
3
  `)}catch{return""}})}function D(q,z,B){let C=/@errors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@enderrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return M.map((O)=>W.replace(/\{\{\s*message\s*\}\}/g,O)).join(`
4
- `)}catch{return""}})}function S(q,z,B){let C=/@hasErrors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@endhasErrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return W}catch{return""}})}function V(q,z,B){let C=q;return C=w(C,z,B),C=D(C,z,B),C=S(C,z,B),C}export{$ as vh,E as wh,Z as xh,y as yh,w as zh,D as Ah,S as Bh,V as Ch};
4
+ `)}catch{return""}})}function S(q,z,B){let C=/@hasErrors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@endhasErrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return W}catch{return""}})}function V(q,z,B){let C=q;return C=w(C,z,B),C=D(C,z,B),C=S(C,z,B),C}export{$ as ii,E as ji,Z as ki,y as li,w as mi,D as ni,S as oi,V as pi};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{dv as W,ev as k,fv as G}from"./chunk-qc1f74ek.js";import A from"fs";import B from"path";function h(j){let q=0;for(let K=0;K<j.length;K++){let Q=j[K];q=(q<<5)-q+Q,q=q&q}return Math.abs(q).toString(16).padStart(8,"0")}function u(j,q){let K=B.basename(j);for(let Q of q)if(Q.startsWith("*.")){let Y=Q.slice(1);if(K.endsWith(Y))return!0}else if(Q.includes("*")){let Y=new RegExp(`^${Q.replace(/\*/g,".*")}$`);if(Y.test(K)||Y.test(j))return!0}else if(K===Q||j.includes(Q))return!0;return!1}function f(j,q,K){let Q=B.extname(j).toLowerCase(),Y=l[Q],X=(K.maxFileSizeKB||500)*1024;if(q>X)return!1;if(K.exclude&&u(j,K.exclude))return!1;if(K.include&&K.include.length>0){for(let Z of K.include)if(Z.startsWith("*.")){if(j.endsWith(Z.slice(1)))return!0}else if(j.includes(Z))return!0}if(Y&&K[Y]===!0)return!0;if(!Y)return!1;return!1}function T(j,q,K,Q){let Y=A.readdirSync(j,{withFileTypes:!0});for(let X of Y){let Z=B.join(j,X.name);if(X.isDirectory()){if(["node_modules",".git",".stx"].includes(X.name))continue;T(Z,q,K,Q)}else if(X.isFile()){let O=A.statSync(Z),_=B.relative(q,Z);if(f(_,O.size,K)){let $=A.readFileSync(Z),L=h($),V=`/${_.replace(/\\/g,"/")}`;Q.push({url:V,revision:L,size:O.size})}}}}function U(j,q){let K=q.pwa?.precache,Q=[];if(!K?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!A.existsSync(j))return{entries:[],totalSize:0,fileCount:0};T(j,j,K,Q),Q.sort((X,Z)=>X.url.localeCompare(Z.url));let Y=Q.reduce((X,Z)=>X+Z.size,0);return{entries:Q,totalSize:Y,fileCount:Q.length}}function J(j){if(j.entries.length===0)return"[]";return`[
2
+ import{hv as W,iv as k,jv as G}from"./chunk-2vza9m2x.js";import A from"fs";import B from"path";function h(j){let q=0;for(let K=0;K<j.length;K++){let Q=j[K];q=(q<<5)-q+Q,q=q&q}return Math.abs(q).toString(16).padStart(8,"0")}function u(j,q){let K=B.basename(j);for(let Q of q)if(Q.startsWith("*.")){let Y=Q.slice(1);if(K.endsWith(Y))return!0}else if(Q.includes("*")){let Y=new RegExp(`^${Q.replace(/\*/g,".*")}$`);if(Y.test(K)||Y.test(j))return!0}else if(K===Q||j.includes(Q))return!0;return!1}function f(j,q,K){let Q=B.extname(j).toLowerCase(),Y=l[Q],X=(K.maxFileSizeKB||500)*1024;if(q>X)return!1;if(K.exclude&&u(j,K.exclude))return!1;if(K.include&&K.include.length>0){for(let Z of K.include)if(Z.startsWith("*.")){if(j.endsWith(Z.slice(1)))return!0}else if(j.includes(Z))return!0}if(Y&&K[Y]===!0)return!0;if(!Y)return!1;return!1}function T(j,q,K,Q){let Y=A.readdirSync(j,{withFileTypes:!0});for(let X of Y){let Z=B.join(j,X.name);if(X.isDirectory()){if(["node_modules",".git",".stx"].includes(X.name))continue;T(Z,q,K,Q)}else if(X.isFile()){let O=A.statSync(Z),_=B.relative(q,Z);if(f(_,O.size,K)){let $=A.readFileSync(Z),L=h($),V=`/${_.replace(/\\/g,"/")}`;Q.push({url:V,revision:L,size:O.size})}}}}function U(j,q){let K=q.pwa?.precache,Q=[];if(!K?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!A.existsSync(j))return{entries:[],totalSize:0,fileCount:0};T(j,j,K,Q),Q.sort((X,Z)=>X.url.localeCompare(Z.url));let Y=Q.reduce((X,Z)=>X+Z.size,0);return{entries:Q,totalSize:Y,fileCount:Q.length}}function J(j){if(j.entries.length===0)return"[]";return`[
3
3
  ${j.entries.map((K)=>` { url: '${K.url}', revision: '${K.revision}' }`).join(`,
4
4
  `)}
5
5
  ]`}function E(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(2)} MB`}var l;var F=G(()=>{l={".html":"includeHtml",".htm":"includeHtml",".js":"includeJs",".mjs":"includeJs",".css":"includeCss",".png":"includeImages",".jpg":"includeImages",".jpeg":"includeImages",".gif":"includeImages",".webp":"includeImages",".svg":"includeImages",".ico":"includeImages",".woff":"includeFonts",".woff2":"includeFonts",".ttf":"includeFonts",".eot":"includeFonts",".otf":"includeFonts"}});function g(j){let q={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return q[j]||q["network-first"]}function R(j){return g(j).className}function M(j){let q=j.pwa;if(!q?.enabled)return"";let K=q.routes||[],Q=q.cacheStorage,Y=[];for(let X of K){let Z=R(X.strategy),O=[];if(X.maxAgeSeconds||X.maxEntries||Q?.maxEntries){let $=X.maxEntries||Q?.maxEntries||100,L=X.maxAgeSeconds||(Q?.maxAge?Q.maxAge*24*60*60:void 0);O.push(`new ExpirationPlugin({
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ function A(h){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;h=h.replace(q,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
3
+ `});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return h=h.replace(v,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__composables
4
+ `}),h}function B(h){return h.replace(/^import\s+[^'"]*?from\s*['"][^'"]+['"]\s*;?[ \t]*$/gm,"").replace(/^import\s+['"][^'"]+['"]\s*;?[ \t]*$/gm,"")}
5
+ export{A as Vt,B as Wt};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Hk as a,Ik as b,Jk as c,Kk as d,Lk as e}from"./chunk-hpybjwwf.js";import"./chunk-qc1f74ek.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
2
+ import{Hk as a,Ik as b,Jk as c,Kk as d,Lk as e}from"./chunk-hpybjwwf.js";import"./chunk-2vza9m2x.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Yg as p}from"./chunk-qr82je1m.js";import{ph as a,rh as JF,sh as ZF,th as qF}from"./chunk-rbb7dvja.js";import{sj as C,tj as D}from"./chunk-866y9d8b.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{Cp as FF,Gp as c,Jm as u,_n as o,bm as d,br as n,dm as l,dr as N,fp as e,up as t}from"./chunk-y11cxbxd.js";import{tt as r}from"./chunk-wrzwgkbx.js";import{Wu as S,Yu as WF}from"./chunk-b6ej2fdf.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-yhqheg5m.js";import{rg as p}from"./chunk-fvej04d8.js";import{sj as C,tj as D}from"./chunk-9veqmqb6.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{$n as o,Dp as FF,Hp as c,Km as u,cm as d,cr as n,em as l,er as N,gp as e,vp as t}from"./chunk-havegv3v.js";import{yt as r}from"./chunk-0xnvkqn6.js";import{_u as S,av as WF}from"./chunk-drbbt69f.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
- export{g as Og,f as Pg,m as Qg,UF as Rg,i as Sg,dF as Tg};
4
+ export{g as Rf,f as Sf,m as Tf,UF as Uf,i as Vf,dF as Wf};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Oj as a,Pj as b,Qj as c,Rj as d,Sj as e,Tj as f,Uj as g,Vj as h,Wj as i,Xj as j,Yj as k}from"./chunk-rth88zfm.js";import"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
@@ -27,4 +27,4 @@ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FO
27
27
  `))Q+=`
28
28
  `}Q+=`NETLIFY_SITE_ID=${K.siteId}
29
29
  `,await Bun.write(W,Q)}return{configPath:V,siteId:K.siteId}}class R extends Error{code;constructor(K,L){super(K);this.name="DeployError",this.code=L}}function d(K){let L=process.platform,V=L==="darwin"?"open":L==="win32"?"start":"xdg-open";Bun.spawn([V,K],{stdio:["ignore","ignore","ignore"]})}
30
- export{D as Rf,h as Sf,x as Tf,T as Uf,v as Vf,z as Wf,N as Xf,u as Yf,j as Zf,q as _f,b as $f,P as ag,n as bg,i as cg,R as dg};
30
+ export{D as if,h as jf,x as kf,T as lf,v as mf,z as nf,N as of,u as pf,j as qf,q as rf,b as sf,P as tf,n as uf,i as vf,R as wf};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{dr as E}from"./chunk-y11cxbxd.js";import{gv as D}from"./chunk-qc1f74ek.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-2et5hxfv.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
- export{M as Ef};
2
+ import{er as E}from"./chunk-havegv3v.js";import{kv as D}from"./chunk-2vza9m2x.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-t2w7twke.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
+ export{M as Mg};
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ function N(D,G){let j=D[G],F=G+1;while(F<D.length){if(D[F]==="\\"){F+=2;continue}if(D[F]===j)return F+1;F++}return D.length}function O(D,G){let j=G+1;while(j<D.length){if(D[j]==="\\"){j+=2;continue}if(D[j]==="`")return j+1;if(D[j]==="$"&&D[j+1]==="{"){if(j=M(D,j+2),j<D.length)j++;continue}j++}return D.length}function M(D,G){let j=1,F=G;while(F<D.length){let H=D[F];if(H==="\\"){F+=2;continue}if(H==='"'||H==="'"){F=N(D,F);continue}if(H==="`"){F=O(D,F);continue}if(H==="/"&&D[F+1]==="/"){while(F<D.length&&D[F]!==`
3
+ `)F++;continue}if(H==="/"&&D[F+1]==="*"){F+=2;while(F<D.length&&D.slice(F,F+2)!=="*/")F++;F+=2;continue}if(H==="{"){j++,F++;continue}if(H==="}"){if(j--,j===0)return F;F++;continue}F++}return D.length}function R(D){let G="",j=0;while(j<D.length){let F=D.slice(j,j+2);if(F==="//"){while(j<D.length&&D[j]!==`
4
+ `)G+=" ",j++;continue}if(F==="/*"){while(j<D.length&&D.slice(j,j+2)!=="*/")G+=D[j]===`
5
+ `?`
6
+ `:" ",j++;G+=" ",j+=2;continue}let H=D[j];if(H==='"'||H==="'"){let J=H;G+=" ",j++;while(j<D.length&&D[j]!==J){if(D[j]==="\\"){G+=" ",j+=2;continue}G+=D[j]===`
7
+ `?`
8
+ `:" ",j++}G+=" ",j++;continue}if(H==="`"){G+=" ",j++;while(j<D.length&&D[j]!=="`"){if(D[j]==="\\"){G+=" ",j+=2;continue}if(D[j]==="$"&&D[j+1]==="{"){let J=j+2,K=M(D,J);if(G+=" ",G+=R(D.slice(J,K)),K<D.length)G+=" ";j=K+1;continue}G+=D[j]===`
9
+ `?`
10
+ `:" ",j++}G+=" ",j++;continue}G+=H,j++}return G}function U(D){let G=new Uint16Array(D.length),j=0,F=!0;for(let H=0;H<D.length;H++){let J=D[H];if(J===")"||J==="]"||J==="}")if(j===0)F=!1;else j--;if(G[H]=j,J==="("||J==="["||J==="{")j++}return{depths:G,balanced:F&&j===0}}
11
+ export{M as Ys,R as Zs,U as _s};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Jf as c,Kf as d,Lf as e,Mf as f,Nf as g,Of as h}from"./chunk-adr8nyhc.js";import{ng as a,qg as b}from"./chunk-fvej04d8.js";import"./chunk-tqgevvqn.js";import"./chunk-efr3ejqt.js";import"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ai as a,Bi as b,Ci as c,Di as d,Ei as e}from"./chunk-wyxw61az.js";import"./chunk-2vza9m2x.js";export{c as renderSSRSuspense,a as processSuspenseDirectives,e as generateSuspenseRuntime,d as generateSuspenseCSS,b as createSSRSuspense};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Vp as D,Zp as T}from"./chunk-y11cxbxd.js";import{bt as N}from"./chunk-wrzwgkbx.js";import{gv as L}from"./chunk-qc1f74ek.js";import Q from"fs";import Y from"path";var b=new Map,V=new Map;async function v(j){let z;for(let K=0;K<3;K++)try{let W=(await Q.promises.stat(j)).mtime.getTime(),J=V.get(j);if(J&&J.mtime===W)return J.content;let X=await Bun.file(j).text(),U=(await Q.promises.stat(j)).mtime.getTime();if(U!==W)continue;return V.set(j,{content:X,mtime:U}),X}catch(I){z=I;break}throw V.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function E(j){V.delete(j)}function F(j){for(let B of V.keys())if(B.startsWith(j))V.delete(B)}var $=null,G=null,k=null;function R(j){k=j}async function S(j=!1){let B=k??await import("./chunk-zg75gjns.js");if(j)return B.generateSignalsRuntimeDev();if($===null)$=B.generateSignalsRuntime();return $}var q=null;async function _(){if(q===null){let{getRouterScript:j}=await import("./chunk-dgrt76d2.js");q=j()}return q}function g(){V.clear(),T(),N(),$=null,G=null,q=null}function y(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 C(j,B){try{if(!B.cachePath)return null;let z=Y.resolve(B.cachePath),K=Y.join(z,`${M(j)}.html`),I=Y.join(z,`${M(j)}.meta.json`);if(!await D(K)||!await D(I))return null;let W=await Bun.file(I).text(),J=JSON.parse(W);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==y(B))return null;if((await Q.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Z of J.dependencies)if(await D(Z)){if((await Q.promises.stat(Z)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function u(j,B,z,K){try{if(!K.cachePath)return;let I=Y.resolve(K.cachePath);await Q.promises.mkdir(I,{recursive:!0});let W=Y.join(I,`${M(j)}.html`),J=Y.join(I,`${M(j)}.meta.json`),X=await Q.promises.stat(j);await Bun.write(W,B);let Z={sourcePath:j,mtime:X.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:y(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Z,null,2)),b.set(j,{output:B,mtime:X.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var O=16;function M(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,O)}
2
+ import{Wp as D,_p as T}from"./chunk-havegv3v.js";import{gt as N}from"./chunk-0xnvkqn6.js";import{kv as L}from"./chunk-2vza9m2x.js";import Q from"fs";import Y from"path";var b=new Map,V=new Map;async function v(j){let z;for(let K=0;K<3;K++)try{let W=(await Q.promises.stat(j)).mtime.getTime(),J=V.get(j);if(J&&J.mtime===W)return J.content;let X=await Bun.file(j).text(),U=(await Q.promises.stat(j)).mtime.getTime();if(U!==W)continue;return V.set(j,{content:X,mtime:U}),X}catch(I){z=I;break}throw V.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function E(j){V.delete(j)}function F(j){for(let B of V.keys())if(B.startsWith(j))V.delete(B)}var $=null,G=null,k=null;function R(j){k=j}async function S(j=!1){let B=k??await import("./chunk-gy933rct.js");if(j)return B.generateSignalsRuntimeDev();if($===null)$=B.generateSignalsRuntime();return $}var q=null;async function _(){if(q===null){let{getRouterScript:j}=await import("./chunk-3br3pt6k.js");q=j()}return q}function g(){V.clear(),T(),N(),$=null,G=null,q=null}function y(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 C(j,B){try{if(!B.cachePath)return null;let z=Y.resolve(B.cachePath),K=Y.join(z,`${M(j)}.html`),I=Y.join(z,`${M(j)}.meta.json`);if(!await D(K)||!await D(I))return null;let W=await Bun.file(I).text(),J=JSON.parse(W);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==y(B))return null;if((await Q.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Z of J.dependencies)if(await D(Z)){if((await Q.promises.stat(Z)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function u(j,B,z,K){try{if(!K.cachePath)return;let I=Y.resolve(K.cachePath);await Q.promises.mkdir(I,{recursive:!0});let W=Y.join(I,`${M(j)}.html`),J=Y.join(I,`${M(j)}.meta.json`),X=await Q.promises.stat(j);await Bun.write(W,B);let Z={sourcePath:j,mtime:X.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:y(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Z,null,2)),b.set(j,{output:B,mtime:X.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var O=16;function M(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,O)}
3
3
  export{b as Oj,v as Pj,E as Qj,F as Rj,R as Sj,S as Tj,_ as Uj,g as Vj,C as Wj,u as Xj,M as Yj};
@@ -1,2 +1,2 @@
1
1
  // @bun
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}from"./chunk-wrzwgkbx.js";import"./chunk-5kk8gsj2.js";import"./chunk-qc1f74ek.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{nt as a,ot as b,pt as c,qt as d,rt as e,st as f,tt as g,ut as h,vt as i,wt as j,xt as k,yt as l}from"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2vza9m2x.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,2 @@
1
+ // @bun
2
+ import{Wf as a}from"./chunk-p5b0r6fn.js";import"./chunk-yhqheg5m.js";import"./chunk-fvej04d8.js";import"./chunk-9veqmqb6.js";import"./chunk-fed3xsp9.js";import"./chunk-58f0mthg.js";import"./chunk-havegv3v.js";import"./chunk-ymc99r5x.js";import"./chunk-dcxtrqfy.js";import"./chunk-jj6yp7gm.js";import"./chunk-qjkzpd68.js";import"./chunk-bq6q6pjx.js";import"./chunk-0xnvkqn6.js";import"./chunk-fv923f7g.js";import"./chunk-2e6xafcm.js";import"./chunk-nygtwffe.js";import"./chunk-461br5nn.js";import"./chunk-h7v70dbp.js";import"./chunk-drbbt69f.js";import"./chunk-kb5j08tq.js";import"./chunk-2vza9m2x.js";export{a as buildForProduction};