@stacksjs/stx 0.2.275 → 0.2.277
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/builtins/image-delivery.js +47 -8
- package/dist/{chunk-7atr35xp.js → chunk-097mr013.js} +17 -17
- package/dist/{chunk-cp2nw6fh.js → chunk-0s0zcpwy.js} +1 -1
- package/dist/{chunk-x78hvj43.js → chunk-10k12msb.js} +1 -1
- package/dist/{chunk-hc9gn64b.js → chunk-3587h1xp.js} +1 -1
- package/dist/{chunk-kvzn2ms7.js → chunk-38n3jrbp.js} +1 -1
- package/dist/{chunk-2hhvm1nt.js → chunk-38xvstdv.js} +1 -1
- package/dist/{chunk-thh2whb9.js → chunk-3kn8xkm8.js} +1 -1
- package/dist/{chunk-amn33y1t.js → chunk-3yx0xdf3.js} +1 -1
- package/dist/{chunk-7zhqec9b.js → chunk-48jzersz.js} +1 -1
- package/dist/{chunk-6abr5sm0.js → chunk-4jts2f6t.js} +1 -1
- package/dist/{chunk-tdgak53z.js → chunk-66r6fvwj.js} +1 -1
- package/dist/{chunk-86ewjatp.js → chunk-6b8zq259.js} +1 -1
- package/dist/{chunk-dsdm71ae.js → chunk-6sxd0ksd.js} +1 -1
- package/dist/{chunk-ar5a8xrg.js → chunk-88pp8bf9.js} +1 -1
- package/dist/{chunk-45z87fgn.js → chunk-89rx4w30.js} +1 -1
- package/dist/{chunk-864w5gtq.js → chunk-9mkmrttg.js} +2 -2
- package/dist/{chunk-x04tk3rw.js → chunk-a0d90w21.js} +1 -1
- package/dist/chunk-b54q18k3.js +2 -0
- package/dist/{chunk-tbacnmx5.js → chunk-bxjb7nje.js} +1 -1
- package/dist/{chunk-39mrh37y.js → chunk-cdfq3xpd.js} +1 -1
- package/dist/{chunk-yhxc8gn4.js → chunk-cg1v99gm.js} +1 -1
- package/dist/chunk-cg973t74.js +2 -0
- package/dist/{chunk-t9cgq7vv.js → chunk-d59vkang.js} +1 -1
- package/dist/{chunk-rcv369wm.js → chunk-f5xwj2jb.js} +8 -8
- package/dist/{chunk-t65ab6en.js → chunk-g8e4tf9g.js} +1 -1
- package/dist/{chunk-nph3efqt.js → chunk-gfwqv3qk.js} +1 -1
- package/dist/{chunk-1rkpesmq.js → chunk-gtdgwjck.js} +1 -1
- package/dist/{chunk-qmj1r4e2.js → chunk-gvqzd5zp.js} +1 -1
- package/dist/{chunk-hvrv31cv.js → chunk-havsy38b.js} +1 -1
- package/dist/{chunk-f0zcxk14.js → chunk-jkd1185y.js} +1 -1
- package/dist/{chunk-2cm8bn19.js → chunk-jvyz1k0v.js} +1 -1
- package/dist/{chunk-pcfstz3r.js → chunk-kcy3a8ax.js} +1 -1
- package/dist/{chunk-1rr532vx.js → chunk-kvb2055k.js} +1 -1
- package/dist/{chunk-z9fpffh5.js → chunk-mc91191e.js} +1 -1
- package/dist/{chunk-eq4tan3p.js → chunk-n14w9vek.js} +2 -2
- package/dist/{chunk-ccqf4jp2.js → chunk-nj8zaeww.js} +1 -1
- package/dist/{chunk-dv51117s.js → chunk-qmsrqmh0.js} +1 -1
- package/dist/{chunk-w4gvj94x.js → chunk-sd7ymv7h.js} +1 -1
- package/dist/{chunk-ha8t8bwq.js → chunk-v6hbnwsr.js} +1 -1
- package/dist/{chunk-362p3y6x.js → chunk-vq8tmyf0.js} +1 -1
- package/dist/{chunk-t753z8jq.js → chunk-x0hzx43q.js} +1 -1
- package/dist/chunk-xqwmj65h.js +3 -0
- package/dist/{chunk-p8gkett9.js → chunk-y3hkmhd8.js} +1 -1
- package/dist/{chunk-f1v80p2x.js → chunk-yar23fty.js} +1 -1
- package/dist/{chunk-fnk232tn.js → chunk-zrgctphh.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/ssg.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-0h6kfgwk.js +0 -2
- package/dist/chunk-6r5hq0bb.js +0 -3
- package/dist/chunk-s6dgsafh.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bm as F,em as V,sm as I}from"./chunk-
|
|
2
|
+
import{bm as F,em as V,sm as I}from"./chunk-097mr013.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
|
|
3
3
|
export{w as Eh,C as Fh,N as Gh,A as Hh,E as Ih,M as Jh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as rl,$a as ln,$b as Do,$c as Dp,$d as Dq,A as bk,Aa as vm,Ab as Xn,Ac as cp,Ad as cq,Ae as ir,B as ck,Ba as wm,Bb as Yn,Bc as dp,Bd as dq,Be as jr,C as dk,Ca as Jm,Cb as Zn,Cc as ep,Cd as eq,Ce as kr,D as ek,Da as Km,Db as _n,Dc as fp,Dd as fq,De as lr,E as Wk,Ea as Lm,Eb as $n,Ec as gp,Ed as gq,Ee as mr,F as Xk,Fa as Mm,Fb as ao,Fc as hp,Fd as hq,Fe as nr,G as Yk,Ga as Nm,Gb as bo,Gc as ip,Gd as iq,Ge as or,H as Zk,Ha as Om,Hb as co,Hc as jp,Hd as jq,He as pr,I as _k,Ia as Sm,Ib as eo,Ic as kp,Id as kq,Ie as qr,J as $k,Ja as Tm,Jb as fo,Jc as lp,Jd as lq,Je as rr,K as al,Ka as Um,Kb as go,Kc as mp,Kd as mq,Ke as sr,L as bl,La as Vm,Lb as ho,Lc as np,Ld as nq,Le as tr,M as cl,Ma as Wm,Mb as oo,Mc as op,Md as oq,Me as ur,N as dl,Na as Xm,Nb as po,Nc as pp,Nd as pq,Ne as vr,O as el,Oa as Ym,Ob as qo,Oc as qp,Od as qq,Oe as wr,P as fl,Pa as Zm,Pb as ro,Pc as rp,Pd as rq,Pe as xr,Q as gl,Qa as _m,Qb as so,Qc as sp,Qd as sq,Qe as yr,R as hl,Ra as $m,Rb as to,Rc as tp,Rd as tq,Re as zr,S as il,Sa as an,Sb as uo,Sc as up,Sd as uq,Se as Ar,T as jl,Ta as bn,Tb as vo,Tc as vp,Td as vq,Te as Br,U as kl,Ua as cn,Ub as wo,Uc as wp,Ud as wq,Ue as Cr,V as ll,Va as dn,Vb as xo,Vc as xp,Vd as xq,Ve as Dr,W as ml,Wa as fn,Wb as yo,Wc as yp,Wd as yq,We as Er,X as nl,Xa as gn,Xb as zo,Xc as zp,Xd as zq,Y as ol,Ya as hn,Yb as Ao,Yc as Ap,Yd as Aq,Z as pl,Za as jn,Zb as Bo,Zc as Bp,Zd as Bq,_ as ql,_a as kn,_b as Co,_c as Cp,_d as Cq,aa as sl,ab as mn,ac as Eo,ad as Ep,ae as Eq,ba as tl,bb as nn,bc as Fo,bd as Fp,be as Fq,ca as ul,cb as on,cc as Go,cd as Gp,ce as Gq,da as vl,db as pn,dc as Ho,dd as Hp,de as Hq,ea as wl,eb as qn,ec as Io,ed as Ip,ee as Iq,fa as xl,fb as rn,fc as Jo,fd as Jp,fe as Jq,ga as yl,gb as sn,gc as Ko,gd as Kp,ge as Kq,ha as zl,hb as tn,hc as Lo,hd as Lp,he as Lq,ia as Al,ib as un,ic as Mo,id as Mp,ie as Mq,ja as Bl,jb as vn,jc as No,jd as Np,je as Nq,ka as Cl,kb as wn,kc as Oo,kd as Op,ke as Oq,la as Dl,lb as xn,lc as Po,ld as Pp,le as Pq,ma as El,mb as yn,mc as Qo,md as Qp,me as Qq,na as Fl,nb as Bn,nc as Ro,nd as Rp,ne as Xq,o as a,oa as Gl,ob as Cn,oc as So,od as Sp,oe as Yq,p as Oj,pa as km,pb as Dn,pc as To,pd as Tp,pe as Zq,q as Pj,qa as lm,qb as En,qc as Uo,qd as Up,qe as _q,r as Qj,ra as mm,rb as Kn,rc as Vo,rd as Vp,re as $q,s as Rj,sa as nm,sb as Ln,sc as Wo,sd as Wp,se as ar,t as Sj,ta as om,tb as Mn,tc as Xo,td as Xp,te as br,u as Tj,ua as pm,ub as Nn,uc as Yo,ud as Yp,ue as cr,v as Uj,va as qm,vb as Sn,vc as Zo,vd as Zp,ve as dr,w as Vj,wa as rm,wb as Tn,wc as _o,wd as _p,we as er,x as Wj,xa as sm,xb as Un,xc as $o,xd as $p,xe as fr,y as $j,ya as tm,yb as Vn,yc as ap,yd as aq,ye as gr,z as ak,za as um,zb as Wn,zc as bp,zd as bq,ze as hr}from"./chunk-rcv369wm.js";import{$e as Ok,Xe as Kk,Ye as Lk,Ze as Mk,_e as Nk,af as Pk,bf as Qk,cf as Rk,df as Sk,ef as Tk,ff as Uk,gf as Vk}from"./chunk-shh4jfwc.js";import{hf as io,if as jo,jf as ko,kf as lo,lf as mo,mf as no}from"./chunk-x78hvj43.js";import{nf as zn,of as An}from"./chunk-n3ggrhb3.js";import{pf as Fn}from"./chunk-fnk232tn.js";import{Af as Hm,Bf as Im,qf as xm,rf as ym,sf as zm,tf as Am,uf as Bm,vf as Cm,wf as Dm,xf as Em,yf as Fm,zf as Gm}from"./chunk-vqxmxgaj.js";import{Cf as Ik,Df as Jk}from"./chunk-71r0nchv.js";import{Ef as jm}from"./chunk-tdgak53z.js";import{Ff as Pm,Gf as Qm,Hf as Rm,If as en,Jf as Gn,Kf as Hn,Lf as In,Mf as Jn,Nf as On,Of as Pn,Pf as Qn,Qf as Rn}from"./chunk-dsdm71ae.js";import{$f as pk,Rf as fk,Sf as gk,Tf as hk,Uf as ik,Vf as jk,Wf as kk,Xf as lk,Yf as mk,Zf as nk,_f as ok,ag as qk,bg as rk,cg as sk,dg as tk}from"./chunk-nx5qkm8k.js";import{eg as bj,fg as cj,gg as dj,hg as ej,ig as fj,jg as gj,kg as hj,lg as ij,mg as jj,ng as kj,og as lj}from"./chunk-5d0jtpqm.js";import{pg as Dj,rg as Ej}from"./chunk-bz820epz.js";import{Ag as xk,Bg as yk,Cg as zk,Dg as Ak,Fg as Bk,Gg as Ck,Hg as Dk,Ig as Ek,Jg as Fk,Kg as Gk,Ng as Hk,xg as uk,yg as vk,zg as wk}from"./chunk-e8jazdsk.js";import{Og as _l,Pg as $l,Qg as am,Rg as bm,Sg as em,Tg as im}from"./chunk-qmj1r4e2.js";import{Ug as cm,Xg as dm}from"./chunk-ar5a8xrg.js";import{dh as Hl,eh as Il,fh as Jl,gh as Kl,hh as Ll,ih as Ml,jh as Nl,kh as Ol,lh as Pl,mh as Ql,nh as Rl,oh as Sl,ph as Tl,qh as Ul,rh as Vl,sh as fm,th as gm,uh as hm}from"./chunk-ha8t8bwq.js";import{vh as nh,wh as oh,xh as ph,yh as qh}from"./chunk-49kk0s96.js";import{Dh as rh}from"./chunk-w3ycm4na.js";import{Eh as yh,Fh as zh,Gh as Ah,Hh as Bh,Ih as Ch,Jh as Dh}from"./chunk-2cm8bn19.js";import{Kh as Si,Lh as Ti,Mh as Ui,Qh as Vi,Rh as Wi,Sh as Xi}from"./chunk-9p25rqhp.js";import{$h as Pi,Th as Ii,Uh as Ji,Vh as Ki,Wh as Li,Xh as Mi,Zh as Ni,_h as Oi,ai as Qi,bi as Ri}from"./chunk-74cv4ta1.js";import{ci as yg,di as zg,ei as Ag,fi as Bg,gi as Cg,hi as Dg}from"./chunk-wcm80anz.js";import{ii as Eg,ji as Fg,ki as Gg,li as Hg,mi as Ig}from"./chunk-y7m2dpd3.js";import{ni as Jg,oi as Kg,pi as Lg,qi as Mg,ri as Ng}from"./chunk-9y0g8kzt.js";import{si as Og,ti as Pg,ui as Qg,vi as Rg,wi as Sg,xi as Tg,yi as Ug}from"./chunk-t6nseeb9.js";import{Ai as Wg,Bi as Xg,Ci as Yg,Di as Zg,Ei as _g,zi as Vg}from"./chunk-xttsqmkm.js";import{Gi as $g,Hi as ah,Ii as bh,Ji as ch,Ki as dh,Li as eh,Mi as fh,Ni as gh,Oi as hh,Pi as ih,Qi as jh,Ri as kh,Si as lh,Ti as mh}from"./chunk-54st8g2j.js";import{Vi as sg,Wi as tg}from"./chunk-dv51117s.js";import{Zi as ug}from"./chunk-z9fpffh5.js";import"./chunk-9n0gvfrg.js";import{bj as vg}from"./chunk-7q9mwh4v.js";import{cj as wg,dj as xg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-hvrv31cv.js";import{sj as Ue,tj as Ve}from"./chunk-2bjdjnqf.js";import{Aj as Ge,Bj as He,Cj as Ie,Dj as Je,Ej as Ke,Fj as Le,Gj as Me,Hj as Ne,Ij as Oe,Jj as Pe,Kj as Qe,Lj as Re,Mj as Se,Nj as Te}from"./chunk-w95sp0k9.js";import{Oj as We,Pj as Xe,Qj as Ye,Rj as Ze,Sj as _e,Tj as $e,Uj as af,Vj as bf,Wj as cf,Xj as df,Yj as ef}from"./chunk-nph3efqt.js";import{qk as Rq,rk as Sq,sk as Tq,tk as Uq,uk as Vq,vk as Wq}from"./chunk-864w5gtq.js";import{Ak as Wl,Bk as Xl,Ck as Yl,Dk as Zl,wk as Xj,xk as Yj,yk as Zj,zk as _j}from"./chunk-3yg0f94g.js";import"./chunk-58f0mthg.js";import"./chunk-thh2whb9.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Hf,$q as Nh,$r as vj,Al as J,Am as qb,An as vc,Ao as Ld,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as hf,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cq as ig,Cr as xi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as jf,Dq as jg,Dr as yi,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as kf,Eq as kg,Er as zi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as lf,Fq as lg,Fr as Ai,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as mf,Gq as mg,Gr as Bi,Hm as Db,Hn as Cc,Ho as Sd,Hp as nf,Hq as ng,Hr as Ci,Im as Eb,In as Dc,Io as Td,Ip as of,Iq as og,Ir as Di,Jl as za,Jn as Ec,Jo as Ud,Jp as pf,Jq as pg,Jr as Ei,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as qf,Kq as qg,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rg,Lr as Gi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Hi,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as tf,Nq as th,Nr as Yi,Om as Jb,On as Jc,Oo as Zd,Op as uf,Oq as uh,Or as Zi,Pm as Kb,Pn as Kc,Po as _d,Pp as vf,Pq as vh,Pr as _i,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as wf,Qq as wh,Qr as $i,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as xh,Rr as aj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as yf,Sq as Eh,Sr as mj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as zf,Tq as Fh,Tr as nj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Af,Uq as Gh,Ur as oj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Bf,Vq as Hh,Vr as pj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Cf,Wq as Ih,Wr as qj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Df,Xq as Jh,Xr as rj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as xe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Va,Zm as Ub,Zn as Uc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Wa,_m as Vb,_n as Vc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as If,ar as Oh,as as wj,bn as Yb,bo as Yc,bp as Ce,bq as Jf,br as Ph,bs as xj,cn as Zb,co as Zc,cp as De,cq as Kf,cr as Qh,cs as yj,dn as _b,do as _c,dq as Lf,dr as Rh,ds as zj,en as $b,eo as $c,eq as Mf,er as Sh,es as Aj,fm as Za,fn as ac,fo as ad,fp as Ee,fq as Nf,fr as Th,fs as Bj,gm as _a,gn as bc,go as bd,gp as Fe,gq as Of,gr as Uh,gs as Cj,hm as $a,hn as cc,ho as cd,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,ip as ff,iq as Qf,ir as di,is as Gj,jl as s,jm as bb,jn as ec,jo as ed,jq as Rf,jr as ei,js as Hj,kl as t,km as cb,kn as fc,ko as fd,kq as Sf,kr as fi,ks as Ij,ll as u,ln as gc,lo as gd,lq as Tf,lr as gi,ls as Jj,ml as v,mn as hc,mo as hd,mq as Uf,mr as hi,ms as Kj,nl as w,nm as db,nn as ic,no as id,nq as Vf,nr as ii,ns as Lj,ol as x,om as eb,on as jc,oo as jd,oq as Wf,or as ji,os as Mj,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,ps as Nj,ql as z,qm as gb,qn as lc,qo as Bd,qq as Yf,qr as li,rl as A,rm as hb,rn as mc,ro as Cd,rq as Zf,rr as mi,sl as B,sm as ib,sn as nc,so as Dd,sq as _f,sr as ni,tl as C,tm as jb,tn as oc,to as Ed,tq as $f,tr as oi,ul as D,um as kb,un as pc,uo as Fd,uq as ag,ur as pi,vl as E,vm as lb,vn as qc,vo as Gd,vq as bg,vr as qi,wl as F,wm as mb,wn as rc,wo as Hd,wq as cg,wr as ri,xl as G,xm as nb,xn as sc,xo as Id,xq as dg,xr as si,yl as H,ym as ob,yn as tc,yo as Jd,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as fg,zr as ui}from"./chunk-7atr35xp.js";import{As as n,Bs as o,Cs as p,Ds as q,Es as r,qs as d,rs as e,ss as f,ts as g,us as h,vs as i,ws as j,xs as k,ys as l,zs as m}from"./chunk-xpxw2ked.js";import{Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h,Ms as ai,Ns as bi}from"./chunk-6gb72zp2.js";import{Os as b,Ps as c}from"./chunk-82kkkpw2.js";import{Qs as Ea,Rs as Fa}from"./chunk-shyqtvbq.js";import{$s as tb,_s as sb,bt as ub,lt as vb,mt as wb,nt as xb}from"./chunk-w4gvj94x.js";import{ot as Ja,pt as Ka,qt as La,rt as Ma,st as Na,tt as Oa}from"./chunk-w1asc0zd.js";import{ut as ue,vt as ve,wt as we}from"./chunk-6r5hq0bb.js";import{At as nd,Bt as od,Ct as pd,Dt as qd,Et as rd,Ft as sd,Gt as td,Ht as ud,It as vd,Jt as wd,Kt as xd,Lt as yd,Mt as zd,xt as kd,yt as ld,zt as md}from"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import{$t as ua,Qt as ja,Rt as ka,St as la,Tt as ma,Ut as na,Vt as oa,Wt as pa,Xt as qa,Yt as ra,Zt as sa,_t as ta,au as va,bu as wa,cu as xa,du as ya}from"./chunk-gfhzedsr.js";import{Au as S,Bu as T,Cu as U,Du as V,Eu as W,Fu as X,Gu as Y,Hu as Z,Iu as _,Ju as $,Ku as aa,Lu as ba,Nu as ca,hu as K,iu as L,lu as M,qu as N,ru as O,xu as P,yu as Q,zu as R}from"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{pk as writeNetlifyConfig,gm as writeManifest,Uk as writeImageManifest,xo as wrapComponentForHMR,rr as withDefaults,Cj as webComponentDirectiveHandler,mp as watermark,oq as watchViews,cl as watchMultiple,dl as watchEffect,bl as watch,Be as warmImagePlaceholders,ql as waitForStore,Zd as waitForLocale,jo as virtualPathFor,pj as videoDirective,uc as validators,vr as validated,Ld as validateValueEnhanced,th as validateTemplate,rp as validateParams,Md as validateFormEnhanced,dq as validateFile,Hd as validateFields,Gd as validateField,vh as validateDirective,ed as validateCspDirectives,Kj as validateConfig,lm as validateComponentScripts,Jm as validateComponentProps,rg as validateClientScript,qh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Ih as userComponentFileExists,Yg as useVirtualList,sd as useTitle,pl as useStoreOrThrow,Po as useStore,$j as useStorage,zq as useSlots,bk as useSessionStorage,pd as useSeoMeta,rl as useRouteParams,tl as useRouteParamOrThrow,sl as useRouteParam,sd as usePageTitle,Te as useOptimistic,vl as useMiddlewareValue,ul as useMiddlewareState,ak as useLocalStorage,qo as useLoadingIndicator,nd as useHead,nh as useForm,Bq as useAttrs,fq as uploadFiles,eq as uploadFile,ml as updateInstance,Re as untrack,Yh as unregisterDirective,nl as unmountInstance,rb as unescapeHtml,mo as typecheckStxFiles,Hh as transpileTypeScript,er as translate,w as transitionDirective,Ta as transformAutoImports,Dm as toUsers,Cm as toUser,Xo as thumbnail,Yp as thumbHashToRGBA,Zp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,We as templateCache,Nb as syncRecordedResponse,uo as stxClientHelpers,Bf as structuredDataDirective,hr as stripLocalePrefix,Tl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,pn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Wj as stopHmrServer,zm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ge as state,lg as startsDocument,Rn as startProductionServer,Fn as startInteractive,ym as startBroadcasting,jr as stampLocaleLayoutGroup,D as staggerDirective,pp as srcsetUrls,E as springDirective,Dc as splitByPipe,Pl as spaNavVaryHeaders,ko as sourcePathFor,wp as smartBatchSign,Kh as slotContentHasExpressions,up as signUrl,Fh as shouldTranspileTypeScript,Tj as shouldReloadOnChange,zp as shouldRefreshSignature,Uj as shouldIgnoreFile,Qg as shouldCacheComponent,$o as sharpen,yr as shape,La as setStateDir,zl as setRouteParams,Al as setMiddlewareState,Ae as setImagePlaceholder,tq as setGlobalProvide,Rb as setErrorLocale,Wk as setCurrentInstance,dj as setCachedVideoResult,Ui as setCachedImageResult,Oi as setCached,Br as serveStxFile,Dr as serveMultipleStxFiles,Oj as serveMarkdownFile,$n as serveFile,Er as serveApp,_n as serve,Ao as serializeState,en as serializeSetCookie,bp as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,tj as scopeHTML,sj as scopeCSS,Ef as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,fp as saturation,sp as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,uf as runPreProcessingMiddleware,vf as runPostProcessingMiddleware,In as runPageAction,Me as runMountCallbacks,ba as runMiddleware,kl as runHooks,Zq as runDoctor,Ne as runDestroyCallbacks,Jf as runComposers,gp as rotate,rh as rewriteImagesWithSiblings,Ob as responseBindings,Oh as resolveTemplatePath,c as resolveStxTargets,Gj as resolveStxDirectories,dr as resolveI18n,Vo as resize,Za as resetPlaceholders,md as resetHead,zo as resetHMRHandler,cc as resetErrorConfig,tr as required,bb as replacePlaceholders,mq as renderView,mj as renderVideoComponent,Qa as renderVendorStyleTags,Iq as renderToString,Jq as renderToStream,Kq as renderToDOM,Xp as renderThumbhashToCanvas,Wq as renderTemplateString,Uq as renderTemplate,Vq as renderString,je as renderStreamingPage,Ah as renderSlot,Gg as renderSSRSuspense,Hp as renderProtectedVideo,Gp as renderProtectedImg,tp as renderMediaUpload,Tq as renderMarkdownView,Yl as renderLayoutTypes,Yi as renderImgComponent,Kk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,pq as renderEmail,Mh as renderComponentWithSlot,vd as renderBodyAttrs,Ko as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Ro as registerStoresClient,xl as registerStore,Cf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Vh as registerDirective,dd as registerCspDirectives,Mm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,_k as ref,xn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Mj as readMarkdownFile,Xe as readFileCached,$k as reactive,kp as quality,Ep as pruneSignatureCache,Ri as pruneCache,rq as provide,Sq as protectCodeBlocks,sr as prop,Mf as processVueTemplate,Wg as processVirtualListDirectives,_g as processVirtualGridDirectives,lj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,Ag as processTransitionDirectives,Dg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,wg as processTeleportDirectives,Eg as processSuspenseDirectives,xf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,lh as processStaticDirectives,sf as processStackReplacements,rf as processStackPushDirectives,Bh as processSlots,Rl as processShell,De as processServerBindings,yf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Ip as processProtectedMedia,eh as processPartialHydrationDirectives,qg as processOnceDirective,tf as processMiddleware,wf as processMetaDirectives,zd as processMetaDirective,Nj as processMarkdownFileDirectives,Th as processMarkdownDirectives,mf as processLoops,Og as processKeepAliveDirectives,pg as processJsonDirective,Zg as processInfiniteListDirectives,qf as processIncludes,_i as processImgComponents,Mk as processImageComponents,zk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,sh as processDirectives,bi as processDirectiveAttributes,vg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,zr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Jg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,po as preloadIslandHandlers,Ce as preloadIconCollection,um as poolStrings,Ej as pluginManager,ye as placeholdersWarmed,zg as performLeave,yg as performEnter,Oe as pendingLifecycleCounts,Se as peek,nf as partialsCache,nj as parseVideoDirectiveOptions,To as parseUrl,_p as parseThumbhashString,Jc as parseSwitchBlock,yh as parseSlots,zh as parseSlotElement,Oc as parseScriptDeclarations,Aj as parseSFCComponent,Jp as parseProtectedArgs,lf as parseLoopBinding,Zi as parseImgComponent,pi as parseImageUrl,Lk as parseImageComponent,Gn as parseFormBody,Lc as parseExpressionWithFilters,Nm as parseDefaults,un as parseCookies,Jl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,ur as optional,vm as optimizeTemplate,Rk as optimizeImage,Sk as optimizeDirectory,wr as oneOf,of as onceStore,hl as onUpdated,yb as onUpdate,jl as onUnmounted,El as onServer,fl as onMounted,Ke as onMount,kh as onHydrated,xq as onErrorCaptured,Le as onDestroy,Ug as onDeactivated,Dl as onClient,gl as onBeforeUpdate,il as onBeforeUnmount,el as onBeforeMount,Tg as onActivated,Tp as observeElement,yn as notFound,Uf as normalizeCriticalHeadOrder,wq as nextTick,Qm as negotiateEncoding,P as navigateTo,ll as mountInstance,z as motionDirective,Vc as moderateCspPreset,tm as minifyHtml,Af as metaDirective,dg as metaDedupKey,Uo as mergeParams,fg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Uh as markdownDirectiveHandler,Lj as markdownCache,b as looksLikeGlob,gr as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Hj as loadStxConfig,_ as loadMiddlewareFromDirectory,hm as loadManifest,Pp as loadElement,Am as loadChannels,nr as lintStxStrict,Rp as lazyLoadAll,Qp as lazyLoad,C as keyframeDirective,Gq as jsxs,Hq as jsxDEV,Fq as jsx,wn as jsonResponse,pe as islandDirective,$b as isTest,Ul as isSpaNavigation,Nl as isSpaNavRequest,xp as isSignatureValid,Pe as isSignal,xk as isSharpAvailable,hn as isServerEnvironment,Bl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Mp as isNativeLazySupported,Rq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Eh as isJavaScriptScript,Np as isIntersectionObserverSupported,Fk as isImageFile,yk as isImageBackendAvailable,ce as isICUFormat,jh as isHydrated,Jh as isHydrateTrigger,Hb as isHttpStatus,gn as isEdgeEnvironment,or as isDirectiveKind,_b as isDevelopment,Qe as isDerived,Sj as isCssOnlyChange,Pm as isCompressible,Cl as isClient,Lg as isAsyncComponent,Hn as isActionableMethod,cp as invert,Ze as invalidateFileCacheByDir,Ye as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,cr as injectThemeBootstrap,zf as injectSeoTags,$q as injectSeo,ff as injectRouterScript,Rj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ng as injectConfigHeadTags,Tf as injectColorModeBootScript,hg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,sq as inject,wl as initStoreRegistry,sk as initNetlify,ro as initLoadingIndicator,Op as initLazyLoading,En as initFile,Wp as initBlurUp,aq as initAllBlurUp,aj as imgDirective,Pk as imageDirective,Pn as hydrateTemplateStream,On as hydrateTemplate,oo as hydrateIslands,gh as hydrateIsland,Qn as hydrateFragment,hh as hydrateByStrategy,ih as hydrateAll,Ho as hydrate,Zn as htmlResponse,jg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ki as hashString,ef as hashFilePath,Ii as hashFile,Ji as hashBuffer,Lf as hasVueTemplateSyntax,kf as hasVariables,Mo as hasStore,cb as hasPlaceholders,qk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,mg as hasDocumentShell,wh as hasDirectives,h as hasDOMSupport,Ik as handleImageRequest,yq as handleError,Oq as h,Ek as groupVariantsByFormat,ap as grayscale,Sn as gitHash,nm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,lk as getTotalSize,yp as getTimeUntilExpiry,sg as getStoreScript,No as getStoreNames,Lo as getStore,ek as getStorageSize,dk as getStorageKeys,Ph as getSourceLineInfo,Gh as getSharedTranspiler,g as getScreenReaderOnlyStyle,uj as getScopeAttribute,Fe as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,uh as getPositionInfo,$a as getPlaceholderRegistry,Hi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Gk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,Ak as getImageMetadata,ue as getImageDelivery,Go as getHydrationRuntime,yl as getHydratedStoreState,Vj as getHmrServer,kd as getHead,yo as getHMRHandler,ti as getFormatExtension,Mi as getFileMtime,Dk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Xh as getDirectives,Wh as getDirective,Xk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Sh as getComponentCacheStats,cj as getCachedVideoResult,Cp as getCachedSignature,$e as getCachedSignalsRuntime,af as getCachedRouterScript,Fi as getCachedPlaceholder,Ti as getCachedImageResult,Ni as getCached,Qi as getCacheStats,Yf as getBuildId,xm as getBroadcastServer,si as getBestVariant,gb as getAllFilters,gi as generateWidthSrcset,Xg as generateVirtualListCSS,hq as generateVideoPreview,Nd as generateValidationScript,iq as generateUploadRuntime,om as generateTreeShakenBundle,Cg as generateTransitionRuntime,Bg as generateTransitionCSS,gj as generateThumbnails,yi as generateThumbhashPlaceholder,Zm as generateTemplatesDocs,Ig as generateSuspenseRuntime,Hg as generateSuspenseCSS,Bo as generateStateScript,qi as generateSrcsetData,Xi as generateSrcset,Bk as generateSrcSet,hj as generateSpriteSheet,qq as generateSpaShell,ri as generateSourceTags,mi as generateSizesFromBreakpoints,li as generateSizesAttribute,Ck as generateSizes,Df as generateSitemapIndex,ar as generateSitemap,Lp as generateSimpleMediaPicker,Fp as generateSignatureRuntime,Ve as generateSignalsRuntimeDev,Ue as generateSignalsRuntime,Xa as generateServerDataBridge,rj as generateScopeId,Bj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ff as generateRobotsTxt,br as generateRobots,Wi as generateResponsiveVariants,xj as generateReactiveWebComponentTS,wj as generateReactiveWebComponent,zj as generateReactiveRuntime,yj as generateReactiveMixin,fj as generatePoster,Ei as generatePlaceholderStyle,Di as generatePlaceholderCSS,xi as generatePlaceholder,fh as generatePartialHydrationCSS,Pc as generateNonce,mk as generateNetlifyToml,kq as generateMinifiedMediaRuntime,jq as generateMediaRuntime,Kp as generateMediaManagerEmbed,fm as generateManifest,to as generateLoadingIndicatorHtml,Vp as generateLazyLoadRuntime,Zl as generateLayoutTypes,Ai as generateLQIP,Sg as generateKeepAliveRuntime,Rg as generateKeepAliveCSS,mh as generateIslandManifest,gq as generateImagePreview,Tk as generateImageManifest,Fo as generateHydrationScript,te as generateHydrationRuntime,Io as generateHydrationCSS,$g as generateHydrationBootstrap,Qj as generateHotReloadScript,ea as generateHeatmapScript,wo as generateHMRClientScript,ij as generateHLSManifest,Co as generateEventBindings,ki as generateDprSrcsetWithVariableQuality,ji as generateDprSrcset,kg as generateDocumentShell,cn as generateDocs,_m as generateDirectivesDocs,ai as generateDirectiveRuntime,Gf as generateDefaultRobotsTxt,jj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Dq as generateCompositionRuntime,Ym as generateComponentsDocs,ah as generateComponentManifest,Wm as generateComponentDoc,Ci as generateColorPlaceholder,Sf as generateColorModeBootScript,ol as generateClientRuntime,Li as generateCacheKey,Va as generateBrowserAutoImportDestructuring,bq as generateBlurUpRuntime,cq as generateBlurUpCSS,Ab as generateBindingsRuntime,hi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ng as generateAsyncComponentRuntime,Mg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,no as formatTypecheckDiagnostics,ho as formatTypeErrors,Bn as formatStxContent,kk as formatSize,O as formatRoutes,Cn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,_q as formatDoctorReport,$m as formatDocsAsMarkdown,bn as formatDocsAsJson,an as formatDocsAsHtml,jp as format,sm as foldConstants,ip as flipVertical,hp as flipHorizontal,_l as fingerprint,lo as findRuntimeTypeDeclarations,Yq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,pm as findDeadCode,pm as findDeadBranches,Kl as findContainerRegion,Xm as findComponentFiles,Cr as findCommonDir,jk as filterRequiredFiles,Nh as fileExists,gf as extractVariables,dm as extractTemplateExpressions,le as extractStreamBoundaries,Do as extractState,Ch as extractSlotContent,jf as extractScriptFromTemplate,cm as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,Bi as extractDominantColor,Nc as extractDirectiveParams,xh as extractDirectiveNames,Vl as extractContainerContent,Um as extractComponentProps,bh as extractComponentName,Vm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ch as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,vj as extractAndScopeStyles,Ba as extractAndProcessEvents,Zj as externalizeSharedAssets,_j as externalizeRepeatedAssets,Yj as externalizeHtml,qb as evaluateExpression,rm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,xg as ensureTeleportTargets,og as ensureDocumentShell,Jd as enhancedValidationRules,Sm as enableDevTools,qm as eliminateDeadCode,Ie as effect,qp as dprUrls,dn as docsCommand,Xl as discoverLayoutNames,Up as disconnectObserver,Tm as disableDevTools,tc as devHelpers,Ql as detectShell,fn as detectRuntime,nk as detectProjectConfig,ui as detectFormat,km as detectBuildMode,He as derived,rk as deploy,Jj as defineStxConfig,Qo as defineStore,Aq as defineSlots,mr as defineSiteConfig,qr as definePropsWithValidation,pr as defineProps,Dj as definePlugin,rd as definePageMeta,R as defineMiddleware,oh as defineForm,vq as defineExpose,uq as defineEmits,Zh as defineDirective,Qq as defineCustomElement,Nn as defineConfig,_h as defineClientDirective,Kg as defineAsyncComponent,lq as defaultMediaConfig,Vk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Fj as defaultConfig,Ar as default,sb as deepMergeThemes,Of as dedupeScopedStyles,zi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,$p as crossfadeTransition,Wo as crop,Vg as createVirtualList,oj as createVideoDirective,sn as createVercelHandler,eo as createTypeChecker,fe as createTranslateFilter,on as createTextEncoderStream,Pq as createStxApp,nn as createStreamingResponse,ne as createStreamRenderer,Oo as createStore,U as createStorageManager,S as createServerCookieManager,Zk as createScope,Fg as createSSRSuspense,Ee as createRouter,$ as createRouteLocation,bo as createRoute,_k as createRef,$k as createReactive,Cq as createProvideContext,Un as createProject,Mn as createProductionBuild,_a as createPlaceholder,wm as createOptimizedBuild,tn as createNetlifyHandler,fk as createNetlifyClient,aa as createMiddlewareContext,ao as createMiddleware,Sp as createLazyObserver,Pg as createKeepAliveCache,kn as createKVNamespace,dh as createIslandRegistry,$i as createImgDirective,Qk as createImagePlugin,Jk as createImageHandler,Ok as createImageDirective,ia as createHeatmapAggregator,ik as createFileManifest,jn as createEnvAccessor,nc as createEnhancedError,mn as createEdgeHandler,ln as createEdgeCache,Qh as createDetailedErrorMessage,rn as createDenoHandler,ok as createDefaultNetlifyConfig,gd as createCspHeaders,vn as createCookie,al as createComputed,Yk as createComponentInstance,qn as createCloudflareHandler,T as createClientCookieManager,$h as createBuiltinDirectives,Pq as createApp,F as createAnimationTimeline,Zo as cover,hf as convertToCommonJS,ep as contrast,Yo as contain,mc as consoleError,ac as configureErrorHandling,Ij as config,al as computed,Rm as compressResponse,If as composerPattern,Hf as composer,Sl as composeShellWithPage,Lm as componentDirective,Lh as componentClientSignalNames,em as compileTemplate,a as collectRepeatedFlag,hk as collectDeployFiles,ig as cloakStyleFragment,ej as clearVideoCache,Pd as clearTranslationCache,tg as clearStoreCache,ck as clearStorage,Dp as clearSignatureCache,Gi as clearPlaceholderCache,pf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Nk as clearImageCache,Ub as clearErrorMessages,bf as clearDevCaches,hb as clearCustomFilters,Kf as clearComposers,ug as clearComposableCache,Rh as clearComponentCache,Pi as clearCache,so as cleanupLoadingIndicator,Hl as classifyScript,Il as classifyAllScripts,fo as checkTemplateFile,go as checkTemplate,cf as checkCache,Ap as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Gm as channel,An as captureScreenshots,zn as captureScreenshot,$d as cancelPendingLoads,gk as calculateSha1,ii as calculateOptimalWidths,df as cacheTemplate,qj as buildWebComponents,io as buildVirtualSource,nq as buildViews,So as buildUrl,he as buildSuspenseResolveScript,lr as buildStaticSite,la as buildRuntimeGlobalsDestructure,$l as buildRuntimeAsset,am as buildRouterAsset,kr as buildLangPickerScript,oi as buildImageUrl,$f as buildIdFragment,eg as buildHtmlAttrs,im as buildForProduction,Om as buildComponentLibrary,Bp as buildAuthParams,jm as buildApp,ir as buildAlternateLinks,Ln as build,Em as broadcastPrivate,Fm as broadcastPresence,Bm as broadcast,dp as brightness,_o as blur,ya as blankInertHtmlRegions,vp as batchSignUrls,Je as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,lp as auto,e as attributeValue,bm as assetTags,za as asInvocableStatement,xr as arrayOf,fr as applyTranslations,Vi as applyTransformations,Dh as applySlots,Km as applyPropDefaults,op as applyPreset,gg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ol as appendVary,Xc as apiCspPreset,y as animationGroupDirective,kj as analyzeVideo,mm as analyzeUsage,Fl as analyzeTemplate,Gl as analyzeProject,mm as analyzeDirectiveUsage,Eb as analyticsDirective,Xn as addStore,Wn as addPage,$c as addNonceToInlineContent,Yn as addLayout,Vn as addComponent,Jn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,_e as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,bj as VideoProcessorCache,ph as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,co as TemplateTypeChecker,Dn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Lq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Ll as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Kn as ProductionBuild,Nq as Portal,Tn as PROJECT_TEMPLATES,np as PRESETS,na as NON_CLIENT_PRIMITIVES,Jo as MemorySessionStore,fi as MIME_TYPES,ci as MEDIA_DEFAULT_WIDTHS,ei as MEDIA_DEFAULT_FORMATS,Wl as LAYOUT_TYPES_FILE,Si as ImageProcessorCache,Hk as ImageProcessingError,Eo as HydrationRuntime,Pj as HotReloadServer,ha as HeatmapAggregator,cg as HTML_CLASS_MARKER,bg as HTML_ATTRS_MARKER,Eq as Fragment,Mq as For,Ml as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Xj as EXTERNALIZED_ASSET_DIR,tk as DeployError,uk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,wk as DEFAULT_QUALITY,vi as DEFAULT_PLACEHOLDER_OPTIONS,vk as DEFAULT_FORMATS,di as DEFAULT_DPR_VALUES,vo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ni as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,ag as CLOAK_STYLE,Im as BroadcastServer,Hm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,wi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Xq as $path};
|
|
2
|
+
import{$ as rl,$a as ln,$b as Do,$c as Dp,$d as Dq,A as bk,Aa as vm,Ab as Xn,Ac as cp,Ad as cq,Ae as ir,B as ck,Ba as wm,Bb as Yn,Bc as dp,Bd as dq,Be as jr,C as dk,Ca as Jm,Cb as Zn,Cc as ep,Cd as eq,Ce as kr,D as ek,Da as Km,Db as _n,Dc as fp,Dd as fq,De as lr,E as Wk,Ea as Lm,Eb as $n,Ec as gp,Ed as gq,Ee as mr,F as Xk,Fa as Mm,Fb as ao,Fc as hp,Fd as hq,Fe as nr,G as Yk,Ga as Nm,Gb as bo,Gc as ip,Gd as iq,Ge as or,H as Zk,Ha as Om,Hb as co,Hc as jp,Hd as jq,He as pr,I as _k,Ia as Sm,Ib as eo,Ic as kp,Id as kq,Ie as qr,J as $k,Ja as Tm,Jb as fo,Jc as lp,Jd as lq,Je as rr,K as al,Ka as Um,Kb as go,Kc as mp,Kd as mq,Ke as sr,L as bl,La as Vm,Lb as ho,Lc as np,Ld as nq,Le as tr,M as cl,Ma as Wm,Mb as oo,Mc as op,Md as oq,Me as ur,N as dl,Na as Xm,Nb as po,Nc as pp,Nd as pq,Ne as vr,O as el,Oa as Ym,Ob as qo,Oc as qp,Od as qq,Oe as wr,P as fl,Pa as Zm,Pb as ro,Pc as rp,Pd as rq,Pe as xr,Q as gl,Qa as _m,Qb as so,Qc as sp,Qd as sq,Qe as yr,R as hl,Ra as $m,Rb as to,Rc as tp,Rd as tq,Re as zr,S as il,Sa as an,Sb as uo,Sc as up,Sd as uq,Se as Ar,T as jl,Ta as bn,Tb as vo,Tc as vp,Td as vq,Te as Br,U as kl,Ua as cn,Ub as wo,Uc as wp,Ud as wq,Ue as Cr,V as ll,Va as dn,Vb as xo,Vc as xp,Vd as xq,Ve as Dr,W as ml,Wa as fn,Wb as yo,Wc as yp,Wd as yq,We as Er,X as nl,Xa as gn,Xb as zo,Xc as zp,Xd as zq,Y as ol,Ya as hn,Yb as Ao,Yc as Ap,Yd as Aq,Z as pl,Za as jn,Zb as Bo,Zc as Bp,Zd as Bq,_ as ql,_a as kn,_b as Co,_c as Cp,_d as Cq,aa as sl,ab as mn,ac as Eo,ad as Ep,ae as Eq,ba as tl,bb as nn,bc as Fo,bd as Fp,be as Fq,ca as ul,cb as on,cc as Go,cd as Gp,ce as Gq,da as vl,db as pn,dc as Ho,dd as Hp,de as Hq,ea as wl,eb as qn,ec as Io,ed as Ip,ee as Iq,fa as xl,fb as rn,fc as Jo,fd as Jp,fe as Jq,ga as yl,gb as sn,gc as Ko,gd as Kp,ge as Kq,ha as zl,hb as tn,hc as Lo,hd as Lp,he as Lq,ia as Al,ib as un,ic as Mo,id as Mp,ie as Mq,ja as Bl,jb as vn,jc as No,jd as Np,je as Nq,ka as Cl,kb as wn,kc as Oo,kd as Op,ke as Oq,la as Dl,lb as xn,lc as Po,ld as Pp,le as Pq,ma as El,mb as yn,mc as Qo,md as Qp,me as Qq,na as Fl,nb as Bn,nc as Ro,nd as Rp,ne as Xq,o as a,oa as Gl,ob as Cn,oc as So,od as Sp,oe as Yq,p as Oj,pa as km,pb as Dn,pc as To,pd as Tp,pe as Zq,q as Pj,qa as lm,qb as En,qc as Uo,qd as Up,qe as _q,r as Qj,ra as mm,rb as Kn,rc as Vo,rd as Vp,re as $q,s as Rj,sa as nm,sb as Ln,sc as Wo,sd as Wp,se as ar,t as Sj,ta as om,tb as Mn,tc as Xo,td as Xp,te as br,u as Tj,ua as pm,ub as Nn,uc as Yo,ud as Yp,ue as cr,v as Uj,va as qm,vb as Sn,vc as Zo,vd as Zp,ve as dr,w as Vj,wa as rm,wb as Tn,wc as _o,wd as _p,we as er,x as Wj,xa as sm,xb as Un,xc as $o,xd as $p,xe as fr,y as $j,ya as tm,yb as Vn,yc as ap,yd as aq,ye as gr,z as ak,za as um,zb as Wn,zc as bp,zd as bq,ze as hr}from"./chunk-f5xwj2jb.js";import{$e as Ok,Xe as Kk,Ye as Lk,Ze as Mk,_e as Nk,af as Pk,bf as Qk,cf as Rk,df as Sk,ef as Tk,ff as Uk,gf as Vk}from"./chunk-shh4jfwc.js";import{hf as io,if as jo,jf as ko,kf as lo,lf as mo,mf as no}from"./chunk-10k12msb.js";import{nf as zn,of as An}from"./chunk-n3ggrhb3.js";import{pf as Fn}from"./chunk-zrgctphh.js";import{Af as Hm,Bf as Im,qf as xm,rf as ym,sf as zm,tf as Am,uf as Bm,vf as Cm,wf as Dm,xf as Em,yf as Fm,zf as Gm}from"./chunk-vqxmxgaj.js";import{Cf as Ik,Df as Jk}from"./chunk-71r0nchv.js";import{Ef as jm}from"./chunk-66r6fvwj.js";import{Ff as Pm,Gf as Qm,Hf as Rm,If as en,Jf as Gn,Kf as Hn,Lf as In,Mf as Jn,Nf as On,Of as Pn,Pf as Qn,Qf as Rn}from"./chunk-6sxd0ksd.js";import{$f as pk,Rf as fk,Sf as gk,Tf as hk,Uf as ik,Vf as jk,Wf as kk,Xf as lk,Yf as mk,Zf as nk,_f as ok,ag as qk,bg as rk,cg as sk,dg as tk}from"./chunk-nx5qkm8k.js";import{eg as bj,fg as cj,gg as dj,hg as ej,ig as fj,jg as gj,kg as hj,lg as ij,mg as jj,ng as kj,og as lj}from"./chunk-5d0jtpqm.js";import{pg as Dj,rg as Ej}from"./chunk-bz820epz.js";import{Ag as xk,Bg as yk,Cg as zk,Dg as Ak,Fg as Bk,Gg as Ck,Hg as Dk,Ig as Ek,Jg as Fk,Kg as Gk,Ng as Hk,xg as uk,yg as vk,zg as wk}from"./chunk-e8jazdsk.js";import{Og as _l,Pg as $l,Qg as am,Rg as bm,Sg as em,Tg as im}from"./chunk-gvqzd5zp.js";import{Ug as cm,Xg as dm}from"./chunk-88pp8bf9.js";import{dh as Hl,eh as Il,fh as Jl,gh as Kl,hh as Ll,ih as Ml,jh as Nl,kh as Ol,lh as Pl,mh as Ql,nh as Rl,oh as Sl,ph as Tl,qh as Ul,rh as Vl,sh as fm,th as gm,uh as hm}from"./chunk-v6hbnwsr.js";import{vh as nh,wh as oh,xh as ph,yh as qh}from"./chunk-49kk0s96.js";import{Dh as rh}from"./chunk-w3ycm4na.js";import{Eh as yh,Fh as zh,Gh as Ah,Hh as Bh,Ih as Ch,Jh as Dh}from"./chunk-jvyz1k0v.js";import{Kh as Si,Lh as Ti,Mh as Ui,Qh as Vi,Rh as Wi,Sh as Xi}from"./chunk-9p25rqhp.js";import{$h as Pi,Th as Ii,Uh as Ji,Vh as Ki,Wh as Li,Xh as Mi,Zh as Ni,_h as Oi,ai as Qi,bi as Ri}from"./chunk-74cv4ta1.js";import{ci as yg,di as zg,ei as Ag,fi as Bg,gi as Cg,hi as Dg}from"./chunk-wcm80anz.js";import{ii as Eg,ji as Fg,ki as Gg,li as Hg,mi as Ig}from"./chunk-y7m2dpd3.js";import{ni as Jg,oi as Kg,pi as Lg,qi as Mg,ri as Ng}from"./chunk-9y0g8kzt.js";import{si as Og,ti as Pg,ui as Qg,vi as Rg,wi as Sg,xi as Tg,yi as Ug}from"./chunk-t6nseeb9.js";import{Ai as Wg,Bi as Xg,Ci as Yg,Di as Zg,Ei as _g,zi as Vg}from"./chunk-xttsqmkm.js";import{Gi as $g,Hi as ah,Ii as bh,Ji as ch,Ki as dh,Li as eh,Mi as fh,Ni as gh,Oi as hh,Pi as ih,Qi as jh,Ri as kh,Si as lh,Ti as mh}from"./chunk-54st8g2j.js";import{Vi as sg,Wi as tg}from"./chunk-qmsrqmh0.js";import{Zi as ug}from"./chunk-mc91191e.js";import"./chunk-9n0gvfrg.js";import{bj as vg}from"./chunk-7q9mwh4v.js";import{cj as wg,dj as xg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-havsy38b.js";import{sj as Ue,tj as Ve}from"./chunk-2bjdjnqf.js";import{Aj as Ge,Bj as He,Cj as Ie,Dj as Je,Ej as Ke,Fj as Le,Gj as Me,Hj as Ne,Ij as Oe,Jj as Pe,Kj as Qe,Lj as Re,Mj as Se,Nj as Te}from"./chunk-w95sp0k9.js";import{Oj as We,Pj as Xe,Qj as Ye,Rj as Ze,Sj as _e,Tj as $e,Uj as af,Vj as bf,Wj as cf,Xj as df,Yj as ef}from"./chunk-gfwqv3qk.js";import{qk as Rq,rk as Sq,sk as Tq,tk as Uq,uk as Vq,vk as Wq}from"./chunk-9mkmrttg.js";import{Ak as Wl,Bk as Xl,Ck as Yl,Dk as Zl,wk as Xj,xk as Yj,yk as Zj,zk as _j}from"./chunk-3yg0f94g.js";import"./chunk-58f0mthg.js";import"./chunk-3kn8xkm8.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Hf,$q as Nh,$r as vj,Al as J,Am as qb,An as vc,Ao as Ld,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as hf,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cq as ig,Cr as xi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as jf,Dq as jg,Dr as yi,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as kf,Eq as kg,Er as zi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as lf,Fq as lg,Fr as Ai,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as mf,Gq as mg,Gr as Bi,Hm as Db,Hn as Cc,Ho as Sd,Hp as nf,Hq as ng,Hr as Ci,Im as Eb,In as Dc,Io as Td,Ip as of,Iq as og,Ir as Di,Jl as za,Jn as Ec,Jo as Ud,Jp as pf,Jq as pg,Jr as Ei,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as qf,Kq as qg,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rg,Lr as Gi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Hi,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as tf,Nq as th,Nr as Yi,Om as Jb,On as Jc,Oo as Zd,Op as uf,Oq as uh,Or as Zi,Pm as Kb,Pn as Kc,Po as _d,Pp as vf,Pq as vh,Pr as _i,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as wf,Qq as wh,Qr as $i,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as xh,Rr as aj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as yf,Sq as Eh,Sr as mj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as zf,Tq as Fh,Tr as nj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Af,Uq as Gh,Ur as oj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Bf,Vq as Hh,Vr as pj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Cf,Wq as Ih,Wr as qj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Df,Xq as Jh,Xr as rj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as xe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Va,Zm as Ub,Zn as Uc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Wa,_m as Vb,_n as Vc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as If,ar as Oh,as as wj,bn as Yb,bo as Yc,bp as Ce,bq as Jf,br as Ph,bs as xj,cn as Zb,co as Zc,cp as De,cq as Kf,cr as Qh,cs as yj,dn as _b,do as _c,dq as Lf,dr as Rh,ds as zj,en as $b,eo as $c,eq as Mf,er as Sh,es as Aj,fm as Za,fn as ac,fo as ad,fp as Ee,fq as Nf,fr as Th,fs as Bj,gm as _a,gn as bc,go as bd,gp as Fe,gq as Of,gr as Uh,gs as Cj,hm as $a,hn as cc,ho as cd,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,ip as ff,iq as Qf,ir as di,is as Gj,jl as s,jm as bb,jn as ec,jo as ed,jq as Rf,jr as ei,js as Hj,kl as t,km as cb,kn as fc,ko as fd,kq as Sf,kr as fi,ks as Ij,ll as u,ln as gc,lo as gd,lq as Tf,lr as gi,ls as Jj,ml as v,mn as hc,mo as hd,mq as Uf,mr as hi,ms as Kj,nl as w,nm as db,nn as ic,no as id,nq as Vf,nr as ii,ns as Lj,ol as x,om as eb,on as jc,oo as jd,oq as Wf,or as ji,os as Mj,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,ps as Nj,ql as z,qm as gb,qn as lc,qo as Bd,qq as Yf,qr as li,rl as A,rm as hb,rn as mc,ro as Cd,rq as Zf,rr as mi,sl as B,sm as ib,sn as nc,so as Dd,sq as _f,sr as ni,tl as C,tm as jb,tn as oc,to as Ed,tq as $f,tr as oi,ul as D,um as kb,un as pc,uo as Fd,uq as ag,ur as pi,vl as E,vm as lb,vn as qc,vo as Gd,vq as bg,vr as qi,wl as F,wm as mb,wn as rc,wo as Hd,wq as cg,wr as ri,xl as G,xm as nb,xn as sc,xo as Id,xq as dg,xr as si,yl as H,ym as ob,yn as tc,yo as Jd,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as fg,zr as ui}from"./chunk-097mr013.js";import{As as n,Bs as o,Cs as p,Ds as q,Es as r,qs as d,rs as e,ss as f,ts as g,us as h,vs as i,ws as j,xs as k,ys as l,zs as m}from"./chunk-xpxw2ked.js";import{Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h,Ms as ai,Ns as bi}from"./chunk-6gb72zp2.js";import{Os as b,Ps as c}from"./chunk-82kkkpw2.js";import{Qs as Ea,Rs as Fa}from"./chunk-shyqtvbq.js";import{$s as tb,_s as sb,bt as ub,lt as vb,mt as wb,nt as xb}from"./chunk-sd7ymv7h.js";import{ot as Ja,pt as Ka,qt as La,rt as Ma,st as Na,tt as Oa}from"./chunk-w1asc0zd.js";import{ut as ue,vt as ve,wt as we}from"./chunk-xqwmj65h.js";import{At as nd,Bt as od,Ct as pd,Dt as qd,Et as rd,Ft as sd,Gt as td,Ht as ud,It as vd,Jt as wd,Kt as xd,Lt as yd,Mt as zd,xt as kd,yt as ld,zt as md}from"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import{$t as ua,Qt as ja,Rt as ka,St as la,Tt as ma,Ut as na,Vt as oa,Wt as pa,Xt as qa,Yt as ra,Zt as sa,_t as ta,au as va,bu as wa,cu as xa,du as ya}from"./chunk-gfhzedsr.js";import{Au as S,Bu as T,Cu as U,Du as V,Eu as W,Fu as X,Gu as Y,Hu as Z,Iu as _,Ju as $,Ku as aa,Lu as ba,Nu as ca,hu as K,iu as L,lu as M,qu as N,ru as O,xu as P,yu as Q,zu as R}from"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{pk as writeNetlifyConfig,gm as writeManifest,Uk as writeImageManifest,xo as wrapComponentForHMR,rr as withDefaults,Cj as webComponentDirectiveHandler,mp as watermark,oq as watchViews,cl as watchMultiple,dl as watchEffect,bl as watch,Be as warmImagePlaceholders,ql as waitForStore,Zd as waitForLocale,jo as virtualPathFor,pj as videoDirective,uc as validators,vr as validated,Ld as validateValueEnhanced,th as validateTemplate,rp as validateParams,Md as validateFormEnhanced,dq as validateFile,Hd as validateFields,Gd as validateField,vh as validateDirective,ed as validateCspDirectives,Kj as validateConfig,lm as validateComponentScripts,Jm as validateComponentProps,rg as validateClientScript,qh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Ih as userComponentFileExists,Yg as useVirtualList,sd as useTitle,pl as useStoreOrThrow,Po as useStore,$j as useStorage,zq as useSlots,bk as useSessionStorage,pd as useSeoMeta,rl as useRouteParams,tl as useRouteParamOrThrow,sl as useRouteParam,sd as usePageTitle,Te as useOptimistic,vl as useMiddlewareValue,ul as useMiddlewareState,ak as useLocalStorage,qo as useLoadingIndicator,nd as useHead,nh as useForm,Bq as useAttrs,fq as uploadFiles,eq as uploadFile,ml as updateInstance,Re as untrack,Yh as unregisterDirective,nl as unmountInstance,rb as unescapeHtml,mo as typecheckStxFiles,Hh as transpileTypeScript,er as translate,w as transitionDirective,Ta as transformAutoImports,Dm as toUsers,Cm as toUser,Xo as thumbnail,Yp as thumbHashToRGBA,Zp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,We as templateCache,Nb as syncRecordedResponse,uo as stxClientHelpers,Bf as structuredDataDirective,hr as stripLocalePrefix,Tl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,pn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Wj as stopHmrServer,zm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ge as state,lg as startsDocument,Rn as startProductionServer,Fn as startInteractive,ym as startBroadcasting,jr as stampLocaleLayoutGroup,D as staggerDirective,pp as srcsetUrls,E as springDirective,Dc as splitByPipe,Pl as spaNavVaryHeaders,ko as sourcePathFor,wp as smartBatchSign,Kh as slotContentHasExpressions,up as signUrl,Fh as shouldTranspileTypeScript,Tj as shouldReloadOnChange,zp as shouldRefreshSignature,Uj as shouldIgnoreFile,Qg as shouldCacheComponent,$o as sharpen,yr as shape,La as setStateDir,zl as setRouteParams,Al as setMiddlewareState,Ae as setImagePlaceholder,tq as setGlobalProvide,Rb as setErrorLocale,Wk as setCurrentInstance,dj as setCachedVideoResult,Ui as setCachedImageResult,Oi as setCached,Br as serveStxFile,Dr as serveMultipleStxFiles,Oj as serveMarkdownFile,$n as serveFile,Er as serveApp,_n as serve,Ao as serializeState,en as serializeSetCookie,bp as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,tj as scopeHTML,sj as scopeCSS,Ef as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,fp as saturation,sp as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,uf as runPreProcessingMiddleware,vf as runPostProcessingMiddleware,In as runPageAction,Me as runMountCallbacks,ba as runMiddleware,kl as runHooks,Zq as runDoctor,Ne as runDestroyCallbacks,Jf as runComposers,gp as rotate,rh as rewriteImagesWithSiblings,Ob as responseBindings,Oh as resolveTemplatePath,c as resolveStxTargets,Gj as resolveStxDirectories,dr as resolveI18n,Vo as resize,Za as resetPlaceholders,md as resetHead,zo as resetHMRHandler,cc as resetErrorConfig,tr as required,bb as replacePlaceholders,mq as renderView,mj as renderVideoComponent,Qa as renderVendorStyleTags,Iq as renderToString,Jq as renderToStream,Kq as renderToDOM,Xp as renderThumbhashToCanvas,Wq as renderTemplateString,Uq as renderTemplate,Vq as renderString,je as renderStreamingPage,Ah as renderSlot,Gg as renderSSRSuspense,Hp as renderProtectedVideo,Gp as renderProtectedImg,tp as renderMediaUpload,Tq as renderMarkdownView,Yl as renderLayoutTypes,Yi as renderImgComponent,Kk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,pq as renderEmail,Mh as renderComponentWithSlot,vd as renderBodyAttrs,Ko as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Ro as registerStoresClient,xl as registerStore,Cf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Vh as registerDirective,dd as registerCspDirectives,Mm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,_k as ref,xn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Mj as readMarkdownFile,Xe as readFileCached,$k as reactive,kp as quality,Ep as pruneSignatureCache,Ri as pruneCache,rq as provide,Sq as protectCodeBlocks,sr as prop,Mf as processVueTemplate,Wg as processVirtualListDirectives,_g as processVirtualGridDirectives,lj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,Ag as processTransitionDirectives,Dg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,wg as processTeleportDirectives,Eg as processSuspenseDirectives,xf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,lh as processStaticDirectives,sf as processStackReplacements,rf as processStackPushDirectives,Bh as processSlots,Rl as processShell,De as processServerBindings,yf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Ip as processProtectedMedia,eh as processPartialHydrationDirectives,qg as processOnceDirective,tf as processMiddleware,wf as processMetaDirectives,zd as processMetaDirective,Nj as processMarkdownFileDirectives,Th as processMarkdownDirectives,mf as processLoops,Og as processKeepAliveDirectives,pg as processJsonDirective,Zg as processInfiniteListDirectives,qf as processIncludes,_i as processImgComponents,Mk as processImageComponents,zk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,sh as processDirectives,bi as processDirectiveAttributes,vg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,zr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Jg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,po as preloadIslandHandlers,Ce as preloadIconCollection,um as poolStrings,Ej as pluginManager,ye as placeholdersWarmed,zg as performLeave,yg as performEnter,Oe as pendingLifecycleCounts,Se as peek,nf as partialsCache,nj as parseVideoDirectiveOptions,To as parseUrl,_p as parseThumbhashString,Jc as parseSwitchBlock,yh as parseSlots,zh as parseSlotElement,Oc as parseScriptDeclarations,Aj as parseSFCComponent,Jp as parseProtectedArgs,lf as parseLoopBinding,Zi as parseImgComponent,pi as parseImageUrl,Lk as parseImageComponent,Gn as parseFormBody,Lc as parseExpressionWithFilters,Nm as parseDefaults,un as parseCookies,Jl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,ur as optional,vm as optimizeTemplate,Rk as optimizeImage,Sk as optimizeDirectory,wr as oneOf,of as onceStore,hl as onUpdated,yb as onUpdate,jl as onUnmounted,El as onServer,fl as onMounted,Ke as onMount,kh as onHydrated,xq as onErrorCaptured,Le as onDestroy,Ug as onDeactivated,Dl as onClient,gl as onBeforeUpdate,il as onBeforeUnmount,el as onBeforeMount,Tg as onActivated,Tp as observeElement,yn as notFound,Uf as normalizeCriticalHeadOrder,wq as nextTick,Qm as negotiateEncoding,P as navigateTo,ll as mountInstance,z as motionDirective,Vc as moderateCspPreset,tm as minifyHtml,Af as metaDirective,dg as metaDedupKey,Uo as mergeParams,fg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Uh as markdownDirectiveHandler,Lj as markdownCache,b as looksLikeGlob,gr as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Hj as loadStxConfig,_ as loadMiddlewareFromDirectory,hm as loadManifest,Pp as loadElement,Am as loadChannels,nr as lintStxStrict,Rp as lazyLoadAll,Qp as lazyLoad,C as keyframeDirective,Gq as jsxs,Hq as jsxDEV,Fq as jsx,wn as jsonResponse,pe as islandDirective,$b as isTest,Ul as isSpaNavigation,Nl as isSpaNavRequest,xp as isSignatureValid,Pe as isSignal,xk as isSharpAvailable,hn as isServerEnvironment,Bl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Mp as isNativeLazySupported,Rq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Eh as isJavaScriptScript,Np as isIntersectionObserverSupported,Fk as isImageFile,yk as isImageBackendAvailable,ce as isICUFormat,jh as isHydrated,Jh as isHydrateTrigger,Hb as isHttpStatus,gn as isEdgeEnvironment,or as isDirectiveKind,_b as isDevelopment,Qe as isDerived,Sj as isCssOnlyChange,Pm as isCompressible,Cl as isClient,Lg as isAsyncComponent,Hn as isActionableMethod,cp as invert,Ze as invalidateFileCacheByDir,Ye as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,cr as injectThemeBootstrap,zf as injectSeoTags,$q as injectSeo,ff as injectRouterScript,Rj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ng as injectConfigHeadTags,Tf as injectColorModeBootScript,hg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,sq as inject,wl as initStoreRegistry,sk as initNetlify,ro as initLoadingIndicator,Op as initLazyLoading,En as initFile,Wp as initBlurUp,aq as initAllBlurUp,aj as imgDirective,Pk as imageDirective,Pn as hydrateTemplateStream,On as hydrateTemplate,oo as hydrateIslands,gh as hydrateIsland,Qn as hydrateFragment,hh as hydrateByStrategy,ih as hydrateAll,Ho as hydrate,Zn as htmlResponse,jg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ki as hashString,ef as hashFilePath,Ii as hashFile,Ji as hashBuffer,Lf as hasVueTemplateSyntax,kf as hasVariables,Mo as hasStore,cb as hasPlaceholders,qk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,mg as hasDocumentShell,wh as hasDirectives,h as hasDOMSupport,Ik as handleImageRequest,yq as handleError,Oq as h,Ek as groupVariantsByFormat,ap as grayscale,Sn as gitHash,nm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,lk as getTotalSize,yp as getTimeUntilExpiry,sg as getStoreScript,No as getStoreNames,Lo as getStore,ek as getStorageSize,dk as getStorageKeys,Ph as getSourceLineInfo,Gh as getSharedTranspiler,g as getScreenReaderOnlyStyle,uj as getScopeAttribute,Fe as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,uh as getPositionInfo,$a as getPlaceholderRegistry,Hi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Gk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,Ak as getImageMetadata,ue as getImageDelivery,Go as getHydrationRuntime,yl as getHydratedStoreState,Vj as getHmrServer,kd as getHead,yo as getHMRHandler,ti as getFormatExtension,Mi as getFileMtime,Dk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Xh as getDirectives,Wh as getDirective,Xk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Sh as getComponentCacheStats,cj as getCachedVideoResult,Cp as getCachedSignature,$e as getCachedSignalsRuntime,af as getCachedRouterScript,Fi as getCachedPlaceholder,Ti as getCachedImageResult,Ni as getCached,Qi as getCacheStats,Yf as getBuildId,xm as getBroadcastServer,si as getBestVariant,gb as getAllFilters,gi as generateWidthSrcset,Xg as generateVirtualListCSS,hq as generateVideoPreview,Nd as generateValidationScript,iq as generateUploadRuntime,om as generateTreeShakenBundle,Cg as generateTransitionRuntime,Bg as generateTransitionCSS,gj as generateThumbnails,yi as generateThumbhashPlaceholder,Zm as generateTemplatesDocs,Ig as generateSuspenseRuntime,Hg as generateSuspenseCSS,Bo as generateStateScript,qi as generateSrcsetData,Xi as generateSrcset,Bk as generateSrcSet,hj as generateSpriteSheet,qq as generateSpaShell,ri as generateSourceTags,mi as generateSizesFromBreakpoints,li as generateSizesAttribute,Ck as generateSizes,Df as generateSitemapIndex,ar as generateSitemap,Lp as generateSimpleMediaPicker,Fp as generateSignatureRuntime,Ve as generateSignalsRuntimeDev,Ue as generateSignalsRuntime,Xa as generateServerDataBridge,rj as generateScopeId,Bj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ff as generateRobotsTxt,br as generateRobots,Wi as generateResponsiveVariants,xj as generateReactiveWebComponentTS,wj as generateReactiveWebComponent,zj as generateReactiveRuntime,yj as generateReactiveMixin,fj as generatePoster,Ei as generatePlaceholderStyle,Di as generatePlaceholderCSS,xi as generatePlaceholder,fh as generatePartialHydrationCSS,Pc as generateNonce,mk as generateNetlifyToml,kq as generateMinifiedMediaRuntime,jq as generateMediaRuntime,Kp as generateMediaManagerEmbed,fm as generateManifest,to as generateLoadingIndicatorHtml,Vp as generateLazyLoadRuntime,Zl as generateLayoutTypes,Ai as generateLQIP,Sg as generateKeepAliveRuntime,Rg as generateKeepAliveCSS,mh as generateIslandManifest,gq as generateImagePreview,Tk as generateImageManifest,Fo as generateHydrationScript,te as generateHydrationRuntime,Io as generateHydrationCSS,$g as generateHydrationBootstrap,Qj as generateHotReloadScript,ea as generateHeatmapScript,wo as generateHMRClientScript,ij as generateHLSManifest,Co as generateEventBindings,ki as generateDprSrcsetWithVariableQuality,ji as generateDprSrcset,kg as generateDocumentShell,cn as generateDocs,_m as generateDirectivesDocs,ai as generateDirectiveRuntime,Gf as generateDefaultRobotsTxt,jj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Dq as generateCompositionRuntime,Ym as generateComponentsDocs,ah as generateComponentManifest,Wm as generateComponentDoc,Ci as generateColorPlaceholder,Sf as generateColorModeBootScript,ol as generateClientRuntime,Li as generateCacheKey,Va as generateBrowserAutoImportDestructuring,bq as generateBlurUpRuntime,cq as generateBlurUpCSS,Ab as generateBindingsRuntime,hi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ng as generateAsyncComponentRuntime,Mg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,no as formatTypecheckDiagnostics,ho as formatTypeErrors,Bn as formatStxContent,kk as formatSize,O as formatRoutes,Cn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,_q as formatDoctorReport,$m as formatDocsAsMarkdown,bn as formatDocsAsJson,an as formatDocsAsHtml,jp as format,sm as foldConstants,ip as flipVertical,hp as flipHorizontal,_l as fingerprint,lo as findRuntimeTypeDeclarations,Yq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,pm as findDeadCode,pm as findDeadBranches,Kl as findContainerRegion,Xm as findComponentFiles,Cr as findCommonDir,jk as filterRequiredFiles,Nh as fileExists,gf as extractVariables,dm as extractTemplateExpressions,le as extractStreamBoundaries,Do as extractState,Ch as extractSlotContent,jf as extractScriptFromTemplate,cm as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,Bi as extractDominantColor,Nc as extractDirectiveParams,xh as extractDirectiveNames,Vl as extractContainerContent,Um as extractComponentProps,bh as extractComponentName,Vm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ch as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,vj as extractAndScopeStyles,Ba as extractAndProcessEvents,Zj as externalizeSharedAssets,_j as externalizeRepeatedAssets,Yj as externalizeHtml,qb as evaluateExpression,rm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,xg as ensureTeleportTargets,og as ensureDocumentShell,Jd as enhancedValidationRules,Sm as enableDevTools,qm as eliminateDeadCode,Ie as effect,qp as dprUrls,dn as docsCommand,Xl as discoverLayoutNames,Up as disconnectObserver,Tm as disableDevTools,tc as devHelpers,Ql as detectShell,fn as detectRuntime,nk as detectProjectConfig,ui as detectFormat,km as detectBuildMode,He as derived,rk as deploy,Jj as defineStxConfig,Qo as defineStore,Aq as defineSlots,mr as defineSiteConfig,qr as definePropsWithValidation,pr as defineProps,Dj as definePlugin,rd as definePageMeta,R as defineMiddleware,oh as defineForm,vq as defineExpose,uq as defineEmits,Zh as defineDirective,Qq as defineCustomElement,Nn as defineConfig,_h as defineClientDirective,Kg as defineAsyncComponent,lq as defaultMediaConfig,Vk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Fj as defaultConfig,Ar as default,sb as deepMergeThemes,Of as dedupeScopedStyles,zi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,$p as crossfadeTransition,Wo as crop,Vg as createVirtualList,oj as createVideoDirective,sn as createVercelHandler,eo as createTypeChecker,fe as createTranslateFilter,on as createTextEncoderStream,Pq as createStxApp,nn as createStreamingResponse,ne as createStreamRenderer,Oo as createStore,U as createStorageManager,S as createServerCookieManager,Zk as createScope,Fg as createSSRSuspense,Ee as createRouter,$ as createRouteLocation,bo as createRoute,_k as createRef,$k as createReactive,Cq as createProvideContext,Un as createProject,Mn as createProductionBuild,_a as createPlaceholder,wm as createOptimizedBuild,tn as createNetlifyHandler,fk as createNetlifyClient,aa as createMiddlewareContext,ao as createMiddleware,Sp as createLazyObserver,Pg as createKeepAliveCache,kn as createKVNamespace,dh as createIslandRegistry,$i as createImgDirective,Qk as createImagePlugin,Jk as createImageHandler,Ok as createImageDirective,ia as createHeatmapAggregator,ik as createFileManifest,jn as createEnvAccessor,nc as createEnhancedError,mn as createEdgeHandler,ln as createEdgeCache,Qh as createDetailedErrorMessage,rn as createDenoHandler,ok as createDefaultNetlifyConfig,gd as createCspHeaders,vn as createCookie,al as createComputed,Yk as createComponentInstance,qn as createCloudflareHandler,T as createClientCookieManager,$h as createBuiltinDirectives,Pq as createApp,F as createAnimationTimeline,Zo as cover,hf as convertToCommonJS,ep as contrast,Yo as contain,mc as consoleError,ac as configureErrorHandling,Ij as config,al as computed,Rm as compressResponse,If as composerPattern,Hf as composer,Sl as composeShellWithPage,Lm as componentDirective,Lh as componentClientSignalNames,em as compileTemplate,a as collectRepeatedFlag,hk as collectDeployFiles,ig as cloakStyleFragment,ej as clearVideoCache,Pd as clearTranslationCache,tg as clearStoreCache,ck as clearStorage,Dp as clearSignatureCache,Gi as clearPlaceholderCache,pf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Nk as clearImageCache,Ub as clearErrorMessages,bf as clearDevCaches,hb as clearCustomFilters,Kf as clearComposers,ug as clearComposableCache,Rh as clearComponentCache,Pi as clearCache,so as cleanupLoadingIndicator,Hl as classifyScript,Il as classifyAllScripts,fo as checkTemplateFile,go as checkTemplate,cf as checkCache,Ap as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Gm as channel,An as captureScreenshots,zn as captureScreenshot,$d as cancelPendingLoads,gk as calculateSha1,ii as calculateOptimalWidths,df as cacheTemplate,qj as buildWebComponents,io as buildVirtualSource,nq as buildViews,So as buildUrl,he as buildSuspenseResolveScript,lr as buildStaticSite,la as buildRuntimeGlobalsDestructure,$l as buildRuntimeAsset,am as buildRouterAsset,kr as buildLangPickerScript,oi as buildImageUrl,$f as buildIdFragment,eg as buildHtmlAttrs,im as buildForProduction,Om as buildComponentLibrary,Bp as buildAuthParams,jm as buildApp,ir as buildAlternateLinks,Ln as build,Em as broadcastPrivate,Fm as broadcastPresence,Bm as broadcast,dp as brightness,_o as blur,ya as blankInertHtmlRegions,vp as batchSignUrls,Je as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,lp as auto,e as attributeValue,bm as assetTags,za as asInvocableStatement,xr as arrayOf,fr as applyTranslations,Vi as applyTransformations,Dh as applySlots,Km as applyPropDefaults,op as applyPreset,gg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ol as appendVary,Xc as apiCspPreset,y as animationGroupDirective,kj as analyzeVideo,mm as analyzeUsage,Fl as analyzeTemplate,Gl as analyzeProject,mm as analyzeDirectiveUsage,Eb as analyticsDirective,Xn as addStore,Wn as addPage,$c as addNonceToInlineContent,Yn as addLayout,Vn as addComponent,Jn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,_e as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,bj as VideoProcessorCache,ph as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,co as TemplateTypeChecker,Dn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Lq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Ll as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Kn as ProductionBuild,Nq as Portal,Tn as PROJECT_TEMPLATES,np as PRESETS,na as NON_CLIENT_PRIMITIVES,Jo as MemorySessionStore,fi as MIME_TYPES,ci as MEDIA_DEFAULT_WIDTHS,ei as MEDIA_DEFAULT_FORMATS,Wl as LAYOUT_TYPES_FILE,Si as ImageProcessorCache,Hk as ImageProcessingError,Eo as HydrationRuntime,Pj as HotReloadServer,ha as HeatmapAggregator,cg as HTML_CLASS_MARKER,bg as HTML_ATTRS_MARKER,Eq as Fragment,Mq as For,Ml as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Xj as EXTERNALIZED_ASSET_DIR,tk as DeployError,uk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,wk as DEFAULT_QUALITY,vi as DEFAULT_PLACEHOLDER_OPTIONS,vk as DEFAULT_FORMATS,di as DEFAULT_DPR_VALUES,vo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ni as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,ag as CLOAK_STYLE,Im as BroadcastServer,Hm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,wi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Xq as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$l as l,Ql as c,Tl as d,Ul as e,Vl as f,Wl as g,Xl as h,Yl as i,Zl as j,_l as k,am as m}from"./chunk-
|
|
2
|
+
import{$l as l,Ql as c,Tl as d,Ul as e,Vl as f,Wl as g,Xl as h,Yl as i,Zl as j,_l as k,am as m}from"./chunk-097mr013.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import{Qs as a,Rs as b}from"./chunk-shyqtvbq.js";import"./chunk-sd7ymv7h.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$i as v,_i as _,aj as U}from"./chunk-9n0gvfrg.js";import{Ol as C,Pl as N,Rl as E,Uq as T,js as S}from"./chunk-
|
|
2
|
+
import{$i as v,_i as _,aj as U}from"./chunk-9n0gvfrg.js";import{Ol as C,Pl as N,Rl as E,Uq as T,js as S}from"./chunk-097mr013.js";import{Qt as y}from"./chunk-gfhzedsr.js";import L from"path";var j=new Map,M=new Map,b=["composables","functions"];function K(V){let J=L.basename(V,".ts");return J==="index"||J==="types"||V.endsWith(".d.ts")}async function F(V){if(V)return L.resolve(V);let J=`<default>:${process.cwd()}`,Q=M.get(J);if(Q!==void 0)return Q;let z=await h();if(z!==null)M.set(J,z);return z}async function h(){let V=await S(),J=V.root||process.cwd(),Q=V.composablesDir;if(Q)return L.resolve(J,Q);for(let z of b){let Z=L.resolve(J,z);try{let W=new Bun.Glob("**/*.ts");for await(let Y of W.scan({cwd:Z,absolute:!0}))if(!K(Y))return Z}catch{}}return null}async function s(V){let J=await F(V);if(!J)return[];let Q=[];try{let W=new Bun.Glob("**/*.ts");for await(let Y of W.scan({cwd:J,absolute:!0}))if(!K(Y))Q.push(Y)}catch{return[]}Q.sort();let z=T({loader:"ts",target:"browser",define:E()}),Z=[];for(let W of Q)try{let Y=await Bun.file(W).text(),G=z.scan(Y).exports.filter(($)=>$!=="default");if(G.length>0)Z.push({file:W,names:G})}catch{}return Z}function u(V,J){return new RegExp(`\\b${J.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(V)}function f(V,J,Q){let z=new Map;for(let{file:G,names:$}of V)for(let O of $)if(!z.has(O))z.set(O,G);let Z=(G)=>{let $=[];for(let[O,P]of z)if(u(G,O))$.push(P);return $},W=new Set,Y=Z(Q);while(Y.length>0){let G=[];for(let $ of Y){if(W.has($))continue;W.add($);for(let O of Z(J.get($)??""))if(!W.has(O))G.push(O)}Y=G}return W}async function i(V,J){let Q=await F(V);if(!Q)return null;let z=[];try{let q=new Bun.Glob("**/*.ts");for await(let H of q.scan({cwd:Q,absolute:!0})){if(K(H))continue;z.push(H)}}catch{return U(j,Q,"",""),null}let Z=_(z);if(z.length===0)return U(j,Q,Z,""),null;z.sort();let W=T({loader:"ts",target:"browser",define:E()}),Y=new Map,G=[];for(let q of z)try{let H=await Bun.file(q).text();Y.set(q,H);let w=W.scan(H).exports.filter((X)=>X!=="default");if(w.length>0)G.push({file:q,names:w})}catch{Y.set(q,"")}let $=J===void 0?new Set(z):f(G,Y,J);if($.size===0)return null;let O=z.filter((q)=>$.has(q)),P=`${Q}\x00${O.join("\x00")}`,B=v(j,P,Z);if(B!==void 0)return B||null;let A=[],R=new Set,I=new Set;for(let q of O)try{let H=Y.get(q)??await Bun.file(q).text(),w=L.basename(q,".ts");for(let X of H.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])I.add(X[1]);try{for(let X of W.scan(H).exports)if(X!=="default")R.add(X)}catch{}H=C(H),H=N(H),H=H.replace(/^export\s+(default\s+)?/gm,""),H=W.transformSync(H),A.push(`// Composable: ${w}
|
|
3
3
|
${H.trim()}`)}catch(H){console.warn(`[stx] Failed to load composable ${q}:`,H)}if(A.length===0||R.size===0)return U(j,P,Z,""),null;let D=[...R].map((q)=>` try { __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
|
|
4
4
|
`),g=JSON.stringify([...R]),k=A.join(`
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{zp as V}from"./chunk-
|
|
2
|
+
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{zp as V}from"./chunk-097mr013.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-sd7ymv7h.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import{$u as F}from"./chunk-z45t29sf.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
const ws = new WebSocket('${z}');
|
|
@@ -556,7 +556,7 @@ window.__stxPerformance = {
|
|
|
556
556
|
|
|
557
557
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
558
558
|
</script>
|
|
559
|
-
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-
|
|
559
|
+
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-4jts2f6t.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-4jts2f6t.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
560
560
|
`)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
561
561
|
`)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
|
|
562
562
|
<html lang="en" class="${Z.darkClass||"dark"}">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{pf as a}from"./chunk-
|
|
2
|
+
import{pf as a}from"./chunk-zrgctphh.js";import"./chunk-097mr013.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-sd7ymv7h.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{a as startInteractive};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$i as w,_i as O,aj as Z}from"./chunk-9n0gvfrg.js";import{$k as R,gl as U,il as T}from"./chunk-
|
|
2
|
+
import{$i as w,_i as O,aj as Z}from"./chunk-9n0gvfrg.js";import{$k as R,gl as U,il as T}from"./chunk-3kn8xkm8.js";import{Ol as E,Pl as L,Rl as M,Uq as k,js as C,up as W}from"./chunk-097mr013.js";import{Qt as B}from"./chunk-gfhzedsr.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()});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(){
|
|
@@ -11,7 +11,7 @@ catch (e) {
|
|
|
11
11
|
}
|
|
12
12
|
throw e;
|
|
13
13
|
}
|
|
14
|
-
`),Z.set(X,V)}return V(...W)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:U,context:J.slice()});return U}clear(){this.pool.length=0,this.fnCache.clear()}}var pJ=new qJ;class UJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(Q){this.enabled=Q}isEnabled(){return this.enabled}setBudget(Q,J){this.budgets.set(Q,{warnThreshold:0.8,action:"warn",...J})}setBudgets(Q){for(let[J,Y]of Object.entries(Q))this.setBudget(J,Y)}removeBudget(Q){this.budgets.delete(Q)}getBudgets(){let Q={};for(let[J,Y]of this.budgets.entries())Q[J]=Y;return Q}onViolation(Q){this.violationHandlers.push(Q)}offViolation(Q){let J=this.violationHandlers.indexOf(Q);if(J!==-1)this.violationHandlers.splice(J,1)}time(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}async timeAsync(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=await J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}checkBudget(Q,J){let Y=this.budgets.get(Q);if(!Y)return;let $=J/Y.maxTime*100,Z=Y.warnThreshold!==void 0?J>=Y.maxTime*Y.warnThreshold&&J<Y.maxTime:!1,q=J>=Y.maxTime;if(!Z&&!q)return;let U={label:Q,actualTime:J,budgetTime:Y.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:Z};this.violations.push(U);while(this.violations.length>this.maxViolations)this.violations.shift();for(let G of this.violationHandlers)try{G(U)}catch{}let W=Z?`[Performance Warning] "${Q}" took ${J.toFixed(2)}ms (${$.toFixed(1)}% of ${Y.maxTime}ms budget)`:`[Performance Budget Exceeded] "${Q}" took ${J.toFixed(2)}ms (exceeded ${Y.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Y.action){case"log":console.log(W);break;case"warn":console.warn(W);break;case"error":console.error(W);break;case"throw":if(q)throw Error(W);else console.warn(W);break}}recordTime(Q,J){let Y=this.metrics.get(Q);if(Y)Y.count++,Y.totalTime+=J,Y.maxTime=Math.max(Y.maxTime,J),Y.minTime=Math.min(Y.minTime,J);else this.metrics.set(Q,{count:1,totalTime:J,maxTime:J,minTime:J})}getStats(Q){if(Q){let Y=this.metrics.get(Q);if(!Y)return{};let $=this.budgets.get(Q);return{count:Y.count,avgTime:Y.totalTime/Y.count,totalTime:Y.totalTime,maxTime:Y.maxTime,minTime:Y.minTime,budget:$?.maxTime,budgetUtilization:$?Y.totalTime/Y.count/$.maxTime*100:void 0}}let J={};for(let[Y,$]of this.metrics.entries()){let Z=this.budgets.get(Y);J[Y]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:Z?.maxTime,budgetUtilization:Z?$.totalTime/$.count/Z.maxTime*100:void 0}}return J}getViolations(Q){if(Q)return this.violations.filter((J)=>J.label===Q);return[...this.violations]}getViolationStats(){let Q={},J=0,Y=0;for(let $ of this.violations)if(Q[$.label]=(Q[$.label]||0)+1,$.isWarning)J++;else Y++;return{total:this.violations.length,byLabel:Q,warnings:J,errors:Y}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var h=null;function zJ(){if(!h)h=new UJ;return h}var gJ=new Proxy({},{get(Q,J){return zJ()[J]}});var WJ=[];function FJ(Q){let J=new c(Q);return WJ.push(J),J}function hJ(){for(let Q of WJ)Q.clear()}function i(Q,...J){return`${J.map((Y)=>String(Y??"")).join("\x00")}\x00${Q.length}\x00${Bun.hash(Q)}`}function cJ(Q){let J=[];for(let Y of new Set(Q))try{J.push({path:Y,mtimeMs:OJ.statSync(Y).mtimeMs})}catch{}return J}function iJ(Q){for(let J of Q)try{if(OJ.statSync(J.path).mtimeMs!==J.mtimeMs)return!1}catch{return!1}return!0}var L=null,n=!1,I=null,M="",K=!1,IJ=256,z=new Map,j=new Map,H=null,w=null;function x(Q){return Bun.hash(Q).toString(16).padStart(16,"0").slice(0,16)}function l(Q,J){if(z.has(Q))z.delete(Q);else if(z.size>=IJ)z.delete(z.keys().next().value);z.set(Q,J)}function HJ(Q){let J=x(Q);if(j.has(J))j.delete(J);else if(j.size>=IJ)j.delete(j.keys().next().value);return j.set(J,Q),J}function eJ(Q){let J=j.get(Q);if(J===void 0)return;return j.delete(Q),j.set(Q,J),J}async function TJ(Q){if(!H)return null;try{let J=Bun.file(O.join(H,`cw-${x(Q)}.css`));if(!await J.exists())return null;return await J.text()}catch{return null}}async function BJ(Q,J){if(!H)return;try{if(!fs.existsSync(H))fs.mkdirSync(H,{recursive:!0});await Bun.write(O.join(H,`cw-${x(Q)}.css`),J)}catch{}}async function GJ(Q){try{let J=await import(Q);if(J&&J.CSSGenerator)return{CSSGenerator:J.CSSGenerator,config:J.config,build:J.build,defaultConfig:J.defaultConfig,extractClasses:J.extractClasses}}catch{}return null}function KJ(){let Q=[],J=process.cwd();while(J!==O.dirname(J))Q.push(O.join(J,"node_modules","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"node_modules","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"pantry","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"node_modules","@stacksjs","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@stacksjs","crosswind","dist","index.js")),J=O.dirname(J);return Q}function RJ(){let Q=[],J=process.env.HOME||process.env.USERPROFILE||"";if(J){let Y=[O.join(J,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),O.join(J,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];Q.push(...Y)}return Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),Q}async function XJ(){if(n)return L;n=!0;try{let Q=async(Z)=>{for(let q of Z){if(!await Bun.file(q).exists())continue;let U=await GJ(q);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded from ${O.dirname(O.dirname(q))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Z=O.resolve(process.env.CROSSWIND_SRC),q=await Q([Z]);if(!q)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Z}`);return L=q,L}let J=await Q(KJ());if(J)return L=J,L;let Y=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Z of Y){let q=await GJ(Z);if(q){if(L=q,!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded`);return L}}let $=await Q(RJ());if($)return L=$,L;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${F.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${F.reset}`),console.warn(`${F.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${F.reset}`),null}}function JQ(){k.clear(),z.clear(),j.clear()}function QQ(){k.clear(),L=null,n=!1,I=null,M="",z.clear(),j.clear(),w=null}async function VJ(Q){try{if(!AJ({name:"crosswind",cwd:Q}))return null;let{loadConfigWithResult:J}=await import("bunfig"),Y=await J({name:"crosswind",cwd:Q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Y?.path||!Y.config||Object.keys(Y.config).length===0)return null;let $=O.relative(Q,Y.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} Loaded config from ${$||Y.path}`);return Y.config}catch(J){if(J instanceof Error&&J.name==="ConfigNotFoundError")return null;return console.warn(`${F.yellow}[Crosswind]${F.reset} Failed to load crosswind config:`,J instanceof Error?J.message:J),null}}async function PJ(Q){let J=null;try{let{loadStxConfig:Y}=await import("./chunk-39mrh37y.js"),$=await Y(Q);if($.css)if(typeof $.css==="string"){let Z=O.isAbsolute($.css)?$.css:O.resolve(Q,$.css);if(await Bun.file(Z).exists()){let q=await import(Z);J=q.default||q,console.log(`${F.green}[Crosswind]${F.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(J={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let Z=O.isAbsolute($.css.config)?$.css.config:O.resolve(Q,$.css.config);if(await Bun.file(Z).exists()){let q=await import(Z);J={...q.default||q,...J}}}console.log(`${F.green}[Crosswind]${F.reset} Using inline CSS config from stx.config.ts`)}}catch{}return J||await VJ(Q)}function EJ(Q){try{let J=new WeakSet;return x(JSON.stringify(Q??{},(Y,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(J.has($))return"[circular]";J.add($)}return $})??"")}catch{return"unhashable"}}async function DJ(Q){if(K)return M;K=!0;try{let J=await XJ();if(!J||!J.build)return K=!1,"";if(!I)I=await VJ(Q);if(!I)return K=!1,"";let Y=J.defaultConfig?.theme||{},$=I.theme||{},Z={...J.defaultConfig,...I,theme:{...Y,...$,extend:{...Y.extend||{},...$.extend||{}}}},q=performance.now(),U=await J.build(Z),W=performance.now()-q;if(M=U.css,console.log(`${F.cyan}[Crosswind]${F.reset} Built ${U.classes.size} classes in ${W.toFixed(1)}ms`),Z.output){let G=O.isAbsolute(Z.output)?Z.output:O.join(Q,Z.output),X=O.dirname(G);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(G,U.css)}return K=!1,U.css}catch(J){return console.error(`${F.red}[Crosswind]${F.reset} Build error:`,J),K=!1,M}}async function YQ(Q){I=null,await DJ(Q)}function $Q(){return M}function MJ(Q){let J=new Set,Y=/class\s*=\s*["']([^"']+)["']/gi,$=Y.exec(Q);while($!==null){for(let U of $[1].split(/\s+/))if(U.trim())J.add(U.trim());$=Y.exec(Q)}let Z=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,q=Z.exec(Q);while(q!==null){let U=q[1].match(/'([^']+)'/g);if(U){for(let W of U)for(let G of W.slice(1,-1).split(/\s+/))if(G.trim())J.add(G.trim())}q=Z.exec(Q)}return J}var k=FJ(64);async function wJ(Q,J){let Y=k.get(i(Q,J,w));if(Y!==void 0)return Y;let $=await SJ(Q,J);if($)k.set(i(Q,J,w),$);return $}async function SJ(Q,J){try{let Y=await XJ();if(!Y)return"";let $=typeof Y.extractClasses==="function"?Y.extractClasses(Q):MJ(Q);if($.size===0)return"";let Z=J?O.resolve(J):process.cwd();if(!H)H=jJ(Z,"cache");let q=[...$].sort().join(" "),U=`${w||"default"}::${q}`,W=z.get(U);if(W!==void 0)return l(U,W),W;let G=await TJ(U);if(G!==null)return l(U,G),G;if(!I)I=await PJ(Z),w=EJ(I);let X=Y.defaultConfig||Y.config,V=I||{},A=ZJ(X,V),{safelist:T,includePreflight:R,minify:b,tokenCSS:LJ}=A,o=A.config,P=new Y.CSSGenerator(o);for(let N of T)P.generate(N);for(let N of $)P.generate(N);let _=P.toCSS(R,b),r=o.shortcuts||V.shortcuts||{};for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean);for(let D of f)P.generate(D)}_=P.toCSS(R,b);let E=_.split(`
|
|
14
|
+
`),Z.set(X,V)}return V(...W)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:U,context:J.slice()});return U}clear(){this.pool.length=0,this.fnCache.clear()}}var pJ=new qJ;class UJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(Q){this.enabled=Q}isEnabled(){return this.enabled}setBudget(Q,J){this.budgets.set(Q,{warnThreshold:0.8,action:"warn",...J})}setBudgets(Q){for(let[J,Y]of Object.entries(Q))this.setBudget(J,Y)}removeBudget(Q){this.budgets.delete(Q)}getBudgets(){let Q={};for(let[J,Y]of this.budgets.entries())Q[J]=Y;return Q}onViolation(Q){this.violationHandlers.push(Q)}offViolation(Q){let J=this.violationHandlers.indexOf(Q);if(J!==-1)this.violationHandlers.splice(J,1)}time(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}async timeAsync(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=await J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}checkBudget(Q,J){let Y=this.budgets.get(Q);if(!Y)return;let $=J/Y.maxTime*100,Z=Y.warnThreshold!==void 0?J>=Y.maxTime*Y.warnThreshold&&J<Y.maxTime:!1,q=J>=Y.maxTime;if(!Z&&!q)return;let U={label:Q,actualTime:J,budgetTime:Y.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:Z};this.violations.push(U);while(this.violations.length>this.maxViolations)this.violations.shift();for(let G of this.violationHandlers)try{G(U)}catch{}let W=Z?`[Performance Warning] "${Q}" took ${J.toFixed(2)}ms (${$.toFixed(1)}% of ${Y.maxTime}ms budget)`:`[Performance Budget Exceeded] "${Q}" took ${J.toFixed(2)}ms (exceeded ${Y.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Y.action){case"log":console.log(W);break;case"warn":console.warn(W);break;case"error":console.error(W);break;case"throw":if(q)throw Error(W);else console.warn(W);break}}recordTime(Q,J){let Y=this.metrics.get(Q);if(Y)Y.count++,Y.totalTime+=J,Y.maxTime=Math.max(Y.maxTime,J),Y.minTime=Math.min(Y.minTime,J);else this.metrics.set(Q,{count:1,totalTime:J,maxTime:J,minTime:J})}getStats(Q){if(Q){let Y=this.metrics.get(Q);if(!Y)return{};let $=this.budgets.get(Q);return{count:Y.count,avgTime:Y.totalTime/Y.count,totalTime:Y.totalTime,maxTime:Y.maxTime,minTime:Y.minTime,budget:$?.maxTime,budgetUtilization:$?Y.totalTime/Y.count/$.maxTime*100:void 0}}let J={};for(let[Y,$]of this.metrics.entries()){let Z=this.budgets.get(Y);J[Y]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:Z?.maxTime,budgetUtilization:Z?$.totalTime/$.count/Z.maxTime*100:void 0}}return J}getViolations(Q){if(Q)return this.violations.filter((J)=>J.label===Q);return[...this.violations]}getViolationStats(){let Q={},J=0,Y=0;for(let $ of this.violations)if(Q[$.label]=(Q[$.label]||0)+1,$.isWarning)J++;else Y++;return{total:this.violations.length,byLabel:Q,warnings:J,errors:Y}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var h=null;function zJ(){if(!h)h=new UJ;return h}var gJ=new Proxy({},{get(Q,J){return zJ()[J]}});var WJ=[];function FJ(Q){let J=new c(Q);return WJ.push(J),J}function hJ(){for(let Q of WJ)Q.clear()}function i(Q,...J){return`${J.map((Y)=>String(Y??"")).join("\x00")}\x00${Q.length}\x00${Bun.hash(Q)}`}function cJ(Q){let J=[];for(let Y of new Set(Q))try{J.push({path:Y,mtimeMs:OJ.statSync(Y).mtimeMs})}catch{}return J}function iJ(Q){for(let J of Q)try{if(OJ.statSync(J.path).mtimeMs!==J.mtimeMs)return!1}catch{return!1}return!0}var L=null,n=!1,I=null,M="",K=!1,IJ=256,z=new Map,j=new Map,H=null,w=null;function x(Q){return Bun.hash(Q).toString(16).padStart(16,"0").slice(0,16)}function l(Q,J){if(z.has(Q))z.delete(Q);else if(z.size>=IJ)z.delete(z.keys().next().value);z.set(Q,J)}function HJ(Q){let J=x(Q);if(j.has(J))j.delete(J);else if(j.size>=IJ)j.delete(j.keys().next().value);return j.set(J,Q),J}function eJ(Q){let J=j.get(Q);if(J===void 0)return;return j.delete(Q),j.set(Q,J),J}async function TJ(Q){if(!H)return null;try{let J=Bun.file(O.join(H,`cw-${x(Q)}.css`));if(!await J.exists())return null;return await J.text()}catch{return null}}async function BJ(Q,J){if(!H)return;try{if(!fs.existsSync(H))fs.mkdirSync(H,{recursive:!0});await Bun.write(O.join(H,`cw-${x(Q)}.css`),J)}catch{}}async function GJ(Q){try{let J=await import(Q);if(J&&J.CSSGenerator)return{CSSGenerator:J.CSSGenerator,config:J.config,build:J.build,defaultConfig:J.defaultConfig,extractClasses:J.extractClasses}}catch{}return null}function KJ(){let Q=[],J=process.cwd();while(J!==O.dirname(J))Q.push(O.join(J,"node_modules","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"node_modules","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"pantry","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"node_modules","@stacksjs","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@stacksjs","crosswind","dist","index.js")),J=O.dirname(J);return Q}function RJ(){let Q=[],J=process.env.HOME||process.env.USERPROFILE||"";if(J){let Y=[O.join(J,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),O.join(J,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];Q.push(...Y)}return Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),Q}async function XJ(){if(n)return L;n=!0;try{let Q=async(Z)=>{for(let q of Z){if(!await Bun.file(q).exists())continue;let U=await GJ(q);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded from ${O.dirname(O.dirname(q))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Z=O.resolve(process.env.CROSSWIND_SRC),q=await Q([Z]);if(!q)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Z}`);return L=q,L}let J=await Q(KJ());if(J)return L=J,L;let Y=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Z of Y){let q=await GJ(Z);if(q){if(L=q,!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded`);return L}}let $=await Q(RJ());if($)return L=$,L;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${F.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${F.reset}`),console.warn(`${F.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${F.reset}`),null}}function JQ(){k.clear(),z.clear(),j.clear()}function QQ(){k.clear(),L=null,n=!1,I=null,M="",z.clear(),j.clear(),w=null}async function VJ(Q){try{if(!AJ({name:"crosswind",cwd:Q}))return null;let{loadConfigWithResult:J}=await import("bunfig"),Y=await J({name:"crosswind",cwd:Q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Y?.path||!Y.config||Object.keys(Y.config).length===0)return null;let $=O.relative(Q,Y.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} Loaded config from ${$||Y.path}`);return Y.config}catch(J){if(J instanceof Error&&J.name==="ConfigNotFoundError")return null;return console.warn(`${F.yellow}[Crosswind]${F.reset} Failed to load crosswind config:`,J instanceof Error?J.message:J),null}}async function PJ(Q){let J=null;try{let{loadStxConfig:Y}=await import("./chunk-cdfq3xpd.js"),$=await Y(Q);if($.css)if(typeof $.css==="string"){let Z=O.isAbsolute($.css)?$.css:O.resolve(Q,$.css);if(await Bun.file(Z).exists()){let q=await import(Z);J=q.default||q,console.log(`${F.green}[Crosswind]${F.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(J={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let Z=O.isAbsolute($.css.config)?$.css.config:O.resolve(Q,$.css.config);if(await Bun.file(Z).exists()){let q=await import(Z);J={...q.default||q,...J}}}console.log(`${F.green}[Crosswind]${F.reset} Using inline CSS config from stx.config.ts`)}}catch{}return J||await VJ(Q)}function EJ(Q){try{let J=new WeakSet;return x(JSON.stringify(Q??{},(Y,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(J.has($))return"[circular]";J.add($)}return $})??"")}catch{return"unhashable"}}async function DJ(Q){if(K)return M;K=!0;try{let J=await XJ();if(!J||!J.build)return K=!1,"";if(!I)I=await VJ(Q);if(!I)return K=!1,"";let Y=J.defaultConfig?.theme||{},$=I.theme||{},Z={...J.defaultConfig,...I,theme:{...Y,...$,extend:{...Y.extend||{},...$.extend||{}}}},q=performance.now(),U=await J.build(Z),W=performance.now()-q;if(M=U.css,console.log(`${F.cyan}[Crosswind]${F.reset} Built ${U.classes.size} classes in ${W.toFixed(1)}ms`),Z.output){let G=O.isAbsolute(Z.output)?Z.output:O.join(Q,Z.output),X=O.dirname(G);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(G,U.css)}return K=!1,U.css}catch(J){return console.error(`${F.red}[Crosswind]${F.reset} Build error:`,J),K=!1,M}}async function YQ(Q){I=null,await DJ(Q)}function $Q(){return M}function MJ(Q){let J=new Set,Y=/class\s*=\s*["']([^"']+)["']/gi,$=Y.exec(Q);while($!==null){for(let U of $[1].split(/\s+/))if(U.trim())J.add(U.trim());$=Y.exec(Q)}let Z=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,q=Z.exec(Q);while(q!==null){let U=q[1].match(/'([^']+)'/g);if(U){for(let W of U)for(let G of W.slice(1,-1).split(/\s+/))if(G.trim())J.add(G.trim())}q=Z.exec(Q)}return J}var k=FJ(64);async function wJ(Q,J){let Y=k.get(i(Q,J,w));if(Y!==void 0)return Y;let $=await SJ(Q,J);if($)k.set(i(Q,J,w),$);return $}async function SJ(Q,J){try{let Y=await XJ();if(!Y)return"";let $=typeof Y.extractClasses==="function"?Y.extractClasses(Q):MJ(Q);if($.size===0)return"";let Z=J?O.resolve(J):process.cwd();if(!H)H=jJ(Z,"cache");let q=[...$].sort().join(" "),U=`${w||"default"}::${q}`,W=z.get(U);if(W!==void 0)return l(U,W),W;let G=await TJ(U);if(G!==null)return l(U,G),G;if(!I)I=await PJ(Z),w=EJ(I);let X=Y.defaultConfig||Y.config,V=I||{},A=ZJ(X,V),{safelist:T,includePreflight:R,minify:b,tokenCSS:LJ}=A,o=A.config,P=new Y.CSSGenerator(o);for(let N of T)P.generate(N);for(let N of $)P.generate(N);let _=P.toCSS(R,b),r=o.shortcuts||V.shortcuts||{};for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean);for(let D of f)P.generate(D)}_=P.toCSS(R,b);let E=_.split(`
|
|
15
15
|
`);for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean),D=[],C=[];for(let p of f){let a=p.startsWith("dark:"),s=`.${(a?p.slice(5):p).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let S=0;S<E.length;S++){let t=E[S].trim();if(t===`${s} {`||t.startsWith(`${s} {`)){let v=S,e="";while(v<E.length){if(e+=E[v],E[v].includes("}"))break;v++}let g=e.match(/\{([^}]+)\}/);if(g)if(a)C.push(g[1].trim());else D.push(g[1].trim());break}}}if(D.length)_+=`
|
|
16
16
|
.${N} { ${D.join(" ")} }`;if(C.length)_+=`
|
|
17
17
|
@media (prefers-color-scheme: dark) { .dark .${N} { ${C.join(" ")} } }`}return _=LJ+_,l(U,_),BJ(U,_),_}catch(Y){return console.warn("Failed to generate Crosswind CSS:",Y),""}}async function ZQ(Q,J,Y=!1){let $=await wJ(Q,J);if(!$)return Q;let Z=Y?`<link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.${HJ($)}.css">`:`<style data-crosswind="generated">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Fq as P,lm as D,mm as O}from"./chunk-
|
|
2
|
+
import{Fq as P,lm as D,mm as O}from"./chunk-097mr013.js";import{Ou as c,Qu as h,Ru as i}from"./chunk-sfaayvmn.js";import{$u as d,Yu as p}from"./chunk-z45t29sf.js";var R=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function C(z,Q,F){let J={fullTag:F,content:Q,attrs:z};if(/\bserver\b/.test(z))return{...J,type:"server"};if(/\bdata-stx-scoped\b/.test(z))return{...J,type:"client"};if(R.test(Q))return{...J,type:"signals"};if(/\bclient\b/.test(z)||/\btype\s*=\s*["']module["']/.test(z)||/\bsrc\s*=/.test(z))return{...J,type:"client"};return{...J,type:"server"}}var y=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function b(z){let Q=[],F=[],J=[],$=0;while($<z.length){let X=z.indexOf("<",$);if(X===-1)break;let j=O(z,X);if(j>X){$=j;continue}let Z=D(z,X);if(Z>X){let U=z.slice(X,Z),B=y.exec(U);if(B){let Y=C(B[1],B[2],U);switch(Y.type){case"signals":Q.push(Y);break;case"client":F.push(Y);break;case"server":J.push(Y);break}}$=Z;continue}$=X+(z.startsWith("<!--",X)?4:1)}return{signals:Q,client:F,server:J}}var S=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function f(z){let Q=[],F=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,J;while((J=F.exec(z))!==null)Q.push({start:J.index,end:J.index+J[0].length});return Q}function x(z,Q){return Q.some((F)=>z>=F.start&&z<F.end)}function u(z){let Q=(z||"").trim();if(!Q)return null;if(/[\s>+~,:]/.test(Q))return null;let F={},J=Q,$=J.match(/^[a-z][\w-]*/i);if($)F.tag=$[0].toLowerCase(),J=J.slice($[0].length);while(J.length>0){let X=J.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(X){if(F.attr=X[1],X[3]!==void 0&&X[3]!=="")F.attrValue=X[3];J=J.slice(X[0].length);continue}let j=J.match(/^#([\w-]+)/);if(j){F.id=j[1],J=J.slice(j[0].length);continue}let Z=J.match(/^\.([\w-]+)/);if(Z){F.className=Z[1],J=J.slice(Z[0].length);continue}return null}if(!F.tag&&!F.attr&&!F.id&&!F.className)return null;return F}function g(z,Q){if(Q.attr){if(!(Q.attrValue===void 0?new RegExp(`\\b${Q.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Q.attr}\\s*=\\s*(["'])\\s*${Q.attrValue}\\s*\\1`,"i")).test(z))return!1}if(Q.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Q.id}\\s*\\1`,"i").test(z))return!1}if(Q.className){let F=z.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!F)return!1;if(!F[2].split(/\s+/).includes(Q.className))return!1}return!0}function E(z,Q="main"){let F=u(Q);if(!F)return null;let J=/<([a-z][\w-]*)\b([^>]*)>/gi,$=f(z),X;while((X=J.exec(z))!==null){if(x(X.index,$))continue;let j=X[1].toLowerCase(),Z=X[2]||"";if(Z.trimEnd().endsWith("/")||S.has(j))continue;if(F.tag&&F.tag!==j)continue;if(!g(Z,F))continue;let U=X[0],B=X.index+U.length,Y=new RegExp(`<(/?)${j}\\b([^>]*)>`,"gi");Y.lastIndex=B;let W=1,G;while((G=Y.exec(z))!==null){if(x(G.index,$))continue;let w=G[1]==="/";if(!w&&(G[2]||"").trimEnd().endsWith("/"))continue;if(W+=w?-1:1,W===0)return{openTag:U,openIndex:X.index,start:B,end:G.index,tagName:j}}return null}return null}var t="X-STX-Router",zz="private, no-store";function M(z){return z.headers.get("X-STX-Router")==="true"}function m(z,Q){if(!z)return Q;return z.split(",").some((J)=>J.trim().toLowerCase()===Q.toLowerCase())?z:`${z}, ${Q}`}function Fz(z){return{Vary:m(z,"X-STX-Router")}}import _ from"path";c();var o="stx-page-head:",n=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,v=null;function l(){if(v!==null)return v;try{let{getRouterScript:z}=(i(),p(h));v=`<script>${z()}</script>`}catch{v=""}return v}async function Bz(z,Q){if(Q===!1)return null;if(Q&&typeof Q==="string"){let J=_.resolve(z,Q);if(await Bun.file(J).exists())return J;return null}let F=_.join(z,"app.stx");if(await Bun.file(F).exists())return F;return null}async function Uz(z,Q){try{let F=await Bun.file(z).text(),J=F,$=F.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)J=$[1].trim();let X=b(F),j=[...X.client.map((K)=>K.fullTag),...X.signals.map((K)=>K.fullTag)],Z=[],U=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,B;while((B=U.exec(F))!==null)Z.push(B[0]);let Y=J;for(let K of X.server)Y=Y.replace(K.fullTag,"");for(let K of X.client)Y=Y.replace(K.fullTag,"");Y=Y.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let W="<!--__STX_PAGE_SLOT__-->";if(Y=Y.replace(/<slot\s*\/>/gi,W).replace(/<slot\s*>\s*<\/slot>/gi,W),!Y.includes(W))return console.warn(`[stx] Shell ${z} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:G,extractVariables:w,defaultConfig:q,loadStxConfig:H}=await import("./chunk-kcy3a8ax.js"),A=await H(),V={__filename:z,__dirname:_.dirname(z)};for(let K of j){let I=K.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(I&&!K.includes("client")&&!K.includes('type="module"'))await w(I[1],V,z)}let k=await G(Y,V,z,{...q,...A,...Q},new Set),N=k.indexOf(W);if(N===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:k.substring(0,N),afterSlot:k.substring(N+W.length),filePath:z,shellScripts:j,shellStyles:Z}}catch(F){return console.error(`[stx] Error processing shell ${z}:`,F),null}}function Wz(z,Q,F){let J,$="",X=Q.match(n);if(X){Q=Q.replace(X[0],"");try{let Y=Buffer.from(X[1],"base64").toString("utf8"),W=Y.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(W)J=W[1].trim();$=Y.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let j=F||J||"stx App",Z=l(),U="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-
|
|
2
|
+
import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-jvyz1k0v.js";import"./chunk-097mr013.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-sd7ymv7h.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Rl as x,Uq as M}from"./chunk-
|
|
2
|
+
import{Rl as x,Uq as M}from"./chunk-097mr013.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import{Vs as B,Xs as P}from"./chunk-sd7ymv7h.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
|
|
3
3
|
${A.transformSync(j).trim()}`);for(let $ of I)C.add($)}catch($){console.warn(`[stx] framework composable ${G.basename(q)} could not be bundled:`,$)}}let Y=Q.filter((q)=>!C.has(q)&&!g(H,q));if(Y.length>0)console.warn(`[stx] could not bundle ${Y.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(W.length===0)return K.set(z,""),null;let k=[...C].map((q)=>` try { if (!(${JSON.stringify(q)} in __s)) { __s[${JSON.stringify(q)}] = ${q}; if (!(${JSON.stringify(q)} in window)) window[${JSON.stringify(q)}] = ${q}; } } catch (e) {}`).join(`
|
|
4
4
|
`),w=`<script data-stx-framework-composables>
|
|
5
5
|
;(function(){
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{createHash as Y}from"crypto";import W from"fs";import Q from"path";import{generateThumbHash as A}from"ts-images";import{createImageDeliveryCatalog as x}from"ts-images/delivery";var w=new Set([".avif",".jpeg",".jpg",".png",".webp"]),N=[320,640,960,1280,1920],O="/_stx/images",$=new Map;function U(j){return`/${j.split(Q.sep).map(encodeURIComponent).join("/")}`}function _(j){let q=Q.extname(j),K=j.slice(0,-q.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),G=Y("sha256").update(j).digest("hex").slice(0,8);return`${K||"image"}-${G}`}async function X(j,q=j){let K=await W.promises.readdir(q,{withFileTypes:!0});K.sort((B,J)=>B.name.localeCompare(J.name));let G=[];for(let B of K){let J=Q.join(q,B.name);if(B.isDirectory()){G.push(...await X(j,J));continue}if(!B.isFile()||!w.has(Q.extname(B.name).toLowerCase()))continue;G.push({absolutePath:J,relativePath:Q.relative(j,J)})}return G}function V(j){return j.map((q)=>({key:U(q.relativePath),input:q.absolutePath,name:_(q.relativePath)}))}async function k(j){let q=[],K=8;for(let G=0;G<j.length;G+=8){let B=j.slice(G,G+8),J=await Promise.all(B.map(async(M)=>{try{return await A(M.absolutePath),M}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${M.relativePath}`),null}}));q.push(...J.filter((M)=>M!==null))}return q}function H(j){if(!j||j.startsWith("data:")||j.startsWith("blob:")||/^https?:\/\//i.test(j)||j.startsWith("//"))return;let q=j.split(/[?#]/,1)[0];if(!q)return;try{return`/${q.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function F(j){let q=H(j);return q?$.get(q):void 0}function Z(){$=new Map}async function C(j,q){if(!j||!W.existsSync(j))return Z(),{count:0,fingerprint:""};let K=await X(j);if(K.length===0)return Z(),{count:0,fingerprint:""};let G={outDir:Q.join(q,"_stx","images"),baseUrl:O,widths:N,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},B=K,J;try{J=await x({...G,entries:V(K)})}catch(M){if(B=await k(K),B.length===K.length)throw M;if(B.length===0)return Z(),{count:0,fingerprint:""};J=await x({...G,entries:V(B)})}return $=new Map(Object.entries(J.entries)),{count:B.length,fingerprint:J.fingerprint}}
|
|
3
|
+
export{F as ut,Z as vt,C as wt};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{tk as m}from"./chunk-
|
|
2
|
+
import{tk as m}from"./chunk-9mkmrttg.js";import{$u as z}from"./chunk-z45t29sf.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,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-
|
|
2
|
+
import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-097mr013.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-sd7ymv7h.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Mq as X,ym as W}from"./chunk-
|
|
2
|
+
import{Mq as X,ym as W}from"./chunk-097mr013.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}
|