@stacksjs/stx 0.2.342 → 0.2.343

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 (167) hide show
  1. package/dist/caching.js +1 -0
  2. package/dist/{chunk-48x5bsqv.js → chunk-0dpgh7a6.js} +1 -1
  3. package/dist/{chunk-evtrctj9.js → chunk-0fp16c1x.js} +1 -1
  4. package/dist/{chunk-p5d8sb50.js → chunk-0s3ry262.js} +1 -1
  5. package/dist/{chunk-tmj45xq5.js → chunk-12qteqk8.js} +1 -1
  6. package/dist/chunk-160g7ynw.js +2 -0
  7. package/dist/chunk-16hr5y08.js +2 -0
  8. package/dist/{chunk-anf2y2h5.js → chunk-1bfvdjpy.js} +1 -1
  9. package/dist/{chunk-y956wapy.js → chunk-1h1c2048.js} +1 -1
  10. package/dist/{chunk-bt8w146r.js → chunk-1qtd4ex2.js} +2 -2
  11. package/dist/{chunk-2swnc8kg.js → chunk-1zav2sf1.js} +1 -1
  12. package/dist/{chunk-gbkq5qnw.js → chunk-2853ye06.js} +2 -2
  13. package/dist/{chunk-4vcyf1kh.js → chunk-36j9qset.js} +2 -2
  14. package/dist/{chunk-74r1zw2h.js → chunk-3d3x7dwy.js} +1 -1
  15. package/dist/chunk-3h97y3n3.js +2 -0
  16. package/dist/chunk-3j915h2d.js +2 -0
  17. package/dist/{chunk-1gwbw81h.js → chunk-45ydb29q.js} +1 -1
  18. package/dist/{chunk-ts3wfjh9.js → chunk-4fafxr8d.js} +1 -1
  19. package/dist/chunk-4hkg6kx4.js +2 -0
  20. package/dist/{chunk-8tsr51hj.js → chunk-4pg6wbt6.js} +1 -1
  21. package/dist/{chunk-saqbtgqr.js → chunk-4vd0rqfs.js} +1 -1
  22. package/dist/{chunk-wv8h3d68.js → chunk-53sjbp3z.js} +1 -1
  23. package/dist/chunk-57494khk.js +2 -0
  24. package/dist/{chunk-4wpxbkbe.js → chunk-57dxdvjh.js} +1 -1
  25. package/dist/{chunk-k3w3gwm3.js → chunk-5azeswj2.js} +1 -1
  26. package/dist/{chunk-k5b9471y.js → chunk-5hq25yky.js} +1 -1
  27. package/dist/chunk-5xavmr4t.js +2 -0
  28. package/dist/{chunk-kznb3hdj.js → chunk-5zemhhwe.js} +1 -1
  29. package/dist/{chunk-ghd80w8a.js → chunk-62vng8g8.js} +2 -2
  30. package/dist/{chunk-reskzmsb.js → chunk-649dfqqz.js} +1 -1
  31. package/dist/{chunk-6nxq8rcw.js → chunk-6g8rvnhc.js} +1 -1
  32. package/dist/chunk-6rsfkms1.js +2 -0
  33. package/dist/{chunk-xe93ae3r.js → chunk-6xs80tka.js} +3 -3
  34. package/dist/{chunk-s4mmmwj4.js → chunk-7mc1k1tq.js} +1 -1
  35. package/dist/{chunk-25b8z7xa.js → chunk-7r79j1hs.js} +1 -1
  36. package/dist/{chunk-drs93sry.js → chunk-7yfk9393.js} +1 -1
  37. package/dist/{chunk-r46cg4qa.js → chunk-7zxv2631.js} +1 -1
  38. package/dist/{chunk-d389vyyz.js → chunk-8ah5mhst.js} +2 -2
  39. package/dist/{chunk-zv4gb3wb.js → chunk-905j49fe.js} +1 -1
  40. package/dist/chunk-9czj483k.js +2 -0
  41. package/dist/chunk-9kv0qavn.js +2 -0
  42. package/dist/{chunk-m39hb2a2.js → chunk-a0ajg9z5.js} +1 -1
  43. package/dist/{chunk-mznr9nyp.js → chunk-ag8gdk51.js} +1 -1
  44. package/dist/{chunk-gwc54hjc.js → chunk-amfq5rnz.js} +2 -2
  45. package/dist/{chunk-rh7mwwb4.js → chunk-aqxwwq6w.js} +2 -2
  46. package/dist/{chunk-hk8j3eps.js → chunk-ay336sqb.js} +1 -1
  47. package/dist/chunk-bcz8yp2g.js +2 -0
  48. package/dist/{chunk-rr49zrz6.js → chunk-brjfzbq9.js} +1 -1
  49. package/dist/chunk-bxefsc7k.js +2 -0
  50. package/dist/chunk-c4kv3r8t.js +2 -0
  51. package/dist/{chunk-yzv702kk.js → chunk-c7qdnc5d.js} +1 -1
  52. package/dist/{chunk-ys56ecvx.js → chunk-daxr6p6q.js} +1 -1
  53. package/dist/{chunk-yhvrq2qd.js → chunk-dj5mqnp1.js} +1 -1
  54. package/dist/{chunk-da0tfpa2.js → chunk-e53pwshq.js} +1 -1
  55. package/dist/{chunk-k9ep24bd.js → chunk-e6rxvz3p.js} +1 -1
  56. package/dist/{chunk-x7dv5rq7.js → chunk-ec18ftcg.js} +1 -1
  57. package/dist/chunk-eh3meyd3.js +64 -0
  58. package/dist/{chunk-yq7fc8sa.js → chunk-em8cr7wy.js} +1 -1
  59. package/dist/{chunk-thrv2nbz.js → chunk-ey1tsk22.js} +1 -1
  60. package/dist/{chunk-e0kzyf1g.js → chunk-fbmjw0bh.js} +1 -1
  61. package/dist/chunk-fytemc96.js +2 -0
  62. package/dist/{chunk-zv4nf0x2.js → chunk-g0dbtyk7.js} +1 -1
  63. package/dist/chunk-g7gc0ten.js +2 -0
  64. package/dist/chunk-gqsxxd81.js +2 -0
  65. package/dist/{chunk-sytwy0mg.js → chunk-grnmr3y1.js} +1 -1
  66. package/dist/{chunk-4ecv1e3w.js → chunk-gvfgrve8.js} +1 -1
  67. package/dist/chunk-gx9z0wmm.js +2 -0
  68. package/dist/{chunk-3b0mgxbk.js → chunk-h6y99nak.js} +1 -1
  69. package/dist/chunk-hq3phk1a.js +3 -0
  70. package/dist/{chunk-01ggk8k8.js → chunk-hrdd26r4.js} +1 -1
  71. package/dist/{chunk-567g1ttv.js → chunk-hzbty7hz.js} +1 -1
  72. package/dist/{chunk-6nvm939g.js → chunk-jagf7h9y.js} +1 -1
  73. package/dist/{chunk-xec226zb.js → chunk-jh6f1a9y.js} +1 -1
  74. package/dist/chunk-jnxzzzm4.js +2 -0
  75. package/dist/chunk-jy6jwxhs.js +2 -0
  76. package/dist/{chunk-r1rfwm01.js → chunk-k3dtvay1.js} +1 -1
  77. package/dist/chunk-k8skvm0d.js +2 -0
  78. package/dist/{chunk-1xwfws06.js → chunk-kbah2k8e.js} +2 -2
  79. package/dist/{chunk-beextc84.js → chunk-kgbz86sa.js} +2 -2
  80. package/dist/chunk-khqn40gv.js +2 -0
  81. package/dist/{chunk-fx29n4vc.js → chunk-m0xaw0qw.js} +1 -1
  82. package/dist/chunk-mhbzrh5y.js +2 -0
  83. package/dist/{chunk-mbstfjnj.js → chunk-mwvxhv0r.js} +1 -1
  84. package/dist/{chunk-cqw3c1xg.js → chunk-p3awq80d.js} +1 -1
  85. package/dist/chunk-p8anntjb.js +2 -0
  86. package/dist/chunk-pwe51myj.js +2 -0
  87. package/dist/{chunk-gkq323fg.js → chunk-pwhf5kte.js} +1 -1
  88. package/dist/{chunk-25f0s8t1.js → chunk-q6825wwz.js} +1 -1
  89. package/dist/{chunk-f2qbjr3z.js → chunk-q9ckfwhh.js} +1 -1
  90. package/dist/{chunk-ytx17bg2.js → chunk-rns7wjy9.js} +1 -1
  91. package/dist/chunk-rqqdvnp5.js +2 -0
  92. package/dist/chunk-rzg9pars.js +7 -0
  93. package/dist/{chunk-yr7camcd.js → chunk-s60eccqk.js} +1 -1
  94. package/dist/{chunk-ntm1761b.js → chunk-s7qbba8r.js} +10 -10
  95. package/dist/{chunk-hrmxxs0w.js → chunk-safmgrq5.js} +1 -1
  96. package/dist/{chunk-ebd3z4j9.js → chunk-stqm4brp.js} +1 -1
  97. package/dist/{chunk-1t3j8a0q.js → chunk-t00ga194.js} +1 -1
  98. package/dist/{chunk-fm5211ec.js → chunk-tqw1yean.js} +1 -1
  99. package/dist/{chunk-hnffkdzc.js → chunk-tz68qv47.js} +1 -1
  100. package/dist/{chunk-1spzqjve.js → chunk-vaggjvsm.js} +1 -1
  101. package/dist/{chunk-q4cemvkw.js → chunk-vj3nx26v.js} +1 -1
  102. package/dist/chunk-w1mbrq1g.js +2 -0
  103. package/dist/chunk-w84qe2m6.js +2 -0
  104. package/dist/{chunk-c33y19bn.js → chunk-wdaf98ya.js} +1 -1
  105. package/dist/chunk-wjm7hv5e.js +2 -0
  106. package/dist/{chunk-byjy9far.js → chunk-wnmegbw0.js} +1 -1
  107. package/dist/{chunk-0sq5mdrh.js → chunk-wyhb3nb0.js} +1 -1
  108. package/dist/{chunk-j82hfkcf.js → chunk-xgw269cf.js} +234 -236
  109. package/dist/{chunk-jcbj3xp4.js → chunk-y5sxa2sq.js} +1 -1
  110. package/dist/{chunk-mkgbrbr9.js → chunk-yefnrr5z.js} +1 -1
  111. package/dist/chunk-yr7s02f7.js +2 -0
  112. package/dist/{chunk-p52cm7ch.js → chunk-z9hb80mk.js} +1 -1
  113. package/dist/{chunk-c73pyeak.js → chunk-zcytk5w9.js} +1 -1
  114. package/dist/chunk-zq3tm2c2.js +2 -0
  115. package/dist/{chunk-5g9vbhbt.js → chunk-zr1x54bt.js} +1 -1
  116. package/dist/cli.js +14 -14
  117. package/dist/craft-entry.js +1 -1
  118. package/dist/craft.js +1 -1
  119. package/dist/custom-directives.js +21 -8
  120. package/dist/database.js +1 -1
  121. package/dist/directive-arguments.d.ts +107 -0
  122. package/dist/directive-arguments.js +171 -0
  123. package/dist/head.d.ts +7 -30
  124. package/dist/head.js +15 -5
  125. package/dist/meta-arguments.d.ts +52 -0
  126. package/dist/meta-arguments.js +55 -0
  127. package/dist/process.js +1 -1
  128. package/dist/pwa.js +2 -2
  129. package/dist/seo.d.ts +39 -17
  130. package/dist/seo.js +221 -255
  131. package/dist/ssg.js +2 -2
  132. package/dist/types/directive-types.d.ts +12 -0
  133. package/dist/visual-testing.js +1 -1
  134. package/package.json +5 -5
  135. package/dist/chunk-025z2btp.js +0 -2
  136. package/dist/chunk-19fp0z9s.js +0 -2
  137. package/dist/chunk-23sv24cm.js +0 -2
  138. package/dist/chunk-2p68bkza.js +0 -2
  139. package/dist/chunk-5grrqaqs.js +0 -2
  140. package/dist/chunk-6jx4r94x.js +0 -2
  141. package/dist/chunk-6p6b01kp.js +0 -4
  142. package/dist/chunk-a1rt1fms.js +0 -2
  143. package/dist/chunk-ahpmjg3f.js +0 -64
  144. package/dist/chunk-akp89n3w.js +0 -2
  145. package/dist/chunk-bqhrryqs.js +0 -2
  146. package/dist/chunk-czvzaa42.js +0 -3
  147. package/dist/chunk-de2cfcf5.js +0 -2
  148. package/dist/chunk-exhbc57n.js +0 -2
  149. package/dist/chunk-fhhp6pmx.js +0 -2
  150. package/dist/chunk-fqsrft0a.js +0 -2
  151. package/dist/chunk-gqzccw30.js +0 -2
  152. package/dist/chunk-h47e1c03.js +0 -2
  153. package/dist/chunk-kbemcvp1.js +0 -2
  154. package/dist/chunk-ks4j8fjz.js +0 -2
  155. package/dist/chunk-pbct6nxk.js +0 -2
  156. package/dist/chunk-peerbcwj.js +0 -2
  157. package/dist/chunk-pt1w6vq2.js +0 -2
  158. package/dist/chunk-rgda0gwf.js +0 -2
  159. package/dist/chunk-rwa10jm4.js +0 -2
  160. package/dist/chunk-snsh9ye4.js +0 -2
  161. package/dist/chunk-td39mtts.js +0 -2
  162. package/dist/chunk-trncnwem.js +0 -2
  163. package/dist/chunk-vk2j3vvs.js +0 -2
  164. package/dist/chunk-vph6zpeq.js +0 -2
  165. package/dist/chunk-wa3ks5zv.js +0 -2
  166. package/dist/chunk-xer5kn26.js +0 -2
  167. package/dist/chunk-zx2krbqf.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{qt as uJ}from"./chunk-1spzqjve.js";import{xw as gJ}from"./chunk-p5d8sb50.js";import z from"path";import{hasLocalConfig as yJ}from"bunfig";var wJ={fg:{light:"gray-900",dark:"gray-100",description:"Primary text"},"fg-strong":{light:"gray-700",dark:"gray-300",description:"Labels, secondary headings"},"fg-muted":{light:"gray-600",dark:"gray-400",description:"Supporting text"},"fg-soft":{light:"gray-500",dark:"gray-400",description:"De-emphasised text"},"fg-subtle":{light:"gray-400",dark:"gray-500",description:"Placeholders, disabled text"},surface:{light:"gray-50",dark:"gray-800",description:"Page and panel background"},"surface-raised":{light:"gray-100",dark:"gray-700",description:"Cards, popovers"},"surface-sunken":{light:"gray-200",dark:"gray-700",description:"Wells, track backgrounds"},line:{light:"gray-200",dark:"gray-700",description:"Default border, divider"},"line-strong":{light:"gray-300",dark:"gray-600",description:"Input border, focus ring track"},accent:{light:"indigo-600",dark:"indigo-400",description:"Primary action, selected state"},info:{light:"blue-600",dark:"blue-400",description:"Informational emphasis, links"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-500",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"indigo-600",dark:"indigo-500",description:"Primary button fill"},"info-solid":{light:"blue-600",dark:"blue-500",description:"Informational fill"},"danger-solid":{light:"red-600",dark:"red-500",description:"Destructive button fill"},"success-solid":{light:"green-600",dark:"green-500",description:"Confirmation fill"}};function p(J){return`--stx-${J}`}function m(J,Q){let Z=Q.lastIndexOf("-");if(Z===-1)return typeof J[Q]==="string"?J[Q]:void 0;let $=J[Q.slice(0,Z)];if(!$||typeof $!=="object")return;let U=$[Q.slice(Z+1)];return typeof U==="string"?U:void 0}function BJ(J){let Q={};for(let[Z,$]of Object.entries(wJ)){let U=m(J,$.light);if(U===void 0)continue;Q[Z]=`var(${p(Z)}, ${U})`}return Q}function HJ(J){let Q=[],Z=[];for(let[$,U]of Object.entries(wJ)){let F=m(J,U.light),W=m(J,U.dark);if(F===void 0)continue;if(Q.push(` ${p($)}: ${F};`),W!==void 0)Z.push(` ${p($)}: ${W};`)}if(Q.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...Q,"}",".dark {",...Z,"}",""].join(`
2
+ import{mt as uJ}from"./chunk-vaggjvsm.js";import{Hw as gJ}from"./chunk-0s3ry262.js";import z from"path";import{hasLocalConfig as yJ}from"bunfig";var wJ={fg:{light:"gray-900",dark:"gray-100",description:"Primary text"},"fg-strong":{light:"gray-700",dark:"gray-300",description:"Labels, secondary headings"},"fg-muted":{light:"gray-600",dark:"gray-400",description:"Supporting text"},"fg-soft":{light:"gray-500",dark:"gray-400",description:"De-emphasised text"},"fg-subtle":{light:"gray-400",dark:"gray-500",description:"Placeholders, disabled text"},surface:{light:"gray-50",dark:"gray-800",description:"Page and panel background"},"surface-raised":{light:"gray-100",dark:"gray-700",description:"Cards, popovers"},"surface-sunken":{light:"gray-200",dark:"gray-700",description:"Wells, track backgrounds"},line:{light:"gray-200",dark:"gray-700",description:"Default border, divider"},"line-strong":{light:"gray-300",dark:"gray-600",description:"Input border, focus ring track"},accent:{light:"indigo-600",dark:"indigo-400",description:"Primary action, selected state"},info:{light:"blue-600",dark:"blue-400",description:"Informational emphasis, links"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-500",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"indigo-600",dark:"indigo-500",description:"Primary button fill"},"info-solid":{light:"blue-600",dark:"blue-500",description:"Informational fill"},"danger-solid":{light:"red-600",dark:"red-500",description:"Destructive button fill"},"success-solid":{light:"green-600",dark:"green-500",description:"Confirmation fill"}};function p(J){return`--stx-${J}`}function m(J,Q){let Z=Q.lastIndexOf("-");if(Z===-1)return typeof J[Q]==="string"?J[Q]:void 0;let $=J[Q.slice(0,Z)];if(!$||typeof $!=="object")return;let U=$[Q.slice(Z+1)];return typeof U==="string"?U:void 0}function BJ(J){let Q={};for(let[Z,$]of Object.entries(wJ)){let U=m(J,$.light);if(U===void 0)continue;Q[Z]=`var(${p(Z)}, ${U})`}return Q}function HJ(J){let Q=[],Z=[];for(let[$,U]of Object.entries(wJ)){let F=m(J,U.light),W=m(J,U.dark);if(F===void 0)continue;if(Q.push(` ${p($)}: ${F};`),W!==void 0)Z.push(` ${p($)}: ${W};`)}if(Q.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...Q,"}",".dark {",...Z,"}",""].join(`
3
3
  `)}function OJ(J){return typeof J==="object"&&J!==null&&!Array.isArray(J)}function h(J,Q){let Z={...J};for(let[$,U]of Object.entries(Q))Z[$]=OJ(U)&&OJ(Z[$])?h(Z[$],U):U;return Z}function LJ(J={},Q={}){let Z=J.theme||{},$=Q.theme||{},{extend:U,...F}=$,{extend:W,...j}=Z,V=j.colors||{};j.colors={...V,...BJ(V)};let X=h(j,F),q=h(W||{},U||{});if(Object.keys(q).length>0)X.extend=q;let G=[...J.safelist||[],...Q.safelist||[]],w={...J.shortcuts||{},...Q.shortcuts||{}},K=[...J.preflights||[],...Q.preflights||[]];return{config:{...J,...Q,theme:X,safelist:G,shortcuts:w,...K.length>0?{preflights:K}:{},content:[],output:""},safelist:G,shortcuts:w,includePreflight:Q.preflight!==!1,minify:Q.minify===!0,tokenCSS:HJ(V)}}var x=/<script\b[^>]*>/iy,c=/<\/script\s*>/ig,S=/<style\b[^>]*>/iy,o=/<\/style\s*>/ig;function KJ(J,Q,Z,$){Z.lastIndex=Q;let U=Z.exec(J);if(!U||U.index!==Q)return-1;$.lastIndex=Z.lastIndex;let F=$.exec(J);if(!F)return-1;return F.index+F[0].length}function l(J,Q){return KJ(J,Q,x,c)}function IJ(J,Q){return KJ(J,Q,S,o)}function iJ(J,Q){if(!J.startsWith("<!--",Q))return-1;let Z=J.indexOf("-->",Q+4);if(Z===-1)return-1;return Z+3}function DJ(J,Q){if(J.startsWith("<!--",Q)){let U=iJ(J,Q);return U===-1?J.length:U}if(x.lastIndex=Q,x.exec(J)?.index===Q){c.lastIndex=x.lastIndex;let U=c.exec(J);return U?U.index+U[0].length:J.length}if(S.lastIndex=Q,S.exec(J)?.index===Q){o.lastIndex=S.lastIndex;let U=o.exec(J);return U?U.index+U[0].length:J.length}return-1}function rJ(J,Q){let Z=[],$=0,U=J.length,F=!1,W=null;while($<U){let j=J[$];if(F){if(W){if(j===W)W=null}else if(j==='"'||j==="'")W=j;else if(j===">")F=!1;$++;continue}if(j!=="<"){let G=J.indexOf("<",$+1);if(G===-1)break;$=G;continue}let V=Q(J,$);if(V>$){Z.push({start:$,end:V,token:J.slice($,V)}),$=V;continue}let X=DJ(J,$);if(X>$){$=X;continue}let q=J.charCodeAt($+1);if(q>=65&&q<=90||q>=97&&q<=122)F=!0;$++}return Z}function vQ(J){let Q=0,Z=0,$=0,U=!1,F=null;while($<J.length){if(U){let G=J[$];if(F){if(G===F)F=null}else if(G==='"'||G==="'")F=G;else if(G===">")U=!1;$++;continue}let W=J.indexOf("<",$),j=W===-1?J.length:W;while($<j){let G=J[$++];if(G==="{")Q++;else if(G==="}")Z++;if(Q>=2&&Z>=2)return!0}if(W===-1)break;let V=DJ(J,W);if(V>W){$=V;continue}let X=J.charCodeAt(W+1),q=X===47?J.charCodeAt(W+2):X;if(q>=65&&q<=90||q>=97&&q<=122)U=!0;$=W+1}return!1}function NJ(J,Q){while(J.size>=Q){let Z=J.keys().next();if(Z.done)return;J.delete(Z.value)}}var nJ=65536,cJ=12,i=new Map;function a(J,Q,Z,$){let U=$!==void 0&&J.length>=nJ,F=U?`${$}\x00${J}`:"";if(U){let q=i.get(F);if(q)return{output:q.output,tokens:q.tokens.slice()}}let W=rJ(J,Q);if(W.length===0)return{output:J,tokens:[]};let j=W.map((q)=>q.token),V="",X=0;for(let q=0;q<W.length;q++){let G=W[q];V+=J.slice(X,G.start),V+=Z(G.token,q),X=G.end}if(V+=J.slice(X),U)return NJ(i,cJ),i.set(F,{output:V,tokens:j}),{output:V,tokens:j.slice()};return{output:V,tokens:j}}var oJ=65536,lJ=4,r=new Map;function n(J,Q,Z){return{output:Q,scripts:Z,restore:($)=>$===Q?J:aJ($,Z)}}function RQ(J){let Q=J.length>=oJ;if(Q){let U=r.get(J);if(U)return n(J,U.output,U.scripts.slice())}let{output:Z,tokens:$}=a(J,l,(U,F)=>`\x00STX_SCRIPT_${F}\x00`);if(Q)return NJ(r,lJ),r.set(J,{output:Z,scripts:$}),n(J,Z,$.slice());return n(J,Z,$)}function aJ(J,Q){if(Q.length===0)return J;return J.replace(/\x00STX_SCRIPT_(\d+)\x00/g,(Z,$)=>Q[+$]??"")}function MJ(J,Q=""){let Z=`${J}${Q}`,$=0;for(let U=0;U<Z.length;U++){let F=Z.charCodeAt(U);$=($<<5)-$+F,$=$&$}return`stx-${Math.abs($).toString(36)}`}function PJ(J,Q,Z={}){let{prefix:$="",preserveHost:U=!0,scopeKeyframes:F=!0,scopeCustomProperties:W=!1}=Z;if(!J.trim())return"";let j=s(J),V=[],X=new Map;if(F)for(let q of j){let G=q.selector.match(/@keyframes\s+([a-z_-][a-z0-9_-]*)/i);if(G){let w=G[1],K=`${Q}_${w}`;X.set(w,K)}}for(let q of j){let G=AJ(q,Q,$,U,X,W);V.push(G)}return V.join(`
4
4
 
5
5
  `)}function s(J){let Q=[],Z=J.replace(/\/\*[\s\S]*?\*\//g,""),$=0,U="",F=!1,W="";for(let j=0;j<Z.length;j++){let V=Z[j];if(V==="@"&&$===0)F=!0;if(V==="{")$++;else if(V==="}"){if($--,$===0){if(F){W+=V;let X=W.match(/@([a-z-]+)\s*([^{]*)\{([\s\S]*)\}/i);if(X){let[,q,G,w]=X;if(q==="keyframes")Q.push({selector:`@keyframes ${G.trim()}`,declarations:w.trim()});else if(q==="media"||q==="supports"||q==="container"){let K=s(w);Q.push({selector:`@${q} ${G.trim()}`,declarations:K.map((M)=>`${M.selector} { ${M.declarations} }`).join(`
@@ -17,7 +17,7 @@ catch (e) {
17
17
  }
18
18
  throw e;
19
19
  }
20
- `),U.set(X,q)}return q(...j)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:W,context:Q.slice()});return W}clear(){this.pool.length=0,this.fnCache.clear()}}var CQ=new bJ;class kJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let W={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(W);while(this.violations.length>this.maxViolations)this.violations.shift();for(let V of this.violationHandlers)try{V(W)}catch{}let j=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(j);break;case"warn":console.warn(j);break;case"error":console.error(j);break;case"throw":if(F)throw Error(j);else console.warn(j);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var $J=null;function WQ(){if(!$J)$J=new kJ;return $J}var gQ=new Proxy({},{get(J,Q){return WQ()[Q]}});var xJ=[];function SJ(J){let Q=new ZJ(J);return xJ.push(Q),Q}function mQ(){for(let J of xJ)J.clear()}function UJ(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function hQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:EJ.statSync(Z).mtimeMs})}catch{}return Q}function iQ(J){for(let Q of J)try{if(EJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var O=null,WJ=!1,H=null,T="",A=!1,dJ=256,D=new Map,L=new Map,N=null,b=null;function y(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function FJ(J,Q){if(D.has(J))D.delete(J);else if(D.size>=dJ)D.delete(D.keys().next().value);D.set(J,Q)}function VQ(J){let Q=y(J);if(L.has(Q))L.delete(Q);else if(L.size>=dJ)L.delete(L.keys().next().value);return L.set(Q,J),Q}function eQ(J){let Q=L.get(J);if(Q===void 0)return;return L.delete(J),L.set(J,Q),Q}async function XQ(J){if(!N)return null;try{let Q=Bun.file(z.join(N,`cw-${y(J)}.css`));if(!await Q.exists())return null;return await Q.text()}catch{return null}}async function jQ(J,Q){if(!N)return;try{if(!fs.existsSync(N))fs.mkdirSync(N,{recursive:!0});await Bun.write(z.join(N,`cw-${y(J)}.css`),Q)}catch{}}async function fJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var qQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],GQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function zQ(){let J=[],Q=process.cwd();while(Q!==z.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of qQ)J.push(z.join(Q,Z,...$));Q=z.dirname(Q)}return J}function YQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&z.join(Q,"Code","Tools","ts-css"),Q&&z.join(Q,"Code","Tools","crosswind"),Q&&z.join(Q,"repos","stacks-org","ts-css"),Q&&z.join(Q,"repos","stacks-org","crosswind"),z.join(process.cwd(),"..","ts-css"),z.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(z.join($,"packages","toolkit","dist","engine","index.js")),J.push(z.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(z.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function pJ(){if(WJ)return O;WJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let W=await fJ(F);if(W){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${z.dirname(z.dirname(F))}`);return W}}return null};if(process.env.CROSSWIND_SRC){let U=z.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return O=F,O}let Q=await J(zQ());if(Q)return O=Q,O;let Z=GQ;for(let U of Z){let F=await fJ(U);if(F){if(O=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return O}}let $=await J(YQ());if($)return O=$,O;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function J0(){VJ.clear(),O=null,WJ=!1,H=null,T="",D.clear(),L.clear(),b=null}var CJ=!1;async function mJ(J){try{let Q=yJ({name:"css",cwd:J})?"css":yJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!CJ)CJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=z.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function wQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-2p68bkza.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=z.isAbsolute($.css)?$.css:z.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=z.isAbsolute($.css.config)?$.css.config:z.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await mJ(J)}function BQ(J){try{let Q=new WeakSet;return y(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function HQ(J){if(A)return T;A=!0;try{let Q=await pJ();if(!Q||!Q.build)return A=!1,"";if(!H)H=await mJ(J);if(!H)return A=!1,"";let Z=Q.defaultConfig?.theme||{},$=H.theme||{},U={...Q.defaultConfig,...H,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),W=await Q.build(U),j=performance.now()-F;if(T=W.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${W.classes.size} classes in ${j.toFixed(1)}ms`),U.output){let V=z.isAbsolute(U.output)?U.output:z.join(J,U.output),X=z.dirname(V);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(V,W.css)}return A=!1,W.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),A=!1,T}}async function Q0(J){H=null,await HQ(J)}function $0(){return T}function OQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let W of $[1].split(/\s+/))if(W.trim())Q.add(W.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let W=F[1].match(/'([^']+)'/g);if(W){for(let j of W)for(let V of j.slice(1,-1).split(/\s+/))if(V.trim())Q.add(V.trim())}F=U.exec(J)}return Q}var VJ=SJ(64);async function LQ(J,Q){let Z=VJ.get(UJ(J,Q,b));if(Z!==void 0)return Z;let $=await KQ(J,Q);if($)VJ.set(UJ(J,Q,b),$);return $}async function KQ(J,Q){try{let Z=await pJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):OQ(J);if($.size===0)return"";let U=Q?z.resolve(Q):process.cwd();if(!N)N=uJ(U,"cache");let F=[...$].sort().join(" "),W=`${b||"default"}::${F}`,j=D.get(W);if(j!==void 0)return FJ(W,j),j;let V=await XQ(W);if(V!==null)return FJ(W,V),V;if(!H)H=await wQ(U),b=BQ(H);let X=Z.defaultConfig||Z.config,q=H||{},G=LJ(X,q),{safelist:w,includePreflight:K,minify:M,tokenCSS:hJ}=G,XJ=G.config,_=new Z.CSSGenerator(XJ);for(let B of w)_.generate(B);for(let B of $)_.generate(B);let I=_.toCSS(K,M),jJ=XJ.shortcuts||q.shortcuts||{};for(let[B,f]of Object.entries(jJ)){if(!$.has(B)&&!w.includes(B))continue;let C=f.split(/\s+/).filter(Boolean);for(let R of C)_.generate(R)}I=_.toCSS(K,M);let v=I.split(`
20
+ `),U.set(X,q)}return q(...j)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:W,context:Q.slice()});return W}clear(){this.pool.length=0,this.fnCache.clear()}}var CQ=new bJ;class kJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let W={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(W);while(this.violations.length>this.maxViolations)this.violations.shift();for(let V of this.violationHandlers)try{V(W)}catch{}let j=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(j);break;case"warn":console.warn(j);break;case"error":console.error(j);break;case"throw":if(F)throw Error(j);else console.warn(j);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var $J=null;function WQ(){if(!$J)$J=new kJ;return $J}var gQ=new Proxy({},{get(J,Q){return WQ()[Q]}});var xJ=[];function SJ(J){let Q=new ZJ(J);return xJ.push(Q),Q}function mQ(){for(let J of xJ)J.clear()}function UJ(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function hQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:EJ.statSync(Z).mtimeMs})}catch{}return Q}function iQ(J){for(let Q of J)try{if(EJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var O=null,WJ=!1,H=null,T="",A=!1,dJ=256,D=new Map,L=new Map,N=null,b=null;function y(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function FJ(J,Q){if(D.has(J))D.delete(J);else if(D.size>=dJ)D.delete(D.keys().next().value);D.set(J,Q)}function VQ(J){let Q=y(J);if(L.has(Q))L.delete(Q);else if(L.size>=dJ)L.delete(L.keys().next().value);return L.set(Q,J),Q}function eQ(J){let Q=L.get(J);if(Q===void 0)return;return L.delete(J),L.set(J,Q),Q}async function XQ(J){if(!N)return null;try{let Q=Bun.file(z.join(N,`cw-${y(J)}.css`));if(!await Q.exists())return null;return await Q.text()}catch{return null}}async function jQ(J,Q){if(!N)return;try{if(!fs.existsSync(N))fs.mkdirSync(N,{recursive:!0});await Bun.write(z.join(N,`cw-${y(J)}.css`),Q)}catch{}}async function fJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var qQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],GQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function zQ(){let J=[],Q=process.cwd();while(Q!==z.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of qQ)J.push(z.join(Q,Z,...$));Q=z.dirname(Q)}return J}function YQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&z.join(Q,"Code","Tools","ts-css"),Q&&z.join(Q,"Code","Tools","crosswind"),Q&&z.join(Q,"repos","stacks-org","ts-css"),Q&&z.join(Q,"repos","stacks-org","crosswind"),z.join(process.cwd(),"..","ts-css"),z.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(z.join($,"packages","toolkit","dist","engine","index.js")),J.push(z.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(z.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function pJ(){if(WJ)return O;WJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let W=await fJ(F);if(W){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${z.dirname(z.dirname(F))}`);return W}}return null};if(process.env.CROSSWIND_SRC){let U=z.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return O=F,O}let Q=await J(zQ());if(Q)return O=Q,O;let Z=GQ;for(let U of Z){let F=await fJ(U);if(F){if(O=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return O}}let $=await J(YQ());if($)return O=$,O;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function J0(){VJ.clear(),O=null,WJ=!1,H=null,T="",D.clear(),L.clear(),b=null}var CJ=!1;async function mJ(J){try{let Q=yJ({name:"css",cwd:J})?"css":yJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!CJ)CJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=z.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function wQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-w1mbrq1g.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=z.isAbsolute($.css)?$.css:z.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=z.isAbsolute($.css.config)?$.css.config:z.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await mJ(J)}function BQ(J){try{let Q=new WeakSet;return y(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function HQ(J){if(A)return T;A=!0;try{let Q=await pJ();if(!Q||!Q.build)return A=!1,"";if(!H)H=await mJ(J);if(!H)return A=!1,"";let Z=Q.defaultConfig?.theme||{},$=H.theme||{},U={...Q.defaultConfig,...H,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),W=await Q.build(U),j=performance.now()-F;if(T=W.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${W.classes.size} classes in ${j.toFixed(1)}ms`),U.output){let V=z.isAbsolute(U.output)?U.output:z.join(J,U.output),X=z.dirname(V);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(V,W.css)}return A=!1,W.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),A=!1,T}}async function Q0(J){H=null,await HQ(J)}function $0(){return T}function OQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let W of $[1].split(/\s+/))if(W.trim())Q.add(W.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let W=F[1].match(/'([^']+)'/g);if(W){for(let j of W)for(let V of j.slice(1,-1).split(/\s+/))if(V.trim())Q.add(V.trim())}F=U.exec(J)}return Q}var VJ=SJ(64);async function LQ(J,Q){let Z=VJ.get(UJ(J,Q,b));if(Z!==void 0)return Z;let $=await KQ(J,Q);if($)VJ.set(UJ(J,Q,b),$);return $}async function KQ(J,Q){try{let Z=await pJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):OQ(J);if($.size===0)return"";let U=Q?z.resolve(Q):process.cwd();if(!N)N=uJ(U,"cache");let F=[...$].sort().join(" "),W=`${b||"default"}::${F}`,j=D.get(W);if(j!==void 0)return FJ(W,j),j;let V=await XQ(W);if(V!==null)return FJ(W,V),V;if(!H)H=await wQ(U),b=BQ(H);let X=Z.defaultConfig||Z.config,q=H||{},G=LJ(X,q),{safelist:w,includePreflight:K,minify:M,tokenCSS:hJ}=G,XJ=G.config,_=new Z.CSSGenerator(XJ);for(let B of w)_.generate(B);for(let B of $)_.generate(B);let I=_.toCSS(K,M),jJ=XJ.shortcuts||q.shortcuts||{};for(let[B,f]of Object.entries(jJ)){if(!$.has(B)&&!w.includes(B))continue;let C=f.split(/\s+/).filter(Boolean);for(let R of C)_.generate(R)}I=_.toCSS(K,M);let v=I.split(`
21
21
  `);for(let[B,f]of Object.entries(jJ)){if(!$.has(B)&&!w.includes(B))continue;let C=f.split(/\s+/).filter(Boolean),R=[],g=[];for(let u of C){let qJ=u.startsWith("dark:"),GJ=`.${(qJ?u.slice(5):u).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let k=0;k<v.length;k++){let zJ=v[k].trim();if(zJ===`${GJ} {`||zJ.startsWith(`${GJ} {`)){let E=k,YJ="";while(E<v.length){if(YJ+=v[E],v[E].includes("}"))break;E++}let d=YJ.match(/\{([^}]+)\}/);if(d)if(qJ)g.push(d[1].trim());else R.push(d[1].trim());break}}}if(R.length)I+=`
22
22
  .${B} { ${R.join(" ")} }`;if(g.length)I+=`
23
23
  @media (prefers-color-scheme: dark) { .dark .${B} { ${g.join(" ")} } }`}return I=hJ+I,FJ(W,I),jQ(W,I),I}catch(Z){return console.warn("Failed to generate Css CSS:",Z),""}}async function Z0(J,Q,Z=!1,$=!1){let U=await LQ(J,Q);if(!U)return $?QJ(J):J;let F=Z?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${VQ(U)}.css">`:`<style data-css="generated">
@@ -29,4 +29,4 @@ ${F}`);return F+J}function IQ(J,Q){let Z=JJ(J).map((V)=>({...V,replacement:""}))
29
29
  ${Q}`});else Z.push({start:0,end:0,replacement:Q})}}Z.sort((V,X)=>V.start-X.start||V.end-X.end);for(let V=1;V<Z.length;V++)if(Z[V].start<Z[V-1].end)return DQ(QJ(J),Q);let F=Array(Z.length*2+1),W=0,j=0;for(let V of Z)F[j++]=J.slice(W,V.start),F[j++]=V.replacement,W=V.end;return F[j]=J.slice(W),F.join("")}function DQ(J,Q){let Z=/(?:<style\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>[\s\S]*?<\/style>|<link\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>)/g;if(Z.test(J)){let $=!1;return J.replace(Z,()=>{if($)return"";return $=!0,Q})}if(J.includes("</head>"))return J.replace("</head>",`${Q}
30
30
  </head>`);if(J.includes("<body"))return J.replace(/<body([^>]*)>/,`<body$1>
31
31
  ${Q}`);return Q+J}
32
- export{ZJ as Fs,fQ as Gs,gQ as Hs,SJ as Is,mQ as Js,UJ as Ks,hQ as Ls,iQ as Ms,l as Ns,IJ as Os,iJ as Ps,rJ as Qs,vQ as Rs,NJ as Ss,a as Ts,RQ as Us,aJ as Vs,h as Ws,LJ as Xs,JJ as Ys,QJ as Zs,xQ as _s,Y as $s,eQ as at,pJ as bt,J0 as ct,mJ as dt,wQ as et,BQ as ft,HQ as gt,Q0 as ht,$0 as it,OQ as jt,LQ as kt,Z0 as lt};
32
+ export{ZJ as Bs,fQ as Cs,gQ as Ds,SJ as Es,mQ as Fs,UJ as Gs,hQ as Hs,iQ as Is,l as Js,IJ as Ks,iJ as Ls,rJ as Ms,vQ as Ns,NJ as Os,a as Ps,RQ as Qs,aJ as Rs,h as Ss,LJ as Ts,JJ as Us,QJ as Vs,xQ as Ws,Y as Xs,eQ as Ys,pJ as Zs,J0 as _s,mJ as $s,wQ as at,BQ as bt,HQ as ct,Q0 as dt,$0 as et,OQ as ft,LQ as gt,Z0 as ht};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ih as x,nh as B,oh as c,ph as u,qh as n}from"./chunk-18018jkn.js";import{xw as v}from"./chunk-p5d8sb50.js";import{resolve as JJ,basename as WJ,extname as _J,join as LJ}from"path";import{mkdir as QJ}from"fs/promises";var ZJ={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:2000,cacheTranscoded:!0,cacheThumbnails:!0,cacheManifests:!0};class V{config;constructor(K={}){this.config={...ZJ,...K}}async get(K,J){return c(K,J,"video",this.config)}async set(K,J,X){return u(K,J,X,"video",this.config)}async clear(){return n("video",this.config)}updateConfig(K){this.config={...this.config,...K}}}var S=null;function D(K){if(!S)S=new V(K);else if(K)S.updateConfig(K);return S}async function q(K,J,X){let N=X?{directory:`${X.outputDir}/../.cache`}:{};return D(N).get(K,J)}async function b(K,J,X,N){let Z=N?{directory:`${N.outputDir}/../.cache`}:{};return D(Z).set(K,J,X)}async function $J(){return D().clear()}import{resolve as y,basename as P,extname as f,join as U}from"path";import{mkdir as g}from"fs/promises";async function m(){try{return await import("ts-videos")}catch{return null}}async function h(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate poster"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",M=J.timestamp||0,E=`${z}-poster-${Y}.${G}`,W=U(X,E),Q=await Z.extractThumbnails($,{timestamps:[M],width:J.width||1280,height:J.height,format:G,quality:J.quality||85,outputDir:X,outputPattern:E.replace(`.${G}`,"")});if(Q&&Q.length>0){let _=Q[0];return{path:W,url:`${N}/${E}`,width:_.width||J.width||1280,height:_.height||720,timestamp:M,size:_.size||0}}return null}catch($){return console.warn(`[stx-media] Failed to generate poster: ${$}`),null}}async function d(K,J,X,N){let Z=await m();if(!Z)return[];try{let $=y(K);if(!await B($))return[];await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",W=(await new Z.Input($).getInfo()).duration||60,Q=J.count||10,_=J.interval||W/Q,O=[];for(let w=0;w<Q&&w*_<W;w++)O.push(w*_);let L=await Z.extractThumbnails($,{timestamps:O,width:J.width||320,format:G,quality:J.quality||80,outputDir:X,outputPattern:`${z}-thumb-${Y}`});if(L&&L.length>0)return L.map((w,j)=>({path:w.path||U(X,`${z}-thumb-${Y}-${j}.${G}`),url:`${N}/${z}-thumb-${Y}-${j}.${G}`,width:w.width||J.width||320,height:w.height||180,timestamp:O[j],size:w.size||0}));return[]}catch($){return console.warn(`[stx-media] Failed to generate thumbnails: ${$}`),[]}}async function zJ(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate sprite sheet"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),E=(await new Z.Input($).getInfo()).duration||60,W=J.columns||10,Q=J.interval||5,_=J.thumbnailWidth||160,O=J.thumbnailHeight||90,L=J.format||"jpeg",w=Math.ceil(E/Q),j=Math.ceil(w/W),F=`${z}-sprite-${Y}.${L}`,k=U(X,F),T=[];for(let I=0;I<w;I++)T.push(I*Q);let A=await Z.extractThumbnails($,{timestamps:T,width:_,height:O,format:L,quality:J.quality||70,outputDir:U(X,".temp")});if(!A||A.length===0)return null;try{let I=await import("ts-images"),H=W*_,kJ=j*O,jJ=await I.createSprite({images:A.map((YJ)=>YJ.path),columns:W,padding:0,outputPath:k,format:L,quality:J.quality||70});return{url:`${N}/${F}`,path:k,columns:W,rows:j,thumbnailWidth:_,thumbnailHeight:O,interval:Q,totalFrames:w}}catch{return console.warn("[stx-media] ts-images not installed, sprite sheet generation skipped"),null}}catch($){return console.warn(`[stx-media] Failed to generate sprite sheet: ${$}`),null}}import{resolve as r,basename as e,extname as i,join as C}from"path";import{mkdir as R,writeFile as o}from"fs/promises";async function t(){try{return await import("ts-videos")}catch{return null}}var s=[{label:"1080p",width:1920,height:1080,bitrate:5000000,audioBitrate:192000},{label:"720p",width:1280,height:720,bitrate:2500000,audioBitrate:128000},{label:"480p",width:854,height:480,bitrate:1e6,audioBitrate:96000},{label:"360p",width:640,height:360,bitrate:600000,audioBitrate:64000}];async function p(K,J,X,N,Z){let $=await t();if(!$)return console.warn("[stx-media] ts-videos not installed, cannot generate HLS manifest"),null;try{let Y=r(K);if(!await B(Y))return null;let z=await x(Y),G=e(K,i(K)),M=C(X,`${G}-${z}-hls`);await R(M,{recursive:!0});let E=J.length>0?J:s,W=Z?.segmentDuration||6,O=(await new $.Input(Y).getInfo()).duration||0,L=[],w=0;for(let k of E){let T=C(M,k.label);await R(T,{recursive:!0});let A=`${k.label}.m3u8`,I=C(T,A);try{let H=await $.generateHLS(Y,{outputDir:T,segmentDuration:W,width:k.width,height:k.height,videoBitrate:k.bitrate,audioBitrate:k.audioBitrate,playlistName:k.label});if(H)L.push({quality:k,url:`${N}/${G}-${z}-hls/${k.label}/${A}`,path:I}),w+=H.segmentCount||Math.ceil(O/W)}catch(H){console.warn(`[stx-media] Failed to generate HLS for ${k.label}: ${H}`)}}if(L.length===0)return null;let j=C(M,"master.m3u8"),F=GJ(L,N,G,z);return await o(j,F),{manifestUrl:`${N}/${G}-${z}-hls/master.m3u8`,manifestPath:j,playlists:L,segmentCount:w,duration:O}}catch(Y){return console.warn(`[stx-media] Failed to generate HLS manifest: ${Y}`),null}}function GJ(K,J,X,N){let Z=["#EXTM3U","#EXT-X-VERSION:3"];for(let $ of K){let{quality:Y}=$,z=Y.bitrate+(Y.audioBitrate||128000),G=`${Y.width}x${Y.height||Math.round(Y.width*9/16)}`;Z.push(`#EXT-X-STREAM-INF:BANDWIDTH=${z},RESOLUTION=${G},NAME="${Y.label}"`,`${Y.label}/${Y.label}.m3u8`)}return Z.join(`
2
+ import{ih as x,nh as B,oh as c,ph as u,qh as n}from"./chunk-18018jkn.js";import{Hw as v}from"./chunk-0s3ry262.js";import{resolve as JJ,basename as WJ,extname as _J,join as LJ}from"path";import{mkdir as QJ}from"fs/promises";var ZJ={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:2000,cacheTranscoded:!0,cacheThumbnails:!0,cacheManifests:!0};class V{config;constructor(K={}){this.config={...ZJ,...K}}async get(K,J){return c(K,J,"video",this.config)}async set(K,J,X){return u(K,J,X,"video",this.config)}async clear(){return n("video",this.config)}updateConfig(K){this.config={...this.config,...K}}}var S=null;function D(K){if(!S)S=new V(K);else if(K)S.updateConfig(K);return S}async function q(K,J,X){let N=X?{directory:`${X.outputDir}/../.cache`}:{};return D(N).get(K,J)}async function b(K,J,X,N){let Z=N?{directory:`${N.outputDir}/../.cache`}:{};return D(Z).set(K,J,X)}async function $J(){return D().clear()}import{resolve as y,basename as P,extname as f,join as U}from"path";import{mkdir as g}from"fs/promises";async function m(){try{return await import("ts-videos")}catch{return null}}async function h(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate poster"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",M=J.timestamp||0,E=`${z}-poster-${Y}.${G}`,W=U(X,E),Q=await Z.extractThumbnails($,{timestamps:[M],width:J.width||1280,height:J.height,format:G,quality:J.quality||85,outputDir:X,outputPattern:E.replace(`.${G}`,"")});if(Q&&Q.length>0){let _=Q[0];return{path:W,url:`${N}/${E}`,width:_.width||J.width||1280,height:_.height||720,timestamp:M,size:_.size||0}}return null}catch($){return console.warn(`[stx-media] Failed to generate poster: ${$}`),null}}async function d(K,J,X,N){let Z=await m();if(!Z)return[];try{let $=y(K);if(!await B($))return[];await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),G=J.format||"webp",W=(await new Z.Input($).getInfo()).duration||60,Q=J.count||10,_=J.interval||W/Q,O=[];for(let w=0;w<Q&&w*_<W;w++)O.push(w*_);let L=await Z.extractThumbnails($,{timestamps:O,width:J.width||320,format:G,quality:J.quality||80,outputDir:X,outputPattern:`${z}-thumb-${Y}`});if(L&&L.length>0)return L.map((w,j)=>({path:w.path||U(X,`${z}-thumb-${Y}-${j}.${G}`),url:`${N}/${z}-thumb-${Y}-${j}.${G}`,width:w.width||J.width||320,height:w.height||180,timestamp:O[j],size:w.size||0}));return[]}catch($){return console.warn(`[stx-media] Failed to generate thumbnails: ${$}`),[]}}async function zJ(K,J,X,N){let Z=await m();if(!Z)return console.warn("[stx-media] ts-videos not installed, cannot generate sprite sheet"),null;try{let $=y(K);if(!await B($))return null;await g(X,{recursive:!0});let Y=await x($),z=P(K,f(K)),E=(await new Z.Input($).getInfo()).duration||60,W=J.columns||10,Q=J.interval||5,_=J.thumbnailWidth||160,O=J.thumbnailHeight||90,L=J.format||"jpeg",w=Math.ceil(E/Q),j=Math.ceil(w/W),F=`${z}-sprite-${Y}.${L}`,k=U(X,F),T=[];for(let I=0;I<w;I++)T.push(I*Q);let A=await Z.extractThumbnails($,{timestamps:T,width:_,height:O,format:L,quality:J.quality||70,outputDir:U(X,".temp")});if(!A||A.length===0)return null;try{let I=await import("ts-images"),H=W*_,kJ=j*O,jJ=await I.createSprite({images:A.map((YJ)=>YJ.path),columns:W,padding:0,outputPath:k,format:L,quality:J.quality||70});return{url:`${N}/${F}`,path:k,columns:W,rows:j,thumbnailWidth:_,thumbnailHeight:O,interval:Q,totalFrames:w}}catch{return console.warn("[stx-media] ts-images not installed, sprite sheet generation skipped"),null}}catch($){return console.warn(`[stx-media] Failed to generate sprite sheet: ${$}`),null}}import{resolve as r,basename as e,extname as i,join as C}from"path";import{mkdir as R,writeFile as o}from"fs/promises";async function t(){try{return await import("ts-videos")}catch{return null}}var s=[{label:"1080p",width:1920,height:1080,bitrate:5000000,audioBitrate:192000},{label:"720p",width:1280,height:720,bitrate:2500000,audioBitrate:128000},{label:"480p",width:854,height:480,bitrate:1e6,audioBitrate:96000},{label:"360p",width:640,height:360,bitrate:600000,audioBitrate:64000}];async function p(K,J,X,N,Z){let $=await t();if(!$)return console.warn("[stx-media] ts-videos not installed, cannot generate HLS manifest"),null;try{let Y=r(K);if(!await B(Y))return null;let z=await x(Y),G=e(K,i(K)),M=C(X,`${G}-${z}-hls`);await R(M,{recursive:!0});let E=J.length>0?J:s,W=Z?.segmentDuration||6,O=(await new $.Input(Y).getInfo()).duration||0,L=[],w=0;for(let k of E){let T=C(M,k.label);await R(T,{recursive:!0});let A=`${k.label}.m3u8`,I=C(T,A);try{let H=await $.generateHLS(Y,{outputDir:T,segmentDuration:W,width:k.width,height:k.height,videoBitrate:k.bitrate,audioBitrate:k.audioBitrate,playlistName:k.label});if(H)L.push({quality:k,url:`${N}/${G}-${z}-hls/${k.label}/${A}`,path:I}),w+=H.segmentCount||Math.ceil(O/W)}catch(H){console.warn(`[stx-media] Failed to generate HLS for ${k.label}: ${H}`)}}if(L.length===0)return null;let j=C(M,"master.m3u8"),F=GJ(L,N,G,z);return await o(j,F),{manifestUrl:`${N}/${G}-${z}-hls/master.m3u8`,manifestPath:j,playlists:L,segmentCount:w,duration:O}}catch(Y){return console.warn(`[stx-media] Failed to generate HLS manifest: ${Y}`),null}}function GJ(K,J,X,N){let Z=["#EXTM3U","#EXT-X-VERSION:3"];for(let $ of K){let{quality:Y}=$,z=Y.bitrate+(Y.audioBitrate||128000),G=`${Y.width}x${Y.height||Math.round(Y.width*9/16)}`;Z.push(`#EXT-X-STREAM-INF:BANDWIDTH=${z},RESOLUTION=${G},NAME="${Y.label}"`,`${Y.label}/${Y.label}.m3u8`)}return Z.join(`
3
3
  `)}async function l(K,J,X,N,Z){let $=await t();if(!$)return console.warn("[stx-media] ts-videos not installed, cannot generate DASH manifest"),null;try{let Y=r(K);if(!await B(Y))return null;let z=await x(Y),G=e(K,i(K)),M=C(X,`${G}-${z}-dash`);await R(M,{recursive:!0});let E=J.length>0?J:s,W=Z?.segmentDuration||4,Q=Z?.minBufferTime||2,L=(await new $.Input(Y).getInfo()).duration||0,w=[],j=[];for(let A of E){let I=C(M,A.label);await R(I,{recursive:!0});try{if(await $.generateDASH(Y,{outputDir:I,segmentDuration:W,width:A.width,height:A.height,videoBitrate:A.bitrate,audioBitrate:A.audioBitrate})){if(w.push({bandwidth:A.bitrate,width:A.width,height:A.height||Math.round(A.width*9/16),url:`${N}/${G}-${z}-dash/${A.label}/video`}),A.audioBitrate)j.push({bandwidth:A.audioBitrate,url:`${N}/${G}-${z}-dash/${A.label}/audio`})}}catch(H){console.warn(`[stx-media] Failed to generate DASH for ${A.label}: ${H}`)}}if(w.length===0)return null;let F=C(M,"manifest.mpd"),k=NJ(w,j,L,W,Q);await o(F,k);let T=[{type:"video",representations:w}];if(j.length>0)T.push({type:"audio",representations:j});return{manifestUrl:`${N}/${G}-${z}-dash/manifest.mpd`,manifestPath:F,adaptationSets:T,duration:L}}catch(Y){return console.warn(`[stx-media] Failed to generate DASH manifest: ${Y}`),null}}function NJ(K,J,X,N,Z){let $=a(X),Y=a(Z),z=`<?xml version="1.0" encoding="UTF-8"?>
4
4
  <MPD xmlns="urn:mpeg:dash:schema:mpd:2011"
5
5
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -2,4 +2,4 @@
2
2
  import I from"fs";import F from"path";import{createHash as w}from"crypto";var H=["pages","components","layouts","partials","composables"],Y=new Set;function u(j){try{return Y.has(I.realpathSync(j))}catch{return Y.has(F.resolve(j))}}var L=new Set(["extends","root",...H.map((j)=>`${j}Dir`),"publicDir","stateDir","cachePath"]),Z=(j)=>j!==null&&typeof j==="object"&&(Object.getPrototypeOf(j)===Object.prototype||Object.getPrototypeOf(j)===null);function _(j,z,A=""){if(Array.isArray(z))return["middleware","plugins"].includes(A)?[...Array.isArray(j)?j:[],...z]:[...z];if(!Z(z))return z;let E={...Z(j)?j:{}};for(let[B,G]of Object.entries(z)){if(["__proto__","constructor","prototype"].includes(B))throw Error(`Invalid layer config key: ${B}`);E[B]=_(E[B],G,B)}return E}function $(j){for(let z of["stx.config.ts","stx.config.js","stx.config.mjs",".config/stx.config.ts",".config/stx.ts","ui.config.ts"]){let A=F.join(j,z);if(I.existsSync(A))return I.realpathSync(A)}throw Error(`Application layer has no stx.config.ts: ${j}`)}function S(j,z,A){if(typeof j!=="string"||!j||/^(?:https?:|git[+:])/.test(j))throw Error(`Invalid application layer ${JSON.stringify(j)} in ${z}; use a local path or installed package`);if(j.startsWith(".")||F.isAbsolute(j)){let B=F.resolve(z,j);return I.statSync(B).isDirectory()?$(B):I.realpathSync(B)}let E=z;while(!0){let B=F.join(E,"node_modules",j),G=F.join(B,"package.json");if(I.existsSync(G)){A.add(I.realpathSync(G));let T=JSON.parse(I.readFileSync(G,"utf8"));return T.stx?.layer?I.realpathSync(F.resolve(B,T.stx.layer)):$(B)}let J=F.dirname(E);if(J===E)break;E=J}throw Error(`Cannot resolve application layer ${JSON.stringify(j)} from ${z}`)}async function C(j,z){let A=await Bun.build({entrypoints:[j],target:"bun",format:"esm",splitting:!1,plugins:[{name:"stx-layer-config",setup(G){G.onResolve({filter:/^[^./]/},(J)=>{if(J.path.startsWith("node:"))return{path:J.path,external:!0};return{path:Bun.resolveSync(J.path,J.resolveDir),external:!0}}),G.onLoad({filter:/./},(J)=>{let T=I.realpathSync(J.path);z.add(T),Y.add(T);return})}}]});if(!A.success)throw Error(`Cannot load layer ${j}: ${A.logs.join(`
3
3
  `)}`);let E=A.outputs.find((G)=>G.kind==="entry-point");if(!E||A.outputs.length!==1)throw Error(`Unsupported layer config output: ${j}`);let B=(await import(`data:text/javascript;base64,${Buffer.from(await E.text()).toString("base64")}`)).default;if(!Z(B))throw Error(`Layer ${j} must default-export a config object`);return B}async function v(j,z){let A=new Set,E=[],B=[],G=new Set,J=[];async function T(q,M){if(q=I.realpathSync(q),J.includes(q))throw Error(`Application layer cycle: ${[...J,q].join(" -> ")}`);if(G.has(q))return;G.add(q),J.push(q);let U=await C(q,A);M??=F.basename(F.dirname(q))===".config"?F.dirname(F.dirname(q)):F.dirname(q),M=I.realpathSync(M);let D=F.resolve(M,U.root??"."),K=Object.fromEntries(H.map((Q)=>[Q,F.resolve(D,U[`${Q}Dir`]??(Q==="composables"?"functions":Q))]));E.push({root:M,configFile:q,resources:K});let N={...U};if(N.plugins)N.plugins=N.plugins.map((Q)=>{let W=typeof Q==="string"?Q:Q[0],X=W.startsWith(".")?F.resolve(M,W):F.isAbsolute(W)?W:Bun.resolveSync(W,M);return A.add(I.realpathSync(X)),typeof Q==="string"?X:[X,Q[1]]});if(typeof N.css==="string")N.css=F.resolve(M,N.css);if(N.serverApi)N.serverApi={...typeof N.serverApi==="object"?N.serverApi:{},dir:F.resolve(M,typeof N.serverApi==="object"?N.serverApi.dir??"server/api":"server/api")};if(B.push(N),U.extends!==void 0&&!Array.isArray(U.extends))throw Error(`extends in ${q} must be an array`);for(let Q of U.extends??[])await T(S(Q,M,A));J.pop()}await T($(j),j);for(let q of["package.json","bun.lock","package-lock.json","pnpm-lock.yaml"]){let M=F.join(j,q);if(I.existsSync(M))A.add(I.realpathSync(M))}let O=_({},z);for(let q=B.length-1;q>=0;q--){let M=q===0?B[q]:Object.fromEntries(Object.entries(B[q]).filter(([U])=>!L.has(U)));O=_(O,M)}let V={layers:E,configDependencies:[...A].sort()};return O._layerGraph=V,O._layerPageDirs=E.map((q)=>q.resources.pages),O._layerComponentDirs=E.map((q)=>q.resources.components),O._layerLayoutDirs=E.map((q)=>q.resources.layouts),O._layerPartialDirs=E.map((q)=>q.resources.partials),O._layerComposableDirs=E.map((q)=>q.resources.composables),await R(V,j),{config:O,graph:V}}async function R(j,z){let A=new Map,E=[];for(let B of j.layers)for(let[G,J]of Object.entries(B.resources)){if(!I.existsSync(J))continue;let T=new Bun.Glob(G==="composables"?"**/*.ts":"**/*.stx");for(let O of[...T.scanSync({cwd:J})].sort()){let V=`${G}/${O}`,q=F.join(J,O),M=A.get(V);if(M)E.push({resource:V,winner:M,shadowed:q});else A.set(V,q)}}Object.assign(j,{overrides:E}),await Bun.write(F.join(z,".stx/layers.json"),JSON.stringify(j,null,2))}function P(j){let z=new Set(j.configDependencies);function A(E){if(!I.existsSync(E))return;z.add(E);for(let B of I.readdirSync(E,{withFileTypes:!0}).sort((G,J)=>G.name.localeCompare(J.name))){if(B.name.startsWith(".")||B.name==="node_modules")continue;let G=F.join(E,B.name);if(B.isDirectory())A(G);else if(B.isFile())z.add(G)}}for(let E of j.layers)for(let B of Object.values(E.resources))A(B);return[...z].sort()}function h(j){return x(P(j))}function y(j){return x(j.configDependencies)}function x(j){return j.map((z)=>{try{let A=I.statSync(z);return`${z}:${A.mtimeMs}:${A.size}`}catch{return`${z}:missing`}}).join(`
4
4
  `)}function g(j){return j.layers.map((z)=>({config:F.relative(z.root,z.configFile),files:P({layers:[z],configDependencies:j.configDependencies.filter((A)=>A.startsWith(`${z.root}${F.sep}`))}).filter((A)=>I.statSync(A).isFile()).map((A)=>({path:F.relative(z.root,A).replaceAll(F.sep,"/"),sha256:w("sha256").update(I.readFileSync(A)).digest("hex")}))}))}
5
- export{u as qs,v as rs,R as ss,h as ts,y as us,g as vs};
5
+ export{u as ms,v as ns,R as os,h as ps,y as qs,g as rs};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ei as s}from"./chunk-zv4nf0x2.js";import{$l as a,Op as v,Pp as i,Qp as t,Tp as e,Up as HH,Vp as KH,Wp as QH,Xp as YH,Yp as ZH,vr as $H}from"./chunk-j82hfkcf.js";import{qt as h}from"./chunk-1spzqjve.js";import{kv as f}from"./chunk-wv8h3d68.js";import{existsSync as jH,readFileSync as WH}from"fs";import z from"path";function AH(Q,K="",V=""){let L=Q.startLine>1?`
2
+ import{ei as s}from"./chunk-g0dbtyk7.js";import{$l as a,Kp as v,Lp as i,Mp as t,Pp as e,Qp as HH,Rp as KH,Sp as QH,Tp as YH,Up as ZH,rr as $H}from"./chunk-xgw269cf.js";import{mt as h}from"./chunk-vaggjvsm.js";import{uv as f}from"./chunk-53sjbp3z.js";import{existsSync as jH,readFileSync as WH}from"fs";import z from"path";function AH(Q,K="",V=""){let L=Q.startLine>1?`
3
3
  `.repeat(Q.startLine-1):"",U=t(i(Q.code)),X=Q.kind==="client"||Q.kind==="plain"?HH(K,Q.code):"";return QH(`${L+U}
4
4
  ${X}
5
5
  export {}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ii as a,ji as b}from"./chunk-vgfd9582.js";import"./chunk-p5d8sb50.js";export{a as processTeleportDirectives,b as ensureTeleportTargets};
2
+ import{ii as a,ji as b}from"./chunk-vgfd9582.js";import"./chunk-0s3ry262.js";export{a as processTeleportDirectives,b as ensureTeleportTargets};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Lo as V}from"./chunk-j82hfkcf.js";import"./chunk-rh7mwwb4.js";import"./chunk-1t3j8a0q.js";import"./chunk-01ggk8k8.js";import"./chunk-25b8z7xa.js";import"./chunk-hk8j3eps.js";import"./chunk-xe93ae3r.js";import"./chunk-1spzqjve.js";import"./chunk-f2qbjr3z.js";import"./chunk-1xwfws06.js";import"./chunk-r1rfwm01.js";import"./chunk-ahpmjg3f.js";import"./chunk-bt8w146r.js";import"./chunk-6p6b01kp.js";import"./chunk-x7dv5rq7.js";import"./chunk-e0kzyf1g.js";import"./chunk-wv8h3d68.js";import"./chunk-beextc84.js";import"./chunk-yr7camcd.js";import{xw as F}from"./chunk-p5d8sb50.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
2
+ import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Ho as V}from"./chunk-xgw269cf.js";import"./chunk-aqxwwq6w.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-6xs80tka.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-kbah2k8e.js";import"./chunk-k3dtvay1.js";import"./chunk-eh3meyd3.js";import"./chunk-rzg9pars.js";import"./chunk-1qtd4ex2.js";import"./chunk-ec18ftcg.js";import"./chunk-fbmjw0bh.js";import"./chunk-53sjbp3z.js";import"./chunk-kgbz86sa.js";import"./chunk-s60eccqk.js";import{Hw as F}from"./chunk-0s3ry262.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
3
3
  <script>
4
4
  (function() {
5
5
  const ws = new WebSocket('${z}');
@@ -556,7 +556,7 @@ window.__stxPerformance = {
556
556
 
557
557
  window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
558
558
  </script>
559
- `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-rwa10jm4.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-rwa10jm4.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
559
+ `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-fytemc96.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-fytemc96.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
560
560
  `)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
561
561
  `)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
562
562
  <html lang="en" class="${Z.darkClass||"dark"}">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as dm,$a as go,$b as qp,$c as qq,$d as qr,A as Pk,Aa as rn,Ab as Lo,Ac as Rp,Ad as Rq,Ae as Xr,B as Qk,Ba as sn,Bb as Mo,Bc as Sp,Bd as Sq,Be as Yr,C as Rk,Ca as Fn,Cb as No,Cc as Tp,Cd as Tq,Ce as Zr,D as Sk,Da as Gn,Db as Oo,Dc as Up,Dd as Uq,De as _r,E as Il,Ea as Hn,Eb as Po,Ec as Vp,Ed as Vq,Ee as $r,F as Jl,Fa as In,Fb as Qo,Fc as Wp,Fd as Wq,Fe as as,G as Kl,Ga as Jn,Gb as Ro,Gc as Xp,Gd as Xq,Ge as bs,H as Ll,Ha as Kn,Hb as So,Hc as Yp,Hd as Yq,He as cs,I as Ml,Ia as On,Ib as To,Ic as Zp,Id as Zq,Ie as ds,J as Nl,Ja as Pn,Jb as Uo,Jc as _p,Jd as _q,Je as es,K as Ol,Ka as Qn,Kb as Vo,Kc as $p,Kd as $q,Ke as fs,L as Pl,La as Rn,Lb as Wo,Lc as aq,Ld as ar,M as Ql,Ma as Sn,Mb as Xo,Mc as bq,Md as br,N as Rl,Na as Tn,Nb as cp,Nc as cq,Nd as cr,O as Sl,Oa as Un,Ob as dp,Oc as dq,Od as dr,P as Tl,Pa as Vn,Pb as ep,Pc as eq,Pd as er,Q as Ul,Qa as Wn,Qb as fp,Qc as fq,Qd as fr,R as Vl,Ra as Xn,Rb as gp,Rc as gq,Rd as gr,S as Wl,Sa as Yn,Sb as hp,Sc as hq,Sd as hr,T as Xl,Ta as Zn,Tb as ip,Tc as iq,Td as ir,U as Yl,Ua as _n,Ub as jp,Uc as jq,Ud as jr,V as Zl,Va as $n,Vb as kp,Vc as kq,Vd as kr,W as _l,Wa as ao,Wb as lp,Wc as lq,Wd as lr,X as $l,Xa as bo,Xb as mp,Xc as mq,Xd as mr,Y as am,Ya as co,Yb as np,Yc as nq,Yd as nr,Z as bm,Za as eo,Zb as op,Zc as oq,Zd as or,_ as cm,_a as fo,_b as pp,_c as pq,_d as pr,aa as em,ab as ho,ac as rp,ad as rq,ae as rr,ba as fm,bb as io,bc as sp,bd as sq,be as yr,ca as gm,cb as jo,cc as tp,cd as tq,ce as zr,da as hm,db as ko,dc as up,dd as uq,de as Ar,ea as im,eb as lo,ec as vp,ed as vq,ee as Br,fa as jm,fb as mo,fc as wp,fd as wq,fe as Cr,ga as km,gb as no,gc as xp,gd as xq,ge as Dr,ha as lm,hb as oo,hc as yp,hd as yq,he as Er,ia as mm,ib as po,ic as zp,id as zq,ie as Fr,ja as nm,jb as qo,jc as Ap,jd as Aq,je as Gr,ka as om,kb as ro,kc as Bp,kd as Bq,ke as Hr,la as pm,lb as so,lc as Cp,ld as Cq,le as Ir,ma as qm,mb as to,mc as Dp,md as Dq,me as Jr,na as rm,nb as wo,nc as Ep,nd as Eq,ne as Kr,o as a,oa as sm,ob as xo,oc as Fp,od as Fq,oe as Lr,p as Ak,pa as fn,pb as yo,pc as Gp,pd as Gq,pe as Mr,q as Bk,qa as gn,qb as zo,qc as Hp,qd as Hq,qe as Nr,r as Ck,ra as hn,rb as Bo,rc as Ip,rd as Iq,re as Or,s as Dk,sa as jn,sb as Co,sc as Jp,sd as Jq,se as Pr,t as Ek,ta as kn,tb as Do,tc as Kp,td as Kq,te as Qr,u as Fk,ua as ln,ub as Eo,uc as Lp,ud as Lq,ue as Rr,v as Gk,va as mn,vb as Go,vc as Mp,vd as Mq,ve as Sr,w as Hk,wa as nn,wb as Ho,wc as Np,wd as Nq,we as Tr,x as Ik,xa as on,xb as Io,xc as Op,xd as Oq,xe as Ur,y as Nk,ya as pn,yb as Jo,yc as Pp,yd as Pq,ye as Vr,z as Ok,za as qn,zb as Ko,zc as Qp,zd as Qq,ze as Wr}from"./chunk-ntm1761b.js";import{Le as Yo,Me as Zo,Ne as _o,Oe as $o,Pe as ap,Qe as bp}from"./chunk-drs93sry.js";import{Re as uo,Se as vo}from"./chunk-2ver2s2y.js";import{Te as Ao}from"./chunk-ebd3z4j9.js";import{Ue as en}from"./chunk-k9ep24bd.js";import{Ve as Ln,We as Mn,Xe as Nn,Ye as Fo}from"./chunk-567g1ttv.js";import{$e as Vk,Ze as Tk,_e as Uk,af as Wk,bf as Xk,cf as Yk,df as Zk,ef as _k,ff as $k,gf as al,hf as bl,if as cl,jf as dl,kf as el,lf as fl}from"./chunk-ym3r8ktq.js";import{mf as wl,nf as xl,of as yl,pf as zl,qf as Al,rf as Bl,sf as Cl,tf as Dl,uf as El,vf as Fl,wf as Gl,xf as Hl}from"./chunk-y956wapy.js";import{yf as ul,zf as vl}from"./chunk-m39hb2a2.js";import{Af as gl,Bf as hl,Cf as il,Df as jl,Ef as kl,Ff as ll,Gf as ml,If as nl,Jf as ol,Kf as pl,Lf as ql,Mf as rl,Nf as sl,Qf as tl}from"./chunk-74r1zw2h.js";import{Rf as Pm,Sf as Qm,Tf as Rm,Uf as Sm,Vf as Tm,Wf as dn}from"./chunk-4ecv1e3w.js";import{$f as xm,Xf as tm,Yf as um,Zf as vm,_f as wm,ag as ym,bg as zm,cg as Am,dg as Bm,eg as Cm,fg as Dm,gg as Em,hg as Fm,ig as Gm,jg as Hm,kg as Im,lg as Um,mg as Vm,ng as Wm,og as Xm,pg as Ym,qg as Zm,rg as _m,sg as $m,tg as an,ug as bn,vg as cn}from"./chunk-4vcyf1kh.js";import{wg as Jm,xg as Km}from"./chunk-57atgbyq.js";import{Ag as vn,Bg as wn,Cg as xn,Dg as yn,Eg as zn,Fg as An,Gg as Bn,Hg as Cn,Ig as Dn,Jg as En,yg as tn,zg as un}from"./chunk-8bxtvsgm.js";import{Kg as ki,Lg as li,Mg as mi,Ng as ni,Og as oi,Pg as pi}from"./chunk-mkgbrbr9.js";import{Qg as Ej,Rg as Fj,Sg as Gj,Wg as Hj,Xg as Ij,Yg as Jj}from"./chunk-fm5211ec.js";import{$g as Rj,Zg as Pj,_g as Qj,ah as Sj,bh as Tj,ch as Uj,dh as Vj,eh as Wj,fh as Xj,gh as Yj,hh as Zj}from"./chunk-s4mmmwj4.js";import{ih as uj,jh as vj,kh as wj,lh as xj,mh as yj,oh as zj,ph as Aj,qh as Bj,rh as Cj,sh as Dj}from"./chunk-18018jkn.js";import{th as pk,vh as qk}from"./chunk-sqvqwd0p.js";import{Bh as Fh,Ch as Gh,Dh as Hh,Eh as Ih,Fh as Jh,Gh as Kh}from"./chunk-7r9vgzg4.js";import{Ih as Lh,Jh as Mh,Kh as Nh,Lh as Oh,Mh as Ph,Nh as Qh,Oh as Rh,Ph as Sh,Qh as Th,Rh as Uh,Sh as Vh,Th as Wh,Uh as Xh,Vh as Yh}from"./chunk-a959m68j.js";import{Xh as Zh,Yh as _h,Zh as $h,_h as ai}from"./chunk-1vb2rj09.js";import{di as bi}from"./chunk-g6czgcg4.js";import{gi as eh}from"./chunk-zv4nf0x2.js";import{hi as fh}from"./chunk-1z1efvtw.js";import{ii as gh,ji as hh}from"./chunk-vgfd9582.js";import{ki as ih,li as jh,mi as kh,ni as lh,oi as mh,pi as nh}from"./chunk-qsbjtp60.js";import{qi as oh,ri as ph,si as qh,ti as rh,ui as sh}from"./chunk-nf7k53ap.js";import{vi as th,wi as uh,xi as vh,yi as wh,zi as xh}from"./chunk-zk6ghjnj.js";import{Ai as yh,Bi as zh,Ci as Ah,Di as Bh,Ei as Ch,Fi as Dh,Gi as Eh}from"./chunk-bgrkxzr7.js";import{Hi as ch,Ii as dh}from"./chunk-ys56ecvx.js";import"./chunk-7we3xfde.js";import{Mi as Je,Ni as Ke,Oi as Le,Pi as Me,Qi as Ne,Ri as Oe,Si as Pe,Ti as Qe,Ui as Re,Vi as Se,Wi as Te,Xi as Ue,Yi as Ve,Zi as We}from"./chunk-ytx17bg2.js";import{$i as nf,_i as mf,aj as of,bj as pf,cj as qf,dj as rf,ej as sf,fj as tf,gj as uf,hj as vf,ij as wf,jj as xf,kj as yf,lj as zf,mj as Af,nj as Bf,oj as Cf}from"./chunk-saqbtgqr.js";import{Aj as cf,Bj as df,Cj as ef,Dj as ff,Ej as gf,Fj as hf,Gj as jf,Hj as kf,Ij as lf,vj as Ze,wj as _e,xj as $e,yj as af,zj as bf}from"./chunk-e4g8wz6t.js";import{Jj as Df,Kj as Ef,Lj as Ff,Mj as Gf,Nj as Hf,Oj as If,Pj as Jf,Qj as Kf,Rj as Lf,Sj as Mf,Tj as Nf,Uj as Of,Vj as Pf,Wj as Qf}from"./chunk-czvzaa42.js";import{ok as sr,pk as tr,qk as ur,rk as vr,sk as wr,tk as xr}from"./chunk-ghd80w8a.js";import{Ak as Nm,Bk as Om,uk as Jk,vk as Kk,wk as Lk,xk as Mk,yk as Lm,zk as Mm}from"./chunk-byjy9far.js";import"./chunk-c0n802j1.js";import"./chunk-4wpxbkbe.js";import{ml as $b,nl as ac,rl as bc}from"./chunk-gbkq5qnw.js";import{tl as Yb}from"./chunk-fvsefztj.js";import{$l as Pb,$m as hd,$n as xe,$o as qg,$p as hi,$q as Mj,Al as Da,Am as Ac,An as Id,Ap as Rg,Aq as Xi,Ar as yk,Bl as Ea,Bm as Bc,Bn as Jd,Bp as Sg,Bq as Yi,Br as zk,Cl as Fa,Cm as Cc,Cn as Kd,Cp as Tg,Cq as Zi,Dl as Ga,Dm as Dc,Dn as Ld,Dp as Ug,Dq as _i,El as Ha,Em as Ec,En as Md,Eo as Sf,Ep as Vg,Eq as $i,Fl as Ia,Fm as Fc,Fn as Nd,Fp as Wg,Fq as aj,Gl as Ja,Gm as Gc,Gn as Od,Gp as Xg,Gq as bj,Hl as Ka,Hm as Hc,Hn as Pd,Hp as Yg,Hq as cj,Il as La,Im as Ic,In as Qd,Ip as Zg,Iq as dj,Jl as Ma,Jm as Jc,Jn as Rd,Jp as _g,Jq as ej,Kl as Na,Km as Kc,Kn as Sd,Kp as $g,Kq as fj,Ll as Oa,Lm as Uc,Ln as Td,Lo as Tf,Lp as ah,Lq as gj,Ml as ib,Mm as Vc,Mn as Ud,Mp as bh,Mq as hj,Nl as jb,Nm as Wc,Nn as Vd,No as Uf,Np as ci,Nq as ij,Ol as kb,Om as Xc,On as Wd,Op as di,Oq as jj,Pl as lb,Pm as Yc,Pn as le,Po as Vf,Pq as kj,Ql as mb,Qm as Zc,Qn as me,Qo as Wf,Qq as lj,Rl as nb,Rm as _c,Rn as ne,Ro as Xf,Rp as ei,Rq as mj,Sn as oe,So as Yf,Sq as nj,Tm as $c,Tn as pe,To as Zf,Tq as oj,Ul as Fb,Um as ad,Un as qe,Uo as jg,Uq as pj,Vl as Gb,Vm as bd,Vn as re,Vo as kg,Vq as qj,Wl as Hb,Wm as cd,Wn as se,Wo as lg,Wq as rj,Xl as Ib,Xm as dd,Xn as te,Xo as mg,Xq as sj,Yl as Jb,Ym as ed,Yn as ue,Yo as ng,Yq as tj,Zl as Kb,Zm as fd,Zn as ve,Zo as og,Zp as fi,Zq as Kj,_l as Lb,_m as gd,_n as we,_o as pg,_p as gi,_q as Lj,am as Qb,an as id,ao as ye,ap as rg,aq as ii,ar as Nj,bm as Rb,bn as jd,bp as sg,bq as ji,br as Oj,cm as cc,cn as kd,co as Ce,cp as tg,cq as qi,cr as _j,dm as dc,dn as ld,do as De,dp as ug,dq as ri,dr as $j,em as ec,en as md,eo as Ee,ep as vg,eq as si,er as ak,fm as fc,fn as nd,fo as Fe,fp as wg,fq as ti,fr as bk,gm as gc,gn as od,go as Ge,gp as xg,gq as ui,gr as ck,hm as hc,hn as pd,ho as He,hp as yg,hq as vi,hr as dk,im as ic,in as qd,io as Ie,ip as zg,iq as wi,ir as ek,jm as jc,jn as rd,jp as Ag,jq as xi,jr as fk,km as kc,kn as sd,kp as Bg,kq as yi,kr as gk,lm as lc,ln as td,lp as Cg,lq as zi,lr as hk,mm as mc,mn as ud,mo as Xe,mp as Dg,mq as Ai,mr as ik,nm as nc,nn as vd,no as Ye,np as Eg,nq as Bi,nr as jk,om as oc,on as wd,op as Fg,oq as Ci,or as kk,pm as pc,pn as xd,po as Rf,pp as Gg,pq as Di,pr as lk,qm as qc,qn as yd,qp as Hg,qq as Ei,qr as mk,rm as rc,rn as zd,rp as Ig,rq as Fi,rr as nk,sm as sc,sn as Ad,sp as Jg,sq as Gi,sr as ok,tm as tc,tn as Bd,tp as Kg,tq as Qi,tr as rk,ul as xa,um as uc,un as Cd,up as Lg,uq as Ri,ur as sk,vl as ya,vm as vc,vn as Dd,vp as Mg,vq as Si,vr as tk,wl as za,wm as wc,wn as Ed,wp as Ng,wq as Ti,wr as uk,xl as Aa,xm as xc,xn as Fd,xp as Og,xq as Ui,xr as vk,yl as Ba,ym as yc,yn as Gd,yp as Pg,yq as Vi,yr as wk,zl as Ca,zm as zc,zn as Hd,zp as Qg,zq as Wi,zr as xk}from"./chunk-j82hfkcf.js";import{$r as la,Cr as M,Dr as N,Er as O,Fr as P,Gr as Q,Hr as R,Ir as S,Jr as T,Kr as U,Lr as V,Mr as W,Nr as X,Or as Y,Pr as Z,Qr as _,Rr as $,Sr as aa,Tr as ba,Ur as ca,Vr as da,Wr as ea,Xr as fa,Yr as ia,Zr as ja,_r as ka,as as ma,bs as na,cs as oa,ds as pa,es as qa,fs as ra,gs as sa,hs as ta,is as ua,js as va,ks as wa}from"./chunk-rh7mwwb4.js";import{ls as ga,ms as ha}from"./chunk-1t3j8a0q.js";import{ns as Mb,os as Nb,ps as Ob}from"./chunk-01ggk8k8.js";import"./chunk-25b8z7xa.js";import{As as Li,Bs as Mi,Cs as Ni,Ds as Oi,Es as Pi,ws as Hi,xs as Ii,ys as Ji,zs as Ki}from"./chunk-hk8j3eps.js";import{Ws as Lc,Xs as Mc,Ys as Nc,Zs as Oc,_s as Pc,at as Qc,jt as Rc,kt as Sc,lt as Tc}from"./chunk-xe93ae3r.js";import{mt as Sb,nt as Tb,ot as Ub,pt as Vb,qt as Wb,rt as Xb}from"./chunk-1spzqjve.js";import{At as Ae,Dt as Be,yt as ze}from"./chunk-f2qbjr3z.js";import"./chunk-1xwfws06.js";import{It as Zb,Jt as _b}from"./chunk-r1rfwm01.js";import{Nt as _f,Ot as $f,Pt as ag,Qt as bg,Rt as cg,St as dg,Tt as eg,Vt as fg,Wt as gg,Xt as hg,Yt as ig}from"./chunk-ahpmjg3f.js";import{$t as d,Au as E,Bu as F,Cu as G,Du as H,Eu as I,Fu as J,Gu as K,Hu as L,Zt as b,_t as c,au as e,bu as f,cu as g,du as h,eu as i,fu as j,gu as k,hu as l,iu as m,ju as n,ku as o,lu as p,mu as q,nu as r,ou as s,pu as t,qu as u,ru as v,su as w,tu as x,uu as y,vu as z,wu as A,xu as B,yu as C,zu as D}from"./chunk-bt8w146r.js";import{$u as fe,Ru as Xd,Su as Yd,Tu as Zd,Uu as _d,Vu as $d,Wu as ae,Xu as be,Yu as ce,Zu as de,_u as ee,av as ge,bv as he,cv as ie,dv as je,ev as ke}from"./chunk-6p6b01kp.js";import"./chunk-x7dv5rq7.js";import"./chunk-e0kzyf1g.js";import{Av as Eb,kv as ob,lv as pb,mv as qb,nv as rb,ov as sb,pv as tb,qv as ub,rv as vb,sv as wb,tv as xb,uv as yb,vv as zb,wv as Ab,xv as Bb,yv as Cb,zv as Db}from"./chunk-wv8h3d68.js";import{$v as $a,Ev as Pa,Fv as Qa,Iv as Ra,Nv as Sa,Ov as Ta,Uv as Ua,Vv as Va,Wv as Wa,Xv as Xa,Yv as Ya,Zv as Za,_v as _a,aw as ab,bw as bb,cw as cb,dw as db,ew as eb,fw as fb,gw as gb,iw as hb}from"./chunk-beextc84.js";import"./chunk-yr7camcd.js";import"./chunk-p5d8sb50.js";export{bl as writeNetlifyConfig,Vm as writeManifest,Gl as writeImageManifest,lp as wrapComponentForHMR,Ur as withDefaults,ok as webComponentDirectiveHandler,aq as watermark,cr as watchViews,Ql as watchMultiple,Rl as watchEffect,Pl as watch,Ge as warmImagePlaceholders,cm as waitForStore,X as waitForLocale,Zo as virtualPathFor,bk as videoDirective,G as validators,Yr as validated,we as validateValueEnhanced,fi as validateTemplate,Jm as validateRouteRules,fq as validateParams,xe as validateFormEnhanced,Tq as validateFile,se as validateFields,re as validateField,hi as validateDirective,Rd as validateCspDirectives,wk as validateConfig,gn as validateComponentScripts,Fn as validateComponentProps,bh as validateClientScript,ai as v,Cc as usesSignalsInScript,ub as usesReactiveRuntime,ui as userComponentFileExists,Ih as useVirtualList,de as useTitle,bm as useStoreOrThrow,Dp as useStore,Nk as useStorage,uf as useSlots,Pk as useSessionStorage,Zb as useServerRuntimeConfig,Sf as useServerData,ae as useSeoMeta,_b as useRuntimeConfig,dm as useRouteParams,fm as useRouteParamOrThrow,em as useRouteParam,de as usePageTitle,lf as useOptimistic,zf as useModel,hm as useMiddlewareValue,gm as useMiddlewareState,Ok as useLocalStorage,ep as useLoadingIndicator,_d as useHead,Zh as useForm,wf as useAttrs,Vq as uploadFiles,Uq as uploadFile,_l as updateInstance,jf as untrack,Ki as unregisterDirective,$l as unmountInstance,Kc as unescapeHtml,ap as typecheckStxFiles,ti as transpileTypeScript,Hr as translate,Ba as transitionDirective,gc as transformAutoImports,zn as toUsers,yn as toUser,Lp as thumbnail,Mq as thumbHashToRGBA,Nq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Df as templateCache,hd as syncRecordedResponse,ip as stxClientHelpers,dg as structuredDataDirective,Kr as stripLocalePrefix,Gm as stripDocumentWrapper,Nb as stripCommentsAndLiterals,ko as stringToStream,Fd as strictCspPreset,Re as streamingSuspenseDirective,Ve as streamToResponse,Pe as streamTemplateSimple,Je as streamTemplate,Ik as stopHmrServer,vn as stopBroadcasting,Vb as stateDirName,Wb as stateDir,Ze as state,Xg as startsDocument,Fo as startProductionServer,Ao as startInteractive,un as startBroadcasting,Mr as stampLocaleLayoutGroup,Ia as staggerDirective,dq as srcsetUrls,Ja as springDirective,od as splitByPipe,Cm as spaNavVaryHeaders,_o as sourcePathFor,kq as smartBatchSign,wi as slotContentHasExpressions,iq as signUrl,ri as shouldTranspileTypeScript,Fk as shouldReloadOnChange,nq as shouldRefreshSignature,Gk as shouldIgnoreFile,Ah as shouldCacheComponent,Pp as sharpen,$r as shape,Ub as setStateDir,lm as setRouteParams,mm as setMiddlewareState,Fe as setImagePlaceholder,of as setGlobalProvide,b as setErrorLocale,Il as setCurrentInstance,Rj as setCachedVideoResult,Gj as setCachedImageResult,Aj as setCached,cs as serveStxFile,es as serveMultipleStxFiles,Ak as serveMarkdownFile,Qo as serveFile,fs as serveApp,Po as serve,op as serializeState,Xm as serializeSetCookie,Rp as sepia,be as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,fk as scopeHTML,ek as scopeCSS,gg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Vp as saturation,gq 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,rg as runPreProcessingMiddleware,sg as runPostProcessingMiddleware,_m as runPageAction,df as runMountCallbacks,gb as runMiddleware,Yl as runHooks,Ar as runDoctor,ef as runDestroyCallbacks,vg as runComposers,Wp as rotate,bi as rewriteImagesWithSiblings,id as responseBindings,Ai as resolveTemplatePath,ha as resolveStxTargets,sk as resolveStxDirectories,Gr as resolveI18n,Jp as resize,jg as resetUnscopedSignalWarnings,Ic as resetRejectedExpressionWarnings,nc as resetPlaceholders,Zd as resetHead,np as resetHMRHandler,o as resetErrorConfig,Wr as required,Yf as reportDeferredLoopWarnings,rc as replacePlaceholders,zc as replaceInterpolations,ar as renderView,_j as renderVideoComponent,dc as renderVendorStyleTags,jr as renderToString,kr as renderToStream,lr as renderToDOM,Lq as renderThumbhashToCanvas,xr as renderTemplateString,vr as renderTemplate,wr as renderString,Me as renderStreamingPage,mi as renderSlot,qh as renderSSRSuspense,vq as renderProtectedVideo,uq as renderProtectedImg,hq as renderMediaUpload,ur as renderMarkdownView,Nm as renderLayoutTypes,Kj as renderImgComponent,wl as renderImageComponent,fe as renderHtmlAttrs,ee as renderHead,dr as renderEmail,yi as renderComponentWithSlot,ge as renderBodyAttrs,yp as render,Hd as relaxedCspPreset,qe as registerValidationRule,Te as registerStreamingDirectives,Fp as registerStoresClient,jm as registerStore,Lf as registerServeModuleBundle,eg as registerSeoDirectives,_a as registerMiddleware,vc as registerFilters,uc as registerFilter,d as registerErrorMessages,ve as registerEnhancedValidationRule,Hi as registerDirective,Qd as registerCspDirectives,In as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,hc as referencesName,Ml as ref,so as redirect,dd as recordResponseStatus,ed as recordResponseHeader,Xb as rebaseOntoStateDir,fd as readResponseStatus,gd as readResponseHeaders,yk as readMarkdownFile,Ef as readFileCached,Nl as reactive,_p as quality,sq as pruneSignatureCache,Dj as pruneCache,mf as provide,tr as protectCodeBlocks,Vr as prop,yg as processVueTemplate,Gh as processVirtualListDirectives,Kh as processVirtualGridDirectives,Zj as processVideo,te as processValidateDirective,ea as processTranslateDirective,kh as processTransitionDirectives,nh as processTransitionAttributes,je as processTitleDirective,Xc as processTemplateBindings,gh as processTeleportDirectives,oh as processSuspenseDirectives,$f as processStructuredData,Ne as processStreamDirectives,jd as processStatusDirective,Xh as processStaticDirectives,pg as processStackReplacements,og as processStackPushDirectives,ni as processSlots,Em as processShell,Ie as processServerBindings,ag as processSeoDirective,Ue as processSectionDirectives,Pc as processScopedStyles,Vc as processReactiveBindings,wq as processProtectedMedia,Qh as processPartialHydrationDirectives,ah as processOnceDirective,qg as processMiddleware,_f as processMetaDirectives,ke as processMetaDirective,zk as processMarkdownFileDirectives,Fi as processMarkdownDirectives,Zf as processLoops,yh as processKeepAliveDirectives,$g as processJsonDirective,Jh as processInfiniteListDirectives,ng as processIncludes,Mj as processImgComponents,yl as processImageComponents,ll as processImage,ie as processHeadDirective,me as processForms,oe as processFormInputDirectives,Gc as processExpressions,Kb as processEventDirectives,pe as processErrorDirective,zg as processDynamicComponents,ci as processDirectives,Pi as processDirectiveAttributes,fh as processDeferDirectives,Vd as processCustomDirectives,Nd as processCspDirectives,as as processComponentProps,mc as processClientScript,ne as processBasicFormDirectives,th as processAsyncDirectives,Wd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Be as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,dp as preloadIslandHandlers,He as preloadIconCollection,qn as poolStrings,qk as pluginManager,De as placeholdersWarmed,jh as performLeave,ih as performEnter,ff as pendingLifecycleCounts,kf as peek,kg as partialsCache,$j as parseVideoDirectiveOptions,Hp as parseUrl,Oq as parseThumbhashString,ud as parseSwitchBlock,ki as parseSlots,li as parseSlotElement,zd as parseScriptDeclarations,mk as parseSFCComponent,xq as parseProtectedArgs,Xf as parseLoopBinding,Lj as parseImgComponent,bj as parseImageUrl,xl as parseImageComponent,Ym as parseFormBody,wd as parseExpressionWithFilters,Jn as parseDefaults,po as parseCookies,vm as parseContainerSelector,rd as parseConditionalBlock,xd as parseArguments,Ma as parseAnimationShorthand,Xr as optional,rn as optimizeTemplate,Dl as optimizeImage,El as optimizeDirectory,Zr as oneOf,lg as onceStore,Vl as onUpdated,Uc as onUpdate,Xl as onUnmounted,qm as onServer,Tl as onMounted,bf as onMount,Wh as onHydrated,sf as onErrorCaptured,cf as onDestroy,Eh as onDeactivated,pm as onClient,Ul as onBeforeUpdate,Wl as onBeforeUnmount,Sl as onBeforeMount,Dh as onActivated,Hq as observeElement,to as notFound,Eg as normalizeCriticalHeadOrder,rf as nextTick,Mn as negotiateEncoding,Ua as navigateTo,Zl as mountInstance,Ea as motionDirective,Gd as moderateCspPreset,pn as minifyHtml,cg as metaDirective,Pg as metaDedupKey,Ip as mergeParams,Rg as mergeHtmlAttrs,$d as mergeHeadConfigs,Mc as mergeCssConfig,Kd as mergeCspDirectives,Ra as matchRoute,Gi as markdownDirectiveHandler,xk as markdownCache,ga as looksLikeGlob,Jr as localizePath,U as loadTranslationLazy,_ as loadTranslation,tk as loadStxConfig,db as loadMiddlewareFromDirectory,Wm as loadManifest,Dq as loadElement,wn as loadChannels,Gb as listensPassively,Qr as lintStxStrict,Fq as lazyLoadAll,Eq as lazyLoad,Ha as keyframeDirective,hr as jsxs,ir as jsxDEV,gr as jsx,ro as jsonResponse,Se as islandDirective,l as isTest,Hm as isSpaNavigation,Am as isSpaNavRequest,lq as isSignatureValid,gf as isSignal,jl as isSharpAvailable,co as isServerEnvironment,nm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Aq as isNativeLazySupported,sr as isMarkdownPath,Q as isLoading,R as isLoaded,qi as isJavaScriptScript,Bq as isIntersectionObserverSupported,rl as isImageFile,kl as isImageBackendAvailable,aa as isICUFormat,Vh as isHydrated,vi as isHydrateTrigger,bd as isHttpStatus,bo as isEdgeEnvironment,Rr as isDirectiveKind,k as isDevelopment,hf as isDerived,Ek as isCssOnlyChange,Ln as isCompressible,om as isClient,vh as isAsyncComponent,Zm as isActionableMethod,Sp as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Fc as interpolateScriptsInTemplate,Dc as interpolateScriptExpressions,Ec as interpolateScriptAttributes,x as inlineError,Fr as injectThemeBootstrap,bg as injectSeoTags,Cr as injectSeo,Rf as injectRouterScript,Dk as injectHotReload,kb as injectHeatmap,Tc as injectCss,Ld as injectCspMetaTag,Zg as injectConfigHeadTags,Dg as injectColorModeBootScript,Tg as injectCloakStyle,Kg as injectBuildId,fc as injectBrowserCoreAutoImports,Zc as injectAnalytics,nf as inject,im as initStoreRegistry,el as initNetlify,fp as initLoadingIndicator,Cq as initLazyLoading,zo as initFile,Kq as initBlurUp,Qq as initAllBlurUp,Oj as imgDirective,Bl as imageDirective,bn as hydrateTemplateStream,an as hydrateTemplate,cp as hydrateIslands,Sh as hydrateIsland,cn as hydrateFragment,Th as hydrateByStrategy,Uh as hydrateAll,vp as hydrate,Oo as htmlResponse,Vg as hoistLeadingHeadTags,Fg as hoistColorModeBootScript,lb as heatmapDirective,wj as hashString,Qf as hashFilePath,uj as hashFile,vj as hashBuffer,xg as hasVueTemplateSyntax,Wf as hasVariables,Ap as hasStore,sc as hasPlaceholders,cl as hasNetlifyConfig,ab as hasMiddleware,Lb as hasEventDirectives,Yg as hasDocumentShell,ii as hasDirectives,ma as hasDOMSupport,ul as handleImageRequest,tf as handleError,pr as h,ql as groupVariantsByFormat,Qp as grayscale,Ho as gitHash,jn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Zk as getTotalSize,mq as getTimeUntilExpiry,ch as getStoreScript,Bp as getStoreNames,zp as getStore,Sk as getStorageSize,Rk as getStorageKeys,Bi as getSourceLineInfo,si as getSharedTranspiler,Mf as getServeModuleBundle,Kf as getServeClientAsset,la as getScreenReaderOnlyStyle,gk as getScopeAttribute,Ye as getRouteParams,Qb as getPublicEnvDefine,Rb as getPublicEnv,gi as getPositionInfo,pc as getPlaceholderRegistry,tj as getPlaceholderCacheStats,Yd as getPageMeta,Bd as getNonce,sl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ce as getImagePlaceholder,ml as getImageMetadata,ze as getImageDelivery,up as getHydrationRuntime,km as getHydratedStoreState,Hk as getHmrServer,Xd as getHead,mp as getHMRHandler,fj as getFormatExtension,yj as getFileMtime,pl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ji as getDirectives,Ii as getDirective,Jl as getCurrentInstance,Qc as getCssServeAsset,Jd as getCspPreset,Sd as getCspHeaderName,Ei as getComponentCacheStats,Qj as getCachedVideoResult,qq as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,rj as getCachedPlaceholder,Fj as getCachedImageResult,zj as getCached,Cj as getCacheStats,Ig as getBuildId,tn as getBroadcastServer,ej as getBestVariant,wc as getAllFilters,Ui as generateWidthSrcset,Hh as generateVirtualListCSS,Xq as generateVideoPreview,ye as generateValidationScript,Yq as generateUploadRuntime,kn as generateTreeShakenBundle,mh as generateTransitionRuntime,lh as generateTransitionCSS,Uj as generateThumbnails,kj as generateThumbhashPlaceholder,Vn as generateTemplatesDocs,sh as generateSuspenseRuntime,rh as generateSuspenseCSS,pp as generateStateScript,cj as generateSrcsetData,Jj as generateSrcset,nl as generateSrcSet,Vj as generateSpriteSheet,er as generateSpaShell,dj as generateSourceTags,_i as generateSizesFromBreakpoints,Zi as generateSizesAttribute,ol as generateSizes,fg as generateSitemapIndex,Dr as generateSitemap,zq as generateSimpleMediaPicker,tq as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,lc as generateServerDataBridge,dk as generateScopeId,nk as generateSFCWebComponent,Ib as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,hg as generateRobotsTxt,Er as generateRobots,Ij as generateResponsiveVariants,jk as generateReactiveWebComponentTS,ik as generateReactiveWebComponent,lk as generateReactiveRuntime,kk as generateReactiveMixin,Tj as generatePoster,qj as generatePlaceholderStyle,pj as generatePlaceholderCSS,jj as generatePlaceholder,Rh as generatePartialHydrationCSS,Ad as generateNonce,_k as generateNetlifyToml,_q as generateMinifiedMediaRuntime,Zq as generateMediaRuntime,yq as generateMediaManagerEmbed,Um as generateManifest,hp as generateLoadingIndicatorHtml,Jq as generateLazyLoadRuntime,Om as generateLayoutTypes,mj as generateLQIP,Ch as generateKeepAliveRuntime,Bh as generateKeepAliveCSS,Yh as generateIslandManifest,Wq as generateImagePreview,Fl as generateImageManifest,tp as generateHydrationScript,We as generateHydrationRuntime,wp as generateHydrationCSS,Lh as generateHydrationBootstrap,Ck as generateHotReloadScript,jb as generateHeatmapScript,kp as generateHMRClientScript,Wj as generateHLSManifest,qp as generateEventBindings,Yi as generateDprSrcsetWithVariableQuality,Xi as generateDprSrcset,Wg as generateDocumentShell,_n as generateDocs,Wn as generateDirectivesDocs,Oi as generateDirectiveRuntime,ig as generateDefaultRobotsTxt,Xj as generateDASHManifest,Sc as generateCss,Ed as generateCspMetaTag,Dd as generateCspHeader,yf as generateCompositionRuntime,Un as generateComponentsDocs,Mh as generateComponentManifest,Sn as generateComponentDoc,oj as generateColorPlaceholder,Cg as generateColorModeBootScript,am as generateClientRuntime,xj as generateCacheKey,jc as generateBrowserAutoImportDestructuring,Rq as generateBlurUpRuntime,Sq as generateBlurUpCSS,Wc as generateBindingsRuntime,Vi as generateAutoWidthSrcset,ic as generateAutoImportDestructuring,xh as generateAsyncComponentRuntime,wh as generateAsyncComponentCSS,ac as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Yc as generateAnalyticsScript,bp as formatTypecheckDiagnostics,Xo as formatTypeErrors,wo as formatStxContent,Yk as formatSize,Ta as formatRoutes,xo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Br as formatDoctorReport,Xn as formatDocsAsMarkdown,Zn as formatDocsAsJson,Yn as formatDocsAsHtml,Zp as format,on as foldConstants,Yp as flipVertical,Xp as flipHorizontal,Pm as fingerprint,$o as findRuntimeTypeDeclarations,zr as findPantryPackage,yc as findMustacheEnd,qd as findMatchingEndTag,md as findMatchingDelimiter,Mb as findInterpolationEnd,sd as findIfBlocks,vd as findExpressions,Sa as findErrorPage,Nc as findDuplicateScopedStyleRanges,td as findDirectiveBlocks,ln as findDeadCode,ln as findDeadBranches,wm as findContainerRegion,Tn as findComponentFiles,ds as findCommonDir,Xk as filterRequiredFiles,zi as fileExists,Tf as extractVariables,ei as extractTemplateExpressions,Oe as extractStreamBoundaries,rp as extractState,oi as extractSlotContent,Vf as extractScriptFromTemplate,di as extractScriptBlocks,qc as extractPlaceholders,pd as extractParenthesizedExpression,cd as extractPageResponseStatus,hb as extractLayoutMetadata,nj as extractDominantColor,yd as extractDirectiveParams,ji as extractDirectiveNames,Im as extractContainerContent,Qn as extractComponentProps,Nh as extractComponentName,Rn as extractComponentDescription,Rc as extractClassNames,kc as extractBridgeData,Oh as extractBoundProps,nd as extractBalancedExpression,cc as extractAndStripCssImports,hk as extractAndScopeStyles,Jb as extractAndProcessEvents,Lk as externalizeSharedAssets,Mk as externalizeRepeatedAssets,Kk as externalizeHtml,Jc as evaluateExpression,nn as evaluateConstant,kd as evaluateAuthExpression,Bc as escapeHtmlValue,Ac as escapeHtml,C as errorRecovery,E as errorLogger,hh as ensureTeleportTargets,_g as ensureDocumentShell,ue as enhancedValidationRules,On as enableDevTools,mn as eliminateDeadCode,$e as effect,eq as dprUrls,$n as docsCommand,$b as discoverServerApi,Mm as discoverLayoutNames,Iq as disconnectObserver,Pn as disableDevTools,F as devHelpers,Dm as detectShell,ao as detectRuntime,$k as detectProjectConfig,gj as detectFormat,fn as detectBuildMode,_e as derived,dl as deploy,vk as defineStxConfig,Ep as defineStore,vf as defineSlots,Pr as defineSiteConfig,Tr as definePropsWithValidation,Sr as defineProps,pk as definePlugin,ce as definePageMeta,Wa as defineMiddleware,_h as defineForm,qf as defineExpose,pf as defineEmits,Li as defineDirective,rr as defineCustomElement,Eo as defineConfig,Mi as defineClientDirective,uh as defineAsyncComponent,Go as defineApiHandler,$q as defaultMediaConfig,Hl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,le as defaultFormClasses,tc as defaultFilters,Ud as defaultCspConfig,rk as defaultConfig,bs as default,Lc as deepMergeThemes,Oc as dedupeScopedStyles,zm as decodeTitleEntities,lj as decodeThumbhash,Pd as cspNonceDirective,Od as cspDirective,Pq as crossfadeTransition,Kp as crop,Fh as createVirtualList,ak as createVideoDirective,no as createVercelHandler,Uo as createTypeChecker,fa as createTranslateFilter,jo as createTextEncoderStream,qr as createStxApp,io as createStreamingResponse,Qe as createStreamRenderer,Cp as createStore,Za as createStorageManager,Xa as createServerCookieManager,bc as createServerApi,Ll as createScope,ph as createSSRSuspense,Xe as createRouter,Km as createRouteRuleResolver,eb as createRouteLocation,So as createRoute,Ml as createRef,Nl as createReactive,xf as createProvideContext,Jo as createProject,Do as createProductionBuild,oc as createPlaceholder,sn as createOptimizedBuild,oo as createNetlifyHandler,Tk as createNetlifyClient,fb as createMiddlewareContext,Ro as createMiddleware,Gq as createLazyObserver,zh as createKeepAliveCache,fo as createKVNamespace,Ph as createIslandRegistry,Nj as createImgDirective,Cl as createImagePlugin,vl as createImageHandler,Al as createImageDirective,nb as createHeatmapAggregator,Wk as createFileManifest,eo as createEnvAccessor,z as createEnhancedError,ho as createEdgeHandler,go as createEdgeCache,Ci as createDetailedErrorMessage,mo as createDenoHandler,al as createDefaultNetlifyConfig,Td as createCspHeaders,qo as createCookie,Ol as createComputed,Kl as createComponentInstance,lo as createCloudflareHandler,Ya as createClientCookieManager,Ni as createBuiltinDirectives,qr as createApp,Ka as createAnimationTimeline,Np as cover,Uf as convertToCommonJS,Up as contrast,Mp as contain,y as consoleError,m as configureErrorHandling,uk as config,Ol as computed,Nn as compressResponse,ug as composerPattern,tg as composer,Fm as composeShellWithPage,Hn as componentDirective,xi as componentClientSignalNames,Tm as compileTemplate,a as collectRepeatedFlag,Vk as collectDeployFiles,Ug as cloakStyleFragment,Sj as clearVideoCache,N as clearTranslationCache,dh as clearStoreCache,Qk as clearStorage,rq as clearSignatureCache,Af as clearServerData,sj as clearPlaceholderCache,mg as clearOnceStore,Cd as clearNonce,bb as clearMiddleware,Ee as clearImagePlaceholders,Ae as clearImageDeliveryCatalog,zl as clearImageCache,e as clearErrorMessages,Nf as clearDevCaches,xc as clearCustomFilters,wg as clearComposers,eh as clearComposableCache,Di as clearComponentCache,Bj as clearCache,Db as clearBlankCache,gp as cleanupLoadingIndicator,tm as classifyScript,um as classifyAllScripts,Vo as checkTemplateFile,Wo as checkTemplate,Of as checkCache,oq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Cn as channel,vo as captureScreenshots,uo as captureScreenshot,Z as cancelPendingLoads,Uk as calculateSha1,Wi as calculateOptimalWidths,Pf as cacheTemplate,Yb as cacheEngineFingerprint,ck as buildWebComponents,Yo as buildVirtualSource,br as buildViews,Gp as buildUrl,Ke as buildSuspenseResolveScript,Or as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Qm as buildRuntimeAsset,Rm as buildRouterAsset,Nr as buildLangPickerScript,aj as buildImageUrl,Lg as buildIdFragment,Qg as buildHtmlAttrs,dn as buildForProduction,Kn as buildComponentLibrary,pq as buildAuthParams,en as buildApp,Lr as buildAlternateLinks,Co as build,An as broadcastPrivate,Bn as broadcastPresence,xn as broadcast,Tp as brightness,Ob as bracketDepths,Op as blur,Eb as blankInertHtmlRegions,jq as batchSignUrls,af as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,$p as auto,ja as attributeValue,Sm as assetTags,Hb as asInvocableStatement,_r as arrayOf,Ir as applyTranslations,Hj as applyTransformations,pi as applySlots,Gn as applyPropDefaults,cq as applyPreset,Sg as applyHtmlAttrs,he as applyHead,Hc as applyFilters,Bm as appendVary,Id as apiCspPreset,Da as animationGroupDirective,Yj as analyzeVideo,hn as analyzeUsage,rm as analyzeTemplate,sm as analyzeProject,hn as analyzeDirectiveUsage,_c as analyticsDirective,Mo as addStore,Lo as addPage,Md as addNonceToInlineContent,No as addLayout,Ko as addComponent,$m as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Hf as __setSignalsGeneratorsForTest,Jg as __setBuildIdForTest,Pj as VideoProcessorCache,$h as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,ld as Tokenizer,To as TemplateTypeChecker,yo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,mr as Show,Le as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,ec as STX_AUTO_IMPORTS,Tb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,xm as SPA_NAV_HEADER,Fb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,$c as RESPONSE_STATUS_KEY,ad as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Bo as ProductionBuild,or as Portal,Io as PROJECT_TEMPLATES,bq as PRESETS,sb as NON_CLIENT_PRIMITIVES,xp as MemorySessionStore,Ti as MIME_TYPES,Qi as MEDIA_DEFAULT_WIDTHS,Si as MEDIA_DEFAULT_FORMATS,Lm as LAYOUT_TYPES_FILE,Ej as ImageProcessorCache,tl as ImageProcessingError,sp as HydrationRuntime,Bk as HotReloadServer,mb as HeatmapAggregator,Og as HTML_CLASS_MARKER,Ng as HTML_ATTRS_MARKER,fr as Fragment,nr as For,ym as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Jk as EXTERNALIZED_ASSET_DIR,fl as DeployError,gl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Sb as DEFAULT_STATE_DIR,il as DEFAULT_QUALITY,hj as DEFAULT_PLACEHOLDER_OPTIONS,hl as DEFAULT_FORMATS,Ri as DEFAULT_DPR_VALUES,jp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,$i as COMMON_SIZES,Ag as COLOR_MODE_BOOT_MARKER,Bg as COLOR_MODE_BOOT_GLOBAL,Mg as CLOAK_STYLE,En as BroadcastServer,Dn as Broadcast,Gg as BUILD_ID_META,Hg as BUILD_ID_HEADER,Pb as BROWSER_CORE_IMPORTS,ij as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,yr as $path};
2
+ import{$ as dm,$a as go,$b as qp,$c as qq,$d as qr,A as Pk,Aa as rn,Ab as Lo,Ac as Rp,Ad as Rq,Ae as Xr,B as Qk,Ba as sn,Bb as Mo,Bc as Sp,Bd as Sq,Be as Yr,C as Rk,Ca as Fn,Cb as No,Cc as Tp,Cd as Tq,Ce as Zr,D as Sk,Da as Gn,Db as Oo,Dc as Up,Dd as Uq,De as _r,E as Il,Ea as Hn,Eb as Po,Ec as Vp,Ed as Vq,Ee as $r,F as Jl,Fa as In,Fb as Qo,Fc as Wp,Fd as Wq,Fe as as,G as Kl,Ga as Jn,Gb as Ro,Gc as Xp,Gd as Xq,Ge as bs,H as Ll,Ha as Kn,Hb as So,Hc as Yp,Hd as Yq,He as cs,I as Ml,Ia as On,Ib as To,Ic as Zp,Id as Zq,Ie as ds,J as Nl,Ja as Pn,Jb as Uo,Jc as _p,Jd as _q,Je as es,K as Ol,Ka as Qn,Kb as Vo,Kc as $p,Kd as $q,Ke as fs,L as Pl,La as Rn,Lb as Wo,Lc as aq,Ld as ar,M as Ql,Ma as Sn,Mb as Xo,Mc as bq,Md as br,N as Rl,Na as Tn,Nb as cp,Nc as cq,Nd as cr,O as Sl,Oa as Un,Ob as dp,Oc as dq,Od as dr,P as Tl,Pa as Vn,Pb as ep,Pc as eq,Pd as er,Q as Ul,Qa as Wn,Qb as fp,Qc as fq,Qd as fr,R as Vl,Ra as Xn,Rb as gp,Rc as gq,Rd as gr,S as Wl,Sa as Yn,Sb as hp,Sc as hq,Sd as hr,T as Xl,Ta as Zn,Tb as ip,Tc as iq,Td as ir,U as Yl,Ua as _n,Ub as jp,Uc as jq,Ud as jr,V as Zl,Va as $n,Vb as kp,Vc as kq,Vd as kr,W as _l,Wa as ao,Wb as lp,Wc as lq,Wd as lr,X as $l,Xa as bo,Xb as mp,Xc as mq,Xd as mr,Y as am,Ya as co,Yb as np,Yc as nq,Yd as nr,Z as bm,Za as eo,Zb as op,Zc as oq,Zd as or,_ as cm,_a as fo,_b as pp,_c as pq,_d as pr,aa as em,ab as ho,ac as rp,ad as rq,ae as rr,ba as fm,bb as io,bc as sp,bd as sq,be as yr,ca as gm,cb as jo,cc as tp,cd as tq,ce as zr,da as hm,db as ko,dc as up,dd as uq,de as Ar,ea as im,eb as lo,ec as vp,ed as vq,ee as Br,fa as jm,fb as mo,fc as wp,fd as wq,fe as Cr,ga as km,gb as no,gc as xp,gd as xq,ge as Dr,ha as lm,hb as oo,hc as yp,hd as yq,he as Er,ia as mm,ib as po,ic as zp,id as zq,ie as Fr,ja as nm,jb as qo,jc as Ap,jd as Aq,je as Gr,ka as om,kb as ro,kc as Bp,kd as Bq,ke as Hr,la as pm,lb as so,lc as Cp,ld as Cq,le as Ir,ma as qm,mb as to,mc as Dp,md as Dq,me as Jr,na as rm,nb as wo,nc as Ep,nd as Eq,ne as Kr,o as a,oa as sm,ob as xo,oc as Fp,od as Fq,oe as Lr,p as Ak,pa as fn,pb as yo,pc as Gp,pd as Gq,pe as Mr,q as Bk,qa as gn,qb as zo,qc as Hp,qd as Hq,qe as Nr,r as Ck,ra as hn,rb as Bo,rc as Ip,rd as Iq,re as Or,s as Dk,sa as jn,sb as Co,sc as Jp,sd as Jq,se as Pr,t as Ek,ta as kn,tb as Do,tc as Kp,td as Kq,te as Qr,u as Fk,ua as ln,ub as Eo,uc as Lp,ud as Lq,ue as Rr,v as Gk,va as mn,vb as Go,vc as Mp,vd as Mq,ve as Sr,w as Hk,wa as nn,wb as Ho,wc as Np,wd as Nq,we as Tr,x as Ik,xa as on,xb as Io,xc as Op,xd as Oq,xe as Ur,y as Nk,ya as pn,yb as Jo,yc as Pp,yd as Pq,ye as Vr,z as Ok,za as qn,zb as Ko,zc as Qp,zd as Qq,ze as Wr}from"./chunk-s7qbba8r.js";import{Le as Yo,Me as Zo,Ne as _o,Oe as $o,Pe as ap,Qe as bp}from"./chunk-7yfk9393.js";import{Re as uo,Se as vo}from"./chunk-2ver2s2y.js";import{Te as Ao}from"./chunk-stqm4brp.js";import{Ue as en}from"./chunk-e6rxvz3p.js";import{Ve as Ln,We as Mn,Xe as Nn,Ye as Fo}from"./chunk-hzbty7hz.js";import{$e as Vk,Ze as Tk,_e as Uk,af as Wk,bf as Xk,cf as Yk,df as Zk,ef as _k,ff as $k,gf as al,hf as bl,if as cl,jf as dl,kf as el,lf as fl}from"./chunk-ym3r8ktq.js";import{mf as wl,nf as xl,of as yl,pf as zl,qf as Al,rf as Bl,sf as Cl,tf as Dl,uf as El,vf as Fl,wf as Gl,xf as Hl}from"./chunk-1h1c2048.js";import{yf as ul,zf as vl}from"./chunk-a0ajg9z5.js";import{Af as gl,Bf as hl,Cf as il,Df as jl,Ef as kl,Ff as ll,Gf as ml,If as nl,Jf as ol,Kf as pl,Lf as ql,Mf as rl,Nf as sl,Qf as tl}from"./chunk-3d3x7dwy.js";import{Rf as Pm,Sf as Qm,Tf as Rm,Uf as Sm,Vf as Tm,Wf as dn}from"./chunk-gvfgrve8.js";import{$f as xm,Xf as tm,Yf as um,Zf as vm,_f as wm,ag as ym,bg as zm,cg as Am,dg as Bm,eg as Cm,fg as Dm,gg as Em,hg as Fm,ig as Gm,jg as Hm,kg as Im,lg as Um,mg as Vm,ng as Wm,og as Xm,pg as Ym,qg as Zm,rg as _m,sg as $m,tg as an,ug as bn,vg as cn}from"./chunk-36j9qset.js";import{wg as Jm,xg as Km}from"./chunk-57atgbyq.js";import{Ag as vn,Bg as wn,Cg as xn,Dg as yn,Eg as zn,Fg as An,Gg as Bn,Hg as Cn,Ig as Dn,Jg as En,yg as tn,zg as un}from"./chunk-8bxtvsgm.js";import{Kg as ki,Lg as li,Mg as mi,Ng as ni,Og as oi,Pg as pi}from"./chunk-yefnrr5z.js";import{Qg as Ej,Rg as Fj,Sg as Gj,Wg as Hj,Xg as Ij,Yg as Jj}from"./chunk-tqw1yean.js";import{$g as Rj,Zg as Pj,_g as Qj,ah as Sj,bh as Tj,ch as Uj,dh as Vj,eh as Wj,fh as Xj,gh as Yj,hh as Zj}from"./chunk-7mc1k1tq.js";import{ih as uj,jh as vj,kh as wj,lh as xj,mh as yj,oh as zj,ph as Aj,qh as Bj,rh as Cj,sh as Dj}from"./chunk-18018jkn.js";import{th as pk,vh as qk}from"./chunk-sqvqwd0p.js";import{Bh as Fh,Ch as Gh,Dh as Hh,Eh as Ih,Fh as Jh,Gh as Kh}from"./chunk-7r9vgzg4.js";import{Ih as Lh,Jh as Mh,Kh as Nh,Lh as Oh,Mh as Ph,Nh as Qh,Oh as Rh,Ph as Sh,Qh as Th,Rh as Uh,Sh as Vh,Th as Wh,Uh as Xh,Vh as Yh}from"./chunk-a959m68j.js";import{Xh as Zh,Yh as _h,Zh as $h,_h as ai}from"./chunk-1vb2rj09.js";import{di as bi}from"./chunk-g6czgcg4.js";import{gi as eh}from"./chunk-g0dbtyk7.js";import{hi as fh}from"./chunk-1z1efvtw.js";import{ii as gh,ji as hh}from"./chunk-vgfd9582.js";import{ki as ih,li as jh,mi as kh,ni as lh,oi as mh,pi as nh}from"./chunk-qsbjtp60.js";import{qi as oh,ri as ph,si as qh,ti as rh,ui as sh}from"./chunk-nf7k53ap.js";import{vi as th,wi as uh,xi as vh,yi as wh,zi as xh}from"./chunk-zk6ghjnj.js";import{Ai as yh,Bi as zh,Ci as Ah,Di as Bh,Ei as Ch,Fi as Dh,Gi as Eh}from"./chunk-bgrkxzr7.js";import{Hi as ch,Ii as dh}from"./chunk-daxr6p6q.js";import"./chunk-7we3xfde.js";import{Mi as Je,Ni as Ke,Oi as Le,Pi as Me,Qi as Ne,Ri as Oe,Si as Pe,Ti as Qe,Ui as Re,Vi as Se,Wi as Te,Xi as Ue,Yi as Ve,Zi as We}from"./chunk-rns7wjy9.js";import{$i as nf,_i as mf,aj as of,bj as pf,cj as qf,dj as rf,ej as sf,fj as tf,gj as uf,hj as vf,ij as wf,jj as xf,kj as yf,lj as zf,mj as Af,nj as Bf,oj as Cf}from"./chunk-4vd0rqfs.js";import{Aj as cf,Bj as df,Cj as ef,Dj as ff,Ej as gf,Fj as hf,Gj as jf,Hj as kf,Ij as lf,vj as Ze,wj as _e,xj as $e,yj as af,zj as bf}from"./chunk-e4g8wz6t.js";import{Jj as Df,Kj as Ef,Lj as Ff,Mj as Gf,Nj as Hf,Oj as If,Pj as Jf,Qj as Kf,Rj as Lf,Sj as Mf,Tj as Nf,Uj as Of,Vj as Pf,Wj as Qf}from"./chunk-hq3phk1a.js";import{ok as sr,pk as tr,qk as ur,rk as vr,sk as wr,tk as xr}from"./chunk-62vng8g8.js";import{Ak as Nm,Bk as Om,uk as Jk,vk as Kk,wk as Lk,xk as Mk,yk as Lm,zk as Mm}from"./chunk-wnmegbw0.js";import"./chunk-c0n802j1.js";import"./chunk-57dxdvjh.js";import{ml as $b,nl as ac,rl as bc}from"./chunk-2853ye06.js";import{tl as Yb}from"./chunk-fvsefztj.js";import{$l as Pb,$m as hd,$n as De,$o as ug,$p as ri,$q as $j,Al as Da,Am as Ac,An as Md,Ao as Sf,Ap as Vg,Aq as $i,Bl as Ea,Bm as Bc,Bn as Nd,Bp as Wg,Bq as aj,Cl as Fa,Cm as Cc,Cn as Od,Cp as Xg,Cq as bj,Dl as Ga,Dm as Dc,Dn as Pd,Dp as Yg,Dq as cj,El as Ha,Em as Ec,En as Qd,Ep as Zg,Eq as dj,Fl as Ia,Fm as Fc,Fn as Rd,Fp as _g,Fq as ej,Gl as Ja,Gm as Gc,Gn as Sd,Gp as $g,Gq as fj,Hl as Ka,Hm as Hc,Hn as Td,Ho as Tf,Hp as ah,Hq as gj,Il as La,Im as Ic,In as Ud,Ip as bh,Iq as hj,Jl as Ma,Jm as Jc,Jn as Vd,Jo as Uf,Jp as ci,Jq as ij,Kl as Na,Km as Kc,Kn as Wd,Kp as di,Kq as jj,Ll as Oa,Lm as Uc,Ln as le,Lo as Vf,Lq as kj,Ml as ib,Mm as Vc,Mn as me,Mo as Wf,Mq as lj,Nl as jb,Nm as Wc,Nn as ne,No as Xf,Np as ei,Nq as mj,Ol as kb,Om as Xc,On as oe,Oo as Yf,Oq as nj,Pl as lb,Pm as Yc,Pn as pe,Po as Zf,Pq as oj,Ql as mb,Qm as Zc,Qn as qe,Qo as jg,Qq as pj,Rl as nb,Rm as _c,Rn as re,Ro as kg,Rq as qj,Sn as se,So as lg,Sq as rj,Tm as $c,Tn as te,To as mg,Tq as sj,Ul as Fb,Um as ad,Un as ue,Uo as ng,Uq as tj,Vl as Gb,Vm as bd,Vn as ve,Vo as og,Vp as fi,Vq as Kj,Wl as Hb,Wm as cd,Wn as we,Wo as pg,Wp as gi,Wq as Lj,Xl as Ib,Xm as dd,Xn as xe,Xo as qg,Xp as hi,Xq as Mj,Yl as Jb,Ym as ed,Yn as ye,Yo as rg,Yp as ii,Yq as Nj,Zl as Kb,Zm as fd,Zo as sg,Zp as ji,Zq as Oj,_l as Lb,_m as gd,_n as Ce,_o as tg,_p as qi,_q as _j,am as Qb,an as id,ao as Ee,ap as vg,aq as si,ar as ak,bm as Rb,bn as jd,bo as Fe,bp as wg,bq as ti,br as bk,cm as cc,cn as kd,co as Ge,cp as xg,cq as ui,cr as ck,dm as dc,dn as pd,do as He,dp as yg,dq as vi,dr as dk,em as ec,en as qd,eo as Ie,ep as zg,eq as wi,er as ek,fm as fc,fn as rd,fp as Ag,fq as xi,fr as fk,gm as gc,gn as sd,gp as Bg,gq as yi,gr as gk,hm as hc,hn as td,hp as Cg,hq as zi,hr as hk,im as ic,in as ud,io as Xe,ip as Dg,iq as Ai,ir as ik,jm as jc,jn as vd,jo as Ye,jp as Eg,jq as Bi,jr as jk,km as kc,kn as wd,kp as Fg,kq as Ci,kr as kk,lm as lc,ln as xd,lo as Rf,lp as Gg,lq as Di,lr as lk,mm as mc,mn as yd,mp as Hg,mq as Ei,mr as mk,nm as nc,nn as zd,np as Ig,nq as Fi,nr as nk,om as oc,on as Ad,op as Jg,oq as Gi,or as ok,pm as pc,pn as Bd,pp as Kg,pq as Qi,pr as rk,qm as qc,qn as Cd,qp as Lg,qq as Ri,qr as sk,rm as rc,rn as Dd,rp as Mg,rq as Si,rr as tk,sm as sc,sn as Ed,sp as Ng,sq as Ti,sr as uk,tm as tc,tn as Fd,tp as Og,tq as Ui,tr as vk,ul as xa,um as uc,un as Gd,up as Pg,uq as Vi,ur as wk,vl as ya,vm as vc,vn as Hd,vp as Qg,vq as Wi,vr as xk,wl as za,wm as wc,wn as Id,wp as Rg,wq as Xi,wr as yk,xl as Aa,xm as xc,xn as Jd,xp as Sg,xq as Yi,xr as zk,yl as Ba,ym as yc,yn as Kd,yp as Tg,yq as Zi,zl as Ca,zm as zc,zn as Ld,zp as Ug,zq as _i}from"./chunk-xgw269cf.js";import{$r as pa,Ar as O,Br as P,Cr as Q,Dr as R,Er as S,Fr as T,Gr as U,Hr as V,Ir as W,Jr as X,Kr as Y,Lr as Z,Mr as _,Nr as $,Or as aa,Pr as ba,Qr as ca,Rr as da,Sr as ea,Tr as fa,Ur as ia,Vr as ja,Wr as ka,Xr as la,Yr as ma,Zr as na,_r as oa,as as qa,bs as ra,cs as sa,ds as ta,es as ua,fs as va,gs as wa,yr as M,zr as N}from"./chunk-aqxwwq6w.js";import{hs as ga,is as ha}from"./chunk-t00ga194.js";import{js as Mb,ks as Nb,ls as Ob}from"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import{As as Pi,ss as Hi,ts as Ii,us as Ji,vs as Ki,ws as Li,xs as Mi,ys as Ni,zs as Oi}from"./chunk-ay336sqb.js";import{Ss as Lc,Ts as Mc,Us as Nc,Vs as Oc,Ws as Pc,Ys as Qc,ft as Rc,gt as Sc,ht as Tc}from"./chunk-6xs80tka.js";import{it as Sb,jt as Tb,kt as Ub,lt as Vb,mt as Wb,nt as Xb}from"./chunk-vaggjvsm.js";import{ut as ze,wt as Ae,zt as Be}from"./chunk-q9ckfwhh.js";import"./chunk-kbah2k8e.js";import{Et as Zb,Ft as _b}from"./chunk-k3dtvay1.js";import{Jt as _f,Kt as $f,Lt as ag,Mt as bg,Nt as cg,Ot as dg,Pt as eg,Rt as fg,St as gg,Tt as hg,Ut as ig}from"./chunk-eh3meyd3.js";import{Vt as ld,Wt as md,Xt as nd,Yt as od,gu as Xd,hu as Yd,iu as Zd,ju as _d,ku as $d,lu as ae,mu as be,nu as ce,ou as de,pu as ee,qu as fe,ru as ge,su as he,tu as ie,uu as je,vu as ke}from"./chunk-rzg9pars.js";import{$u as G,Au as f,Bu as g,Cu as h,Du as i,Eu as j,Fu as k,Gu as l,Hu as m,Iu as n,Ju as o,Ku as p,Lu as q,Mu as r,Nu as s,Ou as t,Pu as u,Qu as v,Ru as w,Su as x,Tu as y,Uu as z,Vu as A,Wu as B,Xu as C,Yu as D,Zu as E,_u as F,av as H,bv as I,cv as J,dv as K,ev as L,wu as b,xu as c,yu as d,zu as e}from"./chunk-1qtd4ex2.js";import"./chunk-ec18ftcg.js";import"./chunk-fbmjw0bh.js";import{Av as ub,Bv as vb,Cv as wb,Dv as xb,Ev as yb,Fv as zb,Gv as Ab,Hv as Bb,Iv as Cb,Jv as Db,Kv as Eb,uv as ob,vv as pb,wv as qb,xv as rb,yv as sb,zv as tb}from"./chunk-53sjbp3z.js";import{Ov as Pa,Pv as Qa,Sv as Ra,Xv as Sa,Yv as Ta,cw as Ua,dw as Va,ew as Wa,fw as Xa,gw as Ya,hw as Za,iw as _a,jw as $a,kw as ab,lw as bb,mw as cb,nw as db,ow as eb,pw as fb,qw as gb,sw as hb}from"./chunk-kgbz86sa.js";import"./chunk-s60eccqk.js";import"./chunk-0s3ry262.js";export{bl as writeNetlifyConfig,Vm as writeManifest,Gl as writeImageManifest,lp as wrapComponentForHMR,Ur as withDefaults,ok as webComponentDirectiveHandler,aq as watermark,cr as watchViews,Ql as watchMultiple,Rl as watchEffect,Pl as watch,Ge as warmImagePlaceholders,cm as waitForStore,X as waitForLocale,Zo as virtualPathFor,bk as videoDirective,G as validators,Yr as validated,we as validateValueEnhanced,fi as validateTemplate,Jm as validateRouteRules,fq as validateParams,xe as validateFormEnhanced,Tq as validateFile,se as validateFields,re as validateField,hi as validateDirective,Rd as validateCspDirectives,wk as validateConfig,gn as validateComponentScripts,Fn as validateComponentProps,bh as validateClientScript,ai as v,Cc as usesSignalsInScript,ub as usesReactiveRuntime,ui as userComponentFileExists,Ih as useVirtualList,de as useTitle,bm as useStoreOrThrow,Dp as useStore,Nk as useStorage,uf as useSlots,Pk as useSessionStorage,Zb as useServerRuntimeConfig,Sf as useServerData,ae as useSeoMeta,_b as useRuntimeConfig,dm as useRouteParams,fm as useRouteParamOrThrow,em as useRouteParam,de as usePageTitle,lf as useOptimistic,zf as useModel,hm as useMiddlewareValue,gm as useMiddlewareState,Ok as useLocalStorage,ep as useLoadingIndicator,_d as useHead,Zh as useForm,wf as useAttrs,Vq as uploadFiles,Uq as uploadFile,_l as updateInstance,jf as untrack,Ki as unregisterDirective,$l as unmountInstance,Kc as unescapeHtml,ap as typecheckStxFiles,ti as transpileTypeScript,Hr as translate,Ba as transitionDirective,gc as transformAutoImports,zn as toUsers,yn as toUser,Lp as thumbnail,Mq as thumbHashToRGBA,Nq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Df as templateCache,hd as syncRecordedResponse,ip as stxClientHelpers,dg as structuredDataDirective,Kr as stripLocalePrefix,Gm as stripDocumentWrapper,Nb as stripCommentsAndLiterals,ko as stringToStream,Fd as strictCspPreset,Re as streamingSuspenseDirective,Ve as streamToResponse,Pe as streamTemplateSimple,Je as streamTemplate,Ik as stopHmrServer,vn as stopBroadcasting,Vb as stateDirName,Wb as stateDir,Ze as state,Xg as startsDocument,Fo as startProductionServer,Ao as startInteractive,un as startBroadcasting,Mr as stampLocaleLayoutGroup,Ia as staggerDirective,dq as srcsetUrls,Ja as springDirective,od as splitByPipe,Cm as spaNavVaryHeaders,_o as sourcePathFor,kq as smartBatchSign,wi as slotContentHasExpressions,iq as signUrl,ri as shouldTranspileTypeScript,Fk as shouldReloadOnChange,nq as shouldRefreshSignature,Gk as shouldIgnoreFile,Ah as shouldCacheComponent,Pp as sharpen,$r as shape,Ub as setStateDir,lm as setRouteParams,mm as setMiddlewareState,Fe as setImagePlaceholder,of as setGlobalProvide,b as setErrorLocale,Il as setCurrentInstance,Rj as setCachedVideoResult,Gj as setCachedImageResult,Aj as setCached,cs as serveStxFile,es as serveMultipleStxFiles,Ak as serveMarkdownFile,Qo as serveFile,fs as serveApp,Po as serve,op as serializeState,Xm as serializeSetCookie,Rp as sepia,be as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,fk as scopeHTML,ek as scopeCSS,gg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Vp as saturation,gq 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,rg as runPreProcessingMiddleware,sg as runPostProcessingMiddleware,_m as runPageAction,df as runMountCallbacks,gb as runMiddleware,Yl as runHooks,Ar as runDoctor,ef as runDestroyCallbacks,vg as runComposers,Wp as rotate,bi as rewriteImagesWithSiblings,id as responseBindings,Ai as resolveTemplatePath,ha as resolveStxTargets,sk as resolveStxDirectories,Gr as resolveI18n,Jp as resize,jg as resetUnscopedSignalWarnings,Ic as resetRejectedExpressionWarnings,nc as resetPlaceholders,Zd as resetHead,np as resetHMRHandler,o as resetErrorConfig,Wr as required,Yf as reportDeferredLoopWarnings,rc as replacePlaceholders,zc as replaceInterpolations,ar as renderView,_j as renderVideoComponent,dc as renderVendorStyleTags,jr as renderToString,kr as renderToStream,lr as renderToDOM,Lq as renderThumbhashToCanvas,xr as renderTemplateString,vr as renderTemplate,wr as renderString,Me as renderStreamingPage,mi as renderSlot,qh as renderSSRSuspense,vq as renderProtectedVideo,uq as renderProtectedImg,hq as renderMediaUpload,ur as renderMarkdownView,Nm as renderLayoutTypes,Kj as renderImgComponent,wl as renderImageComponent,fe as renderHtmlAttrs,ee as renderHead,dr as renderEmail,yi as renderComponentWithSlot,ge as renderBodyAttrs,yp as render,Hd as relaxedCspPreset,qe as registerValidationRule,Te as registerStreamingDirectives,Fp as registerStoresClient,jm as registerStore,Lf as registerServeModuleBundle,eg as registerSeoDirectives,_a as registerMiddleware,vc as registerFilters,uc as registerFilter,d as registerErrorMessages,ve as registerEnhancedValidationRule,Hi as registerDirective,Qd as registerCspDirectives,In as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,hc as referencesName,Ml as ref,so as redirect,dd as recordResponseStatus,ed as recordResponseHeader,Xb as rebaseOntoStateDir,fd as readResponseStatus,gd as readResponseHeaders,yk as readMarkdownFile,Ef as readFileCached,Nl as reactive,_p as quality,sq as pruneSignatureCache,Dj as pruneCache,mf as provide,tr as protectCodeBlocks,Vr as prop,yg as processVueTemplate,Gh as processVirtualListDirectives,Kh as processVirtualGridDirectives,Zj as processVideo,te as processValidateDirective,ea as processTranslateDirective,kh as processTransitionDirectives,nh as processTransitionAttributes,je as processTitleDirective,Xc as processTemplateBindings,gh as processTeleportDirectives,oh as processSuspenseDirectives,$f as processStructuredData,Ne as processStreamDirectives,jd as processStatusDirective,Xh as processStaticDirectives,pg as processStackReplacements,og as processStackPushDirectives,ni as processSlots,Em as processShell,Ie as processServerBindings,ag as processSeoDirective,Ue as processSectionDirectives,Pc as processScopedStyles,Vc as processReactiveBindings,wq as processProtectedMedia,Qh as processPartialHydrationDirectives,ah as processOnceDirective,qg as processMiddleware,_f as processMetaDirectives,ke as processMetaDirective,zk as processMarkdownFileDirectives,Fi as processMarkdownDirectives,Zf as processLoops,yh as processKeepAliveDirectives,$g as processJsonDirective,Jh as processInfiniteListDirectives,ng as processIncludes,Mj as processImgComponents,yl as processImageComponents,ll as processImage,ie as processHeadDirective,me as processForms,oe as processFormInputDirectives,Gc as processExpressions,Kb as processEventDirectives,pe as processErrorDirective,zg as processDynamicComponents,ci as processDirectives,Pi as processDirectiveAttributes,fh as processDeferDirectives,Vd as processCustomDirectives,Nd as processCspDirectives,as as processComponentProps,mc as processClientScript,ne as processBasicFormDirectives,th as processAsyncDirectives,Wd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Be as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,dp as preloadIslandHandlers,He as preloadIconCollection,qn as poolStrings,qk as pluginManager,De as placeholdersWarmed,jh as performLeave,ih as performEnter,ff as pendingLifecycleCounts,kf as peek,kg as partialsCache,$j as parseVideoDirectiveOptions,Hp as parseUrl,Oq as parseThumbhashString,ud as parseSwitchBlock,ki as parseSlots,li as parseSlotElement,zd as parseScriptDeclarations,mk as parseSFCComponent,xq as parseProtectedArgs,Xf as parseLoopBinding,Lj as parseImgComponent,bj as parseImageUrl,xl as parseImageComponent,Ym as parseFormBody,wd as parseExpressionWithFilters,Jn as parseDefaults,po as parseCookies,vm as parseContainerSelector,rd as parseConditionalBlock,xd as parseArguments,Ma as parseAnimationShorthand,Xr as optional,rn as optimizeTemplate,Dl as optimizeImage,El as optimizeDirectory,Zr as oneOf,lg as onceStore,Vl as onUpdated,Uc as onUpdate,Xl as onUnmounted,qm as onServer,Tl as onMounted,bf as onMount,Wh as onHydrated,sf as onErrorCaptured,cf as onDestroy,Eh as onDeactivated,pm as onClient,Ul as onBeforeUpdate,Wl as onBeforeUnmount,Sl as onBeforeMount,Dh as onActivated,Hq as observeElement,to as notFound,Eg as normalizeCriticalHeadOrder,rf as nextTick,Mn as negotiateEncoding,Ua as navigateTo,Zl as mountInstance,Ea as motionDirective,Gd as moderateCspPreset,pn as minifyHtml,cg as metaDirective,Pg as metaDedupKey,Ip as mergeParams,Rg as mergeHtmlAttrs,$d as mergeHeadConfigs,Mc as mergeCssConfig,Kd as mergeCspDirectives,Ra as matchRoute,Gi as markdownDirectiveHandler,xk as markdownCache,ga as looksLikeGlob,Jr as localizePath,U as loadTranslationLazy,_ as loadTranslation,tk as loadStxConfig,db as loadMiddlewareFromDirectory,Wm as loadManifest,Dq as loadElement,wn as loadChannels,Gb as listensPassively,Qr as lintStxStrict,Fq as lazyLoadAll,Eq as lazyLoad,Ha as keyframeDirective,hr as jsxs,ir as jsxDEV,gr as jsx,ro as jsonResponse,Se as islandDirective,l as isTest,Hm as isSpaNavigation,Am as isSpaNavRequest,lq as isSignatureValid,gf as isSignal,jl as isSharpAvailable,co as isServerEnvironment,nm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Aq as isNativeLazySupported,sr as isMarkdownPath,Q as isLoading,R as isLoaded,qi as isJavaScriptScript,Bq as isIntersectionObserverSupported,rl as isImageFile,kl as isImageBackendAvailable,aa as isICUFormat,Vh as isHydrated,vi as isHydrateTrigger,bd as isHttpStatus,bo as isEdgeEnvironment,Rr as isDirectiveKind,k as isDevelopment,hf as isDerived,Ek as isCssOnlyChange,Ln as isCompressible,om as isClient,vh as isAsyncComponent,Zm as isActionableMethod,Sp as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Fc as interpolateScriptsInTemplate,Dc as interpolateScriptExpressions,Ec as interpolateScriptAttributes,x as inlineError,Fr as injectThemeBootstrap,bg as injectSeoTags,Cr as injectSeo,Rf as injectRouterScript,Dk as injectHotReload,kb as injectHeatmap,Tc as injectCss,Ld as injectCspMetaTag,Zg as injectConfigHeadTags,Dg as injectColorModeBootScript,Tg as injectCloakStyle,Kg as injectBuildId,fc as injectBrowserCoreAutoImports,Zc as injectAnalytics,nf as inject,im as initStoreRegistry,el as initNetlify,fp as initLoadingIndicator,Cq as initLazyLoading,zo as initFile,Kq as initBlurUp,Qq as initAllBlurUp,Oj as imgDirective,Bl as imageDirective,bn as hydrateTemplateStream,an as hydrateTemplate,cp as hydrateIslands,Sh as hydrateIsland,cn as hydrateFragment,Th as hydrateByStrategy,Uh as hydrateAll,vp as hydrate,Oo as htmlResponse,Vg as hoistLeadingHeadTags,Fg as hoistColorModeBootScript,lb as heatmapDirective,wj as hashString,Qf as hashFilePath,uj as hashFile,vj as hashBuffer,xg as hasVueTemplateSyntax,Wf as hasVariables,Ap as hasStore,sc as hasPlaceholders,cl as hasNetlifyConfig,ab as hasMiddleware,Lb as hasEventDirectives,Yg as hasDocumentShell,ii as hasDirectives,ma as hasDOMSupport,ul as handleImageRequest,tf as handleError,pr as h,ql as groupVariantsByFormat,Qp as grayscale,Ho as gitHash,jn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Zk as getTotalSize,mq as getTimeUntilExpiry,ch as getStoreScript,Bp as getStoreNames,zp as getStore,Sk as getStorageSize,Rk as getStorageKeys,Bi as getSourceLineInfo,si as getSharedTranspiler,Mf as getServeModuleBundle,Kf as getServeClientAsset,la as getScreenReaderOnlyStyle,gk as getScopeAttribute,Ye as getRouteParams,Qb as getPublicEnvDefine,Rb as getPublicEnv,gi as getPositionInfo,pc as getPlaceholderRegistry,tj as getPlaceholderCacheStats,Yd as getPageMeta,Bd as getNonce,sl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ce as getImagePlaceholder,ml as getImageMetadata,ze as getImageDelivery,up as getHydrationRuntime,km as getHydratedStoreState,Hk as getHmrServer,Xd as getHead,mp as getHMRHandler,fj as getFormatExtension,yj as getFileMtime,pl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ji as getDirectives,Ii as getDirective,Jl as getCurrentInstance,Qc as getCssServeAsset,Jd as getCspPreset,Sd as getCspHeaderName,Ei as getComponentCacheStats,Qj as getCachedVideoResult,qq as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,rj as getCachedPlaceholder,Fj as getCachedImageResult,zj as getCached,Cj as getCacheStats,Ig as getBuildId,tn as getBroadcastServer,ej as getBestVariant,wc as getAllFilters,Ui as generateWidthSrcset,Hh as generateVirtualListCSS,Xq as generateVideoPreview,ye as generateValidationScript,Yq as generateUploadRuntime,kn as generateTreeShakenBundle,mh as generateTransitionRuntime,lh as generateTransitionCSS,Uj as generateThumbnails,kj as generateThumbhashPlaceholder,Vn as generateTemplatesDocs,sh as generateSuspenseRuntime,rh as generateSuspenseCSS,pp as generateStateScript,cj as generateSrcsetData,Jj as generateSrcset,nl as generateSrcSet,Vj as generateSpriteSheet,er as generateSpaShell,dj as generateSourceTags,_i as generateSizesFromBreakpoints,Zi as generateSizesAttribute,ol as generateSizes,fg as generateSitemapIndex,Dr as generateSitemap,zq as generateSimpleMediaPicker,tq as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,lc as generateServerDataBridge,dk as generateScopeId,nk as generateSFCWebComponent,Ib as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,hg as generateRobotsTxt,Er as generateRobots,Ij as generateResponsiveVariants,jk as generateReactiveWebComponentTS,ik as generateReactiveWebComponent,lk as generateReactiveRuntime,kk as generateReactiveMixin,Tj as generatePoster,qj as generatePlaceholderStyle,pj as generatePlaceholderCSS,jj as generatePlaceholder,Rh as generatePartialHydrationCSS,Ad as generateNonce,_k as generateNetlifyToml,_q as generateMinifiedMediaRuntime,Zq as generateMediaRuntime,yq as generateMediaManagerEmbed,Um as generateManifest,hp as generateLoadingIndicatorHtml,Jq as generateLazyLoadRuntime,Om as generateLayoutTypes,mj as generateLQIP,Ch as generateKeepAliveRuntime,Bh as generateKeepAliveCSS,Yh as generateIslandManifest,Wq as generateImagePreview,Fl as generateImageManifest,tp as generateHydrationScript,We as generateHydrationRuntime,wp as generateHydrationCSS,Lh as generateHydrationBootstrap,Ck as generateHotReloadScript,jb as generateHeatmapScript,kp as generateHMRClientScript,Wj as generateHLSManifest,qp as generateEventBindings,Yi as generateDprSrcsetWithVariableQuality,Xi as generateDprSrcset,Wg as generateDocumentShell,_n as generateDocs,Wn as generateDirectivesDocs,Oi as generateDirectiveRuntime,ig as generateDefaultRobotsTxt,Xj as generateDASHManifest,Sc as generateCss,Ed as generateCspMetaTag,Dd as generateCspHeader,yf as generateCompositionRuntime,Un as generateComponentsDocs,Mh as generateComponentManifest,Sn as generateComponentDoc,oj as generateColorPlaceholder,Cg as generateColorModeBootScript,am as generateClientRuntime,xj as generateCacheKey,jc as generateBrowserAutoImportDestructuring,Rq as generateBlurUpRuntime,Sq as generateBlurUpCSS,Wc as generateBindingsRuntime,Vi as generateAutoWidthSrcset,ic as generateAutoImportDestructuring,xh as generateAsyncComponentRuntime,wh as generateAsyncComponentCSS,ac as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Yc as generateAnalyticsScript,bp as formatTypecheckDiagnostics,Xo as formatTypeErrors,wo as formatStxContent,Yk as formatSize,Ta as formatRoutes,xo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Br as formatDoctorReport,Xn as formatDocsAsMarkdown,Zn as formatDocsAsJson,Yn as formatDocsAsHtml,Zp as format,on as foldConstants,Yp as flipVertical,Xp as flipHorizontal,Pm as fingerprint,$o as findRuntimeTypeDeclarations,zr as findPantryPackage,yc as findMustacheEnd,qd as findMatchingEndTag,md as findMatchingDelimiter,Mb as findInterpolationEnd,sd as findIfBlocks,vd as findExpressions,Sa as findErrorPage,Nc as findDuplicateScopedStyleRanges,td as findDirectiveBlocks,ln as findDeadCode,ln as findDeadBranches,wm as findContainerRegion,Tn as findComponentFiles,ds as findCommonDir,Xk as filterRequiredFiles,zi as fileExists,Tf as extractVariables,ei as extractTemplateExpressions,Oe as extractStreamBoundaries,rp as extractState,oi as extractSlotContent,Vf as extractScriptFromTemplate,di as extractScriptBlocks,qc as extractPlaceholders,pd as extractParenthesizedExpression,cd as extractPageResponseStatus,hb as extractLayoutMetadata,nj as extractDominantColor,yd as extractDirectiveParams,ji as extractDirectiveNames,Im as extractContainerContent,Qn as extractComponentProps,Nh as extractComponentName,Rn as extractComponentDescription,Rc as extractClassNames,kc as extractBridgeData,Oh as extractBoundProps,nd as extractBalancedExpression,cc as extractAndStripCssImports,hk as extractAndScopeStyles,Jb as extractAndProcessEvents,Lk as externalizeSharedAssets,Mk as externalizeRepeatedAssets,Kk as externalizeHtml,Jc as evaluateExpression,nn as evaluateConstant,kd as evaluateAuthExpression,Bc as escapeHtmlValue,Ac as escapeHtml,C as errorRecovery,E as errorLogger,hh as ensureTeleportTargets,_g as ensureDocumentShell,ue as enhancedValidationRules,On as enableDevTools,mn as eliminateDeadCode,$e as effect,eq as dprUrls,$n as docsCommand,$b as discoverServerApi,Mm as discoverLayoutNames,Iq as disconnectObserver,Pn as disableDevTools,F as devHelpers,Dm as detectShell,ao as detectRuntime,$k as detectProjectConfig,gj as detectFormat,fn as detectBuildMode,_e as derived,dl as deploy,vk as defineStxConfig,Ep as defineStore,vf as defineSlots,Pr as defineSiteConfig,Tr as definePropsWithValidation,Sr as defineProps,pk as definePlugin,ce as definePageMeta,Wa as defineMiddleware,_h as defineForm,qf as defineExpose,pf as defineEmits,Li as defineDirective,rr as defineCustomElement,Eo as defineConfig,Mi as defineClientDirective,uh as defineAsyncComponent,Go as defineApiHandler,$q as defaultMediaConfig,Hl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,le as defaultFormClasses,tc as defaultFilters,Ud as defaultCspConfig,rk as defaultConfig,bs as default,Lc as deepMergeThemes,Oc as dedupeScopedStyles,zm as decodeTitleEntities,lj as decodeThumbhash,Pd as cspNonceDirective,Od as cspDirective,Pq as crossfadeTransition,Kp as crop,Fh as createVirtualList,ak as createVideoDirective,no as createVercelHandler,Uo as createTypeChecker,fa as createTranslateFilter,jo as createTextEncoderStream,qr as createStxApp,io as createStreamingResponse,Qe as createStreamRenderer,Cp as createStore,Za as createStorageManager,Xa as createServerCookieManager,bc as createServerApi,Ll as createScope,ph as createSSRSuspense,Xe as createRouter,Km as createRouteRuleResolver,eb as createRouteLocation,So as createRoute,Ml as createRef,Nl as createReactive,xf as createProvideContext,Jo as createProject,Do as createProductionBuild,oc as createPlaceholder,sn as createOptimizedBuild,oo as createNetlifyHandler,Tk as createNetlifyClient,fb as createMiddlewareContext,Ro as createMiddleware,Gq as createLazyObserver,zh as createKeepAliveCache,fo as createKVNamespace,Ph as createIslandRegistry,Nj as createImgDirective,Cl as createImagePlugin,vl as createImageHandler,Al as createImageDirective,nb as createHeatmapAggregator,Wk as createFileManifest,eo as createEnvAccessor,z as createEnhancedError,ho as createEdgeHandler,go as createEdgeCache,Ci as createDetailedErrorMessage,mo as createDenoHandler,al as createDefaultNetlifyConfig,Td as createCspHeaders,qo as createCookie,Ol as createComputed,Kl as createComponentInstance,lo as createCloudflareHandler,Ya as createClientCookieManager,Ni as createBuiltinDirectives,qr as createApp,Ka as createAnimationTimeline,Np as cover,Uf as convertToCommonJS,Up as contrast,Mp as contain,y as consoleError,m as configureErrorHandling,uk as config,Ol as computed,Nn as compressResponse,ug as composerPattern,tg as composer,Fm as composeShellWithPage,Hn as componentDirective,xi as componentClientSignalNames,Tm as compileTemplate,a as collectRepeatedFlag,Vk as collectDeployFiles,Ug as cloakStyleFragment,Sj as clearVideoCache,N as clearTranslationCache,dh as clearStoreCache,Qk as clearStorage,rq as clearSignatureCache,Af as clearServerData,sj as clearPlaceholderCache,mg as clearOnceStore,Cd as clearNonce,bb as clearMiddleware,Ee as clearImagePlaceholders,Ae as clearImageDeliveryCatalog,zl as clearImageCache,e as clearErrorMessages,Nf as clearDevCaches,xc as clearCustomFilters,wg as clearComposers,eh as clearComposableCache,Di as clearComponentCache,Bj as clearCache,Db as clearBlankCache,gp as cleanupLoadingIndicator,tm as classifyScript,um as classifyAllScripts,Vo as checkTemplateFile,Wo as checkTemplate,Of as checkCache,oq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Cn as channel,vo as captureScreenshots,uo as captureScreenshot,Z as cancelPendingLoads,Uk as calculateSha1,Wi as calculateOptimalWidths,Pf as cacheTemplate,Yb as cacheEngineFingerprint,ck as buildWebComponents,Yo as buildVirtualSource,br as buildViews,Gp as buildUrl,Ke as buildSuspenseResolveScript,Or as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Qm as buildRuntimeAsset,Rm as buildRouterAsset,Nr as buildLangPickerScript,aj as buildImageUrl,Lg as buildIdFragment,Qg as buildHtmlAttrs,dn as buildForProduction,Kn as buildComponentLibrary,pq as buildAuthParams,en as buildApp,Lr as buildAlternateLinks,Co as build,An as broadcastPrivate,Bn as broadcastPresence,xn as broadcast,Tp as brightness,Ob as bracketDepths,Op as blur,Eb as blankInertHtmlRegions,jq as batchSignUrls,af as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,$p as auto,ja as attributeValue,Sm as assetTags,Hb as asInvocableStatement,_r as arrayOf,Ir as applyTranslations,Hj as applyTransformations,pi as applySlots,Gn as applyPropDefaults,cq as applyPreset,Sg as applyHtmlAttrs,he as applyHead,Hc as applyFilters,Bm as appendVary,Id as apiCspPreset,Da as animationGroupDirective,Yj as analyzeVideo,hn as analyzeUsage,rm as analyzeTemplate,sm as analyzeProject,hn as analyzeDirectiveUsage,_c as analyticsDirective,Mo as addStore,Lo as addPage,Md as addNonceToInlineContent,No as addLayout,Ko as addComponent,$m as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Hf as __setSignalsGeneratorsForTest,Jg as __setBuildIdForTest,Pj as VideoProcessorCache,$h as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,ld as Tokenizer,To as TemplateTypeChecker,yo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,mr as Show,Le as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,ec as STX_AUTO_IMPORTS,Tb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,xm as SPA_NAV_HEADER,Fb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,$c as RESPONSE_STATUS_KEY,ad as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Bo as ProductionBuild,or as Portal,Io as PROJECT_TEMPLATES,bq as PRESETS,sb as NON_CLIENT_PRIMITIVES,xp as MemorySessionStore,Ti as MIME_TYPES,Qi as MEDIA_DEFAULT_WIDTHS,Si as MEDIA_DEFAULT_FORMATS,Lm as LAYOUT_TYPES_FILE,Ej as ImageProcessorCache,tl as ImageProcessingError,sp as HydrationRuntime,Bk as HotReloadServer,mb as HeatmapAggregator,Og as HTML_CLASS_MARKER,Ng as HTML_ATTRS_MARKER,fr as Fragment,nr as For,ym as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Jk as EXTERNALIZED_ASSET_DIR,fl as DeployError,gl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Sb as DEFAULT_STATE_DIR,il as DEFAULT_QUALITY,hj as DEFAULT_PLACEHOLDER_OPTIONS,hl as DEFAULT_FORMATS,Ri as DEFAULT_DPR_VALUES,jp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,$i as COMMON_SIZES,Ag as COLOR_MODE_BOOT_MARKER,Bg as COLOR_MODE_BOOT_GLOBAL,Mg as CLOAK_STYLE,En as BroadcastServer,Dn as Broadcast,Gg as BUILD_ID_META,Hg as BUILD_ID_HEADER,Pb as BROWSER_CORE_IMPORTS,ij as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,yr as $path};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Tk as a,Uk as b,Vk as c,Wk as d,Xk as e}from"./chunk-c7qdnc5d.js";import"./chunk-0s3ry262.js";export{b as injectPwaTags,e as generateThemeColorMeta,c as generateSwRegistrationScript,a as generatePwaTags,d as generateManifestLink};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Hi as a,Ii as b}from"./chunk-daxr6p6q.js";import"./chunk-7we3xfde.js";import"./chunk-57dxdvjh.js";import"./chunk-2853ye06.js";import"./chunk-fvsefztj.js";import"./chunk-xgw269cf.js";import"./chunk-aqxwwq6w.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-6xs80tka.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-kbah2k8e.js";import"./chunk-k3dtvay1.js";import"./chunk-eh3meyd3.js";import"./chunk-rzg9pars.js";import"./chunk-1qtd4ex2.js";import"./chunk-ec18ftcg.js";import"./chunk-fbmjw0bh.js";import"./chunk-53sjbp3z.js";import"./chunk-kgbz86sa.js";import"./chunk-s60eccqk.js";import"./chunk-0s3ry262.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Nf as T}from"./chunk-74r1zw2h.js";import{xw as I}from"./chunk-p5d8sb50.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./chunk-k5b9471y.js")}
2
+ import{Nf as T}from"./chunk-3d3x7dwy.js";import{Hw as I}from"./chunk-0s3ry262.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./chunk-5hq25yky.js")}
3
3
  export{g as yf,l as zf};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-p5d8sb50.js";var Y=null,S=[],F=new WeakMap;function I(z){let K=z,B=new Set,G={get value(){if(Y){let H=F.get(G);if(!H)H=new Set,F.set(G,H);H.add(Y)}return K},set value(H){if(!Object.is(K,H)){K=H,B.forEach((J)=>J(H));let L=F.get(G);if(L)L.forEach((J)=>J())}},subscribe(H){return B.add(H),()=>B.delete(H)},peek(){return K}};return G}function W(z){return z!==null&&typeof z==="object"&&"value"in z&&"subscribe"in z&&"peek"in z}function P(z){return W(z)?z.value:z}function j(z){let K={};for(let B in z)if(Object.prototype.hasOwnProperty.call(z,B))K[B]=I(z[B]);return K}function D(z){return I(z)}function U(z){let K=typeof z==="function",B=K?z:z.get,G=K?void 0:z.set,H=K?Object.is:z.equals||Object.is,L,J=!0,Q=new Set,X=new Set,_=()=>{if(J=!0,X.size>0){let N=T.value;X.forEach(($)=>$(N))}};function Z(){Q.clear();let N=Y;Y=_,S.push(_);try{return B()}finally{S.pop(),Y=N}}let T={get value(){if(Y){let N=F.get(T);if(!N)N=new Set,F.set(T,N);N.add(Y)}if(J){let N=Z();if(!H(L,N))L=N;J=!1}return L},set value(N){if(G)G(N);else console.warn("Computed property is readonly")},subscribe(N){return X.add(N),()=>X.delete(N)},peek(){if(J)L=B(),J=!1;return L},invalidate(){J=!0},get dirty(){return J},get deps(){return Q}};return T}function x(z,K,B={}){let{immediate:G=!1,deep:H=!1,flush:L="pre",once:J=!1}=B,Q,X=!0,_=!1,Z=()=>{if(W(z))return H?q(z.value):z.value;return z()},T=()=>{if(!X||_)return;let M=Z();if(Q!==void 0&&Object.is(Q,M)&&!H)return;let A=()=>{if(K(M,Q),Q=H?q(M):M,J)$()};if(L==="sync")A();else if(L==="post")queueMicrotask(A);else Promise.resolve().then(A)},N=null;if(W(z))N=z.subscribe(()=>T());else N=U(z).subscribe(()=>T());if(G)Q=void 0,T();else Q=Z();let $=()=>{if(X=!1,N)N(),N=null};return $.pause=()=>{_=!0},$.resume=()=>{_=!1},$}function E(z,K,B={}){let{immediate:G=!1,once:H=!1}=B,L=z.map((T)=>W(T)?T.value:void 0),J=!0,Q=!1,X=()=>{if(!J||Q)return;let T=z.map((N)=>W(N)?N.value:void 0);if(K(T,L),L=[...T],H)Z()},_=z.map((T)=>{if(W(T))return T.subscribe(()=>X());return()=>{}});if(G)X();let Z=()=>{J=!1,_.forEach((T)=>T())};return Z.pause=()=>{Q=!0},Z.resume=()=>{Q=!1},Z}function y(z,K={}){let{flush:B="pre"}=K,G,H=!0,L=!1,J=()=>{if(!H||L)return;if(G)G();let X=Y;Y=J,S.push(J);try{G=z()}finally{S.pop(),Y=X}};if(B==="sync")J();else if(B==="post")queueMicrotask(J);else Promise.resolve().then(J);let Q=()=>{if(H=!1,G)G()};return Q.pause=()=>{L=!0},Q.resume=()=>{L=!1},Q}function C(z,K={},B){let G=/@computed\s*\(\s*(\w+)\s*,\s*(.+?)\s*\)/gi;return z.replace(G,(H,L,J)=>{try{let X=Function(...Object.keys(K),`return ${J}`)(...Object.values(K));return K[L]=X,`<!-- computed: ${L} = ${X} -->`}catch(Q){return`<!-- computed error: ${L} - ${Q} -->`}})}function R(z,K={},B){let G=/@watch\s*\(\s*(\w+)\s*\)\s*([\s\S]*?)@endwatch/gi;return z.replace(G,(H,L,J)=>{return`
2
+ import"./chunk-0s3ry262.js";var Y=null,S=[],F=new WeakMap;function I(z){let K=z,B=new Set,G={get value(){if(Y){let H=F.get(G);if(!H)H=new Set,F.set(G,H);H.add(Y)}return K},set value(H){if(!Object.is(K,H)){K=H,B.forEach((J)=>J(H));let L=F.get(G);if(L)L.forEach((J)=>J())}},subscribe(H){return B.add(H),()=>B.delete(H)},peek(){return K}};return G}function W(z){return z!==null&&typeof z==="object"&&"value"in z&&"subscribe"in z&&"peek"in z}function P(z){return W(z)?z.value:z}function j(z){let K={};for(let B in z)if(Object.prototype.hasOwnProperty.call(z,B))K[B]=I(z[B]);return K}function D(z){return I(z)}function U(z){let K=typeof z==="function",B=K?z:z.get,G=K?void 0:z.set,H=K?Object.is:z.equals||Object.is,L,J=!0,Q=new Set,X=new Set,_=()=>{if(J=!0,X.size>0){let N=T.value;X.forEach(($)=>$(N))}};function Z(){Q.clear();let N=Y;Y=_,S.push(_);try{return B()}finally{S.pop(),Y=N}}let T={get value(){if(Y){let N=F.get(T);if(!N)N=new Set,F.set(T,N);N.add(Y)}if(J){let N=Z();if(!H(L,N))L=N;J=!1}return L},set value(N){if(G)G(N);else console.warn("Computed property is readonly")},subscribe(N){return X.add(N),()=>X.delete(N)},peek(){if(J)L=B(),J=!1;return L},invalidate(){J=!0},get dirty(){return J},get deps(){return Q}};return T}function x(z,K,B={}){let{immediate:G=!1,deep:H=!1,flush:L="pre",once:J=!1}=B,Q,X=!0,_=!1,Z=()=>{if(W(z))return H?q(z.value):z.value;return z()},T=()=>{if(!X||_)return;let M=Z();if(Q!==void 0&&Object.is(Q,M)&&!H)return;let A=()=>{if(K(M,Q),Q=H?q(M):M,J)$()};if(L==="sync")A();else if(L==="post")queueMicrotask(A);else Promise.resolve().then(A)},N=null;if(W(z))N=z.subscribe(()=>T());else N=U(z).subscribe(()=>T());if(G)Q=void 0,T();else Q=Z();let $=()=>{if(X=!1,N)N(),N=null};return $.pause=()=>{_=!0},$.resume=()=>{_=!1},$}function E(z,K,B={}){let{immediate:G=!1,once:H=!1}=B,L=z.map((T)=>W(T)?T.value:void 0),J=!0,Q=!1,X=()=>{if(!J||Q)return;let T=z.map((N)=>W(N)?N.value:void 0);if(K(T,L),L=[...T],H)Z()},_=z.map((T)=>{if(W(T))return T.subscribe(()=>X());return()=>{}});if(G)X();let Z=()=>{J=!1,_.forEach((T)=>T())};return Z.pause=()=>{Q=!0},Z.resume=()=>{Q=!1},Z}function y(z,K={}){let{flush:B="pre"}=K,G,H=!0,L=!1,J=()=>{if(!H||L)return;if(G)G();let X=Y;Y=J,S.push(J);try{G=z()}finally{S.pop(),Y=X}};if(B==="sync")J();else if(B==="post")queueMicrotask(J);else Promise.resolve().then(J);let Q=()=>{if(H=!1,G)G()};return Q.pause=()=>{L=!0},Q.resume=()=>{L=!1},Q}function C(z,K={},B){let G=/@computed\s*\(\s*(\w+)\s*,\s*(.+?)\s*\)/gi;return z.replace(G,(H,L,J)=>{try{let X=Function(...Object.keys(K),`return ${J}`)(...Object.values(K));return K[L]=X,`<!-- computed: ${L} = ${X} -->`}catch(Q){return`<!-- computed error: ${L} - ${Q} -->`}})}function R(z,K={},B){let G=/@watch\s*\(\s*(\w+)\s*\)\s*([\s\S]*?)@endwatch/gi;return z.replace(G,(H,L,J)=>{return`
3
3
  <script data-watch="${`watch-${Math.random().toString(36).substring(2,9)}`}">
4
4
  (function() {
5
5
  // Watch implementation for ${L}
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{xw as H}from"./chunk-p5d8sb50.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...v){let w=new Set;for(let q of v){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{w.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...w].sort()}async function T(v,w={}){if(v.length===0)return null;let q=process.cwd(),z=[],J=[];v.forEach((j,X)=>{let Z=j.startsWith("npm:")?j.slice(4):P.resolve(q,j),N=`__stxRegistered${X}`,O=JSON.stringify(j);z.push(`import * as ${N} from ${JSON.stringify(Z)};`),J.push(`if (!globalThis.__stxModules[${O}]) globalThis.__stxModules[${O}] = ${N};`)});let L=[...z,"globalThis.__stxModules = globalThis.__stxModules || {};",...J].join(`
3
- `),B;try{let{bundleClientScript:j}=await import("./chunk-fqsrft0a.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-vph6zpeq.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-td39mtts.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
2
+ import{Hw as H}from"./chunk-0s3ry262.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...v){let w=new Set;for(let q of v){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{w.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...w].sort()}async function T(v,w={}){if(v.length===0)return null;let q=process.cwd(),z=[],J=[];v.forEach((j,X)=>{let Z=j.startsWith("npm:")?j.slice(4):P.resolve(q,j),N=`__stxRegistered${X}`,O=JSON.stringify(j);z.push(`import * as ${N} from ${JSON.stringify(Z)};`),J.push(`if (!globalThis.__stxModules[${O}]) globalThis.__stxModules[${O}] = ${N};`)});let L=[...z,"globalThis.__stxModules = globalThis.__stxModules || {};",...J].join(`
3
+ `),B;try{let{bundleClientScript:j}=await import("./chunk-5xavmr4t.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-16hr5y08.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-c4kv3r8t.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
4
4
  `)}export{G as registeredModuleIdsIn,T as buildModuleRegistryScript};