@stacksjs/stx 0.2.396 → 0.2.397
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/{chunk-817833d8.js → chunk-15w7f813.js} +1 -1
- package/dist/{chunk-4byxvkzn.js → chunk-1xqb1bpq.js} +2 -2
- package/dist/{chunk-dbxk0wym.js → chunk-25vqpgq4.js} +1 -1
- package/dist/{chunk-hbcf36nw.js → chunk-34ap0jgd.js} +1 -1
- package/dist/{chunk-ehhqy624.js → chunk-3vytypjk.js} +1 -1
- package/dist/{chunk-rs70a3j6.js → chunk-44twsw8y.js} +1 -1
- package/dist/{chunk-vg8xrkbg.js → chunk-5019ed46.js} +2 -2
- package/dist/{chunk-5mh3fpha.js → chunk-53p4bjzd.js} +76 -9
- package/dist/{chunk-kaaqzwqf.js → chunk-6yzan3t7.js} +1 -1
- package/dist/{chunk-1wm6zqj5.js → chunk-7dr81hwg.js} +1 -1
- package/dist/{chunk-8axek0a6.js → chunk-7j8xmyb9.js} +1 -1
- package/dist/{chunk-twtaa0nh.js → chunk-7mgq90cs.js} +1 -1
- package/dist/{chunk-mv4b8b28.js → chunk-7t47p8zz.js} +1 -1
- package/dist/{chunk-dpafnyqg.js → chunk-94f39mh9.js} +1 -1
- package/dist/{chunk-jea2901n.js → chunk-98gap2qd.js} +2 -2
- package/dist/{chunk-pf80cwp6.js → chunk-9q1b43vh.js} +184 -179
- package/dist/{chunk-dj9capvb.js → chunk-9w9ew6e1.js} +1 -1
- package/dist/{chunk-khh1d2a9.js → chunk-a68dbz3q.js} +1 -1
- package/dist/{chunk-1260e2yv.js → chunk-a6ntnq11.js} +1 -1
- package/dist/{chunk-127ypa40.js → chunk-adbgcqd9.js} +1 -1
- package/dist/{chunk-rxf0264w.js → chunk-afcm0kzg.js} +1 -1
- package/dist/{chunk-cmzyyjwz.js → chunk-ascvrar9.js} +1 -1
- package/dist/{chunk-pxy0wtn3.js → chunk-ayp62r1q.js} +9 -9
- package/dist/{chunk-w7zaavk8.js → chunk-b1kz2gxx.js} +1 -1
- package/dist/{chunk-58a6bzn0.js → chunk-b42myxwk.js} +2 -2
- package/dist/{chunk-c10nf8ef.js → chunk-de3ercps.js} +1 -1
- package/dist/{chunk-atwrajjq.js → chunk-e2pxp1qy.js} +1 -1
- package/dist/{chunk-fgqc5wne.js → chunk-e3x86pmy.js} +1 -1
- package/dist/{chunk-q4jymqj3.js → chunk-ea5j5gh1.js} +1 -1
- package/dist/{chunk-rc159ysy.js → chunk-h0594pn6.js} +1 -1
- package/dist/chunk-h0mzm5xn.js +2 -0
- package/dist/{chunk-jzq847yd.js → chunk-hapz8df0.js} +1 -1
- package/dist/{chunk-4rf7mxs6.js → chunk-jtmjhzy9.js} +1 -1
- package/dist/{chunk-8zeqzwsd.js → chunk-k1g7era4.js} +1 -1
- package/dist/chunk-kyjcahaf.js +2 -0
- package/dist/{chunk-5y9tbnzb.js → chunk-mqmhbhbc.js} +1 -1
- package/dist/{chunk-w3ajb1nk.js → chunk-qjwztd0h.js} +1 -1
- package/dist/{chunk-z46czwd3.js → chunk-qzbtsawt.js} +1 -1
- package/dist/{chunk-pt8vq6be.js → chunk-r0xbjc86.js} +1 -1
- package/dist/{chunk-er2twjr1.js → chunk-rs5zgqcn.js} +1 -1
- package/dist/{chunk-zmwj9r73.js → chunk-sgxv9ct5.js} +1 -1
- package/dist/{chunk-4pse0geh.js → chunk-shz63een.js} +1 -1
- package/dist/{chunk-d2zrde0h.js → chunk-t19pzc0c.js} +1 -1
- package/dist/{chunk-hh4vy76v.js → chunk-t4f8gat7.js} +1 -1
- package/dist/{chunk-em3jpym6.js → chunk-tfq3gvh1.js} +1 -1
- package/dist/{chunk-jsggyhcg.js → chunk-v5m45kn6.js} +1 -1
- package/dist/{chunk-1t80az59.js → chunk-w3avy2ba.js} +1 -1
- package/dist/{chunk-2nt55z1b.js → chunk-xckw6749.js} +1 -1
- package/dist/{chunk-rz4vp8t9.js → chunk-y38rtn5z.js} +1 -1
- package/dist/{chunk-fb2cy0xx.js → chunk-yv99yyz4.js} +1 -1
- package/dist/{chunk-32vxn9kd.js → chunk-zngpmpcs.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/script-validation.d.ts +2 -9
- package/dist/script-validation.js +87 -2
- package/dist/ssg.js +2 -2
- package/dist/types/config-types.d.ts +16 -1
- package/package.json +5 -5
- package/dist/chunk-b2kagama.js +0 -2
- package/dist/chunk-km5t630j.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ki as O,Li as w,Mi as Z}from"./chunk-ra1s4s6b.js";import{_k as R,fl as U,ll as T}from"./chunk-
|
|
2
|
+
import{Ki as O,Li as w,Mi as Z}from"./chunk-ra1s4s6b.js";import{_k as R,fl as U,ll as T}from"./chunk-e2pxp1qy.js";import{Ao as W,Cr as C,bm as M,kq as k}from"./chunk-9q1b43vh.js";import{xv as E,yv as L}from"./chunk-y9f2csr0.js";import{Cv as B}from"./chunk-8hqayvjh.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
|
|
3
3
|
${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
|
|
4
4
|
|
|
5
5
|
`),x=`;(function(){
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Im as W,Qp as X}from"./chunk-
|
|
2
|
+
import{Im as W,Qp as X}from"./chunk-9q1b43vh.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
|
|
3
3
|
${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
|
|
4
4
|
`)}else{console.log(`
|
|
5
5
|
${j.bold}Available Commands:${j.reset}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$v as d,Aw as E,Bw as F,Cw as G,Dw as H,Ew as I,Fw as J,Hw as K,Iw as L,Kw as M,Yv as a,Zv as b,_v as c,aw as e,bw as f,cw as g,dw as h,ew as i,fw as j,gw as k,hw as l,iw as m,jw as n,kw as o,lw as p,mw as q,nw as r,ow as s,pw as t,qw as u,rw as v,sw as w,tw as x,uw as y,vw as z,ww as A,xw as B,yw as C,zw as D}from"./chunk-
|
|
2
|
+
import{$v as d,Aw as E,Bw as F,Cw as G,Dw as H,Ew as I,Fw as J,Hw as K,Iw as L,Kw as M,Yv as a,Zv as b,_v as c,aw as e,bw as f,cw as g,dw as h,ew as i,fw as j,gw as k,hw as l,iw as m,jw as n,kw as o,lw as p,mw as q,nw as r,ow as s,pw as t,qw as u,rw as v,sw as w,tw as x,uw as y,vw as z,ww as A,xw as B,yw as C,zw as D}from"./chunk-53p4bjzd.js";import"./chunk-n0hrb3ek.js";M();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,L as getRouterScriptDev,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as Qn,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Rn,Db as Zo,Dc as eq,Dd as er,De as ks,E as Tl,Ea as Sn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as Ul,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as Vl,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Zn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as _n,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as $n,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,N as am,Na as co,Nb as op,Nc as oq,Nd as or,O as bm,Oa as eo,Ob as pp,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as qp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Kr,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Lr,da as sm,db as vo,dc as Gp,dd as Gq,de as Mr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Ho,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Io,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as rn,pb as Jo,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as sn,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as tn,rb as Mo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as No,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as Oo,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Ro,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as So,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as To,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-pxy0wtn3.js";import{Le as hp,Me as ip,Ne as jp,Oe as kp,Pe as lp,Qe as mp,Re as np}from"./chunk-fb2cy0xx.js";import{Se as Fo,Te as Go}from"./chunk-7hb89n3z.js";import{Ue as Lo}from"./chunk-khh1d2a9.js";import{Ve as qn}from"./chunk-rxf0264w.js";import{We as Wn,Xe as Xn,Ye as Yn,Ze as Qo}from"./chunk-1wm6zqj5.js";import{$e as dl,_e as cl,af as el,bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql}from"./chunk-n0d7nwhd.js";import{nf as Hl,of as Il,pf as Jl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl}from"./chunk-dct8xw04.js";import{Af as Gl,zf as Fl}from"./chunk-wf45k2yw.js";import{Bf as rl,Cf as sl,Df as tl,Ef as ul,Ff as vl,Gf as wl,Hf as xl,Jf as yl,Kf as zl,Lf as Al,Mf as Bl,Nf as Cl,Of as Dl,Rf as El}from"./chunk-efsr5fbm.js";import{Sf as _m,Tf as $m,Uf as an,Vf as bn,Wf as cn,Xf as pn}from"./chunk-ehhqy624.js";import{$f as Hm,Yf as Em,Zf as Fm,_f as Gm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as dn,ng as en,og as fn,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on}from"./chunk-4byxvkzn.js";import{xg as Um,yg as Vm}from"./chunk-0knxnyq6.js";import{Ag as Fn,Bg as Gn,Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,zg as En}from"./chunk-634gaa9d.js";import{Lg as ui,Mg as vi,Ng as wi,Og as xi,Pg as yi,Qg as zi}from"./chunk-jzq847yd.js";import{Rg as Pj,Sg as Qj,Tg as Rj,Xg as Sj,Yg as Tj,Zg as Uj}from"./chunk-nptdshhw.js";import{$g as $j,_g as _j,ah as ak,bh as bk,ch as ck,dh as dk,eh as ek,fh as fk,gh as gk,hh as hk,ih as ik}from"./chunk-k7f7391g.js";import{jh as Fj,kh as Gj,lh as Hj,mh as Ij,nh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj,th as Oj}from"./chunk-bcpjhcpn.js";import{uh as Ak,wh as Bk}from"./chunk-y4zddt5r.js";import{Ch as Ph,Dh as Qh,Eh as Rh,Fh as Sh,Gh as Th,Hh as Uh}from"./chunk-g7bpkpd4.js";import{Jh as Vh,Kh as Wh,Lh as Xh,Mh as Yh,Nh as Zh,Oh as _h,Ph as $h,Qh as ai,Rh as bi,Sh as ci,Th as di,Uh as ei,Vh as fi,Wh as gi}from"./chunk-k33778kc.js";import{$h as ki,Yh as hi,Zh as ii,_h as ji}from"./chunk-ys4hpkrp.js";import{ei as li}from"./chunk-g1vxsvqv.js";import{hi as oh}from"./chunk-rc159ysy.js";import{ii as ph}from"./chunk-fqq5k9ve.js";import{ji as qh,ki as rh}from"./chunk-ya5m5vbn.js";import{li as sh,mi as th,ni as uh,oi as vh,pi as wh,qi as xh}from"./chunk-y4nzmkea.js";import{ri as yh,si as zh,ti as Ah,ui as Bh,vi as Ch}from"./chunk-7kw3grq5.js";import{Ai as Hh,wi as Dh,xi as Eh,yi as Fh,zi as Gh}from"./chunk-c79nfdyj.js";import{Bi as Ih,Ci as Jh,Di as Kh,Ei as Lh,Fi as Mh,Gi as Nh,Hi as Oh}from"./chunk-ej8mv2k6.js";import{Ii as mh,Ji as nh}from"./chunk-dj9capvb.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-5y9tbnzb.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-ats1a74d.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-1t80az59.js";import{pk as Er,qk as Fr,rk as Gr,sk as Hr,tk as Ir,uk as Jr}from"./chunk-vg8xrkbg.js";import{Ak as Xm,Bk as Ym,Ck as Zm,vk as Uk,wk as Vk,xk as Wk,yk as Xk,zk as Wm}from"./chunk-32vxn9kd.js";import"./chunk-frp9fc7j.js";import"./chunk-atwrajjq.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-jea2901n.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Gr as Ik,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Hr as Jk,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Ir as Kk,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as jh,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as kh,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pp as lh,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qp as mi,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as ni,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Up as oi,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,br as Cj,cm as Wb,cn as od,co as Ke,cp as Ag,cr as Dj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Ej,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as ri,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as si,gr as Xj,hm as lc,hn as xd,hp as Fg,hq as ti,hr as Yj,im as mc,in as yd,ip as Gg,iq as Ai,ir as Zj,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Pi,xr as xk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Qi,yr as yk,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as Ri,zr as zk}from"./chunk-pf80cwp6.js";import{$r as ca,Jr as M,Kr as N,Lr as O,Mr as P,Nr as Q,Or as R,Pr as S,Qr as T,Rr as U,Sr as V,Tr as W,Ur as X,Vr as Y,Wr as Z,Xr as _,Yr as $,Zr as aa,_r as ba,as as da,bs as ea,cs as fa,ds as ia,es as ja,fs as ka,gs as la,hs as ma,is as na,js as oa,ks as pa,ls as qa,ms as ra,ns as sa,os as ta,ps as ua,qs as va,rs as wa}from"./chunk-fc8471kb.js";import{ss as ga,ts as ha}from"./chunk-3wa1ybzj.js";import{us as Rb,vs as Sb,ws as Tb}from"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import{Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi,Js as Yi,Ks as Zi,Ls as _i}from"./chunk-q9zsjgpf.js";import{bt as Rc,ct as Sc,dt as Tc,et as Uc,ft as Vc,ht as Wc,qt as Xc,rt as Yc,st as Zc}from"./chunk-q4jymqj3.js";import{tt as Xb,ut as Yb,vt as Zb,wt as _b,xt as $b,yt as ac}from"./chunk-n98anpe9.js";import{Ft as Fe,Ht as Ge,Kt as He}from"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import{Pt as cc,Qt as dc}from"./chunk-hestqebq.js";import{Ut as fg,Vt as gg,Wt as hg,Xt as ig,Yt as jg,Zt as kg,_t as lg,au as mg,bu as ng,cu as og,du as pg}from"./chunk-qsq1eha8.js";import{Au as ke,Bu as le,Cu as me,Du as ne,Eu as oe,Fu as pe,Gu as qe,eu as rd,fu as sd,gu as td,hu as ud,ru as be,su as ce,tu as de,uu as ee,vu as fe,wu as ge,xu as he,yu as ie,zu as je}from"./chunk-3rf705aq.js";import{$u as y,Hu as b,Iu as c,Ju as d,Ku as e,Lu as f,Mu as g,Nu as h,Ou as i,Pu as m,Qu as n,Ru as o,Su as p,Tu as q,Uu as r,Vu as s,Wu as t,Xu as u,Yu as v,Zu as w,_u as x,av as z,bv as A,cv as B,dv as C,ev as D,fv as E,gv as F,hv as G,iv as H,jv as I,kv as J,lv as K,mv as L}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import{Cv as ob,Dv as pb,Ev as qb,Fv as rb,Gv as sb,Hv as tb,Iv as ub,Jv as vb,Kv as wb,Lv as xb,Mv as yb,Nv as zb,Ov as Ab,Pv as Bb,Qv as Cb,Rv as Db,Sv as Eb,Tv as Fb,Uv as Gb,Vv as Hb,Wv as Ib,Xv as Jb}from"./chunk-8hqayvjh.js";import{$v as Pa,Aw as db,Bw as eb,Cw as fb,Dw as gb,Fw as hb,aw as Qa,dw as Ra,iw as Sa,jw as Ta,pw as Ua,qw as Va,rw as Wa,sw as Xa,tw as Ya,uw as Za,vw as _a,ww as $a,xw as ab,yw as bb,zw as cb}from"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import{Rw as j,Sw as k,Tw as l}from"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{ml as writeNetlifyConfig,en as writeManifest,Rl as writeImageManifest,xp as wrapComponentForHMR,es as withDefaults,zk as webComponentDirectiveHandler,mq as watermark,or as watchViews,$l as watchMultiple,am as watchEffect,_l as watch,Me as warmImagePlaceholders,nm as waitForStore,X as waitForLocale,ip as virtualPathFor,mk as videoDirective,G as validators,is as validated,Ce as validateValueEnhanced,pi as validateTemplate,Um as validateRouteRules,rq as validateParams,De as validateFormEnhanced,dr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,sn as validateComponentScripts,Qn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,mm as useStoreOrThrow,Pp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,om as useRouteParams,qm as useRouteParamOrThrow,pm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,sm as useMiddlewareValue,rm as useMiddlewareState,Zk as useLocalStorage,qp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,fr as uploadFiles,er as uploadFile,jm as updateInstance,pf as untrack,Vi as unregisterDirective,km as unmountInstance,Qc as unescapeHtml,mp as typecheckStxFiles,Di as transpileTypeScript,Tr as translate,Ba as transitionDirective,lc as transformAutoImports,Kn as toUsers,Jn as toUser,Xp as thumbnail,Yq as thumbHashToRGBA,Zq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,up as stxClientHelpers,kg as structuredDataDirective,Wr as stripLocalePrefix,Rm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,vo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Gn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Qo as startProductionServer,Lo as startInteractive,Fn as startBroadcasting,Yr as stampLocaleLayoutGroup,Ia as staggerDirective,pq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Nm as spaNavVaryHeaders,jp as sourcePathFor,wq as smartBatchSign,Hi as slotContentHasExpressions,uq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,zq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,$p as sharpen,ls as shape,Zb as setStateDir,wm as setRouteParams,xm as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Tl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,os as serveStxFile,qs as serveMultipleStxFiles,Lk as serveMarkdownFile,$o as serveFile,rs as serveApp,_o as serve,Ap as serializeState,gn as serializeSetCookie,bq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,fq as saturation,sq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,kn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,hm as runHooks,Mr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,gq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Sr as resolveI18n,Vp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,zp as resetHMRHandler,o as resetErrorConfig,gs as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,mr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,vr as renderToString,wr as renderToStream,xr as renderToDOM,Xq as renderThumbhashToCanvas,Jr as renderTemplateString,Hr as renderTemplate,Ir as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Hq as renderProtectedVideo,Gq as renderProtectedImg,tq as renderMediaUpload,Gr as renderMarkdownView,Ym as renderLayoutTypes,Vj as renderImgComponent,Hl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,pr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Kp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Rp as registerStoresClient,um as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Tn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Xl as ref,Do as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,Yl as reactive,kq as quality,Eq as pruneSignatureCache,Oj as pruneCache,sf as provide,Fr as protectCodeBlocks,fs as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Pm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Iq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Jl as processImageComponents,wl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ms as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,pp as preloadIslandHandlers,Ne as preloadIconCollection,Bn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Tp as parseUrl,_q as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Jq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Il as parseImageComponent,hn as parseFormBody,Cd as parseExpressionWithFilters,Un as parseDefaults,Ao as parseCookies,Gm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,hs as optional,Cn as optimizeTemplate,Ol as optimizeImage,Pl as optimizeDirectory,js as oneOf,sg as onceStore,em as onUpdated,_c as onUpdate,gm as onUnmounted,Bm as onServer,cm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Am as onClient,dm as onBeforeUpdate,fm as onBeforeUnmount,bm as onBeforeMount,Nh as onActivated,Tq as observeElement,Eo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Xn as negotiateEncoding,Ua as navigateTo,im as mountInstance,Ea as motionDirective,Md as moderateCspPreset,An as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Up as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Vr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,fn as loadManifest,Pq as loadElement,Hn as loadChannels,Lb as listensPassively,as as lintStxStrict,Rq as lazyLoadAll,Qq as lazyLoad,Ha as keyframeDirective,tr as jsxs,ur as jsxDEV,sr as jsx,Co as jsonResponse,Ye as islandDirective,l as isTest,Sm as isSpaNavigation,Lm as isSpaNavRequest,xq as isSignatureValid,nf as isSignal,ul as isSharpAvailable,oo as isServerEnvironment,ym as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Mq as isNativeLazySupported,Er as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Nq as isIntersectionObserverSupported,Cl as isImageFile,vl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,no as isEdgeEnvironment,bs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Wn as isCompressible,zm as isClient,Fh as isAsyncComponent,jn as isActionableMethod,cq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Rr as injectThemeBootstrap,ig as injectSeoTags,Or as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,tm as initStoreRegistry,pl as initNetlify,rp as initLoadingIndicator,Oq as initLazyLoading,Ko as initFile,Wq as initBlurUp,ar as initAllBlurUp,Zj as imgDirective,Ml as imageDirective,nn as hydrateTemplateStream,mn as hydrateTemplate,op as hydrateIslands,ai as hydrateIsland,on as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Hp as hydrate,Zo as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Mp as hasStore,xc as hasPlaceholders,nl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Fl as handleImageRequest,zf as handleError,Br as h,Bl as groupVariantsByFormat,aq as grayscale,So as gitHash,un as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,il as getTotalSize,yq as getTimeUntilExpiry,mh as getStoreScript,Np as getStoreNames,Lp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Dl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,xl as getImageMetadata,Fe as getImageDelivery,Gp as getHydrationRuntime,vm as getHydratedStoreState,Sk as getHmrServer,be as getHead,yp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Al as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Ul as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Cq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,En as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,hr as generateVideoPreview,Ee as generateValidationScript,ir as generateUploadRuntime,vn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,fo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Bp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,yl as generateSrcSet,ek as generateSpriteSheet,qr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,zl as generateSizes,mg as generateSitemapIndex,Pr as generateSitemap,Lq as generateSimpleMediaPicker,Fq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Qr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,jl as generateNetlifyToml,kr as generateMinifiedMediaRuntime,jr as generateMediaRuntime,Kq as generateMediaManagerEmbed,dn as generateManifest,tp as generateLoadingIndicatorHtml,Vq as generateLazyLoadRuntime,Zm as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,gr as generateImagePreview,Ql as generateImageManifest,Fp as generateHydrationScript,af as generateHydrationRuntime,Ip as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,wp as generateHMRClientScript,fk as generateHLSManifest,Cp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ko as generateDocs,go as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,eo as generateComponentsDocs,Wh as generateComponentManifest,bo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,lm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,br as generateBlurUpRuntime,cr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,np as formatTypecheckDiagnostics,gp as formatTypeErrors,Ho as formatStxContent,hl as formatSize,Ta as formatRoutes,Io as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Nr as formatDoctorReport,ho as formatDocsAsMarkdown,jo as formatDocsAsJson,io as formatDocsAsHtml,jq as format,zn as foldConstants,iq as flipVertical,hq as flipHorizontal,_m as fingerprint,lp as findStxModuleDeclarations,kp as findRuntimeTypeDeclarations,Lr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,wn as findDeadCode,wn as findDeadBranches,Hm as findContainerRegion,co as findComponentFiles,ps as findCommonDir,gl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Dp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Tm as extractContainerContent,$n as extractComponentProps,Xh as extractComponentName,ao as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,yn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,Zn as enableDevTools,xn as eliminateDeadCode,ff as effect,qq as dprUrls,lo as docsCommand,ec as discoverServerApi,Xm as discoverLayoutNames,Uq as disconnectObserver,_n as disableDevTools,F as devHelpers,Om as detectShell,mo as detectRuntime,kl as detectProjectConfig,rj as detectFormat,rn as detectBuildMode,ef as derived,ol as deploy,Gk as defineStxConfig,Qp as defineStore,Bf as defineSlots,$r as defineSiteConfig,ds as definePropsWithValidation,cs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Dr as defineCustomElement,Po as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Ro as defineApiHandler,lr as defaultMediaConfig,Sl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,ns as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Km as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,$q as crossfadeTransition,Wp as crop,Ph as createVirtualList,lk as createVideoDirective,yo as createVercelHandler,dp as createTypeChecker,fa as createTranslateFilter,uo as createTextEncoderStream,Cr as createStxApp,to as createStreamingResponse,We as createStreamRenderer,Op as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Wl as createScope,zh as createSSRSuspense,bf as createRouter,Vm as createRouteRuleResolver,eb as createRouteLocation,bp as createRoute,Xl as createRef,Yl as createReactive,Df as createProvideContext,Uo as createProject,Oo as createProductionBuild,tc as createPlaceholder,Dn as createOptimizedBuild,zo as createNetlifyHandler,cl as createNetlifyClient,fb as createMiddlewareContext,ap as createMiddleware,Sq as createLazyObserver,Jh as createKeepAliveCache,qo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Nl as createImagePlugin,Gl as createImageHandler,Ll as createImageDirective,nb as createHeatmapAggregator,fl as createFileManifest,po as createEnvAccessor,z as createEnhancedError,so as createEdgeHandler,ro as createEdgeCache,Ni as createDetailedErrorMessage,xo as createDenoHandler,ll as createDefaultNetlifyConfig,Zd as createCspHeaders,Bo as createCookie,Zl as createComputed,Vl as createComponentInstance,wo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Cr as createApp,Ka as createAnimationTimeline,Zp as cover,_f as convertToCommonJS,eq as contrast,Yp as contain,y as consoleError,m as configureErrorHandling,Fk as config,Zl as computed,Yn as compressResponse,Bg as composerPattern,Ag as composer,Qm as composeShellWithPage,Sn as componentDirective,Ii as componentClientSignalNames,cn as compileTemplate,a as collectRepeatedFlag,el as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Dq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Kl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,sp as cleanupLoadingIndicator,Em as classifyScript,Fm as classifyAllScripts,ep as checkTemplateFile,fp as checkTemplate,Uf as checkCache,Aq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Nn as channel,Go as captureScreenshots,Fo as captureScreenshot,Z as cancelPendingLoads,dl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,hp as buildVirtualSource,nr as buildViews,Sp as buildUrl,Qe as buildSuspenseResolveScript,_r as buildStaticSite,qb as buildRuntimeGlobalsDestructure,$m as buildRuntimeAsset,an as buildRouterAsset,Zr as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,pn as buildForProduction,Vn as buildComponentLibrary,Bq as buildAuthParams,qn as buildApp,Xr as buildAlternateLinks,No as build,Ln as broadcastPrivate,Mn as broadcastPresence,In as broadcast,dq as brightness,Tb as bracketDepths,_p as blur,Jb as blankInertHtmlRegions,vq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,lq as auto,ja as attributeValue,bn as assetTags,Mb as asInvocableStatement,ks as arrayOf,Ur as applyTranslations,Sj as applyTransformations,zi as applySlots,Rn as applyPropDefaults,oq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Mm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,tn as analyzeUsage,Cm as analyzeTemplate,Dm as analyzeProject,tn as analyzeDirectiveUsage,ed as analyticsDirective,Xo as addStore,Wo as addPage,Sd as addNonceToInlineContent,Yo as addLayout,Vo as addComponent,ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,cp as TemplateTypeChecker,Jo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,yr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Im as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mo as ProductionBuild,Ar as Portal,To as PROJECT_TEMPLATES,nq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Jp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Wm as LAYOUT_TYPES_FILE,Pj as ImageProcessorCache,El as ImageProcessingError,Ep as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,rr as Fragment,zr as For,Jm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,ql as DeployError,rl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,tl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,sl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,vp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Pn as BroadcastServer,On as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Kr as $path};
|
|
2
|
+
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as Qn,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Rn,Db as Zo,Dc as eq,Dd as er,De as ks,E as Tl,Ea as Sn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as Ul,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as Vl,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Zn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as _n,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as $n,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,N as am,Na as co,Nb as op,Nc as oq,Nd as or,O as bm,Oa as eo,Ob as pp,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as qp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Kr,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Lr,da as sm,db as vo,dc as Gp,dd as Gq,de as Mr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Ho,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Io,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as rn,pb as Jo,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as sn,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as tn,rb as Mo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as No,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as Oo,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Ro,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as So,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as To,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-ayp62r1q.js";import{Le as hp,Me as ip,Ne as jp,Oe as kp,Pe as lp,Qe as mp,Re as np}from"./chunk-yv99yyz4.js";import{Se as Fo,Te as Go}from"./chunk-7hb89n3z.js";import{Ue as Lo}from"./chunk-a68dbz3q.js";import{Ve as qn}from"./chunk-afcm0kzg.js";import{We as Wn,Xe as Xn,Ye as Yn,Ze as Qo}from"./chunk-7dr81hwg.js";import{$e as dl,_e as cl,af as el,bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql}from"./chunk-n0d7nwhd.js";import{nf as Hl,of as Il,pf as Jl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl}from"./chunk-dct8xw04.js";import{Af as Gl,zf as Fl}from"./chunk-wf45k2yw.js";import{Bf as rl,Cf as sl,Df as tl,Ef as ul,Ff as vl,Gf as wl,Hf as xl,Jf as yl,Kf as zl,Lf as Al,Mf as Bl,Nf as Cl,Of as Dl,Rf as El}from"./chunk-efsr5fbm.js";import{Sf as _m,Tf as $m,Uf as an,Vf as bn,Wf as cn,Xf as pn}from"./chunk-3vytypjk.js";import{$f as Hm,Yf as Em,Zf as Fm,_f as Gm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as dn,ng as en,og as fn,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on}from"./chunk-1xqb1bpq.js";import{xg as Um,yg as Vm}from"./chunk-0knxnyq6.js";import{Ag as Fn,Bg as Gn,Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,zg as En}from"./chunk-634gaa9d.js";import{Lg as ui,Mg as vi,Ng as wi,Og as xi,Pg as yi,Qg as zi}from"./chunk-hapz8df0.js";import{Rg as Pj,Sg as Qj,Tg as Rj,Xg as Sj,Yg as Tj,Zg as Uj}from"./chunk-nptdshhw.js";import{$g as $j,_g as _j,ah as ak,bh as bk,ch as ck,dh as dk,eh as ek,fh as fk,gh as gk,hh as hk,ih as ik}from"./chunk-k7f7391g.js";import{jh as Fj,kh as Gj,lh as Hj,mh as Ij,nh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj,th as Oj}from"./chunk-bcpjhcpn.js";import{uh as Ak,wh as Bk}from"./chunk-y4zddt5r.js";import{Ch as Ph,Dh as Qh,Eh as Rh,Fh as Sh,Gh as Th,Hh as Uh}from"./chunk-g7bpkpd4.js";import{Jh as Vh,Kh as Wh,Lh as Xh,Mh as Yh,Nh as Zh,Oh as _h,Ph as $h,Qh as ai,Rh as bi,Sh as ci,Th as di,Uh as ei,Vh as fi,Wh as gi}from"./chunk-k33778kc.js";import{$h as ki,Yh as hi,Zh as ii,_h as ji}from"./chunk-ys4hpkrp.js";import{ei as li}from"./chunk-g1vxsvqv.js";import{hi as oh}from"./chunk-h0594pn6.js";import{ii as ph}from"./chunk-fqq5k9ve.js";import{ji as qh,ki as rh}from"./chunk-ya5m5vbn.js";import{li as sh,mi as th,ni as uh,oi as vh,pi as wh,qi as xh}from"./chunk-y4nzmkea.js";import{ri as yh,si as zh,ti as Ah,ui as Bh,vi as Ch}from"./chunk-7kw3grq5.js";import{Ai as Hh,wi as Dh,xi as Eh,yi as Fh,zi as Gh}from"./chunk-c79nfdyj.js";import{Bi as Ih,Ci as Jh,Di as Kh,Ei as Lh,Fi as Mh,Gi as Nh,Hi as Oh}from"./chunk-ej8mv2k6.js";import{Ii as mh,Ji as nh}from"./chunk-9w9ew6e1.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-mqmhbhbc.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-ats1a74d.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-w3avy2ba.js";import{pk as Er,qk as Fr,rk as Gr,sk as Hr,tk as Ir,uk as Jr}from"./chunk-5019ed46.js";import{Ak as Xm,Bk as Ym,Ck as Zm,vk as Uk,wk as Vk,xk as Wk,yk as Xk,zk as Wm}from"./chunk-zngpmpcs.js";import"./chunk-frp9fc7j.js";import"./chunk-e2pxp1qy.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-98gap2qd.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Gr as Ik,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Hr as Jk,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Ir as Kk,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as jh,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as kh,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pp as lh,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qp as mi,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as ni,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Up as oi,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,br as Cj,cm as Wb,cn as od,co as Ke,cp as Ag,cr as Dj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Ej,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as ri,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as si,gr as Xj,hm as lc,hn as xd,hp as Fg,hq as ti,hr as Yj,im as mc,in as yd,ip as Gg,iq as Ai,ir as Zj,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Pi,xr as xk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Qi,yr as yk,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as Ri,zr as zk}from"./chunk-9q1b43vh.js";import{$r as ca,Jr as M,Kr as N,Lr as O,Mr as P,Nr as Q,Or as R,Pr as S,Qr as T,Rr as U,Sr as V,Tr as W,Ur as X,Vr as Y,Wr as Z,Xr as _,Yr as $,Zr as aa,_r as ba,as as da,bs as ea,cs as fa,ds as ia,es as ja,fs as ka,gs as la,hs as ma,is as na,js as oa,ks as pa,ls as qa,ms as ra,ns as sa,os as ta,ps as ua,qs as va,rs as wa}from"./chunk-fc8471kb.js";import{ss as ga,ts as ha}from"./chunk-3wa1ybzj.js";import{us as Rb,vs as Sb,ws as Tb}from"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import{Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi,Js as Yi,Ks as Zi,Ls as _i}from"./chunk-q9zsjgpf.js";import{bt as Rc,ct as Sc,dt as Tc,et as Uc,ft as Vc,ht as Wc,qt as Xc,rt as Yc,st as Zc}from"./chunk-ea5j5gh1.js";import{tt as Xb,ut as Yb,vt as Zb,wt as _b,xt as $b,yt as ac}from"./chunk-n98anpe9.js";import{Ft as Fe,Ht as Ge,Kt as He}from"./chunk-y70wabha.js";import"./chunk-34ap0jgd.js";import{Pt as cc,Qt as dc}from"./chunk-hestqebq.js";import{Ut as fg,Vt as gg,Wt as hg,Xt as ig,Yt as jg,Zt as kg,_t as lg,au as mg,bu as ng,cu as og,du as pg}from"./chunk-qsq1eha8.js";import{Au as ke,Bu as le,Cu as me,Du as ne,Eu as oe,Fu as pe,Gu as qe,eu as rd,fu as sd,gu as td,hu as ud,ru as be,su as ce,tu as de,uu as ee,vu as fe,wu as ge,xu as he,yu as ie,zu as je}from"./chunk-3rf705aq.js";import{$u as y,Hu as b,Iu as c,Ju as d,Ku as e,Lu as f,Mu as g,Nu as h,Ou as i,Pu as m,Qu as n,Ru as o,Su as p,Tu as q,Uu as r,Vu as s,Wu as t,Xu as u,Yu as v,Zu as w,_u as x,av as z,bv as A,cv as B,dv as C,ev as D,fv as E,gv as F,hv as G,iv as H,jv as I,kv as J,lv as K,mv as L}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import{Cv as ob,Dv as pb,Ev as qb,Fv as rb,Gv as sb,Hv as tb,Iv as ub,Jv as vb,Kv as wb,Lv as xb,Mv as yb,Nv as zb,Ov as Ab,Pv as Bb,Qv as Cb,Rv as Db,Sv as Eb,Tv as Fb,Uv as Gb,Vv as Hb,Wv as Ib,Xv as Jb}from"./chunk-8hqayvjh.js";import{$v as Pa,Aw as db,Bw as eb,Cw as fb,Dw as gb,Fw as hb,aw as Qa,dw as Ra,iw as Sa,jw as Ta,pw as Ua,qw as Va,rw as Wa,sw as Xa,tw as Ya,uw as Za,vw as _a,ww as $a,xw as ab,yw as bb,zw as cb}from"./chunk-53p4bjzd.js";import"./chunk-zn70s4gs.js";import{Rw as j,Sw as k,Tw as l}from"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{ml as writeNetlifyConfig,en as writeManifest,Rl as writeImageManifest,xp as wrapComponentForHMR,es as withDefaults,zk as webComponentDirectiveHandler,mq as watermark,or as watchViews,$l as watchMultiple,am as watchEffect,_l as watch,Me as warmImagePlaceholders,nm as waitForStore,X as waitForLocale,ip as virtualPathFor,mk as videoDirective,G as validators,is as validated,Ce as validateValueEnhanced,pi as validateTemplate,Um as validateRouteRules,rq as validateParams,De as validateFormEnhanced,dr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,sn as validateComponentScripts,Qn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,mm as useStoreOrThrow,Pp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,om as useRouteParams,qm as useRouteParamOrThrow,pm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,sm as useMiddlewareValue,rm as useMiddlewareState,Zk as useLocalStorage,qp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,fr as uploadFiles,er as uploadFile,jm as updateInstance,pf as untrack,Vi as unregisterDirective,km as unmountInstance,Qc as unescapeHtml,mp as typecheckStxFiles,Di as transpileTypeScript,Tr as translate,Ba as transitionDirective,lc as transformAutoImports,Kn as toUsers,Jn as toUser,Xp as thumbnail,Yq as thumbHashToRGBA,Zq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,up as stxClientHelpers,kg as structuredDataDirective,Wr as stripLocalePrefix,Rm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,vo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Gn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Qo as startProductionServer,Lo as startInteractive,Fn as startBroadcasting,Yr as stampLocaleLayoutGroup,Ia as staggerDirective,pq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Nm as spaNavVaryHeaders,jp as sourcePathFor,wq as smartBatchSign,Hi as slotContentHasExpressions,uq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,zq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,$p as sharpen,ls as shape,Zb as setStateDir,wm as setRouteParams,xm as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Tl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,os as serveStxFile,qs as serveMultipleStxFiles,Lk as serveMarkdownFile,$o as serveFile,rs as serveApp,_o as serve,Ap as serializeState,gn as serializeSetCookie,bq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,fq as saturation,sq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,kn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,hm as runHooks,Mr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,gq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Sr as resolveI18n,Vp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,zp as resetHMRHandler,o as resetErrorConfig,gs as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,mr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,vr as renderToString,wr as renderToStream,xr as renderToDOM,Xq as renderThumbhashToCanvas,Jr as renderTemplateString,Hr as renderTemplate,Ir as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Hq as renderProtectedVideo,Gq as renderProtectedImg,tq as renderMediaUpload,Gr as renderMarkdownView,Ym as renderLayoutTypes,Vj as renderImgComponent,Hl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,pr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Kp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Rp as registerStoresClient,um as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Tn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Xl as ref,Do as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,Yl as reactive,kq as quality,Eq as pruneSignatureCache,Oj as pruneCache,sf as provide,Fr as protectCodeBlocks,fs as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Pm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Iq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Jl as processImageComponents,wl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ms as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,pp as preloadIslandHandlers,Ne as preloadIconCollection,Bn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Tp as parseUrl,_q as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Jq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Il as parseImageComponent,hn as parseFormBody,Cd as parseExpressionWithFilters,Un as parseDefaults,Ao as parseCookies,Gm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,hs as optional,Cn as optimizeTemplate,Ol as optimizeImage,Pl as optimizeDirectory,js as oneOf,sg as onceStore,em as onUpdated,_c as onUpdate,gm as onUnmounted,Bm as onServer,cm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Am as onClient,dm as onBeforeUpdate,fm as onBeforeUnmount,bm as onBeforeMount,Nh as onActivated,Tq as observeElement,Eo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Xn as negotiateEncoding,Ua as navigateTo,im as mountInstance,Ea as motionDirective,Md as moderateCspPreset,An as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Up as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Vr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,fn as loadManifest,Pq as loadElement,Hn as loadChannels,Lb as listensPassively,as as lintStxStrict,Rq as lazyLoadAll,Qq as lazyLoad,Ha as keyframeDirective,tr as jsxs,ur as jsxDEV,sr as jsx,Co as jsonResponse,Ye as islandDirective,l as isTest,Sm as isSpaNavigation,Lm as isSpaNavRequest,xq as isSignatureValid,nf as isSignal,ul as isSharpAvailable,oo as isServerEnvironment,ym as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Mq as isNativeLazySupported,Er as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Nq as isIntersectionObserverSupported,Cl as isImageFile,vl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,no as isEdgeEnvironment,bs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Wn as isCompressible,zm as isClient,Fh as isAsyncComponent,jn as isActionableMethod,cq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Rr as injectThemeBootstrap,ig as injectSeoTags,Or as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,tm as initStoreRegistry,pl as initNetlify,rp as initLoadingIndicator,Oq as initLazyLoading,Ko as initFile,Wq as initBlurUp,ar as initAllBlurUp,Zj as imgDirective,Ml as imageDirective,nn as hydrateTemplateStream,mn as hydrateTemplate,op as hydrateIslands,ai as hydrateIsland,on as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Hp as hydrate,Zo as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Mp as hasStore,xc as hasPlaceholders,nl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Fl as handleImageRequest,zf as handleError,Br as h,Bl as groupVariantsByFormat,aq as grayscale,So as gitHash,un as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,il as getTotalSize,yq as getTimeUntilExpiry,mh as getStoreScript,Np as getStoreNames,Lp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Dl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,xl as getImageMetadata,Fe as getImageDelivery,Gp as getHydrationRuntime,vm as getHydratedStoreState,Sk as getHmrServer,be as getHead,yp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Al as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Ul as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Cq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,En as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,hr as generateVideoPreview,Ee as generateValidationScript,ir as generateUploadRuntime,vn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,fo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Bp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,yl as generateSrcSet,ek as generateSpriteSheet,qr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,zl as generateSizes,mg as generateSitemapIndex,Pr as generateSitemap,Lq as generateSimpleMediaPicker,Fq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Qr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,jl as generateNetlifyToml,kr as generateMinifiedMediaRuntime,jr as generateMediaRuntime,Kq as generateMediaManagerEmbed,dn as generateManifest,tp as generateLoadingIndicatorHtml,Vq as generateLazyLoadRuntime,Zm as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,gr as generateImagePreview,Ql as generateImageManifest,Fp as generateHydrationScript,af as generateHydrationRuntime,Ip as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,wp as generateHMRClientScript,fk as generateHLSManifest,Cp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ko as generateDocs,go as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,eo as generateComponentsDocs,Wh as generateComponentManifest,bo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,lm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,br as generateBlurUpRuntime,cr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,np as formatTypecheckDiagnostics,gp as formatTypeErrors,Ho as formatStxContent,hl as formatSize,Ta as formatRoutes,Io as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Nr as formatDoctorReport,ho as formatDocsAsMarkdown,jo as formatDocsAsJson,io as formatDocsAsHtml,jq as format,zn as foldConstants,iq as flipVertical,hq as flipHorizontal,_m as fingerprint,lp as findStxModuleDeclarations,kp as findRuntimeTypeDeclarations,Lr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,wn as findDeadCode,wn as findDeadBranches,Hm as findContainerRegion,co as findComponentFiles,ps as findCommonDir,gl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Dp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Tm as extractContainerContent,$n as extractComponentProps,Xh as extractComponentName,ao as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,yn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,Zn as enableDevTools,xn as eliminateDeadCode,ff as effect,qq as dprUrls,lo as docsCommand,ec as discoverServerApi,Xm as discoverLayoutNames,Uq as disconnectObserver,_n as disableDevTools,F as devHelpers,Om as detectShell,mo as detectRuntime,kl as detectProjectConfig,rj as detectFormat,rn as detectBuildMode,ef as derived,ol as deploy,Gk as defineStxConfig,Qp as defineStore,Bf as defineSlots,$r as defineSiteConfig,ds as definePropsWithValidation,cs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Dr as defineCustomElement,Po as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Ro as defineApiHandler,lr as defaultMediaConfig,Sl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,ns as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Km as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,$q as crossfadeTransition,Wp as crop,Ph as createVirtualList,lk as createVideoDirective,yo as createVercelHandler,dp as createTypeChecker,fa as createTranslateFilter,uo as createTextEncoderStream,Cr as createStxApp,to as createStreamingResponse,We as createStreamRenderer,Op as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Wl as createScope,zh as createSSRSuspense,bf as createRouter,Vm as createRouteRuleResolver,eb as createRouteLocation,bp as createRoute,Xl as createRef,Yl as createReactive,Df as createProvideContext,Uo as createProject,Oo as createProductionBuild,tc as createPlaceholder,Dn as createOptimizedBuild,zo as createNetlifyHandler,cl as createNetlifyClient,fb as createMiddlewareContext,ap as createMiddleware,Sq as createLazyObserver,Jh as createKeepAliveCache,qo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Nl as createImagePlugin,Gl as createImageHandler,Ll as createImageDirective,nb as createHeatmapAggregator,fl as createFileManifest,po as createEnvAccessor,z as createEnhancedError,so as createEdgeHandler,ro as createEdgeCache,Ni as createDetailedErrorMessage,xo as createDenoHandler,ll as createDefaultNetlifyConfig,Zd as createCspHeaders,Bo as createCookie,Zl as createComputed,Vl as createComponentInstance,wo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Cr as createApp,Ka as createAnimationTimeline,Zp as cover,_f as convertToCommonJS,eq as contrast,Yp as contain,y as consoleError,m as configureErrorHandling,Fk as config,Zl as computed,Yn as compressResponse,Bg as composerPattern,Ag as composer,Qm as composeShellWithPage,Sn as componentDirective,Ii as componentClientSignalNames,cn as compileTemplate,a as collectRepeatedFlag,el as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Dq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Kl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,sp as cleanupLoadingIndicator,Em as classifyScript,Fm as classifyAllScripts,ep as checkTemplateFile,fp as checkTemplate,Uf as checkCache,Aq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Nn as channel,Go as captureScreenshots,Fo as captureScreenshot,Z as cancelPendingLoads,dl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,hp as buildVirtualSource,nr as buildViews,Sp as buildUrl,Qe as buildSuspenseResolveScript,_r as buildStaticSite,qb as buildRuntimeGlobalsDestructure,$m as buildRuntimeAsset,an as buildRouterAsset,Zr as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,pn as buildForProduction,Vn as buildComponentLibrary,Bq as buildAuthParams,qn as buildApp,Xr as buildAlternateLinks,No as build,Ln as broadcastPrivate,Mn as broadcastPresence,In as broadcast,dq as brightness,Tb as bracketDepths,_p as blur,Jb as blankInertHtmlRegions,vq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,lq as auto,ja as attributeValue,bn as assetTags,Mb as asInvocableStatement,ks as arrayOf,Ur as applyTranslations,Sj as applyTransformations,zi as applySlots,Rn as applyPropDefaults,oq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Mm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,tn as analyzeUsage,Cm as analyzeTemplate,Dm as analyzeProject,tn as analyzeDirectiveUsage,ed as analyticsDirective,Xo as addStore,Wo as addPage,Sd as addNonceToInlineContent,Yo as addLayout,Vo as addComponent,ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,cp as TemplateTypeChecker,Jo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,yr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Im as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mo as ProductionBuild,Ar as Portal,To as PROJECT_TEMPLATES,nq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Jp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Wm as LAYOUT_TYPES_FILE,Pj as ImageProcessorCache,El as ImageProcessingError,Ep as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,rr as Fragment,zr as For,Jm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,ql as DeployError,rl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,tl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,sl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,vp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Pn as BroadcastServer,On as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Kr as $path};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{xg as I}from"./chunk-0knxnyq6.js";import{Cr as H}from"./chunk-
|
|
2
|
+
import{xg as I}from"./chunk-0knxnyq6.js";import{Cr as H}from"./chunk-9q1b43vh.js";import{Yw as G}from"./chunk-n0hrb3ek.js";import L from"path";async function Q(k={}){let J=performance.now(),A=k.root||process.cwd(),j=await H(A),B=k.ssr?.routeRules??j.routeRules??{};if(I(B),!j.ssr&&Object.keys(B).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!j.ssr&&(k.ssr?.serverApi??j.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let D,E;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");D=await z({pagesDir:L.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-b1kz2gxx.js");E=await z({root:A,outputDir:".output",debug:k.debug,...k.ssr})}let K=Math.round(performance.now()-J);return{mode:q,ssg:D,ssr:E,duration:K}}
|
|
3
3
|
export{Q as Ve};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{sk as m}from"./chunk-
|
|
2
|
+
import{sk as m}from"./chunk-5019ed46.js";import{Yw as z}from"./chunk-n0hrb3ek.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ye as z$}from"./chunk-
|
|
2
|
+
import{Ye as z$}from"./chunk-7dr81hwg.js";import{Zf as a7,bg as j$,cg as l6,dg as C6,fg as B1,gg as i6,hg as _5,ig as O$,jg as A$,kg as a6,lg as s6,pg as j5}from"./chunk-1xqb1bpq.js";import{bj as m5}from"./chunk-ats1a74d.js";import{rj as l1,sj as I1,tj as R1,uj as a$,vj as s$,wj as o5,yj as t5}from"./chunk-y32dbdta.js";import{Vj as _$,Wj as U$}from"./chunk-w3avy2ba.js";import{xk as i5,yk as a5}from"./chunk-zngpmpcs.js";import{Ek as Q3,Fk as Y3}from"./chunk-frp9fc7j.js";import{Zk as U1}from"./chunk-e2pxp1qy.js";import{sl as V5,tl as H8}from"./chunk-98gap2qd.js";import{$m as T1,$n as K$,Ar as C$,Bm as n0,Cr as r0,Dr as w0,Hr as T0,Ko as M0,Qp as V0,Um as u6,Vo as o0,Wl as E8,Ym as U5,an as C1,jp as r7,ko as H$,mo as m6,nm as i7,no as I6,nr as B$,qp as p6,rp as c6,rq as U6,sq as x1,wq as t0}from"./chunk-9q1b43vh.js";import{Os as J5,gt as B,nt as L$,ot as F$,st as J0}from"./chunk-ea5j5gh1.js";import{xt as u0}from"./chunk-n98anpe9.js";import{Nu as s1,Vu as Z5,Xu as Q5,_u as r1,cv as Y5,fv as W$,gv as E6,sv as _6}from"./chunk-3ha78evt.js";import{Aw as v6,Bw as g6,Cw as f6,Dw as h6,Fw as d6,Kw as T6,dw as K5,ew as w6,iw as S6,jw as P6,yw as b6,zw as y6}from"./chunk-53p4bjzd.js";import{Rw as _3,Sw as V6,Uw as G5}from"./chunk-8ph7mee2.js";import{Yw as s}from"./chunk-n0hrb3ek.js";var e5={read:($)=>{try{return JSON.parse($)}catch{return $}},write:($)=>{return JSON.stringify($)}};function L3($,X,Z={}){let{storage:Q="local",serializer:Y=e5,mergeDefaults:J=!1,listenToStorageChanges:G=!0}=Z,W=new Set,K=typeof window<"u",_=()=>{if(!K)return null;return Q==="session"?sessionStorage:localStorage},U=()=>{let L=_();if(!L)return X;try{let O=L.getItem($);if(O===null)return X;let A=Y.read(O);if(J&&typeof X==="object"&&X!==null)return{...X,...A};return A}catch{return X}},F=(L)=>{let O=_();if(!O)return;try{if(L===null||L===void 0)O.removeItem($);else O.setItem($,Y.write(L))}catch(A){console.warn(`[useStorage] Failed to write key "${$}":`,A)}},z=U(),j=(L,O)=>{for(let A of W)try{A(L,O)}catch(M){console.error("[useStorage] Subscriber error:",M)}};if(K&&G){let L=(A)=>{if(A.key===$&&A.storageArea===_()){let M=z;try{z=A.newValue?Y.read(A.newValue):X}catch(V){console.warn(`[useStorage] Failed to read key "${$}" from a cross-tab update:`,V);return}j(z,M)}};window.addEventListener("storage",L);let O=globalThis.onDestroy;if(typeof O==="function")O(()=>window.removeEventListener("storage",L))}let H={get value(){return z},set value(L){let O=z;z=L,F(L),j(L,O)},get:()=>z,set:(L)=>{H.value=L},remove:()=>{let L=_();if(L){L.removeItem($);let O=z;z=X,j(X,O)}},subscribe:(L)=>{return W.add(L),L(z,void 0),()=>W.delete(L)}};return H}function $6($,X,Z,Q,Y={}){let{serializer:J=e5,mergeDefaults:G=!1,listenToStorageChanges:W=!0}=Y,K=typeof window<"u",_=()=>{if(!K)return null;return $==="session"?sessionStorage:localStorage},U=(j)=>{if(j===null||j===void 0)return Q;try{let H=J.read(j);if(G&&typeof Q==="object"&&Q!==null)return{...Q,...H};return H}catch(H){return console.warn(`[${X}] Failed to read key "${Z}":`,H),Q}},z=o5((()=>{let j=_();if(!j)return Q;try{return U(j.getItem(Z))}catch(H){return console.warn(`[${X}] Cannot read "${Z}":`,H),Q}})());if(t5(()=>{let j=z(),H=_();if(!H)return;try{if(j===null||j===void 0)H.removeItem(Z);else H.setItem(Z,J.write(j))}catch(L){console.warn(`[${X}] Cannot persist "${Z}":`,L)}}),K&&W){let j=(L)=>{if(L.key!==Z)return;if(L.storageArea&&L.storageArea!==_())return;z.set(U(L.newValue))};window.addEventListener("storage",j);let H=globalThis.onDestroy;if(typeof H==="function")H(()=>window.removeEventListener("storage",j))}return z}function F3($,X,Z){return $6("local","useLocalStorage",$,X,Z)}function z3($,X,Z){return $6("session","useSessionStorage",$,X,Z)}function j3($="local"){if(typeof window>"u")return;($==="session"?sessionStorage:localStorage).clear()}function H3($="local"){if(typeof window>"u")return[];let X=$==="session"?sessionStorage:localStorage;return Object.keys(X)}function O3($="local"){if(typeof window>"u")return 0;let X=$==="session"?sessionStorage:localStorage,Z=0;for(let Q in X)if(Object.prototype.hasOwnProperty.call(X,Q))Z+=(Q.length+(X.getItem(Q)?.length||0))*2;return Z}var t=null;function c1($,X,Z=new WeakSet){if(Object.is($,X))return!0;if(typeof $!=="object"||typeof X!=="object"||$===null||X===null)return!1;if(Z.has($))return!0;if(Z.add($),$ instanceof Date&&X instanceof Date)return $.getTime()===X.getTime();if($ instanceof RegExp&&X instanceof RegExp)return $.source===X.source&&$.flags===X.flags;if(Array.isArray($)){if(!Array.isArray(X)||$.length!==X.length)return!1;for(let J=0;J<$.length;J++)if(!c1($[J],X[J],Z))return!1;return!0}if(Array.isArray(X))return!1;if($ instanceof Map){if(!(X instanceof Map)||$.size!==X.size)return!1;for(let[J,G]of $)if(!X.has(J)||!c1(G,X.get(J),Z))return!1;return!0}if(X instanceof Map)return!1;if($ instanceof Set){if(!(X instanceof Set)||$.size!==X.size)return!1;for(let J of $)if(!X.has(J))return!1;return!0}if(X instanceof Set)return!1;let Q=Object.keys($),Y=Object.keys(X);if(Q.length!==Y.length)return!1;for(let J of Q){if(!Object.prototype.hasOwnProperty.call(X,J))return!1;if(!c1($[J],X[J],Z))return!1}return!0}function LJ($){t=$}function FJ(){return t}function zJ(){return{isMounted:!1,isUnmounted:!1,hooks:{beforeMount:[],mounted:[],beforeUpdate:[],updated:[],beforeUnmount:[],unmounted:[]},effects:[],scope:A3()}}function A3(){return{refs:new Map,effects:new Set,cleanups:[]}}function jJ($){let X=new Set,Z=new Set,Q=$,Y=Symbol("ref"),J={get value(){let G=l1();if(G)Z.add(G);return Q},set value(G){if(!Object.is(G,Q)){let W=Q;Q=G;for(let K of X)K(G,W);for(let K of Z)if(a$())s$(K);else K()}},subscribe(G){return X.add(G),()=>{X.delete(G)}}};if(t)t.scope.refs.set(Y,J);return J}var X6=new WeakMap;function N3($){let X=X6.get($);if(X)return X;let Z=new Map,Q=(G)=>{let W=Z.get(G);if(!W)return;for(let K of[...W])if(a$())s$(K);else K()},Y=(G,W)=>{if(!Z.has(G))Z.set(G,new Set);return Z.get(G).add(W),()=>{Z.get(G)?.delete(W)}},J=new Proxy($,{get(G,W,K){let _=Reflect.get(G,W,K),U=l1();if(U)Y(W,U);if(_!==null&&typeof _==="object"&&!Array.isArray(_)){let F=Object.getPrototypeOf(_);if(F===Object.prototype||F===null)return N3(_)}return _},set(G,W,K,_){let U=Reflect.get(G,W,_),F=Reflect.set(G,W,K,_);if(!Object.is(K,U))Q(W);return F},deleteProperty(G,W){let K=Reflect.deleteProperty(G,W);return Q(W),K}});return X6.set($,J),J}function HJ($){let X,Z=!0,Q=new Set,Y=new Set,J=()=>{Z=!0,G()},G=()=>{if(Z){let K=X,_=I1(J);if(X=$(),R1(_),Z=!1,!Object.is(X,K)){for(let U of Q)U(X,K);for(let U of Y)U()}}},W=I1(J);return X=$(),Z=!1,R1(W),{get value(){let K=l1();if(K)Y.add(K);return G(),X},set value(K){console.warn("[stx] Computed properties are readonly")},subscribe(K){return Q.add(K),()=>{Q.delete(K)}}}}function q3($){if(typeof requestAnimationFrame==="function"){requestAnimationFrame(()=>{requestAnimationFrame($)});return}setTimeout($,0)}function OJ($,X,Z={}){let{immediate:Q=!1,deep:Y=!1,flush:J="post"}=Z,G,W,K=!1,_=()=>{if(K)return;let H=j();if((Y?!c1(H,G):!Object.is(H,G))||Q)if(X(H,G),Y&&H!==null&&typeof H==="object")try{G=structuredClone(H)}catch{G=H}else G=H},U=(H)=>{if(J==="sync")H();else if(J==="pre")Promise.resolve().then(H);else q3(H)},F=!1,z=()=>{if(K||F)return;F=!0,U(()=>{F=!1,_()})},j=()=>{if(typeof $==="function"){let H=I1(z);try{return $()}finally{R1(H)}}return $.value};if(typeof $!=="function"){let H=$.subscribe(()=>{U(_)});W=()=>{K=!0,H()}}else W=()=>{K=!0};if(G=j(),Q)U(_);if(t)t.scope.cleanups.push(()=>W?.());return()=>W?.()}function AJ($,X,Z={}){let Q=[],Y=$.map((J)=>J.value);for(let J of $){let G=J.subscribe(()=>{let W=$.map((K)=>K.value);X(W,Y),Y=[...W]});Q.push(G)}if(Z.immediate){let J=$.map((G)=>G.value);X(J,Y)}return()=>{for(let J of Q)J()}}function NJ($){let X,Z=!1,Q=()=>{if(Z)return;if(X)X();let Y=I1(Q);X=$(),R1(Y)};if(Q(),t)t.scope.cleanups.push(()=>{if(Z=!0,X)X()});return()=>{if(Z=!0,X)X()}}function qJ($){if(t)t.hooks.beforeMount.push($);else console.warn("[stx] onBeforeMount called outside of component setup")}function MJ($){if(t)t.hooks.mounted.push($);else console.warn("[stx] onMounted called outside of component setup")}function VJ($){if(t)t.hooks.beforeUpdate.push($);else console.warn("[stx] onBeforeUpdate called outside of component setup")}function EJ($){if(t)t.hooks.updated.push($);else console.warn("[stx] onUpdated called outside of component setup")}function IJ($){if(t)t.hooks.beforeUnmount.push($);else console.warn("[stx] onBeforeUnmount called outside of component setup")}function RJ($){if(t)t.hooks.unmounted.push($);else console.warn("[stx] onUnmounted called outside of component setup")}async function Y1($,X){let Z=$.hooks[X];for(let Q of Z)await Q()}async function DJ($){await Y1($,"beforeMount"),$.isMounted=!0,await Y1($,"mounted")}async function wJ($){if(!$.isMounted||$.isUnmounted)return;await Y1($,"beforeUpdate"),await Y1($,"updated")}async function TJ($){if($.isUnmounted)return;await Y1($,"beforeUnmount");for(let X of $.scope.cleanups)X();$.isUnmounted=!0,await Y1($,"unmounted")}function CJ(){return`
|
|
3
3
|
<script data-stx-client-runtime>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1069,7 +1069,7 @@ else {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
})();
|
|
1071
1071
|
</script>
|
|
1072
|
-
`}function P0($,X,Z={}){let Q=C4(X,Z),Y=$.lastIndexOf("</body>");if(Y!==-1)return $.slice(0,Y)+Q+$.slice(Y);if($.includes("</html>"))return $.replace("</html>",`${Q}</html>`);return $+Q}function Q$($){let X=$.toLowerCase();return X.endsWith(".css")||X.endsWith(".scss")||X.endsWith(".sass")||X.endsWith(".less")}function Y$($){let X=$.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((Q)=>X.endsWith(Q))}function J$($){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((Z)=>Z.test($))}var K1=null;function G$($){if(!K1)K1=new M6($);return K1}function D1(){if(K1)K1.stop(),K1=null}import w1 from"path";G5();var _1={name:"bun-plugin-stx",async setup($){let Z={...await r0(),...$.config?.stx},Q=new Set,Y=Z.webComponents?.enabled?`./${w1.relative(w1.dirname($.config?.outdir||"dist"),Z.webComponents.outputDir||"dist/web-components")}`:"/web-components",J=[];if(Z.webComponents?.enabled)try{let G=await B$(Z,Q);if(J.push(...G),Z.debug&&G.length>0)console.log(`Successfully built ${G.length} web components`)}catch(G){console.error("Failed to build web components:",G)}$.onLoad({filter:/\.stx$/},async({path:G})=>{try{let W=new Set;if(Z.cache&&Z.cachePath){let L=await _$(G,Z);if(L){if(Z.debug)console.log(`Using cached version of ${G}`);return{contents:L,loader:"html"}}}let K=await Y5(()=>Bun.file(G).text(),"",(L)=>{throw new Q5(`Failed to read stx file: ${G}`,G,void 0,void 0,`File read error: ${L.message}`)});if(!K)throw new Q5(`stx file is empty: ${G}`,G);let{scriptContent:_,templateContent:U,allScripts:F}=J5.time("script-extraction",()=>{let L=K,O=K$(K);if(O)L=O.content.trim();let A=K.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],M="",V=[];for(let q of A){let I=q.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",E=q.match(/<script\b([^>]*)>/i),w=E?E[1]:"";if(/\bserver\b/i.test(w))M=I;else V.push(q)}let N=L.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:M,templateContent:N,allScripts:V}}),z={__filename:G,__dirname:w1.dirname(G),__stx:{webComponentsPath:Y,builtComponents:J}};await Y5(()=>M0(_,z,G),void 0,(L)=>{let O=new Z5(`Script execution failed in ${G}: ${L.message}`,G,void 0,void 0,_.substring(0,100));if(W$.log(O,{filePath:G,scriptContent:_}),Z.debug)throw O});let H=await J5.timeAsync("directive-processing",async()=>{return await V0(U,z,G,Z,W)});if(F.length>0){let{interpolateScriptsInTemplate:L}=await import("./chunk-
|
|
1072
|
+
`}function P0($,X,Z={}){let Q=C4(X,Z),Y=$.lastIndexOf("</body>");if(Y!==-1)return $.slice(0,Y)+Q+$.slice(Y);if($.includes("</html>"))return $.replace("</html>",`${Q}</html>`);return $+Q}function Q$($){let X=$.toLowerCase();return X.endsWith(".css")||X.endsWith(".scss")||X.endsWith(".sass")||X.endsWith(".less")}function Y$($){let X=$.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((Q)=>X.endsWith(Q))}function J$($){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((Z)=>Z.test($))}var K1=null;function G$($){if(!K1)K1=new M6($);return K1}function D1(){if(K1)K1.stop(),K1=null}import w1 from"path";G5();var _1={name:"bun-plugin-stx",async setup($){let Z={...await r0(),...$.config?.stx},Q=new Set,Y=Z.webComponents?.enabled?`./${w1.relative(w1.dirname($.config?.outdir||"dist"),Z.webComponents.outputDir||"dist/web-components")}`:"/web-components",J=[];if(Z.webComponents?.enabled)try{let G=await B$(Z,Q);if(J.push(...G),Z.debug&&G.length>0)console.log(`Successfully built ${G.length} web components`)}catch(G){console.error("Failed to build web components:",G)}$.onLoad({filter:/\.stx$/},async({path:G})=>{try{let W=new Set;if(Z.cache&&Z.cachePath){let L=await _$(G,Z);if(L){if(Z.debug)console.log(`Using cached version of ${G}`);return{contents:L,loader:"html"}}}let K=await Y5(()=>Bun.file(G).text(),"",(L)=>{throw new Q5(`Failed to read stx file: ${G}`,G,void 0,void 0,`File read error: ${L.message}`)});if(!K)throw new Q5(`stx file is empty: ${G}`,G);let{scriptContent:_,templateContent:U,allScripts:F}=J5.time("script-extraction",()=>{let L=K,O=K$(K);if(O)L=O.content.trim();let A=K.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],M="",V=[];for(let q of A){let I=q.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",E=q.match(/<script\b([^>]*)>/i),w=E?E[1]:"";if(/\bserver\b/i.test(w))M=I;else V.push(q)}let N=L.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:M,templateContent:N,allScripts:V}}),z={__filename:G,__dirname:w1.dirname(G),__stx:{webComponentsPath:Y,builtComponents:J}};await Y5(()=>M0(_,z,G),void 0,(L)=>{let O=new Z5(`Script execution failed in ${G}: ${L.message}`,G,void 0,void 0,_.substring(0,100));if(W$.log(O,{filePath:G,scriptContent:_}),Z.debug)throw O});let H=await J5.timeAsync("directive-processing",async()=>{return await V0(U,z,G,Z,W)});if(F.length>0){let{interpolateScriptsInTemplate:L}=await import("./chunk-t19pzc0c.js"),O=L(F.join(`
|
|
1073
1073
|
`),z),A=H.search(/<\/body>/i);if(A!==-1)H=H.slice(0,A)+O+`
|
|
1074
1074
|
`+H.slice(A);else H+=`
|
|
1075
1075
|
${O}`}if(H=await I6(H),W.forEach((L)=>Q.add(L)),Z.cache&&Z.cachePath){if(await U$(G,H,W,Z),Z.debug)console.log(`Cached template ${G} with ${W.size} dependencies`)}return{contents:H,loader:"html"}}catch(W){let K=W instanceof Error?W:new Z5(`Plugin processing failed: ${String(W)}`,G);if(W$.log(K,{filePath:G,buildConfig:$.config}),E6.logDetailedError(K,{filePath:G,plugin:"bun-plugin-stx"}),Z.debug)console.error("stx Plugin Error:",K);let _=K,U=_.line||null,F=_.context||null;return{contents:Z.debug||V6()?`<!DOCTYPE html>
|
|
@@ -1132,7 +1132,7 @@ ${O}`}if(H=await I6(H),W.forEach((L)=>Q.add(L)),Z.cache&&Z.cachePath){if(await U
|
|
|
1132
1132
|
<h1>Something went wrong</h1>
|
|
1133
1133
|
<p>An internal error occurred. Please try again later.</p>
|
|
1134
1134
|
</body>
|
|
1135
|
-
</html>`,loader:"html"}}})}};async function x4($,X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=Q0.resolve($);if(!E0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return X5(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=u0(process.cwd(),"output");E0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let I={name:"public-assets",setup(T){T.onResolve({filter:/^\/(images|fonts|assets|public)\//},(f)=>{return{path:f.path,external:!0}})}},E=await Bun.build({entrypoints:[W],outdir:K,plugins:[I,_1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!E.success)return console.error(`${B.red}Build failed:${B.reset}`,E.logs),!1;let w=E.outputs.find((T)=>T.path.endsWith(".html"));if(!w)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(w.path).text(),!0}catch(I){return console.error(`${B.red}Error building stx file:${B.reset}`,I),!1}};if(!await U())return!1;let z=Q0.dirname(W);await L$(z);let j=Z;try{if(j=await h0(Z),j!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${j} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let I=X.hmrPort||j+1;J=G$({wsPort:I,verbose:!1}),G=J.start(I)}let H={},L=null,O;try{let{loadStxConfig:I}=await import("./chunk-
|
|
1135
|
+
</html>`,loader:"html"}}})}};async function x4($,X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=Q0.resolve($);if(!E0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return X5(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=u0(process.cwd(),"output");E0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let I={name:"public-assets",setup(T){T.onResolve({filter:/^\/(images|fonts|assets|public)\//},(f)=>{return{path:f.path,external:!0}})}},E=await Bun.build({entrypoints:[W],outdir:K,plugins:[I,_1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!E.success)return console.error(`${B.red}Build failed:${B.reset}`,E.logs),!1;let w=E.outputs.find((T)=>T.path.endsWith(".html"));if(!w)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(w.path).text(),!0}catch(I){return console.error(`${B.red}Error building stx file:${B.reset}`,I),!1}};if(!await U())return!1;let z=Q0.dirname(W);await L$(z);let j=Z;try{if(j=await h0(Z),j!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${j} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let I=X.hmrPort||j+1;J=G$({wsPort:I,verbose:!1}),G=J.start(I)}let H={},L=null,O;try{let{loadStxConfig:I}=await import("./chunk-adbgcqd9.js"),E=await I();if(O=X.stxOptions?.serverApi??E.serverApi,E?.apiRouter)L=E?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(E?.apiRoutes){H=E.apiRoutes;let w=Object.keys(H).length;if(w>0)console.log(`${B.blue}Loaded ${B.bright}${w} API route${w>1?"s":""}${B.reset}`)}if(E?.broadcasting?.enabled)try{let{startBroadcasting:w,loadChannels:D}=await import("./chunk-j8jteztt.js"),T=E.broadcasting;await w(T);let f=T.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${f}/ws${B.reset}`);let c=Q0.join(process.cwd(),"channels.ts");if(E0.existsSync(c))try{let v=await D(c);console.log(`${B.blue}Loaded ${B.bright}${v} broadcast channel${v!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(v){console.warn(`${B.yellow}Failed to load channels.ts: ${v.message}${B.reset}`)}}catch(w){console.warn(`${B.yellow}Broadcasting failed to start: ${w.message}${B.reset}`)}}catch{}let{createServerApi:A,isServerApiSource:M}=await import("./chunk-6yzan3t7.js"),V=await A(process.cwd(),O);if(console.log(`${B.blue}Starting server on ${B.cyan}http://localhost:${j}/${B.reset}...`),Y)console.log(`${B.magenta}Hot reload enabled on ws://localhost:${G}${B.reset}`);let N=k4({port:j,async fetch(I){return z$(I,await(async()=>{let E=new URL(I.url);if([K,Q0.dirname(W),Q0.join(process.cwd(),"public")].some((v)=>M(Q0.join(v,E.pathname),process.cwd(),O)))return new Response("Not Found",{status:404});if(L)try{let v=await L.handleRequest(I);if(v.status!==404)return v}catch{}if(H[E.pathname])try{return await H[E.pathname](I)}catch(v){return new Response(JSON.stringify({error:v.message}),{status:500,headers:{"Content-Type":"application/json"}})}let w=await V(I);if(w)return w;if(E.pathname==="/")return(async()=>{let S=await J0(_||"");if(Y)S=P0(S,G);if(X.native)if(S.includes("<head>"))S=S.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else if(S.includes("<html"))S=S.replace(/(<html[^>]*>)/,"$1<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>");else S="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+S;if(X.titlebarHidden)if(S.includes("<head>"))S=S.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else if(S.includes("<html"))S=S.replace(/(<html[^>]*>)/,"$1<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>");else S=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${S}`;return S})().then((S)=>new Response(S,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}}));let D=Q0.join(K,E.pathname);if(E0.existsSync(D)&&E0.statSync(D).isFile()){let v=Bun.file(D),S=Q0.extname(D).toLowerCase(),k="text/plain";if(S===".ts"||S===".tsx"){let H0=new Bun.Transpiler({loader:S===".tsx"?"tsx":"ts"}),G0=await v.text(),s0=H0.transformSync(G0);return new Response(s0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(S){case".html":k="text/html";break;case".css":k="text/css";break;case".js":k="text/javascript";break;case".json":k="application/json";break;case".png":k="image/png";break;case".jpg":case".jpeg":k="image/jpeg";break;case".gif":k="image/gif";break;case".woff":k="font/woff";break;case".woff2":k="font/woff2";break;case".ttf":k="font/ttf";break;case".otf":k="font/otf";break;case".eot":k="application/vnd.ms-fontobject";break}return new Response(v,{headers:{"Content-Type":k}})}let T=Q0.dirname(W),f=Q0.join(T,E.pathname);if(E0.existsSync(f)&&E0.statSync(f).isFile()){let v=Bun.file(f),S=Q0.extname(f).toLowerCase(),k="text/plain";if(S===".ts"||S===".tsx"){let H0=new Bun.Transpiler({loader:S===".tsx"?"tsx":"ts"}),G0=await v.text(),s0=H0.transformSync(G0);return new Response(s0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(S){case".html":k="text/html";break;case".css":k="text/css";break;case".js":k="text/javascript";break;case".json":k="application/json";break;case".png":k="image/png";break;case".jpg":case".jpeg":k="image/jpeg";break;case".gif":k="image/gif";break;case".svg":k="image/svg+xml";break;case".ico":k="image/x-icon";break;case".woff":k="font/woff";break;case".woff2":k="font/woff2";break;case".ttf":k="font/ttf";break;case".otf":k="font/otf";break;case".eot":k="application/vnd.ms-fontobject";break}return new Response(v,{headers:{"Content-Type":k}})}let c=Q0.join(process.cwd(),"public",E.pathname);if(E0.existsSync(c)&&E0.statSync(c).isFile()){let v=Bun.file(c),S=Q0.extname(c).toLowerCase(),k="application/octet-stream";if(S===".ts"||S===".tsx"){let H0=new Bun.Transpiler({loader:S===".tsx"?"tsx":"ts"}),G0=await v.text(),s0=H0.transformSync(G0);return new Response(s0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(S){case".html":k="text/html";break;case".css":k="text/css";break;case".js":k="text/javascript";break;case".json":k="application/json";break;case".png":k="image/png";break;case".jpg":case".jpeg":k="image/jpeg";break;case".gif":k="image/gif";break;case".svg":k="image/svg+xml";break;case".ico":k="image/x-icon";break;case".woff":k="font/woff";break;case".woff2":k="font/woff2";break;case".ttf":k="font/ttf";break;case".otf":k="font/otf";break;case".eot":k="application/vnd.ms-fontobject";break}return new Response(v,{headers:{"Content-Type":k}})}return new Response("Not Found",{status:404})})())},error(I){return new Response(`<pre>${I}
|
|
1136
1136
|
${I.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),console.log(`
|
|
1137
1137
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1138
1138
|
${B.bright}\u2192 ${B.cyan}http://localhost:${j}/${B.reset}`),console.log(`
|
|
@@ -1619,12 +1619,12 @@ ${H.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),con
|
|
|
1619
1619
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1620
1620
|
${B.bright}\u2192 ${B.cyan}http://localhost:${U}/${B.reset}`),console.log(`
|
|
1621
1621
|
${B.yellow}Routes:${B.reset}`);let z=new Set(W.map((H)=>H.routeTemplate)),j=Object.entries(G).filter(([H])=>!z.has(H)).sort(([H],[L])=>H.localeCompare(L)).map(([H,L])=>({route:H==="/"?"/":H,filePath:B0.relative(process.cwd(),L.filePath),fileType:L.fileType}));for(let H of W){let L=H.routeTemplate.replace(/\[([^\]]+)\]/g,":$1");j.push({route:L,filePath:B0.relative(process.cwd(),H.filePath),fileType:"stx"})}if(j.sort((H,L)=>H.route.localeCompare(L.route)),j.forEach((H,L)=>{let A=L===j.length-1?"\u2514\u2500 ":"\u251C\u2500 ",M=H.fileType==="md"?`${B.magenta}(markdown)${B.reset}`:"";console.log(` ${B.green}${A}${H.route}${B.reset} \u2192 ${B.bright}${H.filePath}${B.reset} ${M}`)}),console.log(`
|
|
1622
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),d0(F.url.toString(),()=>{if(Q)m0.watch(J,{recursive:!0}).close();F.stop()}),Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let H=m0.watch(J,{recursive:!0},async(L,O)=>{if(!O)return;if(O.endsWith(".stx")||O.endsWith(".js")||O.endsWith(".ts")||O.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${O}${B.yellow} changed, rebuilding...${B.reset}`),o0.clear(),t0(),await K()});process.on("SIGINT",()=>{H.close(),F.stop(),process.exit(0)})}return!0}function D6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:b4}=globalThis.Bun;import e from"fs";import m from"path";async function x6($){try{return U5(await Bun.file($).text())}catch{return}}function W5($){let X=Bun.file($),Z=m.extname($).toLowerCase(),Q={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Z)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Q[Z]||"application/octet-stream",...J}})}async function y4($=".",X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=m.resolve($),{loadStxConfig:K}=await import("./chunk-127ypa40.js"),_=await K(W),{createServerApi:U,isServerApiSource:F}=await import("./chunk-kaaqzwqf.js"),z=X.stxOptions?.serverApi??_.serverApi,j=await U(W,z),H=_.root&&_.root!=="."?m.join(W,_.root):W,L=X.pagesDir||_.pagesDir||"pages",O=m.join(H,L);if(!e.existsSync(O)&&!_._layerPageDirs?.some((R)=>e.existsSync(R)))return console.error(`${B.red}Error: No '${L}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${O}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${L}/index.stx for the homepage.${B.reset}`),!1;let A=H$(H,{pagesDir:L,pagesDirs:_._layerPageDirs?[O,..._._layerPageDirs.slice(1)]:void 0});if(A.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${O}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${A.length}${B.blue} routes${B.reset}`);let M=_?._pluginPageDirs||[],V=[];for(let{dir:R,prefix:x}of M)if(e.existsSync(R)){let P=H$(m.dirname(R),{pagesDir:m.basename(R)});for(let y of P){let Z0=x==="/"?y.pattern:`${x}${y.pattern==="/"?"":y.pattern}`;V.push({route:{...y,pattern:Z0},prefix:x})}if(P.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${P.length}${B.blue} routes at ${B.cyan}${x}${B.reset}`)}let N=new Map,q=null,I=null;if(X.stxOptions?.shell!==!1){if(I=await i6(W,X.stxOptions?.shell),I){if(q=await _5(I,X.stxOptions||{}),q)console.log(`${B.blue}Using app shell: ${B.bright}${m.relative(W,I)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}b6(),await v6(W);let E=y6();if(E.length>0)console.log(`${B.blue}Loaded ${B.bright}${E.length}${B.blue} middleware: ${B.dim}${E.join(", ")}${B.reset}`);let w={},D=null;try{let{loadStxConfig:R}=await import("./chunk-127ypa40.js"),x=await R(W);if(x?.apiRouter)D=x?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(x?.apiRoutes){w=x.apiRoutes;let P=Object.keys(w).length;if(P>0)console.log(`${B.blue}Loaded ${B.bright}${P} API route${P>1?"s":""}${B.reset}`)}if(x?.broadcasting?.enabled)try{let{startBroadcasting:P,loadChannels:y}=await import("./chunk-j8jteztt.js"),Z0=x.broadcasting;await P(Z0);let R0=Z0.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${R0}/ws${B.reset}`);let g0=m.join(process.cwd(),"channels.ts");if(e.existsSync(g0))try{let p=await y(g0);console.log(`${B.blue}Loaded ${B.bright}${p} broadcast channel${p!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(p){console.warn(`${B.yellow}Failed to load channels.ts: ${p.message}${B.reset}`)}}catch(P){console.warn(`${B.yellow}Broadcasting failed to start: ${P.message}${B.reset}`)}}catch{}let T=u0(W,"output");e.mkdirSync(T,{recursive:!0});let f=new Map,c=new Set,v=async(R)=>{let x=S6(O,R);if(!x)return null;try{let P=await Bun.build({entrypoints:[x],outdir:T,plugins:[_1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!P.success)return null;let y=P.outputs.find((Z0)=>Z0.path.endsWith(".html"));if(!y)return null;return await Bun.file(y.path).text()}catch{return null}},S=new Map,k=async(R,x)=>{try{let{processDirectives:P,extractVariables:y,defaultConfig:Z0,loadStxConfig:R0,injectRouterScript:g0}=await import("./chunk-127ypa40.js"),{checkCache:p,cacheTemplate:u,readFileCached:g,templateCache:h}=await import("./chunk-4pse0geh.js"),Y0=await R0(W),f0=(i)=>{if(!i)return i;if(m.isAbsolute(i))return i;return m.resolve(W,i)},C={...Z0,...Y0,...X.stxOptions,autoShell:!0};if(X.debugDirectives)C.debug=!0;C.partialsDir=f0(C.partialsDir),C.componentsDir=f0(C.componentsDir),C.layoutsDir=f0(C.layoutsDir),C.storesDir=f0(C.storesDir||"stores"),C.cachePath=f0(C.cachePath)??u0(W,"cache");let X0=!x&&!X.profile,a=C.cache!==!1;if(a&&X0){let i=h.get(R.filePath);if(i)try{if((await e.promises.stat(R.filePath)).mtime.getTime()<=i.mtime){let q0=!0;for(let _0 of i.dependencies){if(!e.existsSync(_0)){q0=!1;break}if((await e.promises.stat(_0)).mtime.getTime()>i.mtime){q0=!1;break}}if(q0){let _0=i.output;if(q)_0=A$(_0,{preserveHead:!0});let E1=S.get(R.filePath);return{route:R,content:_0,status:E1?.status??await x6(R.filePath),headers:E1?.headers}}}}catch{}let A0=await p(R.filePath,C);if(A0){let N0=A0;if(q)N0=A$(N0,{preserveHead:!0});let q0=S.get(R.filePath);return{route:R,content:N0,status:q0?.status??await x6(R.filePath),headers:q0?.headers}}}let o=a?await g(R.filePath):await Bun.file(R.filePath).text(),K0=U5(o),{classifyAllScripts:d}=await import("./chunk-127ypa40.js"),O0=d(o),D0=O0.server.map((i)=>i.content),r=o;for(let i of O0.server)r=r.replace(i.fullTag,"");let n={__filename:R.filePath,__dirname:m.dirname(R.filePath),__stx_options:C,params:x??{},__stx_runtime_head:{}};for(let i of D0)try{await y(i,n,R.filePath)}catch(A0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",R.filePath,A0?.message||A0)}let S0=new Set,j0;if(X.profile){let i=performance.now();j0=await P(r,n,R.filePath,C,S0);let A0=performance.now()-i,N0=m.relative(W,R.filePath)||R.filePath;console.log(`[stx:profile] ${N0} \u2192 ${A0.toFixed(2)}ms`)}else j0=await P(r,n,R.filePath,C,S0);if(!q)j0=await g0(j0,{router:C.router});{let{interpolateScriptExpressions:i}=await import("./chunk-d2zrde0h.js");j0=j0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(A0,N0,q0)=>{if(!/function\s+__stx_setup_/.test(q0))return A0;return`<script${N0}>${i(q0,n)}</script>`})}if(q)j0=A$(j0,{preserveHead:!0});if(a&&X0)await u(R.filePath,j0,S0,C);let{extractStreamBoundaries:B3}=await import("./chunk-dpafnyqg.js"),Q1=B3(n),V1=n.__streamTemplates;if(V1&&typeof V1==="object"&&Object.keys(V1).length>0){let i=n.streamBoundaries||{},A0={...C,autoShell:!1},N0=Object.keys(V1).map((_0)=>({id:_0,render:async()=>{let E1=typeof i[_0]==="function"?await i[_0]():void 0;return P(V1[_0],{...n,$boundary:E1},R.filePath,A0,new Set)}})),q0=new Set(N0.map((_0)=>_0.id));Q1=[...(Q1||[]).filter((_0)=>!q0.has(_0.id)),...N0]}if(Q1&&Q1.length>0)c.add(R.pattern);else Q1=void 0;let r5=T1(n),n5=C1(n);if(X0)S.set(R.filePath,{status:r5,headers:n5});return{route:R,content:j0,status:r5??K0,headers:n5,boundaries:Q1}}catch(P){return console.error(`${B.red}Error building ${B.bright}${R.pattern}${B.reset}:`,P),null}},H0=8,G0=async()=>{f.clear(),N.clear();for(let R=0;R<A.length;R+=H0){let x=A.slice(R,R+H0),P=await Promise.all(x.map((y)=>k(y)));for(let y of P)if(y)f.set(y.route.pattern,y)}for(let R=0;R<V.length;R+=H0){let x=V.slice(R,R+H0),P=await Promise.all(x.map(({route:y})=>k(y)));for(let y of P)if(y)N.set(y.route.pattern,y)}return f.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await G0())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await L$(W);let v0=Z;try{if(v0=await h0(Z),v0!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${v0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let R=X.hmrPort||v0+1;J=G$({wsPort:R,verbose:!1}),G=J.start(R)}let z0=(R,x)=>{let y=`<script data-stx-route-params>(function(){var p=${JSON.stringify(x).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(R.includes("</head>"))return R.replace("</head>",`${y}</head>`);if(R.includes("<body"))return R.replace(/<body([^>]*)>/,`<body$1>${y}`);return y+R};console.log(`${B.blue}Starting server...${B.reset}`);let Z1=b4({port:v0,async fetch(R){let x=new URL(R.url),P=_?.publicDir||"public",y=m.join(W,P,x.pathname),Z0=m.join(W,x.pathname),R0=m.join(T,x.pathname);if([y,Z0,R0].some((C)=>F(C,W,z)))return new Response("Not Found",{status:404});let[g0,p,u]=await Promise.all([e.promises.stat(y).catch(()=>null),e.promises.stat(Z0).catch(()=>null),e.promises.stat(R0).catch(()=>null)]);if(g0?.isFile()&&!F(y,W,z))return W5(y);if(p?.isFile()&&!F(Z0,W,z))return W5(Z0);if(u?.isFile()&&!F(R0,W,z))return W5(R0);if(x.pathname.startsWith("/_stx/component/")){let C=decodeURIComponent(x.pathname.slice(16));if(C)try{let X0=`<${C} />`,a={...buildConfig,autoShell:!1},o=await processDirectives(X0,{},m.join(W,"components",`${C}.stx`),a,new Set);return new Response(o,{headers:{"Content-Type":"text/html"}})}catch(X0){return new Response(`<div class="stx-async-error">${X0.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(x.pathname==="/_stx/img"){let{handleImageRequest:C}=await import("./chunk-2xj61qk5.js"),X0=await C(R,{publicDir:m.join(W,P),cacheDir:u0(W,"cache","img")});if(X0)return X0}if(D)try{let C=await D.handleRequest(R);if(C.status!==404)return C}catch{}if(w[x.pathname])try{return await w[x.pathname](R)}catch(C){return new Response(JSON.stringify({error:C.message}),{status:500,headers:{"Content-Type":"application/json"}})}let g=await j(R);if(g)return g;let h=K5(x.pathname,A);if(h){let C=f.get(h.route.pattern),X0=c.has(h.route.pattern);if(h.route.isDynamic&&Object.keys(h.params).length>0||X0){let a=await k(h.route,h.params);if(a)C=a}if(C){let a=C.status??200,o=C.headers??{},K0=(h.route.filePath?u6(await Bun.file(h.route.filePath).text().catch(()=>"")):null)??{};if(K0.validate){if(!await K0.validate({params:h.params})){let D0=await v(404);if(D0){let r=D0;if(r=await J0(r,W),Y)r=P0(r,G);return new Response(r,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(K0.middleware){let O0=g6(x.pathname,h.params,K0,x.search),D0=f6(O0,null,R,{isServer:!0}),r=await h6(K0.middleware,D0);if(r.redirect){let n=r.redirect.path,S0=r.redirect.options.redirectCode||302,j0=new Headers(r.responseHeaders);return j0.set("Location",n),new Response(null,{status:S0,headers:j0})}if(r.abort){let{statusCode:n,message:S0}=r.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${n}</title></head><body><h1>Error ${n}</h1><p>${S0}</p></body></html>`,{status:n,headers:{"Content-Type":"text/html"}})}if(Object.keys(r.state).length>0){let n=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(r.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;C.content=C.content.replace("</head>",`${n}</head>`)}}let d=C.content;if(q&&a6(R)){let O0=d6(d),D0=m6(d),r=d.match(/<title[^>]*>([\s\S]*?)<\/title>/i),n=r?l6(r[1].trim()):"";if(Object.keys(h.params).length>0)d=z0(d,h.params);d=await J0(d,W);let S0=_?.router?.container||"main";return d=s6(d,S0),new Response(d,{status:a,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":O0.layout,"X-STX-Layout-Group":O0.group,"X-STX-Runtime":D0?"true":"false",...n&&{"X-STX-Title":encodeURIComponent(n)},[p6]:c6(),...B1(),"Cache-Control":j$}})}if(q)d=O$(q,d);if(Object.keys(h.params).length>0)d=z0(d,h.params);if(d=await J0(d,W),Y)d=P0(d,G);if(X.native)if(d.includes("<head>"))d=d.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else d="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+d;if(X.titlebarHidden)if(d.includes("<head>"))d=d.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else d=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${d}`;if(C.boundaries&&C.boundaries.length>0){let{renderStreamingPage:O0,streamToResponse:D0}=await import("./chunk-dpafnyqg.js");return D0(O0(d,C.boundaries,{timeoutMs:30000}),{status:a,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(d,{status:a,headers:{"Content-Type":"text/html",...B1(),"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0",...o}})}}if(V.length>0){let C=V.map((a)=>a.route),X0=K5(x.pathname,C);if(X0){let a=N.get(X0.route.pattern);if(a){let o=a.content;if(q)o=O$(q,o);if(Object.keys(X0.params).length>0)o=z0(o,X0.params);if(o=await J0(o,W),Y)o=P0(o,G);return new Response(o,{status:a.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:a}of M)if(a!=="/"&&x.pathname.startsWith(a)){let o=N.get(a)||N.get(a+"/");if(o){let K0=o.content;if(q)K0=O$(q,K0);if(K0=await J0(K0,W),Y)K0=P0(K0,G);return new Response(K0,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let Y0=f.get("/");if(Y0){let C=Y0.content;if(C=await J0(C,W),Y)C=P0(C,G);if(X.native)if(C.includes("<head>"))C=C.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else C="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+C;return new Response(C,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let f0=await v(404);if(f0){let C=f0;if(C=await J0(C,W),Y)C=P0(C,G);return new Response(C,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(R){let x=await v(500);if(x)return new Response(x,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${R}
|
|
1622
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),d0(F.url.toString(),()=>{if(Q)m0.watch(J,{recursive:!0}).close();F.stop()}),Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let H=m0.watch(J,{recursive:!0},async(L,O)=>{if(!O)return;if(O.endsWith(".stx")||O.endsWith(".js")||O.endsWith(".ts")||O.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${O}${B.yellow} changed, rebuilding...${B.reset}`),o0.clear(),t0(),await K()});process.on("SIGINT",()=>{H.close(),F.stop(),process.exit(0)})}return!0}function D6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:b4}=globalThis.Bun;import e from"fs";import m from"path";async function x6($){try{return U5(await Bun.file($).text())}catch{return}}function W5($){let X=Bun.file($),Z=m.extname($).toLowerCase(),Q={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Z)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Q[Z]||"application/octet-stream",...J}})}async function y4($=".",X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=m.resolve($),{loadStxConfig:K}=await import("./chunk-adbgcqd9.js"),_=await K(W),{createServerApi:U,isServerApiSource:F}=await import("./chunk-6yzan3t7.js"),z=X.stxOptions?.serverApi??_.serverApi,j=await U(W,z),H=_.root&&_.root!=="."?m.join(W,_.root):W,L=X.pagesDir||_.pagesDir||"pages",O=m.join(H,L);if(!e.existsSync(O)&&!_._layerPageDirs?.some((R)=>e.existsSync(R)))return console.error(`${B.red}Error: No '${L}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${O}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${L}/index.stx for the homepage.${B.reset}`),!1;let A=H$(H,{pagesDir:L,pagesDirs:_._layerPageDirs?[O,..._._layerPageDirs.slice(1)]:void 0});if(A.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${O}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${A.length}${B.blue} routes${B.reset}`);let M=_?._pluginPageDirs||[],V=[];for(let{dir:R,prefix:x}of M)if(e.existsSync(R)){let P=H$(m.dirname(R),{pagesDir:m.basename(R)});for(let y of P){let Z0=x==="/"?y.pattern:`${x}${y.pattern==="/"?"":y.pattern}`;V.push({route:{...y,pattern:Z0},prefix:x})}if(P.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${P.length}${B.blue} routes at ${B.cyan}${x}${B.reset}`)}let N=new Map,q=null,I=null;if(X.stxOptions?.shell!==!1){if(I=await i6(W,X.stxOptions?.shell),I){if(q=await _5(I,X.stxOptions||{}),q)console.log(`${B.blue}Using app shell: ${B.bright}${m.relative(W,I)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}b6(),await v6(W);let E=y6();if(E.length>0)console.log(`${B.blue}Loaded ${B.bright}${E.length}${B.blue} middleware: ${B.dim}${E.join(", ")}${B.reset}`);let w={},D=null;try{let{loadStxConfig:R}=await import("./chunk-adbgcqd9.js"),x=await R(W);if(x?.apiRouter)D=x?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(x?.apiRoutes){w=x.apiRoutes;let P=Object.keys(w).length;if(P>0)console.log(`${B.blue}Loaded ${B.bright}${P} API route${P>1?"s":""}${B.reset}`)}if(x?.broadcasting?.enabled)try{let{startBroadcasting:P,loadChannels:y}=await import("./chunk-j8jteztt.js"),Z0=x.broadcasting;await P(Z0);let R0=Z0.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${R0}/ws${B.reset}`);let g0=m.join(process.cwd(),"channels.ts");if(e.existsSync(g0))try{let p=await y(g0);console.log(`${B.blue}Loaded ${B.bright}${p} broadcast channel${p!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(p){console.warn(`${B.yellow}Failed to load channels.ts: ${p.message}${B.reset}`)}}catch(P){console.warn(`${B.yellow}Broadcasting failed to start: ${P.message}${B.reset}`)}}catch{}let T=u0(W,"output");e.mkdirSync(T,{recursive:!0});let f=new Map,c=new Set,v=async(R)=>{let x=S6(O,R);if(!x)return null;try{let P=await Bun.build({entrypoints:[x],outdir:T,plugins:[_1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!P.success)return null;let y=P.outputs.find((Z0)=>Z0.path.endsWith(".html"));if(!y)return null;return await Bun.file(y.path).text()}catch{return null}},S=new Map,k=async(R,x)=>{try{let{processDirectives:P,extractVariables:y,defaultConfig:Z0,loadStxConfig:R0,injectRouterScript:g0}=await import("./chunk-adbgcqd9.js"),{checkCache:p,cacheTemplate:u,readFileCached:g,templateCache:h}=await import("./chunk-shz63een.js"),Y0=await R0(W),f0=(i)=>{if(!i)return i;if(m.isAbsolute(i))return i;return m.resolve(W,i)},C={...Z0,...Y0,...X.stxOptions,autoShell:!0};if(X.debugDirectives)C.debug=!0;C.partialsDir=f0(C.partialsDir),C.componentsDir=f0(C.componentsDir),C.layoutsDir=f0(C.layoutsDir),C.storesDir=f0(C.storesDir||"stores"),C.cachePath=f0(C.cachePath)??u0(W,"cache");let X0=!x&&!X.profile,a=C.cache!==!1;if(a&&X0){let i=h.get(R.filePath);if(i)try{if((await e.promises.stat(R.filePath)).mtime.getTime()<=i.mtime){let q0=!0;for(let _0 of i.dependencies){if(!e.existsSync(_0)){q0=!1;break}if((await e.promises.stat(_0)).mtime.getTime()>i.mtime){q0=!1;break}}if(q0){let _0=i.output;if(q)_0=A$(_0,{preserveHead:!0});let E1=S.get(R.filePath);return{route:R,content:_0,status:E1?.status??await x6(R.filePath),headers:E1?.headers}}}}catch{}let A0=await p(R.filePath,C);if(A0){let N0=A0;if(q)N0=A$(N0,{preserveHead:!0});let q0=S.get(R.filePath);return{route:R,content:N0,status:q0?.status??await x6(R.filePath),headers:q0?.headers}}}let o=a?await g(R.filePath):await Bun.file(R.filePath).text(),K0=U5(o),{classifyAllScripts:d}=await import("./chunk-adbgcqd9.js"),O0=d(o),D0=O0.server.map((i)=>i.content),r=o;for(let i of O0.server)r=r.replace(i.fullTag,"");let n={__filename:R.filePath,__dirname:m.dirname(R.filePath),__stx_options:C,params:x??{},__stx_runtime_head:{}};for(let i of D0)try{await y(i,n,R.filePath)}catch(A0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",R.filePath,A0?.message||A0)}let S0=new Set,j0;if(X.profile){let i=performance.now();j0=await P(r,n,R.filePath,C,S0);let A0=performance.now()-i,N0=m.relative(W,R.filePath)||R.filePath;console.log(`[stx:profile] ${N0} \u2192 ${A0.toFixed(2)}ms`)}else j0=await P(r,n,R.filePath,C,S0);if(!q)j0=await g0(j0,{router:C.router});{let{interpolateScriptExpressions:i}=await import("./chunk-t19pzc0c.js");j0=j0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(A0,N0,q0)=>{if(!/function\s+__stx_setup_/.test(q0))return A0;return`<script${N0}>${i(q0,n)}</script>`})}if(q)j0=A$(j0,{preserveHead:!0});if(a&&X0)await u(R.filePath,j0,S0,C);let{extractStreamBoundaries:B3}=await import("./chunk-94f39mh9.js"),Q1=B3(n),V1=n.__streamTemplates;if(V1&&typeof V1==="object"&&Object.keys(V1).length>0){let i=n.streamBoundaries||{},A0={...C,autoShell:!1},N0=Object.keys(V1).map((_0)=>({id:_0,render:async()=>{let E1=typeof i[_0]==="function"?await i[_0]():void 0;return P(V1[_0],{...n,$boundary:E1},R.filePath,A0,new Set)}})),q0=new Set(N0.map((_0)=>_0.id));Q1=[...(Q1||[]).filter((_0)=>!q0.has(_0.id)),...N0]}if(Q1&&Q1.length>0)c.add(R.pattern);else Q1=void 0;let r5=T1(n),n5=C1(n);if(X0)S.set(R.filePath,{status:r5,headers:n5});return{route:R,content:j0,status:r5??K0,headers:n5,boundaries:Q1}}catch(P){return console.error(`${B.red}Error building ${B.bright}${R.pattern}${B.reset}:`,P),null}},H0=8,G0=async()=>{f.clear(),N.clear();for(let R=0;R<A.length;R+=H0){let x=A.slice(R,R+H0),P=await Promise.all(x.map((y)=>k(y)));for(let y of P)if(y)f.set(y.route.pattern,y)}for(let R=0;R<V.length;R+=H0){let x=V.slice(R,R+H0),P=await Promise.all(x.map(({route:y})=>k(y)));for(let y of P)if(y)N.set(y.route.pattern,y)}return f.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await G0())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await L$(W);let v0=Z;try{if(v0=await h0(Z),v0!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${v0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let R=X.hmrPort||v0+1;J=G$({wsPort:R,verbose:!1}),G=J.start(R)}let z0=(R,x)=>{let y=`<script data-stx-route-params>(function(){var p=${JSON.stringify(x).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(R.includes("</head>"))return R.replace("</head>",`${y}</head>`);if(R.includes("<body"))return R.replace(/<body([^>]*)>/,`<body$1>${y}`);return y+R};console.log(`${B.blue}Starting server...${B.reset}`);let Z1=b4({port:v0,async fetch(R){let x=new URL(R.url),P=_?.publicDir||"public",y=m.join(W,P,x.pathname),Z0=m.join(W,x.pathname),R0=m.join(T,x.pathname);if([y,Z0,R0].some((C)=>F(C,W,z)))return new Response("Not Found",{status:404});let[g0,p,u]=await Promise.all([e.promises.stat(y).catch(()=>null),e.promises.stat(Z0).catch(()=>null),e.promises.stat(R0).catch(()=>null)]);if(g0?.isFile()&&!F(y,W,z))return W5(y);if(p?.isFile()&&!F(Z0,W,z))return W5(Z0);if(u?.isFile()&&!F(R0,W,z))return W5(R0);if(x.pathname.startsWith("/_stx/component/")){let C=decodeURIComponent(x.pathname.slice(16));if(C)try{let X0=`<${C} />`,a={...buildConfig,autoShell:!1},o=await processDirectives(X0,{},m.join(W,"components",`${C}.stx`),a,new Set);return new Response(o,{headers:{"Content-Type":"text/html"}})}catch(X0){return new Response(`<div class="stx-async-error">${X0.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(x.pathname==="/_stx/img"){let{handleImageRequest:C}=await import("./chunk-2xj61qk5.js"),X0=await C(R,{publicDir:m.join(W,P),cacheDir:u0(W,"cache","img")});if(X0)return X0}if(D)try{let C=await D.handleRequest(R);if(C.status!==404)return C}catch{}if(w[x.pathname])try{return await w[x.pathname](R)}catch(C){return new Response(JSON.stringify({error:C.message}),{status:500,headers:{"Content-Type":"application/json"}})}let g=await j(R);if(g)return g;let h=K5(x.pathname,A);if(h){let C=f.get(h.route.pattern),X0=c.has(h.route.pattern);if(h.route.isDynamic&&Object.keys(h.params).length>0||X0){let a=await k(h.route,h.params);if(a)C=a}if(C){let a=C.status??200,o=C.headers??{},K0=(h.route.filePath?u6(await Bun.file(h.route.filePath).text().catch(()=>"")):null)??{};if(K0.validate){if(!await K0.validate({params:h.params})){let D0=await v(404);if(D0){let r=D0;if(r=await J0(r,W),Y)r=P0(r,G);return new Response(r,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(K0.middleware){let O0=g6(x.pathname,h.params,K0,x.search),D0=f6(O0,null,R,{isServer:!0}),r=await h6(K0.middleware,D0);if(r.redirect){let n=r.redirect.path,S0=r.redirect.options.redirectCode||302,j0=new Headers(r.responseHeaders);return j0.set("Location",n),new Response(null,{status:S0,headers:j0})}if(r.abort){let{statusCode:n,message:S0}=r.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${n}</title></head><body><h1>Error ${n}</h1><p>${S0}</p></body></html>`,{status:n,headers:{"Content-Type":"text/html"}})}if(Object.keys(r.state).length>0){let n=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(r.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;C.content=C.content.replace("</head>",`${n}</head>`)}}let d=C.content;if(q&&a6(R)){let O0=d6(d),D0=m6(d),r=d.match(/<title[^>]*>([\s\S]*?)<\/title>/i),n=r?l6(r[1].trim()):"";if(Object.keys(h.params).length>0)d=z0(d,h.params);d=await J0(d,W);let S0=_?.router?.container||"main";return d=s6(d,S0),new Response(d,{status:a,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":O0.layout,"X-STX-Layout-Group":O0.group,"X-STX-Runtime":D0?"true":"false",...n&&{"X-STX-Title":encodeURIComponent(n)},[p6]:c6(),...B1(),"Cache-Control":j$}})}if(q)d=O$(q,d);if(Object.keys(h.params).length>0)d=z0(d,h.params);if(d=await J0(d,W),Y)d=P0(d,G);if(X.native)if(d.includes("<head>"))d=d.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else d="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+d;if(X.titlebarHidden)if(d.includes("<head>"))d=d.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else d=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${d}`;if(C.boundaries&&C.boundaries.length>0){let{renderStreamingPage:O0,streamToResponse:D0}=await import("./chunk-94f39mh9.js");return D0(O0(d,C.boundaries,{timeoutMs:30000}),{status:a,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(d,{status:a,headers:{"Content-Type":"text/html",...B1(),"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0",...o}})}}if(V.length>0){let C=V.map((a)=>a.route),X0=K5(x.pathname,C);if(X0){let a=N.get(X0.route.pattern);if(a){let o=a.content;if(q)o=O$(q,o);if(Object.keys(X0.params).length>0)o=z0(o,X0.params);if(o=await J0(o,W),Y)o=P0(o,G);return new Response(o,{status:a.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:a}of M)if(a!=="/"&&x.pathname.startsWith(a)){let o=N.get(a)||N.get(a+"/");if(o){let K0=o.content;if(q)K0=O$(q,K0);if(K0=await J0(K0,W),Y)K0=P0(K0,G);return new Response(K0,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let Y0=f.get("/");if(Y0){let C=Y0.content;if(C=await J0(C,W),Y)C=P0(C,G);if(X.native)if(C.includes("<head>"))C=C.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else C="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+C;return new Response(C,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let f0=await v(404);if(f0){let C=f0;if(C=await J0(C,W),Y)C=P0(C,G);return new Response(C,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(R){let x=await v(500);if(x)return new Response(x,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${R}
|
|
1623
1623
|
${R.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});if(console.clear(),console.log(`
|
|
1624
1624
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1625
1625
|
${B.bright}\u2192 ${B.cyan}http://localhost:${v0}/${B.reset}`),Y)console.log(`${B.dim} HMR: ws://localhost:${G}${B.reset}`);console.log(`
|
|
1626
1626
|
${B.yellow}Routes:${B.reset}`);let W0=[...P6(A,W)];for(let{route:R}of V)W0.push(`${R.pattern}`);if(W0.forEach((R,x)=>{let y=x===W0.length-1?"\u2514\u2500 ":"\u251C\u2500 ";console.log(` ${B.green}${y}${B.reset}${R}`)}),console.log(`
|
|
1627
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),d0(Z1.url.toString(),()=>{if(J)D1();Z1.stop()}),X.native){let R,x=m.join(O,"index.stx");if(e.existsSync(x)){let y=await Bun.file(x).text();R=Z$(y)}let P=_?.app?.window??{};await G1(v0,{title:_?.app?.head?.title||m.basename(W)||"stx App",width:P.width,height:P.height,darkMode:P.darkMode,hotReload:P.hotReload,titlebarHidden:P.titlebarHidden??X.titlebarHidden===!0,nativeSidebar:!!R,sidebarConfig:R})}if(Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let R=(p)=>{return p.startsWith("public/")||p.startsWith("public\\")},x=(p)=>{let u=p.toLowerCase();return u.endsWith(".stx")||u.endsWith(".html")||u.endsWith(".md")},P=new Map,y=()=>{let p=new Set([W,..._._layerGraph?.layers.map((u)=>u.root)??[],..._._layerGraph?.configDependencies.map((u)=>m.dirname(u))??[]].filter((u)=>e.existsSync(u)).map((u)=>e.realpathSync(u)));for(let u of _._layerGraph?.layers??[])for(let g of Object.values(u.resources)){if(!e.existsSync(g))continue;let h=e.realpathSync(g);if(![...p].some((Y0)=>h===Y0||h.startsWith(`${Y0}${m.sep}`)))p.add(h)}for(let[u,g]of P)if(!p.has(u))g.close(),P.delete(u);for(let u of p)if(!P.has(u)&&e.existsSync(u))P.set(u,e.watch(u,{recursive:!0},(g,h)=>{R0(u,g,h).catch((Y0)=>console.error("[stx] Layer rebuild failed:",Y0))}))},Z0=Promise.resolve(),R0=(p,u,g)=>{return Z0=Z0.catch(()=>{}).then(()=>g0(p,u,g)),Z0},g0=async(p,u,g)=>{if(!g||J$(g))return;if(Y$(g)){if(_._layerGraph){let h=await K(W);Object.assign(_,h),A.splice(0,A.length,...H$(H,{pagesDir:L,pagesDirs:h._layerPageDirs?[O,...h._layerPageDirs.slice(1)]:void 0})),y()}if(R(g)){if(console.log(`${B.cyan}${g} changed${B.reset}`),Y&&J)J.reload(g)}else if(x(g)){console.log(`${B.yellow}${g} changed, rebuilding...${B.reset}`),o0.clear(),t0();try{let{invalidateFileCache:h,templateCache:Y0}=await import("./chunk-
|
|
1627
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),d0(Z1.url.toString(),()=>{if(J)D1();Z1.stop()}),X.native){let R,x=m.join(O,"index.stx");if(e.existsSync(x)){let y=await Bun.file(x).text();R=Z$(y)}let P=_?.app?.window??{};await G1(v0,{title:_?.app?.head?.title||m.basename(W)||"stx App",width:P.width,height:P.height,darkMode:P.darkMode,hotReload:P.hotReload,titlebarHidden:P.titlebarHidden??X.titlebarHidden===!0,nativeSidebar:!!R,sidebarConfig:R})}if(Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let R=(p)=>{return p.startsWith("public/")||p.startsWith("public\\")},x=(p)=>{let u=p.toLowerCase();return u.endsWith(".stx")||u.endsWith(".html")||u.endsWith(".md")},P=new Map,y=()=>{let p=new Set([W,..._._layerGraph?.layers.map((u)=>u.root)??[],..._._layerGraph?.configDependencies.map((u)=>m.dirname(u))??[]].filter((u)=>e.existsSync(u)).map((u)=>e.realpathSync(u)));for(let u of _._layerGraph?.layers??[])for(let g of Object.values(u.resources)){if(!e.existsSync(g))continue;let h=e.realpathSync(g);if(![...p].some((Y0)=>h===Y0||h.startsWith(`${Y0}${m.sep}`)))p.add(h)}for(let[u,g]of P)if(!p.has(u))g.close(),P.delete(u);for(let u of p)if(!P.has(u)&&e.existsSync(u))P.set(u,e.watch(u,{recursive:!0},(g,h)=>{R0(u,g,h).catch((Y0)=>console.error("[stx] Layer rebuild failed:",Y0))}))},Z0=Promise.resolve(),R0=(p,u,g)=>{return Z0=Z0.catch(()=>{}).then(()=>g0(p,u,g)),Z0},g0=async(p,u,g)=>{if(!g||J$(g))return;if(Y$(g)){if(_._layerGraph){let h=await K(W);Object.assign(_,h),A.splice(0,A.length,...H$(H,{pagesDir:L,pagesDirs:h._layerPageDirs?[O,...h._layerPageDirs.slice(1)]:void 0})),y()}if(R(g)){if(console.log(`${B.cyan}${g} changed${B.reset}`),Y&&J)J.reload(g)}else if(x(g)){console.log(`${B.yellow}${g} changed, rebuilding...${B.reset}`),o0.clear(),t0();try{let{invalidateFileCache:h,templateCache:Y0}=await import("./chunk-shz63een.js");h(m.resolve(p,g)),Y0.delete(m.resolve(p,g))}catch{}if(I&&g){if(m.resolve(p,g)===I||m.basename(I)===g){let Y0=await _5(I,X.stxOptions||{});if(Y0)q=Y0}}if(await G0(),await F$(W),Y&&J)J.reload(g)}else{console.log(`${B.yellow}${g} changed, rebuilding...${B.reset}`),o0.clear(),t0();try{let{invalidateFileCache:h,templateCache:Y0}=await import("./chunk-shz63een.js");h(m.resolve(p,g)),Y0.delete(m.resolve(p,g))}catch{}if(await G0(),Y&&J)J.reload(g)}}else if(Q$(g)){if(console.log(`${B.cyan}CSS ${g} changed${B.reset}`),Y&&J)J.updateCss(g)}};y(),process.on("SIGINT",()=>{for(let p of P.values())p.close();if(J)D1();Z1.stop(),process.exit(0)})}return!0}var b={enabled:!1,components:new Map,stores:new Map,events:[],performance:[],selectedComponent:null,selectedStore:null,maxEvents:1000,maxPerformance:500};function v4($={}){if(typeof window>"u")return;b.enabled=!0,b.maxEvents=$.maxEvents||1000,b.maxPerformance=$.maxPerformance||500,window.__STX_DEVTOOLS__={getState:()=>b,getComponents:()=>Array.from(b.components.values()),getComponent:(X)=>b.components.get(X),getStores:()=>Array.from(b.stores.values()),getStore:(X)=>b.stores.get(X),getEvents:()=>b.events,getPerformance:()=>b.performance,selectComponent:(X)=>L5(X),selectStore:(X)=>f4(X),inspectElement:(X)=>h4(X),highlightComponent:(X)=>e6(X),clearHighlight:()=>$8(),logComponentTree:()=>d4(),logStoreState:(X)=>u4(X),timeTravel:(X,Z)=>m4(X,Z)},c4(),p4(),console.log("%c[STX DevTools] Enabled","color: #10b981; font-weight: bold;")}function g4(){b.enabled=!1,delete window.__STX_DEVTOOLS__;let $=document.getElementById("stx-devtools-panel");if($)$.remove();console.log("%c[STX DevTools] Disabled","color: #ef4444;")}function r6($){if(!b.enabled)return;let X=b.components.get($);if(X){if(X.parentId){let Z=b.components.get(X.parentId);if(Z)Z.children=Z.children.filter((Q)=>Q!==$)}b.components.delete($),B5({timestamp:Date.now(),type:"component:unmounted",componentId:$,payload:{name:X.name}})}}function o6($,X,Z={},Q=[]){if(!b.enabled)return;let Y={id:$,state:X,getters:Z,actions:Q,history:[{timestamp:Date.now(),type:"state",name:"__init__",newValue:X}]};b.stores.set($,Y),B5({timestamp:Date.now(),type:"store:registered",payload:{id:$,state:X}})}function t6($,X,Z,Q,Y="state"){if(!b.enabled)return;let J=b.stores.get($);if(J){let G={timestamp:Date.now(),type:Y,name:X,oldValue:Z,newValue:Q,stack:Error().stack};if(J.history.push(G),J.history.length>100)J.history=J.history.slice(-100);if(Y==="state")J.state={...J.state,[X]:Q};B5({timestamp:Date.now(),type:`store:${Y}`,payload:{storeId:$,name:X,oldValue:Z,newValue:Q}})}}function B5($){if(!b.enabled)return;if(b.events.push($),b.events.length>b.maxEvents)b.events=b.events.slice(-b.maxEvents);if(typeof window<"u")window.dispatchEvent(new CustomEvent("stx:devtools:event",{detail:$}))}function L5($){b.selectedComponent=$;let X=b.components.get($);if(X)e6($),console.log("%c[STX DevTools] Selected component:","color: #3b82f6;",X);return X}function f4($){b.selectedStore=$;let X=b.stores.get($);if(X)console.log("%c[STX DevTools] Selected store:","color: #8b5cf6;",X);return X}function h4($){let X=$;while(X){let Z=X.getAttribute("data-stx-component-id");if(Z)return L5(Z);X=X.parentElement}console.log("%c[STX DevTools] No component found for element","color: #f59e0b;");return}function e6($){$8();let X=b.components.get($);if(X?.element){let Z=document.createElement("div");Z.id="stx-devtools-highlight",Z.style.cssText=`
|
|
1628
1628
|
position: absolute;
|
|
1629
1629
|
background: rgba(59, 130, 246, 0.2);
|
|
1630
1630
|
border: 2px solid #3b82f6;
|
|
@@ -2893,9 +2893,9 @@ describe('Example', () => {
|
|
|
2893
2893
|
</footer>
|
|
2894
2894
|
@yield('scripts')
|
|
2895
2895
|
</body>
|
|
2896
|
-
</html>`}function WZ(){return"<!-- Hero section -->"}function KZ(){return"<!-- Features -->"}function _Z(){return"<!-- Pricing -->"}function UZ(){return"<!-- Button -->"}function g1($){if(!v1($))N5($,{recursive:!0})}function BZ(){if(v1("bun.lockb"))return"bun";if(v1("pnpm-lock.yaml"))return"pnpm";if(v1("yarn.lock"))return"yarn";return"bun"}function q5($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toUpperCase())}function LZ($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toLowerCase())}function e0($){return $.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}var{serve:FZ}=globalThis.Bun;import f1 from"fs";import I0 from"path";function r2($,X=200,Z={}){return new Response($,{status:X,headers:{"Content-Type":"text/html; charset=utf-8",...Z}})}async function M5($){let{loadStxConfig:X}=await import("./chunk-
|
|
2896
|
+
</html>`}function WZ(){return"<!-- Hero section -->"}function KZ(){return"<!-- Features -->"}function _Z(){return"<!-- Pricing -->"}function UZ(){return"<!-- Button -->"}function g1($){if(!v1($))N5($,{recursive:!0})}function BZ(){if(v1("bun.lockb"))return"bun";if(v1("pnpm-lock.yaml"))return"pnpm";if(v1("yarn.lock"))return"yarn";return"bun"}function q5($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toUpperCase())}function LZ($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toLowerCase())}function e0($){return $.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}var{serve:FZ}=globalThis.Bun;import f1 from"fs";import I0 from"path";function r2($,X=200,Z={}){return new Response($,{status:X,headers:{"Content-Type":"text/html; charset=utf-8",...Z}})}async function M5($){let{loadStxConfig:X}=await import("./chunk-44twsw8y.js");return{...await X($.configDir??process.cwd()),...$.stxOptions??{}}}async function zZ($={}){let{port:X=3000,root:Z=".",watch:Q=!0,onRequest:Y,routes:J={},middleware:G=[],on404:W,onError:K}=$,_=I0.resolve(Z),U=await M5($),F=I0.resolve($.configDir??process.cwd()),z=await V5(F,U.serverApi),j=new Map;async function H(N){let q=f1.statSync(N),I=`${N}:${q.mtimeMs}`,E=j.get(I);if(E)return{content:E.content,status:E.status,headers:E.headers};for(let W0 of j.keys())if(W0.startsWith(`${N}:`)&&W0!==I)j.delete(W0);let w=await Bun.file(N).text(),D=w,T=K$(w);if(T)D=T.content.trim();let f=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,c=[],v=[],S;while((S=f.exec(w))!==null){let W0=S[1],R=S[2],x=S[0];if(W0.includes("server"))v.push(R);else c.push(x)}let k=w.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],H0=D.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),G0={__filename:N,__dirname:I0.dirname(N),__stx_options:U};for(let W0 of v)await M0(W0,G0,N);let z0=await V0(H0,G0,N,U,new Set);if(k.length>0){let W0=k.join(`
|
|
2897
2897
|
`);if(z0.match(/(<\/head>)/i))z0=z0.replace(/(<\/head>)/i,`${W0}
|
|
2898
|
-
$1`)}if(c.length>0){let{interpolateScriptsInTemplate:W0}=await import("./chunk-
|
|
2898
|
+
$1`)}if(c.length>0){let{interpolateScriptsInTemplate:W0}=await import("./chunk-t19pzc0c.js"),R=W0(c.join(`
|
|
2899
2899
|
`),G0);if(z0.match(/(<\/body>)/i))z0=z0.replace(/(<\/body>)/i,`${R}
|
|
2900
2900
|
$1`);else z0+=`
|
|
2901
2901
|
${R}`}let Z1=T1(G0),i$=C1(G0);return j.set(I,{content:z0,mtime:q.mtimeMs,status:Z1,headers:i$}),{content:z0,status:Z1,headers:i$}}async function L(N){let q=f1.statSync(N),I=`${N}:${q.mtimeMs}`,E=j.get(I);if(E)return E.content;let{content:w}=await T0(N,U);return j.set(I,{content:w,mtime:q.mtimeMs}),w}function O(N){let q=N.startsWith("/")?N.slice(1):N,I=[q,`${q}.stx`,`${q}.md`,`${q}.html`,I0.join(q,"index.stx"),I0.join(q,"index.md"),I0.join(q,"index.html")];for(let E of[_,...U._layerPageDirs??[]])for(let w of I){let D=I0.resolve(E,w);if(!D.startsWith(`${I0.resolve(E)}${I0.sep}`))continue;if(f1.existsSync(D)&&f1.statSync(D).isFile())return D}return null}async function A(N){if(U._layerGraph){let E=await M5($);if(E._layerGraph!==U._layerGraph)Object.assign(U,E),j.clear()}let q=new URL(N.url),I=async()=>{if(J[q.pathname])return await J[q.pathname](N);if(Y){let D=await Y(N);if(D)return D}if(U.apiRouter){let D=await U.apiRouter.handleRequest(N);if(D.status!==404)return D}if(U.apiRoutes?.[q.pathname])return U.apiRoutes[q.pathname](N);let E=await z(N);if(E)return E;let w=O(q.pathname);if(!w||H8(w,F,U.serverApi)){if(W)return await W(N);return new Response("Not Found",{status:404})}try{let D,T="text/html",f,c;if(w.endsWith(".stx")){let v=await H(w);D=v.content,f=v.status,c=v.headers}else if(w.endsWith(".md"))D=await L(w);else if(w.endsWith(".html"))D=await Bun.file(w).text();else if(w.endsWith(".css"))D=await Bun.file(w).text(),T="text/css";else if(w.endsWith(".js"))D=await Bun.file(w).text(),T="text/javascript";else if(w.endsWith(".json"))D=await Bun.file(w).text(),T="application/json";else return new Response(Bun.file(w));return new Response(D,{status:f??200,headers:{"Content-Type":T,...c}})}catch(D){if(K)return await K(D,N);let T=D instanceof Error?D.message:String(D),c=U?.debug===!0?`<h1>Error</h1><pre>${T}
|
|
@@ -4329,7 +4329,7 @@ else {
|
|
|
4329
4329
|
\u26A0\uFE0F Built ${Z.views.length} views with ${Z.errors.length} errors`);return Z}function U9($,X){let Z=T$.watch($.viewsDir,{recursive:!0},async(Q,Y)=>{if(!Y)return;if(Y.endsWith(".stx")||Y.endsWith(".ts")||Y.endsWith(".js")){if($.debug)console.log(`
|
|
4330
4330
|
File changed: ${Y}, rebuilding...`);let J=await gQ($);X?.(J)}});return{close:()=>Z.close()}}async function B9($,X={},Z={}){let Q={...Z,skipDefaultSeoTags:!0,skipSignalsRuntime:!0},Y=await b7($,X,Q);Y=await fQ(Y),Y=Y.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),Y=Y.replace(/<style\b([^>]*)>[\s\S]*?<\/style>/gi,(G,W)=>/\bdata-(?:css=["']generated["']|stx-)/i.test(W)?"":G),Y=Y.replace(/<!--\s*stx SEO Tags\s*-->/gi,""),Y=Y.replace(/\n\s*\n\s*\n/g,`
|
|
4331
4331
|
|
|
4332
|
-
`).trim();let J=uQ(Y);return{html:Y,text:J}}async function fQ($){try{let{generateCss:X,extractClassNames:Z}=await import("./chunk-
|
|
4332
|
+
`).trim();let J=uQ(Y);return{html:Y,text:J}}async function fQ($){try{let{generateCss:X,extractClassNames:Z}=await import("./chunk-v5m45kn6.js");if(Z($).size===0)return $;let Y=await X($);if(!Y)return $;let J=hQ(Y);if(J.size===0)return $;return $.replace(/(<[a-z][a-z0-9]*)((?:\s+[a-z][a-z0-9-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s+)class\s*=\s*"([^"]*)"((?:\s+[a-z][a-z0-9-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s*)(\/?>)/gi,(G,W,K,_,U,F)=>{let z=_.split(/\s+/).filter(Boolean),j=[];for(let A of z){let M=J.get(A);if(M)j.push(M)}if(j.length===0)return`${W}${K}class="${_}"${U}${F}`;let H=j.join("; "),O=`${K}${U}`.match(/style\s*=\s*"([^"]*)"/);if(O){let A=`${H}; ${O[1]}`,M=K.replace(/style\s*=\s*"[^"]*"/,`style="${A}"`),V=U.replace(/style\s*=\s*"[^"]*"/,`style="${A}"`);return`${W}${M}class="${_}"${V}${F}`}return`${W}${K}class="${_}" style="${H}"${U}${F}`})}catch{return $}}function hQ($){let X=new Map,Z=/\.([a-zA-Z0-9_-]+(?:\\:[a-zA-Z0-9_-]+)*)\s*\{([^}]+)\}/g,Q=Z.exec($);while(Q!==null){let Y=Q[1].replace(/\\/g,""),J=Q[2].split(";").map((G)=>G.trim()).filter(Boolean).join("; ");if(J)X.set(Y,J);Q=Z.exec($)}return X}function dQ($,X){let Z=X.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),Q=$.replace(/&/g,"&").trim();if(!Q||Q.startsWith("#")||/^javascript:/i.test(Q))return Z;let Y=Q.replace(/^mailto:/i,"").replace(/^https?:\/\//i,"").replace(/\/$/,"");if(!Z)return Q.replace(/^mailto:/i,"");if(Z.replace(/^https?:\/\//i,"").replace(/\/$/,"")===Y)return Z;return`${Z} (${Q.replace(/^mailto:/i,"")})`}function uQ($){return $.replace(/<head\b[\s\S]*?<\/head>/gi,"").replace(/<(style|script)\b[\s\S]*?<\/\1>/gi,"").replace(/<(div|span|p)\b[^>]*\bstyle="[^"]*display:\s*none[^"]*"[^>]*>[\s\S]*?<\/\1>/gi,"").replace(/<a\b[^>]*?\bhref\s*=\s*(?:"([^"]*)"|'([^']*)')[^>]*>([\s\S]*?)<\/a>/gi,(X,Z,Q,Y)=>dQ(Z??Q??"",Y)).replace(/<br\s*\/?>/gi,`
|
|
4333
4333
|
`).replace(/<\/(p|div|h[1-6]|li|tr)>/gi,`
|
|
4334
4334
|
`).replace(/<\/td>/gi,"\t").replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/©/g,"(c)").replace(/·/g,"-").replace(/\n\s*\n\s*\n/g,`
|
|
4335
4335
|
|
|
@@ -4399,7 +4399,7 @@ ${I}`}function L0($){return $.replace(/&/g,"&").replace(/"/g,""").repla
|
|
|
4399
4399
|
`;let Z=$.sitemap!==!1?`Sitemap: ${$.url.replace(/\/$/,"")}/sitemap.xml
|
|
4400
4400
|
`:"";if(X==="disallow")return["User-agent: *","Disallow: /","",Z].filter(Boolean).join(`
|
|
4401
4401
|
`);return["User-agent: *","Allow: /","",Z].filter(Boolean).join(`
|
|
4402
|
-
`)}var M1=null;async function _Y(){if(M1!==null)return M1;try{let $=await import("./chunk-
|
|
4402
|
+
`)}var M1=null;async function _Y(){if(M1!==null)return M1;try{let $=await import("./chunk-a6ntnq11.js");if(typeof $.getRouterScript==="function")M1=$.getRouterScript();else M1=""}catch{M1=""}return M1}async function p5($,X){let Z=await _Y();if(!Z)return $;let Q={interceptAllLinks:!0,container:"main",...X},J=`${`<script>window.__stxRouterConfig=${JSON.stringify(Q)};</script>
|
|
4403
4403
|
`}<script>${Z}</script>`;if(/<\/body>/i.test($))return $.replace(/<\/body>/i,`${J}
|
|
4404
4404
|
</body>`);return`${$}
|
|
4405
4405
|
${J}`}var UY=`window.__stxThemeIcon=function(isDark){try{var want=isDark?'dark':'light';var pick=document.querySelector('link[rel~="icon"][media*="prefers-color-scheme: '+want+'"]');if(!pick)return;var live=document.querySelector('link[rel~="icon"]:not([media])');if(!live){live=document.createElement('link');live.setAttribute('rel','icon');document.head.appendChild(live)}if(pick.type)live.setAttribute('type',pick.type);var href=pick.getAttribute('href');if(live.getAttribute('href')!==href)live.setAttribute('href',href)}catch(e){}};`,BY=($,X,Z,Q)=>`(function(){${UY}function read(){try{var k=${JSON.stringify(X)};var t=localStorage.getItem(k);return t===null?(${JSON.stringify($)}==='dark'||(${JSON.stringify($)}==='auto'&&window.matchMedia('(prefers-color-scheme: dark)').matches)):t==='dark'}catch(e){return ${JSON.stringify($)}==='dark'}}function apply(){var isDark=read();var html=document.documentElement;html.classList[isDark?'add':'remove']('dark');var color=isDark?${JSON.stringify(Q)}:${JSON.stringify(Z)};if(!document.head)return;var tc=document.querySelector('meta[name="theme-color"]:not([media])');if(!tc){tc=document.createElement('meta');tc.setAttribute('name','theme-color');tc.setAttribute('data-stx-theme-meta','1')}tc.setAttribute('content',color);if(tc!==document.head.firstChild){document.head.insertBefore(tc,document.head.firstChild)}if(window.__stxThemeIcon)window.__stxThemeIcon(isDark)}apply();window.addEventListener('stx:navigate',apply);window.addEventListener('popstate',apply)})();`,LY=($,X,Z)=>`document.addEventListener('click',function(e){var t=e.target&&e.target.closest&&e.target.closest('#theme-toggle');if(!t)return;var html=document.documentElement;var isDark=html.classList.toggle('dark');try{localStorage.setItem(${JSON.stringify($)},isDark?'dark':'light')}catch(e){}var tc=document.querySelector('meta[name="theme-color"]:not([media])');if(tc)tc.setAttribute('content',isDark?${JSON.stringify(Z)}:${JSON.stringify(X)});if(window.__stxThemeIcon)window.__stxThemeIcon(isDark)});`;function b$($,X){if(X.theme===!1)return $;let Z=$.includes(r7),Q=typeof X.theme==="object"&&X.theme!==null?X.theme:{},Y=Q.default??"dark",J=Q.storageKey??"theme",G=Q.colors?.light??"#ffffff",W=Q.colors?.dark??"#000000";if(Y==="dark"&&!Z){if(!/<html\b[^>]*\bclass=/.test($))$=$.replace(/<html\b([^>]*)>/i,'<html$1 class="dark">');else if(!/<html\b[^>]*\bclass="[^"]*\bdark\b/.test($))$=$.replace(/<html\b([^>]*\bclass=")([^"]*)(")/i,"<html$1$2 dark$3")}if(!$.includes("data-stx-theme-meta")&&/<head\b[^>]*>/i.test($)){let K=['<meta name="color-scheme" content="dark light" data-stx-theme-meta="1">',`<meta name="theme-color" media="(prefers-color-scheme: light)" content="${G}" data-stx-theme-meta="1">`,`<meta name="theme-color" media="(prefers-color-scheme: dark)" content="${W}" data-stx-theme-meta="1">`].join(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Xf as a}from"./chunk-
|
|
2
|
+
import{Xf as a}from"./chunk-3vytypjk.js";import"./chunk-1xqb1bpq.js";import"./chunk-0knxnyq6.js";import"./chunk-ats1a74d.js";import"./chunk-y32dbdta.js";import"./chunk-frp9fc7j.js";import"./chunk-98gap2qd.js";import"./chunk-9q1b43vh.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-ea5j5gh1.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-34ap0jgd.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-53p4bjzd.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{a as buildForProduction};
|