@stacksjs/stx 0.2.375 → 0.2.377

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 (155) hide show
  1. package/dist/chunk-054eyrwg.js +2 -0
  2. package/dist/chunk-0gbbfr5v.js +2 -0
  3. package/dist/{chunk-60cttsne.js → chunk-0vgw4496.js} +310 -310
  4. package/dist/{chunk-7rwmnwc3.js → chunk-0xh7vqce.js} +2 -2
  5. package/dist/{chunk-k11mck47.js → chunk-1n3syq26.js} +1 -1
  6. package/dist/chunk-2e0fg0jk.js +2 -0
  7. package/dist/{chunk-zxptxz2b.js → chunk-2sa8rk32.js} +1 -1
  8. package/dist/{chunk-w1asc0zd.js → chunk-2zbmyvqc.js} +1 -1
  9. package/dist/chunk-3eq3h4cm.js +2 -0
  10. package/dist/{chunk-0w12p79j.js → chunk-3jm88rme.js} +1 -1
  11. package/dist/{chunk-pz7jrd7e.js → chunk-41hqk2fp.js} +1 -1
  12. package/dist/{chunk-2xpdcr8c.js → chunk-49trnqad.js} +1 -1
  13. package/dist/chunk-4r1safma.js +2 -0
  14. package/dist/{chunk-nak6z2rd.js → chunk-4v4xer9k.js} +2 -2
  15. package/dist/chunk-4vg0zgas.js +2 -0
  16. package/dist/{chunk-xkcz6hd9.js → chunk-4znpx8a5.js} +1 -1
  17. package/dist/{chunk-kaf0x9rk.js → chunk-68vgysme.js} +1 -1
  18. package/dist/{chunk-r55bx7r8.js → chunk-6pywgdcs.js} +1 -1
  19. package/dist/{chunk-rz8atgv8.js → chunk-74efeytn.js} +1 -1
  20. package/dist/{chunk-7d2az9wf.js → chunk-75d91rgh.js} +1 -1
  21. package/dist/{chunk-vsqz8wre.js → chunk-8dqjqnes.js} +10 -10
  22. package/dist/{chunk-m8nmsr4g.js → chunk-8h4het40.js} +1 -1
  23. package/dist/{chunk-890ykrtx.js → chunk-8ys85nkt.js} +2 -2
  24. package/dist/{chunk-5fzgdrfy.js → chunk-a6a1b4yj.js} +1 -1
  25. package/dist/{chunk-p41s1y4v.js → chunk-a96rnwf0.js} +1 -1
  26. package/dist/chunk-ab52p413.js +2 -0
  27. package/dist/{chunk-c7wxj426.js → chunk-abp8t91q.js} +2 -2
  28. package/dist/{chunk-vybqgjxd.js → chunk-aj6dbp5y.js} +1 -1
  29. package/dist/chunk-akvf7pgp.js +2 -0
  30. package/dist/{chunk-karkhcja.js → chunk-an1vn2mr.js} +1 -1
  31. package/dist/chunk-at4s8qvj.js +2 -0
  32. package/dist/{chunk-vj5ywxmb.js → chunk-b3rqr465.js} +1 -1
  33. package/dist/{chunk-xnbbnbtm.js → chunk-bt3nnbkm.js} +1 -1
  34. package/dist/{chunk-v90kxg77.js → chunk-c0vjhzjf.js} +1 -1
  35. package/dist/{chunk-135mme4g.js → chunk-cbj5a2tk.js} +1 -1
  36. package/dist/{chunk-jc6wrxrh.js → chunk-cf7qz2yz.js} +2 -2
  37. package/dist/{chunk-zxf0deg6.js → chunk-cjqqh2cn.js} +1 -1
  38. package/dist/chunk-cqs0hfrw.js +2 -0
  39. package/dist/{chunk-7wj5je2t.js → chunk-cypwvwpa.js} +1 -1
  40. package/dist/{chunk-kh2v2xqp.js → chunk-dahpshkz.js} +2 -2
  41. package/dist/{chunk-e7eka8f0.js → chunk-dnctgb5m.js} +1 -1
  42. package/dist/{chunk-sxzdtsqe.js → chunk-ds9hax17.js} +3 -3
  43. package/dist/{chunk-mzrejx5e.js → chunk-dv2x6xxs.js} +1 -1
  44. package/dist/chunk-dvd2c0ab.js +2 -0
  45. package/dist/{chunk-ypm408ak.js → chunk-e4jsntps.js} +1 -1
  46. package/dist/{chunk-5j3v0p6s.js → chunk-eewneg7t.js} +1 -1
  47. package/dist/chunk-ewr4ym70.js +2 -0
  48. package/dist/{chunk-hkq7d4t2.js → chunk-f95kp2ch.js} +1 -1
  49. package/dist/{chunk-zfysz73j.js → chunk-gagw5rvw.js} +1 -1
  50. package/dist/{chunk-p75e8vf3.js → chunk-ghn6rvgw.js} +1 -1
  51. package/dist/{chunk-p0pp4mx1.js → chunk-h0k7xkah.js} +2 -2
  52. package/dist/{chunk-x0c5vqss.js → chunk-h2dpcnhr.js} +1 -1
  53. package/dist/{chunk-pt74619a.js → chunk-ha15g06r.js} +1 -1
  54. package/dist/{chunk-xb2fcf36.js → chunk-hfqycvep.js} +1 -1
  55. package/dist/{chunk-vcdd231w.js → chunk-ht2496q5.js} +1 -1
  56. package/dist/chunk-jehmjxnq.js +2 -0
  57. package/dist/{chunk-xk402w4a.js → chunk-k6bagvmz.js} +1 -1
  58. package/dist/{chunk-n1wxgmf5.js → chunk-kb6h4vf7.js} +2 -2
  59. package/dist/{chunk-198fr2d4.js → chunk-km3e88cy.js} +1 -1
  60. package/dist/{chunk-ypgyhr2p.js → chunk-m2c9847h.js} +1 -1
  61. package/dist/{chunk-84577w4y.js → chunk-m7zebyq5.js} +1 -1
  62. package/dist/chunk-mrxrz9b1.js +2 -0
  63. package/dist/{chunk-a5cybvfv.js → chunk-ms3xppjb.js} +1 -1
  64. package/dist/{chunk-m8kem5ca.js → chunk-myyj9qp3.js} +1 -1
  65. package/dist/{chunk-skqqb8s4.js → chunk-n0qssshb.js} +1 -1
  66. package/dist/{chunk-ct8tvahc.js → chunk-n7m0zs73.js} +1 -1
  67. package/dist/{chunk-enjfp0tp.js → chunk-nvksp2ws.js} +1 -1
  68. package/dist/{chunk-55k6352k.js → chunk-pecjvzrk.js} +1 -1
  69. package/dist/chunk-pvptmxgd.js +2 -0
  70. package/dist/{chunk-175da6nh.js → chunk-qg9rm36c.js} +1 -1
  71. package/dist/{chunk-g8k2zj4z.js → chunk-qsrmt975.js} +1 -1
  72. package/dist/chunk-qweye95d.js +2 -0
  73. package/dist/chunk-rc3d4yyy.js +2 -0
  74. package/dist/chunk-rfq5h4zn.js +2 -0
  75. package/dist/{chunk-4a93q5s6.js → chunk-rft4sz7t.js} +1 -1
  76. package/dist/chunk-ryc446j9.js +2 -0
  77. package/dist/{chunk-ta6z7k4p.js → chunk-s3tpyage.js} +1 -1
  78. package/dist/chunk-s54sn5xa.js +2 -0
  79. package/dist/{chunk-met6wtbk.js → chunk-s7nd2979.js} +2 -2
  80. package/dist/chunk-s9j8pgz8.js +2 -0
  81. package/dist/{chunk-5fws3j14.js → chunk-sc5kdhc5.js} +1 -1
  82. package/dist/{chunk-kd95t585.js → chunk-sjpjge04.js} +1 -1
  83. package/dist/chunk-skpj0796.js +2 -0
  84. package/dist/chunk-sqj228wh.js +2 -0
  85. package/dist/{chunk-89xwdc1d.js → chunk-tatyh40f.js} +1 -1
  86. package/dist/{chunk-vgx5077x.js → chunk-tm8v7xc0.js} +2 -2
  87. package/dist/chunk-tmcnptq6.js +2 -0
  88. package/dist/{chunk-v1k2a5rq.js → chunk-tnv2bhye.js} +1 -1
  89. package/dist/{chunk-1c2k7713.js → chunk-tpqyvmqd.js} +1 -1
  90. package/dist/{chunk-2c907a77.js → chunk-ttfx0b5m.js} +1 -1
  91. package/dist/chunk-v48ngnf4.js +2 -0
  92. package/dist/{chunk-zf66zyyy.js → chunk-v6ebzqkd.js} +1 -1
  93. package/dist/chunk-vak9j9cc.js +2 -0
  94. package/dist/{chunk-83af26bs.js → chunk-vd9ss2dm.js} +1 -1
  95. package/dist/{chunk-4arms0am.js → chunk-vjn3r3sq.js} +1 -1
  96. package/dist/chunk-vsvjw3bp.js +2 -0
  97. package/dist/{chunk-h2xrx8dp.js → chunk-vvzw2vyk.js} +1 -1
  98. package/dist/{chunk-xb23pzwa.js → chunk-w3xwpe5f.js} +1 -1
  99. package/dist/chunk-w499e1n1.js +2 -0
  100. package/dist/{chunk-0dkaztpp.js → chunk-wcn0v9az.js} +1 -1
  101. package/dist/{chunk-vsqx756d.js → chunk-wqa77pdn.js} +1 -1
  102. package/dist/chunk-ws7dy2jt.js +2 -0
  103. package/dist/chunk-x2r3gjtw.js +2 -0
  104. package/dist/{chunk-y062nrhj.js → chunk-x3e2wvk5.js} +1 -1
  105. package/dist/{chunk-dnard9gp.js → chunk-x5bsgr9k.js} +2 -2
  106. package/dist/{chunk-7racewc5.js → chunk-x8t29tnr.js} +1 -1
  107. package/dist/chunk-x8vhy875.js +2 -0
  108. package/dist/{chunk-dwyad9gb.js → chunk-xpc8ygpz.js} +1 -1
  109. package/dist/{chunk-zd172hvg.js → chunk-y2s9c0f0.js} +1 -1
  110. package/dist/{chunk-jg47xsh5.js → chunk-yfqxzkex.js} +1 -1
  111. package/dist/{chunk-d5r2cqkg.js → chunk-ykyecpyx.js} +1 -1
  112. package/dist/{chunk-pf8575bx.js → chunk-yv4d9nzf.js} +1 -1
  113. package/dist/{chunk-f42xqr15.js → chunk-ywcx2q3t.js} +1 -1
  114. package/dist/{chunk-2tbxmf8q.js → chunk-zw91ws20.js} +1 -1
  115. package/dist/cli.js +14 -14
  116. package/dist/craft-entry.js +1 -1
  117. package/dist/craft.js +1 -1
  118. package/dist/database.js +1 -1
  119. package/dist/expressions.d.ts +16 -0
  120. package/dist/expressions.js +41 -0
  121. package/dist/pwa.js +2 -2
  122. package/dist/ssg.js +2 -2
  123. package/dist/visual-testing.js +1 -1
  124. package/package.json +5 -5
  125. package/dist/chunk-2gw7rgbd.js +0 -2
  126. package/dist/chunk-2kabn4gx.js +0 -2
  127. package/dist/chunk-49k7jgtd.js +0 -2
  128. package/dist/chunk-4gpbttfy.js +0 -2
  129. package/dist/chunk-5bcjbtzv.js +0 -2
  130. package/dist/chunk-71gg4a7z.js +0 -2
  131. package/dist/chunk-7shj7qhy.js +0 -2
  132. package/dist/chunk-85hnnapk.js +0 -2
  133. package/dist/chunk-8ee37nzy.js +0 -2
  134. package/dist/chunk-93z5qt1s.js +0 -2
  135. package/dist/chunk-bqm306xw.js +0 -2
  136. package/dist/chunk-cn04s9jy.js +0 -2
  137. package/dist/chunk-dn3f4vha.js +0 -2
  138. package/dist/chunk-erbyg322.js +0 -2
  139. package/dist/chunk-fq6x61z6.js +0 -2
  140. package/dist/chunk-fw8jzvjq.js +0 -2
  141. package/dist/chunk-gzr4mcp2.js +0 -2
  142. package/dist/chunk-mze9423y.js +0 -2
  143. package/dist/chunk-njqp8xdd.js +0 -2
  144. package/dist/chunk-qca0yw23.js +0 -2
  145. package/dist/chunk-qnh4my5d.js +0 -2
  146. package/dist/chunk-qwbrahwb.js +0 -2
  147. package/dist/chunk-ryv2ase3.js +0 -2
  148. package/dist/chunk-sd57d9bq.js +0 -2
  149. package/dist/chunk-syxe0cyd.js +0 -2
  150. package/dist/chunk-tk9acsdg.js +0 -2
  151. package/dist/chunk-wkrbkr05.js +0 -2
  152. package/dist/chunk-xagg1b4c.js +0 -2
  153. package/dist/chunk-xq8dj9br.js +0 -2
  154. package/dist/chunk-yhfej8dy.js +0 -2
  155. package/dist/chunk-zmssgked.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-m8kem5ca.js";function F(){return`<script data-stx-scoped data-stx-x-element-runtime data-stx-run="always">
2
+ import"./chunk-myyj9qp3.js";function F(){return`<script data-stx-scoped data-stx-x-element-runtime data-stx-run="always">
3
3
  (function() {
4
4
  'use strict';
5
5
 
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as lm,$a as oo,$b as zp,$c as zq,$d as zr,A as Xk,Aa as zn,Ab as To,Ac as _p,Ad as _q,Ae as es,B as Yk,Ba as An,Bb as Uo,Bc as $p,Bd as $q,Be as fs,C as Zk,Ca as Nn,Cb as Vo,Cc as aq,Cd as ar,Ce as gs,D as _k,Da as On,Db as Wo,Dc as bq,Dd as br,De as hs,E as Ql,Ea as Pn,Eb as Xo,Ec as cq,Ed as cr,Ee as is,F as Rl,Fa as Qn,Fb as Yo,Fc as dq,Fd as dr,Fe as js,G as Sl,Ga as Rn,Gb as Zo,Gc as eq,Gd as er,Ge as ks,H as Tl,Ha as Sn,Hb as _o,Hc as fq,Hd as fr,He as ls,I as Ul,Ia as Wn,Ib as $o,Ic as gq,Id as gr,Ie as ms,J as Vl,Ja as Xn,Jb as ap,Jc as hq,Jd as hr,Je as ns,K as Wl,Ka as Yn,Kb as bp,Kc as iq,Kd as ir,Ke as os,L as Xl,La as Zn,Lb as cp,Lc as jq,Ld as jr,M as Yl,Ma as _n,Mb as dp,Mc as kq,Md as kr,N as Zl,Na as $n,Nb as lp,Nc as lq,Nd as lr,O as _l,Oa as ao,Ob as mp,Oc as mq,Od as mr,P as $l,Pa as bo,Pb as np,Pc as nq,Pd as nr,Q as am,Qa as co,Qb as op,Qc as oq,Qd as or,R as bm,Ra as eo,Rb as pp,Rc as pq,Rd as pr,S as cm,Sa as fo,Sb as qp,Sc as qq,Sd as qr,T as dm,Ta as go,Tb as rp,Tc as rq,Td as rr,U as em,Ua as ho,Ub as sp,Uc as sq,Ud as sr,V as fm,Va as io,Vb as tp,Vc as tq,Vd as tr,W as gm,Wa as jo,Wb as up,Wc as uq,Wd as ur,X as hm,Xa as ko,Xb as vp,Xc as vq,Xd as vr,Y as im,Ya as lo,Yb as wp,Yc as wq,Yd as wr,Z as jm,Za as mo,Zb as xp,Zc as xq,Zd as xr,_ as km,_a as no,_b as yp,_c as yq,_d as yr,aa as mm,ab as po,ac as Ap,ad as Aq,ae as Ar,ba as nm,bb as qo,bc as Bp,bd as Bq,be as Hr,ca as om,cb as ro,cc as Cp,cd as Cq,ce as Ir,da as pm,db as so,dc as Dp,dd as Dq,de as Jr,ea as qm,eb as to,ec as Ep,ed as Eq,ee as Kr,fa as rm,fb as uo,fc as Fp,fd as Fq,fe as Lr,ga as sm,gb as vo,gc as Gp,gd as Gq,ge as Mr,ha as tm,hb as wo,hc as Hp,hd as Hq,he as Nr,ia as um,ib as xo,ic as Ip,id as Iq,ie as Or,ja as vm,jb as yo,jc as Jp,jd as Jq,je as Pr,ka as wm,kb as zo,kc as Kp,kd as Kq,ke as Qr,la as xm,lb as Ao,lc as Lp,ld as Lq,le as Rr,ma as ym,mb as Bo,mc as Mp,md as Mq,me as Sr,na as zm,nb as Eo,nc as Np,nd as Nq,ne as Tr,o as a,oa as Am,ob as Fo,oc as Op,od as Oq,oe as Ur,p as Ik,pa as on,pb as Go,pc as Pp,pd as Pq,pe as Vr,q as Jk,qa as pn,qb as Ho,qc as Qp,qd as Qq,qe as Wr,r as Kk,ra as qn,rb as Jo,rc as Rp,rd as Rq,re as Xr,s as Lk,sa as rn,sb as Ko,sc as Sp,sd as Sq,se as Yr,t as Mk,ta as sn,tb as Lo,tc as Tp,td as Tq,te as Zr,u as Nk,ua as tn,ub as Mo,uc as Up,ud as Uq,ue as _r,v as Ok,va as un,vb as Oo,vc as Vp,vd as Vq,ve as $r,w as Pk,wa as vn,wb as Po,wc as Wp,wd as Wq,we as as,x as Qk,xa as wn,xb as Qo,xc as Xp,xd as Xq,xe as bs,y as Vk,ya as xn,yb as Ro,yc as Yp,yd as Yq,ye as cs,z as Wk,za as yn,zb as So,zc as Zp,zd as Zq,ze as ds}from"./chunk-8dqjqnes.js";import{Le as ep,Me as fp,Ne as gp,Oe as hp,Pe as ip,Qe as jp,Re as kp}from"./chunk-vvzw2vyk.js";import{Se as Co,Te as Do}from"./chunk-7hb89n3z.js";import{Ue as Io}from"./chunk-rft4sz7t.js";import{Ve as nn}from"./chunk-ywcx2q3t.js";import{We as Tn,Xe as Un,Ye as Vn,Ze as No}from"./chunk-74efeytn.js";import{$e as al,_e as $k,af as bl,bf as cl,cf as dl,df as el,ef as fl,ff as gl,gf as hl,hf as il,if as jl,jf as kl,kf as ll,lf as ml,mf as nl}from"./chunk-n0d7nwhd.js";import{nf as El,of as Fl,pf as Gl,qf as Hl,rf as Il,sf as Jl,tf as Kl,uf as Ll,vf as Ml,wf as Nl,xf as Ol,yf as Pl}from"./chunk-m7zebyq5.js";import{Af as Dl,zf as Cl}from"./chunk-eewneg7t.js";import{Bf as ol,Cf as pl,Df as ql,Ef as rl,Ff as sl,Gf as tl,Hf as ul,Jf as vl,Kf as wl,Lf as xl,Mf as yl,Nf as zl,Of as Al,Rf as Bl}from"./chunk-km3e88cy.js";import{Sf as Xm,Tf as Ym,Uf as Zm,Vf as _m,Wf as $m,Xf as mn}from"./chunk-aj6dbp5y.js";import{$f as Em,Yf as Bm,Zf as Cm,_f as Dm,ag as Fm,bg as Gm,cg as Hm,dg as Im,eg as Jm,fg as Km,gg as Lm,hg as Mm,ig as Nm,jg as Om,kg as Pm,lg as Qm,mg as an,ng as bn,og as cn,pg as dn,qg as en,rg as fn,sg as gn,tg as hn,ug as jn,vg as kn,wg as ln}from"./chunk-4v4xer9k.js";import{xg as Rm,yg as Sm}from"./chunk-0knxnyq6.js";import{Ag as Cn,Bg as Dn,Cg as En,Dg as Fn,Eg as Gn,Fg as Hn,Gg as In,Hg as Jn,Ig as Kn,Jg as Ln,Kg as Mn,zg as Bn}from"./chunk-634gaa9d.js";import{Lg as ri,Mg as si,Ng as ti,Og as ui,Pg as vi,Qg as wi}from"./chunk-dnctgb5m.js";import{Rg as Mj,Sg as Nj,Tg as Oj,Xg as Pj,Yg as Qj,Zg as Rj}from"./chunk-an1vn2mr.js";import{$g as Yj,_g as Xj,ah as Zj,bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk}from"./chunk-m2c9847h.js";import{jh as Cj,kh as Dj,lh as Ej,mh as Fj,nh as Gj,ph as Hj,qh as Ij,rh as Jj,sh as Kj,th as Lj}from"./chunk-bcpjhcpn.js";import{uh as xk,wh as yk}from"./chunk-y4zddt5r.js";import{Ch as Mh,Dh as Nh,Eh as Oh,Fh as Ph,Gh as Qh,Hh as Rh}from"./chunk-g7bpkpd4.js";import{Jh as Sh,Kh as Th,Lh as Uh,Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di}from"./chunk-k33778kc.js";import{$h as hi,Yh as ei,Zh as fi,_h as gi}from"./chunk-ys4hpkrp.js";import{ei as ii}from"./chunk-g1vxsvqv.js";import{hi as lh}from"./chunk-gagw5rvw.js";import{ii as mh}from"./chunk-fqq5k9ve.js";import{ji as nh,ki as oh}from"./chunk-ya5m5vbn.js";import{li as ph,mi as qh,ni as rh,oi as sh,pi as th,qi as uh}from"./chunk-y4nzmkea.js";import{ri as vh,si as wh,ti as xh,ui as yh,vi as zh}from"./chunk-7kw3grq5.js";import{Ai as Eh,wi as Ah,xi as Bh,yi as Ch,zi as Dh}from"./chunk-c79nfdyj.js";import{Bi as Fh,Ci as Gh,Di as Hh,Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh}from"./chunk-ej8mv2k6.js";import{Ii as jh,Ji as kh}from"./chunk-yfqxzkex.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-4znpx8a5.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-68vgysme.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-zw91ws20.js";import{pk as Br,qk as Cr,rk as Dr,sk as Er,tk as Fr,uk as Gr}from"./chunk-dahpshkz.js";import{Ak as Um,Bk as Vm,Ck as Wm,vk as Rk,wk as Sk,xk as Tk,yk as Uk,zk as Tm}from"./chunk-e4jsntps.js";import"./chunk-frp9fc7j.js";import"./chunk-x3e2wvk5.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-abp8t91q.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as yg,$p as mi,$q as Bj,Al as Ca,Am as Ec,An as Qd,Ap as Zg,Aq as aj,Ar as Dk,Bl as Da,Bm as Fc,Bn as Rd,Bp as _g,Bq as bj,Br as Ek,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as $g,Cq as cj,Cr as Fk,Dl as Fa,Dm as Hc,Dn as Td,Dp as ah,Dq as dj,Dr as Gk,El as Ga,Em as Ic,En as Ud,Ep as bh,Eq as ej,Er as Hk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as ch,Fq as fj,Gl as Ia,Gm as Kc,Gn as Wd,Gp as dh,Gq as gj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as eh,Hq as hj,Il as Ka,Im as Mc,In as Yd,Ip as fh,Iq as ij,Jl as La,Jm as Nc,Jn as Zd,Jo as Zf,Jp as gh,Jq as jj,Kl as Ma,Km as Oc,Kn as _d,Kp as hh,Kq as kj,Ll as Na,Lm as Pc,Ln as $d,Lo as _f,Lp as ih,Lq as lj,Ml as Oa,Mm as Qc,Mn as ae,Mp as ji,Mq as mj,Nl as ib,Nm as _c,Nn as re,No as $f,Np as ki,Nq as nj,Ol as jb,Om as $c,On as se,Oo as ag,Oq as oj,Pl as kb,Pm as ad,Pn as te,Po as bg,Pq as pj,Ql as lb,Qm as bd,Qn as ue,Qo as cg,Qp as li,Qq as qj,Rl as mb,Rm as cd,Rn as ve,Ro as dg,Rq as rj,Sl as nb,Sm as dd,Sn as we,So as eg,Sq as sj,Tm as ed,Tn as xe,To as qg,Tq as tj,Un as ye,Uo as rg,Uq as uj,Vl as Kb,Vm as fd,Vn as ze,Vo as sg,Vq as vj,Wl as Lb,Wm as gd,Wn as Ae,Wo as tg,Wq as wj,Xl as Mb,Xm as hd,Xn as Be,Xo as ug,Xq as xj,Yl as Nb,Ym as id,Yn as Ce,Yo as vg,Yq as yj,Zl as Ob,Zm as jd,Zn as De,Zo as wg,Zq as zj,_l as Pb,_m as kd,_n as Ee,_o as xg,_q as Aj,am as Ub,an as md,ao as Ie,ap as zg,aq as ni,ar as Sj,bm as Vb,bn as nd,bo as Je,bp as Ag,bq as oi,br as Tj,cm as Wb,cn as od,co as Ke,cp as Bg,cq as pi,cr as Uj,dm as hc,dn as pd,do as Le,dp as Cg,dq as qi,dr as Vj,em as ic,en as qd,eo as Me,ep as Dg,eq as xi,er as Wj,fm as jc,fn as vd,fo as Ne,fp as Eg,fq as yi,fr as gk,gm as kc,gn as wd,go as Oe,gp as Fg,gq as zi,gr as hk,hm as lc,hn as xd,hp as Gg,hq as Ai,hr as ik,im as mc,in as yd,ip as Hg,iq as Bi,ir as jk,jm as nc,jn as zd,jp as Ig,jq as Ci,jr as kk,km as oc,kn as Ad,ko as bf,kp as Jg,kq as Di,kr as lk,lm as pc,ln as Bd,lo as cf,lp as Kg,lq as Ei,lr as mk,mm as qc,mn as Cd,mp as Lg,mq as Fi,mr as nk,nm as rc,nn as Dd,no as Xf,np as Mg,nq as Gi,nr as ok,om as sc,on as Ed,op as Ng,oq as Hi,or as pk,pm as tc,pn as Fd,pp as Og,pq as Ii,pr as qk,qm as uc,qn as Gd,qp as Pg,qq as Ji,qr as rk,rm as vc,rn as Hd,rp as Qg,rq as Ki,rr as sk,sm as wc,sn as Id,sp as Rg,sq as Li,sr as tk,tm as xc,tn as Jd,tp as Sg,tq as Mi,tr as uk,um as yc,un as Kd,up as Tg,uq as Ni,ur as vk,vl as xa,vm as zc,vn as Ld,vp as Ug,vq as Oi,vr as wk,wl as ya,wm as Ac,wn as Md,wp as Vg,wq as Yi,wr as zk,xl as za,xm as Bc,xn as Nd,xp as Wg,xq as Zi,xr as Ak,yl as Aa,ym as Cc,yn as Od,yp as Xg,yq as _i,yr as Bk,zl as Ba,zm as Dc,zn as Pd,zp as Yg,zq as $i,zr as Ck}from"./chunk-0vgw4496.js";import{$r as ia,Fr as M,Gr as N,Hr as O,Ir as P,Jr as Q,Kr as R,Lr as S,Mr as T,Nr as U,Or as V,Pr as W,Qr as X,Rr as Y,Sr as Z,Tr as _,Ur as $,Vr as aa,Wr as ba,Xr as ca,Yr as da,Zr as ea,_r as fa,as as ja,bs as ka,cs as la,ds as ma,es as na,fs as oa,gs as pa,hs as qa,is as ra,js as sa,ks as ta,ls as ua,ms as va,ns as wa}from"./chunk-cf7qz2yz.js";import{os as ga,ps as ha}from"./chunk-49trnqad.js";import{qs as Rb,rs as Sb,ss as Tb}from"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import{As as Qi,Bs as Ri,Cs as Si,Ds as Ti,Es as Ui,Fs as Vi,Gs as Wi,Hs as Xi,zs as Pi}from"./chunk-cbj5a2tk.js";import{$s as Tc,Zs as Rc,_s as Sc,at as Uc,bt as Vc,dt as Wc,mt as Xc,nt as Yc,ot as Zc}from"./chunk-ds9hax17.js";import{pt as Xb,qt as Yb,rt as Zb,st as _b,tt as $b,ut as ac}from"./chunk-2zbmyvqc.js";import{Bt as Fe,Dt as Ge,Gt as He}from"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import{Lt as cc,Mt as dc}from"./chunk-k6bagvmz.js";import{$t as pg,Qt as fg,Rt as gg,St as hg,Tt as ig,Ut as jg,Vt as kg,Wt as lg,Yt as mg,Zt as ng,_t as og}from"./chunk-x5bsgr9k.js";import{Au as oe,Bu as pe,Cu as qe,au as rd,bu as sd,cu as td,du as ud,nu as be,ou as ce,pu as de,qu as ee,ru as fe,su as ge,tu as he,uu as ie,vu as je,wu as ke,xu as le,yu as me,zu as ne}from"./chunk-tm8v7xc0.js";import{$u as z,Du as b,Eu as c,Fu as d,Gu as e,Hu as f,Iu as g,Ju as h,Ku as i,Lu as j,Mu as k,Nu as l,Ou as m,Pu as n,Qu as o,Ru as p,Su as q,Tu as r,Uu as s,Vu as t,Wu as u,Xu as v,Yu as w,Zu as x,_u as y,av as A,bv as B,cv as C,dv as D,ev as E,fv as F,gv as G,hv as H,iv as I,jv as J,kv as K,lv as L}from"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import{Bv as ob,Cv as pb,Dv as qb,Ev as rb,Fv as sb,Gv as tb,Hv as ub,Iv as vb,Jv as wb,Kv as xb,Lv as yb,Mv as zb,Nv as Ab,Ov as Bb,Pv as Cb,Qv as Db,Rv as Eb,Sv as Fb,Tv as Gb,Uv as Hb,Vv as Ib,Wv as Jb}from"./chunk-x8t29tnr.js";import{$v as Qa,Aw as eb,Bw as fb,Cw as gb,Ew as hb,_v as Pa,cw as Ra,hw as Sa,iw as Ta,ow as Ua,pw as Va,qw as Wa,rw as Xa,sw as Ya,tw as Za,uw as _a,vw as $a,ww as ab,xw as bb,yw as cb,zw as db}from"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{jl as writeNetlifyConfig,bn as writeManifest,Ol as writeImageManifest,up as wrapComponentForHMR,bs as withDefaults,wk as webComponentDirectiveHandler,jq as watermark,lr as watchViews,Yl as watchMultiple,Zl as watchEffect,Xl as watch,Me as warmImagePlaceholders,km as waitForStore,X as waitForLocale,fp as virtualPathFor,jk as videoDirective,G as validators,fs as validated,Ce as validateValueEnhanced,mi as validateTemplate,Rm as validateRouteRules,oq as validateParams,De as validateFormEnhanced,ar as validateFile,ye as validateFields,xe as validateField,oi as validateDirective,Xd as validateCspDirectives,Ek as validateConfig,pn as validateComponentScripts,Nn as validateComponentProps,ih as validateClientScript,hi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ci as userComponentFileExists,Ph as useVirtualList,je as useTitle,jm as useStoreOrThrow,Mp as useStore,Vk as useStorage,Af as useSlots,Xk as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,lm as useRouteParams,nm as useRouteParamOrThrow,mm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,pm as useMiddlewareValue,om as useMiddlewareState,Wk as useLocalStorage,np as useLoadingIndicator,ee as useHead,ei as useForm,Cf as useAttrs,cr as uploadFiles,br as uploadFile,gm as updateInstance,pf as untrack,Si as unregisterDirective,hm as unmountInstance,Qc as unescapeHtml,jp as typecheckStxFiles,Ai as transpileTypeScript,Qr as translate,Ba as transitionDirective,lc as transformAutoImports,Hn as toUsers,Gn as toUser,Up as thumbnail,Vq as thumbHashToRGBA,Wq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,rp as stxClientHelpers,kg as structuredDataDirective,Tr as stripLocalePrefix,Om as stripDocumentWrapper,Sb as stripCommentsAndLiterals,so as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Qk as stopHmrServer,Dn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,ch as startsDocument,No as startProductionServer,Io as startInteractive,Cn as startBroadcasting,Vr as stampLocaleLayoutGroup,Ia as staggerDirective,mq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Km as spaNavVaryHeaders,gp as sourcePathFor,tq as smartBatchSign,Ei as slotContentHasExpressions,rq as signUrl,yi as shouldTranspileTypeScript,Nk as shouldReloadOnChange,wq as shouldRefreshSignature,Ok as shouldIgnoreFile,Hh as shouldCacheComponent,Yp as sharpen,is as shape,Zb as setStateDir,tm as setRouteParams,um as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Ql as setCurrentInstance,Zj as setCachedVideoResult,Oj as setCachedImageResult,Ij as setCached,ls as serveStxFile,ns as serveMultipleStxFiles,Ik as serveMarkdownFile,Yo as serveFile,os as serveApp,Xo as serve,xp as serializeState,dn as serializeSetCookie,_p as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Bi as scopeOnRootElement,nk as scopeHTML,mk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,cq as saturation,pq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,gn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,em as runHooks,Jr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,dq as rotate,ii as rewriteImagesWithSiblings,od as responseBindings,Ii as resolveTemplatePath,ha as resolveStxTargets,Ak as resolveStxDirectories,Pr as resolveI18n,Sp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,wp as resetHMRHandler,o as resetErrorConfig,ds as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,jr as renderView,gk as renderVideoComponent,ic as renderVendorStyleTags,sr as renderToString,tr as renderToStream,ur as renderToDOM,Uq as renderThumbhashToCanvas,Gr as renderTemplateString,Er as renderTemplate,Fr as renderString,Se as renderStreamingPage,ti as renderSlot,xh as renderSSRSuspense,Eq as renderProtectedVideo,Dq as renderProtectedImg,qq as renderMediaUpload,Dr as renderMarkdownView,Vm as renderLayoutTypes,Sj as renderImgComponent,El as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,mr as renderEmail,Gi as renderComponentWithSlot,me as renderBodyAttrs,Hp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Op as registerStoresClient,rm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Pi as registerDirective,Wd as registerCspDirectives,Qn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Ul as ref,Ao as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Gk as readMarkdownFile,Kf as readFileCached,Vl as reactive,hq as quality,Bq as pruneSignatureCache,Lj as pruneCache,sf as provide,Cr as protectCodeBlocks,cs as prop,Fg as processVueTemplate,Nh as processVirtualListDirectives,Rh as processVirtualGridDirectives,fk as processVideo,ze as processValidateDirective,ea as processTranslateDirective,rh as processTransitionDirectives,uh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,nh as processTeleportDirectives,vh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,ci as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,ui as processSlots,Mm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Fq as processProtectedMedia,Xh as processPartialHydrationDirectives,hh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Hk as processMarkdownFileDirectives,Ni as processMarkdownDirectives,dg as processLoops,Fh as processKeepAliveDirectives,gh as processJsonDirective,Qh as processInfiniteListDirectives,ug as processIncludes,Uj as processImgComponents,Gl as processImageComponents,tl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,ji as processDirectives,Xi as processDirectiveAttributes,mh as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,js as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Ah as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,mp as preloadIslandHandlers,Ne as preloadIconCollection,yn as poolStrings,yk as pluginManager,Je as placeholdersWarmed,qh as performLeave,ph as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,hk as parseVideoDirectiveOptions,Qp as parseUrl,Xq as parseThumbhashString,Ad as parseSwitchBlock,ri as parseSlots,si as parseSlotElement,Fd as parseScriptDeclarations,uk as parseSFCComponent,Gq as parseProtectedArgs,bg as parseLoopBinding,Tj as parseImgComponent,jj as parseImageUrl,Fl as parseImageComponent,en as parseFormBody,Cd as parseExpressionWithFilters,Rn as parseDefaults,xo as parseCookies,Dm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,es as optional,zn as optimizeTemplate,Ll as optimizeImage,Ml as optimizeDirectory,gs as oneOf,sg as onceStore,bm as onUpdated,_c as onUpdate,dm as onUnmounted,ym as onServer,$l as onMounted,hf as onMount,bi as onHydrated,yf as onErrorCaptured,jf as onDestroy,Lh as onDeactivated,xm as onClient,am as onBeforeUpdate,cm as onBeforeUnmount,_l as onBeforeMount,Kh as onActivated,Qq as observeElement,Bo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Un as negotiateEncoding,Ua as navigateTo,fm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,xn as minifyHtml,jg as metaDirective,Wg as metaDedupKey,Rp as mergeParams,Yg as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Oi as markdownDirectiveHandler,Fk as markdownCache,ga as looksLikeGlob,Sr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Bk as loadStxConfig,db as loadMiddlewareFromDirectory,cn as loadManifest,Mq as loadElement,En as loadChannels,Lb as listensPassively,Zr as lintStxStrict,Oq as lazyLoadAll,Nq as lazyLoad,Ha as keyframeDirective,qr as jsxs,rr as jsxDEV,pr as jsx,zo as jsonResponse,Ye as islandDirective,l as isTest,Pm as isSpaNavigation,Im as isSpaNavRequest,uq as isSignatureValid,nf as isSignal,rl as isSharpAvailable,lo as isServerEnvironment,vm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Jq as isNativeLazySupported,Br as isMarkdownPath,Q as isLoading,R as isLoaded,xi as isJavaScriptScript,Kq as isIntersectionObserverSupported,zl as isImageFile,sl as isImageBackendAvailable,aa as isICUFormat,ai as isHydrated,Di as isHydrateTrigger,hd as isHttpStatus,ko as isEdgeEnvironment,_r as isDirectiveKind,k as isDevelopment,of as isDerived,Mk as isCssOnlyChange,Tn as isCompressible,wm as isClient,Ch as isAsyncComponent,fn as isActionableMethod,$p as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Or as injectThemeBootstrap,ig as injectSeoTags,Lr as injectSeo,Xf as injectRouterScript,Lk as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,eh as injectConfigHeadTags,Kg as injectColorModeBootScript,_g as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,qm as initStoreRegistry,ml as initNetlify,op as initLoadingIndicator,Lq as initLazyLoading,Ho as initFile,Tq as initBlurUp,Zq as initAllBlurUp,Wj as imgDirective,Jl as imageDirective,kn as hydrateTemplateStream,jn as hydrateTemplate,lp as hydrateIslands,Zh as hydrateIsland,ln as hydrateFragment,_h as hydrateByStrategy,$h as hydrateAll,Ep as hydrate,Wo as htmlResponse,ah as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Ej as hashString,Wf as hashFilePath,Cj as hashFile,Dj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Jp as hasStore,xc as hasPlaceholders,kl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,dh as hasDocumentShell,pi as hasDirectives,ma as hasDOMSupport,Cl as handleImageRequest,zf as handleError,yr as h,yl as groupVariantsByFormat,Zp as grayscale,Po as gitHash,rn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,fl as getTotalSize,vq as getTimeUntilExpiry,jh as getStoreScript,Kp as getStoreNames,Ip as getStore,_k as getStorageSize,Zk as getStorageKeys,Ji as getSourceLineInfo,zi as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,ok as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,ni as getPositionInfo,uc as getPlaceholderRegistry,Bj as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Al as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,ul as getImageMetadata,Fe as getImageDelivery,Dp as getHydrationRuntime,sm as getHydratedStoreState,Pk as getHmrServer,be as getHead,vp as getHMRHandler,nj as getFormatExtension,Gj as getFileMtime,xl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ri as getDirectives,Qi as getDirective,Rl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Mi as getComponentCacheStats,Yj as getCachedVideoResult,zq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,zj as getCachedPlaceholder,Nj as getCachedImageResult,Hj as getCached,Kj as getCacheStats,Pg as getBuildId,Bn as getBroadcastServer,mj as getBestVariant,Bc as getAllFilters,aj as generateWidthSrcset,Oh as generateVirtualListCSS,er as generateVideoPreview,Ee as generateValidationScript,fr as generateUploadRuntime,sn as generateTreeShakenBundle,th as generateTransitionRuntime,sh as generateTransitionCSS,ak as generateThumbnails,sj as generateThumbhashPlaceholder,bo as generateTemplatesDocs,zh as generateSuspenseRuntime,yh as generateSuspenseCSS,yp as generateStateScript,kj as generateSrcsetData,Rj as generateSrcset,vl as generateSrcSet,bk as generateSpriteSheet,nr as generateSpaShell,lj as generateSourceTags,gj as generateSizesFromBreakpoints,fj as generateSizesAttribute,wl as generateSizes,mg as generateSitemapIndex,Mr as generateSitemap,Iq as generateSimpleMediaPicker,Cq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,lk as generateScopeId,vk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Nr as generateRobots,Qj as generateResponsiveVariants,rk as generateReactiveWebComponentTS,qk as generateReactiveWebComponent,tk as generateReactiveRuntime,sk as generateReactiveMixin,$j as generatePoster,yj as generatePlaceholderStyle,xj as generatePlaceholderCSS,rj as generatePlaceholder,Yh as generatePartialHydrationCSS,Gd as generateNonce,gl as generateNetlifyToml,hr as generateMinifiedMediaRuntime,gr as generateMediaRuntime,Hq as generateMediaManagerEmbed,an as generateManifest,qp as generateLoadingIndicatorHtml,Sq as generateLazyLoadRuntime,Wm as generateLayoutTypes,uj as generateLQIP,Jh as generateKeepAliveRuntime,Ih as generateKeepAliveCSS,di as generateIslandManifest,dr as generateImagePreview,Nl as generateImageManifest,Cp as generateHydrationScript,af as generateHydrationRuntime,Fp as generateHydrationCSS,Sh as generateHydrationBootstrap,Kk as generateHotReloadScript,jb as generateHeatmapScript,tp as generateHMRClientScript,ck as generateHLSManifest,zp as generateEventBindings,ej as generateDprSrcsetWithVariableQuality,dj as generateDprSrcset,bh as generateDocumentShell,ho as generateDocs,co as generateDirectivesDocs,Wi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,dk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ao as generateComponentsDocs,Th as generateComponentManifest,_n as generateComponentDoc,wj as generateColorPlaceholder,Jg as generateColorModeBootScript,im as generateClientRuntime,Fj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,_q as generateBlurUpRuntime,$q as generateBlurUpCSS,ad as generateBindingsRuntime,bj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Eh as generateAsyncComponentRuntime,Dh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,kp as formatTypecheckDiagnostics,dp as formatTypeErrors,Eo as formatStxContent,el as formatSize,Ta as formatRoutes,Fo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Kr as formatDoctorReport,eo as formatDocsAsMarkdown,go as formatDocsAsJson,fo as formatDocsAsHtml,gq as format,wn as foldConstants,fq as flipVertical,eq as flipHorizontal,Xm as fingerprint,ip as findStxModuleDeclarations,hp as findRuntimeTypeDeclarations,Ir as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,tn as findDeadCode,tn as findDeadBranches,Em as findContainerRegion,$n as findComponentFiles,ms as findCommonDir,dl as filterRequiredFiles,Hi as fileExists,Zf as extractVariables,li as extractTemplateExpressions,Ue as extractStreamBoundaries,Ap as extractState,vi as extractSlotContent,$f as extractScriptFromTemplate,ki as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,vj as extractDominantColor,Ed as extractDirectiveParams,qi as extractDirectiveNames,Qm as extractContainerContent,Yn as extractComponentProps,Uh as extractComponentName,Zn as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Vh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,pk as extractAndScopeStyles,Ob as extractAndProcessEvents,Tk as externalizeSharedAssets,Uk as externalizeRepeatedAssets,Sk as externalizeHtml,Pc as evaluateExpression,vn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,oh as ensureTeleportTargets,fh as ensureDocumentShell,Ae as enhancedValidationRules,Wn as enableDevTools,un as eliminateDeadCode,ff as effect,nq as dprUrls,io as docsCommand,ec as discoverServerApi,Um as discoverLayoutNames,Rq as disconnectObserver,Xn as disableDevTools,F as devHelpers,Lm as detectShell,jo as detectRuntime,hl as detectProjectConfig,oj as detectFormat,on as detectBuildMode,ef as derived,ll as deploy,Dk as defineStxConfig,Np as defineStore,Bf as defineSlots,Yr as defineSiteConfig,as as definePropsWithValidation,$r as defineProps,xk as definePlugin,ie as definePageMeta,Wa as defineMiddleware,fi as defineForm,wf as defineExpose,vf as defineEmits,Ti as defineDirective,Ar as defineCustomElement,Mo as defineConfig,Ui as defineClientDirective,Bh as defineAsyncComponent,Oo as defineApiHandler,ir as defaultMediaConfig,Pl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,zk as defaultConfig,ks as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Hm as decodeTitleEntities,tj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,Yq as crossfadeTransition,Tp as crop,Mh as createVirtualList,ik as createVideoDirective,vo as createVercelHandler,ap as createTypeChecker,fa as createTranslateFilter,ro as createTextEncoderStream,zr as createStxApp,qo as createStreamingResponse,We as createStreamRenderer,Lp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Tl as createScope,wh as createSSRSuspense,bf as createRouter,Sm as createRouteRuleResolver,eb as createRouteLocation,_o as createRoute,Ul as createRef,Vl as createReactive,Df as createProvideContext,Ro as createProject,Lo as createProductionBuild,tc as createPlaceholder,An as createOptimizedBuild,wo as createNetlifyHandler,$k as createNetlifyClient,fb as createMiddlewareContext,Zo as createMiddleware,Pq as createLazyObserver,Gh as createKeepAliveCache,no as createKVNamespace,Wh as createIslandRegistry,Vj as createImgDirective,Kl as createImagePlugin,Dl as createImageHandler,Il as createImageDirective,nb as createHeatmapAggregator,cl as createFileManifest,mo as createEnvAccessor,z as createEnhancedError,po as createEdgeHandler,oo as createEdgeCache,Ki as createDetailedErrorMessage,uo as createDenoHandler,il as createDefaultNetlifyConfig,Zd as createCspHeaders,yo as createCookie,Wl as createComputed,Sl as createComponentInstance,to as createCloudflareHandler,Ya as createClientCookieManager,Vi as createBuiltinDirectives,zr as createApp,Ka as createAnimationTimeline,Wp as cover,_f as convertToCommonJS,bq as contrast,Vp as contain,y as consoleError,m as configureErrorHandling,Ck as config,Wl as computed,Vn as compressResponse,Bg as composerPattern,Ag as composer,Nm as composeShellWithPage,Pn as componentDirective,Fi as componentClientSignalNames,$m as compileTemplate,a as collectRepeatedFlag,bl as collectDeployFiles,$g as cloakStyleFragment,Ic as clientLoopScopes,_j as clearVideoCache,N as clearTranslationCache,kh as clearStoreCache,Yk as clearStorage,Aq as clearSignatureCache,Gf as clearServerData,Aj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Hl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,lh as clearComposableCache,Li as clearComponentCache,Jj as clearCache,Ib as clearBlankCache,pp as cleanupLoadingIndicator,Bm as classifyScript,Cm as classifyAllScripts,bp as checkTemplateFile,cp as checkTemplate,Uf as checkCache,xq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Kn as channel,Do as captureScreenshots,Co as captureScreenshot,Z as cancelPendingLoads,al as calculateSha1,cj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,kk as buildWebComponents,ep as buildVirtualSource,kr as buildViews,Pp as buildUrl,Qe as buildSuspenseResolveScript,Xr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Ym as buildRuntimeAsset,Zm as buildRouterAsset,Wr as buildLangPickerScript,ij as buildImageUrl,Sg as buildIdFragment,Xg as buildHtmlAttrs,mn as buildForProduction,Sn as buildComponentLibrary,yq as buildAuthParams,nn as buildApp,Ur as buildAlternateLinks,Ko as build,In as broadcastPrivate,Jn as broadcastPresence,Fn as broadcast,aq as brightness,Tb as bracketDepths,Xp as blur,Jb as blankInertHtmlRegions,sq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,iq as auto,ja as attributeValue,_m as assetTags,Mb as asInvocableStatement,hs as arrayOf,Rr as applyTranslations,Pj as applyTransformations,wi as applySlots,On as applyPropDefaults,lq as applyPreset,Zg as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Jm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,ek as analyzeVideo,qn as analyzeUsage,zm as analyzeTemplate,Am as analyzeProject,qn as analyzeDirectiveUsage,ed as analyticsDirective,Uo as addStore,To as addPage,Sd as addNonceToInlineContent,Vo as addLayout,So as addComponent,hn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,Xj as VideoProcessorCache,gi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,$o as TemplateTypeChecker,Go as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,vr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Fm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Jo as ProductionBuild,xr as Portal,Qo as PROJECT_TEMPLATES,kq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Gp as MemorySessionStore,$i as MIME_TYPES,Yi as MEDIA_DEFAULT_WIDTHS,_i as MEDIA_DEFAULT_FORMATS,Tm as LAYOUT_TYPES_FILE,Mj as ImageProcessorCache,Bl as ImageProcessingError,Bp as HydrationRuntime,Jk as HotReloadServer,mb as HeatmapAggregator,Vg as HTML_CLASS_MARKER,Ug as HTML_ATTRS_MARKER,or as Fragment,wr as For,Gm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Rk as EXTERNALIZED_ASSET_DIR,nl as DeployError,ol as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ql as DEFAULT_QUALITY,pj as DEFAULT_PLACEHOLDER_OPTIONS,pl as DEFAULT_FORMATS,Zi as DEFAULT_DPR_VALUES,sp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,hj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Tg as CLOAK_STYLE,Mn as BroadcastServer,Ln as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,qj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Hr as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Bf as a,Cf as b,Df as c,Ef as d,Ff as e,Gf as f,Hf as g,If as h,Jf as i,Kf as j,Lf as k,Mf as l,Nf as m,Of as n,Pf as o,Qf as p,Rf as q}from"./chunk-198fr2d4.js";import"./chunk-m8kem5ca.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
2
+ import{Bf as a,Cf as b,Df as c,Ef as d,Ff as e,Gf as f,Hf as g,If as h,Jf as i,Kf as j,Lf as k,Mf as l,Nf as m,Of as n,Pf as o,Qf as p,Rf as q}from"./chunk-km3e88cy.js";import"./chunk-myyj9qp3.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ar as e,Br as f,wr as a,xr as b,yr as c,zr as d}from"./chunk-0vgw4496.js";import"./chunk-cf7qz2yz.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-ds9hax17.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import"./chunk-k6bagvmz.js";import"./chunk-x5bsgr9k.js";import"./chunk-tm8v7xc0.js";import"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ri as a,si as b,ti as c,ui as d,vi as e}from"./chunk-7kw3grq5.js";import"./chunk-m8kem5ca.js";export{c as renderSSRSuspense,a as processSuspenseDirectives,e as generateSuspenseRuntime,d as generateSuspenseCSS,b as createSSRSuspense};
2
+ import{ri as a,si as b,ti as c,ui as d,vi as e}from"./chunk-7kw3grq5.js";import"./chunk-myyj9qp3.js";export{c as renderSSRSuspense,a as processSuspenseDirectives,e as generateSuspenseRuntime,d as generateSuspenseCSS,b as createSSRSuspense};
@@ -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 ss,v as ts,R as us,h as vs,y as ws,g as xs};
5
+ export{u as ts,v as us,R as vs,h as ws,y as xs,g as ys};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Eo as a,Fo as b,Go as c,Ho as d,Io as e,Jo as f,Ko as g,Lo as h,Mo as i,No as j,Oo as k}from"./chunk-0vgw4496.js";import"./chunk-cf7qz2yz.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-ds9hax17.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import"./chunk-k6bagvmz.js";import"./chunk-x5bsgr9k.js";import"./chunk-tm8v7xc0.js";import"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{b as stripTypeScript,i as splitDeclaration,d as isSyntaxFailure,c as isModuleResolutionFailure,e as isMissingBindingFailure,g as isCompleteImport,k as hasVariables,f as extractVariables,j as extractScriptFromTemplate,h as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{fi as jH}from"./chunk-zfysz73j.js";import{Do as e,Mp as S,Np as zH,Op as qH,Rp as JH,Sp as WH,Tp as VH,Up as AH,Vp as GH,Wp as UH,Xp as FH,Yp as MH,Zp as XH,am as $H,xr as BH}from"./chunk-60cttsne.js";import{st as f}from"./chunk-w1asc0zd.js";import{Av as D}from"./chunk-7racewc5.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
2
+ import{fi as jH}from"./chunk-gagw5rvw.js";import{Eo as e,Np as S,Op as zH,Pp as qH,Sp as JH,Tp as WH,Up as VH,Vp as AH,Wp as GH,Xp as UH,Yp as FH,Zp as MH,_p as XH,am as $H,yr as BH}from"./chunk-0vgw4496.js";import{tt as f}from"./chunk-2zbmyvqc.js";import{Bv as D}from"./chunk-x8t29tnr.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
3
3
  `).length;Z.push({line:I,column:V-(J.lastIndexOf(`
4
4
  `)+1)+1,offset:V,length:$.length,name:$,kind:q.kind,message:xH($,q.kind)})}}}return Z}import w from"path";var hH="@stacksjs/stx-typescript-plugin";function kH(H,K){let Z=w.resolve(H);for(;;){let q=w.join(Z,"tsconfig.json");if(K(q))return q;let Y=w.dirname(Z);if(Y===Z)return;Z=Y}}function YH(H,K,Z){let q=kH(H,Z);if(!q)return;let Y=new Set,z=(A)=>{if(Y.has(A))return;Y.add(A);let G=K(A);if(!G)return;let X=G.compilerOptions?.plugins;if(Array.isArray(X)){let $=X.find((J)=>J?.name===hH),V=Array.isArray($?.libs)?$.libs.filter((J)=>typeof J==="string"):[];return $?{configPath:A,libs:V.map((J)=>w.resolve(w.dirname(A),J))}:null}let M=typeof G.extends==="string"?[G.extends]:Array.isArray(G.extends)?G.extends:[];for(let $ of[...M].reverse()){if(typeof $!=="string"||!$.startsWith("."))continue;let V=w.resolve(w.dirname(A),$.endsWith(".json")?$:`${$}.json`),J=z(V);if(J!==void 0)return J}return};return z(q)??void 0}function gH(H,K="",Z=""){let q=H.startLine>1?`
5
5
  `.repeat(H.startLine-1):"",Y=UH(H)+qH(zH(H.code)),z=H.kind==="client"||H.kind==="plain"?VH(K,H.code):"";return GH(`${q+Y}
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{qs as _}from"./chunk-v90kxg77.js";import"./chunk-m8kem5ca.js";function W(j,G,H=240){return j.slice(G,G+H)}var v=[{rule:"route-params",pattern:/\blocation\s*\.\s*pathname\s*\.\s*(?:match|split)\s*\(/g,primitive:"useRoute() / useRouteParams() / useRouteParam(name)",why:"parsing the URL by hand re-implements the router and does not update on SPA navigation"},{rule:"alert",pattern:/(?<![.#\w$])(?:(?:window|globalThis)\s*\.\s*)?alert\s*\(/g,primitive:"stxAlert(message)",why:"themed, focus-trapped and non-blocking \u2014 but `await` it if the code after it "+"depended on the native dialog blocking until dismissal",reject:(j)=>/\b(?:async\s+)?function\s+alert\s*\(/.test(j)||/\b(?:const|let|var)\s+alert\s*=/.test(j)},{rule:"search-params",pattern:/new\s+URLSearchParams\s*\(/g,primitive:"useSearchParams()",why:"reactive, and writes back through the router instead of history.replaceState",reject:(j,G)=>{let H=j.indexOf("(",G);if(H===-1)return!0;let Q=j.slice(H+1,j.indexOf(")",H)+1);return!/\b(?:location|search|href|url)\b/i.test(Q)}},{rule:"navigate",pattern:/\blocation\s*\.\s*(?:assign|replace)\s*\(|\blocation\s*\.\s*href\s*=/g,primitive:"navigate(path) / goBack()",why:"a full document load throws away every store and the scroll position; navigate() is an SPA transition",reject:(j,G)=>/^[^\n]*?(?:['"`]\s*)?(?:mailto:|tel:|sms:|https?:\/\/|\/\/)/.test(W(j,G,160))},{rule:"fetch",pattern:/new\s+AbortController\s*\(/g,primitive:"useFetch(url) / useAsyncData(key, fn)",why:"cancellation, loading and error state are already wired; hand-rolling them is where the races live"},{rule:"polling",pattern:/setInterval\s*\(/g,primitive:"useEventSource() / useSSE() / useWebSocket() / useChannel()",why:"polling burns requests and lags; the push primitives are delivered",reject:(j,G)=>!/\bfetch\s*\(|\$fetch\b|useFetch\b|\.get\s*\(|axios\b/.test(W(j,G))},{rule:"debounce",pattern:/\bclearTimeout\s*\(/g,primitive:"useDebounce(fn, ms) / useThrottle(fn, ms)",why:"a hand-held timer handle per call site is the usual source of stale-result bugs",requires:(j)=>/setTimeout\s*\(/.test(j)},{rule:"click-outside",pattern:/document\s*\.\s*addEventListener\s*\(\s*['"](?:click|mousedown|pointerdown)['"]/g,primitive:"useClickOutside(ref, fn)",why:"the document-level listener plus the blur race is exactly what this composable exists to remove"},{rule:"focus",pattern:/\.\s*(?:getElementById|querySelector)\s*\([^)]*\)\s*(?:\?\.)?\s*\.?focus\s*\(/g,primitive:"useFocus(ref) with x-ref",why:"a query by id breaks under nested scopes and SPA navigation; a ref does not"},{rule:"clipboard",pattern:/navigator\s*\.\s*(?:clipboard|share)\b/g,primitive:"useClipboard() / useShare()",why:"permission state, the copied flag and the unsupported-browser fallback are already handled"},{rule:"watch",pattern:/\beffect\s*\(\s*\(\s*\)\s*=>\s*\{[^}]*\bvoid\s+\w+\s*\(\s*\)/g,primitive:"watch(source, cb) / watchMultiple([...], cb)",why:"the `void a(); void b()` dance is a manual dependency list; watch takes one directly"}],U=["confirm","tooltip",...v.map((j)=>j.rule)];function N(j,G){let H=1;for(let Q=0;Q<G;Q++)if(j[Q]===`
2
+ import{rs as _}from"./chunk-c0vjhzjf.js";import"./chunk-myyj9qp3.js";function W(j,G,H=240){return j.slice(G,G+H)}var v=[{rule:"route-params",pattern:/\blocation\s*\.\s*pathname\s*\.\s*(?:match|split)\s*\(/g,primitive:"useRoute() / useRouteParams() / useRouteParam(name)",why:"parsing the URL by hand re-implements the router and does not update on SPA navigation"},{rule:"alert",pattern:/(?<![.#\w$])(?:(?:window|globalThis)\s*\.\s*)?alert\s*\(/g,primitive:"stxAlert(message)",why:"themed, focus-trapped and non-blocking \u2014 but `await` it if the code after it "+"depended on the native dialog blocking until dismissal",reject:(j)=>/\b(?:async\s+)?function\s+alert\s*\(/.test(j)||/\b(?:const|let|var)\s+alert\s*=/.test(j)},{rule:"search-params",pattern:/new\s+URLSearchParams\s*\(/g,primitive:"useSearchParams()",why:"reactive, and writes back through the router instead of history.replaceState",reject:(j,G)=>{let H=j.indexOf("(",G);if(H===-1)return!0;let Q=j.slice(H+1,j.indexOf(")",H)+1);return!/\b(?:location|search|href|url)\b/i.test(Q)}},{rule:"navigate",pattern:/\blocation\s*\.\s*(?:assign|replace)\s*\(|\blocation\s*\.\s*href\s*=/g,primitive:"navigate(path) / goBack()",why:"a full document load throws away every store and the scroll position; navigate() is an SPA transition",reject:(j,G)=>/^[^\n]*?(?:['"`]\s*)?(?:mailto:|tel:|sms:|https?:\/\/|\/\/)/.test(W(j,G,160))},{rule:"fetch",pattern:/new\s+AbortController\s*\(/g,primitive:"useFetch(url) / useAsyncData(key, fn)",why:"cancellation, loading and error state are already wired; hand-rolling them is where the races live"},{rule:"polling",pattern:/setInterval\s*\(/g,primitive:"useEventSource() / useSSE() / useWebSocket() / useChannel()",why:"polling burns requests and lags; the push primitives are delivered",reject:(j,G)=>!/\bfetch\s*\(|\$fetch\b|useFetch\b|\.get\s*\(|axios\b/.test(W(j,G))},{rule:"debounce",pattern:/\bclearTimeout\s*\(/g,primitive:"useDebounce(fn, ms) / useThrottle(fn, ms)",why:"a hand-held timer handle per call site is the usual source of stale-result bugs",requires:(j)=>/setTimeout\s*\(/.test(j)},{rule:"click-outside",pattern:/document\s*\.\s*addEventListener\s*\(\s*['"](?:click|mousedown|pointerdown)['"]/g,primitive:"useClickOutside(ref, fn)",why:"the document-level listener plus the blur race is exactly what this composable exists to remove"},{rule:"focus",pattern:/\.\s*(?:getElementById|querySelector)\s*\([^)]*\)\s*(?:\?\.)?\s*\.?focus\s*\(/g,primitive:"useFocus(ref) with x-ref",why:"a query by id breaks under nested scopes and SPA navigation; a ref does not"},{rule:"clipboard",pattern:/navigator\s*\.\s*(?:clipboard|share)\b/g,primitive:"useClipboard() / useShare()",why:"permission state, the copied flag and the unsupported-browser fallback are already handled"},{rule:"watch",pattern:/\beffect\s*\(\s*\(\s*\)\s*=>\s*\{[^}]*\bvoid\s+\w+\s*\(\s*\)/g,primitive:"watch(source, cb) / watchMultiple([...], cb)",why:"the `void a(); void b()` dance is a manual dependency list; watch takes one directly"}],U=["confirm","tooltip",...v.map((j)=>j.rule)];function N(j,G){let H=1;for(let Q=0;Q<G;Q++)if(j[Q]===`
3
3
  `)H++;return H}function P(j,G){let H=j.lastIndexOf(`
4
4
  `,G)+1,Q=j.indexOf(`
5
5
  `,G);return j.slice(H,Q===-1?j.length:Q).trim().slice(0,120)}function q(j,G){let H=j.slice(0,G),Q=H.lastIndexOf("function"),X=H.lastIndexOf("=>"),M=Math.max(Q,X);if(M===-1)return!1;let z=j.slice(Math.max(0,M-120),M);return/\basync\b[^;{}]*$/.test(z)}function L(j){return/\b(?:async\s+)?function\s+confirm\s*\(/.test(j)||/\b(?:const|let|var)\s+confirm\s*=/.test(j)||/\bimport\s*\{[^}]*\bconfirm\b[^}]*\}/.test(j)}function O(j,G,H){if(L(j))return j;let Q=/(^|[^\w$.])(?:(?:window|globalThis)\s*\.\s*)?confirm\s*\(/g,X=F(j),M="",z=0,Y;while((Y=Q.exec(X))!==null){let Z=Y.index+Y[1].length,$=N(j,Z),J=P(j,Z);if(/stxConfirm\s*\($/.test(j.slice(0,Z+8)))continue;let D=q(j,Z);if(H.push({file:G,line:$,rule:"confirm",applied:D,snippet:J,reason:D?void 0:"stxConfirm() returns a Promise and native confirm() is synchronous, so this needs `await` inside an async function. Rewriting it here would make the condition always true."}),D)M+=j.slice(z,Z)+"await stxConfirm(",z=Z+(Y[0].length-Y[1].length)}return M+j.slice(z)}function w(j,G,H){let Q=/(<[a-z][\w-]*\b[^>]*?)\stitle=(["'])(.*?)\2/gis,X=C(j),M="",z=0,Y;while((Y=Q.exec(X))!==null){let[Z,$,J,D]=Y,K=N(j,Y.index),B=P(j,Y.index),V=$.match(/^<([A-Za-z][\w-]*)/)?.[1]??"";if(/^[A-Z]/.test(V)){H.push({file:G,line:K,rule:"tooltip",applied:!1,snippet:B,reason:`\`title\` on <${V}> is a component prop, not an HTML attribute \u2014 `+"adding x-tooltip here would put a tooltip on a component and may duplicate text it already renders."});continue}if(/\bx-tooltip[=\s]/.test($)||D.trim()===""){H.push({file:G,line:K,rule:"tooltip",applied:!1,snippet:B,reason:/\bx-tooltip[=\s]/.test($)?"already has x-tooltip":"empty title"});continue}H.push({file:G,line:K,rule:"tooltip",applied:!0,snippet:B}),M+=j.slice(z,Y.index)+`${$} x-tooltip=${J}${D}${J} title=${J}${D}${J}`,z=Y.index+Z.length}return M+j.slice(z)}function C(j){return j.replace(/<!--[\s\S]*?-->/g,(G)=>G.replace(/[^\n]/g," ")).replace(/\{\{--[\s\S]*?--\}\}/g,(G)=>G.replace(/[^\n]/g," "))}function E(j){let G=(H)=>H.replace(/[^\n]/g," ");return j.replace(/\/\*[\s\S]*?\*\//g,G).replace(/\/\/[^\n]*/g,G)}function F(j,G=!1){let H=C(j);return(G?E(H):_(H)).replace(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi,(X,M)=>/\bclient\b/i.test(M)?X:X.replace(/[^\n]/g," "))}function S(j,G,H,Q){let X=F(j),M=F(j,!0);for(let z of v){if(!H.includes(z.rule))continue;if(z.requires&&!z.requires(j))continue;z.pattern.lastIndex=0;let Y,Z=/['"]/.test(z.pattern.source)?M:X;z.pattern.lastIndex=0;while((Y=z.pattern.exec(Z))!==null){if(z.reject?.(j,Y.index))continue;Q.push({file:G,line:N(j,Y.index),rule:z.rule,applied:!1,snippet:P(j,Y.index),reason:`${z.primitive} \u2014 ${z.why}`})}}}function k(j,G={}){let H=G.rules??U,Q=G.file??"<source>",X=[];S(j,Q,H,X);let M=j;if(H.includes("confirm"))M=O(M,Q,X);if(H.includes("tooltip"))M=w(M,Q,X);X.sort((Z,$)=>Z.line-$.line);let z=new Set,Y=X.filter((Z)=>{let $=`${Z.rule}:${Z.line}`;if(z.has($))return!1;return z.add($),!0});return{code:M,findings:Y}}var I=new Set(["confirm","tooltip"]);function A(j,G){if(j.length===0)return"No hand-rolled equivalents found.";let H=j.filter((z)=>z.applied),Q=j.filter((z)=>!z.applied&&I.has(z.rule)),X=j.filter((z)=>!z.applied&&!I.has(z.rule)),M=[];if(H.length>0){M.push(G?`Rewrote ${H.length} site(s):`:`Would rewrite ${H.length} site(s) (pass --fix):`);for(let z of H)M.push(` ${z.file}:${z.line} [${z.rule}] ${z.snippet}`)}if(Q.length>0){M.push("",`Needs a human \u2014 ${Q.length} site(s):`);for(let z of Q)M.push(` ${z.file}:${z.line} [${z.rule}] ${z.snippet}
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ni as a,Oi as b,Pi as c,Qi as d,Ri as e,Si as f,Ti as g,Ui as h,Vi as i,Wi as j,Xi as k,Yi as l,Zi as m,_i as n}from"./chunk-4znpx8a5.js";import"./chunk-0vgw4496.js";import"./chunk-cf7qz2yz.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-ds9hax17.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import"./chunk-k6bagvmz.js";import"./chunk-x5bsgr9k.js";import"./chunk-tm8v7xc0.js";import"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{nf as t,of as u,pf as v,qf as w,rf as x,sf as y,tf as z,uf as A,vf as B,wf as C,xf as D,yf as E}from"./chunk-84577w4y.js";import{Af as s,zf as r}from"./chunk-5j3v0p6s.js";import{Bf as b,Cf as c,Df as d,Ef as e,Ff as f,Gf as g,Hf as h,Jf as i,Kf as j,Lf as k,Mf as l,Nf as m,Of as n,Pf as o,Qf as p,Rf as q}from"./chunk-198fr2d4.js";import{ei as a}from"./chunk-g1vxsvqv.js";import"./chunk-135mme4g.js";import"./chunk-m8kem5ca.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
2
+ import{nf as t,of as u,pf as v,qf as w,rf as x,sf as y,tf as z,uf as A,vf as B,wf as C,xf as D,yf as E}from"./chunk-m7zebyq5.js";import{Af as s,zf as r}from"./chunk-eewneg7t.js";import{Bf as b,Cf as c,Df as d,Ef as e,Ff as f,Gf as g,Hf as h,Jf as i,Kf as j,Lf as k,Mf as l,Nf as m,Of as n,Pf as o,Qf as p,Rf as q}from"./chunk-km3e88cy.js";import{ei as a}from"./chunk-g1vxsvqv.js";import"./chunk-cbj5a2tk.js";import"./chunk-myyj9qp3.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
@@ -299,4 +299,4 @@ catch (error) {
299
299
  }
300
300
  })();
301
301
  </script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
302
- export{N as Jw,Q as Kw,T as Lw,V as Mw,X as Nw,Z as Ow};
302
+ export{N as Kw,Q as Lw,T as Mw,V as Nw,X as Ow,Z as Pw};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ii as a}from"./chunk-fqq5k9ve.js";import"./chunk-myyj9qp3.js";export{a as processDeferDirectives};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{lk as a,mk as b,nk as c,ok as d}from"./chunk-41hqk2fp.js";import"./chunk-dahpshkz.js";import"./chunk-0vgw4496.js";import"./chunk-cf7qz2yz.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-ds9hax17.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import"./chunk-k6bagvmz.js";import"./chunk-x5bsgr9k.js";import"./chunk-tm8v7xc0.js";import"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{tl as QJ}from"./chunk-c7wxj426.js";import{ul as WJ}from"./chunk-qjvny3wf.js";import{bm as GJ,xr as XJ,yr as qJ}from"./chunk-60cttsne.js";import{qs as ZJ,rs as $J}from"./chunk-v90kxg77.js";import{Ks as YJ,Os as u}from"./chunk-sxzdtsqe.js";import{st as c}from"./chunk-w1asc0zd.js";import X from"path";import O from"fs";function UJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function LJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function b(J,K){let $=[];for(let W of LJ(J)){if(UJ(W)){let Y=W.position||void 0;$.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}$.push({file:K,message:W instanceof Error?W.message:String(W)})}return $}function t(J,K){return b(J,K).map(($)=>{let W=$.file?`${$.file}${$.line?`:${$.line}${$.column?`:${$.column}`:""}`:""}`:"",Y=$.lineText?`
2
+ import{tl as QJ}from"./chunk-abp8t91q.js";import{ul as WJ}from"./chunk-qjvny3wf.js";import{bm as GJ,yr as XJ,zr as qJ}from"./chunk-0vgw4496.js";import{rs as ZJ,ss as $J}from"./chunk-c0vjhzjf.js";import{Ls as YJ,Ps as u}from"./chunk-ds9hax17.js";import{tt as c}from"./chunk-2zbmyvqc.js";import X from"path";import O from"fs";function UJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function LJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function b(J,K){let $=[];for(let W of LJ(J)){if(UJ(W)){let Y=W.position||void 0;$.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}$.push({file:K,message:W instanceof Error?W.message:String(W)})}return $}function t(J,K){return b(J,K).map(($)=>{let W=$.file?`${$.file}${$.line?`:${$.line}${$.column?`:${$.column}`:""}`:""}`:"",Y=$.lineText?`
3
3
  ${$.lineText.trim()}`:"";return W?`${W}: ${$.message}${Y}`:`${$.message}${Y}`}).join(`
4
4
  `)}var TJ=9;function P(J,K,$){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(X.basename(J))||QJ(J,K,$)}var HJ=1,zJ=new Map,f=600,AJ=100,g=new Map;async function MJ(J){let K=g.get(J)??0;if(K>0&&K<AJ){g.set(J,K+1);return}g.set(J,1);try{let $=(await O.promises.readdir(J)).filter((z)=>z.endsWith(".js"));if($.length<=f)return;let Y=(await Promise.all($.map(async(z)=>{try{return{name:z,at:(await O.promises.stat(X.join(J,z))).mtimeMs}}catch{return null}}))).filter((z)=>z!==null);Y.sort((z,H)=>H.at-z.at);for(let z of Y.slice(f)){let H=z.name.slice(0,-3);await O.promises.rm(X.join(J,`${H}.js`),{force:!0}),await O.promises.rm(X.join(J,`${H}.deps.json`),{force:!0})}x("pruned bundle cache to",f,"entries")}catch{}}function nJ(J){return zJ.get(J)??[]}function h(J,K){if(J)zJ.set(J,K)}function CJ(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function x(...J){if(CJ())console.log("[stx:bundler]",...J)}var n=[];function r(J,K,$){n.push({filePath:J||"<inline>",message:K,details:$})}function oJ(){return n.slice()}function lJ(){n.length=0}var p;function dJ(J){p=J}function a(){if(p)return p;try{let J=qJ.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var e=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function sJ(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let Y=$[1];if(!e.some((H)=>H.test(Y)))return x("detected user import:",Y),!0}let W=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=W.exec(J))!==null){let Y=$[1];if(/\.css(?:\?.*)?$/.test(Y))continue;if(!e.some((H)=>H.test(Y)))return x("detected side-effect import:",Y),!0}return!1}var v="stx-module:",xJ=/\.(?:[cm]?[jt]sx?|json)$/i;function IJ(J,K){return X.relative(J,K).split(X.sep).join("/")}function _J(J,K){if(K.size===0)return J;return J.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,($,W,Y,z)=>{let H=K.get(z);return H&&!z.startsWith(v)?`${W}${Y}${H}${Y}`:$})}function NJ(J,K){let $=0,W=(z)=>{let H=`__stxMod${$++}`,j=JSON.stringify(z);return K.push(`var ${H} = globalThis.__stxModules && globalThis.__stxModules[${j}];`,`if (${H} === undefined) throw new Error("[stx] module " + ${JSON.stringify(j)} + " is not registered on this page (#1957)");`),H},Y=(z,H)=>{for(let j of z.split(",")){let T=j.trim();if(!T)continue;let Q=T.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!Q)continue;let Z=Q[1].startsWith('"')?JSON.parse(Q[1]):Q[1],G=Q[2]??Z;K.push(`var ${G} = ${H}[${JSON.stringify(Z)}];`)}};return J=J.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,H,j)=>{let T=j.slice(v.length),Q=W(T),Z=H.trim(),G=Z.match(/^([\w$]+)\s*(?:,\s*|$)/);if(G&&!Z.startsWith("{")&&!Z.startsWith("*"))K.push(`var ${G[1]} = ${Q}.default;`),Z=Z.slice(G[0].length).trim();let q=Z.match(/^\*\s*as\s+([\w$]+)$/);if(q)K.push(`var ${q[1]} = ${Q};`);else if(Z.startsWith("{"))Y(Z.replace(/^\{|\}$/g,""),Q);return""}),J=J.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,H)=>{return W(H.slice(v.length)),""}),J}function JJ(J){let K=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,X.join(J,"index.ts"),X.join(J,"index.tsx"),X.join(J,"index.js"),X.join(J,"index.mjs")];for(let $ of K)try{if(O.existsSync($)&&O.statSync($,{throwIfNoEntry:!1})?.isFile())return $}catch{}return}function SJ(J,K,$,W,Y,z=new Map,H){let j=(Q,Z,G)=>{if(P(Z,J,H))return null;if(!Y||Q!==$||!xJ.test(Z))return null;try{if(!O.statSync(Z,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}W.add(Z);let q=`${v}${IJ(process.cwd(),Z)}`;return z.set(G,q),{path:q,external:!0}},T=(Q,Z)=>{let G=Q===$?K:X.dirname(Q),q=X.resolve(G,Z);return JJ(q)??q};return{name:"stx-client-bundle",setup(Q){if(Q.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^\//},(Z)=>{let G=JJ(Z.path);if(G){let q=j(Z.importer,G,Z.path);if(q)return q;if(G!==$)W.add(G);return{path:G}}return{path:Z.path,external:!0}}),Q.onResolve({filter:/^\.\.?\//},(Z)=>{let G=T(Z.importer,Z.path),q=j(Z.importer,G,Z.path);if(q)return q;return W.add(G),{path:G}}),Q.onResolve({filter:/^[@~]\//},(Z)=>{let G=X.resolve(J,Z.path.slice(2)),q=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,X.join(G,"index.ts"),X.join(G,"index.tsx"),X.join(G,"index.js"),X.join(G,"index.mjs")];for(let w of q)if(O.existsSync(w)&&O.statSync(w,{throwIfNoEntry:!1})?.isFile()){let y=j(Z.importer,w,Z.path);if(y)return y;return x(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",w),W.add(w),{path:w}}return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:G}}),Y)Q.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(Z)=>{if(Z.importer!==$)return;let G=`${v}npm:${Z.path}`;return z.set(Z.path,G),{path:G,external:!0}});Q.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{if(P(Z.path,J,H))throw Error(`Server-only API source cannot be imported by a client script: ${Z.path}`);let G=X.extname(Z.path).toLowerCase(),q=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(Z.path!==$)W.add(Z.path);return{contents:O.readFileSync(Z.path,"utf8"),loader:q}})}}}var m=new Map,D=YJ(64),KJ=Symbol.for("stx.client-bundle-build-queue");function yJ(J){let K=globalThis,W=(K[KJ]??Promise.resolve()).then(J,J);return K[KJ]=W.then(()=>{return},()=>{return}),W}async function iJ(J,K,$={}){let W=$.projectRoot||process.cwd(),Y=(await XJ(W)).serverApi,z=$.minify??!1,H=$.externalizeUserModules??!0,j=$.cacheDir||c(W,"bundle-cache"),T=new Bun.CryptoHasher("md5");T.update(`${TJ}\x00${WJ()}\x00${JSON.stringify(Y??!1)}\x00${H?"registry":"inline"}\x00${J}\x00${K}`);let Q=T.digest("hex").slice(0,12),Z=X.join(j,`${Q}.js`),G=D.get(Z);if(G){if(u(G.files)&&G.files.every((A)=>!P(A.path,W,Y))){x("memo hit:",Q);let A=G.files.map((M)=>M.path);return h(K,A),$.collectInputs?.push(...A),G.code}D.delete(Z),x("memo invalidated by dep change:",Q)}let q=X.join(j,`${Q}.deps.json`),w=Bun.file(Z);if(await w.exists()){let A=Bun.file(q),M=!1,U=null;if(await A.exists())try{let N=JSON.parse(await A.text());if(N.metadataVersion!==HJ||!Array.isArray(N.files))M=!1;else U=N.files,M=!0;if(U&&(!u(U)||U.some((B)=>P(B.path,W,Y))))M=!1}catch{M=!1}if(M){if(x("cache hit:",Q),U)h(K,U.map((B)=>B.path)),$.collectInputs?.push(...U.map((B)=>B.path));let N=await w.text();if(U)D.set(Z,{code:N,files:U});return N}x("cache invalidated by dep change:",Q)}let y=m.get(Q);if(y){let A=await y;if($.collectInputs)$.collectInputs.push(...(D.get(Z)?.files??[]).map((M)=>M.path));return A}let I=yJ(()=>FJ(J,K,{projectRoot:W,minify:z,cacheDir:j,hash:Q,cachePath:Z,depsPath:q,collectInputs:$.collectInputs,externalizeUserModules:H,serverApi:Y}));m.set(Q,I);try{return await I}finally{m.delete(Q)}}var BJ=0;function RJ(J){return`${J}-${process.pid}-${++BJ}`}async function FJ(J,K,$){let{projectRoot:W,minify:Y,cacheDir:z,hash:H,cachePath:j,depsPath:T,externalizeUserModules:Q}=$,Z=c(W,"bundle-tmp"),G=RJ(H),q=X.join(Z,`${G}.ts`),w=X.join(Z,"out",G);O.mkdirSync(Z,{recursive:!0}),O.mkdirSync(w,{recursive:!0});let y=X.dirname(K),I=new Set,A=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,M=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,U=ZJ(J),{depths:N,balanced:B}=$J(U),o=(L)=>!B||N[L]===0,C;while((C=A.exec(U))!==null){if(C[1])continue;if(!o(C.index))continue;if(C[2])C[2].split(",").forEach((L)=>{let k=DJ(L);if(k)I.add(k)});else if(C[3])I.add(C[3])}while((C=M.exec(U))!==null){if(C[1])continue;if(!o(C.index))continue;I.add(C[2])}let VJ=I.size>0?`
5
5
  export { ${[...I].join(", ")} }`:"";await Bun.write(q,J+VJ),x("bundling:",H,"from:",X.basename(K));let l=new Set,d=new Map;try{let L=await Bun.build({entrypoints:[q],outdir:w,target:"browser",format:"esm",minify:Y,plugins:[SJ(W,y,q,l,Q,d,$.serverApi)],define:{"process.env.NODE_ENV":Y?'"production"':'"development"',...GJ()},root:W});if(!L.success){let S=L.logs.filter((R)=>R.level==="error").map((R)=>R.message).join(", ")||`Unable to bundle ${X.basename(K)}`,F=b(L.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",S),r(K||"",S,F),a()==="error")throw Error(S);return J}let k="";for(let V of L.outputs){k=await V.text();break}let _=[];for(let V of k.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let S of V[1].split(",")){let F=S.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(F){_.push([F[2],F[1]]);continue}let R=S.trim();if(/^[A-Za-z_$][\w$]*$/.test(R))_.push([R,R])}let s=[];k=NJ(_J(k,d),s);let kJ=k.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];k=k.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let i=`__stxBundle_${H}`,jJ=_.map(([V,S])=>`${JSON.stringify(V)}: ${S}`).join(", "),OJ=_.map(([V])=>`var ${V} = undefined;`).join(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{eu as _,fu as H,gu as A,hu as X,iu as U,ju as K,ku as S,lu as C,qu as T}from"./chunk-vgx5077x.js";import{Iu as I,Yu as L}from"./chunk-met6wtbk.js";var h=/(?<![\w$@])@meta\s*\(/g,u=/(?<![\w$@])@metaTag\s*\(/g,f=/(?<![\w$@])@structuredData\s*\(/g,p=/(?<![\w$@])@seo\s*\(/g;function b(z,J){return(Q)=>K(z,Q,"the call has no closing parenthesis",J,I.INVALID_DIRECTIVE_SYNTAX)}function g(z){return"property"in z?`<meta property="${B(z.property)}" content="${B(z.content)}">`:`<meta name="${B(z.name)}" content="${B(z.content)}">`}function Qz(z,J,Q,N){if(!z.includes("@meta"))return z;let W=_(z,h,(Z,G)=>{let $=C(H(Z),J);if($.kind==="tag")return g($.tag);if($.kind==="empty")return"";return K("Meta",G,$.message,Q,$.code)},b("Meta",Q));return W=_(W,u,(Z,G)=>{let $=A(Z,J);if(!$.ok)return K("MetaTag",G,$.message,Q,$.code);if($.value===void 0||$.value===null)return"";if(!U($.value))return K("MetaTag",G,`expected an object such as { name, content }, got ${X($.value)}`,Q,I.TYPE_ERROR);let q=$.value;if(!q.name&&!q.property&&!q.httpEquiv)return K("MetaTag",G,"the tag needs a name, property or httpEquiv",Q,I.INVALID_DIRECTIVE_SYNTAX);if(q.content===void 0||q.content===null||q.content===""||q.content===!1)return"";let j="<meta";if(q.name)j+=` name="${B(q.name)}"`;if(q.property)j+=` property="${B(q.property)}"`;if(q.httpEquiv)j+=` http-equiv="${B(q.httpEquiv)}"`;return j+=` content="${B(q.content)}">`,j},b("MetaTag",Q)),W}function v(z){let J=(Q)=>Q["@context"]?{...Q}:{...Q,"@context":"https://schema.org"};if(U(z))return J(z);if(Array.isArray(z)&&z.length>0&&z.every(U))return z.map(J);return null}function E(z){return`<script type="application/ld+json">${JSON.stringify(z).replace(/<\//g,"<\\/")}</script>`}function Wz(z,J,Q){if(!z.includes("@structuredData"))return z;return _(z,f,(N,W)=>{let Z=A(N,J);if(!Z.ok)return K("StructuredData",W,Z.message,Q,Z.code);if(Z.value===void 0||Z.value===null)return"";let G=v(Z.value);if(!G)return K("StructuredData",W,`expected an object or an array of objects, got ${X(Z.value)}`,Q,I.TYPE_ERROR);try{return E(G)}catch($){let q=$ instanceof Error?$.message:String($);return K("StructuredData",W,`the data cannot be written as JSON: ${q}`,Q,I.EVALUATION_ERROR)}},b("StructuredData",Q))}var m=new Set(["title","description","keywords","robots","canonical","openGraph","twitter","structuredData"]),D={image:"openGraph.image",url:"canonical or openGraph.url",type:"openGraph.type",siteName:"openGraph.siteName",locale:"openGraph.locale",og:"openGraph",author:"@meta('author', ...)"};function Zz(z,J,Q,N){if(!z.includes("@seo"))return z;return _(z,p,(W,Z)=>{if(!W.trim())return K("SEO",Z,"expected an object: @seo({ title, description }) or @seo(seoVariable)",Q,I.INVALID_DIRECTIVE_SYNTAX);let G=A(W,J);if(!G.ok)return K("SEO",Z,G.message,Q,G.code);if(G.value===void 0||G.value===null)return"";if(!U(G.value))return K("SEO",Z,`expected an object such as { title, description }, got ${X(G.value)}`,Q,I.TYPE_ERROR);try{return c(G.value,Z,Q)}catch($){let q=$ instanceof Error?$.message:String($);return K("SEO",Z,`Error processing @seo directive: ${q}`,Q,I.EVALUATION_ERROR)}},b("SEO",Q))}function y(z,J,Q,N){let W=z[J];if(W===void 0||W===null||W===!1)return;if(U(W))return W;S(Q,`${J} must be an object, got ${X(W)}; its tags were left out`,N);return}function c(z,J,Q){let N=Object.keys(z).filter(($)=>!m.has($));if(N.length>0){let $=N.map((q)=>D[q]?`${q} (use ${D[q]})`:q).join(", ");S(J,`@seo does not read ${$}; ${N.length===1?"it was":"they were"} ignored`,Q)}let W="";if(z.title)W+=`<title>${B(z.title)}</title>
2
+ import{fu as _,gu as H,hu as A,iu as X,ju as U,ku as K,lu as S,mu as C,ru as T}from"./chunk-tm8v7xc0.js";import{Ju as I,Zu as L}from"./chunk-s7nd2979.js";var h=/(?<![\w$@])@meta\s*\(/g,u=/(?<![\w$@])@metaTag\s*\(/g,f=/(?<![\w$@])@structuredData\s*\(/g,p=/(?<![\w$@])@seo\s*\(/g;function b(z,J){return(Q)=>K(z,Q,"the call has no closing parenthesis",J,I.INVALID_DIRECTIVE_SYNTAX)}function g(z){return"property"in z?`<meta property="${B(z.property)}" content="${B(z.content)}">`:`<meta name="${B(z.name)}" content="${B(z.content)}">`}function Qz(z,J,Q,N){if(!z.includes("@meta"))return z;let W=_(z,h,(Z,G)=>{let $=C(H(Z),J);if($.kind==="tag")return g($.tag);if($.kind==="empty")return"";return K("Meta",G,$.message,Q,$.code)},b("Meta",Q));return W=_(W,u,(Z,G)=>{let $=A(Z,J);if(!$.ok)return K("MetaTag",G,$.message,Q,$.code);if($.value===void 0||$.value===null)return"";if(!U($.value))return K("MetaTag",G,`expected an object such as { name, content }, got ${X($.value)}`,Q,I.TYPE_ERROR);let q=$.value;if(!q.name&&!q.property&&!q.httpEquiv)return K("MetaTag",G,"the tag needs a name, property or httpEquiv",Q,I.INVALID_DIRECTIVE_SYNTAX);if(q.content===void 0||q.content===null||q.content===""||q.content===!1)return"";let j="<meta";if(q.name)j+=` name="${B(q.name)}"`;if(q.property)j+=` property="${B(q.property)}"`;if(q.httpEquiv)j+=` http-equiv="${B(q.httpEquiv)}"`;return j+=` content="${B(q.content)}">`,j},b("MetaTag",Q)),W}function v(z){let J=(Q)=>Q["@context"]?{...Q}:{...Q,"@context":"https://schema.org"};if(U(z))return J(z);if(Array.isArray(z)&&z.length>0&&z.every(U))return z.map(J);return null}function E(z){return`<script type="application/ld+json">${JSON.stringify(z).replace(/<\//g,"<\\/")}</script>`}function Wz(z,J,Q){if(!z.includes("@structuredData"))return z;return _(z,f,(N,W)=>{let Z=A(N,J);if(!Z.ok)return K("StructuredData",W,Z.message,Q,Z.code);if(Z.value===void 0||Z.value===null)return"";let G=v(Z.value);if(!G)return K("StructuredData",W,`expected an object or an array of objects, got ${X(Z.value)}`,Q,I.TYPE_ERROR);try{return E(G)}catch($){let q=$ instanceof Error?$.message:String($);return K("StructuredData",W,`the data cannot be written as JSON: ${q}`,Q,I.EVALUATION_ERROR)}},b("StructuredData",Q))}var m=new Set(["title","description","keywords","robots","canonical","openGraph","twitter","structuredData"]),D={image:"openGraph.image",url:"canonical or openGraph.url",type:"openGraph.type",siteName:"openGraph.siteName",locale:"openGraph.locale",og:"openGraph",author:"@meta('author', ...)"};function Zz(z,J,Q,N){if(!z.includes("@seo"))return z;return _(z,p,(W,Z)=>{if(!W.trim())return K("SEO",Z,"expected an object: @seo({ title, description }) or @seo(seoVariable)",Q,I.INVALID_DIRECTIVE_SYNTAX);let G=A(W,J);if(!G.ok)return K("SEO",Z,G.message,Q,G.code);if(G.value===void 0||G.value===null)return"";if(!U(G.value))return K("SEO",Z,`expected an object such as { title, description }, got ${X(G.value)}`,Q,I.TYPE_ERROR);try{return c(G.value,Z,Q)}catch($){let q=$ instanceof Error?$.message:String($);return K("SEO",Z,`Error processing @seo directive: ${q}`,Q,I.EVALUATION_ERROR)}},b("SEO",Q))}function y(z,J,Q,N){let W=z[J];if(W===void 0||W===null||W===!1)return;if(U(W))return W;S(Q,`${J} must be an object, got ${X(W)}; its tags were left out`,N);return}function c(z,J,Q){let N=Object.keys(z).filter(($)=>!m.has($));if(N.length>0){let $=N.map((q)=>D[q]?`${q} (use ${D[q]})`:q).join(", ");S(J,`@seo does not read ${$}; ${N.length===1?"it was":"they were"} ignored`,Q)}let W="";if(z.title)W+=`<title>${B(z.title)}</title>
3
3
  `,W+=`<meta name="title" content="${B(z.title)}">
4
4
  `;if(z.description)W+=`<meta name="description" content="${B(z.description)}">
5
5
  `;if(z.keywords){let $=Array.isArray(z.keywords)?z.keywords.join(", "):z.keywords;W+=`<meta name="keywords" content="${B($)}">
@@ -61,4 +61,4 @@ ${z.map((Z)=>{let G=Z.startsWith("http")?Z:`${Q}${Z.startsWith("/")?"":"/"}${Z}`
61
61
  `)}
62
62
  </sitemapindex>`}async function Nz(z,J){let{extensions:Q=[".stx",".html",".htm"],ignore:N=["_*",".*","node_modules","components","partials","layouts"]}=J,W=[],Z=Q.length===1?`*${Q[0]}`:`*{${Q.join(",")}}`,G=new Bun.Glob(`**/${Z}`);for await(let $ of G.scan(z)){if(N.some((V)=>{if(V.startsWith("*"))return $.includes(V.slice(1));return $.startsWith(V)||$.includes(`/${V}`)}))continue;let j=$.replace(/\\/g,"/").replace(/index\.(stx|html|htm)$/,"").replace(/\.(stx|html|htm)$/,"");if(!j.startsWith("/"))j=`/${j}`;if(j!=="/"&&j.endsWith("/"))j=j.slice(0,-1);let Y=`${z}/${$}`,O;try{let V=await Bun.file(Y).stat();if(V)O=new Date(V.mtime).toISOString().split("T")[0]}catch{}W.push({loc:j||"/",lastmod:O,priority:j==="/"?1:0.5})}return W.sort(($,q)=>$.loc.localeCompare(q.loc)),W}function a(z){let J=[];for(let Q of z.rules){if(J.push(`User-agent: ${Q.userAgent}`),Q.allow)for(let N of Q.allow)J.push(`Allow: ${N}`);if(Q.disallow)for(let N of Q.disallow)J.push(`Disallow: ${N}`);if(Q.crawlDelay!==void 0)J.push(`Crawl-delay: ${Q.crawlDelay}`);J.push("")}if(z.sitemap){let Q=Array.isArray(z.sitemap)?z.sitemap:[z.sitemap];for(let N of Q)J.push(`Sitemap: ${N}`)}if(z.host)J.push(`Host: ${z.host}`);return J.join(`
63
63
  `).trim()}function jz(z){return a({rules:[{userAgent:"*",allow:["/"]}],sitemap:z})}function d(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}
64
- export{Qz as Pt,Wz as Qt,Zz as Rt,$z as St,i as Tt,l as Ut,Gz as Vt,qz as Wt,Bz as Xt,Nz as Yt,a as Zt,jz as _t};
64
+ export{Qz as Qt,Wz as Rt,Zz as St,$z as Tt,i as Ut,l as Vt,Gz as Wt,qz as Xt,Bz as Yt,Nz as Zt,a as _t,jz as $t};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import F from"fs";import y from"path";var U=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useModel)\s*(?:<[^<>()]*>)?\s*\(/,g=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,D=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],H=3;function k(j,q){let J=y.resolve(y.dirname(q),j);for(let Q of D){let z=J+Q;try{if(F.statSync(z).isFile())return z}catch{}}return null}function K(j,q,J=0,Q=new Set){if(!q||J>=H)return!1;for(let z of j.matchAll(g)){let Z=k(z[1],q);if(!Z||Q.has(Z))continue;Q.add(Z);let $;try{$=F.readFileSync(Z,"utf8")}catch{continue}if(U.test($))return!0;if(K($,Z,J+1,Q))return!0}return!1}var Y=["batch","clearServerData","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refresh","registerStoresClient","setRouteParams","state","untrack","useAsync","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebouncedValue","useDocumentVisibility","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useModel","useMutation","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useTimeout","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"],d=["onMount","onDestroy"];function p(j="const",q=[],J){let Q=q.length?Y.filter((z)=>!q.includes(z)):Y;if(J!==void 0)Q=Q.filter((z)=>{let Z=z.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${Z}(?![\\w$])`).test(J)});return`${j} { ${Q.join(", ")} } = window.stx;`}var x=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"],T={useServerData:{category:"server-only",reason:"loads and serializes request-scoped data from <script server>; clients consume it through a keyed useFetch/useAsyncData."},redirect:{category:"server-only",reason:"returns an HTTP Response for <script server>/edge/build; use navigate() on the client."},useAsyncData:{category:"browser-composable",reason:"inlined on demand from src/composables when a script references it; reachable, not a bare global."},Teleport:{category:"compile-time-directive",reason:"template tag resolved by processTeleportDirectives; not a script callable."},StxModalBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; drive open/close from the modal store."},StxToastBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; push toasts via the toast store."},useForm:{category:"browser-composable",reason:"reactive form primitive; lives in src/composables/use-form.ts and is inlined on demand when a <script client> references it (#1846)."},defineForm:{category:"browser-composable",reason:"deprecated alias of useForm, kept for a minor (#1843). Same delivery path \u2014 inlined on demand from src/composables/use-form.ts."},validateFields:{category:"isomorphic-import",reason:"pure validation helper; import it directly, not auto-delivered to <script client> (per client-api-delivery.test.ts)."},validateField:{category:"isomorphic-import",reason:"singular pure validation helper; same explicit-import boundary as validateFields."}},O=Y.filter((j)=>!x.includes(j));function P(j){if(!j)return!1;return O.some((q)=>new RegExp(`\\b${q}\\s*(?:<[^>]*>)?\\s*\\(`).test(j))}var C=[/@if\s*=/,/@for\s*=/,/@show\s*=/,/@model\s*=/,/@bind:/,/@class\s*=/,/@style\s*=/,/\bx-data\s*=/,/\bstate\s*(?:<[^>]*>)?\s*\(/,/\bderived\s*(?:<[^>]*>)?\s*\(/,/\beffect\s*(?:<[^>]*>)?\s*\(/,/\bref\s*(?:<[^>]*>)?\s*\(/,/\bcomputed\s*(?:<[^>]*>)?\s*\(/,/\breactive\s*(?:<[^>]*>)?\s*\(/,/\bwatch\s*(?:<[^>]*>)?\s*\(/,/\bwatchEffect\s*(?:<[^>]*>)?\s*\(/,/\s:[a-z][\w-]*\s*=\s*["']/i,/\s:(?:if|else-if|else|for|show|text|html|model)\s*=/,/data-stx(?:-auto)?(?![-\w])/,/data-stx-scoped/],u=/\s@[a-z][\w.:-]*\s*=/i;function _(j,q){if(!j)return!1;let J=X(j);return G(J,q)}function G(j,q){if(C.some((J)=>J.test(j)))return!0;if(P(j))return!0;return M(j,q)}function M(j,q){if(!q)return!1;for(let J of j.matchAll(/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script\s*>/gi))if(K(J[1],q))return!0;return!1}function E(j,q){if(!j)return!1;let J=X(j);return u.test(J)||G(J,q)}var b=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function c(j){return b.includes(j.toLowerCase())}var V=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],f=["x-init","x-transition","x-effect","x-on"],r=[...V,...f];function h(){return`{${V.map((j)=>`'${j}':1`).join(",")}}`}var L=["class","style","text","html","show","model","if","ref"];function o(){return`{${L.map((j)=>j==="if"?"'if':1":`${j}:1`).join(",")}}`}var B=["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","keydown","keyup","keypress","input","change","submit","focus","blur","scroll","resize","touchstart","touchend","touchmove","contextmenu","wheel","pointerdown","pointerup","pointermove"];function i(){return`/^(${B.join("|")})/`}function s(j){return B.some((q)=>j===q||j.startsWith(`${q}.`))}var S=65536,v=4,w=new Map;function m(){w.clear()}function X(j){if(!j)return j;if(!j.includes("<!--")&&!/<(?:pre|code)\b/i.test(j))return j;let q=j.length>=S;if(q){let z=w.get(j);if(z!==void 0)return z}let J=(z)=>z.replace(/(<[^>]*>)|([^<]+)/g,(Z,$,W)=>$??" ".repeat(W.length)),Q=j.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/<!--[\s\S]*?-->/g,(z)=>" ".repeat(z.length));if(q){while(w.size>=v){let z=w.keys().next();if(z.done)break;w.delete(z.value)}w.set(j,Q)}return Q}
3
- export{K as zv,Y as Av,d as Bv,p as Cv,x as Dv,T as Ev,O as Fv,P as Gv,_ as Hv,E as Iv,b as Jv,c as Kv,V as Lv,f as Mv,r as Nv,h as Ov,L as Pv,o as Qv,B as Rv,i as Sv,s as Tv,m as Uv,X as Vv};
3
+ export{K as Av,Y as Bv,d as Cv,p as Dv,x as Ev,T as Fv,O as Gv,P as Hv,_ as Iv,E as Jv,b as Kv,c as Lv,V as Mv,f as Nv,r as Ov,h as Pv,L as Qv,o as Rv,B as Sv,i as Tv,s as Uv,m as Vv,X as Wv};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Jp as b,Kp as c,Lp as d,Mp as e,no as a}from"./chunk-0vgw4496.js";import"./chunk-cf7qz2yz.js";import"./chunk-49trnqad.js";import"./chunk-c0vjhzjf.js";import"./chunk-vjn3r3sq.js";import"./chunk-cbj5a2tk.js";import"./chunk-ds9hax17.js";import"./chunk-2zbmyvqc.js";import"./chunk-sjpjge04.js";import"./chunk-kb6h4vf7.js";import"./chunk-k6bagvmz.js";import"./chunk-x5bsgr9k.js";import"./chunk-tm8v7xc0.js";import"./chunk-s7nd2979.js";import"./chunk-s3tpyage.js";import"./chunk-2sa8rk32.js";import"./chunk-x8t29tnr.js";import"./chunk-0xh7vqce.js";import"./chunk-wqa77pdn.js";import"./chunk-myyj9qp3.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Gk as a,Hk as b,Ik as c,Jk as d,Kk as e}from"./chunk-kaet6r9w.js";import"./chunk-m8kem5ca.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
2
+ import{Gk as a,Hk as b,Ik as c,Jk as d,Kk as e}from"./chunk-kaet6r9w.js";import"./chunk-myyj9qp3.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{It as a,Jt as b,Kt as c,Lt as d,Mt as e,Nt as f,Ot as g}from"./chunk-xk402w4a.js";import"./chunk-m8kem5ca.js";export{a as withRuntimeConfig,c as useServerRuntimeConfig,d as useRuntimeConfig,f as runtimeConfigTag,e as resolveRuntimeConfig,g as injectRuntimeConfig,b as currentRuntimeConfig};
2
+ import{Jt as a,Kt as b,Lt as c,Mt as d,Nt as e,Ot as f,Pt as g}from"./chunk-k6bagvmz.js";import"./chunk-myyj9qp3.js";export{a as withRuntimeConfig,c as useServerRuntimeConfig,d as useRuntimeConfig,f as runtimeConfigTag,e as resolveRuntimeConfig,g as injectRuntimeConfig,b as currentRuntimeConfig};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ki as O,Li as w,Mi as Z}from"./chunk-ra1s4s6b.js";import{_k as R,fl as U,ll as T}from"./chunk-y062nrhj.js";import{bm as M,fq as k,xr as C,zo as W}from"./chunk-60cttsne.js";import{vv as E,wv as L}from"./chunk-ta6z7k4p.js";import{Av as B}from"./chunk-7racewc5.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
2
+ import{Ki as O,Li as w,Mi as Z}from"./chunk-ra1s4s6b.js";import{_k as R,fl as U,ll as T}from"./chunk-x3e2wvk5.js";import{Ao as W,bm as M,gq as k,yr as C}from"./chunk-0vgw4496.js";import{wv as E,xv as L}from"./chunk-s3tpyage.js";import{Bv as B}from"./chunk-x8t29tnr.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
3
  ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
4
 
5
5
  `),x=`;(function(){
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{oj as o,pj as p,qj as q}from"./chunk-kaf0x9rk.js";import{Aj as e,Bj as f,Cj as g,Dj as h,Ej as i,Fj as j,Gj as k,Hj as l,Ij as m,Jj as n,wj as a,xj as b,yj as c,zj as d}from"./chunk-y32dbdta.js";import"./chunk-7racewc5.js";import"./chunk-m8kem5ca.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
2
+ import{oj as o,pj as p,qj as q}from"./chunk-68vgysme.js";import{Aj as e,Bj as f,Cj as g,Dj as h,Ej as i,Fj as j,Gj as k,Hj as l,Ij as m,Jj as n,wj as a,xj as b,yj as c,zj as d}from"./chunk-y32dbdta.js";import"./chunk-x8t29tnr.js";import"./chunk-myyj9qp3.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{At as d,Bt as e,Ct as f,Dt as g,Et as h,Ft as i,ut as a,yt as b,zt as c}from"./chunk-kd95t585.js";import"./chunk-m8kem5ca.js";export{a as webpHeaderHasAlpha,g as snapshotImageDelivery,b as setImageEncoderIdentity,i as prepareImageDelivery,e as isTransparentImage,h as installImageDelivery,c as imageEncoderIdentity,d as getImageDelivery,f as clearImageDeliveryCatalog};
2
+ import{At as c,Bt as d,Ct as e,Dt as f,Et as g,Ft as h,Gt as i,vt as a,zt as b}from"./chunk-sjpjge04.js";import"./chunk-myyj9qp3.js";export{a as webpHeaderHasAlpha,g as snapshotImageDelivery,b as setImageEncoderIdentity,i as prepareImageDelivery,e as isTransparentImage,h as installImageDelivery,c as imageEncoderIdentity,d as getImageDelivery,f as clearImageDeliveryCatalog};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{xg as I}from"./chunk-0knxnyq6.js";import{xr as H}from"./chunk-60cttsne.js";import{Sw as G}from"./chunk-m8kem5ca.js";import L from"path";async function Q(k={}){let J=performance.now(),A=k.root||process.cwd(),j=await H(A),B=k.ssr?.routeRules??j.routeRules??{};if(I(B),!j.ssr&&Object.keys(B).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!j.ssr&&(k.ssr?.serverApi??j.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let D,E;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");D=await z({pagesDir:L.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-njqp8xdd.js");E=await z({root:A,outputDir:".output",debug:k.debug,...k.ssr})}let K=Math.round(performance.now()-J);return{mode:q,ssg:D,ssr:E,duration:K}}
2
+ import{xg as I}from"./chunk-0knxnyq6.js";import{yr as H}from"./chunk-0vgw4496.js";import{Tw as G}from"./chunk-myyj9qp3.js";import L from"path";async function Q(k={}){let J=performance.now(),A=k.root||process.cwd(),j=await H(A),B=k.ssr?.routeRules??j.routeRules??{};if(I(B),!j.ssr&&Object.keys(B).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!j.ssr&&(k.ssr?.serverApi??j.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let D,E;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");D=await z({pagesDir:L.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-akvf7pgp.js");E=await z({root:A,outputDir:".output",debug:k.debug,...k.ssr})}let K=Math.round(performance.now()-J);return{mode:q,ssg:D,ssr:E,duration:K}}
3
3
  export{Q as Ve};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{ul as G}from"./chunk-qjvny3wf.js";import{nq as U,rq as B}from"./chunk-60cttsne.js";import{Ls as O}from"./chunk-sxzdtsqe.js";import{st as L}from"./chunk-w1asc0zd.js";import{Sw as y}from"./chunk-m8kem5ca.js";import X from"fs";import Z from"path";var H=new Map,$=new Map;async function p(j){let J;for(let V=0;V<3;V++)try{let q=(await X.promises.stat(j)).mtime.getTime(),W=$.get(j);if(W&&W.mtime===q)return W.content;let I=await Bun.file(j).text(),T=(await X.promises.stat(j)).mtime.getTime();if(T!==q)continue;return $.set(j,{content:I,mtime:T}),I}catch(Q){J=Q;break}throw $.delete(j),Error(`File not found: ${j}${J?` (${J.message})`:""}`)}function m(j){$.delete(j)}function f(j){for(let z of $.keys())if(z.startsWith(j))$.delete(z)}var M=null,v=null,b=null;function r(j){b=j}async function k(j=!1){let z=b??await import("./chunk-d5r2cqkg.js");if(j)return z.generateSignalsRuntimeDev();if(M===null)M=z.generateSignalsRuntime();return M}var N=null;async function R(){if(N===null){let{getRouterScript:j}=await import("./chunk-skqqb8s4.js");N=j()}return N}var x={};async function d(j,z=!1){let J=j==="runtime"?await k(z):await R(),V=j==="runtime"&&z?"runtime-debug":j,Q=x[V];if(!Q||Q.content!==J)Q={content:J,hash:Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)},x[V]=Q;return{content:J,hash:Q.hash,url:`/_stx/${j}.${Q.hash}.js`}}var E=500,Y=new Map;function w(j){return L(process.cwd(),"module-bundles",`${j}.js`)}function c(j){let z=Bun.hash(j).toString(16).padStart(16,"0").slice(0,16),J=Y.has(z);if(J)Y.delete(z);Y.set(z,j);while(Y.size>E)Y.delete(Y.keys().next().value);if(!J)try{let V=w(z);if(!X.existsSync(V))X.mkdirSync(Z.dirname(V),{recursive:!0}),X.writeFileSync(V,j)}catch{}return`/_stx/modules.${z}.js`}function l(j){if(!/^[0-9a-f]{16}$/.test(j))return;let z=Y.get(j);if(z!==void 0)return z;try{return X.readFileSync(w(j),"utf8")}catch{return}}function o(){$.clear(),B(),O(),M=null,v=null,N=null}function A(j){let z={debug:j.debug===!0,middleware:(j.middleware??[]).map((J)=>({name:J.name,timing:J.timing,handler:String(J.handler)})),customDirectives:(j.customDirectives??[]).map((J)=>({name:J.name,hasEndTag:J.hasEndTag===!0,rawParams:J.rawParams===!0,handler:String(J.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(z)).digest("hex")}async function s(j,z){try{if(!z.cachePath)return null;let J=Z.resolve(z.cachePath),V=Z.join(J,`${D(j)}.html`),Q=Z.join(J,`${D(j)}.meta.json`);if(!await U(V)||!await U(Q))return null;let q=await Bun.file(Q).text(),W=JSON.parse(q);if(W.cacheVersion!==z.cacheVersion)return null;if(W.engine!==G())return null;if(W.optionsSignature!==A(z))return null;if((await X.promises.stat(j)).mtime.getTime()>W.mtime)return null;for(let K of W.dependencies)if(await U(K)){if((await X.promises.stat(K)).mtime.getTime()>W.mtime)return null}else return null;return await Bun.file(V).text()}catch(J){return console.warn(`Cache error for ${j}:`,J),null}}async function n(j,z,J,V){try{if(!V.cachePath)return;let Q=Z.resolve(V.cachePath);await X.promises.mkdir(Q,{recursive:!0});let q=Z.join(Q,`${D(j)}.html`),W=Z.join(Q,`${D(j)}.meta.json`),I=await X.promises.stat(j);await Bun.write(q,z);let K={sourcePath:j,mtime:I.mtime.getTime(),dependencies:Array.from(J),cacheVersion:V.cacheVersion,engine:G(),optionsSignature:A(V),generatedAt:Date.now()};await Bun.write(W,JSON.stringify(K,null,2)),H.set(j,{output:z,mtime:I.mtime.getTime(),dependencies:J})}catch(Q){console.warn(`Failed to cache template ${j}:`,Q)}}var F=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,F)}
2
+ import{ul as G}from"./chunk-qjvny3wf.js";import{oq as U,sq as B}from"./chunk-0vgw4496.js";import{Ms as O}from"./chunk-ds9hax17.js";import{tt as L}from"./chunk-2zbmyvqc.js";import{Tw as y}from"./chunk-myyj9qp3.js";import X from"fs";import Z from"path";var H=new Map,$=new Map;async function p(j){let J;for(let V=0;V<3;V++)try{let q=(await X.promises.stat(j)).mtime.getTime(),W=$.get(j);if(W&&W.mtime===q)return W.content;let I=await Bun.file(j).text(),T=(await X.promises.stat(j)).mtime.getTime();if(T!==q)continue;return $.set(j,{content:I,mtime:T}),I}catch(Q){J=Q;break}throw $.delete(j),Error(`File not found: ${j}${J?` (${J.message})`:""}`)}function m(j){$.delete(j)}function f(j){for(let z of $.keys())if(z.startsWith(j))$.delete(z)}var M=null,v=null,b=null;function r(j){b=j}async function k(j=!1){let z=b??await import("./chunk-ykyecpyx.js");if(j)return z.generateSignalsRuntimeDev();if(M===null)M=z.generateSignalsRuntime();return M}var N=null;async function R(){if(N===null){let{getRouterScript:j}=await import("./chunk-n0qssshb.js");N=j()}return N}var x={};async function d(j,z=!1){let J=j==="runtime"?await k(z):await R(),V=j==="runtime"&&z?"runtime-debug":j,Q=x[V];if(!Q||Q.content!==J)Q={content:J,hash:Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)},x[V]=Q;return{content:J,hash:Q.hash,url:`/_stx/${j}.${Q.hash}.js`}}var E=500,Y=new Map;function w(j){return L(process.cwd(),"module-bundles",`${j}.js`)}function c(j){let z=Bun.hash(j).toString(16).padStart(16,"0").slice(0,16),J=Y.has(z);if(J)Y.delete(z);Y.set(z,j);while(Y.size>E)Y.delete(Y.keys().next().value);if(!J)try{let V=w(z);if(!X.existsSync(V))X.mkdirSync(Z.dirname(V),{recursive:!0}),X.writeFileSync(V,j)}catch{}return`/_stx/modules.${z}.js`}function l(j){if(!/^[0-9a-f]{16}$/.test(j))return;let z=Y.get(j);if(z!==void 0)return z;try{return X.readFileSync(w(j),"utf8")}catch{return}}function o(){$.clear(),B(),O(),M=null,v=null,N=null}function A(j){let z={debug:j.debug===!0,middleware:(j.middleware??[]).map((J)=>({name:J.name,timing:J.timing,handler:String(J.handler)})),customDirectives:(j.customDirectives??[]).map((J)=>({name:J.name,hasEndTag:J.hasEndTag===!0,rawParams:J.rawParams===!0,handler:String(J.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(z)).digest("hex")}async function s(j,z){try{if(!z.cachePath)return null;let J=Z.resolve(z.cachePath),V=Z.join(J,`${D(j)}.html`),Q=Z.join(J,`${D(j)}.meta.json`);if(!await U(V)||!await U(Q))return null;let q=await Bun.file(Q).text(),W=JSON.parse(q);if(W.cacheVersion!==z.cacheVersion)return null;if(W.engine!==G())return null;if(W.optionsSignature!==A(z))return null;if((await X.promises.stat(j)).mtime.getTime()>W.mtime)return null;for(let K of W.dependencies)if(await U(K)){if((await X.promises.stat(K)).mtime.getTime()>W.mtime)return null}else return null;return await Bun.file(V).text()}catch(J){return console.warn(`Cache error for ${j}:`,J),null}}async function n(j,z,J,V){try{if(!V.cachePath)return;let Q=Z.resolve(V.cachePath);await X.promises.mkdir(Q,{recursive:!0});let q=Z.join(Q,`${D(j)}.html`),W=Z.join(Q,`${D(j)}.meta.json`),I=await X.promises.stat(j);await Bun.write(q,z);let K={sourcePath:j,mtime:I.mtime.getTime(),dependencies:Array.from(J),cacheVersion:V.cacheVersion,engine:G(),optionsSignature:A(V),generatedAt:Date.now()};await Bun.write(W,JSON.stringify(K,null,2)),H.set(j,{output:z,mtime:I.mtime.getTime(),dependencies:J})}catch(Q){console.warn(`Failed to cache template ${j}:`,Q)}}var F=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,F)}
3
3
  export{H as Kj,p as Lj,m as Mj,f as Nj,r as Oj,k as Pj,R as Qj,d as Rj,c as Sj,l as Tj,o as Uj,s as Vj,n as Wj,D as Xj};