@stacksjs/stx 0.2.347 → 0.2.349

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 (62) hide show
  1. package/dist/{chunk-hpr2sdfc.js → chunk-06z1p3xc.js} +1 -1
  2. package/dist/{chunk-qrhbqzz0.js → chunk-08ttrtrb.js} +1 -1
  3. package/dist/{chunk-8b8jwbne.js → chunk-0hd9jjwa.js} +2 -2
  4. package/dist/{chunk-jxg9vnsy.js → chunk-0kc5wcte.js} +1 -1
  5. package/dist/{chunk-8753m7f0.js → chunk-0r4fdx1n.js} +1 -1
  6. package/dist/{chunk-1vtd57x6.js → chunk-10x7762t.js} +1 -1
  7. package/dist/{chunk-h2sbvyr4.js → chunk-2p24mhh0.js} +240 -240
  8. package/dist/{chunk-5d3f7rth.js → chunk-2rbxt8c1.js} +1 -1
  9. package/dist/{chunk-xvr9enmb.js → chunk-36ezyyy7.js} +1 -1
  10. package/dist/{chunk-zrbhpfda.js → chunk-3r5ffd2j.js} +1 -1
  11. package/dist/{chunk-tg56j4ka.js → chunk-49srwy92.js} +1 -1
  12. package/dist/{chunk-6h8t40zg.js → chunk-4c93nvse.js} +1 -1
  13. package/dist/{chunk-y8g8neeh.js → chunk-4mqf3953.js} +1 -1
  14. package/dist/{chunk-632jxm61.js → chunk-88ykfje8.js} +1 -1
  15. package/dist/{chunk-0vdng9sh.js → chunk-8vw9t1rb.js} +1 -1
  16. package/dist/{chunk-mph46gkj.js → chunk-9kmhwbwy.js} +12 -10
  17. package/dist/{chunk-gkr35yjh.js → chunk-a8vk0247.js} +1 -1
  18. package/dist/{chunk-ns38fhve.js → chunk-bdpz4kcm.js} +1 -1
  19. package/dist/{chunk-1kwtdq06.js → chunk-d57bx64k.js} +1 -1
  20. package/dist/{chunk-fbs0x8r3.js → chunk-dbnx08t3.js} +1 -1
  21. package/dist/{chunk-wjaqhspq.js → chunk-df2v7ydz.js} +1 -1
  22. package/dist/{chunk-yr634wtd.js → chunk-f0bkc8wa.js} +1 -1
  23. package/dist/{chunk-3phs970s.js → chunk-fwyct6pa.js} +1 -1
  24. package/dist/{chunk-fqp4b8k4.js → chunk-hcfapncb.js} +1 -1
  25. package/dist/{chunk-w7vyd0n0.js → chunk-hfwcyt8k.js} +1 -1
  26. package/dist/{chunk-tshyy2br.js → chunk-hv9rk4aj.js} +1 -1
  27. package/dist/{chunk-h8apy0k1.js → chunk-hzqspbmh.js} +1 -1
  28. package/dist/{chunk-rv28743b.js → chunk-ja44k98d.js} +1 -1
  29. package/dist/{chunk-e9sk8fqy.js → chunk-k7d9txvv.js} +1 -1
  30. package/dist/chunk-kkmk6j16.js +32 -0
  31. package/dist/{chunk-vxk12k35.js → chunk-m0ra1wx6.js} +1 -1
  32. package/dist/{chunk-4k8rebtb.js → chunk-m61knfax.js} +1 -1
  33. package/dist/{chunk-q018c92j.js → chunk-mbxqxxvs.js} +1 -1
  34. package/dist/{chunk-s2rc73vk.js → chunk-mnf1768h.js} +1 -1
  35. package/dist/{chunk-8cd3ws01.js → chunk-n1g06e1q.js} +1 -1
  36. package/dist/{chunk-dmpexr7d.js → chunk-nvn0thed.js} +1 -1
  37. package/dist/{chunk-e6zk6ntt.js → chunk-rcve4mba.js} +1 -1
  38. package/dist/{chunk-1zjh3d0f.js → chunk-v7zn3jae.js} +1 -1
  39. package/dist/{chunk-6be9r0tz.js → chunk-v9a4frbr.js} +1 -1
  40. package/dist/{chunk-9rc9gshn.js → chunk-vgd2k0pf.js} +1 -1
  41. package/dist/{chunk-4fcvaazx.js → chunk-vx67nhhf.js} +2 -2
  42. package/dist/{chunk-rd02ysw3.js → chunk-wcv1372a.js} +1 -1
  43. package/dist/{chunk-nqqknczy.js → chunk-xqgq5jzt.js} +2 -2
  44. package/dist/{chunk-16kfapt5.js → chunk-y4bvr3kq.js} +1 -1
  45. package/dist/{chunk-st8wkk98.js → chunk-yevadf67.js} +1 -1
  46. package/dist/{chunk-0573wv97.js → chunk-zhm2kje7.js} +8 -8
  47. package/dist/{chunk-xy99vzs2.js → chunk-zm0cww6x.js} +1 -1
  48. package/dist/{chunk-adevnpdw.js → chunk-zxdrtn9n.js} +1 -1
  49. package/dist/{chunk-24rhp7ye.js → chunk-zyhxe7vp.js} +1 -1
  50. package/dist/cli.js +7 -7
  51. package/dist/craft-entry.js +1 -1
  52. package/dist/craft.js +1 -1
  53. package/dist/dev-server/ts-css.js +25 -20
  54. package/dist/error-boundaries.d.ts +2 -13
  55. package/dist/error-boundaries.js +14 -6
  56. package/dist/process.js +2 -1
  57. package/dist/pwa.js +1 -1
  58. package/dist/ssg.js +2 -2
  59. package/dist/stx-virtual-ts.js +11 -1
  60. package/dist/utils.js +11 -2
  61. package/package.json +5 -5
  62. package/dist/chunk-gnb15a8d.js +0 -32
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as jm,$a as mo,$b as wp,$c as wq,$d as wr,A as Vk,Aa as xn,Ab as Ro,Ac as Xp,Ad as Xq,Ae as bs,B as Wk,Ba as yn,Bb as So,Bc as Yp,Bd as Yq,Be as cs,C as Xk,Ca as Ln,Cb as To,Cc as Zp,Cd as Zq,Ce as ds,D as Yk,Da as Mn,Db as Uo,Dc as _p,Dd as _q,De as es,E as Ol,Ea as Nn,Eb as Vo,Ec as $p,Ed as $q,Ee as fs,F as Pl,Fa as On,Fb as Wo,Fc as aq,Fd as ar,Fe as gs,G as Ql,Ga as Pn,Gb as Xo,Gc as bq,Gd as br,Ge as hs,H as Rl,Ha as Qn,Hb as Yo,Hc as cq,Hd as cr,He as is,I as Sl,Ia as Un,Ib as Zo,Ic as dq,Id as dr,Ie as js,J as Tl,Ja as Vn,Jb as _o,Jc as eq,Jd as er,Je as ks,K as Ul,Ka as Wn,Kb as $o,Kc as fq,Kd as fr,Ke as ls,L as Vl,La as Xn,Lb as ap,Lc as gq,Ld as gr,M as Wl,Ma as Yn,Mb as bp,Mc as hq,Md as hr,N as Xl,Na as Zn,Nb as ip,Nc as iq,Nd as ir,O as Yl,Oa as _n,Ob as jp,Oc as jq,Od as jr,P as Zl,Pa as $n,Pb as kp,Pc as kq,Pd as kr,Q as _l,Qa as ao,Qb as lp,Qc as lq,Qd as lr,R as $l,Ra as bo,Rb as mp,Rc as mq,Rd as mr,S as am,Sa as co,Sb as np,Sc as nq,Sd as nr,T as bm,Ta as eo,Tb as op,Tc as oq,Td as or,U as cm,Ua as fo,Ub as pp,Uc as pq,Ud as pr,V as dm,Va as go,Vb as qp,Vc as qq,Vd as qr,W as em,Wa as ho,Wb as rp,Wc as rq,Wd as rr,X as fm,Xa as io,Xb as sp,Xc as sq,Xd as sr,Y as gm,Ya as jo,Yb as tp,Yc as tq,Yd as tr,Z as hm,Za as ko,Zb as up,Zc as uq,Zd as ur,_ as im,_a as lo,_b as vp,_c as vq,_d as vr,aa as km,ab as no,ac as xp,ad as xq,ae as xr,ba as lm,bb as oo,bc as yp,bd as yq,be as Er,ca as mm,cb as po,cc as zp,cd as zq,ce as Fr,da as nm,db as qo,dc as Ap,dd as Aq,de as Gr,ea as om,eb as ro,ec as Bp,ed as Bq,ee as Hr,fa as pm,fb as so,fc as Cp,fd as Cq,fe as Ir,ga as qm,gb as to,gc as Dp,gd as Dq,ge as Jr,ha as rm,hb as uo,hc as Ep,hd as Eq,he as Kr,ia as sm,ib as vo,ic as Fp,id as Fq,ie as Lr,ja as tm,jb as wo,jc as Gp,jd as Gq,je as Mr,ka as um,kb as xo,kc as Hp,kd as Hq,ke as Nr,la as vm,lb as yo,lc as Ip,ld as Iq,le as Or,ma as wm,mb as zo,mc as Jp,md as Jq,me as Pr,na as xm,nb as Co,nc as Kp,nd as Kq,ne as Qr,o as a,oa as ym,ob as Do,oc as Lp,od as Lq,oe as Rr,p as Gk,pa as mn,pb as Eo,pc as Mp,pd as Mq,pe as Sr,q as Hk,qa as nn,qb as Fo,qc as Np,qd as Nq,qe as Tr,r as Ik,ra as on,rb as Ho,rc as Op,rd as Oq,re as Ur,s as Jk,sa as pn,sb as Io,sc as Pp,sd as Pq,se as Vr,t as Kk,ta as qn,tb as Jo,tc as Qp,td as Qq,te as Wr,u as Lk,ua as rn,ub as Ko,uc as Rp,ud as Rq,ue as Xr,v as Mk,va as sn,vb as Mo,vc as Sp,vd as Sq,ve as Yr,w as Nk,wa as tn,wb as No,wc as Tp,wd as Tq,we as Zr,x as Ok,xa as un,xb as Oo,xc as Up,xd as Uq,xe as _r,y as Tk,ya as vn,yb as Po,yc as Vp,yd as Vq,ye as $r,z as Uk,za as wn,zb as Qo,zc as Wp,zd as Wq,ze as as}from"./chunk-0573wv97.js";import{Le as cp,Me as dp,Ne as ep,Oe as fp,Pe as gp,Qe as hp}from"./chunk-1vtd57x6.js";import{Re as Ao,Se as Bo}from"./chunk-2ver2s2y.js";import{Te as Go}from"./chunk-6be9r0tz.js";import{Ue as ln}from"./chunk-e6zk6ntt.js";import{Ve as Rn,We as Sn,Xe as Tn,Ye as Lo}from"./chunk-4k8rebtb.js";import{$e as $k,Ze as Zk,_e as _k,af as al,bf as bl,cf as cl,df as dl,ef as el,ff as fl,gf as gl,hf as hl,if as il,jf as jl,kf as kl,lf as ll}from"./chunk-ym3r8ktq.js";import{mf as Cl,nf as Dl,of as El,pf as Fl,qf as Gl,rf as Hl,sf as Il,tf as Jl,uf as Kl,vf as Ll,wf as Ml,xf as Nl}from"./chunk-msywnv5n.js";import{yf as Al,zf as Bl}from"./chunk-b5hank5e.js";import{Af as ml,Bf as nl,Cf as ol,Df as pl,Ef as ql,Ff as rl,Gf as sl,If as tl,Jf as ul,Kf as vl,Lf as wl,Mf as xl,Nf as yl,Qf as zl}from"./chunk-7qp3zphs.js";import{Rf as Vm,Sf as Wm,Tf as Xm,Uf as Ym,Vf as Zm,Wf as kn}from"./chunk-zrbhpfda.js";import{$f as Dm,Xf as zm,Yf as Am,Zf as Bm,_f as Cm,ag as Em,bg as Fm,cg as Gm,dg as Hm,eg as Im,fg as Jm,gg as Km,hg as Lm,ig as Mm,jg as Nm,kg as Om,lg as _m,mg as $m,ng as an,og as bn,pg as cn,qg as dn,rg as en,sg as fn,tg as gn,ug as hn,vg as jn}from"./chunk-8b8jwbne.js";import{wg as Pm,xg as Qm}from"./chunk-57atgbyq.js";import{Ag as Bn,Bg as Cn,Cg as Dn,Dg as En,Eg as Fn,Fg as Gn,Gg as Hn,Hg as In,Ig as Jn,Jg as Kn,yg as zn,zg as An}from"./chunk-8bxtvsgm.js";import{Kg as pi,Lg as qi,Mg as ri,Ng as si,Og as ti,Pg as ui}from"./chunk-st8wkk98.js";import{Qg as Kj,Rg as Lj,Sg as Mj,Wg as Nj,Xg as Oj,Yg as Pj}from"./chunk-rwwfzkz4.js";import{$g as Xj,Zg as Vj,_g as Wj,ah as Yj,bh as Zj,ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk}from"./chunk-7h9fajgs.js";import{ih as Aj,jh as Bj,kh as Cj,lh as Dj,mh as Ej,oh as Fj,ph as Gj,qh as Hj,rh as Ij,sh as Jj}from"./chunk-18018jkn.js";import{th as vk,vh as wk}from"./chunk-sqvqwd0p.js";import{Bh as Kh,Ch as Lh,Dh as Mh,Eh as Nh,Fh as Oh,Gh as Ph}from"./chunk-7r9vgzg4.js";import{Ih as Qh,Jh as Rh,Kh as Sh,Lh as Th,Mh as Uh,Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi}from"./chunk-a959m68j.js";import{Xh as ci,Yh as di,Zh as ei,_h as fi}from"./chunk-1vb2rj09.js";import{di as gi}from"./chunk-g6czgcg4.js";import{gi as jh}from"./chunk-vxk12k35.js";import{hi as kh}from"./chunk-1z1efvtw.js";import{ii as lh,ji as mh}from"./chunk-vgfd9582.js";import{ki as nh,li as oh,mi as ph,ni as qh,oi as rh,pi as sh}from"./chunk-qsbjtp60.js";import{qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-nf7k53ap.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-zk6ghjnj.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh,Fi as Ih,Gi as Jh}from"./chunk-bgrkxzr7.js";import{Hi as hh,Ii as ih}from"./chunk-5d3f7rth.js";import"./chunk-7we3xfde.js";import{Mi as Oe,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}from"./chunk-tg56j4ka.js";import{$i as sf,_i as rf,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}from"./chunk-8m0g0h4x.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,vj as cf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-e4g8wz6t.js";import{Jj as If,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}from"./chunk-tshyy2br.js";import{ok as yr,pk as zr,qk as Ar,rk as Br,sk as Cr,tk as Dr}from"./chunk-nqqknczy.js";import{Ak as Tm,Bk as Um,uk as Pk,vk as Qk,wk as Rk,xk as Sk,yk as Rm,zk as Sm}from"./chunk-p3p4d6g1.js";import"./chunk-c0n802j1.js";import"./chunk-0vdng9sh.js";import{ml as ec,nl as fc,rl as gc}from"./chunk-9rc9gshn.js";import{tl as bc}from"./chunk-fvsefztj.js";import{$l as Ub,$m as md,$n as Ie,$o as zg,$p as wi,$q as ek,Al as Da,Am as Fc,An as Rd,Ao as Xf,Ap as _g,Aq as ej,Bl as Ea,Bm as Gc,Bn as Sd,Bp as $g,Bq as fj,Cl as Fa,Cm as Hc,Cn as Td,Cp as ah,Cq as gj,Dl as Ga,Dm as Ic,Dn as Ud,Dp as bh,Dq as hj,El as Ha,Em as Jc,En as Vd,Ep as ch,Eq as ij,Fl as Ia,Fm as Kc,Fn as Wd,Fp as dh,Fq as jj,Gl as Ja,Gm as Lc,Gn as Xd,Gp as eh,Gq as kj,Hl as Ka,Hm as Mc,Hn as Yd,Ho as Yf,Hp as fh,Hq as lj,Il as La,Im as Nc,In as Zd,Ip as gh,Iq as mj,Jl as Ma,Jm as Oc,Jn as _d,Jo as Zf,Jp as hi,Jq as nj,Kl as Na,Km as Pc,Kn as $d,Kp as ii,Kq as oj,Ll as Oa,Lm as Zc,Ln as qe,Lo as _f,Lq as pj,Ml as ib,Mm as _c,Mn as re,Mo as $f,Mq as qj,Nl as jb,Nm as $c,Nn as se,No as ag,Np as ji,Nq as rj,Ol as kb,Om as ad,On as te,Oo as bg,Oq as sj,Pl as lb,Pm as bd,Pn as ue,Po as cg,Pq as tj,Ql as mb,Qm as cd,Qn as ve,Qo as og,Qq as uj,Rl as nb,Rm as dd,Rn as we,Ro as pg,Rq as vj,Sn as xe,So as qg,Sq as wj,Tm as ed,Tn as ye,To as rg,Tq as xj,Ul as Kb,Um as fd,Un as ze,Uo as sg,Uq as yj,Vl as Lb,Vm as gd,Vn as Ae,Vo as tg,Vp as ki,Vq as zj,Wl as Mb,Wm as hd,Wn as Be,Wo as ug,Wp as li,Wq as Qj,Xl as Nb,Xm as id,Xn as Ce,Xo as vg,Xp as mi,Xq as Rj,Yl as Ob,Ym as jd,Yn as De,Yo as wg,Yp as ni,Yq as Sj,Zl as Pb,Zm as kd,Zo as xg,Zp as oi,Zq as Tj,_l as Qb,_m as ld,_n as He,_o as yg,_p as vi,_q as Uj,am as Vb,an as nd,ao as Je,ap as Ag,aq as xi,ar as fk,bm as Wb,bn as od,bo as Ke,bp as Bg,bq as yi,br as gk,cm as hc,cn as pd,co as Le,cp as Cg,cq as zi,cr as hk,dm as ic,dn as ud,do as Me,dp as Dg,dq as Ai,dr as ik,em as jc,en as vd,eo as Ne,ep as Eg,eq as Bi,er as jk,fm as kc,fn as wd,fp as Fg,fq as Ci,fr as kk,gm as lc,gn as xd,gp as Gg,gq as Di,gr as lk,hm as mc,hn as yd,hp as Hg,hq as Ei,hr as mk,im as nc,in as zd,io as af,ip as Ig,iq as Fi,ir as nk,jm as oc,jn as Ad,jo as bf,jp as Jg,jq as Gi,jr as ok,km as pc,kn as Bd,kp as Kg,kq as Hi,kr as pk,lm as qc,ln as Cd,lo as Wf,lp as Lg,lq as Ii,lr as qk,mm as rc,mn as Dd,mp as Mg,mq as Ji,mr as rk,nm as sc,nn as Ed,np as Ng,nq as Ki,nr as sk,om as tc,on as Fd,op as Og,oq as Li,or as tk,pm as uc,pn as Gd,pp as Pg,pq as Mi,pr as uk,qm as vc,qn as Hd,qp as Qg,qq as Wi,qr as xk,rm as wc,rn as Id,rp as Rg,rq as Xi,rr as yk,sm as xc,sn as Jd,sp as Sg,sq as Yi,sr as zk,tm as yc,tn as Kd,tp as Tg,tq as Zi,tr as Ak,ul as xa,um as zc,un as Ld,up as Ug,uq as _i,ur as Bk,vl as ya,vm as Ac,vn as Md,vp as Vg,vq as $i,vr as Ck,wl as za,wm as Bc,wn as Nd,wp as Wg,wq as aj,wr as Dk,xl as Aa,xm as Cc,xn as Od,xp as Xg,xq as bj,xr as Ek,yl as Ba,ym as Dc,yn as Pd,yp as Yg,yq as cj,yr as Fk,zl as Ca,zm as Ec,zn as Qd,zp as Zg,zq as dj}from"./chunk-h2sbvyr4.js";import{$r as oa,Ar as N,Br as O,Cr as P,Dr as Q,Er as R,Fr as S,Gr as T,Hr as U,Ir as V,Jr as W,Kr as X,Lr as Y,Mr as Z,Nr as _,Or as $,Pr as aa,Qr as ba,Rr as ca,Sr as da,Tr as ea,Ur as fa,Vr as ia,Wr as ja,Xr as ka,Yr as la,Zr as ma,_r as na,as as pa,bs as qa,cs as ra,ds as sa,es as ta,fs as ua,gs as va,hs as wa,zr as M}from"./chunk-8y1ve8tc.js";import{is as ga,js as ha}from"./chunk-njx93b4z.js";import{ks as Rb,ls as Sb,ms as Tb}from"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import{As as Ui,Bs as Vi,ts as Ni,us as Oi,vs as Pi,ws as Qi,xs as Ri,ys as Si,zs as Ti}from"./chunk-xvh1k1a4.js";import{Ts as Qc,Us as Rc,Vs as Sc,Ws as Tc,Xs as Uc,Zs as Vc,gt as Wc,ht as Xc,it as Yc}from"./chunk-gnb15a8d.js";import{jt as Xb,kt as Yb,lt as Zb,mt as _b,nt as $b,ot as ac}from"./chunk-y2f41kaq.js";import{At as Ge,vt as Ee,xt as Fe}from"./chunk-xj6bcwqa.js";import"./chunk-qrhbqzz0.js";import{Ft as cc,Gt as dc}from"./chunk-vhta1be7.js";import{Kt as dg,Lt as eg,Mt as fg,Nt as gg,Ot as hg,Pt as ig,Qt as jg,St as kg,Tt as lg,Ut as mg,Vt as ng}from"./chunk-tc4pj651.js";import{Wt as qd,Xt as rd,Yt as sd,Zt as td,hu as ae,iu as be,ju as ce,ku as de,lu as ee,mu as fe,nu as ge,ou as he,pu as ie,qu as je,ru as ke,su as le,tu as me,uu as ne,vu as oe,wu as pe}from"./chunk-san1eq0r.js";import{$u as F,Au as e,Bu as f,Cu as g,Du as h,Eu as i,Fu as j,Gu as k,Hu as l,Iu as m,Ju as n,Ku as o,Lu as p,Mu as q,Nu as r,Ou as s,Pu as t,Qu as u,Ru as v,Su as w,Tu as x,Uu as y,Vu as z,Wu as A,Xu as B,Yu as C,Zu as D,_u as E,av as G,bv as H,cv as I,dv as J,ev as K,fv as L,xu as b,yu as c,zu as d}from"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import{Av as tb,Bv as ub,Cv as vb,Dv as wb,Ev as xb,Fv as yb,Gv as zb,Hv as Ab,Iv as Bb,Jv as Cb,Kv as Db,Lv as Eb,Mv as Fb,Nv as Gb,Ov as Hb,Pv as Ib,Qv as Jb,vv as ob,wv as pb,xv as qb,yv as rb,zv as sb}from"./chunk-72x62kch.js";import{Uv as Pa,Vv as Qa,Yv as Ra,bw as Sa,cw as Ta,iw as Ua,jw as Va,kw as Wa,lw as Xa,mw as Ya,nw as Za,ow as _a,pw as $a,qw as ab,rw as bb,sw as cb,tw as db,uw as eb,vw as fb,ww as gb,yw as hb}from"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{hl as writeNetlifyConfig,$m as writeManifest,Ml as writeImageManifest,rp as wrapComponentForHMR,_r as withDefaults,uk as webComponentDirectiveHandler,gq as watermark,ir as watchViews,Wl as watchMultiple,Xl as watchEffect,Vl as watch,Le as warmImagePlaceholders,im as waitForStore,X as waitForLocale,dp as virtualPathFor,hk as videoDirective,G as validators,cs as validated,Be as validateValueEnhanced,ki as validateTemplate,Pm as validateRouteRules,lq as validateParams,Ce as validateFormEnhanced,Zq as validateFile,xe as validateFields,we as validateField,mi as validateDirective,Wd as validateCspDirectives,Ck as validateConfig,nn as validateComponentScripts,Ln as validateComponentProps,gh as validateClientScript,fi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ai as userComponentFileExists,Nh as useVirtualList,ie as useTitle,hm as useStoreOrThrow,Jp as useStore,Tk as useStorage,zf as useSlots,Vk as useSessionStorage,cc as useServerRuntimeConfig,Xf as useServerData,fe as useSeoMeta,dc as useRuntimeConfig,jm as useRouteParams,lm as useRouteParamOrThrow,km as useRouteParam,ie as usePageTitle,qf as useOptimistic,Ef as useModel,nm as useMiddlewareValue,mm as useMiddlewareState,Uk as useLocalStorage,kp as useLoadingIndicator,de as useHead,ci as useForm,Bf as useAttrs,$q as uploadFiles,_q as uploadFile,em as updateInstance,of as untrack,Qi as unregisterDirective,fm as unmountInstance,Pc as unescapeHtml,gp as typecheckStxFiles,yi as transpileTypeScript,Nr as translate,Ba as transitionDirective,lc as transformAutoImports,Fn as toUsers,En as toUser,Rp as thumbnail,Sq as thumbHashToRGBA,Tq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,If as templateCache,md as syncRecordedResponse,op as stxClientHelpers,ig as structuredDataDirective,Qr as stripLocalePrefix,Mm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,qo as stringToStream,Kd as strictCspPreset,We as streamingSuspenseDirective,_e as streamToResponse,Ue as streamTemplateSimple,Oe as streamTemplate,Ok as stopHmrServer,Bn as stopBroadcasting,_b as stateDirName,$b as stateDir,cf as state,ah as startsDocument,Lo as startProductionServer,Go as startInteractive,An as startBroadcasting,Sr as stampLocaleLayoutGroup,Ia as staggerDirective,jq as srcsetUrls,Ja as springDirective,td as splitByPipe,Im as spaNavVaryHeaders,ep as sourcePathFor,qq as smartBatchSign,Ci as slotContentHasExpressions,oq as signUrl,wi as shouldTranspileTypeScript,Lk as shouldReloadOnChange,tq as shouldRefreshSignature,Mk as shouldIgnoreFile,Fh as shouldCacheComponent,Vp as sharpen,fs as shape,Zb as setStateDir,rm as setRouteParams,sm as setMiddlewareState,Ke as setImagePlaceholder,tf as setGlobalProvide,b as setErrorLocale,Ol as setCurrentInstance,Xj as setCachedVideoResult,Mj as setCachedImageResult,Gj as setCached,is as serveStxFile,ks as serveMultipleStxFiles,Gk as serveMarkdownFile,Wo as serveFile,ls as serveApp,Vo as serve,up as serializeState,bn as serializeSetCookie,Xp as sepia,ge as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,zi as scopeOnRootElement,lk as scopeHTML,kk as scopeCSS,lg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,$p as saturation,mq 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,wg as runPreProcessingMiddleware,xg as runPostProcessingMiddleware,en as runPageAction,jf as runMountCallbacks,gb as runMiddleware,cm as runHooks,Gr as runDoctor,kf as runDestroyCallbacks,Ag as runComposers,aq as rotate,gi as rewriteImagesWithSiblings,nd as responseBindings,Gi as resolveTemplatePath,ha as resolveStxTargets,yk as resolveStxDirectories,Mr as resolveI18n,Pp as resize,og as resetUnscopedSignalWarnings,Nc as resetRejectedExpressionWarnings,sc as resetPlaceholders,ce as resetHead,tp as resetHMRHandler,o as resetErrorConfig,as as required,bg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,gr as renderView,ek as renderVideoComponent,ic as renderVendorStyleTags,pr as renderToString,qr as renderToStream,rr as renderToDOM,Rq as renderThumbhashToCanvas,Dr as renderTemplateString,Br as renderTemplate,Cr as renderString,Re as renderStreamingPage,ri as renderSlot,vh as renderSSRSuspense,Bq as renderProtectedVideo,Aq as renderProtectedImg,nq as renderMediaUpload,Ar as renderMarkdownView,Tm as renderLayoutTypes,Qj as renderImgComponent,Cl as renderImageComponent,ke as renderHtmlAttrs,je as renderHead,jr as renderEmail,Ei as renderComponentWithSlot,le as renderBodyAttrs,Ep as render,Md as relaxedCspPreset,ve as registerValidationRule,Ye as registerStreamingDirectives,Lp as registerStoresClient,pm as registerStore,Qf as registerServeModuleBundle,jg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Ae as registerEnhancedValidationRule,Ni as registerDirective,Vd as registerCspDirectives,On as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Sl as ref,yo as redirect,id as recordResponseStatus,jd as recordResponseHeader,ac as rebaseOntoStateDir,kd as readResponseStatus,ld as readResponseHeaders,Ek as readMarkdownFile,Jf as readFileCached,Tl as reactive,eq as quality,yq as pruneSignatureCache,Jj as pruneCache,rf as provide,zr as protectCodeBlocks,$r as prop,Dg as processVueTemplate,Lh as processVirtualListDirectives,Ph as processVirtualGridDirectives,dk as processVideo,ye as processValidateDirective,ea as processTranslateDirective,ph as processTransitionDirectives,sh as processTransitionAttributes,oe as processTitleDirective,ad as processTemplateBindings,lh as processTeleportDirectives,th as processSuspenseDirectives,eg as processStructuredData,Se as processStreamDirectives,od as processStatusDirective,ai as processStaticDirectives,ug as processStackReplacements,tg as processStackPushDirectives,si as processSlots,Km as processShell,Ne as processServerBindings,fg as processSeoDirective,Ze as processSectionDirectives,Uc as processScopedStyles,_c as processReactiveBindings,Cq as processProtectedMedia,Vh as processPartialHydrationDirectives,fh as processOnceDirective,vg as processMiddleware,dg as processMetaDirectives,pe as processMetaDirective,Fk as processMarkdownFileDirectives,Li as processMarkdownDirectives,cg as processLoops,Dh as processKeepAliveDirectives,eh as processJsonDirective,Oh as processInfiniteListDirectives,sg as processIncludes,Sj as processImgComponents,El as processImageComponents,rl as processImage,ne as processHeadDirective,re as processForms,te as processFormInputDirectives,Lc as processExpressions,Pb as processEventDirectives,ue as processErrorDirective,Eg as processDynamicComponents,hi as processDirectives,Vi as processDirectiveAttributes,kh as processDeferDirectives,_d as processCustomDirectives,Sd as processCspDirectives,gs as processComponentProps,rc as processClientScript,se as processBasicFormDirectives,yh as processAsyncDirectives,$d as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ge as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,jp as preloadIslandHandlers,Me as preloadIconCollection,wn as poolStrings,wk as pluginManager,Ie as placeholdersWarmed,oh as performLeave,nh as performEnter,lf as pendingLifecycleCounts,pf as peek,pg as partialsCache,fk as parseVideoDirectiveOptions,Np as parseUrl,Uq as parseThumbhashString,zd as parseSwitchBlock,pi as parseSlots,qi as parseSlotElement,Ed as parseScriptDeclarations,sk as parseSFCComponent,Dq as parseProtectedArgs,ag as parseLoopBinding,Rj as parseImgComponent,hj as parseImageUrl,Dl as parseImageComponent,cn as parseFormBody,Bd as parseExpressionWithFilters,Pn as parseDefaults,vo as parseCookies,Bm as parseContainerSelector,wd as parseConditionalBlock,Cd as parseArguments,Ma as parseAnimationShorthand,bs as optional,xn as optimizeTemplate,Jl as optimizeImage,Kl as optimizeDirectory,ds as oneOf,qg as onceStore,$l as onUpdated,Zc as onUpdate,bm as onUnmounted,wm as onServer,Zl as onMounted,gf as onMount,$h as onHydrated,xf as onErrorCaptured,hf as onDestroy,Jh as onDeactivated,vm as onClient,_l as onBeforeUpdate,am as onBeforeUnmount,Yl as onBeforeMount,Ih as onActivated,Nq as observeElement,zo as notFound,Jg as normalizeCriticalHeadOrder,wf as nextTick,Sn as negotiateEncoding,Ua as navigateTo,dm as mountInstance,Ea as motionDirective,Ld as moderateCspPreset,vn as minifyHtml,hg as metaDirective,Ug as metaDedupKey,Op as mergeParams,Wg as mergeHtmlAttrs,ee as mergeHeadConfigs,Rc as mergeCssConfig,Pd as mergeCspDirectives,Ra as matchRoute,Mi as markdownDirectiveHandler,Dk as markdownCache,ga as looksLikeGlob,Pr as localizePath,U as loadTranslationLazy,_ as loadTranslation,zk as loadStxConfig,db as loadMiddlewareFromDirectory,an as loadManifest,Jq as loadElement,Cn as loadChannels,Lb as listensPassively,Wr as lintStxStrict,Lq as lazyLoadAll,Kq as lazyLoad,Ha as keyframeDirective,nr as jsxs,or as jsxDEV,mr as jsx,xo as jsonResponse,Xe as islandDirective,l as isTest,Nm as isSpaNavigation,Gm as isSpaNavRequest,rq as isSignatureValid,mf as isSignal,pl as isSharpAvailable,jo as isServerEnvironment,tm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Gq as isNativeLazySupported,yr as isMarkdownPath,Q as isLoading,R as isLoaded,vi as isJavaScriptScript,Hq as isIntersectionObserverSupported,xl as isImageFile,ql as isImageBackendAvailable,aa as isICUFormat,_h as isHydrated,Bi as isHydrateTrigger,gd as isHttpStatus,io as isEdgeEnvironment,Xr as isDirectiveKind,k as isDevelopment,nf as isDerived,Kk as isCssOnlyChange,Rn as isCompressible,um as isClient,Ah as isAsyncComponent,dn as isActionableMethod,Yp as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Kc as interpolateScriptsInTemplate,Ic as interpolateScriptExpressions,Jc as interpolateScriptAttributes,x as inlineError,Lr as injectThemeBootstrap,gg as injectSeoTags,Ir as injectSeo,Wf as injectRouterScript,Jk as injectHotReload,kb as injectHeatmap,Yc as injectCss,Qd as injectCspMetaTag,ch as injectConfigHeadTags,Ig as injectColorModeBootScript,Yg as injectCloakStyle,Pg as injectBuildId,kc as injectBrowserCoreAutoImports,cd as injectAnalytics,sf as inject,om as initStoreRegistry,kl as initNetlify,lp as initLoadingIndicator,Iq as initLazyLoading,Fo as initFile,Qq as initBlurUp,Wq as initAllBlurUp,Uj as imgDirective,Hl as imageDirective,hn as hydrateTemplateStream,gn as hydrateTemplate,ip as hydrateIslands,Xh as hydrateIsland,jn as hydrateFragment,Yh as hydrateByStrategy,Zh as hydrateAll,Bp as hydrate,Uo as htmlResponse,_g as hoistLeadingHeadTags,Kg as hoistColorModeBootScript,lb as heatmapDirective,Cj as hashString,Vf as hashFilePath,Aj as hashFile,Bj as hashBuffer,Cg as hasVueTemplateSyntax,$f as hasVariables,Gp as hasStore,xc as hasPlaceholders,il as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,bh as hasDocumentShell,ni as hasDirectives,ma as hasDOMSupport,Al as handleImageRequest,yf as handleError,vr as h,wl as groupVariantsByFormat,Wp as grayscale,No as gitHash,pn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,dl as getTotalSize,sq as getTimeUntilExpiry,hh as getStoreScript,Hp as getStoreNames,Fp as getStore,Yk as getStorageSize,Xk as getStorageKeys,Hi as getSourceLineInfo,xi as getSharedTranspiler,Rf as getServeModuleBundle,Pf as getServeClientAsset,la as getScreenReaderOnlyStyle,mk as getScopeAttribute,bf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,li as getPositionInfo,uc as getPlaceholderRegistry,zj as getPlaceholderCacheStats,be as getPageMeta,Gd as getNonce,yl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,He as getImagePlaceholder,sl as getImageMetadata,Ee as getImageDelivery,Ap as getHydrationRuntime,qm as getHydratedStoreState,Nk as getHmrServer,ae as getHead,sp as getHMRHandler,lj as getFormatExtension,Ej as getFileMtime,vl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Pi as getDirectives,Oi as getDirective,Pl as getCurrentInstance,Vc as getCssServeAsset,Od as getCspPreset,Xd as getCspHeaderName,Ki as getComponentCacheStats,Wj as getCachedVideoResult,wq as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,xj as getCachedPlaceholder,Lj as getCachedImageResult,Fj as getCached,Ij as getCacheStats,Ng as getBuildId,zn as getBroadcastServer,kj as getBestVariant,Bc as getAllFilters,_i as generateWidthSrcset,Mh as generateVirtualListCSS,br as generateVideoPreview,De as generateValidationScript,cr as generateUploadRuntime,qn as generateTreeShakenBundle,rh as generateTransitionRuntime,qh as generateTransitionCSS,_j as generateThumbnails,qj as generateThumbhashPlaceholder,$n as generateTemplatesDocs,xh as generateSuspenseRuntime,wh as generateSuspenseCSS,vp as generateStateScript,ij as generateSrcsetData,Pj as generateSrcset,tl as generateSrcSet,$j as generateSpriteSheet,kr as generateSpaShell,jj as generateSourceTags,ej as generateSizesFromBreakpoints,dj as generateSizesAttribute,ul as generateSizes,kg as generateSitemapIndex,Jr as generateSitemap,Fq as generateSimpleMediaPicker,zq as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,qc as generateServerDataBridge,jk as generateScopeId,tk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,mg as generateRobotsTxt,Kr as generateRobots,Oj as generateResponsiveVariants,pk as generateReactiveWebComponentTS,ok as generateReactiveWebComponent,rk as generateReactiveRuntime,qk as generateReactiveMixin,Zj as generatePoster,wj as generatePlaceholderStyle,vj as generatePlaceholderCSS,pj as generatePlaceholder,Wh as generatePartialHydrationCSS,Fd as generateNonce,el as generateNetlifyToml,er as generateMinifiedMediaRuntime,dr as generateMediaRuntime,Eq as generateMediaManagerEmbed,_m as generateManifest,np as generateLoadingIndicatorHtml,Pq as generateLazyLoadRuntime,Um as generateLayoutTypes,sj as generateLQIP,Hh as generateKeepAliveRuntime,Gh as generateKeepAliveCSS,bi as generateIslandManifest,ar as generateImagePreview,Ll as generateImageManifest,zp as generateHydrationScript,$e as generateHydrationRuntime,Cp as generateHydrationCSS,Qh as generateHydrationBootstrap,Ik as generateHotReloadScript,jb as generateHeatmapScript,qp as generateHMRClientScript,ak as generateHLSManifest,wp as generateEventBindings,cj as generateDprSrcsetWithVariableQuality,bj as generateDprSrcset,$g as generateDocumentShell,fo as generateDocs,ao as generateDirectivesDocs,Ui as generateDirectiveRuntime,ng as generateDefaultRobotsTxt,bk as generateDASHManifest,Xc as generateCss,Jd as generateCspMetaTag,Id as generateCspHeader,Df as generateCompositionRuntime,_n as generateComponentsDocs,Rh as generateComponentManifest,Yn as generateComponentDoc,uj as generateColorPlaceholder,Hg as generateColorModeBootScript,gm as generateClientRuntime,Dj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,Xq as generateBlurUpRuntime,Yq as generateBlurUpCSS,$c as generateBindingsRuntime,$i as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Ch as generateAsyncComponentRuntime,Bh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,bd as generateAnalyticsScript,hp as formatTypecheckDiagnostics,bp as formatTypeErrors,Co as formatStxContent,cl as formatSize,Ta as formatRoutes,Do as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Hr as formatDoctorReport,bo as formatDocsAsMarkdown,eo as formatDocsAsJson,co as formatDocsAsHtml,dq as format,un as foldConstants,cq as flipVertical,bq as flipHorizontal,Vm as fingerprint,fp as findRuntimeTypeDeclarations,Fr as findPantryPackage,Dc as findMustacheEnd,vd as findMatchingEndTag,rd as findMatchingDelimiter,Rb as findInterpolationEnd,xd as findIfBlocks,Ad as findExpressions,Sa as findErrorPage,Sc as findDuplicateScopedStyleRanges,yd as findDirectiveBlocks,rn as findDeadCode,rn as findDeadBranches,Cm as findContainerRegion,Zn as findComponentFiles,js as findCommonDir,bl as filterRequiredFiles,Fi as fileExists,Yf as extractVariables,ji as extractTemplateExpressions,Te as extractStreamBoundaries,xp as extractState,ti as extractSlotContent,_f as extractScriptFromTemplate,ii as extractScriptBlocks,vc as extractPlaceholders,ud as extractParenthesizedExpression,hd as extractPageResponseStatus,hb as extractLayoutMetadata,tj as extractDominantColor,Dd as extractDirectiveParams,oi as extractDirectiveNames,Om as extractContainerContent,Wn as extractComponentProps,Sh as extractComponentName,Xn as extractComponentDescription,Wc as extractClassNames,pc as extractBridgeData,Th as extractBoundProps,sd as extractBalancedExpression,hc as extractAndStripCssImports,nk as extractAndScopeStyles,Ob as extractAndProcessEvents,Rk as externalizeSharedAssets,Sk as externalizeRepeatedAssets,Qk as externalizeHtml,Oc as evaluateExpression,tn as evaluateConstant,pd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,mh as ensureTeleportTargets,dh as ensureDocumentShell,ze as enhancedValidationRules,Un as enableDevTools,sn as eliminateDeadCode,ef as effect,kq as dprUrls,go as docsCommand,ec as discoverServerApi,Sm as discoverLayoutNames,Oq as disconnectObserver,Vn as disableDevTools,F as devHelpers,Jm as detectShell,ho as detectRuntime,fl as detectProjectConfig,mj as detectFormat,mn as detectBuildMode,df as derived,jl as deploy,Bk as defineStxConfig,Kp as defineStore,Af as defineSlots,Vr as defineSiteConfig,Zr as definePropsWithValidation,Yr as defineProps,vk as definePlugin,he as definePageMeta,Wa as defineMiddleware,di as defineForm,vf as defineExpose,uf as defineEmits,Ri as defineDirective,xr as defineCustomElement,Ko as defineConfig,Si as defineClientDirective,zh as defineAsyncComponent,Mo as defineApiHandler,fr as defaultMediaConfig,Nl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,qe as defaultFormClasses,yc as defaultFilters,Zd as defaultCspConfig,xk as defaultConfig,hs as default,Qc as deepMergeThemes,Tc as dedupeScopedStyles,Fm as decodeTitleEntities,rj as decodeThumbhash,Ud as cspNonceDirective,Td as cspDirective,Vq as crossfadeTransition,Qp as crop,Kh as createVirtualList,gk as createVideoDirective,to as createVercelHandler,_o as createTypeChecker,fa as createTranslateFilter,po as createTextEncoderStream,wr as createStxApp,oo as createStreamingResponse,Ve as createStreamRenderer,Ip as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Rl as createScope,uh as createSSRSuspense,af as createRouter,Qm as createRouteRuleResolver,eb as createRouteLocation,Yo as createRoute,Sl as createRef,Tl as createReactive,Cf as createProvideContext,Po as createProject,Jo as createProductionBuild,tc as createPlaceholder,yn as createOptimizedBuild,uo as createNetlifyHandler,Zk as createNetlifyClient,fb as createMiddlewareContext,Xo as createMiddleware,Mq as createLazyObserver,Eh as createKeepAliveCache,lo as createKVNamespace,Uh as createIslandRegistry,Tj as createImgDirective,Il as createImagePlugin,Bl as createImageHandler,Gl as createImageDirective,nb as createHeatmapAggregator,al as createFileManifest,ko as createEnvAccessor,z as createEnhancedError,no as createEdgeHandler,mo as createEdgeCache,Ii as createDetailedErrorMessage,so as createDenoHandler,gl as createDefaultNetlifyConfig,Yd as createCspHeaders,wo as createCookie,Ul as createComputed,Ql as createComponentInstance,ro as createCloudflareHandler,Ya as createClientCookieManager,Ti as createBuiltinDirectives,wr as createApp,Ka as createAnimationTimeline,Tp as cover,Zf as convertToCommonJS,_p as contrast,Sp as contain,y as consoleError,m as configureErrorHandling,Ak as config,Ul as computed,Tn as compressResponse,zg as composerPattern,yg as composer,Lm as composeShellWithPage,Nn as componentDirective,Di as componentClientSignalNames,Zm as compileTemplate,a as collectRepeatedFlag,$k as collectDeployFiles,Zg as cloakStyleFragment,Yj as clearVideoCache,N as clearTranslationCache,ih as clearStoreCache,Wk as clearStorage,xq as clearSignatureCache,Ff as clearServerData,yj as clearPlaceholderCache,rg as clearOnceStore,Hd as clearNonce,bb as clearMiddleware,Je as clearImagePlaceholders,Fe as clearImageDeliveryCatalog,Fl as clearImageCache,e as clearErrorMessages,Sf as clearDevCaches,Cc as clearCustomFilters,Bg as clearComposers,jh as clearComposableCache,Ji as clearComponentCache,Hj as clearCache,Ib as clearBlankCache,mp as cleanupLoadingIndicator,zm as classifyScript,Am as classifyAllScripts,$o as checkTemplateFile,ap as checkTemplate,Tf as checkCache,uq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,In as channel,Bo as captureScreenshots,Ao as captureScreenshot,Z as cancelPendingLoads,_k as calculateSha1,aj as calculateOptimalWidths,Uf as cacheTemplate,bc as cacheEngineFingerprint,ik as buildWebComponents,cp as buildVirtualSource,hr as buildViews,Mp as buildUrl,Pe as buildSuspenseResolveScript,Ur as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Wm as buildRuntimeAsset,Xm as buildRouterAsset,Tr as buildLangPickerScript,gj as buildImageUrl,Qg as buildIdFragment,Vg as buildHtmlAttrs,kn as buildForProduction,Qn as buildComponentLibrary,vq as buildAuthParams,ln as buildApp,Rr as buildAlternateLinks,Io as build,Gn as broadcastPrivate,Hn as broadcastPresence,Dn as broadcast,Zp as brightness,Tb as bracketDepths,Up as blur,Jb as blankInertHtmlRegions,pq as batchSignUrls,ff as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,fq as auto,ja as attributeValue,Ym as assetTags,Mb as asInvocableStatement,es as arrayOf,Or as applyTranslations,Nj as applyTransformations,ui as applySlots,Mn as applyPropDefaults,iq as applyPreset,Xg as applyHtmlAttrs,me as applyHead,Mc as applyFilters,Hm as appendVary,Nd as apiCspPreset,Da as animationGroupDirective,ck as analyzeVideo,on as analyzeUsage,xm as analyzeTemplate,ym as analyzeProject,on as analyzeDirectiveUsage,dd as analyticsDirective,So as addStore,Ro as addPage,Rd as addNonceToInlineContent,To as addLayout,Qo as addComponent,fn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Mf as __setSignalsGeneratorsForTest,Og as __setBuildIdForTest,Vj as VideoProcessorCache,ei as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,qd as Tokenizer,Zo as TemplateTypeChecker,Eo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,sr as Show,Qe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Dm 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,ed as RESPONSE_STATUS_KEY,fd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Ho as ProductionBuild,ur as Portal,Oo as PROJECT_TEMPLATES,hq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Dp as MemorySessionStore,Zi as MIME_TYPES,Wi as MEDIA_DEFAULT_WIDTHS,Yi as MEDIA_DEFAULT_FORMATS,Rm as LAYOUT_TYPES_FILE,Kj as ImageProcessorCache,zl as ImageProcessingError,yp as HydrationRuntime,Hk as HotReloadServer,mb as HeatmapAggregator,Tg as HTML_CLASS_MARKER,Sg as HTML_ATTRS_MARKER,lr as Fragment,tr as For,Em as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Pk as EXTERNALIZED_ASSET_DIR,ll as DeployError,ml as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ol as DEFAULT_QUALITY,nj as DEFAULT_PLACEHOLDER_OPTIONS,nl as DEFAULT_FORMATS,Xi as DEFAULT_DPR_VALUES,pp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,fj as COMMON_SIZES,Fg as COLOR_MODE_BOOT_MARKER,Gg as COLOR_MODE_BOOT_GLOBAL,Rg as CLOAK_STYLE,Kn as BroadcastServer,Jn as Broadcast,Lg as BUILD_ID_META,Mg as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,oj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Er as $path};
2
+ import{$ as jm,$a as mo,$b as wp,$c as wq,$d as wr,A as Vk,Aa as xn,Ab as Ro,Ac as Xp,Ad as Xq,Ae as bs,B as Wk,Ba as yn,Bb as So,Bc as Yp,Bd as Yq,Be as cs,C as Xk,Ca as Ln,Cb as To,Cc as Zp,Cd as Zq,Ce as ds,D as Yk,Da as Mn,Db as Uo,Dc as _p,Dd as _q,De as es,E as Ol,Ea as Nn,Eb as Vo,Ec as $p,Ed as $q,Ee as fs,F as Pl,Fa as On,Fb as Wo,Fc as aq,Fd as ar,Fe as gs,G as Ql,Ga as Pn,Gb as Xo,Gc as bq,Gd as br,Ge as hs,H as Rl,Ha as Qn,Hb as Yo,Hc as cq,Hd as cr,He as is,I as Sl,Ia as Un,Ib as Zo,Ic as dq,Id as dr,Ie as js,J as Tl,Ja as Vn,Jb as _o,Jc as eq,Jd as er,Je as ks,K as Ul,Ka as Wn,Kb as $o,Kc as fq,Kd as fr,Ke as ls,L as Vl,La as Xn,Lb as ap,Lc as gq,Ld as gr,M as Wl,Ma as Yn,Mb as bp,Mc as hq,Md as hr,N as Xl,Na as Zn,Nb as ip,Nc as iq,Nd as ir,O as Yl,Oa as _n,Ob as jp,Oc as jq,Od as jr,P as Zl,Pa as $n,Pb as kp,Pc as kq,Pd as kr,Q as _l,Qa as ao,Qb as lp,Qc as lq,Qd as lr,R as $l,Ra as bo,Rb as mp,Rc as mq,Rd as mr,S as am,Sa as co,Sb as np,Sc as nq,Sd as nr,T as bm,Ta as eo,Tb as op,Tc as oq,Td as or,U as cm,Ua as fo,Ub as pp,Uc as pq,Ud as pr,V as dm,Va as go,Vb as qp,Vc as qq,Vd as qr,W as em,Wa as ho,Wb as rp,Wc as rq,Wd as rr,X as fm,Xa as io,Xb as sp,Xc as sq,Xd as sr,Y as gm,Ya as jo,Yb as tp,Yc as tq,Yd as tr,Z as hm,Za as ko,Zb as up,Zc as uq,Zd as ur,_ as im,_a as lo,_b as vp,_c as vq,_d as vr,aa as km,ab as no,ac as xp,ad as xq,ae as xr,ba as lm,bb as oo,bc as yp,bd as yq,be as Er,ca as mm,cb as po,cc as zp,cd as zq,ce as Fr,da as nm,db as qo,dc as Ap,dd as Aq,de as Gr,ea as om,eb as ro,ec as Bp,ed as Bq,ee as Hr,fa as pm,fb as so,fc as Cp,fd as Cq,fe as Ir,ga as qm,gb as to,gc as Dp,gd as Dq,ge as Jr,ha as rm,hb as uo,hc as Ep,hd as Eq,he as Kr,ia as sm,ib as vo,ic as Fp,id as Fq,ie as Lr,ja as tm,jb as wo,jc as Gp,jd as Gq,je as Mr,ka as um,kb as xo,kc as Hp,kd as Hq,ke as Nr,la as vm,lb as yo,lc as Ip,ld as Iq,le as Or,ma as wm,mb as zo,mc as Jp,md as Jq,me as Pr,na as xm,nb as Co,nc as Kp,nd as Kq,ne as Qr,o as a,oa as ym,ob as Do,oc as Lp,od as Lq,oe as Rr,p as Gk,pa as mn,pb as Eo,pc as Mp,pd as Mq,pe as Sr,q as Hk,qa as nn,qb as Fo,qc as Np,qd as Nq,qe as Tr,r as Ik,ra as on,rb as Ho,rc as Op,rd as Oq,re as Ur,s as Jk,sa as pn,sb as Io,sc as Pp,sd as Pq,se as Vr,t as Kk,ta as qn,tb as Jo,tc as Qp,td as Qq,te as Wr,u as Lk,ua as rn,ub as Ko,uc as Rp,ud as Rq,ue as Xr,v as Mk,va as sn,vb as Mo,vc as Sp,vd as Sq,ve as Yr,w as Nk,wa as tn,wb as No,wc as Tp,wd as Tq,we as Zr,x as Ok,xa as un,xb as Oo,xc as Up,xd as Uq,xe as _r,y as Tk,ya as vn,yb as Po,yc as Vp,yd as Vq,ye as $r,z as Uk,za as wn,zb as Qo,zc as Wp,zd as Wq,ze as as}from"./chunk-zhm2kje7.js";import{Le as cp,Me as dp,Ne as ep,Oe as fp,Pe as gp,Qe as hp}from"./chunk-10x7762t.js";import{Re as Ao,Se as Bo}from"./chunk-2ver2s2y.js";import{Te as Go}from"./chunk-v9a4frbr.js";import{Ue as ln}from"./chunk-rcve4mba.js";import{Ve as Rn,We as Sn,Xe as Tn,Ye as Lo}from"./chunk-m61knfax.js";import{$e as $k,Ze as Zk,_e as _k,af as al,bf as bl,cf as cl,df as dl,ef as el,ff as fl,gf as gl,hf as hl,if as il,jf as jl,kf as kl,lf as ll}from"./chunk-ym3r8ktq.js";import{mf as Cl,nf as Dl,of as El,pf as Fl,qf as Gl,rf as Hl,sf as Il,tf as Jl,uf as Kl,vf as Ll,wf as Ml,xf as Nl}from"./chunk-msywnv5n.js";import{yf as Al,zf as Bl}from"./chunk-b5hank5e.js";import{Af as ml,Bf as nl,Cf as ol,Df as pl,Ef as ql,Ff as rl,Gf as sl,If as tl,Jf as ul,Kf as vl,Lf as wl,Mf as xl,Nf as yl,Qf as zl}from"./chunk-7qp3zphs.js";import{Rf as Vm,Sf as Wm,Tf as Xm,Uf as Ym,Vf as Zm,Wf as kn}from"./chunk-3r5ffd2j.js";import{$f as Dm,Xf as zm,Yf as Am,Zf as Bm,_f as Cm,ag as Em,bg as Fm,cg as Gm,dg as Hm,eg as Im,fg as Jm,gg as Km,hg as Lm,ig as Mm,jg as Nm,kg as Om,lg as _m,mg as $m,ng as an,og as bn,pg as cn,qg as dn,rg as en,sg as fn,tg as gn,ug as hn,vg as jn}from"./chunk-0hd9jjwa.js";import{wg as Pm,xg as Qm}from"./chunk-57atgbyq.js";import{Ag as Bn,Bg as Cn,Cg as Dn,Dg as En,Eg as Fn,Fg as Gn,Gg as Hn,Hg as In,Ig as Jn,Jg as Kn,yg as zn,zg as An}from"./chunk-8bxtvsgm.js";import{Kg as pi,Lg as qi,Mg as ri,Ng as si,Og as ti,Pg as ui}from"./chunk-yevadf67.js";import{Qg as Kj,Rg as Lj,Sg as Mj,Wg as Nj,Xg as Oj,Yg as Pj}from"./chunk-rwwfzkz4.js";import{$g as Xj,Zg as Vj,_g as Wj,ah as Yj,bh as Zj,ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk}from"./chunk-7h9fajgs.js";import{ih as Aj,jh as Bj,kh as Cj,lh as Dj,mh as Ej,oh as Fj,ph as Gj,qh as Hj,rh as Ij,sh as Jj}from"./chunk-18018jkn.js";import{th as vk,vh as wk}from"./chunk-sqvqwd0p.js";import{Bh as Kh,Ch as Lh,Dh as Mh,Eh as Nh,Fh as Oh,Gh as Ph}from"./chunk-7r9vgzg4.js";import{Ih as Qh,Jh as Rh,Kh as Sh,Lh as Th,Mh as Uh,Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi}from"./chunk-a959m68j.js";import{Xh as ci,Yh as di,Zh as ei,_h as fi}from"./chunk-1vb2rj09.js";import{di as gi}from"./chunk-g6czgcg4.js";import{gi as jh}from"./chunk-m0ra1wx6.js";import{hi as kh}from"./chunk-1z1efvtw.js";import{ii as lh,ji as mh}from"./chunk-vgfd9582.js";import{ki as nh,li as oh,mi as ph,ni as qh,oi as rh,pi as sh}from"./chunk-qsbjtp60.js";import{qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-nf7k53ap.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-zk6ghjnj.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh,Fi as Ih,Gi as Jh}from"./chunk-bgrkxzr7.js";import{Hi as hh,Ii as ih}from"./chunk-2rbxt8c1.js";import"./chunk-7we3xfde.js";import{Mi as Oe,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}from"./chunk-49srwy92.js";import{$i as sf,_i as rf,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}from"./chunk-8m0g0h4x.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,vj as cf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-e4g8wz6t.js";import{Jj as If,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}from"./chunk-hv9rk4aj.js";import{ok as yr,pk as zr,qk as Ar,rk as Br,sk as Cr,tk as Dr}from"./chunk-xqgq5jzt.js";import{Ak as Tm,Bk as Um,uk as Pk,vk as Qk,wk as Rk,xk as Sk,yk as Rm,zk as Sm}from"./chunk-p3p4d6g1.js";import"./chunk-c0n802j1.js";import"./chunk-8vw9t1rb.js";import{ml as ec,nl as fc,rl as gc}from"./chunk-vgd2k0pf.js";import{tl as bc}from"./chunk-fvsefztj.js";import{$l as Ub,$m as md,$n as Ie,$o as zg,$p as wi,$q as ek,Al as Da,Am as Fc,An as Rd,Ao as Xf,Ap as _g,Aq as ej,Bl as Ea,Bm as Gc,Bn as Sd,Bp as $g,Bq as fj,Cl as Fa,Cm as Hc,Cn as Td,Cp as ah,Cq as gj,Dl as Ga,Dm as Ic,Dn as Ud,Dp as bh,Dq as hj,El as Ha,Em as Jc,En as Vd,Ep as ch,Eq as ij,Fl as Ia,Fm as Kc,Fn as Wd,Fp as dh,Fq as jj,Gl as Ja,Gm as Lc,Gn as Xd,Gp as eh,Gq as kj,Hl as Ka,Hm as Mc,Hn as Yd,Ho as Yf,Hp as fh,Hq as lj,Il as La,Im as Nc,In as Zd,Ip as gh,Iq as mj,Jl as Ma,Jm as Oc,Jn as _d,Jo as Zf,Jp as hi,Jq as nj,Kl as Na,Km as Pc,Kn as $d,Kp as ii,Kq as oj,Ll as Oa,Lm as Zc,Ln as qe,Lo as _f,Lq as pj,Ml as ib,Mm as _c,Mn as re,Mo as $f,Mq as qj,Nl as jb,Nm as $c,Nn as se,No as ag,Np as ji,Nq as rj,Ol as kb,Om as ad,On as te,Oo as bg,Oq as sj,Pl as lb,Pm as bd,Pn as ue,Po as cg,Pq as tj,Ql as mb,Qm as cd,Qn as ve,Qo as og,Qq as uj,Rl as nb,Rm as dd,Rn as we,Ro as pg,Rq as vj,Sn as xe,So as qg,Sq as wj,Tm as ed,Tn as ye,To as rg,Tq as xj,Ul as Kb,Um as fd,Un as ze,Uo as sg,Uq as yj,Vl as Lb,Vm as gd,Vn as Ae,Vo as tg,Vp as ki,Vq as zj,Wl as Mb,Wm as hd,Wn as Be,Wo as ug,Wp as li,Wq as Qj,Xl as Nb,Xm as id,Xn as Ce,Xo as vg,Xp as mi,Xq as Rj,Yl as Ob,Ym as jd,Yn as De,Yo as wg,Yp as ni,Yq as Sj,Zl as Pb,Zm as kd,Zo as xg,Zp as oi,Zq as Tj,_l as Qb,_m as ld,_n as He,_o as yg,_p as vi,_q as Uj,am as Vb,an as nd,ao as Je,ap as Ag,aq as xi,ar as fk,bm as Wb,bn as od,bo as Ke,bp as Bg,bq as yi,br as gk,cm as hc,cn as pd,co as Le,cp as Cg,cq as zi,cr as hk,dm as ic,dn as ud,do as Me,dp as Dg,dq as Ai,dr as ik,em as jc,en as vd,eo as Ne,ep as Eg,eq as Bi,er as jk,fm as kc,fn as wd,fp as Fg,fq as Ci,fr as kk,gm as lc,gn as xd,gp as Gg,gq as Di,gr as lk,hm as mc,hn as yd,hp as Hg,hq as Ei,hr as mk,im as nc,in as zd,io as af,ip as Ig,iq as Fi,ir as nk,jm as oc,jn as Ad,jo as bf,jp as Jg,jq as Gi,jr as ok,km as pc,kn as Bd,kp as Kg,kq as Hi,kr as pk,lm as qc,ln as Cd,lo as Wf,lp as Lg,lq as Ii,lr as qk,mm as rc,mn as Dd,mp as Mg,mq as Ji,mr as rk,nm as sc,nn as Ed,np as Ng,nq as Ki,nr as sk,om as tc,on as Fd,op as Og,oq as Li,or as tk,pm as uc,pn as Gd,pp as Pg,pq as Mi,pr as uk,qm as vc,qn as Hd,qp as Qg,qq as Wi,qr as xk,rm as wc,rn as Id,rp as Rg,rq as Xi,rr as yk,sm as xc,sn as Jd,sp as Sg,sq as Yi,sr as zk,tm as yc,tn as Kd,tp as Tg,tq as Zi,tr as Ak,ul as xa,um as zc,un as Ld,up as Ug,uq as _i,ur as Bk,vl as ya,vm as Ac,vn as Md,vp as Vg,vq as $i,vr as Ck,wl as za,wm as Bc,wn as Nd,wp as Wg,wq as aj,wr as Dk,xl as Aa,xm as Cc,xn as Od,xp as Xg,xq as bj,xr as Ek,yl as Ba,ym as Dc,yn as Pd,yp as Yg,yq as cj,yr as Fk,zl as Ca,zm as Ec,zn as Qd,zp as Zg,zq as dj}from"./chunk-2p24mhh0.js";import{$r as oa,Ar as N,Br as O,Cr as P,Dr as Q,Er as R,Fr as S,Gr as T,Hr as U,Ir as V,Jr as W,Kr as X,Lr as Y,Mr as Z,Nr as _,Or as $,Pr as aa,Qr as ba,Rr as ca,Sr as da,Tr as ea,Ur as fa,Vr as ia,Wr as ja,Xr as ka,Yr as la,Zr as ma,_r as na,as as pa,bs as qa,cs as ra,ds as sa,es as ta,fs as ua,gs as va,hs as wa,zr as M}from"./chunk-8y1ve8tc.js";import{is as ga,js as ha}from"./chunk-njx93b4z.js";import{ks as Rb,ls as Sb,ms as Tb}from"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import{As as Ui,Bs as Vi,ts as Ni,us as Oi,vs as Pi,ws as Qi,xs as Ri,ys as Si,zs as Ti}from"./chunk-xvh1k1a4.js";import{Ts as Qc,Us as Rc,Vs as Sc,Ws as Tc,Xs as Uc,Zs as Vc,gt as Wc,ht as Xc,it as Yc}from"./chunk-kkmk6j16.js";import{jt as Xb,kt as Yb,lt as Zb,mt as _b,nt as $b,ot as ac}from"./chunk-y2f41kaq.js";import{At as Ge,vt as Ee,xt as Fe}from"./chunk-xj6bcwqa.js";import"./chunk-08ttrtrb.js";import{Ft as cc,Gt as dc}from"./chunk-vhta1be7.js";import{Kt as dg,Lt as eg,Mt as fg,Nt as gg,Ot as hg,Pt as ig,Qt as jg,St as kg,Tt as lg,Ut as mg,Vt as ng}from"./chunk-tc4pj651.js";import{Wt as qd,Xt as rd,Yt as sd,Zt as td,hu as ae,iu as be,ju as ce,ku as de,lu as ee,mu as fe,nu as ge,ou as he,pu as ie,qu as je,ru as ke,su as le,tu as me,uu as ne,vu as oe,wu as pe}from"./chunk-san1eq0r.js";import{$u as F,Au as e,Bu as f,Cu as g,Du as h,Eu as i,Fu as j,Gu as k,Hu as l,Iu as m,Ju as n,Ku as o,Lu as p,Mu as q,Nu as r,Ou as s,Pu as t,Qu as u,Ru as v,Su as w,Tu as x,Uu as y,Vu as z,Wu as A,Xu as B,Yu as C,Zu as D,_u as E,av as G,bv as H,cv as I,dv as J,ev as K,fv as L,xu as b,yu as c,zu as d}from"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import{Av as tb,Bv as ub,Cv as vb,Dv as wb,Ev as xb,Fv as yb,Gv as zb,Hv as Ab,Iv as Bb,Jv as Cb,Kv as Db,Lv as Eb,Mv as Fb,Nv as Gb,Ov as Hb,Pv as Ib,Qv as Jb,vv as ob,wv as pb,xv as qb,yv as rb,zv as sb}from"./chunk-72x62kch.js";import{Uv as Pa,Vv as Qa,Yv as Ra,bw as Sa,cw as Ta,iw as Ua,jw as Va,kw as Wa,lw as Xa,mw as Ya,nw as Za,ow as _a,pw as $a,qw as ab,rw as bb,sw as cb,tw as db,uw as eb,vw as fb,ww as gb,yw as hb}from"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{hl as writeNetlifyConfig,$m as writeManifest,Ml as writeImageManifest,rp as wrapComponentForHMR,_r as withDefaults,uk as webComponentDirectiveHandler,gq as watermark,ir as watchViews,Wl as watchMultiple,Xl as watchEffect,Vl as watch,Le as warmImagePlaceholders,im as waitForStore,X as waitForLocale,dp as virtualPathFor,hk as videoDirective,G as validators,cs as validated,Be as validateValueEnhanced,ki as validateTemplate,Pm as validateRouteRules,lq as validateParams,Ce as validateFormEnhanced,Zq as validateFile,xe as validateFields,we as validateField,mi as validateDirective,Wd as validateCspDirectives,Ck as validateConfig,nn as validateComponentScripts,Ln as validateComponentProps,gh as validateClientScript,fi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ai as userComponentFileExists,Nh as useVirtualList,ie as useTitle,hm as useStoreOrThrow,Jp as useStore,Tk as useStorage,zf as useSlots,Vk as useSessionStorage,cc as useServerRuntimeConfig,Xf as useServerData,fe as useSeoMeta,dc as useRuntimeConfig,jm as useRouteParams,lm as useRouteParamOrThrow,km as useRouteParam,ie as usePageTitle,qf as useOptimistic,Ef as useModel,nm as useMiddlewareValue,mm as useMiddlewareState,Uk as useLocalStorage,kp as useLoadingIndicator,de as useHead,ci as useForm,Bf as useAttrs,$q as uploadFiles,_q as uploadFile,em as updateInstance,of as untrack,Qi as unregisterDirective,fm as unmountInstance,Pc as unescapeHtml,gp as typecheckStxFiles,yi as transpileTypeScript,Nr as translate,Ba as transitionDirective,lc as transformAutoImports,Fn as toUsers,En as toUser,Rp as thumbnail,Sq as thumbHashToRGBA,Tq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,If as templateCache,md as syncRecordedResponse,op as stxClientHelpers,ig as structuredDataDirective,Qr as stripLocalePrefix,Mm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,qo as stringToStream,Kd as strictCspPreset,We as streamingSuspenseDirective,_e as streamToResponse,Ue as streamTemplateSimple,Oe as streamTemplate,Ok as stopHmrServer,Bn as stopBroadcasting,_b as stateDirName,$b as stateDir,cf as state,ah as startsDocument,Lo as startProductionServer,Go as startInteractive,An as startBroadcasting,Sr as stampLocaleLayoutGroup,Ia as staggerDirective,jq as srcsetUrls,Ja as springDirective,td as splitByPipe,Im as spaNavVaryHeaders,ep as sourcePathFor,qq as smartBatchSign,Ci as slotContentHasExpressions,oq as signUrl,wi as shouldTranspileTypeScript,Lk as shouldReloadOnChange,tq as shouldRefreshSignature,Mk as shouldIgnoreFile,Fh as shouldCacheComponent,Vp as sharpen,fs as shape,Zb as setStateDir,rm as setRouteParams,sm as setMiddlewareState,Ke as setImagePlaceholder,tf as setGlobalProvide,b as setErrorLocale,Ol as setCurrentInstance,Xj as setCachedVideoResult,Mj as setCachedImageResult,Gj as setCached,is as serveStxFile,ks as serveMultipleStxFiles,Gk as serveMarkdownFile,Wo as serveFile,ls as serveApp,Vo as serve,up as serializeState,bn as serializeSetCookie,Xp as sepia,ge as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,zi as scopeOnRootElement,lk as scopeHTML,kk as scopeCSS,lg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,$p as saturation,mq 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,wg as runPreProcessingMiddleware,xg as runPostProcessingMiddleware,en as runPageAction,jf as runMountCallbacks,gb as runMiddleware,cm as runHooks,Gr as runDoctor,kf as runDestroyCallbacks,Ag as runComposers,aq as rotate,gi as rewriteImagesWithSiblings,nd as responseBindings,Gi as resolveTemplatePath,ha as resolveStxTargets,yk as resolveStxDirectories,Mr as resolveI18n,Pp as resize,og as resetUnscopedSignalWarnings,Nc as resetRejectedExpressionWarnings,sc as resetPlaceholders,ce as resetHead,tp as resetHMRHandler,o as resetErrorConfig,as as required,bg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,gr as renderView,ek as renderVideoComponent,ic as renderVendorStyleTags,pr as renderToString,qr as renderToStream,rr as renderToDOM,Rq as renderThumbhashToCanvas,Dr as renderTemplateString,Br as renderTemplate,Cr as renderString,Re as renderStreamingPage,ri as renderSlot,vh as renderSSRSuspense,Bq as renderProtectedVideo,Aq as renderProtectedImg,nq as renderMediaUpload,Ar as renderMarkdownView,Tm as renderLayoutTypes,Qj as renderImgComponent,Cl as renderImageComponent,ke as renderHtmlAttrs,je as renderHead,jr as renderEmail,Ei as renderComponentWithSlot,le as renderBodyAttrs,Ep as render,Md as relaxedCspPreset,ve as registerValidationRule,Ye as registerStreamingDirectives,Lp as registerStoresClient,pm as registerStore,Qf as registerServeModuleBundle,jg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Ae as registerEnhancedValidationRule,Ni as registerDirective,Vd as registerCspDirectives,On as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Sl as ref,yo as redirect,id as recordResponseStatus,jd as recordResponseHeader,ac as rebaseOntoStateDir,kd as readResponseStatus,ld as readResponseHeaders,Ek as readMarkdownFile,Jf as readFileCached,Tl as reactive,eq as quality,yq as pruneSignatureCache,Jj as pruneCache,rf as provide,zr as protectCodeBlocks,$r as prop,Dg as processVueTemplate,Lh as processVirtualListDirectives,Ph as processVirtualGridDirectives,dk as processVideo,ye as processValidateDirective,ea as processTranslateDirective,ph as processTransitionDirectives,sh as processTransitionAttributes,oe as processTitleDirective,ad as processTemplateBindings,lh as processTeleportDirectives,th as processSuspenseDirectives,eg as processStructuredData,Se as processStreamDirectives,od as processStatusDirective,ai as processStaticDirectives,ug as processStackReplacements,tg as processStackPushDirectives,si as processSlots,Km as processShell,Ne as processServerBindings,fg as processSeoDirective,Ze as processSectionDirectives,Uc as processScopedStyles,_c as processReactiveBindings,Cq as processProtectedMedia,Vh as processPartialHydrationDirectives,fh as processOnceDirective,vg as processMiddleware,dg as processMetaDirectives,pe as processMetaDirective,Fk as processMarkdownFileDirectives,Li as processMarkdownDirectives,cg as processLoops,Dh as processKeepAliveDirectives,eh as processJsonDirective,Oh as processInfiniteListDirectives,sg as processIncludes,Sj as processImgComponents,El as processImageComponents,rl as processImage,ne as processHeadDirective,re as processForms,te as processFormInputDirectives,Lc as processExpressions,Pb as processEventDirectives,ue as processErrorDirective,Eg as processDynamicComponents,hi as processDirectives,Vi as processDirectiveAttributes,kh as processDeferDirectives,_d as processCustomDirectives,Sd as processCspDirectives,gs as processComponentProps,rc as processClientScript,se as processBasicFormDirectives,yh as processAsyncDirectives,$d as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ge as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,jp as preloadIslandHandlers,Me as preloadIconCollection,wn as poolStrings,wk as pluginManager,Ie as placeholdersWarmed,oh as performLeave,nh as performEnter,lf as pendingLifecycleCounts,pf as peek,pg as partialsCache,fk as parseVideoDirectiveOptions,Np as parseUrl,Uq as parseThumbhashString,zd as parseSwitchBlock,pi as parseSlots,qi as parseSlotElement,Ed as parseScriptDeclarations,sk as parseSFCComponent,Dq as parseProtectedArgs,ag as parseLoopBinding,Rj as parseImgComponent,hj as parseImageUrl,Dl as parseImageComponent,cn as parseFormBody,Bd as parseExpressionWithFilters,Pn as parseDefaults,vo as parseCookies,Bm as parseContainerSelector,wd as parseConditionalBlock,Cd as parseArguments,Ma as parseAnimationShorthand,bs as optional,xn as optimizeTemplate,Jl as optimizeImage,Kl as optimizeDirectory,ds as oneOf,qg as onceStore,$l as onUpdated,Zc as onUpdate,bm as onUnmounted,wm as onServer,Zl as onMounted,gf as onMount,$h as onHydrated,xf as onErrorCaptured,hf as onDestroy,Jh as onDeactivated,vm as onClient,_l as onBeforeUpdate,am as onBeforeUnmount,Yl as onBeforeMount,Ih as onActivated,Nq as observeElement,zo as notFound,Jg as normalizeCriticalHeadOrder,wf as nextTick,Sn as negotiateEncoding,Ua as navigateTo,dm as mountInstance,Ea as motionDirective,Ld as moderateCspPreset,vn as minifyHtml,hg as metaDirective,Ug as metaDedupKey,Op as mergeParams,Wg as mergeHtmlAttrs,ee as mergeHeadConfigs,Rc as mergeCssConfig,Pd as mergeCspDirectives,Ra as matchRoute,Mi as markdownDirectiveHandler,Dk as markdownCache,ga as looksLikeGlob,Pr as localizePath,U as loadTranslationLazy,_ as loadTranslation,zk as loadStxConfig,db as loadMiddlewareFromDirectory,an as loadManifest,Jq as loadElement,Cn as loadChannels,Lb as listensPassively,Wr as lintStxStrict,Lq as lazyLoadAll,Kq as lazyLoad,Ha as keyframeDirective,nr as jsxs,or as jsxDEV,mr as jsx,xo as jsonResponse,Xe as islandDirective,l as isTest,Nm as isSpaNavigation,Gm as isSpaNavRequest,rq as isSignatureValid,mf as isSignal,pl as isSharpAvailable,jo as isServerEnvironment,tm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Gq as isNativeLazySupported,yr as isMarkdownPath,Q as isLoading,R as isLoaded,vi as isJavaScriptScript,Hq as isIntersectionObserverSupported,xl as isImageFile,ql as isImageBackendAvailable,aa as isICUFormat,_h as isHydrated,Bi as isHydrateTrigger,gd as isHttpStatus,io as isEdgeEnvironment,Xr as isDirectiveKind,k as isDevelopment,nf as isDerived,Kk as isCssOnlyChange,Rn as isCompressible,um as isClient,Ah as isAsyncComponent,dn as isActionableMethod,Yp as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Kc as interpolateScriptsInTemplate,Ic as interpolateScriptExpressions,Jc as interpolateScriptAttributes,x as inlineError,Lr as injectThemeBootstrap,gg as injectSeoTags,Ir as injectSeo,Wf as injectRouterScript,Jk as injectHotReload,kb as injectHeatmap,Yc as injectCss,Qd as injectCspMetaTag,ch as injectConfigHeadTags,Ig as injectColorModeBootScript,Yg as injectCloakStyle,Pg as injectBuildId,kc as injectBrowserCoreAutoImports,cd as injectAnalytics,sf as inject,om as initStoreRegistry,kl as initNetlify,lp as initLoadingIndicator,Iq as initLazyLoading,Fo as initFile,Qq as initBlurUp,Wq as initAllBlurUp,Uj as imgDirective,Hl as imageDirective,hn as hydrateTemplateStream,gn as hydrateTemplate,ip as hydrateIslands,Xh as hydrateIsland,jn as hydrateFragment,Yh as hydrateByStrategy,Zh as hydrateAll,Bp as hydrate,Uo as htmlResponse,_g as hoistLeadingHeadTags,Kg as hoistColorModeBootScript,lb as heatmapDirective,Cj as hashString,Vf as hashFilePath,Aj as hashFile,Bj as hashBuffer,Cg as hasVueTemplateSyntax,$f as hasVariables,Gp as hasStore,xc as hasPlaceholders,il as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,bh as hasDocumentShell,ni as hasDirectives,ma as hasDOMSupport,Al as handleImageRequest,yf as handleError,vr as h,wl as groupVariantsByFormat,Wp as grayscale,No as gitHash,pn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,dl as getTotalSize,sq as getTimeUntilExpiry,hh as getStoreScript,Hp as getStoreNames,Fp as getStore,Yk as getStorageSize,Xk as getStorageKeys,Hi as getSourceLineInfo,xi as getSharedTranspiler,Rf as getServeModuleBundle,Pf as getServeClientAsset,la as getScreenReaderOnlyStyle,mk as getScopeAttribute,bf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,li as getPositionInfo,uc as getPlaceholderRegistry,zj as getPlaceholderCacheStats,be as getPageMeta,Gd as getNonce,yl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,He as getImagePlaceholder,sl as getImageMetadata,Ee as getImageDelivery,Ap as getHydrationRuntime,qm as getHydratedStoreState,Nk as getHmrServer,ae as getHead,sp as getHMRHandler,lj as getFormatExtension,Ej as getFileMtime,vl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Pi as getDirectives,Oi as getDirective,Pl as getCurrentInstance,Vc as getCssServeAsset,Od as getCspPreset,Xd as getCspHeaderName,Ki as getComponentCacheStats,Wj as getCachedVideoResult,wq as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,xj as getCachedPlaceholder,Lj as getCachedImageResult,Fj as getCached,Ij as getCacheStats,Ng as getBuildId,zn as getBroadcastServer,kj as getBestVariant,Bc as getAllFilters,_i as generateWidthSrcset,Mh as generateVirtualListCSS,br as generateVideoPreview,De as generateValidationScript,cr as generateUploadRuntime,qn as generateTreeShakenBundle,rh as generateTransitionRuntime,qh as generateTransitionCSS,_j as generateThumbnails,qj as generateThumbhashPlaceholder,$n as generateTemplatesDocs,xh as generateSuspenseRuntime,wh as generateSuspenseCSS,vp as generateStateScript,ij as generateSrcsetData,Pj as generateSrcset,tl as generateSrcSet,$j as generateSpriteSheet,kr as generateSpaShell,jj as generateSourceTags,ej as generateSizesFromBreakpoints,dj as generateSizesAttribute,ul as generateSizes,kg as generateSitemapIndex,Jr as generateSitemap,Fq as generateSimpleMediaPicker,zq as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,qc as generateServerDataBridge,jk as generateScopeId,tk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,mg as generateRobotsTxt,Kr as generateRobots,Oj as generateResponsiveVariants,pk as generateReactiveWebComponentTS,ok as generateReactiveWebComponent,rk as generateReactiveRuntime,qk as generateReactiveMixin,Zj as generatePoster,wj as generatePlaceholderStyle,vj as generatePlaceholderCSS,pj as generatePlaceholder,Wh as generatePartialHydrationCSS,Fd as generateNonce,el as generateNetlifyToml,er as generateMinifiedMediaRuntime,dr as generateMediaRuntime,Eq as generateMediaManagerEmbed,_m as generateManifest,np as generateLoadingIndicatorHtml,Pq as generateLazyLoadRuntime,Um as generateLayoutTypes,sj as generateLQIP,Hh as generateKeepAliveRuntime,Gh as generateKeepAliveCSS,bi as generateIslandManifest,ar as generateImagePreview,Ll as generateImageManifest,zp as generateHydrationScript,$e as generateHydrationRuntime,Cp as generateHydrationCSS,Qh as generateHydrationBootstrap,Ik as generateHotReloadScript,jb as generateHeatmapScript,qp as generateHMRClientScript,ak as generateHLSManifest,wp as generateEventBindings,cj as generateDprSrcsetWithVariableQuality,bj as generateDprSrcset,$g as generateDocumentShell,fo as generateDocs,ao as generateDirectivesDocs,Ui as generateDirectiveRuntime,ng as generateDefaultRobotsTxt,bk as generateDASHManifest,Xc as generateCss,Jd as generateCspMetaTag,Id as generateCspHeader,Df as generateCompositionRuntime,_n as generateComponentsDocs,Rh as generateComponentManifest,Yn as generateComponentDoc,uj as generateColorPlaceholder,Hg as generateColorModeBootScript,gm as generateClientRuntime,Dj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,Xq as generateBlurUpRuntime,Yq as generateBlurUpCSS,$c as generateBindingsRuntime,$i as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Ch as generateAsyncComponentRuntime,Bh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,bd as generateAnalyticsScript,hp as formatTypecheckDiagnostics,bp as formatTypeErrors,Co as formatStxContent,cl as formatSize,Ta as formatRoutes,Do as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Hr as formatDoctorReport,bo as formatDocsAsMarkdown,eo as formatDocsAsJson,co as formatDocsAsHtml,dq as format,un as foldConstants,cq as flipVertical,bq as flipHorizontal,Vm as fingerprint,fp as findRuntimeTypeDeclarations,Fr as findPantryPackage,Dc as findMustacheEnd,vd as findMatchingEndTag,rd as findMatchingDelimiter,Rb as findInterpolationEnd,xd as findIfBlocks,Ad as findExpressions,Sa as findErrorPage,Sc as findDuplicateScopedStyleRanges,yd as findDirectiveBlocks,rn as findDeadCode,rn as findDeadBranches,Cm as findContainerRegion,Zn as findComponentFiles,js as findCommonDir,bl as filterRequiredFiles,Fi as fileExists,Yf as extractVariables,ji as extractTemplateExpressions,Te as extractStreamBoundaries,xp as extractState,ti as extractSlotContent,_f as extractScriptFromTemplate,ii as extractScriptBlocks,vc as extractPlaceholders,ud as extractParenthesizedExpression,hd as extractPageResponseStatus,hb as extractLayoutMetadata,tj as extractDominantColor,Dd as extractDirectiveParams,oi as extractDirectiveNames,Om as extractContainerContent,Wn as extractComponentProps,Sh as extractComponentName,Xn as extractComponentDescription,Wc as extractClassNames,pc as extractBridgeData,Th as extractBoundProps,sd as extractBalancedExpression,hc as extractAndStripCssImports,nk as extractAndScopeStyles,Ob as extractAndProcessEvents,Rk as externalizeSharedAssets,Sk as externalizeRepeatedAssets,Qk as externalizeHtml,Oc as evaluateExpression,tn as evaluateConstant,pd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,mh as ensureTeleportTargets,dh as ensureDocumentShell,ze as enhancedValidationRules,Un as enableDevTools,sn as eliminateDeadCode,ef as effect,kq as dprUrls,go as docsCommand,ec as discoverServerApi,Sm as discoverLayoutNames,Oq as disconnectObserver,Vn as disableDevTools,F as devHelpers,Jm as detectShell,ho as detectRuntime,fl as detectProjectConfig,mj as detectFormat,mn as detectBuildMode,df as derived,jl as deploy,Bk as defineStxConfig,Kp as defineStore,Af as defineSlots,Vr as defineSiteConfig,Zr as definePropsWithValidation,Yr as defineProps,vk as definePlugin,he as definePageMeta,Wa as defineMiddleware,di as defineForm,vf as defineExpose,uf as defineEmits,Ri as defineDirective,xr as defineCustomElement,Ko as defineConfig,Si as defineClientDirective,zh as defineAsyncComponent,Mo as defineApiHandler,fr as defaultMediaConfig,Nl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,qe as defaultFormClasses,yc as defaultFilters,Zd as defaultCspConfig,xk as defaultConfig,hs as default,Qc as deepMergeThemes,Tc as dedupeScopedStyles,Fm as decodeTitleEntities,rj as decodeThumbhash,Ud as cspNonceDirective,Td as cspDirective,Vq as crossfadeTransition,Qp as crop,Kh as createVirtualList,gk as createVideoDirective,to as createVercelHandler,_o as createTypeChecker,fa as createTranslateFilter,po as createTextEncoderStream,wr as createStxApp,oo as createStreamingResponse,Ve as createStreamRenderer,Ip as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Rl as createScope,uh as createSSRSuspense,af as createRouter,Qm as createRouteRuleResolver,eb as createRouteLocation,Yo as createRoute,Sl as createRef,Tl as createReactive,Cf as createProvideContext,Po as createProject,Jo as createProductionBuild,tc as createPlaceholder,yn as createOptimizedBuild,uo as createNetlifyHandler,Zk as createNetlifyClient,fb as createMiddlewareContext,Xo as createMiddleware,Mq as createLazyObserver,Eh as createKeepAliveCache,lo as createKVNamespace,Uh as createIslandRegistry,Tj as createImgDirective,Il as createImagePlugin,Bl as createImageHandler,Gl as createImageDirective,nb as createHeatmapAggregator,al as createFileManifest,ko as createEnvAccessor,z as createEnhancedError,no as createEdgeHandler,mo as createEdgeCache,Ii as createDetailedErrorMessage,so as createDenoHandler,gl as createDefaultNetlifyConfig,Yd as createCspHeaders,wo as createCookie,Ul as createComputed,Ql as createComponentInstance,ro as createCloudflareHandler,Ya as createClientCookieManager,Ti as createBuiltinDirectives,wr as createApp,Ka as createAnimationTimeline,Tp as cover,Zf as convertToCommonJS,_p as contrast,Sp as contain,y as consoleError,m as configureErrorHandling,Ak as config,Ul as computed,Tn as compressResponse,zg as composerPattern,yg as composer,Lm as composeShellWithPage,Nn as componentDirective,Di as componentClientSignalNames,Zm as compileTemplate,a as collectRepeatedFlag,$k as collectDeployFiles,Zg as cloakStyleFragment,Yj as clearVideoCache,N as clearTranslationCache,ih as clearStoreCache,Wk as clearStorage,xq as clearSignatureCache,Ff as clearServerData,yj as clearPlaceholderCache,rg as clearOnceStore,Hd as clearNonce,bb as clearMiddleware,Je as clearImagePlaceholders,Fe as clearImageDeliveryCatalog,Fl as clearImageCache,e as clearErrorMessages,Sf as clearDevCaches,Cc as clearCustomFilters,Bg as clearComposers,jh as clearComposableCache,Ji as clearComponentCache,Hj as clearCache,Ib as clearBlankCache,mp as cleanupLoadingIndicator,zm as classifyScript,Am as classifyAllScripts,$o as checkTemplateFile,ap as checkTemplate,Tf as checkCache,uq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,In as channel,Bo as captureScreenshots,Ao as captureScreenshot,Z as cancelPendingLoads,_k as calculateSha1,aj as calculateOptimalWidths,Uf as cacheTemplate,bc as cacheEngineFingerprint,ik as buildWebComponents,cp as buildVirtualSource,hr as buildViews,Mp as buildUrl,Pe as buildSuspenseResolveScript,Ur as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Wm as buildRuntimeAsset,Xm as buildRouterAsset,Tr as buildLangPickerScript,gj as buildImageUrl,Qg as buildIdFragment,Vg as buildHtmlAttrs,kn as buildForProduction,Qn as buildComponentLibrary,vq as buildAuthParams,ln as buildApp,Rr as buildAlternateLinks,Io as build,Gn as broadcastPrivate,Hn as broadcastPresence,Dn as broadcast,Zp as brightness,Tb as bracketDepths,Up as blur,Jb as blankInertHtmlRegions,pq as batchSignUrls,ff as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,fq as auto,ja as attributeValue,Ym as assetTags,Mb as asInvocableStatement,es as arrayOf,Or as applyTranslations,Nj as applyTransformations,ui as applySlots,Mn as applyPropDefaults,iq as applyPreset,Xg as applyHtmlAttrs,me as applyHead,Mc as applyFilters,Hm as appendVary,Nd as apiCspPreset,Da as animationGroupDirective,ck as analyzeVideo,on as analyzeUsage,xm as analyzeTemplate,ym as analyzeProject,on as analyzeDirectiveUsage,dd as analyticsDirective,So as addStore,Ro as addPage,Rd as addNonceToInlineContent,To as addLayout,Qo as addComponent,fn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Mf as __setSignalsGeneratorsForTest,Og as __setBuildIdForTest,Vj as VideoProcessorCache,ei as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,qd as Tokenizer,Zo as TemplateTypeChecker,Eo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,sr as Show,Qe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Dm 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,ed as RESPONSE_STATUS_KEY,fd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Ho as ProductionBuild,ur as Portal,Oo as PROJECT_TEMPLATES,hq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Dp as MemorySessionStore,Zi as MIME_TYPES,Wi as MEDIA_DEFAULT_WIDTHS,Yi as MEDIA_DEFAULT_FORMATS,Rm as LAYOUT_TYPES_FILE,Kj as ImageProcessorCache,zl as ImageProcessingError,yp as HydrationRuntime,Hk as HotReloadServer,mb as HeatmapAggregator,Tg as HTML_CLASS_MARKER,Sg as HTML_ATTRS_MARKER,lr as Fragment,tr as For,Em as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Pk as EXTERNALIZED_ASSET_DIR,ll as DeployError,ml as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ol as DEFAULT_QUALITY,nj as DEFAULT_PLACEHOLDER_OPTIONS,nl as DEFAULT_FORMATS,Xi as DEFAULT_DPR_VALUES,pp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,fj as COMMON_SIZES,Fg as COLOR_MODE_BOOT_MARKER,Gg as COLOR_MODE_BOOT_GLOBAL,Rg as CLOAK_STYLE,Kn as BroadcastServer,Jn as Broadcast,Lg as BUILD_ID_META,Mg as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,oj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Er as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{qr as a,rr as b,sr as c,tr as d,ur as e,vr as f}from"./chunk-h2sbvyr4.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-gnb15a8d.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-qrhbqzz0.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
2
+ import{qr as a,rr as b,sr as c,tr as d,ur as e,vr as f}from"./chunk-2p24mhh0.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-kkmk6j16.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-08ttrtrb.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{Ha as a,He as F,Je as v,Ke as P,Va as r,de as s,ee as t,nb as n,o as m,oa as l,ob as p,qb as i,wb as e}from"./chunk-0573wv97.js";import"./chunk-1vtd57x6.js";import"./chunk-2ver2s2y.js";import"./chunk-6be9r0tz.js";import"./chunk-e6zk6ntt.js";import"./chunk-4k8rebtb.js";import"./chunk-ym3r8ktq.js";import"./chunk-msywnv5n.js";import"./chunk-b5hank5e.js";import"./chunk-7qp3zphs.js";import"./chunk-zrbhpfda.js";import"./chunk-8b8jwbne.js";import"./chunk-57atgbyq.js";import"./chunk-8bxtvsgm.js";import"./chunk-st8wkk98.js";import"./chunk-rwwfzkz4.js";import"./chunk-7h9fajgs.js";import"./chunk-18018jkn.js";import"./chunk-sqvqwd0p.js";import"./chunk-7r9vgzg4.js";import"./chunk-a959m68j.js";import"./chunk-1vb2rj09.js";import"./chunk-g6czgcg4.js";import"./chunk-vxk12k35.js";import"./chunk-1z1efvtw.js";import"./chunk-vgfd9582.js";import"./chunk-qsbjtp60.js";import"./chunk-nf7k53ap.js";import"./chunk-zk6ghjnj.js";import"./chunk-bgrkxzr7.js";import"./chunk-5d3f7rth.js";import"./chunk-7we3xfde.js";import"./chunk-tg56j4ka.js";import"./chunk-8m0g0h4x.js";import"./chunk-e4g8wz6t.js";import"./chunk-tshyy2br.js";import"./chunk-nqqknczy.js";import"./chunk-p3p4d6g1.js";import"./chunk-c0n802j1.js";import{al as u,bl as c}from"./chunk-0vdng9sh.js";import"./chunk-9rc9gshn.js";import"./chunk-fvsefztj.js";import"./chunk-h2sbvyr4.js";import{as as f}from"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import{Es as A}from"./chunk-gnb15a8d.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-qrhbqzz0.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import{Nw as B}from"./chunk-ejqpq0wc.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.347";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
3
+ import{Ha as a,He as F,Je as v,Ke as P,Va as r,de as s,ee as t,nb as n,o as m,oa as l,ob as p,qb as i,wb as e}from"./chunk-zhm2kje7.js";import"./chunk-10x7762t.js";import"./chunk-2ver2s2y.js";import"./chunk-v9a4frbr.js";import"./chunk-rcve4mba.js";import"./chunk-m61knfax.js";import"./chunk-ym3r8ktq.js";import"./chunk-msywnv5n.js";import"./chunk-b5hank5e.js";import"./chunk-7qp3zphs.js";import"./chunk-3r5ffd2j.js";import"./chunk-0hd9jjwa.js";import"./chunk-57atgbyq.js";import"./chunk-8bxtvsgm.js";import"./chunk-yevadf67.js";import"./chunk-rwwfzkz4.js";import"./chunk-7h9fajgs.js";import"./chunk-18018jkn.js";import"./chunk-sqvqwd0p.js";import"./chunk-7r9vgzg4.js";import"./chunk-a959m68j.js";import"./chunk-1vb2rj09.js";import"./chunk-g6czgcg4.js";import"./chunk-m0ra1wx6.js";import"./chunk-1z1efvtw.js";import"./chunk-vgfd9582.js";import"./chunk-qsbjtp60.js";import"./chunk-nf7k53ap.js";import"./chunk-zk6ghjnj.js";import"./chunk-bgrkxzr7.js";import"./chunk-2rbxt8c1.js";import"./chunk-7we3xfde.js";import"./chunk-49srwy92.js";import"./chunk-8m0g0h4x.js";import"./chunk-e4g8wz6t.js";import"./chunk-hv9rk4aj.js";import"./chunk-xqgq5jzt.js";import"./chunk-p3p4d6g1.js";import"./chunk-c0n802j1.js";import{al as u,bl as c}from"./chunk-8vw9t1rb.js";import"./chunk-vgd2k0pf.js";import"./chunk-fvsefztj.js";import"./chunk-2p24mhh0.js";import{as as f}from"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import{Es as A}from"./chunk-kkmk6j16.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-08ttrtrb.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import{Nw as B}from"./chunk-ejqpq0wc.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.349";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
4
4
  Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-05zfez2g.js");if(x==="list"){console.log(`
5
5
  \uD83D\uDCDA Fetching available icon collections...
6
6
  `);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
7
7
  `);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
8
8
  Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
9
9
  \u2713 Package generated successfully!`),console.log(`
10
- To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-dxkjvajv.js"),{loadConfig:j}=await import("./chunk-24rhp7ye.js");console.log(`
10
+ To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-dxkjvajv.js"),{loadConfig:j}=await import("./chunk-zyhxe7vp.js");console.log(`
11
11
  \uD83D\uDD0D Running PWA audit...
12
12
  `);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
13
13
  No .stx files matched ${x}
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
69
69
  File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
70
70
  File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
71
71
  Pages directory not found: ${k}`),console.log(`
72
- Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-hpr2sdfc.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
72
+ Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-06z1p3xc.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
73
73
  Build complete! (SSR)
74
74
  `),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
75
75
  `);else if(H.ssg){if(console.log(`
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
84
84
  Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
85
85
  `),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
86
86
  `)}}catch(z){console.error(`
87
- Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-y8g8neeh.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
87
+ Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-4mqf3953.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
88
88
  Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-6h3r8v55.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
89
89
  \uD83D\uDCDD Initializing Netlify configuration...
90
90
  `);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
124
124
  \uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
125
125
  ${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
126
126
  \uD83D\uDCCA STX Performance Statistics
127
- `);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-632jxm61.js"),{resolveStxTargets:j}=await import("./chunk-erb294sv.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
127
+ `);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-88ykfje8.js"),{resolveStxTargets:j}=await import("./chunk-erb294sv.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
128
128
  No .stx files matched ${H.join(", ")}
129
129
  `);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
130
130
  Type-check did not run.
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
160
160
  \uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
161
161
  \uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
162
162
  \u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-gsc2vds7.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
163
- \u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-w7vyd0n0.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-6h8t40zg.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
163
+ \u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-hfwcyt8k.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-4c93nvse.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
164
164
  \uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
165
165
  `);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
166
166
  \uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
167
- \uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-4fcvaazx.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-kw9cgyfc.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-59906baj.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-nm60wh6r.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-e7np0h2q.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
167
+ \uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-vx67nhhf.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-kw9cgyfc.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-59906baj.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-nm60wh6r.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-e7np0h2q.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
168
168
  \uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
169
169
  `);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
170
170
  \uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Xj as Nj,Yj as wj,Zj as Aj}from"./chunk-f5cw54q3.js";import{$j as Uj,ak as Xj,bk as Yj,ck as Zj,dk as _j,ek as $j,fk as qj,gk as Fj,hk as Oj,ik as Vj,jk as Ij,kk as Qj,lk as Wj,mk as Kj}from"./chunk-fqp4b8k4.js";import"./chunk-nqqknczy.js";import"./chunk-h2sbvyr4.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-gnb15a8d.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-qrhbqzz0.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
2
+ import{Xj as Nj,Yj as wj,Zj as Aj}from"./chunk-f5cw54q3.js";import{$j as Uj,ak as Xj,bk as Yj,ck as Zj,dk as _j,ek as $j,fk as qj,gk as Fj,hk as Oj,ik as Vj,jk as Ij,kk as Qj,lk as Wj,mk as Kj}from"./chunk-hcfapncb.js";import"./chunk-xqgq5jzt.js";import"./chunk-2p24mhh0.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-kkmk6j16.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-08ttrtrb.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
3
3
  `),scripts:j.scripts.join(`
4
4
  `),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
5
5
  `),scripts:j.scripts.join(`
package/dist/craft.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Xj as Nj,Yj as wj,Zj as Aj}from"./chunk-f5cw54q3.js";import{$j as Uj,ak as Xj,bk as Yj,ck as Zj,dk as _j,ek as $j,fk as qj,gk as Fj,hk as Oj,ik as Vj,jk as Ij,kk as Qj,lk as Wj,mk as Kj}from"./chunk-fqp4b8k4.js";import"./chunk-nqqknczy.js";import"./chunk-h2sbvyr4.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-gnb15a8d.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-qrhbqzz0.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
2
+ import{Xj as Nj,Yj as wj,Zj as Aj}from"./chunk-f5cw54q3.js";import{$j as Uj,ak as Xj,bk as Yj,ck as Zj,dk as _j,ek as $j,fk as qj,gk as Fj,hk as Oj,ik as Vj,jk as Ij,kk as Qj,lk as Wj,mk as Kj}from"./chunk-hcfapncb.js";import"./chunk-xqgq5jzt.js";import"./chunk-2p24mhh0.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-kkmk6j16.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-08ttrtrb.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
3
3
  `),scripts:j.scripts.join(`
4
4
  `),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
5
5
  `),scripts:j.scripts.join(`
@@ -8,6 +8,7 @@ import { contentKey, renderMemo } from "../render-memo.js";
8
8
  let cssModule = null, cssLoadAttempted = !1, cachedConfig = null, cachedCSS = "", isBuilding = !1;
9
9
  const MAX_CACHE = 256, cssByClassSet = new Map, serveCssByHash = new Map;
10
10
  let diskCacheRoot = null, configFingerprint = null;
11
+ const configByRoot = new Map;
11
12
  function shortHash(input) {
12
13
  return Bun.hash(input).toString(16).padStart(16, "0").slice(0, 16);
13
14
  }
@@ -35,11 +36,11 @@ export function getCssServeAsset(hash) {
35
36
  serveCssByHash.set(hash, css);
36
37
  return css;
37
38
  }
38
- async function readDiskCache(key) {
39
- if (!diskCacheRoot)
39
+ async function readDiskCache(key, root = diskCacheRoot) {
40
+ if (!root)
40
41
  return null;
41
42
  try {
42
- const file = Bun.file(path.join(diskCacheRoot, `cw-${shortHash(key)}.css`));
43
+ const file = Bun.file(path.join(root, `cw-${shortHash(key)}.css`));
43
44
  if (!await file.exists())
44
45
  return null;
45
46
  return await file.text();
@@ -47,13 +48,13 @@ async function readDiskCache(key) {
47
48
  return null;
48
49
  }
49
50
  }
50
- async function writeDiskCache(key, css) {
51
- if (!diskCacheRoot)
51
+ async function writeDiskCache(key, css, root = diskCacheRoot) {
52
+ if (!root)
52
53
  return;
53
54
  try {
54
- if (!fs.existsSync(diskCacheRoot))
55
- fs.mkdirSync(diskCacheRoot, { recursive: !0 });
56
- await Bun.write(path.join(diskCacheRoot, `cw-${shortHash(key)}.css`), css);
55
+ if (!fs.existsSync(root))
56
+ fs.mkdirSync(root, { recursive: !0 });
57
+ await Bun.write(path.join(root, `cw-${shortHash(key)}.css`), css);
57
58
  } catch {}
58
59
  }
59
60
  async function tryImportCss(importPath) {
@@ -166,6 +167,7 @@ export function resetCssCache() {
166
167
  cssByClassSet.clear();
167
168
  serveCssByHash.clear();
168
169
  configFingerprint = null;
170
+ configByRoot.clear();
169
171
  }
170
172
  let warnedLegacyConfigName = !1;
171
173
  export async function loadCssEngineConfig(cwd) {
@@ -321,12 +323,12 @@ export function extractClassNames(htmlContent) {
321
323
  }
322
324
  const cssByPage = renderMemo(64);
323
325
  export async function generateCss(htmlContent, appDir) {
324
- const remembered = cssByPage.get(contentKey(htmlContent, appDir, configFingerprint));
326
+ const rootFingerprint = () => configByRoot.get(appDir ? path.resolve(appDir) : process.cwd())?.fingerprint ?? null, remembered = cssByPage.get(contentKey(htmlContent, appDir, rootFingerprint()));
325
327
  if (remembered !== void 0)
326
328
  return remembered;
327
329
  const css = await generateCssUncached(htmlContent, appDir);
328
330
  if (css)
329
- cssByPage.set(contentKey(htmlContent, appDir, configFingerprint), css);
331
+ cssByPage.set(contentKey(htmlContent, appDir, rootFingerprint()), css);
330
332
  return css;
331
333
  }
332
334
  async function generateCssUncached(htmlContent, appDir) {
@@ -337,24 +339,27 @@ async function generateCssUncached(htmlContent, appDir) {
337
339
  const classes = typeof hw.extractClasses === "function" ? hw.extractClasses(htmlContent) : extractClassNames(htmlContent);
338
340
  if (classes.size === 0)
339
341
  return "";
340
- const resolveRoot = appDir ? path.resolve(appDir) : process.cwd();
342
+ const resolveRoot = appDir ? path.resolve(appDir) : process.cwd(), appDiskCache = stateDir(resolveRoot, "cache");
341
343
  if (!diskCacheRoot)
342
- diskCacheRoot = stateDir(resolveRoot, "cache");
343
- const classSetKey = [...classes].sort().join(" "), cacheKey = `${configFingerprint || "default"}::${classSetKey}`, cached = cssByClassSet.get(cacheKey);
344
+ diskCacheRoot = appDiskCache;
345
+ let rootConfig = configByRoot.get(resolveRoot);
346
+ if (!rootConfig) {
347
+ const loaded = await resolveUserCssConfig(resolveRoot);
348
+ rootConfig = { config: loaded, fingerprint: fingerprintConfig(loaded) };
349
+ configByRoot.set(resolveRoot, rootConfig);
350
+ configFingerprint = rootConfig.fingerprint;
351
+ }
352
+ const classSetKey = [...classes].sort().join(" "), cacheKey = `${rootConfig.fingerprint || "default"}::${classSetKey}`, cached = cssByClassSet.get(cacheKey);
344
353
  if (cached !== void 0) {
345
354
  setLruCache(cacheKey, cached);
346
355
  return cached;
347
356
  }
348
- const onDisk = await readDiskCache(cacheKey);
357
+ const onDisk = await readDiskCache(cacheKey, appDiskCache);
349
358
  if (onDisk !== null) {
350
359
  setLruCache(cacheKey, onDisk);
351
360
  return onDisk;
352
361
  }
353
- if (!cachedConfig) {
354
- cachedConfig = await resolveUserCssConfig(resolveRoot);
355
- configFingerprint = fingerprintConfig(cachedConfig);
356
- }
357
- const baseConfig = hw.defaultConfig || hw.config, userConfig = cachedConfig || {}, merged = mergeCssConfig(baseConfig, userConfig), { safelist, includePreflight, minify, tokenCSS } = merged, cssConfig = merged.config, generator = new hw.CSSGenerator(cssConfig), shortcuts = cssConfig.shortcuts || userConfig.shortcuts || {}, usedShortcuts = Object.keys(shortcuts).filter((name) => classes.has(name) || safelist.includes(name));
362
+ const baseConfig = hw.defaultConfig || hw.config, userConfig = rootConfig.config || {}, merged = mergeCssConfig(baseConfig, userConfig), { safelist, includePreflight, minify, tokenCSS } = merged, cssConfig = merged.config, generator = new hw.CSSGenerator(cssConfig), shortcuts = cssConfig.shortcuts || userConfig.shortcuts || {}, usedShortcuts = Object.keys(shortcuts).filter((name) => classes.has(name) || safelist.includes(name));
358
363
  for (const cls of safelist)
359
364
  if (!shortcuts[cls])
360
365
  generator.generate(cls);
@@ -375,7 +380,7 @@ async function generateCssUncached(htmlContent, appDir) {
375
380
  let css = shortcutCSS + generator.toCSS(includePreflight, minify);
376
381
  css = tokenCSS + css;
377
382
  setLruCache(cacheKey, css);
378
- writeDiskCache(cacheKey, css);
383
+ writeDiskCache(cacheKey, css, appDiskCache);
379
384
  return css;
380
385
  } catch (error) {
381
386
  console.warn("Failed to generate Css CSS:", error);
@@ -45,19 +45,8 @@ export interface ErrorBoundaryState {
45
45
  /** Error info */
46
46
  info: ErrorInfo | null;
47
47
  }
48
- /**
49
- * Process @errorBoundary directives in templates.
50
- *
51
- * Syntax:
52
- * @errorBoundary
53
- * <content that might error>
54
- * @fallback
55
- * <fallback content shown on error>
56
- * @enderrorBoundary
57
- *
58
- * Or with options:
59
- * @errorBoundary(id: 'my-boundary', logErrors: false)
60
- */
48
+ /** Every marker removed, for output no boundary claimed. */
49
+ export declare function stripRenderFailedMarkers(html: string): string;
61
50
  export declare function processErrorBoundaryDirectives(template: string, context?: Record<string, unknown>, _filePath?: string): string;
62
51
  /**
63
52
  * Wrap content in a try/catch for SSR error handling.
@@ -2,6 +2,10 @@ let boundaryIdCounter = 0;
2
2
  function generateBoundaryId() {
3
3
  return `eb-${++boundaryIdCounter}-${Date.now().toString(36)}`;
4
4
  }
5
+ const RENDER_FAILED_MARKER = /<!--stx-render-failed:([a-z-]+)-->/g;
6
+ export function stripRenderFailedMarkers(html) {
7
+ return html.replace(RENDER_FAILED_MARKER, "");
8
+ }
5
9
  export function processErrorBoundaryDirectives(template, context = {}, _filePath) {
6
10
  const boundaryRegex = /@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;
7
11
  return template.replace(boundaryRegex, (_match, optionsStr, content, fallback) => {
@@ -26,15 +30,19 @@ function parseErrorBoundaryOptions(optionsStr) {
26
30
  return options;
27
31
  }
28
32
  function generateErrorBoundaryHtml(boundaryId, content, fallback, options) {
29
- const logErrors = options.logErrors !== !1;
30
- return `
31
- <div class="stx-error-boundary" data-boundary-id="${boundaryId}" data-has-error="false">
32
- <div class="stx-error-boundary-content" data-boundary-content="${boundaryId}">
33
- ${content}
33
+ const logErrors = options.logErrors !== !1, failed = RENDER_FAILED_MARKER.test(content);
34
+ RENDER_FAILED_MARKER.lastIndex = 0;
35
+ const body = failed ? ` <div class="stx-error-boundary-fallback" data-boundary-fallback="${boundaryId}">
36
+ ${fallback}
37
+ </div>` : ` <div class="stx-error-boundary-content" data-boundary-content="${boundaryId}">
38
+ ${stripRenderFailedMarkers(content)}
34
39
  </div>
35
40
  <div class="stx-error-boundary-fallback" data-boundary-fallback="${boundaryId}" style="display: none;">
36
41
  ${fallback}
37
- </div>
42
+ </div>`;
43
+ return `
44
+ <div class="stx-error-boundary" data-boundary-id="${boundaryId}" data-has-error="${failed}">
45
+ ${body}
38
46
  </div>
39
47
  <script>
40
48
  (function() {
package/dist/process.js CHANGED
@@ -722,8 +722,9 @@ async function processOtherDirectives(template, context, filePath, options, depe
722
722
  const { processTransitionDirectives, processTransitionAttributes } = await importOnce("stx/transitions", () => import("./transitions.js"));
723
723
  output = processTransitionDirectives(output, context, filePath);
724
724
  output = processTransitionAttributes(output);
725
- const { processErrorBoundaryDirectives } = await importOnce("stx/error-boundaries", () => import("./error-boundaries.js"));
725
+ const { processErrorBoundaryDirectives, stripRenderFailedMarkers } = await importOnce("stx/error-boundaries", () => import("./error-boundaries.js"));
726
726
  output = processErrorBoundaryDirectives(output, context, filePath);
727
+ output = stripRenderFailedMarkers(output);
727
728
  const { processSuspenseDirectives } = await importOnce("stx/suspense", () => import("./suspense.js"));
728
729
  output = processSuspenseDirectives(output, context, filePath);
729
730
  const { processAsyncDirectives } = await importOnce("stx/async-components", () => import("./async-components.js"));