@stacksjs/stx 0.2.336 → 0.2.338
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.
- package/dist/app-shell.js +9 -8
- package/dist/{chunk-9v0fsdsf.js → chunk-066yt1hy.js} +1 -1
- package/dist/{chunk-eth22r93.js → chunk-0xgc5t3y.js} +1 -1
- package/dist/{chunk-vd5xvsnv.js → chunk-18018jkn.js} +1 -1
- package/dist/{chunk-5tefa8qb.js → chunk-1vb2rj09.js} +2 -2
- package/dist/chunk-1wsewc5h.js +2 -0
- package/dist/{chunk-p1hy2bwn.js → chunk-1yj4xd6n.js} +3 -3
- package/dist/{chunk-fqq5k9ve.js → chunk-1z1efvtw.js} +1 -1
- package/dist/{chunk-cdqx2c2h.js → chunk-22hch2me.js} +1 -1
- package/dist/{chunk-kpeqn5tx.js → chunk-2gc4cevb.js} +1 -1
- package/dist/{chunk-mgmn1vxy.js → chunk-39xtzfzf.js} +1 -1
- package/dist/{chunk-zsnrcbw1.js → chunk-3cjvqa0s.js} +2 -2
- package/dist/chunk-3sgdth20.js +2 -0
- package/dist/chunk-41dfsdy9.js +2 -0
- package/dist/{chunk-ymrxpwr8.js → chunk-46tmg3k4.js} +2 -2
- package/dist/{chunk-e1sxe3q4.js → chunk-4904n5v0.js} +2 -2
- package/dist/chunk-4cw0s9f4.js +4 -0
- package/dist/chunk-4jj4kk18.js +2 -0
- package/dist/chunk-4np12rj1.js +2 -0
- package/dist/chunk-4pcjt99d.js +2 -0
- package/dist/{chunk-dvvx1wny.js → chunk-57atgbyq.js} +1 -1
- package/dist/chunk-58j32d7n.js +2 -0
- package/dist/{chunk-hyfjnn7g.js → chunk-5g6rprcy.js} +1 -1
- package/dist/{chunk-mm59b0gg.js → chunk-5qsg9q46.js} +1 -1
- package/dist/{chunk-m8kezfrt.js → chunk-5r7gfwpj.js} +5 -5
- package/dist/chunk-799s9mwc.js +47 -0
- package/dist/{chunk-yxppshfd.js → chunk-7a21q2q4.js} +1 -1
- package/dist/chunk-7d74am4w.js +2 -0
- package/dist/chunk-7ngnyy5k.js +2 -0
- package/dist/{chunk-r8rbf28v.js → chunk-7r79j1hs.js} +1 -1
- package/dist/{chunk-cr8v8k53.js → chunk-7r9vgzg4.js} +1 -1
- package/dist/{chunk-xwxdwqn9.js → chunk-7we3xfde.js} +1 -1
- package/dist/{chunk-fr66xp8q.js → chunk-823h67tv.js} +1 -1
- package/dist/{chunk-42en0cxm.js → chunk-86v2rps7.js} +1 -1
- package/dist/{chunk-xz3evxqp.js → chunk-8bxtvsgm.js} +1 -1
- package/dist/{chunk-09jdvqhg.js → chunk-8cg15rr7.js} +2 -2
- package/dist/chunk-95t7pked.js +2 -0
- package/dist/{chunk-xdmb578h.js → chunk-97ej3abh.js} +1 -1
- package/dist/{chunk-kw98dfza.js → chunk-9btdax2s.js} +1 -1
- package/dist/{chunk-pbexz0d4.js → chunk-9bvgzqw1.js} +2 -2
- package/dist/{chunk-te6qym2g.js → chunk-9jc2z17q.js} +2 -2
- package/dist/chunk-9m5sxaen.js +2 -0
- package/dist/{chunk-tjag2cmm.js → chunk-a26hcag1.js} +1 -1
- package/dist/chunk-a3m7mgjc.js +2 -0
- package/dist/{chunk-9368t9jm.js → chunk-a959m68j.js} +1 -1
- package/dist/{chunk-fkdnfjc2.js → chunk-aftqqqcg.js} +2 -2
- package/dist/chunk-aved735s.js +64 -0
- package/dist/{chunk-q0g5c39d.js → chunk-ay336sqb.js} +1 -1
- package/dist/{chunk-cvphepjb.js → chunk-b3pn6dh5.js} +1 -1
- package/dist/{chunk-5swem3qy.js → chunk-b4cabzk9.js} +1 -1
- package/dist/{chunk-ej8mv2k6.js → chunk-bgrkxzr7.js} +1 -1
- package/dist/{chunk-2cm03y4y.js → chunk-d3kjaae0.js} +1 -1
- package/dist/chunk-d7zxg9bp.js +16 -0
- package/dist/{chunk-1ebyt1ba.js → chunk-dekxwgc2.js} +1 -1
- package/dist/chunk-dvafkj8w.js +2 -0
- package/dist/chunk-e3rgky2r.js +3747 -0
- package/dist/{chunk-t41aaehf.js → chunk-e4g8wz6t.js} +1 -1
- package/dist/chunk-e9y48d60.js +2 -0
- package/dist/{chunk-pbzdjhp8.js → chunk-eq2j7w8p.js} +1 -1
- package/dist/chunk-f08ttkqr.js +2 -0
- package/dist/{chunk-4jdj52c5.js → chunk-f6sejeg3.js} +1 -1
- package/dist/chunk-fha0nyet.js +2 -0
- package/dist/{chunk-6k8h1fj1.js → chunk-fjrkyhm7.js} +1 -1
- package/dist/chunk-fw56y3cb.js +30 -0
- package/dist/chunk-fx5m9d3t.js +2 -0
- package/dist/{chunk-mwh3ymwc.js → chunk-g6czgcg4.js} +1 -1
- package/dist/chunk-gtfcw1gc.js +12 -0
- package/dist/chunk-gz539gk6.js +2 -0
- package/dist/chunk-h0y4mb2m.js +2 -0
- package/dist/chunk-hfzv07az.js +3 -0
- package/dist/{chunk-nat3actx.js → chunk-hrdd26r4.js} +1 -1
- package/dist/{chunk-cdsbxghb.js → chunk-jkyvk4x6.js} +1 -1
- package/dist/{chunk-4ty8j3xn.js → chunk-jx03a693.js} +1 -1
- package/dist/{chunk-vvd659y4.js → chunk-k3dtvay1.js} +1 -1
- package/dist/chunk-kawdj1j7.js +2 -0
- package/dist/{chunk-d4etph79.js → chunk-kdhrk7x5.js} +1 -1
- package/dist/chunk-kdwerx8e.js +2 -0
- package/dist/{chunk-n66k2v2q.js → chunk-kermxyfe.js} +2 -2
- package/dist/{chunk-x7yc7e9v.js → chunk-m11pb9cx.js} +1 -1
- package/dist/{chunk-k6ky5et7.js → chunk-m1p2n3nf.js} +1 -1
- package/dist/chunk-m46edxtt.js +3 -0
- package/dist/chunk-meqz313r.js +2 -0
- package/dist/{chunk-q05eh1n4.js → chunk-mnyehz4t.js} +2 -2
- package/dist/{chunk-0vv5s039.js → chunk-mys0rat0.js} +1 -1
- package/dist/chunk-n0a55zv2.js +2 -0
- package/dist/{chunk-7kw3grq5.js → chunk-nf7k53ap.js} +1 -1
- package/dist/{chunk-kffndzch.js → chunk-nhbc464j.js} +3 -3
- package/dist/{chunk-1hzgxk2m.js → chunk-nvp546bb.js} +1 -1
- package/dist/chunk-p1cddybx.js +2 -0
- package/dist/chunk-q0srntf6.js +2 -0
- package/dist/chunk-q3g4yf5r.js +2 -0
- package/dist/{chunk-c2ta859c.js → chunk-q9ckfwhh.js} +1 -1
- package/dist/chunk-qhdp0ycf.js +2 -0
- package/dist/{chunk-y4nzmkea.js → chunk-qsbjtp60.js} +1 -1
- package/dist/{chunk-1tva0f8f.js → chunk-qtc28zy1.js} +1 -1
- package/dist/{chunk-2vgkc0kg.js → chunk-r10fypcd.js} +1 -1
- package/dist/chunk-rkykwy3z.js +2 -0
- package/dist/{chunk-64djh88a.js → chunk-sqvqwd0p.js} +1 -1
- package/dist/{chunk-67bh5vrj.js → chunk-stbns4bg.js} +1 -1
- package/dist/chunk-szfk6pw6.js +2 -0
- package/dist/{chunk-amxtypkp.js → chunk-t00ga194.js} +1 -1
- package/dist/chunk-temapbqe.js +2 -0
- package/dist/{chunk-9kxfz708.js → chunk-tr1174hz.js} +1 -1
- package/dist/{chunk-q85qp5we.js → chunk-tr41gn5j.js} +1 -1
- package/dist/{chunk-crj19mqr.js → chunk-tr9ynxdw.js} +1 -1
- package/dist/{chunk-71y3bhcw.js → chunk-tsmdmf5h.js} +123 -37
- package/dist/{chunk-gptwwv3c.js → chunk-vaggjvsm.js} +1 -1
- package/dist/{chunk-ya5m5vbn.js → chunk-vgfd9582.js} +1 -1
- package/dist/chunk-vgfnre7b.js +2 -0
- package/dist/{chunk-n9c975db.js → chunk-vhzc08aa.js} +1 -1
- package/dist/{chunk-08w4gtyf.js → chunk-vm5jbgb1.js} +3 -3
- package/dist/{chunk-drqdc0mh.js → chunk-vxt5c5aq.js} +1 -1
- package/dist/{chunk-hzfd8cz0.js → chunk-w0hzaka3.js} +78 -67
- package/dist/{chunk-yk6446kr.js → chunk-w72v0ab1.js} +2 -2
- package/dist/{chunk-c65yrgck.js → chunk-wakb8z5q.js} +10 -10
- package/dist/{chunk-q569zmrr.js → chunk-wb90259a.js} +1 -1
- package/dist/chunk-x01sw9wy.js +2 -0
- package/dist/{chunk-dfejgnny.js → chunk-x48crnwa.js} +1 -1
- package/dist/{chunk-24b4711v.js → chunk-x4vhn880.js} +1 -1
- package/dist/{chunk-j2dj21ay.js → chunk-xe6zmdfq.js} +1 -1
- package/dist/chunk-y8vj3rtt.js +2 -0
- package/dist/chunk-yj1dxdfr.js +2 -0
- package/dist/{chunk-wx5zf66r.js → chunk-yne23w3c.js} +1 -1
- package/dist/{chunk-zz8qgqa1.js → chunk-ypzm47q3.js} +2 -2
- package/dist/chunk-z07knk3p.js +2 -0
- package/dist/{chunk-27xfkzks.js → chunk-zj039s33.js} +1 -1
- package/dist/{chunk-c79nfdyj.js → chunk-zk6ghjnj.js} +1 -1
- package/dist/chunk-zt4pf776.js +2 -0
- package/dist/{chunk-4k0ce745.js → chunk-zye9r15n.js} +2 -2
- package/dist/chunk-zzfpwxpp.js +2 -0
- package/dist/cli.js +14 -14
- package/dist/component-contract-checks.d.ts +18 -15
- package/dist/component-contract.d.ts +6 -14
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/expressions.d.ts +45 -0
- package/dist/expressions.js +60 -11
- package/dist/includes.js +4 -0
- package/dist/loops.js +10 -0
- package/dist/pwa.js +2 -2
- package/dist/server-components.js +2 -1
- package/dist/signals.js +121 -35
- package/dist/slots.js +86 -12
- package/dist/ssg.js +2 -2
- package/dist/stx-virtual-ts.d.ts +205 -95
- package/dist/template-syntax-escape.d.ts +36 -0
- package/dist/template-syntax-escape.js +8 -0
- package/dist/utils.js +9 -2
- package/dist/variable-extractor.d.ts +1 -0
- package/dist/variable-extractor.js +8 -0
- package/dist/visual-testing.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-046dp691.js +0 -2
- package/dist/chunk-1brnvyhv.js +0 -2
- package/dist/chunk-3ntf8f5e.js +0 -2
- package/dist/chunk-4tnxnzja.js +0 -2
- package/dist/chunk-63yfp05p.js +0 -2
- package/dist/chunk-7y4eqkv4.js +0 -2
- package/dist/chunk-7ywnkv1f.js +0 -2
- package/dist/chunk-80zj5516.js +0 -2
- package/dist/chunk-8730k51r.js +0 -2
- package/dist/chunk-907qxn09.js +0 -2
- package/dist/chunk-9fcq5x2r.js +0 -2
- package/dist/chunk-a97tp43x.js +0 -2
- package/dist/chunk-atw841yx.js +0 -2
- package/dist/chunk-c1m1gng4.js +0 -2
- package/dist/chunk-caaenc3w.js +0 -60
- package/dist/chunk-dbfq77qe.js +0 -4
- package/dist/chunk-dnesmvvb.js +0 -2
- package/dist/chunk-eg8ksaft.js +0 -2
- package/dist/chunk-ewsx2qxm.js +0 -2
- package/dist/chunk-farwrdr2.js +0 -3
- package/dist/chunk-fcenm8n1.js +0 -2
- package/dist/chunk-gbz6pfs8.js +0 -2
- package/dist/chunk-gdbkqatx.js +0 -43
- package/dist/chunk-jnahcd4d.js +0 -2
- package/dist/chunk-ke88kpva.js +0 -30
- package/dist/chunk-krpkfndf.js +0 -3
- package/dist/chunk-kxtqbrfr.js +0 -3759
- package/dist/chunk-m1yrakpk.js +0 -2
- package/dist/chunk-q2hvne0v.js +0 -2
- package/dist/chunk-qpbk50xd.js +0 -2
- package/dist/chunk-rxdd3k6n.js +0 -2
- package/dist/chunk-ssd10kje.js +0 -2
- package/dist/chunk-szx6pxh3.js +0 -2
- package/dist/chunk-tpmgq2dx.js +0 -12
- package/dist/chunk-tte4m2s9.js +0 -2
- package/dist/chunk-v7gjsb3f.js +0 -2
- package/dist/chunk-vv289x82.js +0 -2
- package/dist/chunk-vx6mxybh.js +0 -2
- package/dist/chunk-x510wr8z.js +0 -2
- package/dist/chunk-x95sxapm.js +0 -2
- package/dist/chunk-xjrhzkx2.js +0 -2
- package/dist/chunk-y1x2ebhv.js +0 -2
- package/dist/chunk-yvec3f1c.js +0 -2
- package/dist/chunk-yzxm75jp.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as $l,$a as bo,$b as mp,$c as mq,$d as mr,A as Lk,Aa as nn,Ab as Ho,Ac as Np,Ad as Nq,Ae as Tr,B as Mk,Ba as on,Bb as Io,Bc as Op,Bd as Oq,Be as Ur,C as Nk,Ca as Bn,Cb as Jo,Cc as Pp,Cd as Pq,Ce as Vr,D as Ok,Da as Cn,Db as Ko,Dc as Qp,Dd as Qq,De as Wr,E as El,Ea as Dn,Eb as Lo,Ec as Rp,Ed as Rq,Ee as Xr,F as Fl,Fa as En,Fb as Mo,Fc as Sp,Fd as Sq,Fe as Yr,G as Gl,Ga as Fn,Gb as No,Gc as Tp,Gd as Tq,Ge as Zr,H as Hl,Ha as Gn,Hb as Oo,Hc as Up,Hd as Uq,He as _r,I as Il,Ia as Kn,Ib as Po,Ic as Vp,Id as Vq,Ie as $r,J as Jl,Ja as Ln,Jb as Qo,Jc as Wp,Jd as Wq,Je as as,K as Kl,Ka as Mn,Kb as Ro,Kc as Xp,Kd as Xq,Ke as bs,L as Ll,La as Nn,Lb as So,Lc as Yp,Ld as Yq,M as Ml,Ma as On,Mb as To,Mc as Zp,Md as Zq,N as Nl,Na as Pn,Nb as _o,Nc as _p,Nd as _q,O as Ol,Oa as Qn,Ob as $o,Oc as $p,Od as $q,P as Pl,Pa as Rn,Pb as ap,Pc as aq,Pd as ar,Q as Ql,Qa as Sn,Qb as bp,Qc as bq,Qd as br,R as Rl,Ra as Tn,Rb as cp,Rc as cq,Rd as cr,S as Sl,Sa as Un,Sb as dp,Sc as dq,Sd as dr,T as Tl,Ta as Vn,Tb as ep,Tc as eq,Td as er,U as Ul,Ua as Wn,Ub as fp,Uc as fq,Ud as fr,V as Vl,Va as Xn,Vb as gp,Vc as gq,Vd as gr,W as Wl,Wa as Yn,Wb as hp,Wc as hq,Wd as hr,X as Xl,Xa as Zn,Xb as ip,Xc as iq,Xd as ir,Y as Yl,Ya as _n,Yb as jp,Yc as jq,Yd as jr,Z as Zl,Za as $n,Zb as kp,Zc as kq,Zd as kr,_ as _l,_a as ao,_b as lp,_c as lq,_d as lr,aa as am,ab as co,ac as np,ad as nq,ae as nr,ba as bm,bb as eo,bc as op,bd as oq,be as ur,ca as cm,cb as fo,cc as pp,cd as pq,ce as vr,da as dm,db as go,dc as qp,dd as qq,de as wr,ea as em,eb as ho,ec as rp,ed as rq,ee as xr,fa as fm,fb as io,fc as sp,fd as sq,fe as yr,ga as gm,gb as jo,gc as tp,gd as tq,ge as zr,ha as hm,hb as ko,hc as up,hd as uq,he as Ar,ia as im,ib as lo,ic as vp,id as vq,ie as Br,ja as jm,jb as mo,jc as wp,jd as wq,je as Cr,ka as km,kb as no,kc as xp,kd as xq,ke as Dr,la as lm,lb as oo,lc as yp,ld as yq,le as Er,ma as mm,mb as po,mc as zp,md as zq,me as Fr,na as nm,nb as so,nc as Ap,nd as Aq,ne as Gr,o as a,oa as om,ob as to,oc as Bp,od as Bq,oe as Hr,p as wk,pa as bn,pb as uo,pc as Cp,pd as Cq,pe as Ir,q as xk,qa as cn,qb as vo,qc as Dp,qd as Dq,qe as Jr,r as yk,ra as dn,rb as xo,rc as Ep,rd as Eq,re as Kr,s as zk,sa as en,sb as yo,sc as Fp,sd as Fq,se as Lr,t as Ak,ta as fn,tb as zo,tc as Gp,td as Gq,te as Mr,u as Bk,ua as gn,ub as Ao,uc as Hp,ud as Hq,ue as Nr,v as Ck,va as hn,vb as Co,vc as Ip,vd as Iq,ve as Or,w as Dk,wa as jn,wb as Do,wc as Jp,wd as Jq,we as Pr,x as Ek,xa as kn,xb as Eo,xc as Kp,xd as Kq,xe as Qr,y as Jk,ya as ln,yb as Fo,yc as Lp,yd as Lq,ye as Rr,z as Kk,za as mn,zb as Go,zc as Mp,zd as Mq,ze as Sr}from"./chunk-wakb8z5q.js";import{Le as Uo,Me as Vo,Ne as Wo,Oe as Xo,Pe as Yo,Qe as Zo}from"./chunk-5r7gfwpj.js";import{Re as qo,Se as ro}from"./chunk-2ver2s2y.js";import{Te as wo}from"./chunk-fjrkyhm7.js";import{Ue as an}from"./chunk-39xtzfzf.js";import{Ve as Hn,We as In,Xe as Jn,Ye as Bo}from"./chunk-823h67tv.js";import{$e as Rk,Ze as Pk,_e as Qk,af as Sk,bf as Tk,cf as Uk,df as Vk,ef as Wk,ff as Xk,gf as Yk,hf as Zk,if as _k,jf as $k,kf as al,lf as bl}from"./chunk-ym3r8ktq.js";import{mf as sl,nf as tl,of as ul,pf as vl,qf as wl,rf as xl,sf as yl,tf as zl,uf as Al,vf as Bl,wf as Cl,xf as Dl}from"./chunk-tr9ynxdw.js";import{yf as ql,zf as rl}from"./chunk-m11pb9cx.js";import{Af as cl,Bf as dl,Cf as el,Df as fl,Ef as gl,Ff as hl,Gf as il,If as jl,Jf as kl,Kf as ll,Lf as ml,Mf as nl,Nf as ol,Qf as pl}from"./chunk-xe6zmdfq.js";import{Rf as Lm,Sf as Mm,Tf as Nm,Uf as Om,Vf as Pm,Wf as $m}from"./chunk-4cw0s9f4.js";import{$f as tm,Xf as pm,Yf as qm,Zf as rm,_f as sm,ag as um,bg as vm,cg as wm,dg as xm,eg as ym,fg as zm,gg as Am,hg as Bm,ig as Cm,jg as Dm,kg as Em,lg as Qm,mg as Rm,ng as Sm,og as Tm,pg as Um,qg as Vm,rg as Wm,sg as Xm,tg as Ym,ug as Zm,vg as _m}from"./chunk-fw56y3cb.js";import{wg as Fm,xg as Gm}from"./chunk-57atgbyq.js";import{Ag as rn,Bg as sn,Cg as tn,Dg as un,Eg as vn,Fg as wn,Gg as xn,Hg as yn,Ig as zn,Jg as An,yg as pn,zg as qn}from"./chunk-8bxtvsgm.js";import{Kg as gi,Lg as hi,Mg as ii,Ng as ji,Og as ki,Pg as li}from"./chunk-hfzv07az.js";import{Qg as Aj,Rg as Bj,Sg as Cj,Wg as Dj,Xg as Ej,Yg as Fj}from"./chunk-yne23w3c.js";import{$g as Nj,Zg as Lj,_g as Mj,ah as Oj,bh as Pj,ch as Qj,dh as Rj,eh as Sj,fh as Tj,gh as Uj,hh as Vj}from"./chunk-w72v0ab1.js";import{ih as qj,jh as rj,kh as sj,lh as tj,mh as uj,oh as vj,ph as wj,qh as xj,rh as yj,sh as zj}from"./chunk-18018jkn.js";import{th as lk,vh as mk}from"./chunk-sqvqwd0p.js";import{Bh,Ch,Dh,Eh,Fh,Gh}from"./chunk-7r9vgzg4.js";import{Ih as Hh,Jh as Ih,Kh as Jh,Lh as Kh,Mh as Lh,Nh as Mh,Oh as Nh,Ph as Oh,Qh as Ph,Rh as Qh,Sh as Rh,Th as Sh,Uh as Th,Vh as Uh}from"./chunk-a959m68j.js";import{Xh as Vh,Yh as Wh,Zh as Xh,_h as Yh}from"./chunk-1vb2rj09.js";import{di as Zh}from"./chunk-g6czgcg4.js";import{gi as ah}from"./chunk-zye9r15n.js";import{hi as bh}from"./chunk-1z1efvtw.js";import{ii as ch,ji as dh}from"./chunk-vgfd9582.js";import{ki as eh,li as fh,mi as gh,ni as hh,oi as ih,pi as jh}from"./chunk-qsbjtp60.js";import{qi as kh,ri as lh,si as mh,ti as nh,ui as oh}from"./chunk-nf7k53ap.js";import{vi as ph,wi as qh,xi as rh,yi as sh,zi as th}from"./chunk-zk6ghjnj.js";import{Ai as uh,Bi as vh,Ci as wh,Di as xh,Ei as yh,Fi as zh,Gi as Ah}from"./chunk-bgrkxzr7.js";import{Hi as _g,Ii as $g}from"./chunk-mnyehz4t.js";import"./chunk-7we3xfde.js";import{Mi as Ge,Ni as He,Oi as Ie,Pi as Je,Qi as Ke,Ri as Le,Si as Me,Ti as Ne,Ui as Oe,Vi as Pe,Wi as Qe,Xi as Re,Yi as Se,Zi as Te}from"./chunk-46tmg3k4.js";import{$i as kf,_i as jf,aj as lf,bj as mf,cj as nf,dj as of,ej as pf,fj as qf,gj as rf,hj as sf,ij as tf,jj as uf,kj as vf,lj as wf,mj as xf,nj as yf,oj as zf}from"./chunk-tsmdmf5h.js";import{Aj as $e,Bj as af,Cj as bf,Dj as cf,Ej as df,Fj as ef,Gj as ff,Hj as gf,Ij as hf,vj as We,wj as Xe,xj as Ye,yj as Ze,zj as _e}from"./chunk-e4g8wz6t.js";import{Jj as Af,Kj as Bf,Lj as Cf,Mj as Df,Nj as Ef,Oj as Ff,Pj as Gf,Qj as Hf,Rj as If,Sj as Jf,Tj as Kf,Uj as Lf,Vj as Mf}from"./chunk-aftqqqcg.js";import{nk as or,ok as pr,pk as qr,qk as rr,rk as sr,sk as tr}from"./chunk-vm5jbgb1.js";import{Ak as Km,tk as Fk,uk as Gk,vk as Hk,wk as Ik,xk as Hm,yk as Im,zk as Jm}from"./chunk-4904n5v0.js";import"./chunk-f6sejeg3.js";import"./chunk-ypzm47q3.js";import{ll as Yb,ml as Zb,ql as _b}from"./chunk-1yj4xd6n.js";import{$l as ac,$m as id,$n as Ae,$o as qg,$p as ni,$q as Xj,Al as Fa,Am as Bc,An as Jd,Ao as Of,Ap as Rg,Aq as Xi,Bl as Ga,Bm as Cc,Bn as Kd,Bp as Sg,Bq as Yi,Cl as Ha,Cm as Dc,Cn as Ld,Cp as Tg,Cq as Zi,Dl as Ia,Dm as Ec,Dn as Md,Dp as Ug,Dq as _i,El as Ja,Em as Fc,En as Nd,Ep as Vg,Eq as $i,Fl as Ka,Fm as Gc,Fn as Od,Fp as Wg,Fq as aj,Gl as La,Gm as Hc,Gn as Pd,Gp as Xg,Gq as bj,Hl as Ma,Hm as Rc,Hn as Qd,Ho as Pf,Hp as Yg,Hq as cj,Il as Na,Im as Sc,In as Rd,Ip as Zg,Iq as dj,Jl as Oa,Jm as Tc,Jn as Sd,Jo as Qf,Jp as _h,Jq as ej,Kl as ib,Km as Uc,Kn as Td,Kp as $h,Kq as fj,Ll as jb,Lm as Vc,Ln as ie,Lo as Rf,Lq as gj,Ml as kb,Mm as Wc,Mn as je,Mo as Sf,Mq as hj,Nl as lb,Nm as Xc,Nn as ke,No as Tf,Np as ai,Nq as ij,Ol as mb,On as le,Oo as Uf,Oq as jj,Pl as nb,Pm as Yc,Pn as me,Po as Vf,Pq as kj,Qm as Zc,Qn as ne,Qo as fg,Qq as lj,Rm as _c,Rn as oe,Ro as gg,Rq as mj,Sl as Fb,Sm as $c,Sn as pe,So as hg,Sq as nj,Tl as Gb,Tm as ad,Tn as qe,To as ig,Tq as oj,Ul as Hb,Um as bd,Un as re,Uo as jg,Uq as pj,Vl as Ib,Vm as cd,Vn as se,Vo as kg,Vp as bi,Vq as Gj,Wl as Jb,Wm as dd,Wn as te,Wo as lg,Wp as ci,Wq as Hj,Xl as Nb,Xm as ed,Xn as ue,Xo as mg,Xp as di,Xq as Ij,Yl as Ob,Ym as fd,Yn as ve,Yo as ng,Yp as ei,Yq as Jj,Zl as Pb,Zm as gd,Zo as og,Zp as fi,Zq as Kj,_l as $b,_m as hd,_n as ze,_o as pg,_p as mi,_q as Wj,am as bc,an as jd,ao as Be,ap as rg,aq as oi,ar as Yj,bm as cc,bn as kd,bo as Ce,bp as sg,bq as pi,br as Zj,cm as dc,cn as ld,co as De,cp as tg,cq as qi,cr as _j,dm as ec,dn as md,do as Ee,dp as ug,dq as ri,dr as $j,em as fc,en as nd,eo as Fe,ep as vg,eq as si,er as ak,fm as gc,fn as od,fp as wg,fq as ti,fr as bk,gm as hc,gn as pd,gp as xg,gq as ui,gr as ck,hm as ic,hn as qd,hp as yg,hq as vi,hr as dk,im as jc,in as rd,io as Ue,ip as zg,iq as wi,ir as ek,jm as kc,jn as sd,jo as Ve,jp as Ag,jq as xi,jr as fk,km as lc,kn as td,kp as Bg,kq as yi,kr as gk,lm as mc,ln as ud,lo as Nf,lp as Cg,lq as zi,lr as hk,mm as nc,mn as vd,mp as Dg,mq as Ai,mr as ik,nm as oc,nn as wd,np as Eg,nq as Bi,nr as jk,om as pc,on as xd,op as Fg,oq as Ci,or as kk,pm as qc,pn as yd,pp as Gg,pq as Mi,pr as nk,qm as rc,qn as zd,qp as Hg,qq as Ni,qr as ok,rm as sc,rn as Ad,rp as Ig,rq as Oi,rr as pk,sl as xa,sm as tc,sn as Bd,sp as Jg,sq as Pi,sr as qk,tl as ya,tm as uc,tn as Cd,tp as Kg,tq as Qi,tr as rk,ul as za,um as vc,un as Dd,up as Lg,uq as Ri,ur as sk,vl as Aa,vm as wc,vn as Ed,vp as Mg,vq as Si,vr as tk,wl as Ba,wm as xc,wn as Fd,wp as Ng,wq as Ti,wr as uk,xl as Ca,xm as yc,xn as Gd,xp as Og,xq as Ui,xr as vk,yl as Da,ym as zc,yn as Hd,yp as Pg,yq as Vi,zl as Ea,zm as Ac,zn as Id,zp as Qg,zq as Wi}from"./chunk-e3rgky2r.js";import{$r as pa,Ar as O,Br as P,Cr as Q,Dr as R,Er as S,Fr as T,Gr as U,Hr as V,Ir as W,Jr as X,Kr as Y,Lr as Z,Mr as _,Nr as $,Or as aa,Pr as ba,Qr as ca,Rr as da,Sr as ea,Tr as fa,Ur as ia,Vr as ja,Wr as ka,Xr as la,Yr as ma,Zr as na,_r as oa,as as qa,bs as ra,cs as sa,ds as ta,es as ua,fs as va,gs as wa,yr as M,zr as N}from"./chunk-d7zxg9bp.js";import{hs as ga,is as ha}from"./chunk-t00ga194.js";import{js as Kb,ks as Lb,ls as Mb}from"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import{As as Li,ss as Di,ts as Ei,us as Fi,vs as Gi,ws as Hi,xs as Ii,ys as Ji,zs as Ki}from"./chunk-ay336sqb.js";import{Ss as Ic,Ts as Jc,Us as Kc,Vs as Lc,Ws as Mc,Ys as Nc,ft as Oc,gt as Pc,ht as Qc}from"./chunk-nhbc464j.js";import{it as Qb,jt as Rb,kt as Sb,lt as Tb,mt as Ub,nt as Vb}from"./chunk-vaggjvsm.js";import{ut as we,wt as xe,zt as ye}from"./chunk-q9ckfwhh.js";import"./chunk-kermxyfe.js";import{Et as Wb,Ft as Xb}from"./chunk-k3dtvay1.js";import{Jt as Wf,Kt as Xf,Lt as Yf,Mt as Zf,Nt as _f,Ot as $f,Pt as ag,Rt as bg,St as cg,Tt as dg,Ut as eg}from"./chunk-aved735s.js";import{$t as h,Au as I,Bu as J,Cu as K,Du as L,Vt as b,Wt as c,Xt as d,Yt as e,Zt as f,_t as g,au as i,bu as j,cu as k,du as l,eu as m,fu as n,gu as o,hu as p,iu as q,ju as r,ku as s,lu as t,mu as u,nu as v,ou as w,pu as x,qu as y,ru as z,su as A,tu as B,uu as C,vu as D,wu as E,xu as F,yu as G,zu as H}from"./chunk-799s9mwc.js";import{$u as ge,Nu as Ud,Ou as Vd,Pu as Wd,Qu as Xd,Ru as Yd,Su as Zd,Tu as _d,Uu as $d,Vu as ae,Wu as be,Xu as ce,Yu as de,Zu as ee,_u as fe,av as he}from"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import{gv as ob,hv as pb,iv as qb,jv as rb,kv as sb,lv as tb,mv as ub,nv as vb,ov as wb,pv as xb,qv as yb,rv as zb,sv as Ab,tv as Bb,uv as Cb,vv as Db,wv as Eb}from"./chunk-deqnt1w5.js";import{$v as db,Av as Pa,Bv as Qa,Ev as Ra,Jv as Sa,Kv as Ta,Qv as Ua,Rv as Va,Sv as Wa,Tv as Xa,Uv as Ya,Vv as Za,Wv as _a,Xv as $a,Yv as ab,Zv as bb,_v as cb,aw as eb,bw as fb,cw as gb,ew as hb}from"./chunk-w0hzaka3.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{Zk as writeNetlifyConfig,Rm as writeManifest,Cl as writeImageManifest,hp as wrapComponentForHMR,Qr as withDefaults,kk as webComponentDirectiveHandler,Yp as watermark,_q as watchViews,Ml as watchMultiple,Nl as watchEffect,Ll as watch,De as warmImagePlaceholders,_l as waitForStore,X as waitForLocale,Vo as virtualPathFor,Zj as videoDirective,G as validators,Ur as validated,te as validateValueEnhanced,bi as validateTemplate,Fm as validateRouteRules,bq as validateParams,ue as validateFormEnhanced,Pq as validateFile,pe as validateFields,oe as validateField,di as validateDirective,Od as validateCspDirectives,sk as validateConfig,cn as validateComponentScripts,Bn as validateComponentProps,Zg as validateClientScript,Yh as v,zc as usesSignalsInScript,ub as usesReactiveRuntime,qi as userComponentFileExists,Eh as useVirtualList,ae as useTitle,Zl as useStoreOrThrow,zp as useStore,Jk as useStorage,rf as useSlots,Lk as useSessionStorage,Wb as useServerRuntimeConfig,Of as useServerData,Zd as useSeoMeta,Xb as useRuntimeConfig,$l as useRouteParams,bm as useRouteParamOrThrow,am as useRouteParam,ae as usePageTitle,hf as useOptimistic,wf as useModel,dm as useMiddlewareValue,cm as useMiddlewareState,Kk as useLocalStorage,ap as useLoadingIndicator,Xd as useHead,Vh as useForm,tf as useAttrs,Rq as uploadFiles,Qq as uploadFile,Wl as updateInstance,ff as untrack,Gi as unregisterDirective,Xl as unmountInstance,Hc as unescapeHtml,Yo as typecheckStxFiles,pi as transpileTypeScript,Dr as translate,Ba as transitionDirective,dc as transformAutoImports,vn as toUsers,un as toUser,Hp as thumbnail,Iq as thumbHashToRGBA,Jq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Af as templateCache,ed as syncRecordedResponse,ep as stxClientHelpers,$f as structuredDataDirective,Gr as stripLocalePrefix,Cm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,go as stringToStream,Cd as strictCspPreset,Oe as streamingSuspenseDirective,Se as streamToResponse,Me as streamTemplateSimple,Ge as streamTemplate,Ek as stopHmrServer,rn as stopBroadcasting,Tb as stateDirName,Ub as stateDir,We as state,Tg as startsDocument,Bo as startProductionServer,wo as startInteractive,qn as startBroadcasting,Ir as stampLocaleLayoutGroup,Ia as staggerDirective,$p as srcsetUrls,Ja as springDirective,ld as splitByPipe,ym as spaNavVaryHeaders,Wo as sourcePathFor,gq as smartBatchSign,si as slotContentHasExpressions,eq as signUrl,ni as shouldTranspileTypeScript,Bk as shouldReloadOnChange,jq as shouldRefreshSignature,Ck as shouldIgnoreFile,wh as shouldCacheComponent,Lp as sharpen,Xr as shape,Sb as setStateDir,hm as setRouteParams,im as setMiddlewareState,Ce as setImagePlaceholder,lf as setGlobalProvide,b as setErrorLocale,El as setCurrentInstance,Nj as setCachedVideoResult,Cj as setCachedImageResult,wj as setCached,_r as serveStxFile,as as serveMultipleStxFiles,wk as serveMarkdownFile,Mo as serveFile,bs as serveApp,Lo as serve,kp as serializeState,Tm as serializeSetCookie,Np as sepia,_d as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,bk as scopeHTML,ak as scopeCSS,cg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Rp as saturation,cq 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,ng as runPreProcessingMiddleware,og as runPostProcessingMiddleware,Wm as runPageAction,af as runMountCallbacks,gb as runMiddleware,Ul as runHooks,wr as runDoctor,bf as runDestroyCallbacks,rg as runComposers,Sp as rotate,Zh as rewriteImagesWithSiblings,fd as responseBindings,wi as resolveTemplatePath,ha as resolveStxTargets,ok as resolveStxDirectories,Cr as resolveI18n,Fp as resize,fg as resetUnscopedSignalWarnings,Fc as resetRejectedExpressionWarnings,kc as resetPlaceholders,Wd as resetHead,jp as resetHMRHandler,o as resetErrorConfig,Sr as required,Uf as reportDeferredLoopWarnings,oc as replacePlaceholders,wc as replaceInterpolations,Yq as renderView,Wj as renderVideoComponent,ac as renderVendorStyleTags,fr as renderToString,gr as renderToStream,hr as renderToDOM,Hq as renderThumbhashToCanvas,tr as renderTemplateString,rr as renderTemplate,sr as renderString,Je as renderStreamingPage,ii as renderSlot,mh as renderSSRSuspense,rq as renderProtectedVideo,qq as renderProtectedImg,dq as renderMediaUpload,qr as renderMarkdownView,Jm as renderLayoutTypes,Gj as renderImgComponent,sl as renderImageComponent,ce as renderHtmlAttrs,be as renderHead,$q as renderEmail,ui as renderComponentWithSlot,de as renderBodyAttrs,up as render,Ed as relaxedCspPreset,ne as registerValidationRule,Qe as registerStreamingDirectives,Bp as registerStoresClient,fm as registerStore,ag as registerSeoDirectives,_a as registerMiddleware,sc as registerFilters,rc as registerFilter,d as registerErrorMessages,se as registerEnhancedValidationRule,Di as registerDirective,Nd as registerCspDirectives,En as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,ec as referencesName,Il as ref,oo as redirect,ad as recordResponseStatus,bd as recordResponseHeader,Vb as rebaseOntoStateDir,cd as readResponseStatus,dd as readResponseHeaders,uk as readMarkdownFile,Bf as readFileCached,Jl as reactive,Wp as quality,oq as pruneSignatureCache,zj as pruneCache,jf as provide,pr as protectCodeBlocks,Rr as prop,ug as processVueTemplate,Ch as processVirtualListDirectives,Gh as processVirtualGridDirectives,Vj as processVideo,qe as processValidateDirective,ea as processTranslateDirective,gh as processTransitionDirectives,jh as processTransitionAttributes,ge as processTitleDirective,Uc as processTemplateBindings,ch as processTeleportDirectives,kh as processSuspenseDirectives,Xf as processStructuredData,Ke as processStreamDirectives,gd as processStatusDirective,Th as processStaticDirectives,lg as processStackReplacements,kg as processStackPushDirectives,ji as processSlots,Am as processShell,Fe as processServerBindings,Yf as processSeoDirective,Re as processSectionDirectives,Mc as processScopedStyles,Sc as processReactiveBindings,sq as processProtectedMedia,Mh as processPartialHydrationDirectives,Yg as processOnceDirective,mg as processMiddleware,Wf as processMetaDirectives,he as processMetaDirective,vk as processMarkdownFileDirectives,Bi as processMarkdownDirectives,Vf as processLoops,uh as processKeepAliveDirectives,Xg as processJsonDirective,Fh as processInfiniteListDirectives,jg as processIncludes,Ij as processImgComponents,ul as processImageComponents,hl as processImage,fe as processHeadDirective,je as processForms,le as processFormInputDirectives,Dc as processExpressions,Ib as processEventDirectives,me as processErrorDirective,vg as processDynamicComponents,_h as processDirectives,Li as processDirectiveAttributes,bh as processDeferDirectives,Sd as processCustomDirectives,Kd as processCspDirectives,Yr as processComponentProps,jc as processClientScript,ke as processBasicFormDirectives,ph as processAsyncDirectives,Td as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ye as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,$o as preloadIslandHandlers,Ee as preloadIconCollection,mn as poolStrings,mk as pluginManager,Ae as placeholdersWarmed,fh as performLeave,eh as performEnter,cf as pendingLifecycleCounts,gf as peek,gg as partialsCache,Xj as parseVideoDirectiveOptions,Dp as parseUrl,Kq as parseThumbhashString,rd as parseSwitchBlock,gi as parseSlots,hi as parseSlotElement,wd as parseScriptDeclarations,ik as parseSFCComponent,tq as parseProtectedArgs,Tf as parseLoopBinding,Hj as parseImgComponent,Zi as parseImageUrl,tl as parseImageComponent,Um as parseFormBody,td as parseExpressionWithFilters,Fn as parseDefaults,lo as parseCookies,rm as parseContainerSelector,od as parseConditionalBlock,ud as parseArguments,Ma as parseAnimationShorthand,Tr as optional,nn as optimizeTemplate,zl as optimizeImage,Al as optimizeDirectory,Vr as oneOf,hg as onceStore,Rl as onUpdated,Rc as onUpdate,Tl as onUnmounted,mm as onServer,Pl as onMounted,_e as onMount,Sh as onHydrated,pf as onErrorCaptured,$e as onDestroy,Ah as onDeactivated,lm as onClient,Ql as onBeforeUpdate,Sl as onBeforeUnmount,Ol as onBeforeMount,zh as onActivated,Dq as observeElement,po as notFound,Ag as normalizeCriticalHeadOrder,of as nextTick,In as negotiateEncoding,Ua as navigateTo,Vl as mountInstance,Ea as motionDirective,Dd as moderateCspPreset,ln as minifyHtml,_f as metaDirective,Lg as metaDedupKey,Ep as mergeParams,Ng as mergeHtmlAttrs,Yd as mergeHeadConfigs,Jc as mergeCssConfig,Hd as mergeCspDirectives,Ra as matchRoute,Ci as markdownDirectiveHandler,tk as markdownCache,ga as looksLikeGlob,Fr as localizePath,U as loadTranslationLazy,_ as loadTranslation,pk as loadStxConfig,db as loadMiddlewareFromDirectory,Sm as loadManifest,zq as loadElement,sn as loadChannels,Mr as lintStxStrict,Bq as lazyLoadAll,Aq as lazyLoad,Ha as keyframeDirective,dr as jsxs,er as jsxDEV,cr as jsx,no as jsonResponse,Pe as islandDirective,l as isTest,Dm as isSpaNavigation,wm as isSpaNavRequest,hq as isSignatureValid,df as isSignal,fl as isSharpAvailable,_n as isServerEnvironment,jm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,wq as isNativeLazySupported,or as isMarkdownPath,Q as isLoading,R as isLoaded,mi as isJavaScriptScript,xq as isIntersectionObserverSupported,nl as isImageFile,gl as isImageBackendAvailable,aa as isICUFormat,Rh as isHydrated,ri as isHydrateTrigger,_c as isHttpStatus,Zn as isEdgeEnvironment,Nr as isDirectiveKind,k as isDevelopment,ef as isDerived,Ak as isCssOnlyChange,Hn as isCompressible,km as isClient,rh as isAsyncComponent,Vm as isActionableMethod,Op as invert,Df as invalidateFileCacheByDir,Cf as invalidateFileCache,Cc as interpolateScriptsInTemplate,Ac as interpolateScriptExpressions,Bc as interpolateScriptAttributes,x as inlineError,Br as injectThemeBootstrap,Zf as injectSeoTags,yr as injectSeo,Nf as injectRouterScript,zk as injectHotReload,kb as injectHeatmap,Qc as injectCss,Id as injectCspMetaTag,Vg as injectConfigHeadTags,zg as injectColorModeBootScript,Pg as injectCloakStyle,Gg as injectBuildId,cc as injectBrowserCoreAutoImports,Wc as injectAnalytics,kf as inject,em as initStoreRegistry,al as initNetlify,bp as initLoadingIndicator,yq as initLazyLoading,vo as initFile,Gq as initBlurUp,Mq as initAllBlurUp,Kj as imgDirective,xl as imageDirective,Zm as hydrateTemplateStream,Ym as hydrateTemplate,_o as hydrateIslands,Oh as hydrateIsland,_m as hydrateFragment,Ph as hydrateByStrategy,Qh as hydrateAll,rp as hydrate,Ko as htmlResponse,Rg as hoistLeadingHeadTags,Bg as hoistColorModeBootScript,lb as heatmapDirective,sj as hashString,Mf as hashFilePath,qj as hashFile,rj as hashBuffer,tg as hasVueTemplateSyntax,Sf as hasVariables,wp as hasStore,pc as hasPlaceholders,_k as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Ug as hasDocumentShell,ei as hasDirectives,ma as hasDOMSupport,ql as handleImageRequest,qf as handleError,lr as h,ml as groupVariantsByFormat,Mp as grayscale,Do as gitHash,en as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Vk as getTotalSize,iq as getTimeUntilExpiry,_g as getStoreScript,xp as getStoreNames,vp as getStore,Ok as getStorageSize,Nk as getStorageKeys,xi as getSourceLineInfo,oi as getSharedTranspiler,Hf as getServeClientAsset,la as getScreenReaderOnlyStyle,ck as getScopeAttribute,Ve as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,ci as getPositionInfo,mc as getPlaceholderRegistry,pj as getPlaceholderCacheStats,Vd as getPageMeta,yd as getNonce,ol as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ze as getImagePlaceholder,il as getImageMetadata,we as getImageDelivery,qp as getHydrationRuntime,gm as getHydratedStoreState,Dk as getHmrServer,Ud as getHead,ip as getHMRHandler,bj as getFormatExtension,uj as getFileMtime,ll as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Fi as getDirectives,Ei as getDirective,Fl as getCurrentInstance,Nc as getCssServeAsset,Gd as getCspPreset,Pd as getCspHeaderName,Ai as getComponentCacheStats,Mj as getCachedVideoResult,mq as getCachedSignature,Ff as getCachedSignalsRuntime,Gf as getCachedRouterScript,nj as getCachedPlaceholder,Bj as getCachedImageResult,vj as getCached,yj as getCacheStats,Eg as getBuildId,pn as getBroadcastServer,aj as getBestVariant,tc as getAllFilters,Qi as generateWidthSrcset,Dh as generateVirtualListCSS,Tq as generateVideoPreview,ve as generateValidationScript,Uq as generateUploadRuntime,fn as generateTreeShakenBundle,ih as generateTransitionRuntime,hh as generateTransitionCSS,Qj as generateThumbnails,gj as generateThumbhashPlaceholder,Rn as generateTemplatesDocs,oh as generateSuspenseRuntime,nh as generateSuspenseCSS,lp as generateStateScript,_i as generateSrcsetData,Fj as generateSrcset,jl as generateSrcSet,Rj as generateSpriteSheet,ar as generateSpaShell,$i as generateSourceTags,Wi as generateSizesFromBreakpoints,Vi as generateSizesAttribute,kl as generateSizes,bg as generateSitemapIndex,zr as generateSitemap,vq as generateSimpleMediaPicker,pq as generateSignatureRuntime,zf as generateSignalsRuntimeDev,yf as generateSignalsRuntime,ic as generateServerDataBridge,$j as generateScopeId,jk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,dg as generateRobotsTxt,Ar as generateRobots,Ej as generateResponsiveVariants,fk as generateReactiveWebComponentTS,ek as generateReactiveWebComponent,hk as generateReactiveRuntime,gk as generateReactiveMixin,Pj as generatePoster,mj as generatePlaceholderStyle,lj as generatePlaceholderCSS,fj as generatePlaceholder,Nh as generatePartialHydrationCSS,xd as generateNonce,Wk as generateNetlifyToml,Wq as generateMinifiedMediaRuntime,Vq as generateMediaRuntime,uq as generateMediaManagerEmbed,Qm as generateManifest,dp as generateLoadingIndicatorHtml,Fq as generateLazyLoadRuntime,Km as generateLayoutTypes,ij as generateLQIP,yh as generateKeepAliveRuntime,xh as generateKeepAliveCSS,Uh as generateIslandManifest,Sq as generateImagePreview,Bl as generateImageManifest,pp as generateHydrationScript,Te as generateHydrationRuntime,sp as generateHydrationCSS,Hh as generateHydrationBootstrap,yk as generateHotReloadScript,jb as generateHeatmapScript,gp as generateHMRClientScript,Sj as generateHLSManifest,mp as generateEventBindings,Ui as generateDprSrcsetWithVariableQuality,Ti as generateDprSrcset,Sg as generateDocumentShell,Wn as generateDocs,Sn as generateDirectivesDocs,Ki as generateDirectiveRuntime,eg as generateDefaultRobotsTxt,Tj as generateDASHManifest,Pc as generateCss,Bd as generateCspMetaTag,Ad as generateCspHeader,vf as generateCompositionRuntime,Qn as generateComponentsDocs,Ih as generateComponentManifest,On as generateComponentDoc,kj as generateColorPlaceholder,yg as generateColorModeBootScript,Yl as generateClientRuntime,tj as generateCacheKey,gc as generateBrowserAutoImportDestructuring,Nq as generateBlurUpRuntime,Oq as generateBlurUpCSS,Tc as generateBindingsRuntime,Ri as generateAutoWidthSrcset,fc as generateAutoImportDestructuring,th as generateAsyncComponentRuntime,sh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Vc as generateAnalyticsScript,Zo as formatTypecheckDiagnostics,To as formatTypeErrors,so as formatStxContent,Uk as formatSize,Ta as formatRoutes,to as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,xr as formatDoctorReport,Tn as formatDocsAsMarkdown,Vn as formatDocsAsJson,Un as formatDocsAsHtml,Vp as format,kn as foldConstants,Up as flipVertical,Tp as flipHorizontal,Lm as fingerprint,Xo as findRuntimeTypeDeclarations,vr as findPantryPackage,vc as findMustacheEnd,nd as findMatchingEndTag,jd as findMatchingDelimiter,Kb as findInterpolationEnd,pd as findIfBlocks,sd as findExpressions,Sa as findErrorPage,Kc as findDuplicateScopedStyleRanges,qd as findDirectiveBlocks,gn as findDeadCode,gn as findDeadBranches,sm as findContainerRegion,Pn as findComponentFiles,$r as findCommonDir,Tk as filterRequiredFiles,vi as fileExists,Pf as extractVariables,ai as extractTemplateExpressions,Le as extractStreamBoundaries,np as extractState,ki as extractSlotContent,Rf as extractScriptFromTemplate,$h as extractScriptBlocks,nc as extractPlaceholders,md as extractParenthesizedExpression,$c as extractPageResponseStatus,hb as extractLayoutMetadata,jj as extractDominantColor,vd as extractDirectiveParams,fi as extractDirectiveNames,Em as extractContainerContent,Mn as extractComponentProps,Jh as extractComponentName,Nn as extractComponentDescription,Oc as extractClassNames,hc as extractBridgeData,Kh as extractBoundProps,kd as extractBalancedExpression,$b as extractAndStripCssImports,dk as extractAndScopeStyles,Hb as extractAndProcessEvents,Hk as externalizeSharedAssets,Ik as externalizeRepeatedAssets,Gk as externalizeHtml,Gc as evaluateExpression,jn as evaluateConstant,hd as evaluateAuthExpression,yc as escapeHtmlValue,xc as escapeHtml,C as errorRecovery,E as errorLogger,dh as ensureTeleportTargets,Wg as ensureDocumentShell,re as enhancedValidationRules,Kn as enableDevTools,hn as eliminateDeadCode,Ye as effect,aq as dprUrls,Xn as docsCommand,Yb as discoverServerApi,Im as discoverLayoutNames,Eq as disconnectObserver,Ln as disableDevTools,F as devHelpers,zm as detectShell,Yn as detectRuntime,Xk as detectProjectConfig,cj as detectFormat,bn as detectBuildMode,Xe as derived,$k as deploy,rk as defineStxConfig,Ap as defineStore,sf as defineSlots,Lr as defineSiteConfig,Pr as definePropsWithValidation,Or as defineProps,lk as definePlugin,$d as definePageMeta,Wa as defineMiddleware,Wh as defineForm,nf as defineExpose,mf as defineEmits,Hi as defineDirective,nr as defineCustomElement,Ao as defineConfig,Ii as defineClientDirective,qh as defineAsyncComponent,Co as defineApiHandler,Xq as defaultMediaConfig,Dl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,ie as defaultFormClasses,qc as defaultFilters,Rd as defaultCspConfig,nk as defaultConfig,Zr as default,Ic as deepMergeThemes,Lc as dedupeScopedStyles,vm as decodeTitleEntities,hj as decodeThumbhash,Md as cspNonceDirective,Ld as cspDirective,Lq as crossfadeTransition,Gp as crop,Bh as createVirtualList,Yj as createVideoDirective,jo as createVercelHandler,Qo as createTypeChecker,fa as createTranslateFilter,fo as createTextEncoderStream,mr as createStxApp,eo as createStreamingResponse,Ne as createStreamRenderer,yp as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,Hl as createScope,lh as createSSRSuspense,Ue as createRouter,Gm as createRouteRuleResolver,eb as createRouteLocation,Oo as createRoute,Il as createRef,Jl as createReactive,uf as createProvideContext,Fo as createProject,zo as createProductionBuild,lc as createPlaceholder,on as createOptimizedBuild,ko as createNetlifyHandler,Pk as createNetlifyClient,fb as createMiddlewareContext,No as createMiddleware,Cq as createLazyObserver,vh as createKeepAliveCache,ao as createKVNamespace,Lh as createIslandRegistry,Jj as createImgDirective,yl as createImagePlugin,rl as createImageHandler,wl as createImageDirective,nb as createHeatmapAggregator,Sk as createFileManifest,$n as createEnvAccessor,z as createEnhancedError,co as createEdgeHandler,bo as createEdgeCache,yi as createDetailedErrorMessage,io as createDenoHandler,Yk as createDefaultNetlifyConfig,Qd as createCspHeaders,mo as createCookie,Kl as createComputed,Gl as createComponentInstance,ho as createCloudflareHandler,Ya as createClientCookieManager,Ji as createBuiltinDirectives,mr as createApp,Ka as createAnimationTimeline,Jp as cover,Qf as convertToCommonJS,Qp as contrast,Ip as contain,y as consoleError,m as configureErrorHandling,qk as config,Kl as computed,Jn as compressResponse,qg as composerPattern,pg as composer,Bm as composeShellWithPage,Dn as componentDirective,ti as componentClientSignalNames,Pm as compileTemplate,a as collectRepeatedFlag,Rk as collectDeployFiles,Qg as cloakStyleFragment,Oj as clearVideoCache,N as clearTranslationCache,$g as clearStoreCache,Mk as clearStorage,nq as clearSignatureCache,xf as clearServerData,oj as clearPlaceholderCache,ig as clearOnceStore,zd as clearNonce,bb as clearMiddleware,Be as clearImagePlaceholders,xe as clearImageDeliveryCatalog,vl as clearImageCache,e as clearErrorMessages,If as clearDevCaches,uc as clearCustomFilters,sg as clearComposers,ah as clearComposableCache,zi as clearComponentCache,xj as clearCache,Db as clearBlankCache,cp as cleanupLoadingIndicator,pm as classifyScript,qm as classifyAllScripts,Ro as checkTemplateFile,So as checkTemplate,Kf as checkCache,kq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,yn as channel,ro as captureScreenshots,qo as captureScreenshot,Z as cancelPendingLoads,Qk as calculateSha1,Si as calculateOptimalWidths,Lf as cacheTemplate,Jf as cacheEngineFingerprint,_j as buildWebComponents,Uo as buildVirtualSource,Zq as buildViews,Cp as buildUrl,He as buildSuspenseResolveScript,Kr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Mm as buildRuntimeAsset,Nm as buildRouterAsset,Jr as buildLangPickerScript,Yi as buildImageUrl,Hg as buildIdFragment,Mg as buildHtmlAttrs,$m as buildForProduction,Gn as buildComponentLibrary,lq as buildAuthParams,an as buildApp,Hr as buildAlternateLinks,yo as build,wn as broadcastPrivate,xn as broadcastPresence,tn as broadcast,Pp as brightness,Mb as bracketDepths,Kp as blur,Eb as blankInertHtmlRegions,fq as batchSignUrls,Ze as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Xp as auto,ja as attributeValue,Om as assetTags,Fb as asInvocableStatement,Wr as arrayOf,Er as applyTranslations,Dj as applyTransformations,li as applySlots,Cn as applyPropDefaults,_p as applyPreset,Og as applyHtmlAttrs,ee as applyHead,Ec as applyFilters,xm as appendVary,Fd as apiCspPreset,Da as animationGroupDirective,Uj as analyzeVideo,dn as analyzeUsage,nm as analyzeTemplate,om as analyzeProject,dn as analyzeDirectiveUsage,Xc as analyticsDirective,Io as addStore,Ho as addPage,Jd as addNonceToInlineContent,Jo as addLayout,Go as addComponent,Xm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Ef as __setSignalsGeneratorsForTest,Fg as __setBuildIdForTest,Lj as VideoProcessorCache,Xh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,id as Tokenizer,Po as TemplateTypeChecker,uo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,ir as Show,Ie as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,tm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Yc as RESPONSE_STATUS_KEY,Zc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,xo as ProductionBuild,kr as Portal,Eo as PROJECT_TEMPLATES,Zp as PRESETS,sb as NON_CLIENT_PRIMITIVES,tp as MemorySessionStore,Pi as MIME_TYPES,Mi as MEDIA_DEFAULT_WIDTHS,Oi as MEDIA_DEFAULT_FORMATS,Hm as LAYOUT_TYPES_FILE,Aj as ImageProcessorCache,pl as ImageProcessingError,op as HydrationRuntime,xk as HotReloadServer,mb as HeatmapAggregator,Kg as HTML_CLASS_MARKER,Jg as HTML_ATTRS_MARKER,br as Fragment,jr as For,um as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Fk as EXTERNALIZED_ASSET_DIR,bl as DeployError,cl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,el as DEFAULT_QUALITY,dj as DEFAULT_PLACEHOLDER_OPTIONS,dl as DEFAULT_FORMATS,Ni as DEFAULT_DPR_VALUES,fp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Xi as COMMON_SIZES,wg as COLOR_MODE_BOOT_MARKER,xg as COLOR_MODE_BOOT_GLOBAL,Ig as CLOAK_STYLE,An as BroadcastServer,zn as Broadcast,Cg as BUILD_ID_META,Dg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,ej as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,ur as $path};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{createHash as n}from"crypto";import x from"fs";import K from"path";import{decode as $Q,generateThumbHash as JQ}from"ts-images";import{createImageDeliveryCatalog as f}from"ts-images/delivery";import R from"fs";function T(Q,$,Z){let M=Buffer.alloc(Z),J=R.readSync(Q,M,0,Z,$);return M.subarray(0,J)}function P(Q){if(Q.length<25)return!1;let $=(M,J)=>String.fromCharCode(...Q.subarray(M,J));if($(0,4)!=="RIFF"||$(8,12)!=="WEBP")return!1;let Z=$(12,16);if(Z==="VP8X")return(Q[20]&16)!==0;if(Z==="VP8L")return((Q[21]|Q[22]<<8|Q[23]<<16|Q[24]<<24)>>>28&1)===1;return!1}function m(Q){let $;try{$=R.openSync(Q,"r");let Z=T($,0,33);if(Z.length>=3&&Z[0]===255&&Z[1]===216&&Z[2]===255)return"none";if(Z.length>=26&&Z[0]===137&&Z.toString("latin1",1,4)==="PNG"){let M=Z[25];if(M===4||M===6)return"possible";let J=8;for(let X=0;X<64;X++){let G=T($,J,8);if(G.length<8)return"unknown";let Y=G.toString("latin1",4,8);if(Y==="tRNS")return"possible";if(Y==="IDAT"||Y==="IEND")return"none";J+=12+G.readUInt32BE(0)}return"unknown"}if(Z.length>=25&&Z.toString("latin1",0,4)==="RIFF"&&Z.toString("latin1",8,12)==="WEBP"){if(P(Z))return"possible";let M=Z.toString("latin1",12,16);return M==="VP8 "||M==="VP8X"?"none":"unknown"}return"unknown"}catch{return"unknown"}finally{if($!==void 0)R.closeSync($)}}import i from"fs";import O from"os";import{join as k}from"path";import{fileURLToPath as b}from"url";import{Worker as v}from"worker_threads";var I=Symbol("stx.image-worker.unavailable");function t(Q=typeof O.availableParallelism==="function"?O.availableParallelism():O.cpus().length){return Math.max(1,Math.min(2,Q-1))}var C=0,y=[];async function a(){if(C<t()){C++;return}await new Promise((Q)=>y.push(Q)),C++}function r(){C--,y.shift()?.()}var e="@stacksjs/stx/builtins/image-warmup-worker";function QQ(Q=process.cwd()){let $=import.meta.url.endsWith(".ts")?"ts":"js";try{let Z=new URL(`./image-warmup-worker.${$}`,import.meta.url);if(Z.protocol==="file:"&&i.existsSync(b(Z)))return b(Z)}catch{}try{let Z=typeof Bun<"u"?Bun.resolveSync(e,Q):void 0;return Z&&ZQ(Z)?Z:void 0}catch{return}}function ZQ(Q,$=process.env){let Z=Q.replace(/\\/g,"/");if(Z.split("/").some((J)=>/@\d[^/]*@@@\d+$/.test(J)))return!1;return![$.BUN_INSTALL_CACHE_DIR,k($.BUN_INSTALL||k(O.homedir(),".bun"),"install","cache")].filter((J)=>!!J).map((J)=>`${J.replace(/\\/g,"/").replace(/\/$/,"")}/`).some((J)=>Z.startsWith(J))}var g=!1;function N(Q){if(!g)g=!0,console.warn(`[stx] image worker unavailable (${Q}); running the image pass on the serving thread instead. Results are the same, but requests may stall while it runs.`);return I}function A(Q){return Q instanceof Error?Q.message:String(Q)}async function u(Q,$){if(typeof v!=="function")return N("node:worker_threads has no Worker in this runtime");let Z=QQ();if(!Z)return N("no image-warmup-worker entry beside this module or in the installed @stacksjs/stx");await a();try{return await new Promise((M,J)=>{let X;try{X=new v(Z)}catch(B){M(N(`could not start ${Z}: ${A(B)}`));return}let G=!1,Y=!1,q=(B)=>{if(Y)return;Y=!0,B(),X.terminate()};X.on("message",(B)=>{if(B.type==="ready"){G=!0,X.postMessage({task:Q,args:$});return}if(B.type==="result"){q(()=>M(B.value));return}let j=Error(B.error?.message??"image worker failed");if(B.error?.name)j.name=B.error.name;if(B.error?.stack)j.stack=B.error.stack;q(()=>J(j))}),X.on("error",(B)=>{q(()=>G?J(B instanceof Error?B:Error(A(B)||"image worker crashed")):M(N(`the worker failed before it was ready: ${A(B)}`)))}),X.on("exit",(B)=>{q(()=>G?J(Error("image worker exited before it finished")):M(N(`the worker exited with code ${B} before it was ready`)))})})}finally{r()}}var MQ=new Set([".avif",".jpeg",".jpg",".png",".webp"]),XQ=[320,640,960,1280,1920],L="/_stx/images",BQ=`stx:${L}:alpha-1`,GQ=["@stacksjs/ts-webp","@stacksjs/ts-avif"],W;function qQ(Q,$){let Z=K.dirname(Bun.resolveSync(Q,$));while(Z!==K.dirname(Z)){let M=K.join(Z,"package.json");if(x.existsSync(M)){let J=JSON.parse(x.readFileSync(M,"utf8"));if(J.name===Q)return J.version}Z=K.dirname(Z)}return}function bQ(Q){W=Q}function KQ(){if(W!==void 0)return W;let Q;try{Q=K.dirname(Bun.resolveSync("ts-images",import.meta.dir))}catch{}return W=GQ.map(($)=>{let Z;try{Z=Q?qQ($,Q):void 0}catch{}return`${$.replace("@stacksjs/","")}@${Z??"unknown"}`}).join("+"),W}var U=new Map,_=new Set,c=new Set;function YQ(Q){return`/${Q.split(K.sep).map(encodeURIComponent).join("/")}`}function xQ(Q){let $=K.extname(Q),Z=Q.slice(0,-$.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),M=n("sha256").update(Q).digest("hex").slice(0,8);return`${Z||"image"}-${M}`}function h(Q,$=`stx:${L}`){let Z=(M)=>`${L}/${M.split("/").map(encodeURIComponent).join("/")}`;return{cacheNamespace:$,async stat(M){let J=K.join(Q,M);try{let X=await x.promises.stat(J);return X.size>0?{bytes:X.size,path:J,url:Z(M)}:null}catch{return null}},async write(M,J){let X=K.join(Q,M);await x.promises.mkdir(K.dirname(X),{recursive:!0});let G=`${X}.${process.pid}.tmp`;return await x.promises.writeFile(G,J),await x.promises.rename(G,X),{bytes:J.byteLength,path:X,url:Z(M)}},url:Z}}async function l(Q,$=Q){let Z=await x.promises.readdir($,{withFileTypes:!0});Z.sort((J,X)=>J.name.localeCompare(X.name));let M=[];for(let J of Z){let X=K.join($,J.name);if(J.isDirectory()){M.push(...await l(Q,X));continue}if(!J.isFile()||!MQ.has(K.extname(J.name).toLowerCase()))continue;M.push({absolutePath:X,relativePath:K.relative(Q,X)})}return M}function p(Q,$){return Q.map((Z)=>({key:YQ(Z.relativePath),input:Z.absolutePath,name:xQ(Z.relativePath),...jQ(Z.absolutePath)?{options:{storage:$}}:{}}))}function jQ(Q){return m(Q)==="possible"}function zQ(Q){for(let $=3;$<Q.length;$+=4)if(Q[$]!==255)return!0;return!1}async function FQ(Q){let $=Object.entries(Q).filter(([,J])=>J.fallback.format==="png"),Z=new Set,M=8;for(let J=0;J<$.length;J+=8)await Promise.all($.slice(J,J+8).map(async([X,G])=>{let Y=G.variants.filter((q)=>q.format==="png").sort((q,B)=>q.width-B.width)[0];try{let q=await $Q(new Uint8Array(await x.promises.readFile(Y?.path??G.fallback.path)));if(zQ(q.data))Z.add(X)}catch{Z.add(X)}}));return Z}function VQ(Q,$){let Z=[];for(let M of $){let J=Q[M],X=J?.variants.filter((Y)=>Y.format==="webp")??[];if(!J||X.length===0)continue;if(!X.some((Y)=>{let q;try{return q=x.openSync(Y.path,"r"),!P(T(q,0,32))}catch{return!0}finally{if(q!==void 0)x.closeSync(q)}}))continue;if(J.variants=J.variants.filter((Y)=>Y.format!=="webp"),delete J.sources.webp,Z.push(M),!c.has(M))c.add(M),console.warn(`[stx-images] ${M} is transparent but its WebP variants have no alpha channel; serving PNG instead. Upgrade @stacksjs/ts-webp to 0.1.6 or later.`)}return Z}async function HQ(Q){let $=[],Z=8;for(let M=0;M<Q.length;M+=8){let J=Q.slice(M,M+8),X=await Promise.all(J.map(async(G)=>{try{return await JQ(G.absolutePath),G}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${G.relativePath}`),null}}));$.push(...X.filter((G)=>G!==null))}return $}function E(Q){return K.join(Q,"undecodable.json")}function NQ(Q){try{let $=x.readFileSync(E(Q),"utf-8"),Z=JSON.parse($);return Z&&typeof Z==="object"?Z:{}}catch{return{}}}function OQ(Q,$){try{x.mkdirSync(K.dirname(E(Q)),{recursive:!0}),x.writeFileSync(E(Q),JSON.stringify($))}catch{}}function d(Q){try{let $=x.statSync(Q);return{mtimeMs:$.mtimeMs,size:$.size}}catch{return}}function o(Q){if(!Q||Q.startsWith("data:")||Q.startsWith("blob:")||/^https?:\/\//i.test(Q)||Q.startsWith("//"))return;let $=Q.split(/[?#]/,1)[0];if(!$)return;try{return`/${$.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function vQ(Q){let $=o(Q);return $?U.get($):void 0}function gQ(Q){let $=o(Q);return $?_.has($):!1}function S(){U=new Map,_=new Set}function yQ(){return{entries:[...U],transparent:[..._]}}function WQ(Q){U=new Map(Q.entries),_=new Set(Q.transparent)}async function uQ(Q,$,Z={}){if(!Q||!x.existsSync(Q))return S(),{count:0,fingerprint:""};if(Z.offThread){let z=await u("delivery",{publicDir:Q,outputDir:$});if(z!==I)return WQ(z.state),z.result}let M=await l(Q);if(M.length===0)return S(),{count:0,fingerprint:""};let J=NQ($),X=M.filter((z)=>{let V=J[z.relativePath];if(!V)return!0;let F=d(z.absolutePath);return!F||F.mtimeMs!==V.mtimeMs||F.size!==V.size});if(X.length===0)return S(),{count:0,fingerprint:""};let G=h(K.join($,"_stx","images"),`${BQ}:${KQ()}`),Y={outDir:K.join($,"_stx","images"),storage:h(K.join($,"_stx","images")),baseUrl:L,widths:XQ,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},q=X,B;try{B=await f({...Y,entries:p(X,G)})}catch(z){if(q=await HQ(X),q.length===X.length)throw z;let V=new Set(q.map((H)=>H.relativePath)),F=!1;for(let H of X){if(V.has(H.relativePath))continue;let D=d(H.absolutePath);if(!D)continue;J[H.relativePath]=D,F=!0}if(F)OQ($,J);if(q.length===0)return S(),{count:0,fingerprint:""};B=await f({...Y,entries:p(q,G)})}let j=await FQ(B.entries),w=VQ(B.entries,j);U=new Map(Object.entries(B.entries)),_=j;let s=j.size===0&&w.length===0?B.fingerprint:n("sha256").update(B.fingerprint).update(JSON.stringify({transparent:[...j].sort(),droppedWebp:w.sort()})).digest("hex");return{count:q.length,fingerprint:s}}
|
|
3
|
-
export{P as
|
|
3
|
+
export{P as ot,m as pt,I as qt,u as rt,bQ as st,KQ as tt,vQ as ut,gQ as vt,S as wt,yQ as xt,WQ as yt,uQ as zt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Kg as a,Lg as b,Mg as c,Ng as d,Og as e,Pg as f}from"./chunk-hfzv07az.js";import"./chunk-e3rgky2r.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-nhbc464j.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-kermxyfe.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-w0hzaka3.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
|
|
@@ -318,4 +318,4 @@ else {
|
|
|
318
318
|
console.log('[stx] Transition runtime initialized');
|
|
319
319
|
})();
|
|
320
320
|
`}function $(b){let j=/@transition\.([a-z-]+)(?:\.(\d+))?="([^"]+)"/gi;return b.replace(j,(B,q,A,z)=>{let F=A||"300",G=`stx-t-${Math.random().toString(36).slice(2,7)}`;return`data-stx-transition="${q}" data-stx-transition-duration="${F}" data-stx-transition-condition="${z}" data-stx-transition-id="${G}"`})}
|
|
321
|
-
export{W as
|
|
321
|
+
export{W as ki,X as li,Y as mi,Z as ni,_ as oi,$ as pi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{nj as o,oj as p,pj as q}from"./chunk-tsmdmf5h.js";import{Aj as f,Bj as g,Cj as h,Dj as i,Ej as j,Fj as k,Gj as l,Hj as m,Ij as n,vj as a,wj as b,xj as c,yj as d,zj as e}from"./chunk-e4g8wz6t.js";import"./chunk-deqnt1w5.js";import"./chunk-5g6rprcy.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{mf as t,nf as u,of as v,pf as w,qf as x,rf as y,sf as z,tf as A,uf as B,vf as C,wf as D,xf as E}from"./chunk-
|
|
2
|
+
import{mf as t,nf as u,of as v,pf as w,qf as x,rf as y,sf as z,tf as A,uf as B,vf as C,wf as D,xf as E}from"./chunk-tr9ynxdw.js";import{yf as r,zf as s}from"./chunk-m11pb9cx.js";import{Af as b,Bf as c,Cf as d,Df as e,Ef as f,Ff as g,Gf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-xe6zmdfq.js";import{di as a}from"./chunk-g6czgcg4.js";import"./chunk-ay336sqb.js";import"./chunk-5g6rprcy.js";export{D as writeImageManifest,a as rewriteImagesWithSiblings,t as renderImageComponent,v as processImageComponents,g as processImage,u as parseImageComponent,A as optimizeImage,B as optimizeDirectory,e as isSharpAvailable,m as isImageFile,f as isImageBackendAvailable,y as imageDirective,r as handleImageRequest,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,h as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,C as generateImageManifest,p as formatSize,E as defaultImageConfig,z as createImagePlugin,s as createImageHandler,x as createImageDirective,w as clearImageCache,q as ImageProcessingError,b as DEFAULT_WIDTHS,d as DEFAULT_QUALITY,c as DEFAULT_FORMATS};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function D(j){return j}class F{plugins=new Map;sortedPlugins=[];initialized=!1;async register(j,q){if(this.plugins.has(j.name))throw Error(`Plugin "${j.name}" is already registered`);if(j.dependencies){for(let w of j.dependencies)if(!this.plugins.has(w))throw Error(`Plugin "${j.name}" depends on "${w}" which is not registered`)}if(this.plugins.set(j.name,j),j.onRegister)await j.onRegister(q);this.sortPlugins()}async unregister(j){let q=this.plugins.get(j);if(!q)return!1;for(let[w,z]of this.plugins)if(z.dependencies?.includes(j))throw Error(`Cannot unregister "${j}" because "${w}" depends on it`);if(q.onUnregister)await q.onUnregister();return this.plugins.delete(j),this.sortPlugins(),!0}get(j){return this.plugins.get(j)}has(j){return this.plugins.has(j)}getAll(){return[...this.sortedPlugins]}getAllDirectives(){let j=[];for(let q of this.sortedPlugins)if(q.registerDirectives)j.push(...q.registerDirectives());return j}getAllFilters(){let j={};for(let q of this.sortedPlugins)if(q.registerFilters)Object.assign(j,q.registerFilters());return j}async runBeforeProcess(j){return this.runHooks("beforeProcess",j)}async runAfterParse(j){return this.runHooks("afterParse",j)}async runBeforeDirective(j,q){return this.runDirectiveHooks("beforeDirective",j,q)}async runAfterDirective(j,q){return this.runDirectiveHooks("afterDirective",j,q)}async runBeforeRender(j){return this.runHooks("beforeRender",j)}async runAfterRender(j){return this.runHooks("afterRender",j)}async runOnError(j){for(let q of this.sortedPlugins)if(q.onError)try{let w=await q.onError(j);if(w){if(w.template!==void 0)j.template=w.template;if(w.context)j.context={...j.context,...w.context};if(w.metadata)j.metadata={...j.metadata,...w.metadata};if(w.skip)return j}}catch(w){console.error(`Error in plugin "${q.name}" onError hook:`,w)}return null}sortPlugins(){this.sortedPlugins=Array.from(this.plugins.values()).sort((j,q)=>(j.priority??100)-(q.priority??100))}async runHooks(j,q){let w={...q};for(let z of this.sortedPlugins){let B=z[j];if(B)try{let y=await B(w);if(y){if(y.template!==void 0)w.template=y.template;if(y.context)w.context={...w.context,...y.context};if(y.metadata)w.metadata={...w.metadata,...y.metadata};if(y.skip)break}}catch(y){console.error(`Error in plugin "${z.name}" ${j} hook:`,y)}}return w}async runDirectiveHooks(j,q,w){let z={...w};for(let B of this.sortedPlugins){let y=B[j];if(y)try{let A=await y(q,z);if(A){if(A.template!==void 0)z.template=A.template;if(A.context)z.context={...z.context,...A.context};if(A.metadata)z.metadata={...z.metadata,...A.metadata};if(A.skip)break}}catch(A){console.error(`Error in plugin "${B.name}" ${j} hook:`,A)}}return z}}var G=new F;function H(j,q,w={}){return{name:j,...w,registerDirectives:()=>q}}function I(j,q,w={}){return{name:j,...w,registerFilters:()=>q}}var J=D({name:"stx-debug",version:"1.0.0",description:"Logs all plugin lifecycle events for debugging",priority:0,beforeProcess(j){console.log("[stx-debug] beforeProcess:",j.filePath)},afterParse(j){console.log("[stx-debug] afterParse:",j.template.length,"chars")},beforeDirective(j,q){console.log("[stx-debug] beforeDirective:",j)},afterDirective(j,q){console.log("[stx-debug] afterDirective:",j)},beforeRender(j){console.log("[stx-debug] beforeRender")},afterRender(j){console.log("[stx-debug] afterRender:",j.template.length,"chars")},onError(j){console.error("[stx-debug] onError:",j.error.message,"in phase:",j.phase)}}),K=D({name:"stx-timing",version:"1.0.0",description:"Measures template processing time",priority:1,beforeProcess(j){j.metadata.startTime=performance.now()},afterRender(j){let q=j.metadata.startTime;if(q){let w=performance.now()-q;console.log(`[stx-timing] Processing took ${w.toFixed(2)}ms`)}}});function L(j){return D({name:"stx-variables",version:"1.0.0",description:"Adds predefined variables to template context",beforeProcess(q){return{context:{...q.context,...j}}}})}
|
|
3
|
-
export{D as
|
|
3
|
+
export{D as th,F as uh,G as vh,H as wh,I as xh,J as yh,K as zh,L as Ah};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ah as h,th as a,uh as b,vh as c,wh as d,xh as e,yh as f,zh as g}from"./chunk-sqvqwd0p.js";import"./chunk-5g6rprcy.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Jj as a,Kj as b,Lj as c,Mj as d,Nj as e,Oj as f,Pj as g,Qj as h,Rj as i,Sj as j,Tj as k,Uj as l,Vj as m}from"./chunk-aftqqqcg.js";import"./chunk-e3rgky2r.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-nhbc464j.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-kermxyfe.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-w0hzaka3.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,m as hashFilePath,h as getServeClientAsset,f as getCachedSignalsRuntime,g as getCachedRouterScript,i as clearDevCaches,k as checkCache,l as cacheTemplate,j as cacheEngineFingerprint,e as __setSignalsGeneratorsForTest};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{existsSync as U,statSync as V}from"fs";import z from"path";var W=/[*?[\]{}]/;function X(D){return W.test(D)}async function $(D,E={}){let H=E.cwd??process.cwd(),N=E.recursive!==!1,Q=E.ignorePaths??[],J=globalThis.Bun.Glob,K=new Set,F=(j)=>{if(j.includes(`${z.sep}node_modules${z.sep}`)||j.includes(`${z.sep}dist${z.sep}`))return;if(Q.some((q)=>q&&j.includes(z.normalize(q))))return;K.add(j)},R=async(j)=>{try{for await(let q of new J(j).scan({cwd:H,absolute:!0}))F(q)}catch{}};for(let j of D){if(!j)continue;if(X(j)){await R(j);continue}let q=z.resolve(H,j);if(!U(q))continue;if(V(q).isDirectory()){for await(let T of new J(N?"**/*.stx":"*.stx").scan({cwd:q,absolute:!0}))F(T);continue}F(q)}return[...K].sort()}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as hs,$ as is};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ye as a}from"./chunk-823h67tv.js";import"./chunk-fw56y3cb.js";import"./chunk-57atgbyq.js";import"./chunk-1yj4xd6n.js";import"./chunk-e3rgky2r.js";import"./chunk-d7zxg9bp.js";import"./chunk-t00ga194.js";import"./chunk-hrdd26r4.js";import"./chunk-7r79j1hs.js";import"./chunk-ay336sqb.js";import"./chunk-nhbc464j.js";import"./chunk-vaggjvsm.js";import"./chunk-q9ckfwhh.js";import"./chunk-kermxyfe.js";import"./chunk-k3dtvay1.js";import"./chunk-aved735s.js";import"./chunk-799s9mwc.js";import"./chunk-7r80apc5.js";import"./chunk-2tjk867y.js";import"./chunk-t8ctvjqe.js";import"./chunk-deqnt1w5.js";import"./chunk-w0hzaka3.js";import"./chunk-wb90259a.js";import"./chunk-5g6rprcy.js";export{a as startProductionServer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Mh as a,Nh as b,Oh as c,Ph as d,Qh as e,Rh as f,Sh as g,Th as h,Uh as i,Vh as j,Wh as k}from"./chunk-a959m68j.js";import"./chunk-5g6rprcy.js";export{i as processStaticDirectives,b as processPartialHydrationDirectives,h as onHydrated,g as isHydrated,d as hydrateIsland,e as hydrateByStrategy,f as hydrateAll,c as generatePartialHydrationCSS,j as generateIslandManifest,k as default,a as createIslandRegistry};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{vi as a,wi as b,xi as c,yi as d,zi as e}from"./chunk-zk6ghjnj.js";import"./chunk-5g6rprcy.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Af as L,Bf as w,Cf as x,Df as p,Ef as F,Ff as T,If as I,Jf as f,Kf as l,Lf as n,Mf as i,Nf as P,Of as o,Pf as a}from"./chunk-
|
|
2
|
+
import{Af as L,Bf as w,Cf as x,Df as p,Ef as F,Ff as T,If as I,Jf as f,Kf as l,Lf as n,Mf as i,Nf as P,Of as o,Pf as a}from"./chunk-xe6zmdfq.js";import{ws as ZG}from"./chunk-ay336sqb.js";function HG(X,Z={}){let{src:G,alt:J,width:q,height:$,sizes:K="100vw",loading:Q="lazy",priority:Y=!1,quality:M=x,placeholder:N="none",formats:j=w,widths:C=L,decoding:B="async",fetchpriority:V,objectFit:O,objectPosition:W}=X,H=X.class,z=X.style,{processedImage:R,variants:_,optimize:E=!0,isDev:S=!1}=Z;if(_&&_.length>0)return OG(X,_,R);if(S||!E)return MG(X);return VG(X)}function OG(X,Z,G){let{src:J,alt:q,width:$,height:K,sizes:Q="100vw",loading:Y="lazy",priority:M=!1,decoding:N="async",fetchpriority:j,objectFit:C,objectPosition:B,placeholder:V="none"}=X,O=X.class,W=X.style,H=n(Z),z=l(Z),R=typeof Q==="object"?f(Q):Q,_=G?G.aspectRatio:$&&K?Number($)/Number(K):void 0,E=[];if(_)E.push(`aspect-ratio: ${_}`);if(C)E.push(`object-fit: ${C}`);if(B)E.push(`object-position: ${B}`);if(W)E.push(W);let S=E.length>0?` style="${E.join("; ")}"`:"",b=O?` class="${O}"`:"",u=M?"":` loading="${Y}"`,d=` decoding="${N}"`,h=j?` fetchpriority="${j}"`:M?' fetchpriority="high"':"",r=["avif","webp","jpeg","png"],s=[];for(let U of r){let D=H.get(U);if(D&&D.length>0){let m=I(D),QG=P(U);s.push(` <source type="${QG}" srcset="${m}" sizes="${R}" />`)}}let e="",t="",g;if(V!=="none"&&G?.placeholder){let U=`img-${Math.random().toString(36).slice(2,8)}`;if(e=`<div class="stx-image-wrapper" id="${U}">`,t="</div>",V==="blur")g=`
|
|
3
3
|
#${U} {
|
|
4
4
|
position: relative;
|
|
5
5
|
background-image: url('${G.placeholder}');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Aj as M,Ej as E,Fj as P,Gj as O,Hj as I,vj as B,wj as R,xj as H,yj as S,zj as F}from"./chunk-e4g8wz6t.js";import{uv as L}from"./chunk-deqnt1w5.js";var w=null;function j(){return w}function f(z,W){if(w)w.provides.set(z,W);else V.set(z,W)}function k(z,W){let Q=w;while(Q){if(Q.provides.has(z))return Q.provides.get(z);Q=Q.parent}if(V.has(z))return V.get(z);return W}var V=new Map;function v(z,W){V.set(z,W)}function U(z){let W=w,Q=W?.el,Z=Array.isArray(z)?z:z&&typeof z==="object"?Object.keys(z):[];if(Q&&Z.length>0){let $=Q.__stx_component_emits||=Object.create(null);for(let Y of Z)$[Y]=!0}let _=($,...Y)=>{if(typeof document>"u")return;if(Q){let X=Q.__stx_component_emits||=Object.create(null);X[$]=!0,Q.dispatchEvent(new CustomEvent($,{detail:Y.length===1?Y[0]:Y,bubbles:!0,cancelable:!0}))}};if(W)W.emit=_;return _}function g(z){if(w)w.exposed=z}function m(z){let W=Promise.resolve();return z?W.then(z):W}function y(z){if(w)w.errorCapturedHooks.push(z)}function h(z,W,Q){let Z=W?.parent;while(Z){for(let _ of Z.errorCapturedHooks)if(_(z,W,Q)===!1)return;Z=Z.parent}}function p(){return w?.slots??{}}function u(){return w?.slots??{}}function l(){return w?.attrs??{}}function d(z){let W=z.__provides?new Map(Object.entries(z.__provides)):new Map;return{...z,__provides:W,__provide(Q,Z){W.set(Q,Z)},__inject(Q,Z){if(W.has(Q))return W.get(Q);if(z.__provides){let _=z.__provides instanceof Map?z.__provides:new Map(Object.entries(z.__provides));if(_.has(Q))return _.get(Q)}return Z}}}function i(){return`
|
|
3
3
|
// STX Composition API Runtime
|
|
4
4
|
(function() {
|
|
5
5
|
const _provides = new Map();
|
|
@@ -4066,24 +4066,23 @@ catch (e) {
|
|
|
4066
4066
|
// Helper to hide empty state
|
|
4067
4067
|
const hideEmpty = () => {
|
|
4068
4068
|
if (emptyElement) {
|
|
4069
|
-
|
|
4069
|
+
// A string @empty renders a text node, which has no subtree to dispose.
|
|
4070
|
+
if (emptyElement.nodeType === 1) disposeSubtreeEffects(emptyElement);
|
|
4070
4071
|
emptyElement.remove();
|
|
4071
4072
|
emptyElement = null;
|
|
4072
4073
|
}
|
|
4073
4074
|
};
|
|
4074
4075
|
|
|
4075
|
-
// Map of key \u2192 item signal. When a keyed item is reused and its data
|
|
4076
|
-
// changes, we update the signal \u2014 all bindings (:text, :if, :class)
|
|
4077
|
-
// that track it automatically re-evaluate.
|
|
4078
|
-
const itemSignalMap = new Map();
|
|
4079
|
-
|
|
4080
4076
|
// Helper: create DOM element(s) for a single list item.
|
|
4081
|
-
// The item is wrapped in a signal so bindings track it reactively.
|
|
4077
|
+
// The item is wrapped in a signal so bindings track it reactively. The pair
|
|
4078
|
+
// rides on the returned group, so reuse always reaches the signals the
|
|
4079
|
+
// bindings of THAT row actually read. A Map from key to signals could not:
|
|
4080
|
+
// two rows sharing a key overwrote each other in it, and the row that
|
|
4081
|
+
// reused the surviving entry was then bound to a signal nothing updated.
|
|
4082
4082
|
const createItemElements = (item, index, key) => {
|
|
4083
4083
|
const itemSignal = state(item);
|
|
4084
4084
|
itemSignal._isStxLoopItem = true;
|
|
4085
4085
|
const indexSignal = state(index);
|
|
4086
|
-
if (key) itemSignalMap.set(key, { item: itemSignal, index: indexSignal });
|
|
4087
4086
|
|
|
4088
4087
|
const itemScope = { ...globalHelpers, ...passedScope, ...(capturedScope || {}) };
|
|
4089
4088
|
itemScope[itemName] = itemSignal;
|
|
@@ -4111,6 +4110,7 @@ catch (e) {
|
|
|
4111
4110
|
});
|
|
4112
4111
|
}
|
|
4113
4112
|
remapForComponentScopes(elements);
|
|
4113
|
+
elements.__stx_signals = { item: itemSignal, index: indexSignal };
|
|
4114
4114
|
return elements;
|
|
4115
4115
|
};
|
|
4116
4116
|
|
|
@@ -4223,10 +4223,16 @@ catch (e) {
|
|
|
4223
4223
|
clearRenderedItems();
|
|
4224
4224
|
if (emptyExpr) {
|
|
4225
4225
|
const emptyContent = evalLazy(emptyExpr);
|
|
4226
|
+
// Held in the same slot the @for-empty template uses, so hideEmpty
|
|
4227
|
+
// takes it away when the list fills and a second empty render
|
|
4228
|
+
// replaces it instead of stacking another one. It used to go into
|
|
4229
|
+
// currentElements, which teardown does not walk -- it walks
|
|
4230
|
+
// currentGroups -- so the text stayed in the document forever: an
|
|
4231
|
+
// empty list that filled read "Nothing herea".
|
|
4232
|
+
hideEmpty();
|
|
4226
4233
|
if (emptyContent && typeof emptyContent === 'string') {
|
|
4227
|
-
|
|
4228
|
-
parent.insertBefore(
|
|
4229
|
-
currentElements.push(textNode);
|
|
4234
|
+
emptyElement = document.createTextNode(emptyContent);
|
|
4235
|
+
parent.insertBefore(emptyElement, placeholder);
|
|
4230
4236
|
}
|
|
4231
4237
|
} else if (emptyTemplate) {
|
|
4232
4238
|
showEmpty();
|
|
@@ -4260,7 +4266,15 @@ catch (e) {
|
|
|
4260
4266
|
// Build new element list, reusing existing DOM nodes by key
|
|
4261
4267
|
const newElements = [];
|
|
4262
4268
|
const newGroups = [];
|
|
4263
|
-
|
|
4269
|
+
// Keys seen in THIS pass, for the duplicate warning only. Reuse is decided
|
|
4270
|
+
// by whether a group under the key is still unconsumed, not by whether the
|
|
4271
|
+
// key has been seen: gating it on the key made every duplicate occurrence
|
|
4272
|
+
// build a NEW group, while the removal pass below skipped the key as used
|
|
4273
|
+
// and left the old ones in the document. The list grew by one row on every
|
|
4274
|
+
// update, without bound, and the first duplicate stayed bound to a signal
|
|
4275
|
+
// the reconciliation never wrote to.
|
|
4276
|
+
const seenKeys = new Set();
|
|
4277
|
+
let warnedDuplicateKey = false;
|
|
4264
4278
|
|
|
4265
4279
|
// Minimal-move reconciliation.
|
|
4266
4280
|
//
|
|
@@ -4287,7 +4301,13 @@ catch (e) {
|
|
|
4287
4301
|
const key = newKeys[i];
|
|
4288
4302
|
const existing = oldKeyMap.get(key);
|
|
4289
4303
|
|
|
4290
|
-
if (
|
|
4304
|
+
if (seenKeys.has(key) && !warnedDuplicateKey) {
|
|
4305
|
+
warnedDuplicateKey = true;
|
|
4306
|
+
console.warn('[STX] :for has more than one item with the key ' + key + '. Rows are matched in order, so give each item a key of its own.');
|
|
4307
|
+
}
|
|
4308
|
+
seenKeys.add(key);
|
|
4309
|
+
|
|
4310
|
+
if (existing && existing.length > 0) {
|
|
4291
4311
|
// Reuse this item's nodes \u2014 move the whole group into position, in
|
|
4292
4312
|
// order, so a multi-node row stays contiguous and correctly ordered.
|
|
4293
4313
|
// A structural directive may intentionally have detached one of the
|
|
@@ -4311,11 +4331,10 @@ catch (e) {
|
|
|
4311
4331
|
}
|
|
4312
4332
|
newElements.push(...group);
|
|
4313
4333
|
newGroups.push(group);
|
|
4314
|
-
usedKeys.add(key);
|
|
4315
4334
|
// Update the item signal so bindings re-evaluate with new data.
|
|
4316
4335
|
// This is the fix for #1669 \u2014 without this, reused elements show
|
|
4317
4336
|
// stale data because the old bindings captured the old item via closure.
|
|
4318
|
-
const signals =
|
|
4337
|
+
const signals = group.__stx_signals;
|
|
4319
4338
|
if (signals) {
|
|
4320
4339
|
signals.item.set(list[i]);
|
|
4321
4340
|
signals.index.set(i);
|
|
@@ -4354,8 +4373,12 @@ catch (e) {
|
|
|
4354
4373
|
// Remove old elements whose keys are no longer in the list.
|
|
4355
4374
|
// Dispose any scopes registered inside removed items before the
|
|
4356
4375
|
// remove() call (#1727).
|
|
4357
|
-
|
|
4358
|
-
|
|
4376
|
+
// Whatever is still in here was not consumed above -- either the key left
|
|
4377
|
+
// the list, or the list now has fewer rows under that key than it did.
|
|
4378
|
+
// The test used to be "this key was never used", which could not see the
|
|
4379
|
+
// second case, so a duplicate key's leftover rows stayed on screen.
|
|
4380
|
+
for (const groups of oldKeyMap.values()) {
|
|
4381
|
+
if (groups.length > 0) {
|
|
4359
4382
|
// In a transition group, run the leave animation and let it remove the
|
|
4360
4383
|
// node; otherwise remove immediately. Scopes are disposed up-front
|
|
4361
4384
|
// either way (their destroy hooks shouldn't wait on a CSS transition).
|
|
@@ -4380,7 +4403,8 @@ catch (e) {
|
|
|
4380
4403
|
removeGroup(group);
|
|
4381
4404
|
}
|
|
4382
4405
|
});
|
|
4383
|
-
|
|
4406
|
+
// The row's signals went with its group, so there is no key-indexed
|
|
4407
|
+
// map left to prune here.
|
|
4384
4408
|
}
|
|
4385
4409
|
}
|
|
4386
4410
|
|
|
@@ -4474,9 +4498,27 @@ catch (e) {
|
|
|
4474
4498
|
// branch rendered blank the moment the markup was well-formed enough to
|
|
4475
4499
|
// survive as a real <template> (the #1784 markup fix). See #1784.
|
|
4476
4500
|
b.isTemplate = b.el.tagName === 'TEMPLATE';
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4501
|
+
// A template branch renders CLONES, re-cloned on every show, and marks
|
|
4502
|
+
// where they end -- the same contract the single-template :if got in
|
|
4503
|
+
// #1955. Its content was cloned once here and that one node set was
|
|
4504
|
+
// toggled in and out, which broke two ways as soon as the branch held a
|
|
4505
|
+
// structural directive: a :for inside it replaces its own source element
|
|
4506
|
+
// with a placeholder comment and renders rows as SIBLINGS, so hiding
|
|
4507
|
+
// removed neither (the rows were never in this list, and the source node
|
|
4508
|
+
// it did hold was already detached, so the parentNode guard skipped it)
|
|
4509
|
+
// and both branches stayed on screen at once. Re-showing then re-inserted
|
|
4510
|
+
// that source element, painting the literal text of its interpolations.
|
|
4511
|
+
// An element branch still owns exactly the node it was bound to: whatever
|
|
4512
|
+
// a directive inside it renders is inside that element.
|
|
4513
|
+
// Snapshot the content BEFORE anything processes it, and clone each show
|
|
4514
|
+
// from the snapshot rather than from the live template. A nested :for
|
|
4515
|
+
// does not leave content pristine -- processing moves its row source out
|
|
4516
|
+
// and the attributes it consumed (x-model, :id) do not come back -- so a
|
|
4517
|
+
// second clone taken from the element would arrive already stripped, with
|
|
4518
|
+
// no binding and no way to acquire one.
|
|
4519
|
+
b.pristine = b.isTemplate ? b.el.content.cloneNode(true) : null;
|
|
4520
|
+
b.nodes = b.isTemplate ? [] : [b.el];
|
|
4521
|
+
b.endMarker = null;
|
|
4480
4522
|
b.el.remove();
|
|
4481
4523
|
b.childrenProcessed = false;
|
|
4482
4524
|
});
|
|
@@ -4560,17 +4602,53 @@ catch (e2) {
|
|
|
4560
4602
|
// components under reactive conditionals (#1737). Permanent disposal is
|
|
4561
4603
|
// still handled by bindFor (item removal) and cleanupContainer (SPA nav).
|
|
4562
4604
|
if (currentIdx !== -1) {
|
|
4563
|
-
chain[currentIdx]
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
//
|
|
4568
|
-
//
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4605
|
+
var gone = chain[currentIdx];
|
|
4606
|
+
gone.el.__stx_chain_active = false;
|
|
4607
|
+
|
|
4608
|
+
if (gone.isTemplate) {
|
|
4609
|
+
// Everything this branch rendered goes, not just the clones it owns:
|
|
4610
|
+
// a nested :for or :if renders siblings of its own that no clone list
|
|
4611
|
+
// contains. The marker bounds the range, so a sibling that belongs to
|
|
4612
|
+
// a later branch or to ordinary markup is never touched.
|
|
4613
|
+
if (gone.endMarker && gone.endMarker.parentNode) {
|
|
4614
|
+
var host = gone.endMarker.parentNode;
|
|
4615
|
+
var doomed = gone.placeholder.nextSibling;
|
|
4616
|
+
while (doomed && doomed !== gone.endMarker) {
|
|
4617
|
+
var nextDoomed = doomed.nextSibling;
|
|
4618
|
+
disposeSubtreeEffects(doomed);
|
|
4619
|
+
host.removeChild(doomed);
|
|
4620
|
+
doomed = nextDoomed;
|
|
4621
|
+
}
|
|
4622
|
+
gone.endMarker.remove();
|
|
4623
|
+
gone.endMarker = null;
|
|
4624
|
+
}
|
|
4625
|
+
gone.nodes.forEach(function (n) {
|
|
4626
|
+
if (!n.parentNode) return;
|
|
4627
|
+
disposeSubtreeEffects(n);
|
|
4628
|
+
n.parentNode.removeChild(n);
|
|
4629
|
+
});
|
|
4630
|
+
// The next show clones afresh and processes again, so these effects
|
|
4631
|
+
// are finished with; leaving them bound only accumulates work (#1954).
|
|
4632
|
+
if (typeof gone.el.__stx_chain_disposers === 'function') {
|
|
4633
|
+
try { gone.el.__stx_chain_disposers(); }
|
|
4634
|
+
catch (e) { /* a disposer of its own is not this branch's problem */ }
|
|
4635
|
+
gone.el.__stx_chain_disposers = null;
|
|
4636
|
+
}
|
|
4637
|
+
gone.nodes = [];
|
|
4638
|
+
gone.childrenProcessed = false;
|
|
4639
|
+
}
|
|
4640
|
+
else {
|
|
4641
|
+
gone.nodes.forEach(function (n) {
|
|
4642
|
+
if (!n.parentNode) return;
|
|
4643
|
+
// Detached nodes are out of reach of a DOM walk, so a row removed
|
|
4644
|
+
// while this branch is hidden could not dispose the effects it was
|
|
4645
|
+
// processed with (#1954). Same registry the single-element :if uses.
|
|
4646
|
+
var host = n.parentNode;
|
|
4647
|
+
if (!host.__stx_detached_if) host.__stx_detached_if = new Set();
|
|
4648
|
+
host.__stx_detached_if.add(n);
|
|
4649
|
+
host.removeChild(n);
|
|
4650
|
+
});
|
|
4651
|
+
}
|
|
4574
4652
|
}
|
|
4575
4653
|
|
|
4576
4654
|
// Insert + process the newly-picked branch.
|
|
@@ -4580,11 +4658,19 @@ catch (e2) {
|
|
|
4580
4658
|
// Insert this branch's node(s) before the placeholder's next sibling.
|
|
4581
4659
|
// The anchor is captured once so the nodes stack in source order.
|
|
4582
4660
|
var anchor = pick.placeholder.nextSibling;
|
|
4661
|
+
var pickHost = pick.placeholder.parentNode;
|
|
4662
|
+
if (pick.isTemplate && pick.nodes.length === 0)
|
|
4663
|
+
pick.nodes = Array.prototype.slice.call(pick.pristine.cloneNode(true).childNodes);
|
|
4583
4664
|
pick.nodes.forEach(function (n) {
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
host.insertBefore(n, anchor);
|
|
4665
|
+
if (pickHost.__stx_detached_if) pickHost.__stx_detached_if.delete(n);
|
|
4666
|
+
pickHost.insertBefore(n, anchor);
|
|
4587
4667
|
});
|
|
4668
|
+
// Bound AFTER the clones, so hiding can remove whatever a structural
|
|
4669
|
+
// directive inside the branch renders as their sibling.
|
|
4670
|
+
if (pick.isTemplate) {
|
|
4671
|
+
if (!pick.endMarker) pick.endMarker = document.createComment('stx-if-chain-end');
|
|
4672
|
+
pickHost.insertBefore(pick.endMarker, anchor);
|
|
4673
|
+
}
|
|
4588
4674
|
pick.el.__stx_shown_at = performance.now();
|
|
4589
4675
|
if (!pick.childrenProcessed) {
|
|
4590
4676
|
pick.childrenProcessed = true;
|
|
@@ -8492,4 +8578,4 @@ catch (e) { console.warn('[stx] destroy callback error:', e); }
|
|
|
8492
8578
|
}
|
|
8493
8579
|
})();
|
|
8494
8580
|
`}var Yz={state:B,derived:R,effect:H,batch:S,onMount:F,onDestroy:M,isSignal:E,isDerived:P,untrack:O,peek:I,generateSignalsRuntime:C,generateSignalsRuntimeDev:x};
|
|
8495
|
-
export{f as
|
|
8581
|
+
export{f as _i,k as $i,v as aj,U as bj,g as cj,m as dj,y as ej,h as fj,p as gj,u as hj,l as ij,d as jj,i as kj,n as lj,D as mj,C as nj,x as oj,Yz as pj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import C from"path";var G=".stx",K="STX_DIR",J=null;function O(j){J=j?.trim()||null}function H(){return process.env[K]?.trim()||J||G}function Q(j=process.cwd(),...q){let B=H();return C.isAbsolute(B)?C.join(B,...q):C.join(j,B,...q)}function W(j){if(!j||C.isAbsolute(j))return j;let q=j.replace(/\\/g,"/");if(q!==G&&!q.startsWith(`${G}/`))return j;let B=q.slice(G.length+1);return B?C.join(H(),B):H()}
|
|
3
|
-
export{G as
|
|
3
|
+
export{G as it,K as jt,O as kt,H as lt,Q as mt,W as nt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{dv as a,ev as b}from"./chunk-t8ctvjqe.js";import"./chunk-
|
|
2
|
+
import{dv as a,ev as b}from"./chunk-t8ctvjqe.js";import"./chunk-5g6rprcy.js";export{b as warnUnbalancedTags,a as findUnbalancedTags};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ho as k,Jp as w,Ql as A,Rl as b,Xm as T,Ym as y,Zn as M,gm as B,im as F,lo as R,pr as P,zo as x}from"./chunk-e3rgky2r.js";import{tw as v}from"./chunk-5g6rprcy.js";function j(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,Y){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(Y?.some((X)=>q>=X.start&&N<=X.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,Y)=>J.start-Y.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function D(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>b(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as f,resolve as H}from"path";function S(K){let z=K,G=M(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],Y=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],X=$[2],E=$[0],Z=N.includes("server");if(Y(X))J.push(E);else if(Z)Q.push(X);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,X,E=[];while((X=N.exec(q))!==null){let Z=X.index+X[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:X.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -14,5 +14,5 @@ ${Q.join(`
|
|
|
14
14
|
`)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=Y.__stx_event_bindings||[],X=B(Y),Z=(await Promise.all(Q.map(async(I)=>{let W=I.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return I;return await F(W[1],{eventBindings:N,templateContent:q,serverData:X,filePath:z})}))).join(`
|
|
15
15
|
`);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
|
|
16
16
|
$1`);else q+=`
|
|
17
|
-
${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-
|
|
18
|
-
export{j as
|
|
17
|
+
${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCss:N}=await import("./chunk-m1p2n3nf.js");q=await N(q)}catch{}return q}
|
|
18
|
+
export{j as nk,C as ok,D as pk,o as qk,r as rk,V as sk};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-
|
|
2
|
+
import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-5g6rprcy.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};
|